1 /* Reentrant versions of open system call. */
10 /* Some targets provides their own versions of this functions. Those
11 targets should define REENTRANT_SYSCALLS_PROVIDED in TARGET_CFLAGS. */
14 #ifndef REENTRANT_SYSCALLS_PROVIDED
15 #define REENTRANT_SYSCALLS_PROVIDED
19 #ifndef REENTRANT_SYSCALLS_PROVIDED
21 /* We use the errno variable used by the system dependent layer. */
27 <<_open64_r>>---Reentrant version of open64
34 int _open64_r(struct _reent *<[ptr]>,
35 const char *<[file]>, int <[flags]>, int <[mode]>);
39 int _open64_r(<[ptr]>, <[file]>, <[flags]>, <[mode]>)
40 struct _reent *<[ptr]>;
46 This is a reentrant version of <<open64>>. It
47 takes a pointer to the global data block, which holds
48 <<errno>>. This function only exists on systems with
53 _open64_r (ptr
, file
, flags
, mode
)
62 if ((ret
= _open64 (file
, flags
, mode
)) == -1 && errno
!= 0)
67 #endif /* ! defined (REENTRANT_SYSCALLS_PROVIDED) */
69 #endif /* __LARGE64_FILES */