poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / setenv.texi
blob649528038fdfcf28c4ddcf136272f1d9bb484905
1 @node setenv
2 @section @code{setenv}
3 @findex setenv
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/setenv.html}
7 Gnulib module: setenv
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 HP-UX 11.23, IRIX 6.5, Solaris 9, mingw, MSVC 14.
14 @item
15 On some platforms, this function does not fail with @samp{EINVAL} when
16 passed an empty string or a string containing @samp{=}:
17 Mac OS X 10.5, FreeBSD 6.0, NetBSD 1.6, OpenBSD 6.7, Cygwin 1.5.x.
18 @item
19 On some platforms, this function removes a leading @samp{=} from the
20 value argument:
21 Cygwin 1.5.x.
22 @end itemize
24 Portability problems not fixed by Gnulib:
25 @itemize
26 @item
27 Older versions of POSIX required that @code{setenv(NULL,"",0)} gracefully
28 fail with @code{EINVAL}, but not all implementations guarantee this,
29 and the requirement was removed.
30 @end itemize