chiark / gitweb /
networkd: be more defensive when writing to ipv4/ipv6 forwarding settings
[elogind.git] / src / shared / fileio.h
index 5ae51c1e28a9daa56d4fee59f25a11bf2f06922d..91d4a0d2d5034ec9610435f8fc55c0773fdf4995 100644 (file)
@@ -34,6 +34,8 @@ 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 parse_env_file(const char *fname, const char *separator, ...) _sentinel_;
 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);