mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-17 11:54:24 +08:00
feat(newlib): Add function to mark the VFS to be tty type
This commit is contained in:
@ -79,6 +79,8 @@ int _unlink_r(struct _reent *r, const char *filename)
|
|||||||
|
|
||||||
int _fstat_r(struct _reent *r, int fd, struct stat *s)
|
int _fstat_r(struct _reent *r, int fd, struct stat *s)
|
||||||
{
|
{
|
||||||
|
s->st_mode = S_IFCHR;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user