BSD 4_3 release
[unix-history] / usr / man / man3 / fread.3s
index e2542f5..6f7836f 100644 (file)
@@ -1,4 +1,11 @@
-.TH FREAD 3S 
+.\" Copyright (c) 1980 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
+.\"
+.\"    @(#)fread.3s    6.1 (Berkeley) 5/15/85
+.\"
+.TH FREAD 3S  "May 15, 1985"
+.UC 4
 .SH NAME
 fread, fwrite \- buffered binary input/output
 .SH SYNOPSIS
 .SH NAME
 fread, fwrite \- buffered binary input/output
 .SH SYNOPSIS
@@ -18,7 +25,7 @@ fread, fwrite \- buffered binary input/output
 .SH DESCRIPTION
 .I Fread
 reads, into a block beginning at
 .SH DESCRIPTION
 .I Fread
 reads, into a block beginning at
-.I ptr,
+.IR ptr ,
 .I nitems
 of data of the type of
 .I *ptr
 .I nitems
 of data of the type of
 .I *ptr
@@ -26,6 +33,16 @@ from the named input
 .IR stream .
 It returns the number of items actually read.
 .PP
 .IR stream .
 It returns the number of items actually read.
 .PP
+If
+.I stream
+is
+.B stdin
+and the standard output is line buffered, then any partial output line
+will be flushed before any call to
+.IR read (2)
+to satisfy the
+.IR fread .
+.PP
 .I Fwrite
 appends at most
 .I nitems
 .I Fwrite
 appends at most
 .I nitems
@@ -37,11 +54,15 @@ to the named output
 .IR stream .
 It returns the number of items actually written.
 .SH "SEE ALSO"
 .IR stream .
 It returns the number of items actually written.
 .SH "SEE ALSO"
-read(2), write(2),
-fopen(3),
-getc(3), putc(3),
-gets(3), puts(3),
-printf(3), scanf(3)
+read(2),
+write(2),
+fopen(3S),
+getc(3S),
+putc(3S),
+gets(3S),
+puts(3S),
+printf(3S),
+scanf(3S)
 .SH DIAGNOSTICS
 .I Fread
 and
 .SH DIAGNOSTICS
 .I Fread
 and