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