rework structure
This commit is contained in:
11
hifive1-vp/hello/bsp/libwrap/sys/isatty.c
Normal file
11
hifive1-vp/hello/bsp/libwrap/sys/isatty.c
Normal file
@ -0,0 +1,11 @@
|
||||
/* See LICENSE of license details. */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
int __wrap_isatty(int fd)
|
||||
{
|
||||
if (fd == STDOUT_FILENO || fd == STDERR_FILENO)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user