ttyslot man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



ttyslot(3C)							   ttyslot(3C)

NAME
     ttyslot - find the slot in the utmp file of the current user

SYNOPSIS
     #include <stdlib.h>
     int ttyslot (void);

DESCRIPTION
     ttyslot returns the index of the current user's entry in the
     /var/adm/utmp file.  This is accomplished by calling ttyname(3C) to
     determine which device the calling program has associated with the
     standard input, the standard output, or the error output (0, 1 or 2).
     This device name is then searched for in the /var/adm/utmp file.

FILES
     /var/adm/utmp

SEE ALSO
     getut(3C), ttyname(3C)

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

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net