Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine
Ulm's Modula-2 Library:
SysLseek
NAME
SysLseek - set and return current position of a file descriptor
SYNOPSIS
PROCEDURE Lseek(fd: CARDINAL; offset: SystemTypes.OFF;
whence: CARDINAL) : BOOLEAN;
PROCEDURE Tell(fd: CARDINAL;
VAR offset: SystemTypes.OFF) : BOOLEAN;
DESCRIPTION
Lseek
sets the current position of fd to offset which
is interpreted in dependance of whence:
- 0
-
absolute
- 1
-
relative to the current position
- 2
-
relative to the end of the position
Tell
returns the current position of fd.
Note that not all file descriptors support these operations.
DIAGNOSTICS
On failure,
FALSE is returned and Errno.errno is set.
SEE ALSO
lseek(2)
Edited by: borchert, last change: 1997/02/26, revision: 1.1, converted to HTML: 1997/04/28
Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine