X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.h;h=d229e1e68c95ac447462255fdf7907900f8b9482;hb=33c2ce7b200747c172d4899c717a8e9097d84659;hp=45cb09443d62edd896c2c106e4ba6280f9b2ecf9;hpb=20f56fddcd58c84fa73597486e905c652667214f;p=elogind.git diff --git a/src/shared/util.h b/src/shared/util.h index 45cb09443..d229e1e68 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -34,14 +33,13 @@ #include #include #include +#include #include #include -#include #include #include #include #include -#include #include #if SIZEOF_PID_T == 4 @@ -434,6 +432,7 @@ int sigaction_many(const struct sigaction *sa, ...); int fopen_temporary(const char *path, FILE **_f, char **_temp_path); ssize_t loop_read(int fd, void *buf, size_t nbytes, bool do_poll); +int loop_read_exact(int fd, void *buf, size_t nbytes, bool do_poll); int loop_write(int fd, const void *buf, size_t nbytes, bool do_poll); bool is_device_path(const char *path); @@ -1080,3 +1079,7 @@ void sigkill_wait(pid_t *pid); #define _cleanup_sigkill_wait_ _cleanup_(sigkill_wait) int syslog_parse_priority(const char **p, int *priority, bool with_facility); + +void cmsg_close_all(struct msghdr *mh); + +int rename_noreplace(int olddirfd, const char *oldpath, int newdirfd, const char *newpath);