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 Date: Thu, 15 Feb 2001 17:04:00 +0100 From: Corinna Vinschen 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 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; 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