Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ttyslot(3C) — svr4 — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getut(3C)

ttyname(3C)



TTYSLOT(3C-SVR4)    RISC/os Reference Manual     TTYSLOT(3C-SVR4)



NAME
     ttyslot - find the slot in the utmp file of the current user

SYNOPSIS
     #include <stdlib.h>

     int ttyslot (void);

DESCRIPTION
     ttyslot returns the index of the current user's entry in the
     /var/adm/utmp file.  The returned index is accomplished by
     scanning files in /dev for the name of the terminal associ-
     ated with the standard input, the standard output, or the
     standard error output (0, 1, or 2).

FILES
     /var/adm/utmp

SEE ALSO
     getut(3C), ttyname(3C).

DIAGNOSTICS
     A value of -1 is returned if an error was encountered while
     searching for the terminal name or if none of the above file
     descriptors are associated with a terminal device.






























                        Printed 11/19/92                   Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026