ttyslot(3C) ttyslot(3C)NAME ttyslot - finds 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). STATUS MESSAGES AND VALUES 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. FILES /etc/inittab File containing initialization table /etc/utmp Temporary file SEE ALSO getut(3C), ttyname(3C) January 1992 1