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/fileio.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/fileio.h')
-rw-r--r-- | src/basic/fileio.h | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/basic/fileio.h b/src/basic/fileio.h index 23b76cdac..f45b0d54a 100644 --- a/src/basic/fileio.h +++ b/src/basic/fileio.h @@ -51,16 +51,19 @@ int load_env_file(FILE *f, const char *fname, const char *separator, char ***l); int load_env_file_pairs(FILE *f, const char *fname, const char *separator, char ***l); int write_env_file(const char *fname, char **l); - -// UNNEEDED int executable_is_script(const char *path, char **interpreter); - +/// UNNEEDED by elogind +#if 0 +int executable_is_script(const char *path, char **interpreter); +#endif // 0 int get_proc_field(const char *filename, const char *pattern, const char *terminator, char **field); DIR *xopendirat(int dirfd, const char *name, int flags); int search_and_fopen(const char *path, const char *mode, const char *root, const char **search, FILE **_f); -// UNNEEDED int search_and_fopen_nulstr(const char *path, const char *mode, const char *root, const char *search, FILE **_f); - +/// UNNEEDED by elogind +#if 0 +int search_and_fopen_nulstr(const char *path, const char *mode, const char *root, const char *search, FILE **_f); +#endif // 0 #define FOREACH_LINE(line, f, on_error) \ for (;;) \ if (!fgets(line, sizeof(line), f)) { \ @@ -74,11 +77,17 @@ int fflush_and_check(FILE *f); int fopen_temporary(const char *path, FILE **_f, char **_temp_path); int mkostemp_safe(char *pattern, int flags); -// UNNEEDED int open_tmpfile(const char *path, int flags); +/// UNNEEDED by elogind +#if 0 +int open_tmpfile(const char *path, int flags); +#endif // 0 int tempfn_xxxxxx(const char *p, const char *extra, char **ret); int tempfn_random(const char *p, const char *extra, char **ret); -// UNNEEDED int tempfn_random_child(const char *p, const char *extra, char **ret); +/// UNNEEDED by elogind +#if 0 +int tempfn_random_child(const char *p, const char *extra, char **ret); -// UNNEEDED int write_timestamp_file_atomic(const char *fn, usec_t n); -// UNNEEDED int read_timestamp_file(const char *fn, usec_t *ret); +int write_timestamp_file_atomic(const char *fn, usec_t n); +int read_timestamp_file(const char *fn, usec_t *ret); +#endif // 0 |