LibC: Add EBADF errno

This commit is contained in:
Bananymous 2023-03-16 16:22:11 +02:00
parent 4493c9bbe6
commit e2707b9416
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@
#define ENOENT 5
#define EIO 6
#define ENOTSUP 7
#define EBADF 8
__BEGIN_DECLS

View File

@ -31,6 +31,9 @@ char* strerror(int error)
case ENOTSUP:
strcpy(buffer, "Operation not supported");
break;
case EBADF:
strcpy(buffer, "Bad file descriptor");
break;
default:
{
// FIXME: sprintf