1 /* Reentrant versions of fstat system call. This implementation just
2 calls the fstat system call. */
11 /* Some targets provides their own versions of these functions. Those
12 targets should define REENTRANT_SYSCALLS_PROVIDED in TARGET_CFLAGS. */
15 #ifndef REENTRANT_SYSCALLS_PROVIDED
16 #define REENTRANT_SYSCALLS_PROVIDED
20 #ifdef REENTRANT_SYSCALLS_PROVIDED
22 int _dummy_fstat_syscalls
= 1;
26 /* We use the errno variable used by the system dependent layer. */
32 <<_fstat64_r>>---Reentrant version of fstat64
39 int _fstat64_r(struct _reent *<[ptr]>,
40 int <[fd]>, struct stat64 *<[pstat]>);
43 This is a reentrant version of <<fstat64>>. It
44 takes a pointer to the global data block, which holds
45 <<errno>>. This function is only enabled on systems
46 that define __LARGE64_FILES.
50 _fstat64_r (struct _reent
*ptr
,
57 if ((ret
= _fstat64 (fd
, pstat
)) == -1 && errno
!= 0)
58 _REENT_ERRNO(ptr
) = errno
;
62 #endif /* ! defined (REENTRANT_SYSCALLS_PROVIDED) */
64 #endif /* __LARGE64_FILES */