2023-01-06 16:35:07 +00:00
|
|
|
#include <luna/SystemError.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
2023-03-12 09:45:21 +00:00
|
|
|
// All other string functions are defined in luna/CString.cpp, so the same definitions can be used by both kernel
|
|
|
|
// and userspace.
|
2023-01-06 16:35:07 +00:00
|
|
|
|
2023-05-02 08:46:18 +00:00
|
|
|
extern "C++" const char* error_string(int);
|
|
|
|
|
2023-01-06 16:35:07 +00:00
|
|
|
char* strerror(int errnum)
|
|
|
|
{
|
|
|
|
return const_cast<char*>(error_string(errnum));
|
|
|
|
}
|
|
|
|
}
|