summaryrefslogtreecommitdiff
path: root/bsp/libwrap/sys/isatty.c
blob: 55eab0a5bc45f8d63c32a94c520baa00cce5663b (plain)
1
2
3
4
5
6
7
8
9
10
11
/* See LICENSE of license details. */

#include <unistd.h>

int __wrap_isatty(int fd)
{
  if (fd == STDOUT_FILENO || fd == STDERR_FILENO)
    return 1;

  return 0;
}