DOS/Windows-specific code: source.c

DJ Delorie dj@redhat.com
Tue May 8 14:00:00 GMT 2001


"Eli Zaretskii" <eliz@is.elta.co.il> writes:
> Perhaps, but this is not the problem I was trying to solve.  The issue
> is whether _any_ platform needs to put O_BINARY into mode in this

If it's host-specific code, perhaps.  But it's better if nobody needs
to know whether or not O_BINARY is available; they only need to know
if it's *appropriate*.  If the file is binary, use O_BINARY.  If it is
text, don't.  On platforms where O_BINARY is zero, it does nothing,
but does prevent yet another needless host test.



More information about the Gdb mailing list