| SYS-SEEK(2) | System Calls Manual | SYS-SEEK(2) |
seek - change file offset
include "sys.m"; sys := load Sys Sys->PATH; seek: fn(fd: ref FD, off: big, start: int): big;
Seek sets the 64-bit offset for the file associated with fd as follows:
The new file offset value is returned.
Seeking in a pipe is not allowed. Seeking in a directory is allowed only if the new offset is zero.