1 --- _SB/Libc/stdio/FreeBSD/setbuf.3 2004-11-25 11:38:35.000000000 -0800
2 +++ _SB/Libc/stdio/FreeBSD/setbuf.3.edit 2006-06-28 16:55:52.000000000 -0700
7 -.Fn setbuf "FILE * restrict stream" "char * restrict buf"
9 +.Fa "FILE *restrict stream"
10 +.Fa "char *restrict buf"
13 -.Fn setbuffer "FILE *stream" "char *buf" "int size"
20 -.Fn setlinebuf "FILE *stream"
25 -.Fn setvbuf "FILE * restrict stream" "char * restrict buf" "int mode" "size_t size"
27 +.Fa "FILE *restrict stream"
28 +.Fa "char *restrict buf"
33 -The three types of buffering available are unbuffered, block buffered,
35 +Three types of buffering are available:
36 +unbuffered, block buffered, and line buffered.
37 When an output stream is unbuffered, information appears on the
38 destination file or terminal as soon as written;
39 -when it is block buffered many characters are saved up and written as a block;
40 -when it is line buffered characters are saved up until a newline is
41 -output or input is read from any stream attached to a terminal device
42 +when it is block buffered,
43 +many characters are saved up and written as a block;
44 +when it is line buffered,
45 +characters are saved up until a newline is output
46 +or input is read from any stream attached to a terminal device
54 -Normally all files are block buffered.
55 +Normally, all files are block buffered.
58 operation occurs on a file,
61 -and an optimally-sized buffer is obtained.
62 +is called and an optimally-sized buffer is obtained.
63 If a stream refers to a terminal
66 -normally does) it is line buffered.
67 +normally does), it is line buffered.
68 The standard error stream
73 may be used to alter the buffering behavior of a stream.
77 argument must be one of the following three macros:
78 .Bl -tag -width _IOFBF -offset indent