forked from Imagelibrary/rtems
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
|
#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
|
#endif
|
||||||
|
|||||||
@@ -333,4 +333,27 @@ void _exit(int status)
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
#endif
|
||||||
|
|||||||
@@ -333,4 +333,27 @@ void _exit(int status)
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user