Query: seek
OS: plan9
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SEEK(2) System Calls Manual SEEK(2)NAMEseek - change file offsetSYNOPSIS#include <u.h> #include <libc.h> long seek(int fd, long n, int type)DESCRIPTIONSeek 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.SOURCE/sys/src/libc/9syscallSEE ALSOintro(2), open(2)DIAGNOSTICSSets errstr. SEEK(2)
Related Man Pages |
---|
lseek(2) - mojave |
lseek(2) - bsd |
errstr(2) - plan9 |
pipe(2) - plan9 |
read(2) - plan9 |