diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-04-11 17:05:07 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-04-26 12:59:13 +0200 |
commit | 2705eaf36d46539397571886ba6ccd0045ef3e9b (patch) | |
tree | cd6e5e0a08aedf5373fd13f3f7c98616f7009856 /src/basic/fs-util.h | |
parent | 0d8d17b410396e92d931465768b22349aa6679e4 (diff) |
Prep v228: Substitute declaration masks (1/4)
Although it looks very ugly, substitute all declaration masks of the
form:
// UNNEEDED type foo(...);
with:
/// UNNEEDED by elogind
#if 0
type foo(...);
#endif // 0
to make future merging of upstream pathes easier, as the relevant
lines themselves are not changed any more.
Diffstat (limited to 'src/basic/fs-util.h')
-rw-r--r-- | src/basic/fs-util.h | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h index d36d2d6aa..55ee990f7 100644 --- a/src/basic/fs-util.h +++ b/src/basic/fs-util.h @@ -30,21 +30,26 @@ #include "time-util.h" int unlink_noerrno(const char *path); +/// UNNEEDED by elogind +#if 0 +int rmdir_parents(const char *path, const char *stop); -// UNNEEDED int rmdir_parents(const char *path, const char *stop); - -// UNNEEDED int rename_noreplace(int olddirfd, const char *oldpath, int newdirfd, const char *newpath); - +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 int readlink_value(const char *p, char **ret); -// UNNEEDED int readlink_and_make_absolute(const char *p, char **r); -// UNNEEDED int readlink_and_canonicalize(const char *p, char **r); -// UNNEEDED int readlink_and_make_absolute_root(const char *root, const char *path, char **ret); - +/// UNNEEDED by elogind +#if 0 +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 int fchmod_and_fchown(int fd, mode_t mode, uid_t uid, gid_t gid); - +/// UNNEEDED by elogind +#if 0 +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); @@ -53,13 +58,14 @@ 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 +int symlink_idempotent(const char *from, const char *to); -// UNNEEDED int symlink_idempotent(const char *from, const char *to); - -// UNNEEDED int symlink_atomic(const char *from, const char *to); -// UNNEEDED int mknod_atomic(const char *path, mode_t mode, dev_t dev); -// UNNEEDED int mkfifo_atomic(const char *path, mode_t mode); - +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); /// UNNEEDED by elogind |