chiark / gitweb /
Prep v228: Substitute declaration masks (1/4)
[elogind.git] / src / basic / fd-util.h
index 0d742b50b24c798c94813dd32a0cb4b3180d2054..0e03e26b09c32a42c2a091687704a369ee43a1b4 100644 (file)
@@ -40,7 +40,10 @@ 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);
+/// UNNEEDED by elogind
+#if 0
+DIR* safe_closedir(DIR *f);
+#endif // 0
 
 static inline void closep(int *fd) {
         safe_close(*fd);
@@ -68,8 +71,11 @@ 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);
+/// UNNEEDED by elogind
+#if 0
+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