*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> ttyslot (3c)              


ttyslot(3C)							   ttyslot(3C)

NAME    [Toc]    [Back]

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

SYNOPSIS    [Toc]    [Back]

     #include <stdlib.h>

     int ttyslot (void);

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]


SEE ALSO    [Toc]    [Back]

     getut(3C),	ttyname(3C)

DIAGNOSTICS    [Toc]    [Back]

     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.

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
ttyslot Tru64 Find the slot for the current user in the user accounting database
dup2 HP-UX duplicate an open file descriptor to a specific slot
utmpname Tru64 Access utmp file entries
pututline_r Tru64 Access utmp file entries
getutline_r Tru64 Access utmp file entries
pututline Tru64 Access utmp file entries
getutid Tru64 Access utmp file entries
getutline Tru64 Access utmp file entries
getutent_r Tru64 Access utmp file entries
getutent Linux access utmp file entries
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service