* bootstrap: Add stdio-safer, unistd-safer modules.

Remove m4/glibc2.m4 (introduced by latest gnulib, but
we don't need it).
* lib/.cvsignore: Add dup-safer.c, fd-safer.c,
fopen-safer.c, stdio-safer.h, unistd-safer.h.
* lib/subpipe.c: Include "unistd-safer.h".
(create_subpipe): Make sure all the newly-created
file descriptors are > 2, so that diagnostics don't
get sent down them (which might cause Bison to hang, in theory).
* m4/.cvsignore: Add stdio-safer.m4, unistd-safer.m4.
* src/files.c (xfopen): Use fopen_safer, not fopen.
This commit is contained in:
Paul Eggert
2005-05-22 08:04:06 +00:00
parent 51c30d2144
commit 3ea5f0ec81
6 changed files with 39 additions and 23 deletions

View File

@@ -9,11 +9,14 @@ argmatch.h
basename.c
dirname.c
dirname.h
dup-safer.c
error.c
error.h
exit.h
exitfail.c
exitfail.h
fd-safer.c
fopen-safer.c
getopt.c
getopt.h
getopt1.c
@@ -37,6 +40,7 @@ quotearg.h
realloc.c
stdbool.h
stdbool_.h
stdio-safer.h
stpcpy.c
stpcpy.h
strdup.c
@@ -46,6 +50,7 @@ strncasecmp.c
strndup.c
strndup.h
strnlen.c
unistd-safer.h
unlocked-io.h
xalloc-die.c
xalloc.h