summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1997-04-05 05:07:58 +0000
committertholo <tholo@openbsd.org>1997-04-05 05:07:58 +0000
commitbea3448c25acee655a7ebfc465680cb8750da5dc (patch)
treef39237a1802e8117064119c305a158d6da2a0d99 /lib/libc
parentCheck for overflow; from FreeBSD (diff)
downloadwireguard-openbsd-bea3448c25acee655a7ebfc465680cb8750da5dc.tar.xz
wireguard-openbsd-bea3448c25acee655a7ebfc465680cb8750da5dc.zip
Document that negative offsets will cause EINVAL as well.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/lseek.22
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/sys/lseek.2 b/lib/libc/sys/lseek.2
index 09374f76419..9a4f2b89753 100644
--- a/lib/libc/sys/lseek.2
+++ b/lib/libc/sys/lseek.2
@@ -120,7 +120,7 @@ is not an open file descriptor.
is associated with a pipe, socket, or FIFO.
.It Bq Er EINVAL
.Fa Whence
-is not a proper value.
+is not a proper value or the resulting offset would be negative.
.El
.Sh SEE ALSO
.Xr dup 2 ,