[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: 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]