Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Thu, 15 Feb 2001 17:04:00 +0100
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin@sources.redhat.com
Subject: Re: file descriptors opened as text files
Message-ID: <20010215170400.J13799@cygbert.vinschen.de>
Mail-Followup-To: Corinna Vinschen <cygwin@cygwin.com>,
	cygwin@sources.redhat.com
References: <5.0.2.1.0.20010214175309.00a92220@pop.ma.ultranet.com> <Pine.SO4.4.05.10102151515430.1255-100000@e3000.ensicaen.ismra.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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@cygwin.com
Red Hat, Inc.

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

