X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Ffs-util.c;h=9449e02a3f8130019553042811c6f08b065d3837;hb=bccdfb431a266e7671d518fd5a42362a5ce724c9;hp=a677fc571188273a8529499ff21f28948990e9f6;hpb=94c5f7fa9e34517edad75cd63d71dd459ec4f133;p=elogind.git diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c index a677fc571..9449e02a3 100644 --- a/src/basic/fs-util.c +++ b/src/basic/fs-util.c @@ -194,7 +194,6 @@ int readlink_value(const char *p, char **ret) { return 0; } -#endif // 0 int readlink_and_make_absolute(const char *p, char **r) { _cleanup_free_ char *target = NULL; @@ -216,8 +215,6 @@ int readlink_and_make_absolute(const char *p, char **r) { return 0; } -/// UNNEEDED by elogind -#if 0 int readlink_and_canonicalize(const char *p, char **r) { char *t, *s; int j; @@ -280,6 +277,8 @@ int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid) { return 0; } +/// UNNEEDED by elogind +#if 0 int fchmod_and_fchown(int fd, mode_t mode, uid_t uid, gid_t gid) { assert(fd >= 0); @@ -297,6 +296,7 @@ int fchmod_and_fchown(int fd, mode_t mode, uid_t uid, gid_t gid) { return 0; } +#endif // 0 int fchmod_umask(int fd, mode_t m) { mode_t u; @@ -370,6 +370,8 @@ int touch(const char *path) { return touch_file(path, false, USEC_INFINITY, UID_INVALID, GID_INVALID, MODE_INVALID); } +/// UNNEEDED by elogind +#if 0 int symlink_idempotent(const char *from, const char *to) { _cleanup_free_ char *p = NULL; int r; @@ -455,6 +457,7 @@ int mkfifo_atomic(const char *path, mode_t mode) { return 0; } +#endif // 0 int get_files_in_directory(const char *path, char ***list) { _cleanup_closedir_ DIR *d = NULL;