01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

NAME<br />

ttyname, isatty - find name of a terminal<br />

SYNOPSIS<br />

char •ttyna.me (fildes)<br />

int fildes;<br />

int isa.tty (fildes)<br />

int fildes;<br />

DESCRIPTION<br />

Ttyname returns a pointer to a string containing the nullterminated<br />

path name of the terminal device associated with file<br />

descriptor fildes.<br />

Isatty returns 1 if fildes is associated with a terminal device, 0<br />

otherwise.<br />

FILES<br />

/dev/*<br />

DIAGNOSTICS<br />

Ttyname returns a NULL pointer if fildes does not describe a terminal<br />

device in directory / dev.<br />

BUGS<br />

The return value points to static data whose content is overwritten<br />

by each call.<br />

- 1 -

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

Saved successfully!

Ooh no, something went wrong!