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