summaryrefslogtreecommitdiff
path: root/newlib/libc/syscalls/sysstat.c
blob: 39a506169e88b78b650c371db429a4f52e1de299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* connector for stat */

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

int
stat (file, pstat)
     char *file;
     struct stat *pstat;
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
  return _stat_r (_REENT, file, pstat);
#else
  return _stat (file, pstat);
#endif
}