NEWS.stable: log cherry-pick [e446f25]->[c092018] relocatable-shell: Update suggested...
[gnulib.git] / doc / posix-headers / stdlib.texi
1 @node stdlib.h
2 @section @file{stdlib.h}
3
4 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html}
5
6 Gnulib module: stdlib, system-posix
7
8 Portability problems fixed by the Gnulib module @code{stdlib}:
9 @itemize
10 @item
11 The macros @code{EXIT_SUCCESS} and @code{EXIT_FAILURE} are not defined on
12 some platforms.
13 @item
14 The macro @code{EXIT_FAILURE} is incorrectly defined on Tandem/NSK.
15
16 @item
17 Some platforms provide a @code{NULL} macro that cannot be used in arbitrary
18 expressions:
19 NetBSD 5.0
20 @end itemize
21
22 Portability problems fixed by the Gnulib module @code{system-posix}:
23 @itemize
24 @item
25 The macros @code{WIFSIGNALED}, @code{WIFEXITED}, @code{WIFSTOPPED},
26 @code{WTERMSIG}, @code{WEXITSTATUS}, @code{WNOHANG}, @code{WUNTRACED},
27 @code{WSTOPSIG} are not defined in this header file (only in
28 @code{<sys/wait.h>}) on some platforms:
29 MirBSD 10.
30 @end itemize
31
32 Portability problems not fixed by Gnulib:
33 @itemize
34 @item
35 System status macros such as @code{WEXITSTATUS} require an lvalue
36 argument on some platforms.
37 Mac OS X 10.5.
38 @end itemize