diff options
Diffstat (limited to 'libc/include/sys/errno.h')
-rw-r--r-- | libc/include/sys/errno.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/libc/include/sys/errno.h b/libc/include/sys/errno.h index 339f4fc..a7b7d7b 100644 --- a/libc/include/sys/errno.h +++ b/libc/include/sys/errno.h @@ -1 +1,25 @@ -#include <errno.h> +#ifndef __ERRNO_H +#define __ERRNO_H + +#include <features.h> +#include __SYSINC__(errno.h) + +#ifdef __USE_BSD +extern int sys_nerr; +extern char *sys_errlist[]; +#endif +#ifdef __USE_GNU +extern int _sys_nerr; +extern char *_sys_errlist[]; +#endif + +extern int errno; + +__BEGIN_DECLS + +extern void perror __P ((__const char* __s)); +extern char* strerror __P ((int __errno)); + +__END_DECLS + +#endif |