diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-04-11 17:26:30 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-04-26 12:59:13 +0200 |
commit | c5729796b4ec5e5f4800bfe6bd9ceb5c2da81fbe (patch) | |
tree | d2610dc100e2b675389ccdc7ef3afc3ec162fce0 /src/basic/fs-util.h | |
parent | 756c392103bc01d409c1760146ac2df7dd8f8ede (diff) |
Prep v228: Condense elogind source masks (1/5)
Although having a two line mask like
/// UNNEEDED by elogind
#if 0
it is much more easier to read (and patch!) if those two lines were
condense into a one-line mask start like
#if 0 /// UNNEEDED by elogind
Diffstat (limited to 'src/basic/fs-util.h')
-rw-r--r-- | src/basic/fs-util.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h index 55ee990f7..b1719b69b 100644 --- a/src/basic/fs-util.h +++ b/src/basic/fs-util.h @@ -30,24 +30,21 @@ #include "time-util.h" int unlink_noerrno(const char *path); -/// UNNEEDED by elogind -#if 0 +#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); -/// UNNEEDED by elogind -#if 0 +#if 0 /// UNNEEDED by elogind int readlink_value(const char *p, char **ret); 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); -/// UNNEEDED by elogind -#if 0 +#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); @@ -58,8 +55,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); -/// UNNEEDED by elogind -#if 0 +#if 0 /// UNNEEDED by elogind int symlink_idempotent(const char *from, const char *to); int symlink_atomic(const char *from, const char *to); @@ -68,8 +64,7 @@ int mkfifo_atomic(const char *path, mode_t mode); #endif // 0 int get_files_in_directory(const char *path, char ***list); -/// UNNEEDED by elogind -#if 0 +#if 0 /// UNNEEDED by elogind #define INOTIFY_EVENT_MAX (sizeof(struct inotify_event) + NAME_MAX + 1) #define FOREACH_INOTIFY_EVENT(e, buffer, sz) \ |