]> pd.if.org Git - pdclib/blob - includes/errno.h
Import dlmalloc (public domain) as a malloc implementation. Add stub opt/notime
[pdclib] / 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 EDOM _PDCLIB_EDOM
45 #define EMFILE _PDCLIB_EMFILE
46 #define ENOLINK _PDCLIB_ENOLINK
47 #define ENOTTY _PDCLIB_ENOTTY
48 #define ETIME _PDCLIB_ETIME
49 #define EAFNOSUPPORT _PDCLIB_EAFNOSUPPORT
50 #define EEXIST _PDCLIB_EEXIST
51 #define EMLINK _PDCLIB_EMLINK
52 #define ENOMEM _PDCLIB_ENOMEM
53 #define ENXIO _PDCLIB_ENXIO
54 #define ETIMEDOUT _PDCLIB_ETIMEDOUT
55 #define EAGAIN _PDCLIB_EAGAIN
56 #define EFAULT _PDCLIB_EFAULT
57 #define EMSGSIZE _PDCLIB_EMSGSIZE
58 #define ENOMSG _PDCLIB_ENOMSG
59 #define EOPNOTSUPP _PDCLIB_EOPNOTSUPP
60 #define ETXTBSY _PDCLIB_ETXTBSY
61 #define EALREADY _PDCLIB_EALREADY
62 #define EFBIG _PDCLIB_EFBIG
63 #define ENAMETOOLONG _PDCLIB_ENAMETOOLONG
64 #define ENOPROTOOPT _PDCLIB_ENOPROTOOPT
65 #define EOVERFLOW _PDCLIB_EOVERFLOW
66 #define EWOULDBLOCK _PDCLIB_EWOULDBLOCK
67 #define EBADF _PDCLIB_EBADF
68 #define EHOSTUNREACH _PDCLIB_EHOSTUNREACH
69 #define ENETDOWN _PDCLIB_ENETDOWN
70 #define ENOSPC _PDCLIB_ENOSPC
71 #define EOWNERDEAD _PDCLIB_EOWNERDEAD
72 #define EXDEV _PDCLIB_EXDEV
73 #define EBADMSG _PDCLIB_EBADMSG
74 #define EIDRM _PDCLIB_EIDRM
75 #define ENETRESET _PDCLIB_ENETRESET
76 #define ENOSR _PDCLIB_ENOSR
77 #define EPERM _PDCLIB_EPERM
78 #define EBUSY _PDCLIB_EBUSY
79 #define ENETUNREACH _PDCLIB_ENETUNREACH
80 #define ENOSTR _PDCLIB_ENOSTR
81 #define EPIPE _PDCLIB_EPIPE
82 #define ECANCELED _PDCLIB_ECANCELED
83 #define EINPROGRESS _PDCLIB_EINPROGRESS
84 #define ENFILE _PDCLIB_ENFILE
85 #define ENOSYS _PDCLIB_ENOSYS
86 #define EPROTO _PDCLIB_EPROTO
87 #define ECHILD _PDCLIB_ECHILD
88 #define EINTR _PDCLIB_EINTR
89 #define ENOBUFS _PDCLIB_ENOBUFS
90 #define ENOTCONN _PDCLIB_ENOTCONN
91 #define EPROTONOSUPPORT _PDCLIB_EPROTONOSUPPORT
92 #define ECONNABORTED _PDCLIB_ECONNABORTED
93 #define EINVAL _PDCLIB_EINVAL
94 #define ENODATA _PDCLIB_ENODATA
95 #define ENOTDIR _PDCLIB_ENOTDIR
96 #define EPROTOTYPE _PDCLIB_EPROTOTYPE
97
98 _PDCLIB_END_EXTERN_C
99 #endif
100