Add flexible buffered I/O based on fopencookie(3)

to be able to read and write large buffers below /proc.
The buffers and file offsets are handled dynamically
on the required buffer size at read, that is lseek(2)
is used to determine this size. Large buffers at
write are split at a delimeter into pieces and also
lseek(2) is used to write each of them.

Signed-off-by: Werner Fink <werner@suse.de>
This commit is contained in:
Werner Fink
2018-01-18 11:26:37 +01:00
committed by Craig Small
parent 6559450503
commit e0ab7cff1f
5 changed files with 389 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ global:
escape_str;
escape_strlist;
escaped_copy;
fprocopen;
free_slabinfo;
freeproc;
get_ns_id;