diff --git a/libc/include/errno.h b/libc/include/errno.h index 815ccca3..96ed3e7e 100644 --- a/libc/include/errno.h +++ b/libc/include/errno.h @@ -10,6 +10,7 @@ #define EIO 6 #define ENOTSUP 7 #define EBADF 8 +#define EEXISTS 9 __BEGIN_DECLS diff --git a/libc/string/strerror.cpp b/libc/string/strerror.cpp index 893bb1b6..70f4d785 100644 --- a/libc/string/strerror.cpp +++ b/libc/string/strerror.cpp @@ -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