X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Ffd-util.c;h=8b7065fd5d53b8ab1fb30fe11fc53bda2d6250b0;hp=d1b1db3a4ddc83b8c73ecf7c3ff51a19885d2fef;hb=bccdfb431a266e7671d518fd5a42362a5ce724c9;hpb=94c5f7fa9e34517edad75cd63d71dd459ec4f133 diff --git a/src/basic/fd-util.c b/src/basic/fd-util.c index d1b1db3a4..8b7065fd5 100644 --- a/src/basic/fd-util.c +++ b/src/basic/fd-util.c @@ -120,6 +120,8 @@ FILE* safe_fclose(FILE *f) { return NULL; } +/// UNNEEDED by elogind +#if 0 DIR* safe_closedir(DIR *d) { if (d) { @@ -130,6 +132,7 @@ DIR* safe_closedir(DIR *d) { return NULL; } +#endif // 0 int fd_nonblock(int fd, bool nonblock) { int flags, nflags; @@ -248,6 +251,8 @@ int close_all_fds(const int except[], unsigned n_except) { return r; } +/// UNNEEDED by elogind +#if 0 int same_fd(int a, int b) { struct stat sta, stb; pid_t pid; @@ -349,3 +354,4 @@ bool fdname_is_valid(const char *s) { return p - s < 256; } +#endif // 0