LibC: add errno ENOTEMPTY

This commit is contained in:
Bananymous 2023-03-19 05:43:40 +02:00
parent 61caf566fc
commit 0c582b4490
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,7 @@
#define ENOTSUP 7
#define EBADF 8
#define EEXISTS 9
#define ENOTEMPTY 10
__BEGIN_DECLS

View File

@ -37,6 +37,9 @@ char* strerror(int error)
case EEXISTS:
strcpy(buffer, "File exists");
break;
case ENOTEMPTY:
strcpy(buffer, "Directory not empty");
break;
default:
{
// FIXME: sprintf