newlib-cygwin/newlib/libc/syscalls/sysstat.c

17 lines
267 B
C
Raw Normal View History

2000-02-18 03:39:52 +08:00
/* connector for stat */
#include <reent.h>
#include <unistd.h>
int
_DEFUN (stat, (file, pstat),
char *file _AND
struct stat *pstat)
2000-02-18 03:39:52 +08:00
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _stat_r (_REENT, file, pstat);
#else
return _stat (file, pstat);
#endif
}