diff options
author | 2016-03-15 19:45:57 +0000 | |
---|---|---|
committer | 2016-03-15 19:45:57 +0000 | |
commit | e5b452aab12abe70ffda7743d39c3b545b2723c2 (patch) | |
tree | 89a2cd6e0a8c985eac4d111e6bd4bbbcfc122523 /lib/libc | |
parent | Allocate amap slots for a virtual memory range reserved with sbrk lazily. (diff) | |
download | wireguard-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.3 | 7 |
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 , |