X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.h;h=29e85bb7e14fb7a2dcb56d520b2173fedcd8764a;hb=093c2cfe3b1ae6081f12927ae7906d90d6623534;hp=d2da3e2895e3fd1aba6c824129685b9f505024af;hpb=a6dcc7e5924f9c27d3e9c6560a448b02ec28b65f;p=elogind.git diff --git a/src/shared/util.h b/src/shared/util.h index d2da3e289..29e85bb7e 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -1053,6 +1053,7 @@ int same_fd(int a, int b); int chattr_fd(int fd, bool b, unsigned mask); int chattr_path(const char *p, bool b, unsigned mask); +int change_attr_fd(int fd, unsigned value, unsigned mask); int read_attr_fd(int fd, unsigned *ret); int read_attr_path(const char *p, unsigned *ret); @@ -1081,3 +1082,5 @@ void sigkill_wait(pid_t *pid); 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);