errno: add ENOTEMPTY for rmdir()

This commit is contained in:
Lephenixnoir 2021-12-30 18:18:54 +01:00
parent 937b7bfb63
commit dbfefe5172
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 35 additions and 33 deletions

View file

@ -25,6 +25,7 @@ extern int errno;
#define ESPIPE 14 /* File descriptor is unable to seek. */
#define EISDIR 15 /* File descriptor is a directory. */
#define ENOTDIR 16 /* File descriptor is not a directory. */
#define ENOTEMPTY 17 /* Directory is not empty. */
#ifdef __cplusplus
}

View file

@ -19,6 +19,7 @@ static char *errno_strings [] = {
[ESPIPE] = "Illegal seek",
[EISDIR] = "Is a directory",
[ENOTDIR] = "Not a directory",
[ENOTEMPTY] = "Directory not empty",
};
char *strerror(int e)