[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATCH: virtual memory exhausted when xmalloc(0) returns 0

From: Paul D. Smith
Subject: Re: PATCH: virtual memory exhausted when xmalloc(0) returns 0
Date: Wed, 9 Mar 2005 09:47:50 -0500

%% "John Jenniskens" <address@hidden> writes:

  jj> This occurs on platforms where malloc(0) returns 0. I've found the
  jj> error on AIX and on TRU64 (dec-osf) platforms.

Just a note: the 1989 ANSI C standard (adopted as the ISO C standard in
1990) required that malloc(0) return a valid pointer, so any system that
doesn't provide this capability is not even compliant with the most
basic, bare minimum set of standards required by POSIX, which has been
in place for 16 years.

That's pretty sad.

Nevertheless, GNU make still attempts to be compliant with pre-ANSI
compilers for those poor benighted folk who are stuck with them: this
issue has been fixed in the CVS archive for GNU make for a while and
the fix will appear in the next release.


 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

[Prev in Thread] Current Thread [Next in Thread]