.Sh SYNOPSIS
.Fd #include <unistd.h>
.Ft off_t
-.Fn lseek "int fildes" "off_t offset" "int whence"
+.Fo lseek
+.Fa "int fildes"
+.Fa "off_t offset"
+.Fa "int whence"
+.Fc
.Sh DESCRIPTION
The
.Fn lseek
.Fa fildes
to the
argument
-.Fa offset
+.Fa offset ,
according to the directive
-.Fa whence.
+.Fa whence .
The argument
.Fa fildes
must be an open
.Fn Lseek
will fail and the file pointer will remain unchanged if:
.Bl -tag -width Er
+.\" ==========
.It Bq Er EBADF
.Em Fildes
is not an open file descriptor.
-.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.
+.\" ==========
+.It Bq Er EINVAL
+The seek location (calculated from
+.Fa offset
+and
+.Fa whence )
+is negative.
+.\" ==========
+.It Bq Er EOVERFLOW
+The seek location is too large to be stored
+in an object of type off_t.
+.\" ==========
+.It Bq Er ESPIPE
+.Em Fildes
+is associated with a pipe, socket, or FIFO.
.El
.Sh SEE ALSO
.Xr dup 2 ,