forked from Bananymous/banan-os
LibC: Add EBADF errno
This commit is contained in:
parent
4493c9bbe6
commit
e2707b9416
|
@ -9,6 +9,7 @@
|
|||
#define ENOENT 5
|
||||
#define EIO 6
|
||||
#define ENOTSUP 7
|
||||
#define EBADF 8
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue