This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
[Fwd: serial port and unwanted NL -> CR/LF tranlastion]
- To: cygwin support <cygwin at sources dot redhat dot com>
- Subject: [Fwd: serial port and unwanted NL -> CR/LF tranlastion]
- From: Bruce Edge <bedge at sattel dot com>
- Date: Wed, 22 Nov 2000 15:53:36 -0800
- Organization: Sattel Global Networks
Ahhh. I see. Thanks for the clarification.
-Bruce.
DJ Delorie wrote:
>
> > > #ifndef O_BINARY
> > > #define O_BINARY 0
> > > #endif
> > >
> > > open( name, O_RDWR | O_NOCTTY | O_NONBLOCK | O_BINARY )
> >
> > Wouldn't this just be OR'ing a 0 into the flags?
>
> Not on platforms that support O_BINARY, like cygwin and djgpp. Don't
> forget to #include <fcntl.h>. The #define in the sample is for unix
> platforms, like Linux, that don't have text/binary flags.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com