diff options
author | Bruno Haible <bruno@clisp.org> | 2009-12-11 20:59:01 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-12-11 20:59:01 +0100 |
commit | a3255b1b9848874572e0df9d0609e263da50de4b (patch) | |
tree | 11f2295f706870686445acedc714ef01eed737cd /modules | |
parent | 9a9d32fbb36e8363c32de6068765829d8232949e (diff) | |
download | gnulib-a3255b1b9848874572e0df9d0609e263da50de4b.tar.gz |
New module 'fd-safer-flag'.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/cloexec | 1 | ||||
-rw-r--r-- | modules/fd-safer-flag | 26 | ||||
-rw-r--r-- | modules/pipe2-safer | 2 | ||||
-rw-r--r-- | modules/stdlib-safer | 1 | ||||
-rw-r--r-- | modules/unistd-safer-tests | 1 |
5 files changed, 29 insertions, 2 deletions
diff --git a/modules/cloexec b/modules/cloexec index 93f518eca5..bb2767d888 100644 --- a/modules/cloexec +++ b/modules/cloexec @@ -12,7 +12,6 @@ stdbool configure.ac: gl_CLOEXEC -gl_MODULE_INDICATOR([cloexec]) Makefile.am: diff --git a/modules/fd-safer-flag b/modules/fd-safer-flag new file mode 100644 index 0000000000..887b797477 --- /dev/null +++ b/modules/fd-safer-flag @@ -0,0 +1,26 @@ +Description: +fd_safer_flag() function: adjust a file descriptor result so that it avoids +clobbering STD{IN,OUT,ERR}_FILENO, with specific flags. + +Files: +lib/fd-safer-flag.c +lib/dup-safer-flag.c + +Depends-on: +unistd-safer +cloexec + +configure.ac: +gl_MODULE_INDICATOR([fd-safer-flag]) + +Makefile.am: +lib_SOURCES += fd-safer-flag.c dup-safer-flag.c + +Include: +"unistd-safer.h" + +License: +GPL + +Maintainer: +Eric Blake diff --git a/modules/pipe2-safer b/modules/pipe2-safer index 7297c4ce62..e01a932f32 100644 --- a/modules/pipe2-safer +++ b/modules/pipe2-safer @@ -6,7 +6,7 @@ Files: lib/pipe2-safer.c Depends-on: -cloexec +fd-safer-flag pipe2 unistd-safer diff --git a/modules/stdlib-safer b/modules/stdlib-safer index ddeb865ac6..43e6a2db90 100644 --- a/modules/stdlib-safer +++ b/modules/stdlib-safer @@ -8,6 +8,7 @@ lib/mkstemp-safer.c m4/stdlib-safer.m4 Depends-on: +fd-safer-flag mkstemp stdlib unistd-safer diff --git a/modules/unistd-safer-tests b/modules/unistd-safer-tests index 17b17a035b..a6da5a9bd5 100644 --- a/modules/unistd-safer-tests +++ b/modules/unistd-safer-tests @@ -4,6 +4,7 @@ tests/test-dup-safer.c Depends-on: binary-io cloexec +fd-safer-flag stdbool configure.ac: |