*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: ttyname | Section: 3 | Source: UNIX v7 | File: ttyname.3
TTYNAME(3) Library Functions Manual TTYNAME(3) NAME ttyname, isatty, ttyslot - find name of a terminal SYNOPSIS char *ttyname(fildes) isatty(fildes) ttyslot() DESCRIPTION Ttyname returns a pointer to the null-terminated path name of the ter- minal device associated with file descriptor fildes. Isatty returns 1 if fildes is associated with a terminal device, 0 oth- erwise. Ttyslot returns the number of the entry in the ttys(5) file for the control terminal of the current process. FILES /dev/* /etc/ttys SEE ALSO ioctl(2), ttys(5) DIAGNOSTICS Ttyname returns a null pointer (0) if fildes does not describe a termi- nal device in directory `/dev'. Ttyslot returns 0 if `/etc/ttys' is inaccessible or if it cannot deter- mine the control terminal. BUGS The return value points to static data whose content is overwritten by each call. TTYNAME(3)

Navigation Options