From e0e6813a1da123d5b0cc920c5e0f20b0028c830b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 10 Nov 2009 16:53:24 +0100 Subject: fd_util: removed creat_cloexec() Add a "mode" argument to open_cloexec() instead. --- src/fd_util.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/fd_util.h') 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 -- cgit v1.2.3