#define _LUNA_SYSTEM_ERROR_EXTENSIONS #include #include extern "C" { // All other string functions are defined in luna/CString.cpp, so the same definitions can be used by both kernel // and userspace. char* strerror(int errnum) { return const_cast(error_string(errnum)); } }