LibC: syscall() now returns -1 on error and updates errno

This commit is contained in:
2023-05-07 01:51:39 +03:00
parent 12e42f40c5
commit 054c5450df
5 changed files with 23 additions and 20 deletions

View File

@@ -128,6 +128,9 @@ char* strerror(int error)
case EMFILE:
strcpy(buffer, "File descriptor value too large");
break;
case ENOSYS:
strcpy(buffer, "Function not implemented");
break;
default:
{
// FIXME: sprintf