Mail Archives: djgpp/2000/03/09/10:46:50
On Wed, 8 Mar 2000, Rossz Vámos-Wentworth wrote:
> What is the string used to open the serial device. The standard Linux
> syntax does not work:
>
> fd = open("/dev/ttyS0", O_RDWR);
Use this:
fd = open ("/dev/COM1", O_RDWR);
> I tried several variations, but get messages such as "not a tty device".
This might be a different problem, unrelated to the name of the device.
Please look into the sources and tell which function is called where
the above error message is printed. You might be hitting an area where
DJGPP doesn't emulate Unix devices well enough.
The usual way of working around these problems is to provide emulation of
missing devices via the DJGPP Filesystem Extension feature. (It is
dfocumented in the library reference manual.)
- Raw text -