errno_darwin_arm64.go 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. // Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_darwin_arm64.go -pkgname errno', DO NOT EDIT.
  2. package errno
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. E2BIG = 7 // errno.h:94:1:
  15. EACCES = 13 // errno.h:101:1:
  16. EADDRINUSE = 48 // errno.h:161:1:
  17. EADDRNOTAVAIL = 49 // errno.h:162:1:
  18. EAFNOSUPPORT = 47 // errno.h:160:1:
  19. EAGAIN = 35 // errno.h:129:1:
  20. EALREADY = 37 // errno.h:132:1:
  21. EAUTH = 80 // errno.h:213:1:
  22. EBADARCH = 86 // errno.h:226:1:
  23. EBADEXEC = 85 // errno.h:225:1:
  24. EBADF = 9 // errno.h:96:1:
  25. EBADMACHO = 88 // errno.h:228:1:
  26. EBADMSG = 94 // errno.h:240:1:
  27. EBADRPC = 72 // errno.h:201:1:
  28. EBUSY = 16 // errno.h:106:1:
  29. ECANCELED = 89 // errno.h:231:1:
  30. ECHILD = 10 // errno.h:97:1:
  31. ECONNABORTED = 53 // errno.h:168:1:
  32. ECONNREFUSED = 61 // errno.h:178:1:
  33. ECONNRESET = 54 // errno.h:169:1:
  34. EDEADLK = 11 // errno.h:98:1:
  35. EDESTADDRREQ = 39 // errno.h:136:1:
  36. EDEVERR = 83 // errno.h:218:1:
  37. EDOM = 33 // errno.h:125:1:
  38. EDQUOT = 69 // errno.h:195:1:
  39. EEXIST = 17 // errno.h:107:1:
  40. EFAULT = 14 // errno.h:102:1:
  41. EFBIG = 27 // errno.h:117:1:
  42. EFTYPE = 79 // errno.h:212:1:
  43. EHOSTDOWN = 64 // errno.h:185:1:
  44. EHOSTUNREACH = 65 // errno.h:187:1:
  45. EIDRM = 90 // errno.h:233:1:
  46. EILSEQ = 92 // errno.h:235:1:
  47. EINPROGRESS = 36 // errno.h:131:1:
  48. EINTR = 4 // errno.h:91:1:
  49. EINVAL = 22 // errno.h:112:1:
  50. EIO = 5 // errno.h:92:1:
  51. EISCONN = 56 // errno.h:171:1:
  52. EISDIR = 21 // errno.h:111:1:
  53. ELAST = 106 // errno.h:263:1:
  54. ELOOP = 62 // errno.h:180:1:
  55. EMFILE = 24 // errno.h:114:1:
  56. EMLINK = 31 // errno.h:121:1:
  57. EMSGSIZE = 40 // errno.h:137:1:
  58. EMULTIHOP = 95 // errno.h:241:1:
  59. ENAMETOOLONG = 63 // errno.h:181:1:
  60. ENEEDAUTH = 81 // errno.h:214:1:
  61. ENETDOWN = 50 // errno.h:165:1:
  62. ENETRESET = 52 // errno.h:167:1:
  63. ENETUNREACH = 51 // errno.h:166:1:
  64. ENFILE = 23 // errno.h:113:1:
  65. ENOATTR = 93 // errno.h:237:1:
  66. ENOBUFS = 55 // errno.h:170:1:
  67. ENODATA = 96 // errno.h:242:1:
  68. ENODEV = 19 // errno.h:109:1:
  69. ENOENT = 2 // errno.h:89:1:
  70. ENOEXEC = 8 // errno.h:95:1:
  71. ENOLCK = 77 // errno.h:208:1:
  72. ENOLINK = 97 // errno.h:243:1:
  73. ENOMEM = 12 // errno.h:100:1:
  74. ENOMSG = 91 // errno.h:234:1:
  75. ENOPOLICY = 103 // errno.h:254:1:
  76. ENOPROTOOPT = 42 // errno.h:139:1:
  77. ENOSPC = 28 // errno.h:118:1:
  78. ENOSR = 98 // errno.h:244:1:
  79. ENOSTR = 99 // errno.h:245:1:
  80. ENOSYS = 78 // errno.h:209:1:
  81. ENOTBLK = 15 // errno.h:104:1:
  82. ENOTCONN = 57 // errno.h:172:1:
  83. ENOTDIR = 20 // errno.h:110:1:
  84. ENOTEMPTY = 66 // errno.h:188:1:
  85. ENOTRECOVERABLE = 104 // errno.h:257:1:
  86. ENOTSOCK = 38 // errno.h:135:1:
  87. ENOTSUP = 45 // errno.h:144:1:
  88. ENOTTY = 25 // errno.h:115:1:
  89. ENXIO = 6 // errno.h:93:1:
  90. EOPNOTSUPP = 102 // errno.h:251:1:
  91. EOVERFLOW = 84 // errno.h:221:1:
  92. EOWNERDEAD = 105 // errno.h:258:1:
  93. EPERM = 1 // errno.h:88:1:
  94. EPFNOSUPPORT = 46 // errno.h:158:1:
  95. EPIPE = 32 // errno.h:122:1:
  96. EPROCLIM = 67 // errno.h:192:1:
  97. EPROCUNAVAIL = 76 // errno.h:205:1:
  98. EPROGMISMATCH = 75 // errno.h:204:1:
  99. EPROGUNAVAIL = 74 // errno.h:203:1:
  100. EPROTO = 100 // errno.h:246:1:
  101. EPROTONOSUPPORT = 43 // errno.h:140:1:
  102. EPROTOTYPE = 41 // errno.h:138:1:
  103. EPWROFF = 82 // errno.h:217:1:
  104. EQFULL = 106 // errno.h:262:1:
  105. ERANGE = 34 // errno.h:126:1:
  106. EREMOTE = 71 // errno.h:200:1:
  107. EROFS = 30 // errno.h:120:1:
  108. ERPCMISMATCH = 73 // errno.h:202:1:
  109. ESHLIBVERS = 87 // errno.h:227:1:
  110. ESHUTDOWN = 58 // errno.h:174:1:
  111. ESOCKTNOSUPPORT = 44 // errno.h:142:1:
  112. ESPIPE = 29 // errno.h:119:1:
  113. ESRCH = 3 // errno.h:90:1:
  114. ESTALE = 70 // errno.h:198:1:
  115. ETIME = 101 // errno.h:247:1:
  116. ETIMEDOUT = 60 // errno.h:177:1:
  117. ETOOMANYREFS = 59 // errno.h:175:1:
  118. ETXTBSY = 26 // errno.h:116:1:
  119. EUSERS = 68 // errno.h:193:1:
  120. EWOULDBLOCK = 35 // errno.h:130:1:
  121. EXDEV = 18 // errno.h:108:1:
  122. X_CDEFS_H_ = 0 // cdefs.h:68:1:
  123. X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:774:1:
  124. X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 // cdefs.h:784:1:
  125. X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:800:1:
  126. X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 // cdefs.h:792:1:
  127. X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:808:1:
  128. X_ERRNO_T = 0 // _errno_t.h:29:1:
  129. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  130. X_LP64 = 1 // <predefined>:1:1:
  131. X_Nonnull = 0 // cdefs.h:268:1:
  132. X_Null_unspecified = 0 // cdefs.h:271:1:
  133. X_Nullable = 0 // cdefs.h:265:1:
  134. X_SYS_ERRNO_H_ = 0 // errno.h:70:1:
  135. )
  136. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  137. type Size_t = uint64 /* <builtin>:9:23 */
  138. type Wchar_t = int32 /* <builtin>:15:24 */
  139. type X__int128_t = struct {
  140. Flo int64
  141. Fhi int64
  142. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  143. type X__uint128_t = struct {
  144. Flo uint64
  145. Fhi uint64
  146. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  147. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  148. type X__float128 = float64 /* <builtin>:47:21 */
  149. var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
  150. // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  151. //
  152. // @APPLE_LICENSE_HEADER_START@
  153. //
  154. // This file contains Original Code and/or Modifications of Original Code
  155. // as defined in and that are subject to the Apple Public Source License
  156. // Version 2.0 (the 'License'). You may not use this file except in
  157. // compliance with the License. Please obtain a copy of the License at
  158. // http://www.opensource.apple.com/apsl/ and read it before using this
  159. // file.
  160. //
  161. // The Original Code and all software distributed under the License are
  162. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  163. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  164. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  165. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  166. // Please see the License for the specific language governing rights and
  167. // limitations under the License.
  168. //
  169. // @APPLE_LICENSE_HEADER_END@
  170. // Copyright (c) 2000-2012 Apple, Inc. All rights reserved.
  171. //
  172. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  173. //
  174. // This file contains Original Code and/or Modifications of Original Code
  175. // as defined in and that are subject to the Apple Public Source License
  176. // Version 2.0 (the 'License'). You may not use this file except in
  177. // compliance with the License. The rights granted to you under the License
  178. // may not be used to create, or enable the creation or redistribution of,
  179. // unlawful or unlicensed copies of an Apple operating system, or to
  180. // circumvent, violate, or enable the circumvention or violation of, any
  181. // terms of an Apple operating system software license agreement.
  182. //
  183. // Please obtain a copy of the License at
  184. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  185. //
  186. // The Original Code and all software distributed under the License are
  187. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  188. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  189. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  190. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  191. // Please see the License for the specific language governing rights and
  192. // limitations under the License.
  193. //
  194. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  195. // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  196. // Copyright (c) 1982, 1986, 1989, 1993
  197. // The Regents of the University of California. All rights reserved.
  198. // (c) UNIX System Laboratories, Inc.
  199. // All or some portions of this file are derived from material licensed
  200. // to the University of California by American Telephone and Telegraph
  201. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  202. // the permission of UNIX System Laboratories, Inc.
  203. //
  204. // Redistribution and use in source and binary forms, with or without
  205. // modification, are permitted provided that the following conditions
  206. // are met:
  207. // 1. Redistributions of source code must retain the above copyright
  208. // notice, this list of conditions and the following disclaimer.
  209. // 2. Redistributions in binary form must reproduce the above copyright
  210. // notice, this list of conditions and the following disclaimer in the
  211. // documentation and/or other materials provided with the distribution.
  212. // 3. All advertising materials mentioning features or use of this software
  213. // must display the following acknowledgement:
  214. // This product includes software developed by the University of
  215. // California, Berkeley and its contributors.
  216. // 4. Neither the name of the University nor the names of its contributors
  217. // may be used to endorse or promote products derived from this software
  218. // without specific prior written permission.
  219. //
  220. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  221. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  222. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  223. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  224. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  225. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  226. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  227. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  228. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  229. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  230. // SUCH DAMAGE.
  231. //
  232. // @(#)errno.h 8.5 (Berkeley) 1/21/94
  233. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  234. //
  235. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  236. //
  237. // This file contains Original Code and/or Modifications of Original Code
  238. // as defined in and that are subject to the Apple Public Source License
  239. // Version 2.0 (the 'License'). You may not use this file except in
  240. // compliance with the License. The rights granted to you under the License
  241. // may not be used to create, or enable the creation or redistribution of,
  242. // unlawful or unlicensed copies of an Apple operating system, or to
  243. // circumvent, violate, or enable the circumvention or violation of, any
  244. // terms of an Apple operating system software license agreement.
  245. //
  246. // Please obtain a copy of the License at
  247. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  248. //
  249. // The Original Code and all software distributed under the License are
  250. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  251. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  252. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  253. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  254. // Please see the License for the specific language governing rights and
  255. // limitations under the License.
  256. //
  257. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  258. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  259. // Copyright (c) 1991, 1993
  260. // The Regents of the University of California. All rights reserved.
  261. //
  262. // This code is derived from software contributed to Berkeley by
  263. // Berkeley Software Design, Inc.
  264. //
  265. // Redistribution and use in source and binary forms, with or without
  266. // modification, are permitted provided that the following conditions
  267. // are met:
  268. // 1. Redistributions of source code must retain the above copyright
  269. // notice, this list of conditions and the following disclaimer.
  270. // 2. Redistributions in binary form must reproduce the above copyright
  271. // notice, this list of conditions and the following disclaimer in the
  272. // documentation and/or other materials provided with the distribution.
  273. // 3. All advertising materials mentioning features or use of this software
  274. // must display the following acknowledgement:
  275. // This product includes software developed by the University of
  276. // California, Berkeley and its contributors.
  277. // 4. Neither the name of the University nor the names of its contributors
  278. // may be used to endorse or promote products derived from this software
  279. // without specific prior written permission.
  280. //
  281. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  282. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  283. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  284. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  285. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  286. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  287. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  288. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  289. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  290. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  291. // SUCH DAMAGE.
  292. //
  293. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  294. // This SDK is designed to work with clang and specific versions of
  295. // gcc >= 4.0 with Apple's patch sets
  296. // Compatibility with compilers and environments that don't support compiler
  297. // feature checking function-like macros.
  298. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  299. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  300. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  301. // in between its arguments. __CONCAT can also concatenate double-quoted
  302. // strings produced by the __STRING macro, but this only works with ANSI C.
  303. // In non-ANSI C environments, new programs will want ANSI-only C keywords
  304. // deleted from the program and old programs will want them left alone.
  305. // When using a compiler other than gcc, programs using the ANSI C keywords
  306. // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
  307. // When using "gcc -traditional", we assume that this is the intent; if
  308. // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
  309. // __pure2 can be used for functions that are only a function of their scalar
  310. // arguments (meaning they can't dereference pointers).
  311. //
  312. // __stateful_pure can be used for functions that have no side effects,
  313. // but depend on the state of the memory.
  314. // __unused denotes variables and functions that may not be used, preventing
  315. // the compiler from warning about it if not used.
  316. // __used forces variables and functions to be included even if it appears
  317. // to the compiler that they are not used (and would thust be discarded).
  318. // __cold marks code used for debugging or that is rarely taken
  319. // and tells the compiler to optimize for size and outline code.
  320. // __exported denotes symbols that should be exported even when symbols
  321. // are hidden by default.
  322. // __exported_push/_exported_pop are pragmas used to delimit a range of
  323. // symbols that should be exported even when symbols are hidden by default.
  324. // __deprecated causes the compiler to produce a warning when encountering
  325. // code using the deprecated functionality.
  326. // __deprecated_msg() does the same, and compilers that support it will print
  327. // a message along with the deprecation warning.
  328. // This may require turning on such warning with the -Wdeprecated flag.
  329. // __deprecated_enum_msg() should be used on enums, and compilers that support
  330. // it will print the deprecation warning.
  331. // __kpi_deprecated() specifically indicates deprecation of kernel programming
  332. // interfaces in Kernel.framework used by KEXTs.
  333. // __unavailable causes the compiler to error out when encountering
  334. // code using the tagged function
  335. // Delete pseudo-keywords wherever they are not available or needed.
  336. // We use `__restrict' as a way to define the `restrict' type qualifier
  337. // without disturbing older software that is unaware of C99 keywords.
  338. // Compatibility with compilers and environments that don't support the
  339. // nullability feature.
  340. // __disable_tail_calls causes the compiler to not perform tail call
  341. // optimization inside the marked function.
  342. // __not_tail_called causes the compiler to prevent tail call optimization
  343. // on statically bound calls to the function. It has no effect on indirect
  344. // calls. Virtual functions, objective-c methods, and functions marked as
  345. // "always_inline" cannot be marked as __not_tail_called.
  346. // __result_use_check warns callers of a function that not using the function
  347. // return value is a bug, i.e. dismissing malloc() return value results in a
  348. // memory leak.
  349. // __swift_unavailable causes the compiler to mark a symbol as specifically
  350. // unavailable in Swift, regardless of any other availability in C.
  351. // __abortlike is the attribute to put on functions like abort() that are
  352. // typically used to mark assertions. These optimize the codegen
  353. // for outlining while still maintaining debugability.
  354. // Declaring inline functions within headers is error-prone due to differences
  355. // across various versions of the C language and extensions. __header_inline
  356. // can be used to declare inline functions within system headers. In cases
  357. // where you want to force inlining instead of letting the compiler make
  358. // the decision, you can use __header_always_inline.
  359. //
  360. // Be aware that using inline for functions which compilers may also provide
  361. // builtins can behave differently under various compilers. If you intend to
  362. // provide an inline version of such a function, you may want to use a macro
  363. // instead.
  364. //
  365. // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  366. // support c99 inline in some cases:
  367. // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  368. // Compiler-dependent macros that bracket portions of code where the
  369. // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  370. // Compiler-dependent macros to declare that functions take printf-like
  371. // or scanf-like arguments. They are null except for versions of gcc
  372. // that are known to support the features properly. Functions declared
  373. // with these attributes will cause compilation warnings if there is a
  374. // mismatch between the format string and subsequent function parameter
  375. // types.
  376. // Source compatibility only, ID string not emitted in object file
  377. // __alloc_size can be used to label function arguments that represent the
  378. // size of memory that the function allocates and returns. The one-argument
  379. // form labels a single argument that gives the allocation size (where the
  380. // arguments are numbered from 1):
  381. //
  382. // void *malloc(size_t __size) __alloc_size(1);
  383. //
  384. // The two-argument form handles the case where the size is calculated as the
  385. // product of two arguments:
  386. //
  387. // void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
  388. // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  389. //
  390. // DEFAULT By default newly complied code will get POSIX APIs plus
  391. // Apple API extensions in scope.
  392. //
  393. // Most users will use this compilation environment to avoid
  394. // behavioral differences between 32 and 64 bit code.
  395. //
  396. // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  397. // API extensions in scope.
  398. //
  399. // This is generally equivalent to the Tiger release compilation
  400. // environment, except that it cannot be applied to 64 bit code;
  401. // its use is discouraged.
  402. //
  403. // We expect this environment to be deprecated in the future.
  404. //
  405. // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  406. // available APIs to exactly the set of APIs defined by the
  407. // corresponding standard, based on the value defined.
  408. //
  409. // A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  410. // A correct, portable definition for _XOPEN_SOURCE is 600L.
  411. //
  412. // Apple API extensions are not visible in this environment,
  413. // which can cause Apple specific code to fail to compile,
  414. // or behave incorrectly if prototypes are not in scope or
  415. // warnings about missing prototypes are not enabled or ignored.
  416. //
  417. // In any compilation environment, for correct symbol resolution to occur,
  418. // function prototypes must be in scope. It is recommended that all Apple
  419. // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  420. // compiler flags to their projects to be warned when a function is being
  421. // used without a prototype in scope.
  422. // These settings are particular to each product.
  423. // Platform: MacOSX
  424. // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  425. // legacy code to use the old symbol, thus maintaining binary compatibility
  426. // while new code can use a standards compliant version of the same function.
  427. //
  428. // __DARWIN_ALIAS is used by itself if the function signature has not
  429. // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  430. // if the signature has changed. Because the __LP64__ environment
  431. // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  432. // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  433. //
  434. // As a special case, when XCode is used to target a specific version of the
  435. // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  436. // will be defined by the compiler, with the digits representing major version
  437. // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
  438. // pre-10.5, and it is the default compilation environment, revert the
  439. // compilation environment to pre-__DARWIN_UNIX03.
  440. // symbol suffixes used for symbol versioning
  441. // symbol versioning macros
  442. // symbol release macros
  443. // Copyright (c) 2010 Apple Inc. All rights reserved.
  444. //
  445. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  446. //
  447. // This file contains Original Code and/or Modifications of Original Code
  448. // as defined in and that are subject to the Apple Public Source License
  449. // Version 2.0 (the 'License'). You may not use this file except in
  450. // compliance with the License. The rights granted to you under the License
  451. // may not be used to create, or enable the creation or redistribution of,
  452. // unlawful or unlicensed copies of an Apple operating system, or to
  453. // circumvent, violate, or enable the circumvention or violation of, any
  454. // terms of an Apple operating system software license agreement.
  455. //
  456. // Please obtain a copy of the License at
  457. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  458. //
  459. // The Original Code and all software distributed under the License are
  460. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  461. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  462. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  463. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  464. // Please see the License for the specific language governing rights and
  465. // limitations under the License.
  466. //
  467. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  468. // POSIX.1 requires that the macros we test be defined before any standard
  469. // header file is included. This permits us to convert values for feature
  470. // testing, as necessary, using only _POSIX_C_SOURCE.
  471. //
  472. // Here's a quick run-down of the versions:
  473. // defined(_POSIX_SOURCE) 1003.1-1988
  474. // _POSIX_C_SOURCE == 1L 1003.1-1990
  475. // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
  476. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  477. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  478. // and the omnibus ISO/IEC 9945-1: 1996
  479. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  480. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  481. //
  482. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  483. // Specification, defines a feature-test macro which indicates the version of
  484. // that specification, and which subsumes _POSIX_C_SOURCE.
  485. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  486. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  487. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  488. // Deal with all versions of POSIX. The ordering relative to the tests above is
  489. // important.
  490. // POSIX C deprecation macros
  491. // Copyright (c) 2010 Apple Inc. All rights reserved.
  492. //
  493. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  494. //
  495. // This file contains Original Code and/or Modifications of Original Code
  496. // as defined in and that are subject to the Apple Public Source License
  497. // Version 2.0 (the 'License'). You may not use this file except in
  498. // compliance with the License. The rights granted to you under the License
  499. // may not be used to create, or enable the creation or redistribution of,
  500. // unlawful or unlicensed copies of an Apple operating system, or to
  501. // circumvent, violate, or enable the circumvention or violation of, any
  502. // terms of an Apple operating system software license agreement.
  503. //
  504. // Please obtain a copy of the License at
  505. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  506. //
  507. // The Original Code and all software distributed under the License are
  508. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  509. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  510. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  511. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  512. // Please see the License for the specific language governing rights and
  513. // limitations under the License.
  514. //
  515. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  516. // Set a single macro which will always be defined and can be used to determine
  517. // the appropriate namespace. For POSIX, these values will correspond to
  518. // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
  519. // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  520. // If the developer has neither requested a strict language mode nor a version
  521. // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  522. // of __DARWIN_C_FULL.
  523. // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  524. // c99 still want long longs. While not perfect, we allow long longs for
  525. // g++.
  526. // ****************************************
  527. //
  528. // Public darwin-specific feature macros
  529. //
  530. // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  531. // structures modified for 64-bit inodes (like struct stat) will be used.
  532. // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  533. // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  534. // (and non-zero). There is no struct stat64 either, as the regular
  535. // struct stat will already be the 64-bit version.
  536. // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  537. // in 10.5 exists; no pre-10.5 variants are available.
  538. // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  539. // are available (the legacy BSD APIs are not available)
  540. // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  541. // and specifies the conformance level (3 is SUSv3)
  542. // This macro casts away the qualifier from the variable
  543. //
  544. // Note: use at your own risk, removing qualifiers can result in
  545. // catastrophic run-time failures.
  546. // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  547. // used from other compilation units, but not other libraries or executables.
  548. // We intentionally define to nothing pointer attributes which do not have an
  549. // impact on the ABI. __indexable and __bidi_indexable are not defined because
  550. // of the ABI incompatibility that makes the diagnostic preferable.
  551. // Similarly, we intentionally define to nothing the
  552. // __ptrcheck_abi_assume_single and __ptrcheck_abi_assume_unsafe_indexable
  553. // macros because they do not lead to an ABI incompatibility. However, we do not
  554. // define the indexable and unsafe_indexable ones because the diagnostic is
  555. // better than the silent ABI break.
  556. // __unsafe_forge intrinsics are defined as regular C casts.
  557. // decay operates normally; attribute is meaningless without pointer checks.
  558. // Architecture validation for current SDK
  559. // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  560. //
  561. // This provides more advanced type checking on compilers supporting
  562. // the proper extensions, even in C.
  563. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  564. //
  565. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  566. //
  567. // This file contains Original Code and/or Modifications of Original Code
  568. // as defined in and that are subject to the Apple Public Source License
  569. // Version 2.0 (the 'License'). You may not use this file except in
  570. // compliance with the License. The rights granted to you under the License
  571. // may not be used to create, or enable the creation or redistribution of,
  572. // unlawful or unlicensed copies of an Apple operating system, or to
  573. // circumvent, violate, or enable the circumvention or violation of, any
  574. // terms of an Apple operating system software license agreement.
  575. //
  576. // Please obtain a copy of the License at
  577. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  578. //
  579. // The Original Code and all software distributed under the License are
  580. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  581. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  582. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  583. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  584. // Please see the License for the specific language governing rights and
  585. // limitations under the License.
  586. //
  587. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  588. type Errno_t = int32 /* _errno_t.h:30:32 */
  589. // Error codes
  590. // 11 was EAGAIN
  591. // math software
  592. // non-blocking and interrupt i/o
  593. // ipc/network software -- argument errors
  594. // ipc/network software -- operational errors
  595. // should be rearranged
  596. // quotas & mush
  597. // Network File System
  598. // Intelligent device errors
  599. // Program loading errors
  600. // This value is only discrete when compiling __DARWIN_UNIX03, or KERNEL
  601. var _ int8 /* gen.c:2:13: */