aboutsummaryrefslogtreecommitdiff
path: root/src/fd_util.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-10 16:53:24 +0100
committerMax Kellermann <max@duempel.org>2009-11-10 16:53:24 +0100
commite0e6813a1da123d5b0cc920c5e0f20b0028c830b (patch)
treec6c70cbf701472a2f27d6e5d5274f569721d1028 /src/fd_util.h
parent3d2a9d35450876fe28708340e2b4ed3831d9d9af (diff)
fd_util: removed creat_cloexec()
Add a "mode" argument to open_cloexec() instead.
Diffstat (limited to 'src/fd_util.h')
-rw-r--r--src/fd_util.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/fd_util.h b/src/fd_util.h
index 8b94a3a2..57ad6328 100644
--- a/src/fd_util.h
+++ b/src/fd_util.h
@@ -46,14 +46,7 @@ struct sockaddr;
* supported by the OS).
*/
int
-open_cloexec(const char *path_fs, int flags);
-
-/**
- * Wrapper for creat(), which sets the CLOEXEC flag (atomically if
- * supported by the OS).
- */
-int
-creat_cloexec(const char *path_fs, int mode);
+open_cloexec(const char *path_fs, int flags, int mode);
/**
* Wrapper for pipe(), which sets the CLOEXEC flag (atomically if