Firmwares/bare-metal-bsp/libwrap/sys/isatty.c

14 lines
223 B
C
Raw Normal View History

2020-06-18 12:15:52 +02:00
/* See LICENSE of license details. */
#include <unistd.h>
2023-11-23 18:29:26 +01:00
#include "weak_under_alias.h"
2020-06-18 12:15:52 +02:00
int __wrap_isatty(int fd)
{
if (fd == STDOUT_FILENO || fd == STDERR_FILENO)
return 1;
return 0;
}
2023-11-23 18:29:26 +01:00
weak_under_alias(isatty);