seek(2) plan9 man page | unix.com

Man Page: seek

Operating Environment: plan9

Section: 2

SEEK(2) 							System Calls Manual							   SEEK(2)

NAME
seek - change file offset
SYNOPSIS
#include <u.h> #include <libc.h> long seek(int fd, long n, int type)
DESCRIPTION
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.
SOURCE
/sys/src/libc/9syscall
SEE ALSO
intro(2), open(2)
DIAGNOSTICS
Sets errstr. SEEK(2)
Related Man Pages
lseek(2) - minix
dirread(2) - plan9
pipe(2) - plan9
seek(2) - netbsd
lseek(2) - osx
Similar Topics in the Unix Linux Community
cat a file from end to beginning
seeking help with shell script
seeking help in text processing
Seeking clarification: function within if conditional
Fresh Grasshopper Seeking Knowledge on inputing awk scripts and working with them?