forked from Bananymous/banan-os
LibC: add errno EEXISTS
This commit is contained in:
parent
76d5364a55
commit
61caf566fc
libc
|
@ -10,6 +10,7 @@
|
|||
#define EIO 6
|
||||
#define ENOTSUP 7
|
||||
#define EBADF 8
|
||||
#define EEXISTS 9
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue