chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
basic: modernize conf-files.c a bit
[elogind.git]
/
src
/
basic
/
fd-util.h
diff --git
a/src/basic/fd-util.h
b/src/basic/fd-util.h
index 0e9182d75be165fbc2a59892ac281ac6785f3fba..16304a1afa70f45d90d78814e8adcc3ce27ab9bc 100644
(file)
--- 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);
int fclose_nointr(FILE *f);
FILE* safe_fclose(FILE *f);
+#if 0 /// UNNEEDED by elogind
DIR* safe_closedir(DIR *f);
DIR* safe_closedir(DIR *f);
+#endif // 0
static inline void closep(int *fd) {
safe_close(*fd);
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);
int close_all_fds(const int except[], unsigned n_except);
+#if 0 /// UNNEEDED by elogind
int same_fd(int a, int b);
void cmsg_close_all(struct msghdr *mh);
bool fdname_is_valid(const char *s);
int same_fd(int a, int b);
void cmsg_close_all(struct msghdr *mh);
bool fdname_is_valid(const char *s);
+#endif // 0