summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-30 20:34:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-30 20:34:46 +0000
commitb169590e9a15e04dda26483426c85c3f97447061 (patch)
tree19d153aeb8fe52efa1fe460f24e31eec22005eb4 /c
parent53fd6e29798cb5a4133ac28e82b02a37aa3d0693 (diff)
downloadrtems-b169590e9a15e04dda26483426c85c3f97447061.tar.bz2
added dummy versions of __kill and __getpid which assert(0) so that
applications which use only the rtems api (i.e. not the posix api) will link.
Diffstat (limited to 'c')
-rw-r--r--c/src/exec/libcsupport/src/newlibc.c23
-rw-r--r--c/src/lib/libc/newlibc.c23
2 files changed, 46 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/src/newlibc.c b/c/src/exec/libcsupport/src/newlibc.c
index 0e38845ecf..6a80d4944b 100644
--- a/c/src/exec/libcsupport/src/newlibc.c
+++ b/c/src/exec/libcsupport/src/newlibc.c
@@ -333,4 +333,27 @@ void _exit(int status)
}
#endif
+
+/*
+ * These are only supported in the posix api.
+ */
+
+#ifndef RTEMS_POSIX_API
+
+#include <assert.h>
+
+pid_t __getpid(void)
+{
+ assert( 0 );
+ return 0;
+}
+
+int __kill( pid_t pid, int sig )
+{
+ assert( 0 );
+ return 0;
+}
+
+#endif
+
#endif
diff --git a/c/src/lib/libc/newlibc.c b/c/src/lib/libc/newlibc.c
index 0e38845ecf..6a80d4944b 100644
--- a/c/src/lib/libc/newlibc.c
+++ b/c/src/lib/libc/newlibc.c
@@ -333,4 +333,27 @@ void _exit(int status)
}
#endif
+
+/*
+ * These are only supported in the posix api.
+ */
+
+#ifndef RTEMS_POSIX_API
+
+#include <assert.h>
+
+pid_t __getpid(void)
+{
+ assert( 0 );
+ return 0;
+}
+
+int __kill( pid_t pid, int sig )
+{
+ assert( 0 );
+ return 0;
+}
+
+#endif
+
#endif