From 295626fbd2e31d7fe9d86117b4d07708f3861b4b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 18 Apr 2021 13:58:56 +0200 Subject: [PATCH] malloc-posix, realloc-posix, calloc-posix: Document affected platforms. * doc/posix-functions/malloc.texi: Re-add platforms list. * doc/posix-functions/realloc.texi: Likewise. * doc/posix-functions/calloc.texi: Likewise. --- ChangeLog | 7 +++++++ doc/posix-functions/calloc.texi | 5 +++-- doc/posix-functions/malloc.texi | 3 ++- doc/posix-functions/realloc.texi | 3 ++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5031c65fb7..38311496b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-04-18 Bruno Haible + + malloc-posix, realloc-posix, calloc-posix: Document affected platforms. + * doc/posix-functions/malloc.texi: Re-add platforms list. + * doc/posix-functions/realloc.texi: Likewise. + * doc/posix-functions/calloc.texi: Likewise. + 2021-04-18 Bruno Haible More systematic file naming. diff --git a/doc/posix-functions/calloc.texi b/doc/posix-functions/calloc.texi index 9ba40c0d48..57bec4db8b 100644 --- a/doc/posix-functions/calloc.texi +++ b/doc/posix-functions/calloc.texi @@ -28,6 +28,7 @@ It fixes this portability problem: @itemize @item -On some platforms, @code{calloc (0, s)} and @code{calloc (n, 0)} -return @code{NULL} on success. +@code{calloc (0, s)} and @code{calloc (n, 0)} return @code{NULL} on success +on some platforms: +AIX 7.2. @end itemize diff --git a/doc/posix-functions/malloc.texi b/doc/posix-functions/malloc.texi index 829517311f..028f1dca5c 100644 --- a/doc/posix-functions/malloc.texi +++ b/doc/posix-functions/malloc.texi @@ -26,5 +26,6 @@ by fixing this portability problem: @itemize @item -On some platforms, @code{malloc (0)} returns @code{NULL} on success. +@code{malloc (0)} returns @code{NULL} on success on some platforms: +AIX 7.2. @end itemize diff --git a/doc/posix-functions/realloc.texi b/doc/posix-functions/realloc.texi index 282e36051d..009bdabb31 100644 --- a/doc/posix-functions/realloc.texi +++ b/doc/posix-functions/realloc.texi @@ -39,7 +39,8 @@ It fixes these portability problems: @itemize @item -On some platforms, @code{realloc (NULL, 0)} returns @code{NULL} on success. +@code{realloc (NULL, 0)} returns @code{NULL} on success on some platforms: +AIX 7.2. @item On some platforms, @code{realloc (p, 0)} with non-null @code{p} -- 2.39.5