fd-util: export get_max_fd() so that we can use it in tests

This commit is contained in:
Lennart Poettering
2021-10-27 17:56:36 +02:00
parent ab27b2fe56
commit 73fc0cbc87
3 changed files with 7 additions and 5 deletions
+2
View File
@@ -57,6 +57,8 @@ DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(DIR*, closedir, NULL);
int fd_nonblock(int fd, bool nonblock);
int fd_cloexec(int fd, bool cloexec);
int get_max_fd(void);
int close_all_fds(const int except[], size_t n_except);
int close_all_fds_without_malloc(const int except[], size_t n_except);