18 lines
316 B
C
18 lines
316 B
C
/* See LICENSE of license details. */
|
|
|
|
#include "semihosting.h"
|
|
#include "weak_under_alias.h"
|
|
#include <unistd.h>
|
|
|
|
int __wrap_isatty(int fd) {
|
|
#if defined(SEMIHOSTING)
|
|
int i = sh_istty(fd);
|
|
return i;
|
|
#endif
|
|
if (fd == STDOUT_FILENO || fd == STDERR_FILENO)
|
|
return 1;
|
|
|
|
return 0;
|
|
}
|
|
weak_under_alias(isatty);
|