From cf7c06297d04bade9cd04c056f9ed510e64dd7bd Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 5 Aug 2020 03:39:22 +0200 Subject: code -> fw --- fw/fe310/bsp/gloss/sys_isatty.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 fw/fe310/bsp/gloss/sys_isatty.c (limited to 'fw/fe310/bsp/gloss/sys_isatty.c') diff --git a/fw/fe310/bsp/gloss/sys_isatty.c b/fw/fe310/bsp/gloss/sys_isatty.c new file mode 100644 index 0000000..70aec43 --- /dev/null +++ b/fw/fe310/bsp/gloss/sys_isatty.c @@ -0,0 +1,7 @@ +#include + +int +_isatty(int fd) +{ + return ((fd == STDIN_FILENO) || (fd == STDOUT_FILENO) || (fd == STDERR_FILENO)); +} -- cgit v1.2.3