This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: malloc failure and errno
- From: Roland McGrath <roland at redhat dot com>
- To: Bruno Haible <bruno at clisp dot org>
- Cc: Jim Meyering <jim at meyering dot net>, bug-gnulib <bug-gnulib at gnu dot org>, libc-alpha at sourceware dot org
- Date: Sun, 9 Sep 2007 19:14:31 -0700 (PDT)
- Subject: Re: malloc failure and errno
- References: <46C74FCA.9090709@byu.net> <200708222325.47561.bruno@clisp.org> <87mywj8cow.fsf@rho.meyering.net> <200709091603.55624.bruno@clisp.org>
> What is the reason? Can malloc() return NULL with errno being set to something
> different than ENOMEM?
It is probably just overly-conservative code in those callers.