LibC: add ENOBUFS errno

This commit is contained in:
Bananymous 2023-03-29 10:58:25 +03:00
parent 426b1482dd
commit cd0d10b64e
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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