diff options
| author | armink <[email protected]> | 2018-01-12 16:55:47 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2018-01-12 16:55:47 +0800 |
| commit | 392a33d6c59b949d6264a3b438a38a4e3183eef2 (patch) | |
| tree | ffcd0246bca6826a22edd0df8307f5a4ba575262 /components/libc/compilers/dlib/stdio.c | |
| parent | f54c8bab3c3550f168422586a00a57f35a51d082 (diff) | |
[libc] Add libc_stdio_get_console .
Diffstat (limited to 'components/libc/compilers/dlib/stdio.c')
| -rw-r--r-- | components/libc/compilers/dlib/stdio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/libc/compilers/dlib/stdio.c b/components/libc/compilers/dlib/stdio.c index 24e421f2b3..12c1081d8b 100644 --- a/components/libc/compilers/dlib/stdio.c +++ b/components/libc/compilers/dlib/stdio.c @@ -58,6 +58,10 @@ int libc_stdio_set_console(const char* device_name, int mode) return std_fd; } +int libc_stdio_get_console(void) { + return std_fd; +} + int libc_stdio_read(void *buffer, size_t size) { return read(std_fd, buffer, size); |
