Usermode/libc - Fixing errors from clang, disabled heap for native build
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / include_exp / errno.h
index 213aeba..f06706f 100644 (file)
@@ -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 <stddef.h>    // 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"
 

UCC git Repository :: git.ucc.asn.au