X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc.so_src%2Finclude_exp%2Ferrno.h;h=f06706ffc755d147e7145ba3c722f7a792f89c83;hb=4d0188930e7d0e571db78d1d2e3c4d9b3f0fe8fb;hp=213aeba20a9d375c71be0e5746c2c0095bcd0a8e;hpb=8cf9dc88c488ba959a211f1ec653a366d16e1531;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 213aeba2..f06706ff 100644 --- a/Usermode/Libraries/libc.so_src/include_exp/errno.h +++ b/Usermode/Libraries/libc.so_src/include_exp/errno.h @@ -5,15 +5,16 @@ * 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 +#include // size_t -extern int *libc_geterrno(); +extern int *libc_geterrno(void); #define errno (*libc_geterrno()) -extern const char *strerr(int errnum); +extern int strerror_r(int errnum, char *buf, size_t buflen); +extern char *strerror(int errnum); #include "errno.enum.h"