]> pd.if.org Git - pdclib/blobdiff - includes/errno.h
Started out on v0.6.
[pdclib] / includes / errno.h
index 5bd397d12424d23e250e4976a20bbddf06ecc8ee..90c61db1fbf9dfda207aabe1b2129f3d9729faf8 100644 (file)
@@ -1,34 +1,23 @@
-/* ----------------------------------------------------------------------------
- * $Id$
- * ----------------------------------------------------------------------------
- * Public Domain C Library - http://pdclib.sourceforge.net
- * This code is Public Domain. Use, modify, and redistribute at will.
- * ----------------------------------------------------------------------------
- * Errors
- * --------------------------------------------------------------------------*/
+/* $Id$ */
 
-#ifndef _ERRNO_H
-#define _ERRNO_H _ERRNO_H
+/* 7.5 Errors <errno.h>
 
-#ifndef _PERSONALITY
-#define _PERSONALITY _PERSONALITY
-#include "__personality.h"
-#endif /* _PERSONALITY */
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
 
-/* TODO: Documentation */
+#ifndef _PDCLIB_ERRNO_H
+#define _PDCLIB_ERRNO_H _PDCLIB_ERRNO_H
 
-/* ----------------------------------------------------------------------------
- * DECLARATIONS
- * --------------------------------------------------------------------------*/
+#ifndef _PDCLIB_INT_H
+#define _PDCLIB_INT_H _PDCLIB_INT_H
+#include <_PDCLIB_int.h>
+#endif
 
-extern int errno;
+#define errno (*_PDCLIB_errno_func())
 
-/* ----------------------------------------------------------------------------
- * DEFINES
- * --------------------------------------------------------------------------*/
+#define ERANGE _PDCLIB_ERANGE
+#define EDOM _PDCLIB_EDOM
 
-#define EDOM   _EDOM   /* domain error                                       */
-#define EILSEQ _EILSEQ /* illegal (multibyte) sequence                       */
-#define ERANGE _ERANGE /* range error                                        */
+#endif
 
-#endif /* _ERRNO_H */