Next: stdnoreturn.h, Previous: stdio.h, Up: ISO C and POSIX Header File Substitutes [Contents][Index]
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html
Gnulib module: stdlib, system-posix
Portability problems fixed by the Gnulib module stdlib
:
EXIT_SUCCESS
and EXIT_FAILURE
are not defined on
some platforms.
NULL
macro that cannot be used in arbitrary
expressions:
NetBSD 5.0
MB_CUR_MAX
is too small (3 instead of 4) in UTF-8 locales
on some platforms:
Solaris 10.
Portability problems fixed by the Gnulib module system-posix
:
WIFSIGNALED
, WIFEXITED
, WIFSTOPPED
,
WTERMSIG
, WEXITSTATUS
, WNOHANG
, WUNTRACED
,
WSTOPSIG
are not defined in this header file (only in
<sys/wait.h>
) on some platforms:
MirBSD 10.
Portability problems not fixed by Gnulib:
once_flag
, of the macro
ONCE_FLAG_INIT
, and the declaration of the function
call_once
, that are required by ISO C 23, are not provided.
To get them, import Gnulib module call_once
and include
<threads.h>
rather than <stdlib.h>
.
WEXITSTATUS
require an lvalue
argument on some platforms.
macOS 11.1.