X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.h;h=35ff2e3547f42e22f42ab10a677c79c090dadeb2;hb=069cfc85f876bb6966cb5a9bbe0235f5064622cd;hp=0af0299dbb502f113806f175458c82564bf5a70e;hpb=f67cc036ba92a3c71acb664ed2d548de5827cf1f;p=elogind.git diff --git a/src/shared/util.h b/src/shared/util.h index 0af0299db..35ff2e354 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -349,7 +349,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 fchmod_and_fchown(int fd, mode_t mode, uid_t uid, gid_t gid); -int rm_rf_children(int fd, bool only_dirs, bool honour_sticky); +int rm_rf_children(int fd, bool only_dirs, bool honour_sticky, struct stat *root_dev); int rm_rf(const char *path, bool only_dirs, bool delete_root, bool honour_sticky); int pipe_eof(int fd); @@ -512,4 +512,8 @@ int can_sleep(const char *type); bool is_valid_documentation_url(const char *url); +bool in_initrd(void); + +void warn_melody(void); + #endif