summaryrefslogtreecommitdiff
path: root/gnulib/doc/posix-functions/malloc.texi
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/doc/posix-functions/malloc.texi')
m---------gnulib0
-rw-r--r--gnulib/doc/posix-functions/malloc.texi25
2 files changed, 25 insertions, 0 deletions
diff --git a/gnulib b/gnulib
deleted file mode 160000
-Subproject 443bc5ffcf7429e557f4a371b0661abe98ddbc1
diff --git a/gnulib/doc/posix-functions/malloc.texi b/gnulib/doc/posix-functions/malloc.texi
new file mode 100644
index 0000000..36edb52
--- /dev/null
+++ b/gnulib/doc/posix-functions/malloc.texi
@@ -0,0 +1,25 @@
+@node malloc
+@section @code{malloc}
+@findex malloc
+
+POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/malloc.html}
+
+Gnulib module: malloc-posix
+
+Portability problems fixed by Gnulib:
+@itemize
+@item
+Upon failure, the function does not set @code{errno} to @code{ENOMEM} on
+some platforms:
+mingw, MSVC 9.
+@end itemize
+
+Portability problems not fixed by Gnulib:
+@itemize
+@item @code{malloc (0)} always returns a NULL pointer on some platforms:
+AIX 5.1, OSF/1 5.1.
+@end itemize
+
+Extension: Gnulib provides a module @samp{malloc-gnu} that substitutes a
+@code{malloc} implementation that behaves more like the glibc implementation,
+regarding the result of @code{malloc (0)}.