NAME
seek – change file offset |
SYNOPSIS
#include <u.h> #include <libc.h>
vlong seek(int fd, vlong n, int type) |
DESCRIPTION
Seek sets the offset for the file associated with fd as follows:
Seeking in a directory is not allowed. Seeking in a pipe is a
no–op. |
SOURCE
/sys/src/libc/9syscall |
SEE ALSO
intro(2), open(2) |
DIAGNOSTICS
Sets errstr. |