Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ttyslot(S) — OpenDesktop Software Development System 1.0.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     TTYSLOT(S)                UNIX System V                TTYSLOT(S)



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

     Syntax
          int ttyslot ( )

     Description
          The ttyslot function returns the index of the current user's
          entry in the /etc/utmp file.  This is accomplished by
          actually scanning the file /etc/inittab for the name of the
          terminal associated with the standard input, the standard
          output, or the error output (0, 1 or 2).

     Files
          /etc/inittab
          /etc/utmp

     See Also
          getut(S), ttyname(S)

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

     Standards Conformance
          ttyslot is conformant with:
          The X/Open Portability Guide II of January 1987.
                                                (printed 6/20/89)



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