Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > T

ttyslot(3C)

TO BE OBSOLETED
HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

ttyslot() — find the slot in the utmpx 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 /etc/utmpx file. This is accomplished by scanning /etc/utmpx for the name of the terminal associated with the standard input, standard output, or standard error (file descriptor 0, 1 or 2).

RETURN VALUE

ttyslot() 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

ttyslot() is to be obsoleted at a future date.

FILES

/etc/utmpx

STANDARDS CONFORMANCE

ttyslot(): XPG2

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.