diff options
author | James Youngman <jay@gnu.org> | 2010-03-30 20:34:13 +0100 |
---|---|---|
committer | James Youngman <jay@gnu.org> | 2010-03-30 20:34:40 +0100 |
commit | 4968d14544e0dc1a0519d3bbdefbcf8027f5c3ab (patch) | |
tree | 78018d92cf5d8088fe679577428dfd3c36ee9ec2 /lib/fdleak.h | |
parent | fc181262f8d5c59c5275b6228e6d5e7cb29e294f (diff) | |
download | findutils-4968d14544e0dc1a0519d3bbdefbcf8027f5c3ab.tar.gz |
Support O_CREAT in open_cloexec.
* lib/fdleak.c: Include <stdarg.h> and "cloexec.h".
(open_cloexec): Support O_CREAT. Use O_CLOEXEC if it is available.
(O_CLOEXEC): #define to 0 if not already #defined.
* import-gnulib.config (modules): Import modules open (for
PROMOTED_MODE_T) and stdbool (for 'true').
* lib/fdleak.h: Update prototype of open_cloexec to allow mode to
be passed.
Signed-off-by: James Youngman <jay@gnu.org>
Diffstat (limited to 'lib/fdleak.h')
-rw-r--r-- | lib/fdleak.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fdleak.h b/lib/fdleak.h index 47b01cb5..0bb6d51d 100644 --- a/lib/fdleak.h +++ b/lib/fdleak.h @@ -19,5 +19,5 @@ void remember_non_cloexec_fds (void); void forget_non_cloexec_fds (void); void complain_about_leaky_fds (void); -int open_cloexec(const char *path, int flags); +int open_cloexec(const char *path, int flags, ...); |