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