1 /* Reentrant versions of syscalls need to support signal/raise.
2 These implementations just call the usual system calls. */
9 /* Some targets provides their own versions of these functions. Those
10 targets should define REENTRANT_SYSCALLS_PROVIDED in TARGET_CFLAGS. */
13 #ifndef REENTRANT_SYSCALLS_PROVIDED
14 #define REENTRANT_SYSCALLS_PROVIDED
18 #ifdef REENTRANT_SYSCALLS_PROVIDED
20 int _dummy_link_syscalls
= 1;
24 /* We use the errno variable used by the system dependent layer. */
30 <<_kill_r>>---Reentrant version of kill
37 int _kill_r(struct _reent *<[ptr]>, int <[pid]>, int <[sig]>);
40 This is a reentrant version of <<kill>>. It
41 takes a pointer to the global data block, which holds
46 _kill_r (struct _reent
*ptr
,
53 if ((ret
= _kill (pid
, sig
)) == -1 && errno
!= 0)
54 _REENT_ERRNO(ptr
) = errno
;
61 <<_getpid_r>>---Reentrant version of getpid
68 int _getpid_r(struct _reent *<[ptr]>);
71 This is a reentrant version of <<getpid>>. It
72 takes a pointer to the global data block, which holds
75 We never need <<errno>>, of course, but for consistency we
76 still must have the reentrant pointer argument.
80 _getpid_r (struct _reent
*ptr
)
87 #endif /* ! defined (REENTRANT_SYSCALLS_PROVIDED) */