poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / system.texi
blob071de88d8b19af78a634213b43c74b5b25eaa505
1 @node system
2 @section @code{system}
3 @findex system
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/system.html}
7 LSB specification:@* @url{https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-system-3.html}
9 Gnulib module: system-posix
11 Portability problems fixed by Gnulib:
12 @itemize
13 @item
14 The macros @code{WIFSIGNALED}, @code{WIFEXITED}, @code{WIFSTOPPED},
15 @code{WTERMSIG}, @code{WEXITSTATUS}, @code{WNOHANG}, @code{WUNTRACED},
16 @code{WSTOPSIG} are not defined in @code{<stdlib.h>} (only in
17 @code{<sys/wait.h>}) on some platforms:
18 MirBSD 10.
19 @end itemize
21 Portability problems not fixed by Gnulib:
22 @itemize
23 @item
24 On Windows platforms (excluding Cygwin), the command processor used by the
25 @code{system} function is @file{cmd.exe}, not @file{/bin/sh}.  Accordingly,
26 the rules for quoting shell arguments containing spaces, quote or other special
27 characters are different.
28 @end itemize