1 /* Reentrant versions of file system calls. These implementations
2 just call the usual system calls. */
8 /* Some targets provides their own versions of these functions. Those
9 targets should define REENTRANT_SYSCALLS_PROVIDED in TARGET_CFLAGS. */
12 #ifndef REENTRANT_SYSCALLS_PROVIDED
13 #define REENTRANT_SYSCALLS_PROVIDED
17 #ifndef REENTRANT_SYSCALLS_PROVIDED
19 /* We use the errno variable used by the system dependent layer. */
25 <<_unlink_r>>---Reentrant version of unlink
32 int _unlink_r(struct _reent *<[ptr]>, const char *<[file]>);
35 This is a reentrant version of <<unlink>>. It
36 takes a pointer to the global data block, which holds
41 _unlink_r (struct _reent
*ptr
,
47 if ((ret
= _unlink (file
)) == -1 && errno
!= 0)
48 _REENT_ERRNO(ptr
) = errno
;
52 #endif /* ! defined (REENTRANT_SYSCALLS_PROVIDED) */