www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/05/19:21:27

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
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Thu, 5 Oct 2000 19:17:11 -0400
To: cygwin AT sources DOT redhat DOT com
Subject: Re: Bash patches
Message-ID: <20001005191711.B24316@cygnus.com>
Reply-To: cygwin AT sources DOT redhat DOT com
Mail-Followup-To: cygwin AT sources DOT redhat DOT com
References: <20001005231632 DOT 324 DOT qmail AT web111 DOT yahoomail DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.6i
In-Reply-To: <20001005231632.324.qmail@web111.yahoomail.com>; from earnie_boyd@yahoo.com on Thu, Oct 05, 2000 at 04:16:32PM -0700

On Thu, Oct 05, 2000 at 04:16:32PM -0700, Earnie Boyd wrote:
>--- Earnie Boyd <earnie_boyd AT yahoo DOT com> wrote:
>> --- Chris Faylor <cgf AT cygnus DOT com> wrote:
>> > On Thu, Oct 05, 2000 at 04:43:00PM -0600, Erik Nolte wrote:
>> > >I haven't seen setmode(fd,mode) in any other POSIX environment.  Have I
>> just
>> > >missed it or is this a cywin specific thing?
>> > 
>> > It's a Windows/MS-DOS specific think, I believe.  It's necessary for
>> systems
>> > that distinguish between "text" and "binary".
>> > 
>> 
>> Hmm, interesting, I'd suggest doing a Google search for setmode.  Seems that
>> BSD has a different idea of what setmode() is to be used for.
>> 
>
>And I find that it should be _setmode( int handle, int mode ) for the LIBC,
>LIBCMT, MSVCRT equivalent.

_setmode works in cygwin, too, of course.  It can also work in MSVC.

cgf

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