From eb6fafd33b10f1a6c8628ed7c47819259bf07d73 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 19 Jan 1999 20:19:22 +0000 Subject: Per bug report from Jiri Gaisler that RTEMS would no longer build with the --disable-posix option, stubs for some routines (_getpid_r and _kill_r) that are normally defined with POSIX were added. --- cpukit/libcsupport/src/newlibc.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/libcsupport/src/newlibc.c b/cpukit/libcsupport/src/newlibc.c index bea592a46e..0c175b738e 100644 --- a/cpukit/libcsupport/src/newlibc.c +++ b/cpukit/libcsupport/src/newlibc.c @@ -391,7 +391,14 @@ pid_t __getpid(void) #if !defined(RTEMS_POSIX_API) pid_t getpid(void) { - return (0); + return 0; +} + +pid_t _getpid_r( + struct _reent *ptr +) +{ + return getpid(); } #endif @@ -401,6 +408,11 @@ int kill( pid_t pid, int sig ) { return 0; } + +int _kill_r( pid_t pid, int sig ) +{ + return 0; +} #endif int __kill( pid_t pid, int sig ) -- cgit v1.2.3