443
edits
-
Changes
Created page with "<strong>LSEEK</strong> ==SYNOPSIS== #include <unixio.h> long lseek(int fd, long offs, int wh) ==DESCRIPTION== This function operates in an analogous manner to <..."
<strong>LSEEK</strong>
==SYNOPSIS==
#include <unixio.h>
long lseek(int fd, long offs, int wh)
==DESCRIPTION==
This function operates in an analogous manner to
<strong>fseek</strong>(), however it does so on unbuffered low-level i/o
file descriptors, rather than on STDIO streams. It also
returns the resulting pointer location. Thus <strong>lseek(fd,
0L, 1)</strong> returns the current pointer location without
moving it. -1 is returned on error.
==SEE ALSO==
open, close, read, write
==SYNOPSIS==
#include <unixio.h>
long lseek(int fd, long offs, int wh)
==DESCRIPTION==
This function operates in an analogous manner to
<strong>fseek</strong>(), however it does so on unbuffered low-level i/o
file descriptors, rather than on STDIO streams. It also
returns the resulting pointer location. Thus <strong>lseek(fd,
0L, 1)</strong> returns the current pointer location without
moving it. -1 is returned on error.
==SEE ALSO==
open, close, read, write