summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-07-15 07:53:42 +0000
committerdd <dd@FreeBSD.org>2001-07-15 07:53:42 +0000
commita145482cf625d5f04072fd1d20b5c2062cbe8e47 (patch)
treed6c008b8ae357e7c4c800baa477713b82a6ee2f2 /lib/libc/stdio
parent0d7bb1fec635c87e914e57048716adc5a87cfe22 (diff)
downloadFreeBSD-src-a145482cf625d5f04072fd1d20b5c2062cbe8e47.zip
FreeBSD-src-a145482cf625d5f04072fd1d20b5c2062cbe8e47.tar.gz
Remove whitespace at EOL.
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/fgets.34
-rw-r--r--lib/libc/stdio/fseek.312
-rw-r--r--lib/libc/stdio/funopen.310
-rw-r--r--lib/libc/stdio/getc.32
-rw-r--r--lib/libc/stdio/mktemp.316
-rw-r--r--lib/libc/stdio/remove.32
-rw-r--r--lib/libc/stdio/setbuf.36
-rw-r--r--lib/libc/stdio/stdio.34
-rw-r--r--lib/libc/stdio/tmpnam.32
9 files changed, 29 insertions, 29 deletions
diff --git a/lib/libc/stdio/fgets.3 b/lib/libc/stdio/fgets.3
index c84d6bd..427b88e 100644
--- a/lib/libc/stdio/fgets.3
+++ b/lib/libc/stdio/fgets.3
@@ -85,11 +85,11 @@ if any, is sufficiently short to fit in the string.
.Sh RETURN VALUES
Upon successful completion,
.Fn fgets
-and
+and
.Fn gets
return
a pointer to the string.
-If end-of-file occurs before any characters are read,
+If end-of-file occurs before any characters are read,
they return
.Dv NULL
and the buffer contents is unchanged.
diff --git a/lib/libc/stdio/fseek.3 b/lib/libc/stdio/fseek.3
index f12e047..9a58668 100644
--- a/lib/libc/stdio/fseek.3
+++ b/lib/libc/stdio/fseek.3
@@ -77,7 +77,7 @@ The new position, measured in bytes, is obtained by adding
.Fa offset
bytes to the position specified by
.Fa whence .
-If
+If
.Fa whence
is set to
.Dv SEEK_SET ,
@@ -143,7 +143,7 @@ and
(with whence set to
.Dv SEEK_SET ) ,
setting and storing the current value of
-the file offset into or from the object referenced by
+the file offset into or from the object referenced by
.Fa pos .
On some
.Pq non- Ns Tn UNIX
@@ -180,7 +180,7 @@ is not a seekable stream.
.It Bq Er EINVAL
The
.Fa whence
-argument to
+argument to
.Fn fseek
was not
.Dv SEEK_SET ,
@@ -188,7 +188,7 @@ was not
or
.Dv SEEK_CUR .
.It Bq Er EOVERFLOW
-For
+For
.Fn ftell ,
the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
@@ -208,7 +208,7 @@ for any of the errors specified for the routines
.Xr fflush 3 ,
.Xr fstat 2 ,
.Xr lseek 2 ,
-and
+and
.Xr malloc 3 .
.Sh SEE ALSO
.Xr lseek 2
@@ -225,7 +225,7 @@ conform to
.St -isoC .
.Pp
The
-.Fn fseeko
+.Fn fseeko
and
.Fn ftello
functions conform to
diff --git a/lib/libc/stdio/funopen.3 b/lib/libc/stdio/funopen.3
index b035514..e1d0040 100644
--- a/lib/libc/stdio/funopen.3
+++ b/lib/libc/stdio/funopen.3
@@ -58,7 +58,7 @@ The
function
associates a stream with up to four
.Dq Tn I/O No functions .
-Either
+Either
.Fa readfn
or
.Fa writefn
@@ -73,7 +73,7 @@ close the new stream.
.Pp
In general, omitting a function means that any attempt to perform the
associated operation on the resulting stream will fail.
-If the close function is omitted, closing the stream will flush
+If the close function is omitted, closing the stream will flush
any buffered output and then succeed.
.Pp
The calling conventions of
@@ -90,7 +90,7 @@ and
.Xr close 2
with the single exception that they are passed the
.Fa cookie
-argument specified to
+argument specified to
.Fn funopen
in place of the traditional file descriptor argument.
.Pp
@@ -112,7 +112,7 @@ Additionally, all of the functions should set the external variable
.Va errno
appropriately if an error occurs.
.Pp
-An error on
+An error on
.Fn closefn
does not keep the stream open.
.Pp
@@ -126,7 +126,7 @@ as calls to
.Fn funopen
with only a read or write function specified.
.Sh RETURN VALUES
-Upon successful completion,
+Upon successful completion,
.Fn funopen
returns a
.Dv FILE
diff --git a/lib/libc/stdio/getc.3 b/lib/libc/stdio/getc.3
index bd099ab..db69606 100644
--- a/lib/libc/stdio/getc.3
+++ b/lib/libc/stdio/getc.3
@@ -54,7 +54,7 @@
.Ft int
.Fn getc "FILE *stream"
.Ft int
-.Fn getchar
+.Fn getchar
.Ft int
.Fn getw "FILE *stream"
.Sh DESCRIPTION
diff --git a/lib/libc/stdio/mktemp.3 b/lib/libc/stdio/mktemp.3
index 1f79e4f..27fc969 100644
--- a/lib/libc/stdio/mktemp.3
+++ b/lib/libc/stdio/mktemp.3
@@ -166,25 +166,25 @@ to any value specified by the
function.
.Sh NOTES
A common problem that results in a core dump is that the programmer
-passes in a read-only string to
+passes in a read-only string to
.Fn mktemp ,
.Fn mkstemp ,
.Fn mkstemps
or
.Fn mkdtemp .
-This is common with programs that were developed before
+This is common with programs that were developed before
.St -isoC
compilers were common.
For example, calling
.Fn mkstemp
-with an argument of
+with an argument of
.Qq /tmp/tempfile.XXXXXX
-will result in a core dump due to
+will result in a core dump due to
.Fn mkstemp
attempting to modify the string constant that was given.
If the program in question makes heavy use of that type
of function call, you do have the option of compiling the program
-so that it will store string constants in a writable segment of memory.
+so that it will store string constants in a writable segment of memory.
See
.Xr gcc 1
for more information.
@@ -196,7 +196,7 @@ are used to
increase the number of possible temporary filenames.
This makes the race in
.Fn mktemp ,
-between testing for a file's existence (in the
+between testing for a file's existence (in the
.Fn mktemp
function call)
and opening it for use
@@ -232,13 +232,13 @@ The
.Fn mkstemp
function appeared in
.Bx 4.4 .
-The
+The
.Fn mkdtemp
function first appeared in
.Ox 2.2 ,
and later in
.Fx 3.2 .
-The
+The
.Fn mkstemps
function first appeared in
.Ox 2.4 ,
diff --git a/lib/libc/stdio/remove.3 b/lib/libc/stdio/remove.3
index 6627afa..a79219f 100644
--- a/lib/libc/stdio/remove.3
+++ b/lib/libc/stdio/remove.3
@@ -63,7 +63,7 @@ is the equivalent of
Otherwise, it is the equivalent of
.Fn unlink "path" .
.Sh RETURN VALUES
-Upon successful completion,
+Upon successful completion,
.Fn remove
returns 0.
Otherwise, \-1 is returned and the global variable
diff --git a/lib/libc/stdio/setbuf.3 b/lib/libc/stdio/setbuf.3
index 28451580..d2b2056 100644
--- a/lib/libc/stdio/setbuf.3
+++ b/lib/libc/stdio/setbuf.3
@@ -69,7 +69,7 @@ output or input is read from any stream attached to a terminal device
The function
.Xr fflush 3
may be used to force the block out early.
-(See
+(See
.Xr fclose 3 . )
.Pp
Normally all files are block buffered.
@@ -108,7 +108,7 @@ The
parameter may be given as zero
to obtain deferred optimal-size buffer allocation as usual.
If it is not zero,
-then except for unbuffered files, the
+then except for unbuffered files, the
.Fa buf
argument should point to a buffer at least
.Fa size
@@ -135,7 +135,7 @@ but may have peculiar side effects
(such as discarding input or flushing output)
if the stream is ``active''.
Portable applications should call it only once on any given stream,
-and before any
+and before any
.Tn I/O
is performed.
.Pp
diff --git a/lib/libc/stdio/stdio.3 b/lib/libc/stdio/stdio.3
index c7dc30d..f91e2f7 100644
--- a/lib/libc/stdio/stdio.3
+++ b/lib/libc/stdio/stdio.3
@@ -117,10 +117,10 @@ At program startup, three streams are predefined and need not be
opened explicitly:
.Bl -bullet -compact -offset indent
.It
-.Em standard input
+.Em standard input
(for reading conventional input),
.It
-.Em standard output
+.Em standard output
(for writing conventional output), and
.It
.Em standard error
diff --git a/lib/libc/stdio/tmpnam.3 b/lib/libc/stdio/tmpnam.3
index 0c4e861..9a9d037 100644
--- a/lib/libc/stdio/tmpnam.3
+++ b/lib/libc/stdio/tmpnam.3
@@ -96,7 +96,7 @@ In either case,
.Fn tmpnam
returns a pointer to the file name.
.Pp
-The buffer referenced by
+The buffer referenced by
.Fa str
is expected to be at least
.Dv L_tmpnam
OpenPOWER on IntegriCloud