man(1) Manual page archive

sys-tell(2) - Unix First Edition Manual Page
11/3/71SYS_TELL (II)

NAME tell -- get file pointer
SYNOPSIS (file descriptor in r0)sys tell; offset; ptrname / tell = 20.


(value returned in r0)
DESCRIPTION The file descriptor refers to an open file. The value returned in r0is one of:


if ptrname is 0, the value returned is offset; if ptrname is 1, the value is the currentpointer plus offset


if ptrname is 2, the value returned is thenumber of bytes in the file plus offset.
FILES
SEE_ALSO seek
DIAGNOSTICS The error bit (c--bit) is set if the file descriptor is unknown.
BUGS Tell doesn't work. Complain if you need it.
OWNER ken, dmr