X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Futil.h;h=b5f44b8a1fbb5ecbccad7db3c45ef2e1678cb09d;hp=d2da3e2895e3fd1aba6c824129685b9f505024af;hb=b0438462089d1e1460429a57718305de08985908;hpb=a6dcc7e5924f9c27d3e9c6560a448b02ec28b65f diff --git a/src/shared/util.h b/src/shared/util.h index d2da3e289..b5f44b8a1 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -409,6 +409,7 @@ int fd_cloexec(int fd, bool cloexec); int close_all_fds(const int except[], unsigned n_except); bool fstype_is_network(const char *fstype); +bool fstype_is_deviceless(const char *fstype); int chvt(int vt); @@ -1053,6 +1054,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 +1083,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);