Mail Archives: djgpp-workers/2000/12/24/18:12:37
Hello.
JB wrote:
> If /dev/zero can be used on Windoes, does that mean things like
> /dev/floppy, /dev/cdrom, /dev/modem even, can be used also?
The code I posted implements /dev/zero - that is, there is no /dev/zero
present on DOS/Windows, so we have to simulate it ourselves. DJGPP's FSEXT
mechanism is good for things like this. FSEXTs are a very nice feature of
DJGPP.
/dev/cdrom is just an alias for whatever drive is the cdrom. Under Linux
/dev/cdrom is usually just a symlink to whatever device is the cdrom
drive, e.g. /dev/hdc or /dev/scd0. Likewise for /dev/floppy, e.g. it maps
to /dev/fd0.
I think /dev/floppy would require an FSEXT to read sectors from the disk.
/dev/modem might map directly to COM1: or COM2:, but then I've never
really done any serial port programming, so I don't really know.
Bye, Rich =]
--
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]
- Raw text -