diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-11-04 18:20:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-11-04 18:46:42 +0100 |
commit | ed18c22c989495aab36512f03449222cfcf79aa7 (patch) | |
tree | 0eab5465c3269db20effa70420f40dee43b3f7e8 /src/basic/fd-util.h | |
parent | fd-util: make fd_in_set() (and thus close_all_fds()) handle invalidated fds i... (diff) | |
download | systemd-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.h | 1 |
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); |