delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/22/19:06:03

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
Message-Id: <4.3.1.2.20001122185646.020f9f18@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Wed, 22 Nov 2000 18:58:49 -0500
To: Bruce Edge <bedge AT sattel DOT com>, cygwin support <cygwin AT sources DOT redhat DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: serial port and unwanted NL -> CR/LF tranlastion
In-Reply-To: <3A1C5C20.59F02EF4@sattel.com>
References: <3A1C4FD1 DOT C9B77949 AT sattel DOT com>
<3A1C5479 DOT C3669558 AT redhat DOT com>
Mime-Version: 1.0

There are no "symbols" in /lib/binmode.o to link against.  It merely sets 
the default mode for file access to binary.

Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



At 06:52 PM 11/22/2000, Bruce Edge wrote:
>Hi Corinna, thanks for the prompt response.
>
>I tried this and it had no effect.
>I added the O_BINARY and linked with /lib/binmode.
>
>Is there some other library I should now exclude? I ask as since there were no
>unresolved symbols before I added /lib/binmode.o, the link is picking up
>whatever symbols are in binmode.o from somewhere else.
>
>-Bruce.
>
>Corinna Vinschen wrote:
> > 
> > Bruce Edge wrote:
> > >
> > > I opened /dev/com1 using:
> > >         open( name, O_RDWR | O_NOCTTY | O_NONBLOCK )
> > > and when I write to it using:
> > >         write( fd, buf, len );
> > > any 0x0a bytes are getting translated into 0x0d 0x0a pairs.
> > >
> > > How can I stop this?
> > 
> > Try
> >           open( name, O_RDWR | O_NOCTTY | O_NONBLOCK | O_BINARY)
> > 
> > or link your application with /lib/binmode.o
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com



--
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