]> git.ipfire.org Git - thirdparty/systemd.git/commit
fileio: add 'enforce_newline' argument to write_string_stream()
authorDaniel Mack <daniel@zonque.org>
Mon, 6 Jul 2015 21:31:44 +0000 (17:31 -0400)
committerDaniel Mack <daniel@zonque.org>
Mon, 6 Jul 2015 21:31:44 +0000 (17:31 -0400)
commit40beecdb6d1c73e5acb62ebac2ccbfd7891f2418
tree40626ff5f761e898e7343939878a10d87e9d29a8
parenteff8efe671e9ffa81e80ad13f791a32262567dfe
fileio: add 'enforce_newline' argument to write_string_stream()

Add a flag to control whether write_string_stream() should always enforce a
trailing newline character in the file.
src/basic/fileio.c
src/basic/fileio.h
src/sleep/sleep.c
src/test/test-fileio.c