diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-05-24 13:51:31 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-06-16 10:12:58 +0200 |
commit | c733f9b08d9eadc5e671185112567ada81116bdf (patch) | |
tree | 5755965b950423eae4b3c8f462acaf940a9ad684 /src/basic/fs-util.h | |
parent | c6edc23d5f8a483e93a891bf7eb76b5f4caf2fb4 (diff) |
Prep v230: Apply missing upstream fixes and updates (2/8) src/basic.
Diffstat (limited to 'src/basic/fs-util.h')
-rw-r--r-- | src/basic/fs-util.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h index 2000b38a9..2c5a65026 100644 --- a/src/basic/fs-util.h +++ b/src/basic/fs-util.h @@ -30,11 +30,13 @@ #include "time-util.h" int unlink_noerrno(const char *path); + #if 0 /// UNNEEDED by elogind int rmdir_parents(const char *path, const char *stop); int rename_noreplace(int olddirfd, const char *oldpath, int newdirfd, const char *newpath); #endif // 0 + int readlinkat_malloc(int fd, const char *p, char **ret); int readlink_malloc(const char *p, char **r); #if 0 /// UNNEEDED by elogind @@ -43,10 +45,9 @@ int readlink_and_make_absolute(const char *p, char **r); int readlink_and_canonicalize(const char *p, char **r); int readlink_and_make_absolute_root(const char *root, const char *path, char **ret); #endif // 0 + int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid); -#if 0 /// UNNEEDED by elogind -int fchmod_and_fchown(int fd, mode_t mode, uid_t uid, gid_t gid); -#endif // 0 + int fchmod_umask(int fd, mode_t mode); int fd_warn_permissions(const char *path, int fd); @@ -60,6 +61,7 @@ int fd_warn_permissions(const char *path, int fd); int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode); int touch(const char *path); + #if 0 /// UNNEEDED by elogind int symlink_idempotent(const char *from, const char *to); @@ -67,6 +69,7 @@ int symlink_atomic(const char *from, const char *to); int mknod_atomic(const char *path, mode_t mode, dev_t dev); int mkfifo_atomic(const char *path, mode_t mode); #endif // 0 + int get_files_in_directory(const char *path, char ***list); #if 0 /// UNNEEDED by elogind @@ -81,4 +84,6 @@ union inotify_event_buffer { struct inotify_event ev; uint8_t raw[INOTIFY_EVENT_MAX]; }; + +int inotify_add_watch_fd(int fd, int what, uint32_t mask); #endif // 0 |