[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proper realloc(p,0) behavior?
From: |
Paul Eggert |
Subject: |
Re: proper realloc(p,0) behavior? |
Date: |
Fri, 25 Mar 2011 13:21:01 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9 |
On 03/25/2011 12:11 PM, Eric Blake wrote:
> the only
> sane thing left for POSIX to do without invalidating glibc would be to
> require that portable applications shall not call realloc(p,0) for
> non-NULL p
That sounds unlikely, since POSIX defers to the C standard.
However, POSIX *could* mark realloc (nonnull, 0) as obsolescent,
just as it marked "gets" obsolescent even though C99 required "gets".
Perhaps the Austin committee would accept that?
Do I understand correctly that all the people in the room (when the
C99 committee decided to require this incompatible change) were people
from Oracle, HP, etc., and that nobody was present to speak
up for GNU or GNU/Linux? If so, this sounds like a breakdown in
the way that the C99 committee was operating.
- Re: proper realloc(p,0) behavior?, (continued)
- Re: proper realloc(p,0) behavior?, Paul Eggert, 2011/03/25
- Re: proper realloc(p,0) behavior?, Eric Blake, 2011/03/25
- [PATCH] xmalloc: revert yesterday's regression, Eric Blake, 2011/03/25
- Re: proper realloc(p,0) behavior?, Paul Eggert, 2011/03/25
- Re: proper realloc(p,0) behavior?, Eric Blake, 2011/03/25
[PATCH] realloc: document portability problem, Eric Blake, 2011/03/24
Re: proper realloc(p,0) behavior?, Bruno Haible, 2011/03/24
- Re: proper realloc(p,0) behavior?, Eric Blake, 2011/03/25
- Re: proper realloc(p,0) behavior?, Bruno Haible, 2011/03/25
- Re: proper realloc(p,0) behavior?, Eric Blake, 2011/03/25
- Re: proper realloc(p,0) behavior?,
Paul Eggert <=
- Re: proper realloc(p,0) behavior?, Eric Blake, 2011/03/25
Re: proper realloc(p,0) behavior?, Bruno Haible, 2011/03/24
Re: proper realloc(p,0) behavior?, Pádraig Brady, 2011/03/25