X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Ferrno.h;h=039368c8f53ec2878fbaf0d151fe164e9f7f4af5;hb=97dd2fddbdb56005b16a1b0aa19ed15cd77269fc;hp=5bd397d12424d23e250e4976a20bbddf06ecc8ee;hpb=c8f799d852e3698468a78954d82588e841cc0b70;p=pdclib.old diff --git a/includes/errno.h b/includes/errno.h index 5bd397d..039368c 100644 --- a/includes/errno.h +++ b/includes/errno.h @@ -1,34 +1,21 @@ -/* ---------------------------------------------------------------------------- - * $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 -#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 +#include <_PDCLIB_int.h> +_PDCLIB_BEGIN_EXTERN_C -/* ---------------------------------------------------------------------------- - * DECLARATIONS - * --------------------------------------------------------------------------*/ +#define errno (*_PDCLIB_errno_func()) -extern int errno; +#define ERANGE _PDCLIB_ERANGE +#define EDOM _PDCLIB_EDOM -/* ---------------------------------------------------------------------------- - * DEFINES - * --------------------------------------------------------------------------*/ +_PDCLIB_END_EXTERN_C +#endif -#define EDOM _EDOM /* domain error */ -#define EILSEQ _EILSEQ /* illegal (multibyte) sequence */ -#define ERANGE _ERANGE /* range error */ - -#endif /* _ERRNO_H */