|
|
#include <unistd.h>
char *ttyname(int fd)
int isatty(int fd)
int ttyslot(void);
Isatty returns 1 if fd 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. Ttyslot is not a POSIX function.
Ttyslot returns 0 if `/etc/ttys' is inaccessible or if it cannot determine the control terminal.
|
|
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97