Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: basesrc
Module Name: basesrc
Committed By: kleink
Date: Fri Sep 10 10:38:07 UTC 1999
Modified Files:
basesrc/lib/libc/stdlib: malloc.3 malloc.c
Log Message:
Restore the behaviour of not setting errno to ENOMEM when allocating 0
units of storage and returning a null pointer in System V mode; this was
broken by the `fix' in rev. 1.24. Also, as it is stated in ISO C that
such operation does not constitute an allocation failure, do not abort()
even if the `X' option is set.
Amusingly enough the SVID, Fourth Edition, specifies the `unique pointer'
return behaviour for this kind of allocation, so this is kind of mis-named.
To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 basesrc/lib/libc/stdlib/malloc.3
cvs rdiff -r1.25 -r1.26 basesrc/lib/libc/stdlib/malloc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index