errno_darwin_amd64.go 31 KB

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