diff options
Diffstat (limited to 'c/src/exec/posix/src')
-rw-r--r-- | c/src/exec/posix/src/getpid.c | 19 | ||||
-rw-r--r-- | c/src/exec/posix/src/psignal.c | 20 |
2 files changed, 39 insertions, 0 deletions
diff --git a/c/src/exec/posix/src/getpid.c b/c/src/exec/posix/src/getpid.c index b42981398a..8e912adf39 100644 --- a/c/src/exec/posix/src/getpid.c +++ b/c/src/exec/posix/src/getpid.c @@ -20,3 +20,22 @@ pid_t getpid( void ) { return _Objects_Local_node; } + +/* + * _getpid_r + * + * This is the Newlib dependent reentrant version of getpid(). + */ + +#if defined(RTEMS_NEWLIB) + +#include <reent.h> + +pid_t _getpid_r( + struct _reent *ptr +) +{ + return getpid(); +} +#endif + diff --git a/c/src/exec/posix/src/psignal.c b/c/src/exec/posix/src/psignal.c index 5db634a924..1450164021 100644 --- a/c/src/exec/posix/src/psignal.c +++ b/c/src/exec/posix/src/psignal.c @@ -1222,6 +1222,26 @@ int kill( } /* + * _kill_r + * + * This is the Newlib dependent reentrant version of kill(). + */ + +#if defined(RTEMS_NEWLIB) + +#include <reent.h> + +int _kill_r( + struct _reent *ptr, + pid_t pid, + int sig +) +{ + return kill( pid, sig ); +} +#endif + +/* * 3.3.9 Queue a Signal to a Process, P1003.1b-1993, p. 78 */ |