Merge pull request #1307 from armink/fix_armlibc

[Libc][armlibc] Add STDIN_FILENO, STDOUT_FILENO and STDERR_FILENO
This commit is contained in:
Bernard Xiong 2018-03-23 10:17:34 +08:00 committed by GitHub
commit 213001fd7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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 */