Plan 9 - man page for seek (plan9 section 2)
|Linux & Unix Commands - Search Man Pages
seek - change file offset
long seek(int fd, long n, int type)
Seek sets the offset for the file associated with fd as follows:
If type is 0, the offset is set to n bytes.
If type is 1, the pointer is set to its current location plus n.
If type is 2, the pointer is set to the size of the file plus n.
The new file offset value is returned.
Seeking in a directory is not allowed. Seeking in a pipe is a no-op.
All times are GMT -4. The time now is 07:31 PM.