summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/lseek.212
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/libc/sys/lseek.2 b/lib/libc/sys/lseek.2
index 362485b..4f3f430 100644
--- a/lib/libc/sys/lseek.2
+++ b/lib/libc/sys/lseek.2
@@ -118,12 +118,18 @@ will fail and the file position pointer will remain unchanged if:
.It Bq Er EBADF
.Em Fildes
is not an open file descriptor.
+.It Bq Er EINVAL
+.Fa Whence
+is not a proper value
+or the resulting file offset would
+be negative for a non-character special file.
+.It Bq Er EOVERFLOW
+The resulting file offset would be a value which cannot be represented
+correctly in an object of type
+.Fa off_t .
.It Bq Er ESPIPE
.Em Fildes
is associated with a pipe, socket, or FIFO.
-.It Bq Er EINVAL
-.Fa Whence
-is not a proper value.
.El
.Sh SEE ALSO
.Xr dup 2 ,
OpenPOWER on IntegriCloud