-/* ----------------------------------------------------------------------------
- * $Id$
- * ----------------------------------------------------------------------------
- * Public Domain C Library - http://pdclib.sourceforge.net
- * This code is Public Domain. Use, modify, and redistribute at will.
- * ----------------------------------------------------------------------------
- * Errors
- * --------------------------------------------------------------------------*/
+/* Errors <errno.h>
-#ifndef _ERRNO_H
-#define _ERRNO_H _ERRNO_H
+ This file is part of the Public Domain C Library (PDCLib).
+ Permission is granted to use, modify, and / or redistribute at will.
+*/
-#ifndef _PERSONALITY
-#define _PERSONALITY _PERSONALITY
-#include "__personality.h"
-#endif /* _PERSONALITY */
+#ifndef _PDCLIB_ERRNO_H
+#define _PDCLIB_ERRNO_H _PDCLIB_ERRNO_H
-/* TODO: Documentation */
+#include "_PDCLIB_int.h"
-/* ----------------------------------------------------------------------------
- * DECLARATIONS
- * --------------------------------------------------------------------------*/
+#define errno (*_PDCLIB_errno_func())
-extern int errno;
+#define ERANGE _PDCLIB_ERANGE
+#define EDOM _PDCLIB_EDOM
-/* ----------------------------------------------------------------------------
- * DEFINES
- * --------------------------------------------------------------------------*/
-
-#define EDOM _EDOM /* domain error */
-#define EILSEQ _EILSEQ /* illegal (multibyte) sequence */
-#define ERANGE _ERANGE /* range error */
-
-#endif /* _ERRNO_H */
+#endif