aboutsummaryrefslogtreecommitdiffstats
path: root/io/wrap/setvbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/wrap/setvbuf.c')
-rw-r--r--io/wrap/setvbuf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/io/wrap/setvbuf.c b/io/wrap/setvbuf.c
new file mode 100644
index 0000000..bd411d5
--- /dev/null
+++ b/io/wrap/setvbuf.c
@@ -0,0 +1,8 @@
+#define NO_OPAQUE_TYPE
+#include "io.h"
+
+int _setvbuf_wrap(FILE *restrict file, char *restrict buffer, int mode,
+ size_t size)
+{
+ return setvbuf(file, buffer, mode, size);
+}