]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Add text noting that disabling output buffering using setbuf()
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 19 Apr 2006 02:47:51 +0000 (02:47 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 19 Apr 2006 02:47:51 +0000 (02:47 +0000)
may be useful to catch errors on output operations.

man3/fmemopen.3

index 45a477cc87e84237c605bf929a047f5ae858d11b..3e90f2e96caf138f1fc21df87c89bdeb10987c58 100644 (file)
@@ -51,9 +51,13 @@ to allow for this.
 Attempts to write more than
 .I size
 bytes to the buffer result in an error.
-.\" FIXME Attempts to write more than 'size' bytes to the buffer 
-.\" should give an error, but see 
-.\" http://sourceware.org/bugzilla/show_bug.cgi?id=1995
+(Such errors will only be visible when the 
+.I stdio
+buffer is flushed.
+Disabling buffering with 
+.I setbuf(fp,\ NULL)
+may be useful to detect errors at the time of an output operation.)
+.\" see http://sourceware.org/bugzilla/show_bug.cgi?id=1995
 .PP
 In a stream opened for reading, 
 null bytes ('\\0') in the buffer do not cause read