X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc.so_src%2Finclude_exp%2Ferrno.h;h=f06706ffc755d147e7145ba3c722f7a792f89c83;hb=70238519b199edb871c392af829400edf79dd41b;hp=c7f5b4912317af088c621dbd6d1f7855b2bb015f;hpb=bf0187772ecfb475eedf5e0e9b8460b4f1a3f445;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc.so_src/include_exp/errno.h b/Usermode/Libraries/libc.so_src/include_exp/errno.h index c7f5b491..f06706ff 100644 --- a/Usermode/Libraries/libc.so_src/include_exp/errno.h +++ b/Usermode/Libraries/libc.so_src/include_exp/errno.h @@ -1,12 +1,20 @@ -#ifndef _ERRNO_H_ -#define _ERRNO_H_ +/** + * Acess2 C Library + * - By John Hodge (thePowersGang) + * + * errno.h + * - Error values and related functions + */ +#ifndef _LIBC_ERRNO_H_ +#define _LIBC_ERRNO_H_ -// TODO: Fully implement errno.h, make sure it matches the kernel one +#include // size_t -extern int *libc_geterrno(); +extern int *libc_geterrno(void); #define errno (*libc_geterrno()) -#define strerror(_x) "Unimplemented" +extern int strerror_r(int errnum, char *buf, size_t buflen); +extern char *strerror(int errnum); #include "errno.enum.h"