forked from Bananymous/banan-os
LibC: Add ENTOSUP errno
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
#define EISDIR 4
|
#define EISDIR 4
|
||||||
#define ENOENT 5
|
#define ENOENT 5
|
||||||
#define EIO 6
|
#define EIO 6
|
||||||
|
#define ENOTSUP 7
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ char* strerror(int error)
|
|||||||
case EIO:
|
case EIO:
|
||||||
strcpy(buffer, "Input/output error");
|
strcpy(buffer, "Input/output error");
|
||||||
break;
|
break;
|
||||||
|
case ENOTSUP:
|
||||||
|
strcpy(buffer, "Operation not supported");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
// FIXME: sprintf
|
// FIXME: sprintf
|
||||||
|
|||||||
Reference in New Issue
Block a user