ttyslot(3c) hpux man page | unix.com

Man Page: ttyslot

Operating Environment: hpux

Section: 3c

ttyslot(3C)															       ttyslot(3C)

NAME
ttyslot() - find the slot in the utmpx file of the current user
SYNOPSIS
DESCRIPTION
returns the index of the current user's entry in the file. This is accomplished by scanning for the name of the terminal associated with the standard input, standard output, or standard error (file descriptor 0, 1 or 2).
RETURN VALUE
returns -1 if an error was encountered while searching for the terminal name or if none of file descriptors 0, 1, or 2 is associated with a terminal device.
WARNINGS
Obsolescent Interfaces is to be obsoleted at a future date.
FILES
SEE ALSO
getutx(3C), ttyname(3C), thread_safety(5).
STANDARDS CONFORMANCE
TO BE OBSOLETED ttyslot(3C)
Related Man Pages
ttyslot(3c) - opensolaris
ttyslot(3) - minix
ttyslot(3) - suse
isatty(3) - netbsd
ttyslot(3) - osf1
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
How to extract every repeated string between two specific string?
Sequence extraction
Hpux 11iV3 administration document
awk - Multi-line data to be stored in variable