errno.inc 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. {
  2. $Id$
  3. Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  4. @APPLE_LICENSE_HEADER_START@
  5. The contents of this file constitute Original Code as defined in and
  6. are subject to the Apple Public Source License Version 1.1 (the
  7. "License"). You may not use this file except in compliance with the
  8. License. Please obtain a copy of the License at
  9. http://www.apple.com/publicsource and read it before using this file.
  10. This Original Code and all software distributed under the License are
  11. distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  12. EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  13. INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
  15. License for the specific language governing rights and limitations
  16. under the License.
  17. @APPLE_LICENSE_HEADER_END@
  18. }
  19. { Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved }
  20. {
  21. Copyright (c) 1982, 1986, 1989, 1993
  22. The Regents of the University of California. All rights reserved.
  23. (c) UNIX System Laboratories, Inc.
  24. All or some portions of this file are derived from material licensed
  25. to the University of California by American Telephone and Telegraph
  26. Co. or Unix System Laboratories, Inc. and are reproduced herein with
  27. the permission of UNIX System Laboratories, Inc.
  28. Redistribution and use in source and binary forms, with or without
  29. modification, are permitted provided that the following conditions
  30. are met:
  31. 1. Redistributions of source code must retain the above copyright
  32. notice, this list of conditions and the following disclaimer.
  33. 2. Redistributions in binary form must reproduce the above copyright
  34. notice, this list of conditions and the following disclaimer in the
  35. documentation and/or other materials provided with the distribution.
  36. 3. All advertising materials mentioning features or use of this software
  37. must display the following acknowledgement:
  38. This product includes software developed by the University of
  39. California, Berkeley and its contributors.
  40. 4. Neither the name of the University nor the names of its contributors
  41. may be used to endorse or promote products derived from this software
  42. without specific prior written permission.
  43. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  44. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  45. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  46. ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  47. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  48. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  49. OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  50. HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  51. LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  52. OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  53. SUCH DAMAGE.
  54. @(#)errno.h 8.5 (Berkeley) 1/21/94
  55. }
  56. const
  57. { Operation not permitted }
  58. ESysEPERM = 1;
  59. { No such file or directory }
  60. ESysENOENT = 2;
  61. { No such process }
  62. ESysESRCH = 3;
  63. { Interrupted system call }
  64. ESysEINTR = 4;
  65. { Input/output error }
  66. ESysEIO = 5;
  67. { Device not configured }
  68. ESysENXIO = 6;
  69. { Argument list too long }
  70. ESysE2BIG = 7;
  71. { Exec format error }
  72. ESysENOEXEC = 8;
  73. { Bad file descriptor }
  74. ESysEBADF = 9;
  75. { No child processes }
  76. ESysECHILD = 10;
  77. { Resource deadlock avoided }
  78. ESysEDEADLK = 11;
  79. { 11 was EAGAIN }
  80. { Cannot allocate memory }
  81. ESysENOMEM = 12;
  82. { Permission denied }
  83. ESysEACCES = 13;
  84. { Bad address }
  85. ESysEFAULT = 14;
  86. {$ifndef _POSIX_SOURCE}
  87. { Block device required }
  88. ESysENOTBLK = 15;
  89. {$endif}
  90. { Device busy }
  91. ESysEBUSY = 16;
  92. { File exists }
  93. ESysEEXIST = 17;
  94. { Cross-device link }
  95. ESysEXDEV = 18;
  96. { Operation not supported by device }
  97. ESysENODEV = 19;
  98. { Not a directory }
  99. ESysENOTDIR = 20;
  100. { Is a directory }
  101. ESysEISDIR = 21;
  102. { Invalid argument }
  103. ESysEINVAL = 22;
  104. { Too many open files in system }
  105. ESysENFILE = 23;
  106. { Too many open files }
  107. ESysEMFILE = 24;
  108. { Inappropriate ioctl for device }
  109. ESysENOTTY = 25;
  110. {$ifndef _POSIX_SOURCE}
  111. { Text file busy }
  112. ESysETXTBSY = 26;
  113. {$endif}
  114. { File too large }
  115. ESysEFBIG = 27;
  116. { No space left on device }
  117. ESysENOSPC = 28;
  118. { Illegal seek }
  119. ESysESPIPE = 29;
  120. { Read-only file system }
  121. ESysEROFS = 30;
  122. { Too many links }
  123. ESysEMLINK = 31;
  124. { Broken pipe }
  125. ESysEPIPE = 32;
  126. { math software }
  127. { Numerical argument out of domain }
  128. ESysEDOM = 33;
  129. { Result too large }
  130. ESysERANGE = 34;
  131. { non-blocking and interrupt i/o }
  132. { Resource temporarily unavailable }
  133. ESysEAGAIN = 35;
  134. {$ifndef _POSIX_SOURCE}
  135. { Operation would block }
  136. ESysEWOULDBLOCK = ESysEAGAIN;
  137. { Operation now in progress }
  138. ESysEINPROGRESS = 36;
  139. { Operation already in progress }
  140. ESysEALREADY = 37;
  141. { ipc/network software -- argument errors }
  142. { Socket operation on non-socket }
  143. ESysENOTSOCK = 38;
  144. { Destination address required }
  145. ESysEDESTADDRREQ = 39;
  146. { Message too long }
  147. ESysEMSGSIZE = 40;
  148. { Protocol wrong type for socket }
  149. ESysEPROTOTYPE = 41;
  150. { Protocol not available }
  151. ESysENOPROTOOPT = 42;
  152. { Protocol not supported }
  153. ESysEPROTONOSUPPORT = 43;
  154. { Socket type not supported }
  155. ESysESOCKTNOSUPPORT = 44;
  156. {$endif}
  157. { ! _POSIX_SOURCE }
  158. { Operation not supported }
  159. ESysENOTSUP = 45;
  160. {$ifndef _POSIX_SOURCE}
  161. { Operation not supported }
  162. ESysEOPNOTSUPP = ESysENOTSUP;
  163. { Protocol family not supported }
  164. ESysEPFNOSUPPORT = 46;
  165. { Address family not supported by protocol family }
  166. ESysEAFNOSUPPORT = 47;
  167. { Address already in use }
  168. ESysEADDRINUSE = 48;
  169. { Can't assign requested address }
  170. ESysEADDRNOTAVAIL = 49;
  171. { ipc/network software -- operational errors }
  172. { Network is down }
  173. ESysENETDOWN = 50;
  174. { Network is unreachable }
  175. ESysENETUNREACH = 51;
  176. { Network dropped connection on reset }
  177. ESysENETRESET = 52;
  178. { Software caused connection abort }
  179. ESysECONNABORTED = 53;
  180. { Connection reset by peer }
  181. ESysECONNRESET = 54;
  182. { No buffer space available }
  183. ESysENOBUFS = 55;
  184. { Socket is already connected }
  185. ESysEISCONN = 56;
  186. { Socket is not connected }
  187. ESysENOTCONN = 57;
  188. { Can't send after socket shutdown }
  189. ESysESHUTDOWN = 58;
  190. { Too many references: can't splice }
  191. ESysETOOMANYREFS = 59;
  192. { Operation timed out }
  193. ESysETIMEDOUT = 60;
  194. { Connection refused }
  195. ESysECONNREFUSED = 61;
  196. { Too many levels of symbolic links }
  197. ESysELOOP = 62;
  198. {$endif}
  199. { _POSIX_SOURCE }
  200. { File name too long }
  201. ESysENAMETOOLONG = 63;
  202. { should be rearranged }
  203. {$ifndef _POSIX_SOURCE}
  204. { Host is down }
  205. ESysEHOSTDOWN = 64;
  206. { No route to host }
  207. ESysEHOSTUNREACH = 65;
  208. {$endif}
  209. { _POSIX_SOURCE }
  210. { Directory not empty }
  211. ESysENOTEMPTY = 66;
  212. { quotas & mush }
  213. {$ifndef _POSIX_SOURCE}
  214. { Too many processes }
  215. ESysEPROCLIM = 67;
  216. { Too many users }
  217. ESysEUSERS = 68;
  218. { Disc quota exceeded }
  219. ESysEDQUOT = 69;
  220. { Network File System }
  221. { Stale NFS file handle }
  222. ESysESTALE = 70;
  223. { Too many levels of remote in path }
  224. ESysEREMOTE = 71;
  225. { RPC struct is bad }
  226. ESysEBADRPC = 72;
  227. { RPC version wrong }
  228. ESysERPCMISMATCH = 73;
  229. { RPC prog. not avail }
  230. ESysEPROGUNAVAIL = 74;
  231. { Program version wrong }
  232. ESysEPROGMISMATCH = 75;
  233. { Bad procedure for program }
  234. ESysEPROCUNAVAIL = 76;
  235. {$endif}
  236. { _POSIX_SOURCE }
  237. { No locks available }
  238. ESysENOLCK = 77;
  239. { Function not implemented }
  240. ESysENOSYS = 78;
  241. {$ifndef _POSIX_SOURCE}
  242. { Inappropriate file type or format }
  243. ESysEFTYPE = 79;
  244. { Authentication error }
  245. ESysEAUTH = 80;
  246. { Need authenticator }
  247. ESysENEEDAUTH = 81;
  248. {$endif}
  249. { _POSIX_SOURCE }
  250. { Intelligent device errors }
  251. { Device power is off }
  252. ESysEPWROFF = 82;
  253. { Device error, e.g. paper out }
  254. ESysEDEVERR = 83;
  255. {$ifndef _POSIX_SOURCE}
  256. { Value too large to be stored in data type }
  257. ESysEOVERFLOW = 84;
  258. { Program loading errors }
  259. { Bad executable }
  260. ESysEBADEXEC = 85;
  261. { Bad CPU type in executable }
  262. ESysEBADARCH = 86;
  263. { Shared library version mismatch }
  264. ESysESHLIBVERS = 87;
  265. { Malformed Macho file }
  266. ESysEBADMACHO = 88;
  267. { Must be equal largest errno }
  268. ESysELAST = 88;
  269. {$endif}
  270. { _POSIX_SOURCE }
  271. {
  272. $Log$
  273. Revision 1.2 2003-05-25 12:59:56 jonas
  274. * several fixes, addition of Mach trap numbers (thye are simply syscalls
  275. with a negative number)
  276. Revision 1.1 2002/09/08 09:00:17 jonas
  277. + initial revision
  278. }