X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Ferrno.h;fp=includes%2Ferrno.h;h=873166aab68a4c18d074dbd4ac2e2bdb5ae58e67;hb=1e221deb9ee725a14b3656f94e2763f8faeb18dc;hp=0000000000000000000000000000000000000000;hpb=9712362f98b90c1a2aeec9fd877b0b872b6378c7;p=pdclib diff --git a/includes/errno.h b/includes/errno.h new file mode 100644 index 0000000..873166a --- /dev/null +++ b/includes/errno.h @@ -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