From: Dan Hensley Newsgroups: comp.os.msdos.djgpp Subject: Re: How to open COM port in DJGPP? Date: Mon, 11 Jan 1999 18:00:38 -0700 Organization: University of Colorado at Boulder Lines: 21 Message-ID: <369A9EB5.44F27F@juno.com> References: <369A9A22 DOT 9AF7AB2A AT juno DOT com> NNTP-Posting-Host: tele-anx0312.colorado.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-User: root X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.0.36 i686) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Dan Hensley wrote: > Hello all, > How does DJGPP handle serial port access? Specifically, how can I > open a COM port? I need to use the open() function, and I've tried > COM1, /dev/com1/, /dev/tty00, /dev/ttyS0, and /dev/cua0--none of them > work. > I need to use open() because my code uses tcgetattr(), tcsetattr(), > and select(). > I've looked at bcsio, but I'd like to be able to compile my Unix > code as-is, if possible. I'm in the process of looking at dzcomm. I'm > also searching through the old posts, but so far I haven't found > anything promising. > > Thanks for any input, > Dan P.S. I'm running in NT4sp4, so I can't call the bios functions to set serial port attributes (as far as I know).