File:  [Research Unix] / researchv10dc / dist / man / v3 / man2 / seek.2
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.pa 1
.he 'SEEK (II)'3/15/72'SEEK (II)'
.ti 0
NAME		seek  --  move read/write pointer
.sp
.ti 0
SYNOPSIS	(file descriptor in r0)
.br
sys seek; offset; ptrname  / seek = 19.
.a
.sp
.ti 0
DESCRIPTION	The file
descriptor refers to a file open for reading or writing.
The read (resp. write) pointer for the file is set as follows:
.in +3
.sp
if ptrname_______ is 0, the pointer is set to offset______.
.sp
if ptrname_______
is 1, the pointer is set to its current location plus offset______.
.sp
if ptrname_______ is 2, the pointer is set to the size of the
file plus offset______.
.sp
.in -3
.sp
.ti 0
SEE ALSO	--
.sp
.ti 0
DIAGNOSTICS	The error bit
(c-bit) is set for an undefined file descriptor.
.sp
.ti 0
BUGS		A file
can conceptually be as large
as 2**20 bytes.
Clearly only 2**16 bytes can be addressed by
seek____.
The problem is most acute on the
large special files.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.