LibC: syscall() now returns -1 on error and updates errno
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user