summaryrefslogtreecommitdiffstats
path: root/c/src/exec
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-01-19 20:19:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-01-19 20:19:22 +0000
commiteb6fafd33b10f1a6c8628ed7c47819259bf07d73 (patch)
treef783b580ede6b9f884e871b13671038b63e0f196 /c/src/exec
parentRemoved duplicate lines in file. (diff)
downloadrtems-eb6fafd33b10f1a6c8628ed7c47819259bf07d73.tar.bz2
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.
Diffstat (limited to 'c/src/exec')
-rw-r--r--c/src/exec/libcsupport/src/newlibc.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/c/src/exec/libcsupport/src/newlibc.c b/c/src/exec/libcsupport/src/newlibc.c
index bea592a46e..0c175b738e 100644
--- a/c/src/exec/libcsupport/src/newlibc.c
+++ b/c/src/exec/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 )