![]() |
|
Message-ID: <CAMdZqKE5Btksyg3Tm=Em6RGu3At8Za8KtVMm5m=rjM3sHucPmQ@mail.gmail.com> Date: Fri, 20 Jun 2025 06:42:33 -0700 From: Mark Harris <mark.hsj@...il.com> To: Alejandro Colomar <alx@...nel.org> Cc: Eric Blake <eblake@...hat.com>, Rich Felker <dalias@...c.org>, enh <enh@...gle.com>, Florian Weimer <fweimer@...hat.com>, Adhemerval Zanella Netto <adhemerval.zanella@...aro.org>, musl@...ts.openwall.com, libc-alpha@...rceware.org, Joseph Myers <josmyers@...hat.com>, наб <nabijaczleweli@...ijaczleweli.xyz>, Paul Eggert <eggert@...ucla.edu>, Robert Seacord <rcseacord@...il.com>, Bruno Haible <bruno@...sp.org>, bug-gnulib@....org, JeanHeyd Meneide <phdofthehouse@...il.com>, Thorsten Glaser <tg@...bsd.de> Subject: Re: Re: BUG: realloc(p,0) should be consistent with malloc(0) Alejandro Colomar wrote: > I don't have a copy of POSIX.1-1988, nor of any other POSIX.1 before > POSIX.1-2001. What do they say for realloc(3)? The first POSIX edition with a description of realloc is POSIX.1-2001. Earlier editions only list it as a function provided by the C Language Standard. POSIX.1-1988 Appendix A states: "This IEEE Std 1003.1-1988 is intended to complement others that together would provide a comprehensive Open System Environment." ... "This document refers to the C Language Standard effort presently under development by Technical Committee X3J11 of the Accredited Standards Committee X3—Information Processing Systems. The X3J11 and 1003.1 groups have been cooperating to ensure that the standards are complementary and not overlapping." There were three editions of POSIX prior to POSIX.1-2001: IEEE Std 1003.1-1988: https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub151-1.pdf IEEE Std 1003.1-1990: https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub151-2.pdf IEEE Std 1003.1-1996 = 1003.1-1990 + 1003.1b-1993 + 1003.1c-1995 + 1003.1i-1995 (i.e., same as the previous version plus real-time and threading extensions; no impact on realloc) > > I don't have a copy of POSIX.1-2008 ... https://pubs.opengroup.org/onlinepubs/9699919799.2008edition/functions/realloc.html > > No mention of POSIX.1-2013? > > I didn't have a copy of that. ... https://pubs.opengroup.org/onlinepubs/9699919799.2013edition/functions/realloc.html POSIX.1-2013 = POSIX.1-2008 + TC1; TC1 includes the POSIX changes to realloc from bug 400. https://austingroupbugs.net/view.php?id=400 https://open-std.org/JTC1/SC22/WG14/www/docs/dr_400.htm - Mark
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.