NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | NOTE | ATTRIBUTES | SEE ALSO
#include <unistd.h>int isatty(int fd);
The isatty function checks whether or not the file descriptor soecified by fd is associated with a terminal device.
The isattyfunction returns 1 if the file descriptor is associated with a terminal device. It returns 0 otherwise.
In ChorusOS, isatty always returns 1 on a socket file descriptor.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | NOTE | ATTRIBUTES | SEE ALSO