git.ucc.asn.au
/
tpg
/
acess2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5228a99
)
Usermode/libc - Fixed some slight errno issues
author
John Hodge
<
[email protected]
>
Mon, 15 Jul 2013 02:15:14 +0000
(10:15 +0800)
committer
John Hodge
<
[email protected]
>
Mon, 15 Jul 2013 02:15:14 +0000
(10:15 +0800)
Usermode/Libraries/libc.so_src/errno.c
patch
|
blob
|
history
Usermode/Libraries/libc.so_src/include_exp/errno.enum.h
patch
|
blob
|
history
Usermode/Libraries/libc.so_src/include_exp/errno.h
patch
|
blob
|
history
diff --git
a/Usermode/Libraries/libc.so_src/errno.c
b/Usermode/Libraries/libc.so_src/errno.c
index
9877328
..
f1c3c4d
100644
(file)
--- a/
Usermode/Libraries/libc.so_src/errno.c
+++ b/
Usermode/Libraries/libc.so_src/errno.c
@@
-18,6
+18,9
@@
EXPORT const char *strerror(int errnum)
{
switch(errnum)
{
{
switch(errnum)
{
+ case EOK: return "Success";
+ case EISDIR: return "Is a directory";
+ case ENOTDIR: return "Not a directory";
case ENOSYS: return "Invalid instruction/syscall";
case ENOENT: return "No such file or directory";
case EINVAL: return "Bad arguments";
case ENOSYS: return "Invalid instruction/syscall";
case ENOENT: return "No such file or directory";
case EINVAL: return "Bad arguments";
diff --git
a/Usermode/Libraries/libc.so_src/include_exp/errno.enum.h
b/Usermode/Libraries/libc.so_src/include_exp/errno.enum.h
index
de9bd7b
..
831ab65
100644
(file)
--- a/
Usermode/Libraries/libc.so_src/include_exp/errno.enum.h
+++ b/
Usermode/Libraries/libc.so_src/include_exp/errno.enum.h
@@
-15,6
+15,7
@@
enum {
EEXIST, // Already exists
ENFILE, // Too many open files
ENOTDIR, // Not a directory
EEXIST, // Already exists
ENFILE, // Too many open files
ENOTDIR, // Not a directory
+ EISDIR, // Is a directory
EIO, // IO Error
EINTR, // Operation interrupted (signal)
EWOULDBLOCK, // Operation would have blocked
EIO, // IO Error
EINTR, // Operation interrupted (signal)
EWOULDBLOCK, // Operation would have blocked
diff --git
a/Usermode/Libraries/libc.so_src/include_exp/errno.h
b/Usermode/Libraries/libc.so_src/include_exp/errno.h
index
2fc26a3
..
a808379
100644
(file)
--- a/
Usermode/Libraries/libc.so_src/include_exp/errno.h
+++ b/
Usermode/Libraries/libc.so_src/include_exp/errno.h
@@
-5,15
+5,15
@@
* errno.h
* - Error values and related functions
*/
* errno.h
* - Error values and related functions
*/
-#ifndef _ERRNO_H_
-#define _ERRNO_H_
+#ifndef _
LIBC_
ERRNO_H_
+#define _
LIBC_
ERRNO_H_
// TODO: Fully implement errno.h, make sure it matches the kernel one
extern int *libc_geterrno(void);
#define errno (*libc_geterrno())
// TODO: Fully implement errno.h, make sure it matches the kernel one
extern int *libc_geterrno(void);
#define errno (*libc_geterrno())
-extern const char *strerr(int errnum);
+extern const char *strerr
or
(int errnum);
#include "errno.enum.h"
#include "errno.enum.h"
UCC
git Repository :: git.ucc.asn.au