delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/28/11:15:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-Authentication-Warning: modi.xraylith.wisc.edu: khan owned process doing -bs
Date: Sun, 28 Feb 1999 10:13:15 -0600 (CST)
From: Mumit Khan <khan AT xraylith DOT wisc DOT edu>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: "Pierre A. Humblet" <Pierre DOT Humblet AT eurecom DOT fr>, bug-gnu-utils AT gnu DOT org,
cygwin AT sourceware DOT cygnus DOT com
Subject: Re: bug in strip 2.9.4
In-Reply-To: <Pine.SUN.3.91.990228145345.5950m-100000@is>
Message-ID: <Pine.SUN.3.93.990228100940.11496A-100000@modi.xraylith.wisc.edu>
MIME-Version: 1.0

On Sun, 28 Feb 1999, Eli Zaretskii wrote:

> Isn't there some magic like this for __MSDOS__ or some such?  Binutils do 
> work in the DJGPP port, and binary mode is not the default in DJGPP.
> 
> > #if _WIN32
> >   setmode (fromfd, O_BINARY);
> >   setmode (tofd, O_BINARY);
> > #endif

Of course. Thanks for pointing it out.

> I think it's better to say something like that:
> 
> 	#if O_BINARY
> 	setmode (...
> 
> because it works for other platforms with O_BINARY as well.

I don't know if all systems that have O_BINARY also have setmode. But of
course, this is a pretty trivial autoconf check -- if both O_BINARY and
setmode exists, use it.

Regards,
Mumit



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