summaryrefslogtreecommitdiff
path: root/code/fe310/bsp/gloss/sys_isatty.c
blob: 70aec431a55018a9cd9f9891b895a0d59f8fb392 (plain)
1
2
3
4
5
6
7
#include <unistd.h>

int
_isatty(int fd)
{
  return ((fd == STDIN_FILENO) || (fd == STDOUT_FILENO) || (fd == STDERR_FILENO));
}