summaryrefslogtreecommitdiff
path: root/components/libc/compilers/dlib/stdio.c
diff options
context:
space:
mode:
authorarmink <[email protected]>2018-01-12 16:55:47 +0800
committerarmink <[email protected]>2018-01-12 16:55:47 +0800
commit392a33d6c59b949d6264a3b438a38a4e3183eef2 (patch)
treeffcd0246bca6826a22edd0df8307f5a4ba575262 /components/libc/compilers/dlib/stdio.c
parentf54c8bab3c3550f168422586a00a57f35a51d082 (diff)
[libc] Add libc_stdio_get_console .
Diffstat (limited to 'components/libc/compilers/dlib/stdio.c')
-rw-r--r--components/libc/compilers/dlib/stdio.c4
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);