errno.inc 10 KB

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