Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ttyslot(3C) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getut(3C)

ttyname(3C)




ttyslot(3C) ttyslot(3C)
NAME ttyslot - find the slot in the utmp file of the current user SYNOPSIS int ttyslot() DESCRIPTION ttyslot returns the index of the current user's entry in the /etc/utmp file. This is accomplished by scanning the file /etc/inittab for the name of the terminal device associated with the standard input, the standard output, or the error output (0, 1, or 2). SEE ALSO getut(3C), ttyname(3C). FILES /etc/inittab /etc/utmp RETURN VALUE A value of 0 is returned if an error is encountered while searching for the terminal name or if none of the above file descriptors is associated with a terminal device. April, 1990 1

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