COHERENT manpages

This page displays the COHERENT manpage for isatty() [Check if a device is a terminal].

List of available manpages
Index


isatty() -- General Function (libc) (libc)

Check if a device is a terminal
#include <unistd.h>
int isatty(fd) int fd;

isatty() checks  to see if a  device is a terminal.  It  returns one if the
file descriptor fd describes a terminal, and zero otherwise.

Files

/dev/* -- Terminal special files
/etc/ttys -- Login terminals

See Also

ioctl(),
libc,
tty,
ttyname(),
ttyslot(),
unistd.h
POSIX Standard, §4.7.2