forked from Bananymous/banan-os
LibC: add ENOBUFS errno
This commit is contained in:
parent
7f90079ea7
commit
f4db246658
|
@ -13,6 +13,7 @@
|
||||||
#define EEXISTS 9
|
#define EEXISTS 9
|
||||||
#define ENOTEMPTY 10
|
#define ENOTEMPTY 10
|
||||||
#define ENAMETOOLONG 11
|
#define ENAMETOOLONG 11
|
||||||
|
#define ENOBUFS 12
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,9 @@ char* strerror(int error)
|
||||||
case ENAMETOOLONG:
|
case ENAMETOOLONG:
|
||||||
strcpy(buffer, "Filename too long");
|
strcpy(buffer, "Filename too long");
|
||||||
break;
|
break;
|
||||||
|
case ENOBUFS:
|
||||||
|
strcpy(buffer, "No buffer space available");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
// FIXME: sprintf
|
// FIXME: sprintf
|
||||||
|
|
Loading…
Reference in New Issue