diff options
Diffstat (limited to 'include/errno.h')
-rw-r--r-- | include/errno.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/errno.h b/include/errno.h new file mode 100644 index 000000000..871c95bef --- /dev/null +++ b/include/errno.h @@ -0,0 +1,25 @@ +#ifndef __ERRNO_H +#define __ERRNO_H + +#include <features.h> +#include <linux/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 |