FPROCOPEN(3)

NAME
fprocopen - stream open functions on files below /proc/##

SYNOPSIS
#define _GNU_SOURCE
#include <stdio.h>
#include <proc/procio.h>

FILE *fprocopen(const char *path, const char *mode);

DESCRIPTION
The fprocopen function opens files below /proc/## whose name is the string to by path and associates a stream with it. The argument mode points to a string beginning with one of the following sequences

r   Open a file below /proc/## for reading even large buffers. The stream is positioned at the beginning of the file.

w[<del>]
    Open a file below /proc/## for writing even large buffers. The optional delimiter character can be one of the follwoing ' ', ',', '.', and ':' where the default is the colon ','. This allows to split very large input lines into pieces at this delimiter and write each of them to the opened file below /proc/##.

e   The underlying file descriptor will be closed if you use any of the ‘exec...’ functions within your code.

The internal API allows to use stdio functions to read and write large buffers below /proc/##.

SEE ALSO
fopen(3),
fopencookie(3)
setvbuf(3)
lseek(3)

COPYRIGHT
2018 Werner Fink,

AUTHOR
Werner Fink <werner@suse.de>