summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorliuguang <[email protected]>2018-03-23 10:39:04 +0800
committerliuguang <[email protected]>2018-03-23 10:39:04 +0800
commitf4b8cc4c660968de3af12e70019e14f24cf233fe (patch)
tree423bb626ea3abc82738b965b0262e953817f527f /components
parent144e63eae2476867baaf151ade263a6785a37607 (diff)
parent213001fd7de8be37c8619840629a77d7e70d206e (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'components')
-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 */