delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/15/11:11:10

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.20010215104635.017d17d8@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: Thu, 15 Feb 2001 10:49:21 -0500
To: Jean Delvare <delvare AT ensicaen DOT ismra DOT fr>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: file descriptors opened as text files
Cc: cygwin AT sources DOT redhat DOT com
In-Reply-To: <Pine.SO4.4.05.10102151515430.1255-100000@e3000.ensicaen.is
mra.fr>
References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010214175309 DOT 00a92220 AT pop DOT ma DOT ultranet DOT com>
Mime-Version: 1.0

At 09:36 AM 2/15/2001, Jean Delvare wrote:
>But file descriptors being concerned, cygwin's behavior is just weird (my
>opinion). The file desciptor is the lowest access level to the files. In
>the unix world (the real one) there is simply no text mode defined for
>file descriptors (which makes my program using O_BINARY unportable). It
>looks like a Cygnus' invention, and will probably cause lots of trouble to
>any developper porting applications using file descriptors - and there
>must be a lot. I don't even think this behavior is POSIX compliant (but I
>don't know how to check it).


Its not a Cygwin invention.  Its a MS one.  Check out the documentation
for open()/_open() on the MSDN.  They use the _O_BINARY flag.  Don't get me
wrong.  I hate text mode in all its forms.  Perhaps Cygwin could've forgone
its use here.  Maybe not.  However, doing so here follows the MS lead and
wasn't a Cygwin concoction.


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



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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