1 /* Reentrant versions of stat64 system call. This implementation just
2 calls the stat64 system call. */
9 /* Some targets provides their own versions of these functions. Those
10 targets should define REENTRANT_SYSCALLS_PROVIDED in
14 #ifndef REENTRANT_SYSCALLS_PROVIDED
15 #define REENTRANT_SYSCALLS_PROVIDED
19 #ifdef REENTRANT_SYSCALLS_PROVIDED
21 int _dummy_stat64_syscalls
= 1;
25 /* We use the errno variable used by the system dependent layer. */
31 <<_stat64_r>>---Reentrant version of stat64
38 int _stat64_r(struct _reent *<[ptr]>,
39 const char *<[file]>, struct stat64 *<[pstat]>);
42 This is a reentrant version of <<stat64>>. It
43 takes a pointer to the global data block, which holds
48 _stat64_r (struct _reent
*ptr
,
55 if ((ret
= _stat64 (file
, pstat
)) == -1 && errno
!= 0)
56 _REENT_ERRNO(ptr
) = errno
;
60 #endif /* ! defined (REENTRANT_SYSCALLS_PROVIDED) */