From b27b1d80322bf6cfc3e5854a64aa014ffc31cec2 Mon Sep 17 00:00:00 2001 From: armink Date: Thu, 22 Mar 2018 12:09:39 +0800 Subject: [PATCH] [Libc][armlibc] Add STDIN_FILENO, STDOUT_FILENO and STDERR_FILENO to armlibc/sys/unistd.h. --- components/libc/compilers/armlibc/sys/unistd.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/libc/compilers/armlibc/sys/unistd.h b/components/libc/compilers/armlibc/sys/unistd.h index 38ba8b5072..56979955ba 100644 --- a/components/libc/compilers/armlibc/sys/unistd.h +++ b/components/libc/compilers/armlibc/sys/unistd.h @@ -4,6 +4,11 @@ #include #ifdef RT_USING_DFS + +#define STDIN_FILENO 0 /* standard input file descriptor */ +#define STDOUT_FILENO 1 /* standard output file descriptor */ +#define STDERR_FILENO 2 /* standard error file descriptor */ + #include #else #define _FREAD 0x0001 /* read enabled */