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 #ifdef REENTRANT_SYSCALLS_PROVIDED
19 int _dummy_link_syscalls
= 1;
23 /* We use the errno variable used by the system dependent layer. */
29 <<_link_r>>---Reentrant version of link
36 int _link_r(struct _reent *<[ptr]>,
37 const char *<[old]>, const char *<[new]>);
40 This is a reentrant version of <<link>>. It
41 takes a pointer to the global data block, which holds
46 _link_r (struct _reent
*ptr
,
53 if ((ret
= _link (old
, new)) == -1 && errno
!= 0)
54 _REENT_ERRNO(ptr
) = errno
;
58 #endif /* ! defined (REENTRANT_SYSCALLS_PROVIDED) */