chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgroup: honour sticky bit when trimming cgroup trees
[elogind.git]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index e23f309d3d499e51bc2a9c1e40f605e2fd70f990..b81edc8b2b18ca14049d50cacad7079515c7b16f 100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-362,7
+362,7
@@
int get_ctty(pid_t, dev_t *_devnr, char **r);
int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid);
int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid);
-int rm_rf(const char *path, bool only_dirs, bool delete_root);
+int rm_rf(const char *path, bool only_dirs, bool delete_root
, bool honour_sticky
);
int pipe_eof(int fd);
int pipe_eof(int fd);
@@
-467,6
+467,8
@@
bool in_charset(const char *s, const char* charset);
int block_get_whole_disk(dev_t d, dev_t *ret);
int block_get_whole_disk(dev_t d, dev_t *ret);
+int file_is_sticky(const char *p);
+
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)