forked from Bananymous/banan-os
LibC: add errno ENOTEMPTY
This commit is contained in:
parent
61caf566fc
commit
0c582b4490
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue