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

17 lines
247 B
C
Raw Normal View History

2000-02-18 03:39:52 +08:00
/* connector for fstat */
#include <reent.h>
#include <unistd.h>
int
fstat (fd, pstat)
int fd;
struct stat *pstat;
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _fstat_r (_REENT, fd, pstat);
#else
return _fstat (fd, pstat);
#endif
}