newlib: Drop _fstat implementation

We only need to implement fstat(), so drop the _fstat implementation and
have fstat() match the newlib docs for minimal implementation and only
set st_mode = S_IFCHR.

Change-Id: Iba9042707d1ee5975ab98293cfe20e2996b17c05
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2016-06-07 14:18:24 -05:00 committed by Anas Nashif
commit ab5614ed9e

View file

@ -85,14 +85,6 @@ int write(int fd, char *buf, int nbytes)
return nbytes;
}
int fstat(int fd, struct stat *buf)
{
buf->st_mode = S_IFCHR; /* Always pretend to be a tty */
buf->st_blksize = 0;
return 0;
}
int isatty(int file)
{
return 1;
@ -109,7 +101,7 @@ int getpid(void)
return 0;
}
int _fstat(int file, struct stat *st)
int fstat(int file, struct stat *st)
{
st->st_mode = S_IFCHR;
return 0;