Firmwares/hello-world/bsp/libwrap/sys/isatty.c

14 lines
223 B
C
Raw Normal View History

2018-09-25 18:31:29 +02:00
/* See LICENSE of license details. */
#include <unistd.h>
2018-09-26 08:07:48 +02:00
#include "weak_under_alias.h"
2018-09-25 18:31:29 +02:00
int __wrap_isatty(int fd)
{
if (fd == STDOUT_FILENO || fd == STDERR_FILENO)
return 1;
return 0;
}
2018-09-26 08:07:48 +02:00
weak_under_alias(isatty);