02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ttyslot(3C) ttyslot(3C)<br />

NAME<br />

ttyslot - find the slot in the utmp file of the current user<br />

SYNOPSIS<br />

int ttyslot ()<br />

DESCRIPTION<br />

ttyslot returns the index of the current user's entry in the<br />

/ etc/utmp file. This is accomplished by scanning the file<br />

/etc/inittab for the name of the terminal device associated<br />

with the standard input, the standard output, or the error output (0,<br />

1, or 2).<br />

SEE ALSO<br />

getut(3C), ttyname(3C).<br />

FILES<br />

/etc/inittab<br />

/etc/utmp<br />

RETURN VALUE<br />

A value of 0 is returned if an error is encountered while searching<br />

for the terminal name or if none of the above file descriptors is associated<br />

with a terminal device.<br />

February, 1990<br />

RevisionC<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!