DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦1d4976767⟧ TextFile

    Length: 315 (0x13b)
    Types: TextFile
    Notes: UNIX file
    Names: »fd.c«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦2d53db1df⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »frankh/src/fd.c« 

TextFile

/*
 *
*/

#include	<stdio.h>
#include	<sgtty.h>
#include	<mtioctl.h>

main()
{
	register int fd;
	int com;

	com = 0x181;
	fd = open("/dev/fd1",2);

	ioctl(fd, com, NULL);

	close(fd);

}
/*
inw(fd, paddr)
int	fd;
int	paddr;
{
	struct pio	pio;

	pio.paddr = paddr;
	ioctl(fd, PIOINW, &pio);
	return pio.pdata;
}
*/