[CPP wrappers] Syscalls cleanup.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7257 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
barthess 2014-09-10 18:37:21 +00:00
parent 80fe560f5b
commit 616d5ef60b
1 changed files with 5 additions and 42 deletions

View File

@ -5,74 +5,37 @@
#include "syscalls_cpp.hpp" #include "syscalls_cpp.hpp"
/**
*
*/
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
void _exit(int status){ void _exit(int status){
(void) status; (void) status;
osalSysHalt("Unrealized"); osalSysHalt("Unrealized");
while(TRUE){} while(TRUE){}
} }
#ifdef __cplusplus
}
#endif
/**
*
*/
#ifdef __cplusplus
extern "C" {
#endif
pid_t _getpid(void){ pid_t _getpid(void){
return 1; return 1;
} }
#ifdef __cplusplus
}
#endif
/**
*
*/
#undef errno #undef errno
extern int errno; extern int errno;
#ifdef __cplusplus
extern "C" {
#endif
int _kill(int pid, int sig) { int _kill(int pid, int sig) {
(void)pid; (void)pid;
(void)sig; (void)sig;
errno = EINVAL; errno = EINVAL;
return -1; return -1;
} }
#ifdef __cplusplus
}
#endif
/**
*
*/
#ifdef __cplusplus
extern "C" {
#endif
void _open_r(void){ void _open_r(void){
return; return;
} }
#ifdef __cplusplus
}
#endif
/** void __cxa_pure_virtual() {
* osalSysHalt("Pure virtual function call.");
*/ }
#ifdef __cplusplus
extern "C" {
#endif
void __cxa_pure_virtual() {
osalSysHalt("Pure virtual function call.");
}
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif