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

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: Thu, 15 Feb 2001 17:04:00 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT sources DOT redhat DOT com
Subject: Re: file descriptors opened as text files
Message-ID: <20010215170400.J13799@cygbert.vinschen.de>
Mail-Followup-To: Corinna Vinschen <cygwin AT cygwin DOT com>,
cygwin AT sources DOT redhat DOT com
References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010214175309 DOT 00a92220 AT pop DOT ma DOT ultranet DOT com> <Pine DOT SO4 DOT 4 DOT 05 DOT 10102151515430 DOT 1255-100000 AT e3000 DOT ensicaen DOT ismra DOT fr>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.SO4.4.05.10102151515430.1255-100000@e3000.ensicaen.ismra.fr>; from delvare@ensicaen.ismra.fr on Thu, Feb 15, 2001 at 03:36:59PM +0100

On Thu, Feb 15, 2001 at 03:36:59PM +0100, 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).

1st step: Add O_BINARY to the open calls.
2nd step:

	#ifndef O_BINARY
	#define O_BINARY 0
	#endif

Ported (mostly).

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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