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:
parent
44ef3c182b
commit
ab5614ed9e
1 changed files with 1 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue