Query: ttyname
OS: v7
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TTYNAME(3) Library Functions Manual TTYNAME(3)NAMEttyname, isatty, ttyslot - find name of a terminalSYNOPSISchar *ttyname(fildes) isatty(fildes) ttyslot()DESCRIPTIONTtyname returns a pointer to the null-terminated path name of the terminal device associated with file descriptor fildes. Isatty returns 1 if fildes is associated with a terminal device, 0 otherwise. Ttyslot returns the number of the entry in the ttys(5) file for the control terminal of the current process.FILES/dev/* /etc/ttysSEE ALSOioctl(2), ttys(5)DIAGNOSTICSTtyname returns a null pointer (0) if fildes does not describe a terminal device in directory `/dev'. Ttyslot returns 0 if `/etc/ttys' is inaccessible or if it cannot determine the control terminal.BUGSThe return value points to static data whose content is overwritten by each call. TTYNAME(3)
Related Man Pages |
---|
isatty(3) - mojave |
isatty(3c) - sunos |
ttyname_r(3) - netbsd |
ttyname_r(3c) - hpux |
ttyslot(3) - osx |
Similar Topics in the Unix Linux Community |
---|
Pam_UNIX_cred: cannot load ttyname Error 0 |