V1/man/man2/tell.2

        11/3/71                                                  SYS 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 r0
                  is one of:

                     if ptrname is 0, the value returned is offset;

                     if ptrname is 1, the value is the current
                     pointer plus offset

                     if ptrname is 2, the value returned is the
                     number 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