LibC: add errno EEXISTS

This commit is contained in:
Bananymous 2023-03-19 04:17:39 +02:00
parent 76d5364a55
commit 61caf566fc
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -34,6 +34,9 @@ char* strerror(int error)
case EBADF:
strcpy(buffer, "Bad file descriptor");
break;
case EEXISTS:
strcpy(buffer, "File exists");
break;
default:
{
// FIXME: sprintf