diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-30 20:34:46 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-30 20:34:46 +0000 |
commit | b169590e9a15e04dda26483426c85c3f97447061 (patch) | |
tree | 19d153aeb8fe52efa1fe460f24e31eec22005eb4 /c/src/exec/libcsupport | |
parent | Eric Norum sent in new versions of the inline assembly macros which (diff) | |
download | rtems-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/src/exec/libcsupport')
-rw-r--r-- | c/src/exec/libcsupport/src/newlibc.c | 23 |
1 files changed, 23 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 |