aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-08-21 21:44:48 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-08-21 21:44:48 +0000
commit2d2857f4803ed2608ad91af2b69d0b0161f4dc2e (patch)
tree8f6738b560a7991f878bf58bb9a4a4a2777e7940
parent924be33dc33cd2d3d3f5e2f9a22f6032366fca7a (diff)
downloadsrc-2d2857f4803ed2608ad91af2b69d0b0161f4dc2e.tar.gz
src-2d2857f4803ed2608ad91af2b69d0b0161f4dc2e.zip
Document new EINVAL, EOVERFLOW cases. Sort ERRORS
Notes
Notes: svn path=/head/; revision=82103
-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 362485bebc1d..4f3f4302f9f8 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 ,