summaryrefslogtreecommitdiff
path: root/modules/execute
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-12-04 22:10:44 -0700
committerEric Blake <ebb9@byu.net>2009-12-05 14:29:23 -0700
commitd8ccc13ba3ba05654f9be09bba5492cc8da30c3b (patch)
treea7f6fdae30b716c3a409a7affd1d809d1c8eae0a /modules/execute
parenta4cfedb07defccd91a1b8290ab57be337bfd04b4 (diff)
downloadgnulib-d8ccc13ba3ba05654f9be09bba5492cc8da30c3b.tar.gz
cloexec: add dup_cloexec
This is needed to enforce correct semantics of mkostemp_safer. Meanwhile, it is one step closer to providing O_CLOEXEC support to open, as well as implementing portions of fcntl for mingw. * lib/cloexec.h (dup_cloexec): New prototype. Add copyright header and comments. * lib/cloexec.c (set_cloexec_flag): Add comments. (dup_cloexec): New function, with mingw implementation borrowed from... * lib/w32spawn.h (dup_noinherit): ...here. * modules/execute (Depends-on): Add cloexec. * modules/pipe (Depends-on): Likewise. * modules/cloexec (Depends-on): Add dup2. * modules/cloexec-tests (Files): New file. * tests/test-cloexec.c: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/execute')
-rw-r--r--modules/execute1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/execute b/modules/execute
index 88c4fa4f99..755e3e5b6d 100644
--- a/modules/execute
+++ b/modules/execute
@@ -8,6 +8,7 @@ lib/w32spawn.h
m4/execute.m4
Depends-on:
+cloexec
dup2
error
exit