]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: move fd-close-on-exec.[ch] code into fd-util.[ch]
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Wed, 4 Oct 2017 12:28:38 +0000 (08:28 -0400)
committerJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Thu, 5 Oct 2017 19:41:10 +0000 (15:41 -0400)
src/lib/Makefile.am
src/lib/fd-close-on-exec.h [deleted file]
src/lib/fd-util.c [moved from src/lib/fd-close-on-exec.c with 100% similarity]
src/lib/fd-util.h

index 036a3830919145c7ef1865de3e623b8c6ba8000f..54e47da074709646e08ae44119fd26ef82dbb089 100644 (file)
@@ -29,8 +29,8 @@ liblib_la_SOURCES = \
        env-util.c \
        execv-const.c \
        failures.c \
-       fd-close-on-exec.c \
        fd-set-nonblock.c \
+       fd-util.c \
        fdatasync-path.c \
        fdpass.c \
        file-cache.c \
@@ -182,7 +182,6 @@ headers = \
        env-util.h \
        execv-const.h \
        failures.h \
-       fd-close-on-exec.h \
        fd-set-nonblock.h \
        fd-util.h \
        fdatasync-path.h \
diff --git a/src/lib/fd-close-on-exec.h b/src/lib/fd-close-on-exec.h
deleted file mode 100644 (file)
index 8d8b1d3..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef FD_CLOSE_ON_EXEC_H
-#define FD_CLOSE_ON_EXEC_H
-
-/* Change close-on-exec flag of fd. */
-void fd_close_on_exec(int fd, bool set);
-
-/* Verify that fds in given range don't exist. */
-void fd_debug_verify_leaks(int first_fd, int last_fd);
-
-#endif
similarity index 100%
rename from src/lib/fd-close-on-exec.c
rename to src/lib/fd-util.c
index 2606fe9f56ecea2e9d4f3b1fc35c068be084cbff..d0a12555110ca89587d426cd42a2494b5513f5b7 100644 (file)
@@ -1,7 +1,12 @@
 #ifndef FD_UTIL_H
 #define FD_UTIL_H
 
-#include "fd-close-on-exec.h"
 #include "fd-set-nonblock.h"
 
+/* Change close-on-exec flag of fd. */
+void fd_close_on_exec(int fd, bool set);
+
+/* Verify that fds in given range don't exist. */
+void fd_debug_verify_leaks(int first_fd, int last_fd);
+
 #endif