apio
ffc223c2cf
Also, add prototypes for calloc() and realloc(), which were already implemented but not in the header.
33 lines
499 B
C++
33 lines
499 B
C++
#include <luna.h>
|
|
#include <stdlib.h>
|
|
#include <sys/syscall.h>
|
|
#include <unistd.h>
|
|
|
|
extern "C"
|
|
{
|
|
noreturn void abort()
|
|
{
|
|
exit(-1);
|
|
}
|
|
|
|
noreturn void exit(int status)
|
|
{
|
|
syscall(SYS_exit, status);
|
|
__builtin_unreachable();
|
|
}
|
|
|
|
int atexit(void (*)(void))
|
|
{
|
|
NOT_IMPLEMENTED("atexit");
|
|
}
|
|
|
|
int atoi(const char*)
|
|
{
|
|
NOT_IMPLEMENTED("atoi");
|
|
}
|
|
|
|
char* getenv(const char*)
|
|
{
|
|
NOT_IMPLEMENTED("getenv");
|
|
}
|
|
} |