unistd: guarantee STDIN_FILENO here, for OS/2 EMX
authorEric Blake <ebb9@byu.net>
Mon, 19 Jan 2009 16:27:47 +0000 (09:27 -0700)
committerEric Blake <ebb9@byu.net>
Mon, 19 Jan 2009 16:27:47 +0000 (09:27 -0700)
commitae5dae6fd1caa993e969b869e42820a119385cbc
tree1be0adbea746a7bef41133e9d81b06c96fe9f734
parent542406c922c11cea5a7fd3c7268e5be3e9c8928b
unistd: guarantee STDIN_FILENO here, for OS/2 EMX

* lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
Guarantee a definition.
* doc/posix-headers/unistd.texi (unistd.h): Document the bug.
* modules/unistd-safer (Depends-on): Add dependency on unistd.
* lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
* lib/dup-safer.c (STDERR_FILENO): Likewise.
* lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
Likewise.
* lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
* lib/fopen-safer.c (STDERR_FILENO): Likewise.
* lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
Likewise.
* lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
* tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
(STDERR_FILENO): Likewise.
* tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
(STDERR_FILENO): Likewise.
* tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
(STDERR_FILENO): Likewise.
Reported by Elbert Pol.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 files changed:
ChangeLog
doc/posix-headers/unistd.texi
lib/c-stack.c
lib/dup-safer.c
lib/execute.c
lib/fd-safer.c
lib/fopen-safer.c
lib/pipe.c
lib/tmpfile-safer.c
lib/unistd.in.h
modules/unistd-safer
tests/test-posix_spawn1.c
tests/test-posix_spawn2.c
tests/test-posix_spawn3.c