chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resolved: fix notification iteration logic when transactions are completed
[elogind.git]
/
src
/
basic
/
fd-util.c
diff --git
a/src/basic/fd-util.c
b/src/basic/fd-util.c
index 8b7065fd5d53b8ab1fb30fe11fc53bda2d6250b0..6c3063298b21e688bf6ff9cd722a628a9178764b 100644
(file)
--- a/
src/basic/fd-util.c
+++ b/
src/basic/fd-util.c
@@
-1,5
+1,3
@@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-19,9
+17,18
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include "dirent-util.h"
+#include <errno.h>
+#include <fcntl.h>
+#include <sys/resource.h>
+#include <sys/socket.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
#include "fd-util.h"
#include "fd-util.h"
+#include "macro.h"
+#include "missing.h"
#include "parse-util.h"
#include "parse-util.h"
+#include "path-util.h"
#include "socket-util.h"
#include "util.h"
#include "socket-util.h"
#include "util.h"
@@
-120,8
+127,7
@@
FILE* safe_fclose(FILE *f) {
return NULL;
}
return NULL;
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
DIR* safe_closedir(DIR *d) {
if (d) {
DIR* safe_closedir(DIR *d) {
if (d) {
@@
-251,8
+257,7
@@
int close_all_fds(const int except[], unsigned n_except) {
return r;
}
return r;
}
-/// UNNEEDED by elogind
-#if 0
+#if 0 /// UNNEEDED by elogind
int same_fd(int a, int b) {
struct stat sta, stb;
pid_t pid;
int same_fd(int a, int b) {
struct stat sta, stb;
pid_t pid;