summaryrefslogtreecommitdiffstats
path: root/newlib/libc/syscalls/sysfstat.c
blob: 7d446e82568f249940e8fb3d70307be87bcd35b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* connector for fstat */

#include <reent.h>
#include <unistd.h>

int
_DEFUN (fstat, (fd, pstat),
     int fd _AND
     struct stat *pstat)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
  return _fstat_r (_REENT, fd, pstat);
#else
  return _fstat (fd, pstat);
#endif
}