summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2016-03-15 19:45:57 +0000
committerespie <espie@openbsd.org>2016-03-15 19:45:57 +0000
commite5b452aab12abe70ffda7743d39c3b545b2723c2 (patch)
tree89a2cd6e0a8c985eac4d111e6bd4bbbcfc122523 /lib/libc
parentAllocate amap slots for a virtual memory range reserved with sbrk lazily. (diff)
downloadwireguard-openbsd-e5b452aab12abe70ffda7743d39c3b545b2723c2.tar.xz
wireguard-openbsd-e5b452aab12abe70ffda7743d39c3b545b2723c2.zip
remind people rewind is seldom a good choice
okay jmc@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/fseek.37
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/stdio/fseek.3 b/lib/libc/stdio/fseek.3
index 53f021d9f72..36c133b0a4a 100644
--- a/lib/libc/stdio/fseek.3
+++ b/lib/libc/stdio/fseek.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fseek.3,v 1.16 2013/07/17 05:42:11 schwarze Exp $
+.\" $OpenBSD: fseek.3,v 1.17 2016/03/15 19:45:57 espie Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 17 2013 $
+.Dd $Mdocdate: March 15 2016 $
.Dt FSEEK 3
.Os
.Sh NAME
@@ -142,6 +142,9 @@ and these routines may be the only way to portably reposition a text stream.
The
.Fn rewind
function returns no value.
+Prefer
+.Fn seek ,
+which is just as portable, and does not hide errors.
Upon successful completion,
.Fn fgetpos ,
.Fn fseek ,