TTYSLOT(S) XENIX System V TTYSLOT(S)
Name
ttyslot - Finds 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.
Files
/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.
Page 1 (printed 8/7/87)