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 fstat (fd, pstat) int fd; struct stat *pstat; { #ifdef REENTRANT_SYSCALLS_PROVIDED return _fstat_r (_REENT, fd, pstat); #else return _fstat (fd, pstat); #endif }