forked from Bananymous/banan-os
LibC: add errno EEXISTS
This commit is contained in:
parent
76d5364a55
commit
61caf566fc
|
@ -10,6 +10,7 @@
|
||||||
#define EIO 6
|
#define EIO 6
|
||||||
#define ENOTSUP 7
|
#define ENOTSUP 7
|
||||||
#define EBADF 8
|
#define EBADF 8
|
||||||
|
#define EEXISTS 9
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,9 @@ char* strerror(int error)
|
||||||
case EBADF:
|
case EBADF:
|
||||||
strcpy(buffer, "Bad file descriptor");
|
strcpy(buffer, "Bad file descriptor");
|
||||||
break;
|
break;
|
||||||
|
case EEXISTS:
|
||||||
|
strcpy(buffer, "File exists");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
// FIXME: sprintf
|
// FIXME: sprintf
|
||||||
|
|
Loading…
Reference in New Issue