errno.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /* $OpenBSD: errno.h,v 1.1 2005/12/28 16:33:56 millert Exp $ */
  2. /*
  3. * Copyright (c) 1982, 1986, 1989, 1993
  4. * The Regents of the University of California. All rights reserved.
  5. * (c) UNIX System Laboratories, Inc.
  6. * All or some portions of this file are derived from material licensed
  7. * to the University of California by American Telephone and Telegraph
  8. * Co. or Unix System Laboratories, Inc. and are reproduced herein with
  9. * the permission of UNIX System Laboratories, Inc.
  10. *
  11. * Redistribution and use in source and binary forms, with or without
  12. * modification, are permitted provided that the following conditions
  13. * are met:
  14. * 1. Redistributions of source code must retain the above copyright
  15. * notice, this list of conditions and the following disclaimer.
  16. * 2. Redistributions in binary form must reproduce the above copyright
  17. * notice, this list of conditions and the following disclaimer in the
  18. * documentation and/or other materials provided with the distribution.
  19. * 3. Neither the name of the University nor the names of its contributors
  20. * may be used to endorse or promote products derived from this software
  21. * without specific prior written permission.
  22. *
  23. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  24. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  25. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  26. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  27. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  28. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  29. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  30. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  31. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  32. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  33. * SUCH DAMAGE.
  34. *
  35. * @(#)errno.h 8.5 (Berkeley) 1/21/94
  36. */
  37. #ifndef _ERRNO_H_
  38. #define _ERRNO_H_
  39. #include <sys/cdefs.h>
  40. #define EPERM 1
  41. #define ENOENT 2
  42. #define ESRCH 3
  43. #define EINTR 4
  44. #define EIO 5
  45. #define ENXIO 6
  46. #define E2BIG 7
  47. #define ENOEXEC 8
  48. #define EBADF 9
  49. #define ECHILD 10
  50. #define EAGAIN 11
  51. #define ENOMEM 12
  52. #define EACCES 13
  53. #define EFAULT 14
  54. #define ENOTBLK 15
  55. #define EBUSY 16
  56. #define EEXIST 17
  57. #define EXDEV 18
  58. #define ENODEV 19
  59. #define ENOTDIR 20
  60. #define EISDIR 21
  61. #define EINVAL 22
  62. #define ENFILE 23
  63. #define EMFILE 24
  64. #define ENOTTY 25
  65. #define ETXTBSY 26
  66. #define EFBIG 27
  67. #define ENOSPC 28
  68. #define ESPIPE 29
  69. #define EROFS 30
  70. #define EMLINK 31
  71. #define EPIPE 32
  72. #define EDOM 33
  73. #define ERANGE 34
  74. #define EDEADLK 35
  75. #define ENAMETOOLONG 36
  76. #define ENOLCK 37
  77. #define ENOSYS 38
  78. #define ENOTEMPTY 39
  79. #define ELOOP 40
  80. #define EWOULDBLOCK EAGAIN
  81. #define ENOMSG 42
  82. #define EIDRM 43
  83. #define ECHRNG 44
  84. #define EL2NSYNC 45
  85. #define EL3HLT 46
  86. #define EL3RST 47
  87. #define ELNRNG 48
  88. #define EUNATCH 49
  89. #define ENOCSI 50
  90. #define EL2HLT 51
  91. #define EBADE 52
  92. #define EBADR 53
  93. #define EXFULL 54
  94. #define ENOANO 55
  95. #define EBADRQC 56
  96. #define EBADSLT 57
  97. #define EDEADLOCK EDEADLK
  98. #define EBFONT 59
  99. #define ENOSTR 60
  100. #define ENODATA 61
  101. #define ETIME 62
  102. #define ENOSR 63
  103. #define ENONET 64
  104. #define ENOPKG 65
  105. #define EREMOTE 66
  106. #define ENOLINK 67
  107. #define EADV 68
  108. #define ESRMNT 69
  109. #define ECOMM 70
  110. #define EPROTO 71
  111. #define EMULTIHOP 72
  112. #define EDOTDOT 73
  113. #define EBADMSG 74
  114. #define EOVERFLOW 75
  115. #define ENOTUNIQ 76
  116. #define EBADFD 77
  117. #define EREMCHG 78
  118. #define ELIBACC 79
  119. #define ELIBBAD 80
  120. #define ELIBSCN 81
  121. #define ELIBMAX 82
  122. #define ELIBEXEC 83
  123. #define EILSEQ 84
  124. #define ERESTART 85
  125. #define ESTRPIPE 86
  126. #define EUSERS 87
  127. #define ENOTSOCK 88
  128. #define EDESTADDRREQ 89
  129. #define EMSGSIZE 90
  130. #define EPROTOTYPE 91
  131. #define ENOPROTOOPT 92
  132. #define EPROTONOSUPPORT 93
  133. #define ESOCKTNOSUPPORT 94
  134. #define EOPNOTSUPP 95
  135. #define EPFNOSUPPORT 96
  136. #define EAFNOSUPPORT 97
  137. #define EADDRINUSE 98
  138. #define EADDRNOTAVAIL 99
  139. #define ENETDOWN 100
  140. #define ENETUNREACH 101
  141. #define ENETRESET 102
  142. #define ECONNABORTED 103
  143. #define ECONNRESET 104
  144. #define ENOBUFS 105
  145. #define EISCONN 106
  146. #define ENOTCONN 107
  147. #define ESHUTDOWN 108
  148. #define ETOOMANYREFS 109
  149. #define ETIMEDOUT 110
  150. #define ECONNREFUSED 111
  151. #define EHOSTDOWN 112
  152. #define EHOSTUNREACH 113
  153. #define EALREADY 114
  154. #define EINPROGRESS 115
  155. #define ESTALE 116
  156. #define EUCLEAN 117
  157. #define ENOTNAM 118
  158. #define ENAVAIL 119
  159. #define EISNAM 120
  160. #define EREMOTEIO 121
  161. #define EDQUOT 122
  162. #define ENOMEDIUM 123
  163. #define EMEDIUMTYPE 124
  164. #define ECANCELED 125
  165. #define ENOKEY 126
  166. #define EKEYEXPIRED 127
  167. #define EKEYREVOKED 128
  168. #define EKEYREJECTED 129
  169. #define EOWNERDEAD 130
  170. #define ENOTRECOVERABLE 131
  171. #define ERFKILL 132
  172. #define EHWPOISON 133
  173. #define ENOTSUP EOPNOTSUPP
  174. __BEGIN_DECLS
  175. #ifndef errno
  176. int * _TLIBC_CDECL_ __errno(void);
  177. #define errno (*__errno())
  178. #endif /* errno */
  179. __END_DECLS
  180. #endif /* _ERRNO_H_ */