summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/newlibc.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libc/newlibc.c')
-rw-r--r--c/src/lib/libc/newlibc.c23
1 files changed, 23 insertions, 0 deletions
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