Retro68/gcc/newlib/libc/syscalls/sysisatty.c
Wolfgang Thaller d464252791 re-add newlib
2017-04-11 23:13:36 +02:00

16 lines
215 B
C

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