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

Reply via email to