summaryrefslogtreecommitdiff
path: root/sys/include/ape/errno.h
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 16:47:56 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 16:47:56 +0300
commitc558a99e0be506a9abdf677f0ca4490644e05fc1 (patch)
tree17aef678ad05a32ef96ce8385703cb3fe089a5c7 /sys/include/ape/errno.h
parente5888a1ffdae813d7575f5fb02275c6bb07e5199 (diff)
Import sources from 2011-03-30 iso image - sys/include
Diffstat (limited to 'sys/include/ape/errno.h')
-rwxr-xr-xsys/include/ape/errno.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/sys/include/ape/errno.h b/sys/include/ape/errno.h
new file mode 100755
index 000000000..b268d96e0
--- /dev/null
+++ b/sys/include/ape/errno.h
@@ -0,0 +1,83 @@
+#ifndef __ERRNO
+#define __ERRNO
+#pragma lib "/$M/lib/ape/libap.a"
+
+extern int errno;
+
+#define EDOM 1000
+#define ERANGE 1001
+#define EPLAN9 1002
+
+#ifdef _POSIX_SOURCE
+
+#define E2BIG 1
+#define EACCES 2
+#define EAGAIN 3
+#define EBADF 4
+#define EBUSY 5
+#define ECHILD 6
+#define EDEADLK 7
+#define EEXIST 8
+#define EFAULT 9
+#define EFBIG 10
+#define EINTR 11
+#define EINVAL 12
+#define EIO 13
+#define EISDIR 14
+#define EMFILE 15
+#define EMLINK 16
+#define ENAMETOOLONG 17
+#define ENFILE 18
+#define ENODEV 19
+#define ENOENT 20
+#define ENOEXEC 21
+#define ENOLCK 22
+#define ENOMEM 23
+#define ENOSPC 24
+#define ENOSYS 25
+#define ENOTDIR 26
+#define ENOTEMPTY 27
+#define ENOTTY 28
+#define ENXIO 29
+#define EPERM 30
+#define EPIPE 31
+#define EROFS 32
+#define ESPIPE 33
+#define ESRCH 34
+#define EXDEV 35
+
+/* bsd networking software */
+#define ENOTSOCK 36
+#define EPROTONOSUPPORT 37
+#define EPROTOTYPE 37 /* two names for 37 */
+#define ECONNREFUSED 38
+#define EAFNOSUPPORT 39
+#define ENOBUFS 40
+#define EOPNOTSUPP 41
+#define EADDRINUSE 42
+#define EDESTADDRREQ 43
+#define EMSGSIZE 44
+#define ENOPROTOOPT 45
+#define ESOCKTNOSUPPORT 46
+#define EPFNOSUPPORT 47
+#define EADDRNOTAVAIL 48
+#define ENETDOWN 49
+#define ENETUNREACH 50
+#define ENETRESET 51
+#define ECONNABORTED 52
+#define EISCON 53
+#define ENOTCONN 54
+#define ESHUTDOWN 55
+#define ETOOMANYREFS 56
+#define ETIMEDOUT 57
+#define EHOSTDOWN 58
+#define EHOSTUNREACH 59
+#define EGREG 60
+
+/* These added in 1003.1b-1993 */
+#define ECANCELED 61
+#define EINPROGRESS 62
+
+#endif /* _POSIX_SOURCE */
+
+#endif /* __ERRNO */