Index: uspace/lib/c/generic/io/io.c
===================================================================
--- uspace/lib/c/generic/io/io.c	(revision 6218d4b71205dbf06e36900cf6a062831be5fe34)
+++ uspace/lib/c/generic/io/io.c	(revision 7699c21997a8c1ecedb909c7b97ea3e03ec0de53)
@@ -192,4 +192,18 @@
 }
 
+/** Set stream buffer.
+ *
+ * When @p buf is NULL, the stream is set as unbuffered, otherwise
+ * full buffering is enabled.
+ */
+void setbuf(FILE *stream, void *buf)
+{
+	if (buf == NULL) {
+		setvbuf(stream, NULL, _IONBF, BUFSIZ);
+	} else {
+		setvbuf(stream, buf, _IOFBF, BUFSIZ);
+	}
+}
+
 static void _setvbuf(FILE *stream)
 {
Index: uspace/lib/c/include/stdio.h
===================================================================
--- uspace/lib/c/include/stdio.h	(revision 6218d4b71205dbf06e36900cf6a062831be5fe34)
+++ uspace/lib/c/include/stdio.h	(revision 7699c21997a8c1ecedb909c7b97ea3e03ec0de53)
@@ -143,4 +143,5 @@
 
 extern void setvbuf(FILE *, void *, int, size_t);
+extern void setbuf(FILE *, void *);
 
 /* Misc file functions */
