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

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 *ttyname (ftldes)<br />

int fildes;<br />

int isatty (ftldes)<br />

int fildes;<br />

DESCRIPTION<br />

ttyname returns a pointer to a string contammg the nullterminated<br />

pathname of the terminal device associated with file<br />

descriptor fildes.<br />

RETURN VALUE<br />

t tyname returns a NULL pointer iffildes does not describe a terminal<br />

device in directory / dev.<br />

is at t y returns 1 if fildes is associated with a tenninal device;<br />

otherwise, it returns O.<br />

FILES<br />

/dev/*<br />

BUGS<br />

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

by each call.<br />

1<br />

February, 1990<br />

RevisionC

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

Saved successfully!

Ooh no, something went wrong!