LibC: add ENOBUFS errno

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

View File

@ -13,6 +13,7 @@
#define EEXISTS 9
#define ENOTEMPTY 10
#define ENAMETOOLONG 11
#define ENOBUFS 12
__BEGIN_DECLS

View File

@ -43,6 +43,9 @@ char* strerror(int error)
case ENAMETOOLONG:
strcpy(buffer, "Filename too long");
break;
case ENOBUFS:
strcpy(buffer, "No buffer space available");
break;
default:
{
// FIXME: sprintf