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]>);
44 int _fstat64_r(<[ptr]>, <[fd]>, <[pstat]>)
45 struct _reent *<[ptr]>;
47 struct stat *<[pstat]>;
50 This is a reentrant version of <<fstat64>>. It
51 takes a pointer to the global data block, which holds
52 <<errno>>. This function is only enabled on systems
53 that define __LARGE64_FILES.
57 _DEFUN (_fstat64_r
, (ptr
, fd
, pstat
),
58 struct _reent
*ptr _AND
65 if ((ret
= _fstat64 (fd
, pstat
)) == -1 && errno
!= 0)
70 #endif /* ! defined (REENTRANT_SYSCALLS_PROVIDED) */
72 #endif /* __LARGE64_FILES */