chiark / gitweb /
sysctl: disable buffer while writing to /proc
authorTiago Salem Herrmann <therrmann@suse.com>
Tue, 12 Dec 2017 15:52:45 +0000 (13:52 -0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 12 Dec 2017 15:52:45 +0000 (13:52 -0200)
commit61837b944ab30193dbcb286b95470771efba82b2
tree258a72c27bee08dc20576d57c02b8ba62ebd6943
parentb4def29b8a9745ca45601058e76401a29db9dd2d
sysctl: disable buffer while writing to /proc

fputs() writes only first 2048 bytes and fails
to write to /proc when values are larger than that.
This patch adds a new flag to WriteStringFileFlags
that make it possible to disable the buffer under
specific cases.
src/basic/fileio.c
src/basic/fileio.h