summaryrefslogtreecommitdiff
path: root/src/shared/fileio.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-15 11:55:43 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-15 11:57:07 +0200
commit70c949a42b2b0d0c9a2a567890483940cdc5f72c (patch)
tree11bd2bc1e49e2e89e19528b669f5af04cea3a9d6 /src/shared/fileio.h
parentce049dcda4a9d0c9a44667ca82bc9e21d7ea7748 (diff)
cgroup: never try to create files in cgroupfs, only open them for writing
This should have the benefit that cg_set_attribute() returns ENOENT instead of EACCESS when we use it for non-existing attributes.
Diffstat (limited to 'src/shared/fileio.h')
-rw-r--r--src/shared/fileio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/fileio.h b/src/shared/fileio.h
index 5122a9a4de..c256915799 100644
--- a/src/shared/fileio.h
+++ b/src/shared/fileio.h
@@ -27,6 +27,7 @@
int write_string_stream(FILE *f, const char *line);
int write_string_file(const char *fn, const char *line);
+int write_string_file_no_create(const char *fn, const char *line);
int write_string_file_atomic(const char *fn, const char *line);
int read_one_line_file(const char *fn, char **line);