ttyname - return name of a terminal
#include <unistd.h>
char *ttyname ( int desc );
Returns a pointer to the pathname of the terminal device that is open
on the file descriptor desc, or NULL on error (for example, if desc is
not connected to a terminal).
POSIX.1
fstat(2), isatty(3)
Linux 1995-04-20 TTYNAME(3)
[ Back ] |