Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ttyslot(3v) — Ultrix-11 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getut(3)

ttyname(3)

ttyslot(3)

ttyslot(3v)

SYSTEM V Environment

NAME

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

SYNTAX

ttyslot()

DESCRIPTION

This is the SYSTEM V version of the ttyslot subroutine.  For the ULTRIX-11 version of this routine, read the ttyslot(3) manual page. 

The ttyslot subroutine returns the index of the current user’s entry in the /etc/utmp file. 

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 is associated with a terminal device. 

FILES

/etc/utmp

SEE ALSO

getut(3), ttyname(3), ttyslot(3)

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