X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Ffd-util.h;h=16304a1afa70f45d90d78814e8adcc3ce27ab9bc;hb=c5729796b4ec5e5f4800bfe6bd9ceb5c2da81fbe;hp=0d742b50b24c798c94813dd32a0cb4b3180d2054;hpb=bccdfb431a266e7671d518fd5a42362a5ce724c9;p=elogind.git diff --git a/src/basic/fd-util.h b/src/basic/fd-util.h index 0d742b50b..16304a1af 100644 --- a/src/basic/fd-util.h +++ b/src/basic/fd-util.h @@ -40,7 +40,9 @@ void close_many(const int fds[], unsigned n_fd); int fclose_nointr(FILE *f); FILE* safe_fclose(FILE *f); -// UNNEEDED DIR* safe_closedir(DIR *f); +#if 0 /// UNNEEDED by elogind +DIR* safe_closedir(DIR *f); +#endif // 0 static inline void closep(int *fd) { safe_close(*fd); @@ -68,8 +70,10 @@ int fd_cloexec(int fd, bool cloexec); int close_all_fds(const int except[], unsigned n_except); -// UNNEEDED int same_fd(int a, int b); +#if 0 /// UNNEEDED by elogind +int same_fd(int a, int b); -// UNNEEDED void cmsg_close_all(struct msghdr *mh); +void cmsg_close_all(struct msghdr *mh); -// UNNEEDED bool fdname_is_valid(const char *s); +bool fdname_is_valid(const char *s); +#endif // 0