This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: fopen() bug
- To: Stephen Whiteley <stevew at best dot com>
- Subject: Re: fopen() bug
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Tue, 17 Nov 1998 01:19:15 -0600
- Cc: gnu-win32 at cygnus dot com
Stephen Whiteley <stevew@best.com> writes:
>
> fopen(0, "r") maybe should fault, since that seems to be a common
> result under UNIX. Otherwise, porting from Cygnus -> UNIX might break
> someone's (buggy) application.
Actually, it's undefined behaviour, and various Unix implementations
deal with it in different ways (eg., Linux, HPUX, AIX, etc handle
these cases and set errno appropriately). Cygwin b20.1 will handle
it like Linux.
Regards,
Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".