Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ttyslot(3c) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                              ttyslot(3c)



        _________________________________________________________________
        ttyslot
        find the slot in the utmp file of the current user
        _________________________________________________________________


        SYNTAX

        int ttyslot ()


        DESCRIPTION

        Ttyslot returns the index of the current user's entry in the
        /etc/utmp file.  The call actually scans 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(3C), ttyname(3C).


        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.



















        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)



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