]> pd.if.org Git - pdclib/blobdiff - includes/errno.h
Re-import from Subversion.
[pdclib] / includes / errno.h
index 873166aab68a4c18d074dbd4ac2e2bdb5ae58e67..5bd397d12424d23e250e4976a20bbddf06ecc8ee 100644 (file)
@@ -1,25 +1,34 @@
-// ----------------------------------------------------------------------------
-// $Id$
-// ----------------------------------------------------------------------------
-// Public Domain C Library - http://pdclib.sourceforge.net
-// This code is Public Domain. Use, modify, and redistribute at will.
-// ----------------------------------------------------------------------------
-// Provides 'errno', the auxiliary error handling of the standard library.
-// ----------------------------------------------------------------------------
+/* ----------------------------------------------------------------------------
+ * $Id$
+ * ----------------------------------------------------------------------------
+ * Public Domain C Library - http://pdclib.sourceforge.net
+ * This code is Public Domain. Use, modify, and redistribute at will.
+ * ----------------------------------------------------------------------------
+ * Errors
+ * --------------------------------------------------------------------------*/
 
-#ifndef __ERRNO_H
-#define __ERRNO_H __ERRNO_H
+#ifndef _ERRNO_H
+#define _ERRNO_H _ERRNO_H
 
-// ----------------------------------------------------------------------------
-// DECLARATIONS
+#ifndef _PERSONALITY
+#define _PERSONALITY _PERSONALITY
+#include "__personality.h"
+#endif /* _PERSONALITY */
+
+/* TODO: Documentation */
+
+/* ----------------------------------------------------------------------------
+ * DECLARATIONS
+ * --------------------------------------------------------------------------*/
 
 extern int errno;
 
-// ----------------------------------------------------------------------------
-// DEFINES
+/* ----------------------------------------------------------------------------
+ * DEFINES
+ * --------------------------------------------------------------------------*/
 
-#define EDOM      1 // domain error
-#define EILSEQ    2 // illegal (multibyte) sequence
-#define ERANGE    3 // range error
+#define EDOM   _EDOM   /* domain error                                       */
+#define EILSEQ _EILSEQ /* illegal (multibyte) sequence                       */
+#define ERANGE _ERANGE /* range error                                        */
 
-#endif // __ERRNO_H
+#endif /* _ERRNO_H */