diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2015-03-18 15:07:54 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-03-18 15:07:54 -0400 |
commit | 4f3fb6e44500d6ce4781fbed8d547f6a7891fc66 (patch) | |
tree | ee040b07f4915150162f6c5b100da5f5abce723a /src/shared/util.h | |
parent | d80d6e858f7e308f0144c5d01e3eca21b09292d9 (diff) |
shared: import close_many() from upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index e9d9df1386..55701cf7a5 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -138,6 +138,8 @@ char *endswith(const char *s, const char *postfix) _pure_; int close_nointr(int fd); int safe_close(int fd); +void close_many(const int fds[], unsigned n_fd); + int parse_uid(const char *s, uid_t* ret_uid); #define parse_gid(s, ret_uid) parse_uid(s, ret_uid) |