From ecb70a5d033f2f2db6dc7d370f9713ea7f85a8a0 Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Thu, 17 May 2018 18:56:04 +0800 Subject: [PATCH] feat(newlib): Add function to mark the VFS to be tty type --- components/newlib/newlib/port/syscall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/newlib/newlib/port/syscall.c b/components/newlib/newlib/port/syscall.c index 23b9b67e..87e3ef23 100644 --- a/components/newlib/newlib/port/syscall.c +++ b/components/newlib/newlib/port/syscall.c @@ -79,6 +79,8 @@ int _unlink_r(struct _reent *r, const char *filename) int _fstat_r(struct _reent *r, int fd, struct stat *s) { + s->st_mode = S_IFCHR; + return 0; }