isatty(3)

DESCRIPTION

Reports whether fd is one of Astia's standard console descriptors.

SYNOPSIS

#include <unistd.h>

int isatty(int fd);

RETURN VALUE

  • Returns nonzero for descriptors 0 through 2 and zero for every other value. This implementation does not set errno for a negative result.

ERRORS

No error is reported by this implementation.

NOTES

The result is a libc descriptor convention, not a probe of the descriptor's backing object. Use terminal ioctl operations when the descriptor's actual tty behavior matters.