3 ttyslot, fttyslot \- utmp slot number
7 #define _MINIX_SOURCE 1
11 int fttyslot(int \fIfd\fP)
16 returns the index of the login terminal in the
28 returns the utmp index of the terminal associated with file descriptor
32 to a terminal name with
38 function for this terminal. This means that the utmp slot number is the
39 same as the ttytab entry number counting from 1. The value 0 is returned if
40 no slot number can be found for a file descriptor.
48 Since 0 is used as an error return this means that the first entry in the
49 utmp file is not used.
52 is often found in a UNIX implementation,
56 Kees J. Bot (kjb@cs.vu.nl)