*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: lseek | Section: 2 | Source: UNIX v10 | File: lseek.2
LSEEK(2) System Calls Manual LSEEK(2) NAME lseek, llseek - seek, move read/write pointer SYNOPSIS long lseek(fildes, offset, whence) long offset; Long llseek(fildes, offset, whence) Long offset; DESCRIPTION Lseek and llseek set the file pointer for the file associated with fildes as follows: If whence is 0, the pointer is set to offset bytes. If whence is 1, the pointer is set to its current location plus offset. If whence is 2, the pointer is set to the size of the file plus offset. The new file pointer value is returned. Type Long is a 64-bit quantity. Seeking far beyond the end of a file, then writing, creates a gap or `hole,' which occupies no physical space and reads as zeros. SEE ALSO open(2), fseek(3) DIAGNOSTICS EBADF, ESPIPE BUGS Lseek doesn't affect some special files. LSEEK(2)

Navigation Options