Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3A1C5C80.8A0E63E6@sattel.com> Date: Wed, 22 Nov 2000 15:53:36 -0800 From: Bruce Edge Organization: Sattel Global Networks X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.15-4mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: cygwin support Subject: [Fwd: serial port and unwanted NL -> CR/LF tranlastion] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 . 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