mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:47:36 +00:00
LibC: A bunch of compat work towards porting GCC.
This commit is contained in:
parent
9fd4f4862b
commit
93c0dfd1d7
18 changed files with 166 additions and 13 deletions
|
@ -247,11 +247,11 @@ const char* sys_errlist[] = {
|
|||
__ENUMERATE_ALL_ERRORS
|
||||
#undef __ERROR
|
||||
};
|
||||
int sys_nerr = __errno_count;
|
||||
int sys_nerr = EMAXERRNO;
|
||||
|
||||
char* strerror(int errnum)
|
||||
{
|
||||
if (errnum >= __errno_count) {
|
||||
if (errnum >= EMAXERRNO) {
|
||||
printf("strerror() missing string for errnum=%d\n", errnum);
|
||||
return const_cast<char*>("Unknown error");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue