This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] cli/cli-dump.c: Write dump always in binary mode on Cygwin
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Cc: Michael Snyder <msnyder at redhat dot com>, gdb-patches at sources dot redhat dot com, Richard dot Earnshaw at arm dot com
- Date: Wed, 07 Aug 2002 16:43:36 +0100
- Subject: Re: [RFA] cli/cli-dump.c: Write dump always in binary mode on Cygwin
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
>
> On Mon, 5 Aug 2002, Michael Snyder wrote:
>
> > do we actually know of any environments
> > where the #if is strictly necessary?
>
> Since GDB requires ISO C, and "wb" is part of the ISO C spec, I think we
> can drop the #if. (Dependance on O_BINARY being defined is not very
> clean anyway, IMHO, since O_BINARY does not belong to `fopen'.)
>
I don't think we can assume an ISO conforming C library.
R.