]> pd.if.org Git - pdclib.old/blob - includes/errno.h
EDOM was repeated
[pdclib.old] / includes / errno.h
1 /* $Id$ */
2
3 /* 7.5 Errors <errno.h>
4
5    This file is part of the Public Domain C Library (PDCLib).
6    Permission is granted to use, modify, and / or redistribute at will.
7 */
8
9 #ifndef _PDCLIB_ERRNO_H
10 #define _PDCLIB_ERRNO_H _PDCLIB_ERRNO_H
11 #include <_PDCLIB_int.h>
12 _PDCLIB_BEGIN_EXTERN_C
13
14 #define errno (*_PDCLIB_errno_func())
15
16 /* C99 */
17 #define ERANGE _PDCLIB_ERANGE
18 #define EDOM _PDCLIB_EDOM
19 #define EILSEQ _PDCLIB_EILSEQ
20
21 /* C++11. Yes, they did just copy the POSIX errno list into the standard 
22  *
23   * ...take a DEEP breath...
24  */
25 #define E2BIG _PDCLIB_E2BIG
26 #define ECONNRESET _PDCLIB_ECONNRESET
27 #define EISCONN _PDCLIB_EISCONN
28 #define ENOENT _PDCLIB_ENOENT
29 #define ENOTRECOVERABLE _PDCLIB_ENOTRECOVERABLE
30 #define EROFS _PDCLIB_EROFS
31 #define EACCES _PDCLIB_EACCES
32 #define EDEADLK _PDCLIB_EDEADLK
33 #define EISDIR _PDCLIB_EISDIR
34 #define ENOEXEC _PDCLIB_ENOEXEC
35 #define ENOTSOCK _PDCLIB_ENOTSOCK
36 #define ESPIPE _PDCLIB_ESPIPE
37 #define EADDRINUSE _PDCLIB_EADDRINUSE
38 #define EDESTADDRREQ _PDCLIB_EDESTADDRREQ
39 #define ELOOP _PDCLIB_ELOOP
40 #define ENOLCK _PDCLIB_ENOLCK
41 #define ENOTSUP _PDCLIB_ENOTSUPP
42 #define ESRCH _PDCLIB_ESRCH
43 #define EADDRNOTAVAIL _PDCLIB_EADDRNOTAVAIL
44 #define EMFILE _PDCLIB_EMFILE
45 #define ENOLINK _PDCLIB_ENOLINK
46 #define ENOTTY _PDCLIB_ENOTTY
47 #define ETIME _PDCLIB_ETIME
48 #define EAFNOSUPPORT _PDCLIB_EAFNOSUPPORT
49 #define EEXIST _PDCLIB_EEXIST
50 #define EMLINK _PDCLIB_EMLINK
51 #define ENOMEM _PDCLIB_ENOMEM
52 #define ENXIO _PDCLIB_ENXIO
53 #define ETIMEDOUT _PDCLIB_ETIMEDOUT
54 #define EAGAIN _PDCLIB_EAGAIN
55 #define EFAULT _PDCLIB_EFAULT
56 #define EMSGSIZE _PDCLIB_EMSGSIZE
57 #define ENOMSG _PDCLIB_ENOMSG
58 #define EOPNOTSUPP _PDCLIB_EOPNOTSUPP
59 #define ETXTBSY _PDCLIB_ETXTBSY
60 #define EALREADY _PDCLIB_EALREADY
61 #define EFBIG _PDCLIB_EFBIG
62 #define ENAMETOOLONG _PDCLIB_ENAMETOOLONG
63 #define ENOPROTOOPT _PDCLIB_ENOPROTOOPT
64 #define EOVERFLOW _PDCLIB_EOVERFLOW
65 #define EWOULDBLOCK _PDCLIB_EWOULDBLOCK
66 #define EBADF _PDCLIB_EBADF
67 #define EHOSTUNREACH _PDCLIB_EHOSTUNREACH
68 #define ENETDOWN _PDCLIB_ENETDOWN
69 #define ENOSPC _PDCLIB_ENOSPC
70 #define EOWNERDEAD _PDCLIB_EOWNERDEAD
71 #define EXDEV _PDCLIB_EXDEV
72 #define EBADMSG _PDCLIB_EBADMSG
73 #define EIDRM _PDCLIB_EIDRM
74 #define ENETRESET _PDCLIB_ENETRESET
75 #define ENOSR _PDCLIB_ENOSR
76 #define EPERM _PDCLIB_EPERM
77 #define EBUSY _PDCLIB_EBUSY
78 #define ENETUNREACH _PDCLIB_ENETUNREACH
79 #define ENOSTR _PDCLIB_ENOSTR
80 #define EPIPE _PDCLIB_EPIPE
81 #define ECANCELED _PDCLIB_ECANCELED
82 #define EINPROGRESS _PDCLIB_EINPROGRESS
83 #define ENFILE _PDCLIB_ENFILE
84 #define ENOSYS _PDCLIB_ENOSYS
85 #define EPROTO _PDCLIB_EPROTO
86 #define ECHILD _PDCLIB_ECHILD
87 #define EINTR _PDCLIB_EINTR
88 #define ENOBUFS _PDCLIB_ENOBUFS
89 #define ENOTCONN _PDCLIB_ENOTCONN
90 #define EPROTONOSUPPORT _PDCLIB_EPROTONOSUPPORT
91 #define ECONNABORTED _PDCLIB_ECONNABORTED
92 #define EINVAL _PDCLIB_EINVAL
93 #define ENODATA _PDCLIB_ENODATA
94 #define ENOTDIR _PDCLIB_ENOTDIR
95 #define EPROTOTYPE _PDCLIB_EPROTOTYPE
96
97 _PDCLIB_END_EXTERN_C
98 #endif
99