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.
This commit is contained in:
Joel Sherrill
1996-05-30 20:34:46 +00:00
parent 53fd6e2979
commit b169590e9a
3 changed files with 69 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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