Date: Thu, 9 Mar 2000 14:56:48 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Rossz Vámos-Wentworth cc: djgpp AT delorie DOT com Subject: Re: what is the serial device In-Reply-To: <38c742da_1@news.jps.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id IAA19587 Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.)