poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / posix_spawnp.texi
blob9e6519176c42c18125a8c34e8f852aaa489296c2
1 @node posix_spawnp
2 @section @code{posix_spawnp}
3 @findex posix_spawnp
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_spawnp.html}
7 Gnulib module: posix_spawnp
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 9, Cygwin 1.7.x, mingw, MSVC 14, Android 8.1.
14 @item
15 When this function fails, it causes the stdio buffer contents to be output
16 twice on some platforms:
17 AIX 6.1.
18 @item
19 When the program to be invoked is an executable script without a @samp{#!}
20 marker in the first line, this function executes the script as if it were
21 a shell script, on some platforms:
22 glibc 2.14, GNU/Hurd, Mac OS X 10.13, FreeBSD 12.0, OpenBSD 6.7, AIX 7.2, Solaris 11.4, Cygwin 2.9.
23 @end itemize
25 Portability problems not fixed by Gnulib:
26 @itemize
27 @item
28 This function does not work on some platforms:
29 AIX 6.1 (under particular circumstances).
30 @end itemize
32 The Gnulib modules @code{posix_spawn_file_actions_addchdir} and
33 @code{posix_spawn_file_actions_addfchdir} provide additional actions,
34 that consist in changing the current directory of the child process
35 before starting the specified program.