summaryrefslogtreecommitdiffstats
path: root/src/basic/fd-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-11-04 18:20:19 +0100
committerLennart Poettering <lennart@poettering.net>2022-11-04 18:46:42 +0100
commited18c22c989495aab36512f03449222cfcf79aa7 (patch)
tree0eab5465c3269db20effa70420f40dee43b3f7e8 /src/basic/fd-util.h
parentfd-util: make fd_in_set() (and thus close_all_fds()) handle invalidated fds i... (diff)
downloadsystemd-ed18c22c989495aab36512f03449222cfcf79aa7.tar.xz
systemd-ed18c22c989495aab36512f03449222cfcf79aa7.zip
fd-util: add new fd_cloexec_many() helper
Diffstat (limited to 'src/basic/fd-util.h')
-rw-r--r--src/basic/fd-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/fd-util.h b/src/basic/fd-util.h
index d9896e27e8..29c7d86f27 100644
--- a/src/basic/fd-util.h
+++ b/src/basic/fd-util.h
@@ -56,6 +56,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(DIR*, closedir, NULL);
int fd_nonblock(int fd, bool nonblock);
int fd_cloexec(int fd, bool cloexec);
+int fd_cloexec_many(const int fds[], size_t n_fds, bool cloexec);
int get_max_fd(void);