diff options
| author | armink <[email protected]> | 2018-03-22 12:09:39 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2018-03-22 12:09:39 +0800 |
| commit | b27b1d80322bf6cfc3e5854a64aa014ffc31cec2 (patch) | |
| tree | 8b74d011c4d4d6be5fee265092a2f64e9ef4eee3 | |
| parent | 2a9ce628e4241946518ce75e8f759b9c947dd675 (diff) | |
[Libc][armlibc] Add STDIN_FILENO, STDOUT_FILENO and STDERR_FILENO to armlibc/sys/unistd.h.
| -rw-r--r-- | components/libc/compilers/armlibc/sys/unistd.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <rtthread.h> #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 <dfs_posix.h> #else #define _FREAD 0x0001 /* read enabled */ |
