]> pd.if.org Git - pdclib/blobdiff - includes/errno.h
Initial load with header templates and some first declarations.
[pdclib] / includes / errno.h
diff --git a/includes/errno.h b/includes/errno.h
new file mode 100644 (file)
index 0000000..873166a
--- /dev/null
@@ -0,0 +1,25 @@
+// ----------------------------------------------------------------------------
+// $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.
+// ----------------------------------------------------------------------------
+
+#ifndef __ERRNO_H
+#define __ERRNO_H __ERRNO_H
+
+// ----------------------------------------------------------------------------
+// DECLARATIONS
+
+extern int errno;
+
+// ----------------------------------------------------------------------------
+// DEFINES
+
+#define EDOM      1 // domain error
+#define EILSEQ    2 // illegal (multibyte) sequence
+#define ERANGE    3 // range error
+
+#endif // __ERRNO_H