delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/16/21:54:07

From: stevew AT best DOT com (Stephen Whiteley)
Subject: Re: fopen() bug
16 Nov 1998 21:54:07 -0800 :
Message-ID: <199811161647.IAA27163.cygnus.gnu-win32@shell7.ba.best.com>
References: <9811160741 DOT AA24536 AT modi DOT xraylith DOT wisc DOT edu>
To: khan AT xraylith DOT wisc DOT edu, stevew AT srware DOT com
Cc: gnu-win32 AT cygnus DOT com

Re: fopen("", "r")

> It still gets a SEGV when you provide a NULL pointer for file name,
> but that's allowed by POSIX. I'll however send a fix that for that 
> as well to be ``user friendly''.

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.

Steve
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019