This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: bug in strip 2.9.4
- To: Eli Zaretskii <eliz@is.elta.co.il>
- Subject: Re: bug in strip 2.9.4
- From: Mumit Khan <khan@xraylith.wisc.edu>
- Date: Sun, 28 Feb 1999 10:13:15 -0600 (CST)
- cc: "Pierre A. Humblet" <Pierre.Humblet@eurecom.fr>, bug-gnu-utils@gnu.org, cygwin@sourceware.cygnus.com
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- In-Reply-To: <Pine.SUN.3.91.990228145345.5950m-100000@is>
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
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@sourceware.cygnus.com