12345678910111213141516171819202122232425262728293031323334353637 |
- #include <stdio.h>
- #include <errno.h>
- #include "osal.h"
- #include "syscalls_cpp.hpp"
- #ifdef __cplusplus
- extern "C" {
- #endif
- void _exit(int status){
- (void) status;
- osalSysHalt("Unrealized");
- while(TRUE){}
- }
- #undef errno
- extern int errno;
- int _kill(int pid, int sig) {
- (void)pid;
- (void)sig;
- errno = EINVAL;
- return -1;
- }
- void _open_r(void){
- return;
- }
- void __cxa_pure_virtual() {
- osalSysHalt("Pure virtual function call.");
- }
- #ifdef __cplusplus
- }
- #endif
|