summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authormoebius.ever <[email protected]>2018-03-23 17:15:35 +0800
committermoebius.ever <[email protected]>2018-03-23 17:15:35 +0800
commitbb93c74810b213fb4b9dafabdb145c2ec42d6a89 (patch)
tree1646fbca44d7c46a687bdf8405fefe65ed70a9a7 /components/libc
parentfeeff73168b1e6bb3aa1a286add44af7ac940bc2 (diff)
parent8ed3470d2a485c49ec4f5d4a5ec53e94edf7a2c8 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/compilers/armlibc/sys/unistd.h5
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 */