LibC: Add EBADF errno
This commit is contained in:
parent
4493c9bbe6
commit
e2707b9416
|
@ -9,6 +9,7 @@
|
||||||
#define ENOENT 5
|
#define ENOENT 5
|
||||||
#define EIO 6
|
#define EIO 6
|
||||||
#define ENOTSUP 7
|
#define ENOTSUP 7
|
||||||
|
#define EBADF 8
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,9 @@ char* strerror(int error)
|
||||||
case ENOTSUP:
|
case ENOTSUP:
|
||||||
strcpy(buffer, "Operation not supported");
|
strcpy(buffer, "Operation not supported");
|
||||||
break;
|
break;
|
||||||
|
case EBADF:
|
||||||
|
strcpy(buffer, "Bad file descriptor");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
// FIXME: sprintf
|
// FIXME: sprintf
|
||||||
|
|
Loading…
Reference in New Issue