Mercurial > hg > octave-shane > gnulib-hg
annotate modules/unistd-safer @ 11049:8398d9f607b4
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>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Mon, 19 Jan 2009 09:27:47 -0700 |
parents | 6a764f23e302 |
children | 18b5c404aa04 |
rev | line source |
---|---|
4110 | 1 Description: |
4172 | 2 File descriptor functions that avoid clobbering STD{IN,OUT,ERR}_FILENO. |
4110 | 3 |
4 Files: | |
6165 | 5 lib/unistd--.h |
4110 | 6 lib/dup-safer.c |
5813 | 7 lib/fd-safer.c |
6135 | 8 lib/pipe-safer.c |
9 lib/unistd-safer.h | |
4110 | 10 m4/unistd-safer.m4 |
11 | |
12 Depends-on: | |
11049
8398d9f607b4
unistd: guarantee STDIN_FILENO here, for OS/2 EMX
Eric Blake <ebb9@byu.net>
parents:
7497
diff
changeset
|
13 unistd |
4110 | 14 |
15 configure.ac: | |
16 gl_UNISTD_SAFER | |
17 | |
18 Makefile.am: | |
19 | |
20 Include: | |
21 "unistd-safer.h" | |
22 | |
5251
42b53a22aee5
Add a license tag to every module.
Bruno Haible <bruno@clisp.org>
parents:
4197
diff
changeset
|
23 License: |
42b53a22aee5
Add a license tag to every module.
Bruno Haible <bruno@clisp.org>
parents:
4197
diff
changeset
|
24 GPL |
42b53a22aee5
Add a license tag to every module.
Bruno Haible <bruno@clisp.org>
parents:
4197
diff
changeset
|
25 |
4197 | 26 Maintainer: |
27 Paul Eggert, Jim Meyering |