[PATCH v2 3/4] Say malloc (0) != NULL is now common; resection

DJ Delorie dj@redhat.com
Thu Feb 12 21:03:33 GMT 2026


Paul Eggert <eggert@cs.ucla.edu> writes:
> On 2/12/26 12:45, DJ Delorie wrote:
>> There's a difference between "I made it work on all the platforms I
>> tried it on" (porting) and "I made it work by reading the spec and
>> following it" (portable).> When you say which platforms do what,
>> you're encouraging the former (not that I'm opposed to giving them
>> this information, just saying).
>
> To clarify this I could add further wording saying something like "There 
> are two possible behaviors, and everybody but IBM AIX does it the GNU way."

That stinking AIX, ruining everything.

(also, note I don't feel strongly about this, just making suggestions in
case they're useful ;)

(also, for the humor impaired, that first part is a joke)

I'm just not in favor of pointing out specific examples when it's not
needed.  Our manual isn't a "how to port to everything" manual, it's a
"how to use glibc" manual.  It's sufficient to say "not everyone does"
without pointing fingers.  It encourages good programming without giving
the programmer a "get out of effort free" card if they don't care about
AIX.



More information about the Libc-alpha mailing list