mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-21 04:14:26 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user