diff options
author | Tom Gundersen <teg@jklm.no> | 2015-11-13 14:18:32 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-11-13 14:18:32 +0100 |
commit | cf0f970fe1c6101b45cae8277c221c10398b8e1e (patch) | |
tree | 37f8ac193821e520a3c271be7685c06d79300e07 /src/basic/fileio.h | |
parent | 7152869f0a4a4612022244064cc2b3905b1e3fc7 (diff) | |
parent | 765afd5c4dbc71940d6dd6007ecc3eaa5a0b2aa1 (diff) |
Merge pull request #1879 from poettering/networkd-forward
stop managing per-interface IP forwarding settings
Diffstat (limited to 'src/basic/fileio.h')
-rw-r--r-- | src/basic/fileio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/basic/fileio.h b/src/basic/fileio.h index 5f2c941498..95e8698941 100644 --- a/src/basic/fileio.h +++ b/src/basic/fileio.h @@ -34,6 +34,7 @@ typedef enum { WRITE_STRING_FILE_CREATE = 1, WRITE_STRING_FILE_ATOMIC = 2, WRITE_STRING_FILE_AVOID_NEWLINE = 4, + WRITE_STRING_FILE_VERIFY_ON_FAILURE = 8, } WriteStringFileFlags; int write_string_stream(FILE *f, const char *line, bool enforce_newline); @@ -43,7 +44,7 @@ int read_one_line_file(const char *fn, char **line); int read_full_file(const char *fn, char **contents, size_t *size); int read_full_stream(FILE *f, char **contents, size_t *size); -int verify_one_line_file(const char *fn, const char *line); +int verify_file(const char *fn, const char *blob, bool accept_extra_nl); int parse_env_file(const char *fname, const char *separator, ...) _sentinel_; int load_env_file(FILE *f, const char *fname, const char *separator, char ***l); |