lib/bsp/standalone/src/arm/common/gcc/fstat.c
__attribute__((weak)) s32 _fstat(s32 fd, struct stat *buf)
{
  (void)fd;
  buf->st_mode = S_IFCHR; /* Always pretend to be a tty */

  return (0);
}
/*
 * fstat -- Since we have no file system, we just return an error.
 */
- Since we have no file system, we just return an error.
- Since we have no file system we just return an error .
__attribute__((weak)) s32 _fstat(s32 fd, struct stat *buf)
{
  (void)fd;
  buf->st_mode = S_IFCHR; 
  return (0);
}
__attribute__ ( ( weak ) ) s32 _fstat ( s32 fd , struct stat * buf ) { ( void ) fd ; buf -> st_mode = S_IFCHR ; return ( 0 ) ; }
fstat -- Since we have no file system, we just return an error.
fstat -- Since we have no file system we just return an error .
/* Always pretend to be a tty */