diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-05 12:25:31 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-05 12:25:31 -0400 |
commit | e72180083e4b0203d1883b6054198decdb60071c (patch) | |
tree | 3032022750932b31296345883363c96e532fb956 /src/stdio/setlinebuf.c | |
parent | 8b61c816933abe9ac152a05ccf8bd801f7bc13bf (diff) | |
download | musl-e72180083e4b0203d1883b6054198decdb60071c.tar.gz musl-e72180083e4b0203d1883b6054198decdb60071c.tar.xz musl-e72180083e4b0203d1883b6054198decdb60071c.zip |
add more legacy functions: setlinebuf and setbuffer
Diffstat (limited to 'src/stdio/setlinebuf.c')
-rw-r--r-- | src/stdio/setlinebuf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stdio/setlinebuf.c b/src/stdio/setlinebuf.c new file mode 100644 index 00000000..b93c4d6a --- /dev/null +++ b/src/stdio/setlinebuf.c @@ -0,0 +1,7 @@ +#define _GNU_SOURCE +#include <stdio.h> + +void setlinebuf(FILE *f) +{ + setvbuf(f, 0, _IOLBF, 0); +} |