diff options
| author | armink <[email protected]> | 2018-03-20 17:50:12 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2018-03-20 17:50:12 +0800 |
| commit | 991baa7a04644c355a7ccaf2d08b837a7657396c (patch) | |
| tree | f44c32aaa99fa9bbed989ee85514181eaa9b1218 /components/libc/compilers/dlib/sys | |
| parent | fed25c720e2779818d6d1b0e76a170b400725326 (diff) | |
[Libc][dlib] Add STDIN_FILENO, STDOUT_FILENO and STDERR_FILENO to dlib sys/unistd.h .
Diffstat (limited to 'components/libc/compilers/dlib/sys')
| -rw-r--r-- | components/libc/compilers/dlib/sys/unistd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/libc/compilers/dlib/sys/unistd.h b/components/libc/compilers/dlib/sys/unistd.h index 06a46746c0..dbe4f3010d 100644 --- a/components/libc/compilers/dlib/sys/unistd.h +++ b/components/libc/compilers/dlib/sys/unistd.h @@ -2,6 +2,11 @@ #define _SYS_UNISTD_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 */ |
