From b169590e9a15e04dda26483426c85c3f97447061 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 30 May 1996 20:34:46 +0000 Subject: 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. --- cpukit/libcsupport/src/newlibc.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'cpukit/libcsupport/src/newlibc.c') diff --git a/cpukit/libcsupport/src/newlibc.c b/cpukit/libcsupport/src/newlibc.c index 0e38845ecf..6a80d4944b 100644 --- a/cpukit/libcsupport/src/newlibc.c +++ b/cpukit/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 + +pid_t __getpid(void) +{ + assert( 0 ); + return 0; +} + +int __kill( pid_t pid, int sig ) +{ + assert( 0 ); + return 0; +} + +#endif + #endif -- cgit v1.2.3