uniLoader/lib/syscalls/sysisatty.c
Ivaylo Ivanov a1be36ae02 EXPERIMENTAL: Partially implement NewLib
Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
2023-07-19 19:37:17 +03:00

15 lines
196 B
C

/* connector for isatty */
#include <reent.h>
#include <unistd.h>
int
isatty (int fd)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _isatty_r (_REENT, fd);
#else
return _isatty (fd);
#endif
}