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]>);
36 int _unlink_r(<[ptr]>, <[file]>)
37 struct _reent *<[ptr]>;
41 This is a reentrant version of <<unlink>>. It
42 takes a pointer to the global data block, which holds
47 _DEFUN (_unlink_r
, (ptr
, file
),
48 struct _reent
*ptr _AND
54 if ((ret
= _unlink (file
)) == -1 && errno
!= 0)
59 #endif /* ! defined (REENTRANT_SYSCALLS_PROVIDED) */