From 5a9ecb5bb2cad995cd97d2ca4be64f2d337ef2e4 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Mon, 18 Feb 2013 22:47:59 +0000 Subject: [PATCH] setbuf(3): Restore a BUGS section about setbuf(). The brokenness of setbuf() is not specific to 4.2BSD and 4.3BSD but inherent in the API definition. Reported by: bde --- lib/libc/stdio/setbuf.3 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libc/stdio/setbuf.3 b/lib/libc/stdio/setbuf.3 index 337a7c55deb..d1ae70b0334 100644 --- a/lib/libc/stdio/setbuf.3 +++ b/lib/libc/stdio/setbuf.3 @@ -32,7 +32,7 @@ .\" @(#)setbuf.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd February 15, 2013 +.Dd February 18, 2013 .Dt SETBUF 3 .Os .Sh NAME @@ -195,3 +195,6 @@ and functions conform to .St -isoC . +.Sh BUGS +.Fn setbuf +usually uses a suboptimal buffer size and should be avoided.