]> git.lizzy.rs Git - plan9front.git/blob - sys/include/ape/errno.h
libsec: use tsmemcmp() when comparing hashes, use mpfield() for ecc, use mptober...
[plan9front.git] / sys / include / ape / errno.h
1 #ifndef __ERRNO
2 #define __ERRNO
3 #pragma lib "/$M/lib/ape/libap.a"
4
5 extern int *_errnoloc;
6 #define errno (*_errnoloc)
7
8 #define EDOM    1000
9 #define ERANGE  1001
10 #define EPLAN9  1002
11
12 #ifdef _POSIX_SOURCE
13
14 #define E2BIG   1
15 #define EACCES  2
16 #define EAGAIN  3
17 #define EWOULDBLOCK     3
18 #define EBADF   4
19 #define EBUSY   5
20 #define ECHILD  6
21 #define EDEADLK 7
22 #define EEXIST  8
23 #define EFAULT  9
24 #define EFBIG   10
25 #define EINTR   11
26 #define EINVAL  12
27 #define EIO     13
28 #define EISDIR  14
29 #define EMFILE  15
30 #define EMLINK  16
31 #define ENAMETOOLONG    17
32 #define ENFILE  18
33 #define ENODEV  19
34 #define ENOENT  20
35 #define ENOEXEC 21
36 #define ENOLCK  22
37 #define ENOMEM  23
38 #define ENOSPC  24
39 #define ENOSYS  25
40 #define ENOTDIR 26
41 #define ENOTEMPTY       27
42 #define ENOTTY  28
43 #define ENXIO   29
44 #define EPERM   30
45 #define EPIPE   31
46 #define EROFS   32
47 #define ESPIPE  33
48 #define ESRCH   34
49 #define EXDEV   35
50
51 /* bsd networking software */
52 #define ENOTSOCK        36
53 #define EPROTONOSUPPORT 37
54 #define EPROTOTYPE      37      /* two names for 37 */
55 #define ECONNREFUSED    38
56 #define EAFNOSUPPORT    39
57 #define ENOBUFS         40
58 #define EOPNOTSUPP      41
59 #define EADDRINUSE      42
60 #define EDESTADDRREQ    43
61 #define EMSGSIZE        44
62 #define ENOPROTOOPT     45
63 #define ESOCKTNOSUPPORT 46
64 #define EPFNOSUPPORT    47
65 #define EADDRNOTAVAIL   48
66 #define ENETDOWN        49
67 #define ENETUNREACH     50
68 #define ENETRESET       51
69 #define ECONNABORTED    52
70 #define EISCONN         53
71 #define ENOTCONN        54
72 #define ESHUTDOWN       55
73 #define ETOOMANYREFS    56
74 #define ETIMEDOUT       57
75 #define EHOSTDOWN       58
76 #define EHOSTUNREACH    59
77 #define EGREG           60
78
79 /* These added in 1003.1b-1993 */
80 #define ECANCELED       61
81 #define EINPROGRESS     62
82
83 #endif /* _POSIX_SOURCE */
84
85 #endif /* __ERRNO */