#include #include #include #include #include #include #define noreturn __attribute__((noreturn)) extern "C" { pid_t gettid() { return syscall(SYS_gettid); } unsigned int msleep(unsigned int ms) { return (unsigned int)syscall(SYS_sleep, ms); } noreturn void __luna_abort(const char* message) { fwrite(message, strlen(message), 1, stdout); abort(); } }