delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/22/18:49:53

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 22 Nov 2000 18:45:22 -0500
Message-Id: <200011222345.SAA01742@envy.delorie.com>
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: bedge AT sattel DOT com
CC: cygwin AT sources DOT redhat DOT com
In-reply-to: <3A1C5A1D.D7D31B79@sattel.com> (message from Bruce Edge on Wed,
22 Nov 2000 15:43:25 -0800)
Subject: Re: serial port and unwanted NL -> CR/LF tranlastion
References: <3A1C4FD1 DOT C9B77949 AT sattel DOT com> <200011222314 DOT SAA01402 AT envy DOT delorie DOT com> <3A1C5A1D DOT D7D31B79 AT sattel DOT com>

> > #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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019