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. --- c/src/exec/libcsupport/src/newlibc.c | 23 +++++++++++++++++++++++ c/src/lib/libc/newlibc.c | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) (limited to 'c') 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 + +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 + +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