-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Ben Pfaff on 8/22/2007 5:19 PM: > Bruno Haible <[EMAIL PROTECTED]> writes: > >> Jim Meyering wrote: >>> A *lot* of code expects malloc and realloc to set errno when they fail. >> Such code is not portable to plain ISO C 99 systems. > > We could extend gnulib's existing malloc/realloc wrappers to > ensure that malloc/realloc set errno when they fail, if it is > worthwhile to do so.
I would somewhat like this idea - it is much nicer assuming that malloc reliably sets errno to ENOMEM on failure than having to patch all callers of malloc to do the same. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGzNCA84KuGfSFAYARAt1gAJ9/wJ1wo481LMUSJMdxyPSkzOTlogCcDwUt rh03w3E/qiRJWvYw58xfvK0= =PWXo -----END PGP SIGNATURE-----