[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getline() behaviour change
From: |
Eric Blake |
Subject: |
Re: getline() behaviour change |
Date: |
Wed, 22 Aug 2007 18:10:40 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Ben Pfaff on 8/22/2007 5:19 PM:
> Bruno Haible <address@hidden> 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 address@hidden
-----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-----
- Re: getline.h, (continued)
- Re: getline.h, Bruno Haible, 2007/08/22
- Re: getline.h, Eric Blake, 2007/08/22
- Re: getline.h, Eric Blake, 2007/08/22
- Re: getline.h, Jim Meyering, 2007/08/23
- Re: getline.h, Simon Josefsson, 2007/08/23
- Re: getline.h, Jim Meyering, 2007/08/23
- Re: getline() behaviour change, Bruno Haible, 2007/08/22
- Re: getline() behaviour change, Jim Meyering, 2007/08/22
- Re: getline() behaviour change, Bruno Haible, 2007/08/22
- Re: getline() behaviour change, Ben Pfaff, 2007/08/22
- Re: getline() behaviour change,
Eric Blake <=
- Re: getline() behaviour change, Jim Meyering, 2007/08/24
- Re: getline() behaviour change, Jim Meyering, 2007/08/23
- do not set errno after failing malloc [Re: getline() behaviour change, Jim Meyering, 2007/08/23
- Re: getline() behaviour change, Eric Blake, 2007/08/22