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 ENOTSUP 7
#define EBADF 8 #define EBADF 8
#define EEXISTS 9 #define EEXISTS 9
#define ENOTEMPTY 10
__BEGIN_DECLS __BEGIN_DECLS

View File

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