2014-08-03 20:23:16 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
#include "osal.h"
|
|
|
|
|
|
|
|
#include "syscalls_cpp.hpp"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2014-09-10 18:37:21 +00:00
|
|
|
|
2014-08-03 20:23:16 +00:00
|
|
|
void _exit(int status){
|
|
|
|
(void) status;
|
|
|
|
osalSysHalt("Unrealized");
|
|
|
|
while(TRUE){}
|
|
|
|
}
|
|
|
|
|
|
|
|
pid_t _getpid(void){
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#undef errno
|
|
|
|
extern int errno;
|
|
|
|
int _kill(int pid, int sig) {
|
|
|
|
(void)pid;
|
|
|
|
(void)sig;
|
|
|
|
errno = EINVAL;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void _open_r(void){
|
|
|
|
return;
|
|
|
|
}
|
2014-09-10 18:37:21 +00:00
|
|
|
|
|
|
|
void __cxa_pure_virtual() {
|
|
|
|
osalSysHalt("Pure virtual function call.");
|
2014-08-03 20:23:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|