X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Ffd-util.h;h=fe92b76c405c5880987e31dea53ff16076f61649;hp=e2f5bbdaf80a8c217833efeba3549d5430be6673;hb=3835ce8528f80dc21606c6c01b90423ba317289b;hpb=66ecc207e203db5434610395cd04c40ae8727b58 diff --git a/src/basic/fd-util.h b/src/basic/fd-util.h index e2f5bbdaf..fe92b76c4 100644 --- a/src/basic/fd-util.h +++ b/src/basic/fd-util.h @@ -65,6 +65,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(DIR*, closedir); int fd_nonblock(int fd, bool nonblock); int fd_cloexec(int fd, bool cloexec); +void stdio_unset_cloexec(void); int close_all_fds(const int except[], unsigned n_except); @@ -74,6 +75,8 @@ int same_fd(int a, int b); void cmsg_close_all(struct msghdr *mh); bool fdname_is_valid(const char *s); + +int fd_get_path(int fd, char **ret); #endif // 0 /* Hint: ENETUNREACH happens if we try to connect to "non-existing" special IP addresses, such as ::5 */