Sat Sep 11 18:46:22 2021 UTC ()
fseek.3: fix grammar


(rillig)
diff -r1.28 -r1.29 src/lib/libc/stdio/fseek.3

cvs diff -r1.28 -r1.29 src/lib/libc/stdio/fseek.3 (expand / switch to unified diff)

--- src/lib/libc/stdio/fseek.3 2017/01/01 12:39:33 1.28
+++ src/lib/libc/stdio/fseek.3 2021/09/11 18:46:22 1.29
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: fseek.3,v 1.28 2017/01/01 12:39:33 abhinav Exp $ 1.\" $NetBSD: fseek.3,v 1.29 2021/09/11 18:46:22 rillig Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991, 1993 3.\" Copyright (c) 1990, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
5.\" 5.\"
6.\" This code is derived from software contributed to Berkeley by 6.\" This code is derived from software contributed to Berkeley by
7.\" Chris Torek and the American National Standards Committee X3, 7.\" Chris Torek and the American National Standards Committee X3,
8.\" on Information Processing Systems. 8.\" on Information Processing Systems.
9.\" 9.\"
10.\" Redistribution and use in source and binary forms, with or without 10.\" Redistribution and use in source and binary forms, with or without
11.\" modification, are permitted provided that the following conditions 11.\" modification, are permitted provided that the following conditions
12.\" are met: 12.\" are met:
13.\" 1. Redistributions of source code must retain the above copyright 13.\" 1. Redistributions of source code must retain the above copyright
14.\" notice, this list of conditions and the following disclaimer. 14.\" notice, this list of conditions and the following disclaimer.
@@ -23,27 +23,27 @@ @@ -23,27 +23,27 @@
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE. 32.\" SUCH DAMAGE.
33.\" 33.\"
34.\" @(#)fseek.3 8.1 (Berkeley) 6/4/93 34.\" @(#)fseek.3 8.1 (Berkeley) 6/4/93
35.\" 35.\"
36.Dd January 1, 2017 36.Dd September 11, 2021
37.Dt FSEEK 3 37.Dt FSEEK 3
38.Os 38.Os
39.Sh NAME 39.Sh NAME
40.Nm fgetpos , 40.Nm fgetpos ,
41.Nm fseek , 41.Nm fseek ,
42.Nm fseeko , 42.Nm fseeko ,
43.Nm fsetpos , 43.Nm fsetpos ,
44.Nm ftell , 44.Nm ftell ,
45.Nm ftello , 45.Nm ftello ,
46.Nm rewind 46.Nm rewind
47.Nd reposition a stream 47.Nd reposition a stream
48.Sh LIBRARY 48.Sh LIBRARY
49.Lb libc 49.Lb libc
@@ -120,27 +120,27 @@ to by @@ -120,27 +120,27 @@ to by
120.Fa stream 120.Fa stream
121to the beginning of the file. 121to the beginning of the file.
122It is equivalent to: 122It is equivalent to:
123.Pp 123.Pp
124.Dl (void)fseek(stream, 0L, SEEK_SET) 124.Dl (void)fseek(stream, 0L, SEEK_SET)
125.Pp 125.Pp
126except that the error indicator for the stream is also cleared 126except that the error indicator for the stream is also cleared
127(see 127(see
128.Xr clearerr 3 ) . 128.Xr clearerr 3 ) .
129.Pp 129.Pp
130In this implementations, 130In this implementations,
131.Dq Fa fpos_t 131.Dq Fa fpos_t
132is a complex object that represents both the position and the parse 132is a complex object that represents both the position and the parse
133state of the stream, making these routines as the only way to portably 133state of the stream, making these routines the only way to portably
134reposition a text stream. 134reposition a text stream.
135The 135The
136.Ar pos 136.Ar pos
137argument of 137argument of
138.Fn fsetpos 138.Fn fsetpos
139must always be initialized by 139must always be initialized by
140a call to 140a call to
141.Fn fgetpos . 141.Fn fgetpos .
142.Sh RETURN VALUES 142.Sh RETURN VALUES
143The 143The
144.Fn rewind 144.Fn rewind
145function 145function
146returns no value. 146returns no value.