modernc.org/xau@v1.0.16/internal/autest/main_darwin_arm64.go (about) 1 // Code generated by 'ccgo -export-fields F -lmodernc.org/xau/lib -o internal/autest/main_darwin_arm64.go -trace-translation-units /var/folders/4f/mc8mts295pqf7gmnfcwh6g8w0000gn/T/go-generate-2901277256/cdb.json Autest', DO NOT EDIT. 2 3 package main 4 5 import ( 6 "math" 7 "reflect" 8 "sync/atomic" 9 "unsafe" 10 11 "modernc.org/libc" 12 "modernc.org/libc/sys/types" 13 "modernc.org/xau/lib" 14 ) 15 16 var _ = math.Pi 17 var _ reflect.Kind 18 var _ atomic.Value 19 var _ unsafe.Pointer 20 var _ *libc.TLS 21 var _ types.Size_t 22 23 func main() { libc.Start(main1) } 24 25 // Return values from XauLockAuth 26 27 // DO NOT EDIT THIS FILE. 28 // 29 // It has been auto-edited by fixincludes from: 30 // 31 // "/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/stdio.h" 32 // 33 // This had to be done to correct non-standard usages in the 34 // original, manufacturer supplied header file. 35 36 // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved. 37 // 38 // @APPLE_LICENSE_HEADER_START@ 39 // 40 // This file contains Original Code and/or Modifications of Original Code 41 // as defined in and that are subject to the Apple Public Source License 42 // Version 2.0 (the 'License'). You may not use this file except in 43 // compliance with the License. Please obtain a copy of the License at 44 // http://www.opensource.apple.com/apsl/ and read it before using this 45 // file. 46 // 47 // The Original Code and all software distributed under the License are 48 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 49 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 50 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 51 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 52 // Please see the License for the specific language governing rights and 53 // limitations under the License. 54 // 55 // @APPLE_LICENSE_HEADER_END@ 56 // - 57 // Copyright (c) 1990, 1993 58 // The Regents of the University of California. All rights reserved. 59 // 60 // Redistribution and use in source and binary forms, with or without 61 // modification, are permitted provided that the following conditions 62 // are met: 63 // 1. Redistributions of source code must retain the above copyright 64 // notice, this list of conditions and the following disclaimer. 65 // 2. Redistributions in binary form must reproduce the above copyright 66 // notice, this list of conditions and the following disclaimer in the 67 // documentation and/or other materials provided with the distribution. 68 // 3. All advertising materials mentioning features or use of this software 69 // must display the following acknowledgement: 70 // This product includes software developed by the University of 71 // California, Berkeley and its contributors. 72 // 4. Neither the name of the University nor the names of its contributors 73 // may be used to endorse or promote products derived from this software 74 // without specific prior written permission. 75 // 76 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 77 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 78 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 79 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 80 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 81 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 82 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 83 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 84 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 85 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 86 // SUCH DAMAGE. 87 // 88 // @(#)stdlib.h 8.5 (Berkeley) 5/19/95 89 90 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 91 // 92 // @APPLE_LICENSE_HEADER_START@ 93 // 94 // This file contains Original Code and/or Modifications of Original Code 95 // as defined in and that are subject to the Apple Public Source License 96 // Version 2.0 (the 'License'). You may not use this file except in 97 // compliance with the License. Please obtain a copy of the License at 98 // http://www.opensource.apple.com/apsl/ and read it before using this 99 // file. 100 // 101 // The Original Code and all software distributed under the License are 102 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 103 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 104 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 105 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 106 // Please see the License for the specific language governing rights and 107 // limitations under the License. 108 // 109 // @APPLE_LICENSE_HEADER_END@ 110 111 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 112 // 113 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 114 // 115 // This file contains Original Code and/or Modifications of Original Code 116 // as defined in and that are subject to the Apple Public Source License 117 // Version 2.0 (the 'License'). You may not use this file except in 118 // compliance with the License. The rights granted to you under the License 119 // may not be used to create, or enable the creation or redistribution of, 120 // unlawful or unlicensed copies of an Apple operating system, or to 121 // circumvent, violate, or enable the circumvention or violation of, any 122 // terms of an Apple operating system software license agreement. 123 // 124 // Please obtain a copy of the License at 125 // http://www.opensource.apple.com/apsl/ and read it before using this file. 126 // 127 // The Original Code and all software distributed under the License are 128 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 129 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 130 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 131 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 132 // Please see the License for the specific language governing rights and 133 // limitations under the License. 134 // 135 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 136 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 137 // Copyright (c) 1991, 1993 138 // The Regents of the University of California. All rights reserved. 139 // 140 // This code is derived from software contributed to Berkeley by 141 // Berkeley Software Design, Inc. 142 // 143 // Redistribution and use in source and binary forms, with or without 144 // modification, are permitted provided that the following conditions 145 // are met: 146 // 1. Redistributions of source code must retain the above copyright 147 // notice, this list of conditions and the following disclaimer. 148 // 2. Redistributions in binary form must reproduce the above copyright 149 // notice, this list of conditions and the following disclaimer in the 150 // documentation and/or other materials provided with the distribution. 151 // 3. All advertising materials mentioning features or use of this software 152 // must display the following acknowledgement: 153 // This product includes software developed by the University of 154 // California, Berkeley and its contributors. 155 // 4. Neither the name of the University nor the names of its contributors 156 // may be used to endorse or promote products derived from this software 157 // without specific prior written permission. 158 // 159 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 160 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 161 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 162 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 163 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 164 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 165 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 166 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 167 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 168 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 169 // SUCH DAMAGE. 170 // 171 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 172 173 // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved. 174 // 175 // @APPLE_LICENSE_HEADER_START@ 176 // 177 // This file contains Original Code and/or Modifications of Original Code 178 // as defined in and that are subject to the Apple Public Source License 179 // Version 2.0 (the 'License'). You may not use this file except in 180 // compliance with the License. Please obtain a copy of the License at 181 // http://www.opensource.apple.com/apsl/ and read it before using this 182 // 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_LICENSE_HEADER_END@ 193 194 // Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 195 // 196 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 197 // 198 // This file contains Original Code and/or Modifications of Original Code 199 // as defined in and that are subject to the Apple Public Source License 200 // Version 2.0 (the 'License'). You may not use this file except in 201 // compliance with the License. The rights granted to you under the License 202 // may not be used to create, or enable the creation or redistribution of, 203 // unlawful or unlicensed copies of an Apple operating system, or to 204 // circumvent, violate, or enable the circumvention or violation of, any 205 // terms of an Apple operating system software license agreement. 206 // 207 // Please obtain a copy of the License at 208 // http://www.opensource.apple.com/apsl/ and read it before using this file. 209 // 210 // The Original Code and all software distributed under the License are 211 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 212 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 213 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 214 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 215 // Please see the License for the specific language governing rights and 216 // limitations under the License. 217 // 218 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 219 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 220 // Copyright (c) 1982, 1986, 1989, 1993, 1994 221 // The Regents of the University of California. All rights reserved. 222 // 223 // Redistribution and use in source and binary forms, with or without 224 // modification, are permitted provided that the following conditions 225 // are met: 226 // 1. Redistributions of source code must retain the above copyright 227 // notice, this list of conditions and the following disclaimer. 228 // 2. Redistributions in binary form must reproduce the above copyright 229 // notice, this list of conditions and the following disclaimer in the 230 // documentation and/or other materials provided with the distribution. 231 // 3. All advertising materials mentioning features or use of this software 232 // must display the following acknowledgement: 233 // This product includes software developed by the University of 234 // California, Berkeley and its contributors. 235 // 4. Neither the name of the University nor the names of its contributors 236 // may be used to endorse or promote products derived from this software 237 // without specific prior written permission. 238 // 239 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 240 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 241 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 242 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 243 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 244 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 245 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 246 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 247 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 248 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 249 // SUCH DAMAGE. 250 // 251 // @(#)wait.h 8.2 (Berkeley) 7/10/94 252 253 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 254 // 255 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 256 // 257 // This file contains Original Code and/or Modifications of Original Code 258 // as defined in and that are subject to the Apple Public Source License 259 // Version 2.0 (the 'License'). You may not use this file except in 260 // compliance with the License. The rights granted to you under the License 261 // may not be used to create, or enable the creation or redistribution of, 262 // unlawful or unlicensed copies of an Apple operating system, or to 263 // circumvent, violate, or enable the circumvention or violation of, any 264 // terms of an Apple operating system software license agreement. 265 // 266 // Please obtain a copy of the License at 267 // http://www.opensource.apple.com/apsl/ and read it before using this file. 268 // 269 // The Original Code and all software distributed under the License are 270 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 271 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 272 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 273 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 274 // Please see the License for the specific language governing rights and 275 // limitations under the License. 276 // 277 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 278 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 279 // Copyright (c) 1991, 1993 280 // The Regents of the University of California. All rights reserved. 281 // 282 // This code is derived from software contributed to Berkeley by 283 // Berkeley Software Design, Inc. 284 // 285 // Redistribution and use in source and binary forms, with or without 286 // modification, are permitted provided that the following conditions 287 // are met: 288 // 1. Redistributions of source code must retain the above copyright 289 // notice, this list of conditions and the following disclaimer. 290 // 2. Redistributions in binary form must reproduce the above copyright 291 // notice, this list of conditions and the following disclaimer in the 292 // documentation and/or other materials provided with the distribution. 293 // 3. All advertising materials mentioning features or use of this software 294 // must display the following acknowledgement: 295 // This product includes software developed by the University of 296 // California, Berkeley and its contributors. 297 // 4. Neither the name of the University nor the names of its contributors 298 // may be used to endorse or promote products derived from this software 299 // without specific prior written permission. 300 // 301 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 302 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 303 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 304 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 305 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 306 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 307 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 308 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 309 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 310 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 311 // SUCH DAMAGE. 312 // 313 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 314 315 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 316 // 317 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 318 // 319 // This file contains Original Code and/or Modifications of Original Code 320 // as defined in and that are subject to the Apple Public Source License 321 // Version 2.0 (the 'License'). You may not use this file except in 322 // compliance with the License. The rights granted to you under the License 323 // may not be used to create, or enable the creation or redistribution of, 324 // unlawful or unlicensed copies of an Apple operating system, or to 325 // circumvent, violate, or enable the circumvention or violation of, any 326 // terms of an Apple operating system software license agreement. 327 // 328 // Please obtain a copy of the License at 329 // http://www.opensource.apple.com/apsl/ and read it before using this file. 330 // 331 // The Original Code and all software distributed under the License are 332 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 333 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 334 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 335 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 336 // Please see the License for the specific language governing rights and 337 // limitations under the License. 338 // 339 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 340 341 // This file holds definitions relevent to the wait4 system call 342 // and the alternate interfaces that use it (wait, wait3, waitpid). 343 344 // [XSI] The type idtype_t shall be defined as an enumeration type whose 345 // possible values shall include at least P_ALL, P_PID, and P_PGID. 346 const ( /* wait.h:79:1: */ 347 P_ALL = 0 348 P_PID = 1 349 P_PGID = 2 350 ) 351 352 type ptrdiff_t = int64 /* <builtin>:3:26 */ 353 354 type size_t = uint64 /* <builtin>:9:23 */ 355 356 type wchar_t = int32 /* <builtin>:15:24 */ 357 358 // 359 // 360 // Copyright 1988, 1998 The Open Group 361 // 362 // Permission to use, copy, modify, distribute, and sell this software and its 363 // documentation for any purpose is hereby granted without fee, provided that 364 // the above copyright notice appear in all copies and that both that 365 // copyright notice and this permission notice appear in supporting 366 // documentation. 367 // 368 // The above copyright notice and this permission notice shall be included in 369 // all copies or substantial portions of the Software. 370 // 371 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 372 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 373 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 374 // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 375 // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 376 // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 377 // 378 // Except as contained in this notice, the name of The Open Group shall not be 379 // used in advertising or otherwise to promote the sale, use or other dealings 380 // in this Software without prior written authorization from The Open Group. 381 // 382 383 // config.h. Generated from config.h.in by configure. 384 // config.h.in. Generated from configure.ac by autoheader. 385 386 // Define to 1 if you have the <dlfcn.h> header file. 387 388 // Define to 1 if you have the <inttypes.h> header file. 389 390 // Define to 1 if you have the <memory.h> header file. 391 392 // Define to 1 if you have the `pathconf' function. 393 394 // Define to 1 if you have the <stdint.h> header file. 395 396 // Define to 1 if you have the <stdlib.h> header file. 397 398 // Define to 1 if you have the <strings.h> header file. 399 400 // Define to 1 if you have the <string.h> header file. 401 402 // Define to 1 if you have the <sys/stat.h> header file. 403 404 // Define to 1 if you have the <sys/types.h> header file. 405 406 // Define to 1 if you have the <unistd.h> header file. 407 408 // Define to the sub-directory where libtool stores uninstalled libraries. 409 410 // Name of package 411 412 // Define to the address where bug reports for this package should be sent. 413 414 // Define to the full name of this package. 415 416 // Define to the full name and version of this package. 417 418 // Define to the one symbol short name of this package. 419 420 // Define to the home page for this package. 421 422 // Define to the version of this package. 423 424 // Major version of this package 425 426 // Minor version of this package 427 428 // Patch version of this package 429 430 // Define to 1 if you have the ANSI C header files. 431 432 // Enable extensions on AIX 3, Interix. 433 // Enable GNU extensions on systems that have them. 434 // Enable threading extensions on Solaris. 435 // Enable extensions on HP NonStop. 436 // Enable general extensions on Solaris. 437 438 // Version number of package 439 440 // Whether libXau is compiled with thread support 441 // #undef XTHREADS 442 443 // Whether libXau needs to use MT safe API's 444 // #undef XUSE_MTSAFE_API 445 446 // Define to 1 if on MINIX. 447 // #undef _MINIX 448 449 // Define to 2 if the system does not provide POSIX.1 features except with 450 // this defined. 451 // #undef _POSIX_1_SOURCE 452 453 // Define to 1 if you need to in order for `stat' and other things to work. 454 // #undef _POSIX_SOURCE 455 // 456 // 457 // Copyright 1988, 1998 The Open Group 458 // 459 // Permission to use, copy, modify, distribute, and sell this software and its 460 // documentation for any purpose is hereby granted without fee, provided that 461 // the above copyright notice appear in all copies and that both that 462 // copyright notice and this permission notice appear in supporting 463 // documentation. 464 // 465 // The above copyright notice and this permission notice shall be included in 466 // all copies or substantial portions of the Software. 467 // 468 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 469 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 470 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 471 // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 472 // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 473 // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 474 // 475 // Except as contained in this notice, the name of The Open Group shall not be 476 // used in advertising or otherwise to promote the sale, use or other dealings 477 // in this Software without prior written authorization from The Open Group. 478 // 479 480 // struct xauth is full of implicit padding to properly align the pointers 481 // after the length fields. We can't clean that up without breaking ABI, 482 // so tell clang not to bother complaining about it. 483 484 type xauth = struct { 485 Ffamily uint16 486 Faddress_length uint16 487 F__ccgo_pad1 [4]byte 488 Faddress uintptr 489 Fnumber_length uint16 490 F__ccgo_pad2 [6]byte 491 Fnumber uintptr 492 Fname_length uint16 493 F__ccgo_pad3 [6]byte 494 Fname uintptr 495 Fdata_length uint16 496 F__ccgo_pad4 [6]byte 497 Fdata uintptr 498 } /* Xauth.h:38:9 */ 499 500 // 501 // 502 // Copyright 1988, 1998 The Open Group 503 // 504 // Permission to use, copy, modify, distribute, and sell this software and its 505 // documentation for any purpose is hereby granted without fee, provided that 506 // the above copyright notice appear in all copies and that both that 507 // copyright notice and this permission notice appear in supporting 508 // documentation. 509 // 510 // The above copyright notice and this permission notice shall be included in 511 // all copies or substantial portions of the Software. 512 // 513 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 514 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 515 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 516 // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 517 // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 518 // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 519 // 520 // Except as contained in this notice, the name of The Open Group shall not be 521 // used in advertising or otherwise to promote the sale, use or other dealings 522 // in this Software without prior written authorization from The Open Group. 523 // 524 525 // config.h. Generated from config.h.in by configure. 526 // config.h.in. Generated from configure.ac by autoheader. 527 528 // Define to 1 if you have the <dlfcn.h> header file. 529 530 // Define to 1 if you have the <inttypes.h> header file. 531 532 // Define to 1 if you have the <memory.h> header file. 533 534 // Define to 1 if you have the `pathconf' function. 535 536 // Define to 1 if you have the <stdint.h> header file. 537 538 // Define to 1 if you have the <stdlib.h> header file. 539 540 // Define to 1 if you have the <strings.h> header file. 541 542 // Define to 1 if you have the <string.h> header file. 543 544 // Define to 1 if you have the <sys/stat.h> header file. 545 546 // Define to 1 if you have the <sys/types.h> header file. 547 548 // Define to 1 if you have the <unistd.h> header file. 549 550 // Define to the sub-directory where libtool stores uninstalled libraries. 551 552 // Name of package 553 554 // Define to the address where bug reports for this package should be sent. 555 556 // Define to the full name of this package. 557 558 // Define to the full name and version of this package. 559 560 // Define to the one symbol short name of this package. 561 562 // Define to the home page for this package. 563 564 // Define to the version of this package. 565 566 // Major version of this package 567 568 // Minor version of this package 569 570 // Patch version of this package 571 572 // Define to 1 if you have the ANSI C header files. 573 574 // Enable extensions on AIX 3, Interix. 575 // Enable GNU extensions on systems that have them. 576 // Enable threading extensions on Solaris. 577 // Enable extensions on HP NonStop. 578 // Enable general extensions on Solaris. 579 580 // Version number of package 581 582 // Whether libXau is compiled with thread support 583 // #undef XTHREADS 584 585 // Whether libXau needs to use MT safe API's 586 // #undef XUSE_MTSAFE_API 587 588 // Define to 1 if on MINIX. 589 // #undef _MINIX 590 591 // Define to 2 if the system does not provide POSIX.1 features except with 592 // this defined. 593 // #undef _POSIX_1_SOURCE 594 595 // Define to 1 if you need to in order for `stat' and other things to work. 596 // #undef _POSIX_SOURCE 597 // 598 // 599 // Copyright 1988, 1998 The Open Group 600 // 601 // Permission to use, copy, modify, distribute, and sell this software and its 602 // documentation for any purpose is hereby granted without fee, provided that 603 // the above copyright notice appear in all copies and that both that 604 // copyright notice and this permission notice appear in supporting 605 // documentation. 606 // 607 // The above copyright notice and this permission notice shall be included in 608 // all copies or substantial portions of the Software. 609 // 610 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 611 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 612 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 613 // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 614 // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 615 // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 616 // 617 // Except as contained in this notice, the name of The Open Group shall not be 618 // used in advertising or otherwise to promote the sale, use or other dealings 619 // in this Software without prior written authorization from The Open Group. 620 // 621 622 // struct xauth is full of implicit padding to properly align the pointers 623 // after the length fields. We can't clean that up without breaking ABI, 624 // so tell clang not to bother complaining about it. 625 626 type Xauth = xauth /* Xauth.h:48:3 */ 627 628 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 629 // 630 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 631 // 632 // This file contains Original Code and/or Modifications of Original Code 633 // as defined in and that are subject to the Apple Public Source License 634 // Version 2.0 (the 'License'). You may not use this file except in 635 // compliance with the License. The rights granted to you under the License 636 // may not be used to create, or enable the creation or redistribution of, 637 // unlawful or unlicensed copies of an Apple operating system, or to 638 // circumvent, violate, or enable the circumvention or violation of, any 639 // terms of an Apple operating system software license agreement. 640 // 641 // Please obtain a copy of the License at 642 // http://www.opensource.apple.com/apsl/ and read it before using this file. 643 // 644 // The Original Code and all software distributed under the License are 645 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 646 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 647 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 648 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 649 // Please see the License for the specific language governing rights and 650 // limitations under the License. 651 // 652 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 653 654 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 655 // 656 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 657 // 658 // This file contains Original Code and/or Modifications of Original Code 659 // as defined in and that are subject to the Apple Public Source License 660 // Version 2.0 (the 'License'). You may not use this file except in 661 // compliance with the License. The rights granted to you under the License 662 // may not be used to create, or enable the creation or redistribution of, 663 // unlawful or unlicensed copies of an Apple operating system, or to 664 // circumvent, violate, or enable the circumvention or violation of, any 665 // terms of an Apple operating system software license agreement. 666 // 667 // Please obtain a copy of the License at 668 // http://www.opensource.apple.com/apsl/ and read it before using this file. 669 // 670 // The Original Code and all software distributed under the License are 671 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 672 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 673 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 674 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 675 // Please see the License for the specific language governing rights and 676 // limitations under the License. 677 // 678 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 679 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 680 // Copyright (c) 1991, 1993 681 // The Regents of the University of California. All rights reserved. 682 // 683 // This code is derived from software contributed to Berkeley by 684 // Berkeley Software Design, Inc. 685 // 686 // Redistribution and use in source and binary forms, with or without 687 // modification, are permitted provided that the following conditions 688 // are met: 689 // 1. Redistributions of source code must retain the above copyright 690 // notice, this list of conditions and the following disclaimer. 691 // 2. Redistributions in binary form must reproduce the above copyright 692 // notice, this list of conditions and the following disclaimer in the 693 // documentation and/or other materials provided with the distribution. 694 // 3. All advertising materials mentioning features or use of this software 695 // must display the following acknowledgement: 696 // This product includes software developed by the University of 697 // California, Berkeley and its contributors. 698 // 4. Neither the name of the University nor the names of its contributors 699 // may be used to endorse or promote products derived from this software 700 // without specific prior written permission. 701 // 702 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 703 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 704 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 705 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 706 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 707 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 708 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 709 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 710 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 711 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 712 // SUCH DAMAGE. 713 // 714 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 715 716 // pthread opaque structures 717 718 type __darwin_pthread_handler_rec = struct { 719 F__routine uintptr 720 F__arg uintptr 721 F__next uintptr 722 } /* _pthread_types.h:57:1 */ 723 724 type _opaque_pthread_attr_t = struct { 725 F__sig int64 726 F__opaque [56]int8 727 } /* _pthread_types.h:63:1 */ 728 729 type _opaque_pthread_cond_t = struct { 730 F__sig int64 731 F__opaque [40]int8 732 } /* _pthread_types.h:68:1 */ 733 734 type _opaque_pthread_condattr_t = struct { 735 F__sig int64 736 F__opaque [8]int8 737 } /* _pthread_types.h:73:1 */ 738 739 type _opaque_pthread_mutex_t = struct { 740 F__sig int64 741 F__opaque [56]int8 742 } /* _pthread_types.h:78:1 */ 743 744 type _opaque_pthread_mutexattr_t = struct { 745 F__sig int64 746 F__opaque [8]int8 747 } /* _pthread_types.h:83:1 */ 748 749 type _opaque_pthread_once_t = struct { 750 F__sig int64 751 F__opaque [8]int8 752 } /* _pthread_types.h:88:1 */ 753 754 type _opaque_pthread_rwlock_t = struct { 755 F__sig int64 756 F__opaque [192]int8 757 } /* _pthread_types.h:93:1 */ 758 759 type _opaque_pthread_rwlockattr_t = struct { 760 F__sig int64 761 F__opaque [16]int8 762 } /* _pthread_types.h:98:1 */ 763 764 type _opaque_pthread_t = struct { 765 F__sig int64 766 F__cleanup_stack uintptr 767 F__opaque [8176]int8 768 } /* _pthread_types.h:103:1 */ 769 770 // C11 Annex K 771 772 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 773 // 774 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 775 // 776 // This file contains Original Code and/or Modifications of Original Code 777 // as defined in and that are subject to the Apple Public Source License 778 // Version 2.0 (the 'License'). You may not use this file except in 779 // compliance with the License. The rights granted to you under the License 780 // may not be used to create, or enable the creation or redistribution of, 781 // unlawful or unlicensed copies of an Apple operating system, or to 782 // circumvent, violate, or enable the circumvention or violation of, any 783 // terms of an Apple operating system software license agreement. 784 // 785 // Please obtain a copy of the License at 786 // http://www.opensource.apple.com/apsl/ and read it before using this file. 787 // 788 // The Original Code and all software distributed under the License are 789 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 790 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 791 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 792 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 793 // Please see the License for the specific language governing rights and 794 // limitations under the License. 795 // 796 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 797 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 798 // 799 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 800 // 801 // This file contains Original Code and/or Modifications of Original Code 802 // as defined in and that are subject to the Apple Public Source License 803 // Version 2.0 (the 'License'). You may not use this file except in 804 // compliance with the License. The rights granted to you under the License 805 // may not be used to create, or enable the creation or redistribution of, 806 // unlawful or unlicensed copies of an Apple operating system, or to 807 // circumvent, violate, or enable the circumvention or violation of, any 808 // terms of an Apple operating system software license agreement. 809 // 810 // Please obtain a copy of the License at 811 // http://www.opensource.apple.com/apsl/ and read it before using this file. 812 // 813 // The Original Code and all software distributed under the License are 814 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 815 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 816 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 817 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 818 // Please see the License for the specific language governing rights and 819 // limitations under the License. 820 // 821 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 822 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 823 824 // Copyright (c) 2000-2008 Apple Inc. All rights reserved. 825 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 826 // Copyright (c) 1990, 1993 827 // The Regents of the University of California. All rights reserved. 828 // 829 // Redistribution and use in source and binary forms, with or without 830 // modification, are permitted provided that the following conditions 831 // are met: 832 // 1. Redistributions of source code must retain the above copyright 833 // notice, this list of conditions and the following disclaimer. 834 // 2. Redistributions in binary form must reproduce the above copyright 835 // notice, this list of conditions and the following disclaimer in the 836 // documentation and/or other materials provided with the distribution. 837 // 3. All advertising materials mentioning features or use of this software 838 // must display the following acknowledgement: 839 // This product includes software developed by the University of 840 // California, Berkeley and its contributors. 841 // 4. Neither the name of the University nor the names of its contributors 842 // may be used to endorse or promote products derived from this software 843 // without specific prior written permission. 844 // 845 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 846 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 847 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 848 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 849 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 850 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 851 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 852 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 853 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 854 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 855 // SUCH DAMAGE. 856 // 857 // @(#)types.h 8.3 (Berkeley) 1/5/94 858 859 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 860 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 861 // 862 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 863 // 864 // This file contains Original Code and/or Modifications of Original Code 865 // as defined in and that are subject to the Apple Public Source License 866 // Version 2.0 (the 'License'). You may not use this file except in 867 // compliance with the License. The rights granted to you under the License 868 // may not be used to create, or enable the creation or redistribution of, 869 // unlawful or unlicensed copies of an Apple operating system, or to 870 // circumvent, violate, or enable the circumvention or violation of, any 871 // terms of an Apple operating system software license agreement. 872 // 873 // Please obtain a copy of the License at 874 // http://www.opensource.apple.com/apsl/ and read it before using this file. 875 // 876 // The Original Code and all software distributed under the License are 877 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 878 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 879 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 880 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 881 // Please see the License for the specific language governing rights and 882 // limitations under the License. 883 // 884 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 885 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 886 // Copyright (c) 1991, 1993 887 // The Regents of the University of California. All rights reserved. 888 // 889 // This code is derived from software contributed to Berkeley by 890 // Berkeley Software Design, Inc. 891 // 892 // Redistribution and use in source and binary forms, with or without 893 // modification, are permitted provided that the following conditions 894 // are met: 895 // 1. Redistributions of source code must retain the above copyright 896 // notice, this list of conditions and the following disclaimer. 897 // 2. Redistributions in binary form must reproduce the above copyright 898 // notice, this list of conditions and the following disclaimer in the 899 // documentation and/or other materials provided with the distribution. 900 // 3. All advertising materials mentioning features or use of this software 901 // must display the following acknowledgement: 902 // This product includes software developed by the University of 903 // California, Berkeley and its contributors. 904 // 4. Neither the name of the University nor the names of its contributors 905 // may be used to endorse or promote products derived from this software 906 // without specific prior written permission. 907 // 908 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 909 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 910 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 911 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 912 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 913 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 914 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 915 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 916 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 917 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 918 // SUCH DAMAGE. 919 // 920 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 921 922 // Basic integral types. Omit the typedef if 923 // not possible for a machine/compiler combination. 924 // Copyright (c) 2012 Apple Inc. All rights reserved. 925 // 926 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 927 // 928 // This file contains Original Code and/or Modifications of Original Code 929 // as defined in and that are subject to the Apple Public Source License 930 // Version 2.0 (the 'License'). You may not use this file except in 931 // compliance with the License. The rights granted to you under the License 932 // may not be used to create, or enable the creation or redistribution of, 933 // unlawful or unlicensed copies of an Apple operating system, or to 934 // circumvent, violate, or enable the circumvention or violation of, any 935 // terms of an Apple operating system software license agreement. 936 // 937 // Please obtain a copy of the License at 938 // http://www.opensource.apple.com/apsl/ and read it before using this file. 939 // 940 // The Original Code and all software distributed under the License are 941 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 942 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 943 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 944 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 945 // Please see the License for the specific language governing rights and 946 // limitations under the License. 947 // 948 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 949 type int8_t = int8 /* _int8_t.h:30:31 */ 950 // Copyright (c) 2012 Apple Inc. All rights reserved. 951 // 952 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 953 // 954 // This file contains Original Code and/or Modifications of Original Code 955 // as defined in and that are subject to the Apple Public Source License 956 // Version 2.0 (the 'License'). You may not use this file except in 957 // compliance with the License. The rights granted to you under the License 958 // may not be used to create, or enable the creation or redistribution of, 959 // unlawful or unlicensed copies of an Apple operating system, or to 960 // circumvent, violate, or enable the circumvention or violation of, any 961 // terms of an Apple operating system software license agreement. 962 // 963 // Please obtain a copy of the License at 964 // http://www.opensource.apple.com/apsl/ and read it before using this file. 965 // 966 // The Original Code and all software distributed under the License are 967 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 968 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 969 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 970 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 971 // Please see the License for the specific language governing rights and 972 // limitations under the License. 973 // 974 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 975 type int16_t = int16 /* _int16_t.h:30:33 */ 976 // Copyright (c) 2012 Apple Inc. All rights reserved. 977 // 978 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 979 // 980 // This file contains Original Code and/or Modifications of Original Code 981 // as defined in and that are subject to the Apple Public Source License 982 // Version 2.0 (the 'License'). You may not use this file except in 983 // compliance with the License. The rights granted to you under the License 984 // may not be used to create, or enable the creation or redistribution of, 985 // unlawful or unlicensed copies of an Apple operating system, or to 986 // circumvent, violate, or enable the circumvention or violation of, any 987 // terms of an Apple operating system software license agreement. 988 // 989 // Please obtain a copy of the License at 990 // http://www.opensource.apple.com/apsl/ and read it before using this file. 991 // 992 // The Original Code and all software distributed under the License are 993 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 994 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 995 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 996 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 997 // Please see the License for the specific language governing rights and 998 // limitations under the License. 999 // 1000 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1001 type int32_t = int32 /* _int32_t.h:30:33 */ 1002 // Copyright (c) 2012 Apple Inc. All rights reserved. 1003 // 1004 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1005 // 1006 // This file contains Original Code and/or Modifications of Original Code 1007 // as defined in and that are subject to the Apple Public Source License 1008 // Version 2.0 (the 'License'). You may not use this file except in 1009 // compliance with the License. The rights granted to you under the License 1010 // may not be used to create, or enable the creation or redistribution of, 1011 // unlawful or unlicensed copies of an Apple operating system, or to 1012 // circumvent, violate, or enable the circumvention or violation of, any 1013 // terms of an Apple operating system software license agreement. 1014 // 1015 // Please obtain a copy of the License at 1016 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1017 // 1018 // The Original Code and all software distributed under the License are 1019 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1020 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1021 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1022 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1023 // Please see the License for the specific language governing rights and 1024 // limitations under the License. 1025 // 1026 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1027 type int64_t = int64 /* _int64_t.h:30:33 */ 1028 1029 // Copyright (c) 2016 Apple Inc. All rights reserved. 1030 // 1031 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1032 // 1033 // This file contains Original Code and/or Modifications of Original Code 1034 // as defined in and that are subject to the Apple Public Source License 1035 // Version 2.0 (the 'License'). You may not use this file except in 1036 // compliance with the License. The rights granted to you under the License 1037 // may not be used to create, or enable the creation or redistribution of, 1038 // unlawful or unlicensed copies of an Apple operating system, or to 1039 // circumvent, violate, or enable the circumvention or violation of, any 1040 // terms of an Apple operating system software license agreement. 1041 // 1042 // Please obtain a copy of the License at 1043 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1044 // 1045 // The Original Code and all software distributed under the License are 1046 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1047 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1048 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1049 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1050 // Please see the License for the specific language governing rights and 1051 // limitations under the License. 1052 // 1053 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1054 type u_int8_t = uint8 /* _u_int8_t.h:30:33 */ 1055 // Copyright (c) 2012 Apple Inc. All rights reserved. 1056 // 1057 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1058 // 1059 // This file contains Original Code and/or Modifications of Original Code 1060 // as defined in and that are subject to the Apple Public Source License 1061 // Version 2.0 (the 'License'). You may not use this file except in 1062 // compliance with the License. The rights granted to you under the License 1063 // may not be used to create, or enable the creation or redistribution of, 1064 // unlawful or unlicensed copies of an Apple operating system, or to 1065 // circumvent, violate, or enable the circumvention or violation of, any 1066 // terms of an Apple operating system software license agreement. 1067 // 1068 // Please obtain a copy of the License at 1069 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1070 // 1071 // The Original Code and all software distributed under the License are 1072 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1073 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1074 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1075 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1076 // Please see the License for the specific language governing rights and 1077 // limitations under the License. 1078 // 1079 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1080 type u_int16_t = uint16 /* _u_int16_t.h:30:41 */ 1081 // Copyright (c) 2012 Apple Inc. All rights reserved. 1082 // 1083 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1084 // 1085 // This file contains Original Code and/or Modifications of Original Code 1086 // as defined in and that are subject to the Apple Public Source License 1087 // Version 2.0 (the 'License'). You may not use this file except in 1088 // compliance with the License. The rights granted to you under the License 1089 // may not be used to create, or enable the creation or redistribution of, 1090 // unlawful or unlicensed copies of an Apple operating system, or to 1091 // circumvent, violate, or enable the circumvention or violation of, any 1092 // terms of an Apple operating system software license agreement. 1093 // 1094 // Please obtain a copy of the License at 1095 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1096 // 1097 // The Original Code and all software distributed under the License are 1098 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1099 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1100 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1101 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1102 // Please see the License for the specific language governing rights and 1103 // limitations under the License. 1104 // 1105 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1106 type u_int32_t = uint32 /* _u_int32_t.h:30:33 */ 1107 // Copyright (c) 2012 Apple Inc. All rights reserved. 1108 // 1109 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1110 // 1111 // This file contains Original Code and/or Modifications of Original Code 1112 // as defined in and that are subject to the Apple Public Source License 1113 // Version 2.0 (the 'License'). You may not use this file except in 1114 // compliance with the License. The rights granted to you under the License 1115 // may not be used to create, or enable the creation or redistribution of, 1116 // unlawful or unlicensed copies of an Apple operating system, or to 1117 // circumvent, violate, or enable the circumvention or violation of, any 1118 // terms of an Apple operating system software license agreement. 1119 // 1120 // Please obtain a copy of the License at 1121 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1122 // 1123 // The Original Code and all software distributed under the License are 1124 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1125 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1126 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1127 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1128 // Please see the License for the specific language governing rights and 1129 // limitations under the License. 1130 // 1131 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1132 type u_int64_t = uint64 /* _u_int64_t.h:30:33 */ 1133 1134 type register_t = int64_t /* types.h:66:33 */ 1135 1136 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1137 // 1138 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1139 // 1140 // This file contains Original Code and/or Modifications of Original Code 1141 // as defined in and that are subject to the Apple Public Source License 1142 // Version 2.0 (the 'License'). You may not use this file except in 1143 // compliance with the License. The rights granted to you under the License 1144 // may not be used to create, or enable the creation or redistribution of, 1145 // unlawful or unlicensed copies of an Apple operating system, or to 1146 // circumvent, violate, or enable the circumvention or violation of, any 1147 // terms of an Apple operating system software license agreement. 1148 // 1149 // Please obtain a copy of the License at 1150 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1151 // 1152 // The Original Code and all software distributed under the License are 1153 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1154 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1155 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1156 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1157 // Please see the License for the specific language governing rights and 1158 // limitations under the License. 1159 // 1160 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1161 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 1162 // 1163 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1164 // 1165 // This file contains Original Code and/or Modifications of Original Code 1166 // as defined in and that are subject to the Apple Public Source License 1167 // Version 2.0 (the 'License'). You may not use this file except in 1168 // compliance with the License. The rights granted to you under the License 1169 // may not be used to create, or enable the creation or redistribution of, 1170 // unlawful or unlicensed copies of an Apple operating system, or to 1171 // circumvent, violate, or enable the circumvention or violation of, any 1172 // terms of an Apple operating system software license agreement. 1173 // 1174 // Please obtain a copy of the License at 1175 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1176 // 1177 // The Original Code and all software distributed under the License are 1178 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1179 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1180 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1181 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1182 // Please see the License for the specific language governing rights and 1183 // limitations under the License. 1184 // 1185 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1186 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1187 1188 type intptr_t = int64 /* _intptr_t.h:32:33 */ 1189 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1190 // 1191 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1192 // 1193 // This file contains Original Code and/or Modifications of Original Code 1194 // as defined in and that are subject to the Apple Public Source License 1195 // Version 2.0 (the 'License'). You may not use this file except in 1196 // compliance with the License. The rights granted to you under the License 1197 // may not be used to create, or enable the creation or redistribution of, 1198 // unlawful or unlicensed copies of an Apple operating system, or to 1199 // circumvent, violate, or enable the circumvention or violation of, any 1200 // terms of an Apple operating system software license agreement. 1201 // 1202 // Please obtain a copy of the License at 1203 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1204 // 1205 // The Original Code and all software distributed under the License are 1206 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1207 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1208 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1209 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1210 // Please see the License for the specific language governing rights and 1211 // limitations under the License. 1212 // 1213 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1214 1215 type uintptr_t = uint64 /* _uintptr_t.h:34:33 */ 1216 1217 // These types are used for reserving the largest possible size. 1218 type user_addr_t = u_int64_t /* types.h:77:33 */ 1219 type user_size_t = u_int64_t /* types.h:78:33 */ 1220 type user_ssize_t = int64_t /* types.h:79:33 */ 1221 type user_long_t = int64_t /* types.h:80:33 */ 1222 type user_ulong_t = u_int64_t /* types.h:81:33 */ 1223 type user_time_t = int64_t /* types.h:82:33 */ 1224 type user_off_t = int64_t /* types.h:83:33 */ 1225 1226 // This defines the size of syscall arguments after copying into the kernel: 1227 type syscall_arg_t = u_int64_t /* types.h:104:33 */ 1228 1229 type rsize_t = uint64 /* _rsize_t.h:31:32 */ 1230 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1231 // 1232 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1233 // 1234 // This file contains Original Code and/or Modifications of Original Code 1235 // as defined in and that are subject to the Apple Public Source License 1236 // Version 2.0 (the 'License'). You may not use this file except in 1237 // compliance with the License. The rights granted to you under the License 1238 // may not be used to create, or enable the creation or redistribution of, 1239 // unlawful or unlicensed copies of an Apple operating system, or to 1240 // circumvent, violate, or enable the circumvention or violation of, any 1241 // terms of an Apple operating system software license agreement. 1242 // 1243 // Please obtain a copy of the License at 1244 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1245 // 1246 // The Original Code and all software distributed under the License are 1247 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1248 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1249 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1250 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1251 // Please see the License for the specific language governing rights and 1252 // limitations under the License. 1253 // 1254 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1255 type errno_t = int32 /* _errno_t.h:30:32 */ 1256 1257 // Darwin extensions 1258 1259 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1260 // 1261 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1262 // 1263 // This file contains Original Code and/or Modifications of Original Code 1264 // as defined in and that are subject to the Apple Public Source License 1265 // Version 2.0 (the 'License'). You may not use this file except in 1266 // compliance with the License. The rights granted to you under the License 1267 // may not be used to create, or enable the creation or redistribution of, 1268 // unlawful or unlicensed copies of an Apple operating system, or to 1269 // circumvent, violate, or enable the circumvention or violation of, any 1270 // terms of an Apple operating system software license agreement. 1271 // 1272 // Please obtain a copy of the License at 1273 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1274 // 1275 // The Original Code and all software distributed under the License are 1276 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1277 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1278 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1279 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1280 // Please see the License for the specific language governing rights and 1281 // limitations under the License. 1282 // 1283 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1284 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 1285 // 1286 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1287 // 1288 // This file contains Original Code and/or Modifications of Original Code 1289 // as defined in and that are subject to the Apple Public Source License 1290 // Version 2.0 (the 'License'). You may not use this file except in 1291 // compliance with the License. The rights granted to you under the License 1292 // may not be used to create, or enable the creation or redistribution of, 1293 // unlawful or unlicensed copies of an Apple operating system, or to 1294 // circumvent, violate, or enable the circumvention or violation of, any 1295 // terms of an Apple operating system software license agreement. 1296 // 1297 // Please obtain a copy of the License at 1298 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1299 // 1300 // The Original Code and all software distributed under the License are 1301 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1302 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1303 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1304 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1305 // Please see the License for the specific language governing rights and 1306 // limitations under the License. 1307 // 1308 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1309 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1310 type ssize_t = int64 /* _ssize_t.h:31:33 */ 1311 1312 // Define the standard macros for the user, 1313 // if this invocation was from the user program. 1314 1315 // Copyright (c) 2000, 2005, 2007, 2009, 2010 Apple Inc. All rights reserved. 1316 // 1317 // @APPLE_LICENSE_HEADER_START@ 1318 // 1319 // This file contains Original Code and/or Modifications of Original Code 1320 // as defined in and that are subject to the Apple Public Source License 1321 // Version 2.0 (the 'License'). You may not use this file except in 1322 // compliance with the License. Please obtain a copy of the License at 1323 // http://www.opensource.apple.com/apsl/ and read it before using this 1324 // file. 1325 // 1326 // The Original Code and all software distributed under the License are 1327 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1328 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1329 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1330 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1331 // Please see the License for the specific language governing rights and 1332 // limitations under the License. 1333 // 1334 // @APPLE_LICENSE_HEADER_END@ 1335 // - 1336 // Copyright (c) 1990, 1993 1337 // The Regents of the University of California. All rights reserved. 1338 // 1339 // This code is derived from software contributed to Berkeley by 1340 // Chris Torek. 1341 // 1342 // Redistribution and use in source and binary forms, with or without 1343 // modification, are permitted provided that the following conditions 1344 // are met: 1345 // 1. Redistributions of source code must retain the above copyright 1346 // notice, this list of conditions and the following disclaimer. 1347 // 2. Redistributions in binary form must reproduce the above copyright 1348 // notice, this list of conditions and the following disclaimer in the 1349 // documentation and/or other materials provided with the distribution. 1350 // 3. All advertising materials mentioning features or use of this software 1351 // must display the following acknowledgement: 1352 // This product includes software developed by the University of 1353 // California, Berkeley and its contributors. 1354 // 4. Neither the name of the University nor the names of its contributors 1355 // may be used to endorse or promote products derived from this software 1356 // without specific prior written permission. 1357 // 1358 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1359 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1360 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1361 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1362 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1363 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1364 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1365 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1366 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1367 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1368 // SUCH DAMAGE. 1369 // 1370 // @(#)stdio.h 8.5 (Berkeley) 4/29/95 1371 1372 // Copyright (c) 2000, 2005, 2007, 2009, 2010 Apple Inc. All rights reserved. 1373 // 1374 // @APPLE_LICENSE_HEADER_START@ 1375 // 1376 // This file contains Original Code and/or Modifications of Original Code 1377 // as defined in and that are subject to the Apple Public Source License 1378 // Version 2.0 (the 'License'). You may not use this file except in 1379 // compliance with the License. Please obtain a copy of the License at 1380 // http://www.opensource.apple.com/apsl/ and read it before using this 1381 // file. 1382 // 1383 // The Original Code and all software distributed under the License are 1384 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1385 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1386 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1387 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1388 // Please see the License for the specific language governing rights and 1389 // limitations under the License. 1390 // 1391 // @APPLE_LICENSE_HEADER_END@ 1392 // - 1393 // Copyright (c) 1990, 1993 1394 // The Regents of the University of California. All rights reserved. 1395 // 1396 // This code is derived from software contributed to Berkeley by 1397 // Chris Torek. 1398 // 1399 // Redistribution and use in source and binary forms, with or without 1400 // modification, are permitted provided that the following conditions 1401 // are met: 1402 // 1. Redistributions of source code must retain the above copyright 1403 // notice, this list of conditions and the following disclaimer. 1404 // 2. Redistributions in binary form must reproduce the above copyright 1405 // notice, this list of conditions and the following disclaimer in the 1406 // documentation and/or other materials provided with the distribution. 1407 // 3. All advertising materials mentioning features or use of this software 1408 // must display the following acknowledgement: 1409 // This product includes software developed by the University of 1410 // California, Berkeley and its contributors. 1411 // 4. Neither the name of the University nor the names of its contributors 1412 // may be used to endorse or promote products derived from this software 1413 // without specific prior written permission. 1414 // 1415 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1416 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1417 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1418 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1419 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1420 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1421 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1422 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1423 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1424 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1425 // SUCH DAMAGE. 1426 // 1427 // @(#)stdio.h 8.5 (Berkeley) 4/29/95 1428 1429 // Common header for stdio.h and xlocale/_stdio.h 1430 1431 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1432 // 1433 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1434 // 1435 // This file contains Original Code and/or Modifications of Original Code 1436 // as defined in and that are subject to the Apple Public Source License 1437 // Version 2.0 (the 'License'). You may not use this file except in 1438 // compliance with the License. The rights granted to you under the License 1439 // may not be used to create, or enable the creation or redistribution of, 1440 // unlawful or unlicensed copies of an Apple operating system, or to 1441 // circumvent, violate, or enable the circumvention or violation of, any 1442 // terms of an Apple operating system software license agreement. 1443 // 1444 // Please obtain a copy of the License at 1445 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1446 // 1447 // The Original Code and all software distributed under the License are 1448 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1449 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1450 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1451 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1452 // Please see the License for the specific language governing rights and 1453 // limitations under the License. 1454 // 1455 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1456 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1457 // Copyright (c) 1991, 1993 1458 // The Regents of the University of California. All rights reserved. 1459 // 1460 // This code is derived from software contributed to Berkeley by 1461 // Berkeley Software Design, Inc. 1462 // 1463 // Redistribution and use in source and binary forms, with or without 1464 // modification, are permitted provided that the following conditions 1465 // are met: 1466 // 1. Redistributions of source code must retain the above copyright 1467 // notice, this list of conditions and the following disclaimer. 1468 // 2. Redistributions in binary form must reproduce the above copyright 1469 // notice, this list of conditions and the following disclaimer in the 1470 // documentation and/or other materials provided with the distribution. 1471 // 3. All advertising materials mentioning features or use of this software 1472 // must display the following acknowledgement: 1473 // This product includes software developed by the University of 1474 // California, Berkeley and its contributors. 1475 // 4. Neither the name of the University nor the names of its contributors 1476 // may be used to endorse or promote products derived from this software 1477 // without specific prior written permission. 1478 // 1479 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1480 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1481 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1482 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1483 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1484 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1485 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1486 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1487 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1488 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1489 // SUCH DAMAGE. 1490 // 1491 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1492 1493 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 1494 // 1495 // @APPLE_LICENSE_HEADER_START@ 1496 // 1497 // This file contains Original Code and/or Modifications of Original Code 1498 // as defined in and that are subject to the Apple Public Source License 1499 // Version 2.0 (the 'License'). You may not use this file except in 1500 // compliance with the License. Please obtain a copy of the License at 1501 // http://www.opensource.apple.com/apsl/ and read it before using this 1502 // file. 1503 // 1504 // The Original Code and all software distributed under the License are 1505 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1506 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1507 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1508 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1509 // Please see the License for the specific language governing rights and 1510 // limitations under the License. 1511 // 1512 // @APPLE_LICENSE_HEADER_END@ 1513 1514 // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved. 1515 // 1516 // @APPLE_LICENSE_HEADER_START@ 1517 // 1518 // This file contains Original Code and/or Modifications of Original Code 1519 // as defined in and that are subject to the Apple Public Source License 1520 // Version 2.0 (the 'License'). You may not use this file except in 1521 // compliance with the License. Please obtain a copy of the License at 1522 // http://www.opensource.apple.com/apsl/ and read it before using this 1523 // file. 1524 // 1525 // The Original Code and all software distributed under the License are 1526 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1527 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1528 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1529 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1530 // Please see the License for the specific language governing rights and 1531 // limitations under the License. 1532 // 1533 // @APPLE_LICENSE_HEADER_END@ 1534 1535 // DO NOT REMOVE THIS COMMENT: fixincludes needs to see: 1536 // __gnuc_va_list and include <stdarg.h> 1537 // Copyright (c) 2012 Apple Inc. All rights reserved. 1538 // 1539 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1540 // 1541 // This file contains Original Code and/or Modifications of Original Code 1542 // as defined in and that are subject to the Apple Public Source License 1543 // Version 2.0 (the 'License'). You may not use this file except in 1544 // compliance with the License. The rights granted to you under the License 1545 // may not be used to create, or enable the creation or redistribution of, 1546 // unlawful or unlicensed copies of an Apple operating system, or to 1547 // circumvent, violate, or enable the circumvention or violation of, any 1548 // terms of an Apple operating system software license agreement. 1549 // 1550 // Please obtain a copy of the License at 1551 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1552 // 1553 // The Original Code and all software distributed under the License are 1554 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1555 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1556 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1557 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1558 // Please see the License for the specific language governing rights and 1559 // limitations under the License. 1560 // 1561 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1562 1563 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 1564 // 1565 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1566 // 1567 // This file contains Original Code and/or Modifications of Original Code 1568 // as defined in and that are subject to the Apple Public Source License 1569 // Version 2.0 (the 'License'). You may not use this file except in 1570 // compliance with the License. The rights granted to you under the License 1571 // may not be used to create, or enable the creation or redistribution of, 1572 // unlawful or unlicensed copies of an Apple operating system, or to 1573 // circumvent, violate, or enable the circumvention or violation of, any 1574 // terms of an Apple operating system software license agreement. 1575 // 1576 // Please obtain a copy of the License at 1577 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1578 // 1579 // The Original Code and all software distributed under the License are 1580 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1581 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1582 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1583 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1584 // Please see the License for the specific language governing rights and 1585 // limitations under the License. 1586 // 1587 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1588 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1589 type va_list = uintptr /* _va_list.h:32:26 */ 1590 1591 type fpos_t = int64 /* _stdio.h:81:25 */ 1592 1593 // NB: to fit things in six character monocase externals, the stdio 1594 // code uses the prefix `__s' for stdio objects, typically followed 1595 // by a three-character attempt at a mnemonic. 1596 1597 // stdio buffers 1598 type __sbuf = struct { 1599 F_base uintptr 1600 F_size int32 1601 F__ccgo_pad1 [4]byte 1602 } /* _stdio.h:92:1 */ 1603 1604 // stdio state variables. 1605 // 1606 // The following always hold: 1607 // 1608 // if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR), 1609 // _lbfsize is -_bf._size, else _lbfsize is 0 1610 // if _flags&__SRD, _w is 0 1611 // if _flags&__SWR, _r is 0 1612 // 1613 // This ensures that the getc and putc macros (or inline functions) never 1614 // try to write or read from a file that is in `read' or `write' mode. 1615 // (Moreover, they can, and do, automatically switch from read mode to 1616 // write mode, and back, on "r+" and "w+" files.) 1617 // 1618 // _lbfsize is used only to make the inline line-buffered output stream 1619 // code as compact as possible. 1620 // 1621 // _ub, _up, and _ur are used when ungetc() pushes back more characters 1622 // than fit in the current _bf, or when ungetc() pushes back a character 1623 // that does not match the previous one in _bf. When this happens, 1624 // _ub._base becomes non-nil (i.e., a stream has ungetc() data iff 1625 // _ub._base!=NULL) and _up and _ur save the current values of _p and _r. 1626 // 1627 // NB: see WARNING above before changing the layout of this structure! 1628 type __sFILE = struct { 1629 F_p uintptr 1630 F_r int32 1631 F_w int32 1632 F_flags int16 1633 F_file int16 1634 F__ccgo_pad1 [4]byte 1635 F_bf struct { 1636 F_base uintptr 1637 F_size int32 1638 F__ccgo_pad1 [4]byte 1639 } 1640 F_lbfsize int32 1641 F__ccgo_pad2 [4]byte 1642 F_cookie uintptr 1643 F_close uintptr 1644 F_read uintptr 1645 F_seek uintptr 1646 F_write uintptr 1647 F_ub struct { 1648 F_base uintptr 1649 F_size int32 1650 F__ccgo_pad1 [4]byte 1651 } 1652 F_extra uintptr 1653 F_ur int32 1654 F_ubuf [3]uint8 1655 F_nbuf [1]uint8 1656 F_lb struct { 1657 F_base uintptr 1658 F_size int32 1659 F__ccgo_pad1 [4]byte 1660 } 1661 F_blksize int32 1662 F__ccgo_pad3 [4]byte 1663 F_offset fpos_t 1664 } /* _stdio.h:126:9 */ 1665 1666 // stdio state variables. 1667 // 1668 // The following always hold: 1669 // 1670 // if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR), 1671 // _lbfsize is -_bf._size, else _lbfsize is 0 1672 // if _flags&__SRD, _w is 0 1673 // if _flags&__SWR, _r is 0 1674 // 1675 // This ensures that the getc and putc macros (or inline functions) never 1676 // try to write or read from a file that is in `read' or `write' mode. 1677 // (Moreover, they can, and do, automatically switch from read mode to 1678 // write mode, and back, on "r+" and "w+" files.) 1679 // 1680 // _lbfsize is used only to make the inline line-buffered output stream 1681 // code as compact as possible. 1682 // 1683 // _ub, _up, and _ur are used when ungetc() pushes back more characters 1684 // than fit in the current _bf, or when ungetc() pushes back a character 1685 // that does not match the previous one in _bf. When this happens, 1686 // _ub._base becomes non-nil (i.e., a stream has ungetc() data iff 1687 // _ub._base!=NULL) and _up and _ur save the current values of _p and _r. 1688 // 1689 // NB: see WARNING above before changing the layout of this structure! 1690 type FILE = __sFILE /* _stdio.h:157:3 */ 1691 1692 // Additional functionality provided by: 1693 // POSIX.1-2001 1694 // ISO C99 1695 1696 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1697 // 1698 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1699 // 1700 // This file contains Original Code and/or Modifications of Original Code 1701 // as defined in and that are subject to the Apple Public Source License 1702 // Version 2.0 (the 'License'). You may not use this file except in 1703 // compliance with the License. The rights granted to you under the License 1704 // may not be used to create, or enable the creation or redistribution of, 1705 // unlawful or unlicensed copies of an Apple operating system, or to 1706 // circumvent, violate, or enable the circumvention or violation of, any 1707 // terms of an Apple operating system software license agreement. 1708 // 1709 // Please obtain a copy of the License at 1710 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1711 // 1712 // The Original Code and all software distributed under the License are 1713 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1714 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1715 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1716 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1717 // Please see the License for the specific language governing rights and 1718 // limitations under the License. 1719 // 1720 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1721 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 1722 // 1723 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1724 // 1725 // This file contains Original Code and/or Modifications of Original Code 1726 // as defined in and that are subject to the Apple Public Source License 1727 // Version 2.0 (the 'License'). You may not use this file except in 1728 // compliance with the License. The rights granted to you under the License 1729 // may not be used to create, or enable the creation or redistribution of, 1730 // unlawful or unlicensed copies of an Apple operating system, or to 1731 // circumvent, violate, or enable the circumvention or violation of, any 1732 // terms of an Apple operating system software license agreement. 1733 // 1734 // Please obtain a copy of the License at 1735 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1736 // 1737 // The Original Code and all software distributed under the License are 1738 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1739 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1740 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1741 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1742 // Please see the License for the specific language governing rights and 1743 // limitations under the License. 1744 // 1745 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1746 1747 type off_t = int64 /* _off_t.h:31:33 */ 1748 1749 // Return values from XauLockAuth 1750 1751 // DO NOT EDIT THIS FILE. 1752 // 1753 // It has been auto-edited by fixincludes from: 1754 // 1755 // "/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/stdio.h" 1756 // 1757 // This had to be done to correct non-standard usages in the 1758 // original, manufacturer supplied header file. 1759 1760 // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved. 1761 // 1762 // @APPLE_LICENSE_HEADER_START@ 1763 // 1764 // This file contains Original Code and/or Modifications of Original Code 1765 // as defined in and that are subject to the Apple Public Source License 1766 // Version 2.0 (the 'License'). You may not use this file except in 1767 // compliance with the License. Please obtain a copy of the License at 1768 // http://www.opensource.apple.com/apsl/ and read it before using this 1769 // file. 1770 // 1771 // The Original Code and all software distributed under the License are 1772 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1773 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1774 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1775 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1776 // Please see the License for the specific language governing rights and 1777 // limitations under the License. 1778 // 1779 // @APPLE_LICENSE_HEADER_END@ 1780 // - 1781 // Copyright (c) 1990, 1993 1782 // The Regents of the University of California. All rights reserved. 1783 // 1784 // Redistribution and use in source and binary forms, with or without 1785 // modification, are permitted provided that the following conditions 1786 // are met: 1787 // 1. Redistributions of source code must retain the above copyright 1788 // notice, this list of conditions and the following disclaimer. 1789 // 2. Redistributions in binary form must reproduce the above copyright 1790 // notice, this list of conditions and the following disclaimer in the 1791 // documentation and/or other materials provided with the distribution. 1792 // 3. All advertising materials mentioning features or use of this software 1793 // must display the following acknowledgement: 1794 // This product includes software developed by the University of 1795 // California, Berkeley and its contributors. 1796 // 4. Neither the name of the University nor the names of its contributors 1797 // may be used to endorse or promote products derived from this software 1798 // without specific prior written permission. 1799 // 1800 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1801 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1802 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1803 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1804 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1805 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1806 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1807 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1808 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1809 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1810 // SUCH DAMAGE. 1811 // 1812 // @(#)stdlib.h 8.5 (Berkeley) 5/19/95 1813 1814 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 1815 // 1816 // @APPLE_LICENSE_HEADER_START@ 1817 // 1818 // This file contains Original Code and/or Modifications of Original Code 1819 // as defined in and that are subject to the Apple Public Source License 1820 // Version 2.0 (the 'License'). You may not use this file except in 1821 // compliance with the License. Please obtain a copy of the License at 1822 // http://www.opensource.apple.com/apsl/ and read it before using this 1823 // file. 1824 // 1825 // The Original Code and all software distributed under the License are 1826 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1827 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1828 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1829 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1830 // Please see the License for the specific language governing rights and 1831 // limitations under the License. 1832 // 1833 // @APPLE_LICENSE_HEADER_END@ 1834 1835 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1836 // 1837 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1838 // 1839 // This file contains Original Code and/or Modifications of Original Code 1840 // as defined in and that are subject to the Apple Public Source License 1841 // Version 2.0 (the 'License'). You may not use this file except in 1842 // compliance with the License. The rights granted to you under the License 1843 // may not be used to create, or enable the creation or redistribution of, 1844 // unlawful or unlicensed copies of an Apple operating system, or to 1845 // circumvent, violate, or enable the circumvention or violation of, any 1846 // terms of an Apple operating system software license agreement. 1847 // 1848 // Please obtain a copy of the License at 1849 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1850 // 1851 // The Original Code and all software distributed under the License are 1852 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1853 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1854 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1855 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1856 // Please see the License for the specific language governing rights and 1857 // limitations under the License. 1858 // 1859 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1860 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1861 // Copyright (c) 1991, 1993 1862 // The Regents of the University of California. All rights reserved. 1863 // 1864 // This code is derived from software contributed to Berkeley by 1865 // Berkeley Software Design, Inc. 1866 // 1867 // Redistribution and use in source and binary forms, with or without 1868 // modification, are permitted provided that the following conditions 1869 // are met: 1870 // 1. Redistributions of source code must retain the above copyright 1871 // notice, this list of conditions and the following disclaimer. 1872 // 2. Redistributions in binary form must reproduce the above copyright 1873 // notice, this list of conditions and the following disclaimer in the 1874 // documentation and/or other materials provided with the distribution. 1875 // 3. All advertising materials mentioning features or use of this software 1876 // must display the following acknowledgement: 1877 // This product includes software developed by the University of 1878 // California, Berkeley and its contributors. 1879 // 4. Neither the name of the University nor the names of its contributors 1880 // may be used to endorse or promote products derived from this software 1881 // without specific prior written permission. 1882 // 1883 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1884 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1885 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1886 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1887 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1888 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1889 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1890 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1891 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1892 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1893 // SUCH DAMAGE. 1894 // 1895 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1896 1897 // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved. 1898 // 1899 // @APPLE_LICENSE_HEADER_START@ 1900 // 1901 // This file contains Original Code and/or Modifications of Original Code 1902 // as defined in and that are subject to the Apple Public Source License 1903 // Version 2.0 (the 'License'). You may not use this file except in 1904 // compliance with the License. Please obtain a copy of the License at 1905 // http://www.opensource.apple.com/apsl/ and read it before using this 1906 // file. 1907 // 1908 // The Original Code and all software distributed under the License are 1909 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1910 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1911 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1912 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1913 // Please see the License for the specific language governing rights and 1914 // limitations under the License. 1915 // 1916 // @APPLE_LICENSE_HEADER_END@ 1917 1918 // Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 1919 // 1920 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1921 // 1922 // This file contains Original Code and/or Modifications of Original Code 1923 // as defined in and that are subject to the Apple Public Source License 1924 // Version 2.0 (the 'License'). You may not use this file except in 1925 // compliance with the License. The rights granted to you under the License 1926 // may not be used to create, or enable the creation or redistribution of, 1927 // unlawful or unlicensed copies of an Apple operating system, or to 1928 // circumvent, violate, or enable the circumvention or violation of, any 1929 // terms of an Apple operating system software license agreement. 1930 // 1931 // Please obtain a copy of the License at 1932 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1933 // 1934 // The Original Code and all software distributed under the License are 1935 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1936 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1937 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1938 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1939 // Please see the License for the specific language governing rights and 1940 // limitations under the License. 1941 // 1942 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1943 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 1944 // Copyright (c) 1982, 1986, 1989, 1993, 1994 1945 // The Regents of the University of California. All rights reserved. 1946 // 1947 // Redistribution and use in source and binary forms, with or without 1948 // modification, are permitted provided that the following conditions 1949 // are met: 1950 // 1. Redistributions of source code must retain the above copyright 1951 // notice, this list of conditions and the following disclaimer. 1952 // 2. Redistributions in binary form must reproduce the above copyright 1953 // notice, this list of conditions and the following disclaimer in the 1954 // documentation and/or other materials provided with the distribution. 1955 // 3. All advertising materials mentioning features or use of this software 1956 // must display the following acknowledgement: 1957 // This product includes software developed by the University of 1958 // California, Berkeley and its contributors. 1959 // 4. Neither the name of the University nor the names of its contributors 1960 // may be used to endorse or promote products derived from this software 1961 // without specific prior written permission. 1962 // 1963 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1964 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1965 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1966 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1967 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1968 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1969 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1970 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1971 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1972 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1973 // SUCH DAMAGE. 1974 // 1975 // @(#)wait.h 8.2 (Berkeley) 7/10/94 1976 1977 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1978 // 1979 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1980 // 1981 // This file contains Original Code and/or Modifications of Original Code 1982 // as defined in and that are subject to the Apple Public Source License 1983 // Version 2.0 (the 'License'). You may not use this file except in 1984 // compliance with the License. The rights granted to you under the License 1985 // may not be used to create, or enable the creation or redistribution of, 1986 // unlawful or unlicensed copies of an Apple operating system, or to 1987 // circumvent, violate, or enable the circumvention or violation of, any 1988 // terms of an Apple operating system software license agreement. 1989 // 1990 // Please obtain a copy of the License at 1991 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1992 // 1993 // The Original Code and all software distributed under the License are 1994 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1995 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1996 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1997 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1998 // Please see the License for the specific language governing rights and 1999 // limitations under the License. 2000 // 2001 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2002 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2003 // Copyright (c) 1991, 1993 2004 // The Regents of the University of California. All rights reserved. 2005 // 2006 // This code is derived from software contributed to Berkeley by 2007 // Berkeley Software Design, Inc. 2008 // 2009 // Redistribution and use in source and binary forms, with or without 2010 // modification, are permitted provided that the following conditions 2011 // are met: 2012 // 1. Redistributions of source code must retain the above copyright 2013 // notice, this list of conditions and the following disclaimer. 2014 // 2. Redistributions in binary form must reproduce the above copyright 2015 // notice, this list of conditions and the following disclaimer in the 2016 // documentation and/or other materials provided with the distribution. 2017 // 3. All advertising materials mentioning features or use of this software 2018 // must display the following acknowledgement: 2019 // This product includes software developed by the University of 2020 // California, Berkeley and its contributors. 2021 // 4. Neither the name of the University nor the names of its contributors 2022 // may be used to endorse or promote products derived from this software 2023 // without specific prior written permission. 2024 // 2025 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2026 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2027 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2028 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2029 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2030 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2031 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2032 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2033 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2034 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2035 // SUCH DAMAGE. 2036 // 2037 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 2038 2039 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2040 // 2041 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2042 // 2043 // This file contains Original Code and/or Modifications of Original Code 2044 // as defined in and that are subject to the Apple Public Source License 2045 // Version 2.0 (the 'License'). You may not use this file except in 2046 // compliance with the License. The rights granted to you under the License 2047 // may not be used to create, or enable the creation or redistribution of, 2048 // unlawful or unlicensed copies of an Apple operating system, or to 2049 // circumvent, violate, or enable the circumvention or violation of, any 2050 // terms of an Apple operating system software license agreement. 2051 // 2052 // Please obtain a copy of the License at 2053 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2054 // 2055 // The Original Code and all software distributed under the License are 2056 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2057 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2058 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2059 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2060 // Please see the License for the specific language governing rights and 2061 // limitations under the License. 2062 // 2063 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2064 2065 // This file holds definitions relevent to the wait4 system call 2066 // and the alternate interfaces that use it (wait, wait3, waitpid). 2067 2068 // [XSI] The type idtype_t shall be defined as an enumeration type whose 2069 // possible values shall include at least P_ALL, P_PID, and P_PGID. 2070 type idtype_t = uint32 /* wait.h:83:3 */ 2071 2072 // [XSI] The id_t and pid_t types shall be defined as described 2073 // in <sys/types.h> 2074 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2075 // 2076 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2077 // 2078 // This file contains Original Code and/or Modifications of Original Code 2079 // as defined in and that are subject to the Apple Public Source License 2080 // Version 2.0 (the 'License'). You may not use this file except in 2081 // compliance with the License. The rights granted to you under the License 2082 // may not be used to create, or enable the creation or redistribution of, 2083 // unlawful or unlicensed copies of an Apple operating system, or to 2084 // circumvent, violate, or enable the circumvention or violation of, any 2085 // terms of an Apple operating system software license agreement. 2086 // 2087 // Please obtain a copy of the License at 2088 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2089 // 2090 // The Original Code and all software distributed under the License are 2091 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2092 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2093 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2094 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2095 // Please see the License for the specific language governing rights and 2096 // limitations under the License. 2097 // 2098 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2099 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2100 // 2101 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2102 // 2103 // This file contains Original Code and/or Modifications of Original Code 2104 // as defined in and that are subject to the Apple Public Source License 2105 // Version 2.0 (the 'License'). You may not use this file except in 2106 // compliance with the License. The rights granted to you under the License 2107 // may not be used to create, or enable the creation or redistribution of, 2108 // unlawful or unlicensed copies of an Apple operating system, or to 2109 // circumvent, violate, or enable the circumvention or violation of, any 2110 // terms of an Apple operating system software license agreement. 2111 // 2112 // Please obtain a copy of the License at 2113 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2114 // 2115 // The Original Code and all software distributed under the License are 2116 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2117 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2118 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2119 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2120 // Please see the License for the specific language governing rights and 2121 // limitations under the License. 2122 // 2123 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2124 2125 type pid_t = int32 /* _pid_t.h:31:31 */ 2126 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2127 // 2128 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2129 // 2130 // This file contains Original Code and/or Modifications of Original Code 2131 // as defined in and that are subject to the Apple Public Source License 2132 // Version 2.0 (the 'License'). You may not use this file except in 2133 // compliance with the License. The rights granted to you under the License 2134 // may not be used to create, or enable the creation or redistribution of, 2135 // unlawful or unlicensed copies of an Apple operating system, or to 2136 // circumvent, violate, or enable the circumvention or violation of, any 2137 // terms of an Apple operating system software license agreement. 2138 // 2139 // Please obtain a copy of the License at 2140 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2141 // 2142 // The Original Code and all software distributed under the License are 2143 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2144 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2145 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2146 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2147 // Please see the License for the specific language governing rights and 2148 // limitations under the License. 2149 // 2150 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2151 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2152 // 2153 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2154 // 2155 // This file contains Original Code and/or Modifications of Original Code 2156 // as defined in and that are subject to the Apple Public Source License 2157 // Version 2.0 (the 'License'). You may not use this file except in 2158 // compliance with the License. The rights granted to you under the License 2159 // may not be used to create, or enable the creation or redistribution of, 2160 // unlawful or unlicensed copies of an Apple operating system, or to 2161 // circumvent, violate, or enable the circumvention or violation of, any 2162 // terms of an Apple operating system software license agreement. 2163 // 2164 // Please obtain a copy of the License at 2165 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2166 // 2167 // The Original Code and all software distributed under the License are 2168 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2169 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2170 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2171 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2172 // Please see the License for the specific language governing rights and 2173 // limitations under the License. 2174 // 2175 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2176 2177 type id_t = uint32 /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t 2178 2179 // [XSI] The siginfo_t type shall be defined as described in <signal.h> 2180 // [XSI] The rusage structure shall be defined as described in <sys/resource.h> 2181 // [XSI] Inclusion of the <sys/wait.h> header may also make visible all 2182 // symbols from <signal.h> and <sys/resource.h> 2183 // 2184 // NOTE: This requirement is currently being satisfied by the direct 2185 // inclusion of <sys/signal.h> and <sys/resource.h>, below. 2186 // 2187 // Software should not depend on the exposure of anything other 2188 // than the types siginfo_t and struct rusage as a result of 2189 // this inclusion. If you depend on any types or manifest 2190 // values othe than siginfo_t and struct rusage from either of 2191 // those files, you should explicitly include them yourself, as 2192 // well, or in future releases your stware may not compile 2193 // without modification. 2194 // Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved. 2195 // 2196 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2197 // 2198 // This file contains Original Code and/or Modifications of Original Code 2199 // as defined in and that are subject to the Apple Public Source License 2200 // Version 2.0 (the 'License'). You may not use this file except in 2201 // compliance with the License. The rights granted to you under the License 2202 // may not be used to create, or enable the creation or redistribution of, 2203 // unlawful or unlicensed copies of an Apple operating system, or to 2204 // circumvent, violate, or enable the circumvention or violation of, any 2205 // terms of an Apple operating system software license agreement. 2206 // 2207 // Please obtain a copy of the License at 2208 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2209 // 2210 // The Original Code and all software distributed under the License are 2211 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2212 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2213 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2214 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2215 // Please see the License for the specific language governing rights and 2216 // limitations under the License. 2217 // 2218 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2219 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 2220 // Copyright (c) 1982, 1986, 1989, 1991, 1993 2221 // The Regents of the University of California. All rights reserved. 2222 // (c) UNIX System Laboratories, Inc. 2223 // All or some portions of this file are derived from material licensed 2224 // to the University of California by American Telephone and Telegraph 2225 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 2226 // the permission of UNIX System Laboratories, Inc. 2227 // 2228 // Redistribution and use in source and binary forms, with or without 2229 // modification, are permitted provided that the following conditions 2230 // are met: 2231 // 1. Redistributions of source code must retain the above copyright 2232 // notice, this list of conditions and the following disclaimer. 2233 // 2. Redistributions in binary form must reproduce the above copyright 2234 // notice, this list of conditions and the following disclaimer in the 2235 // documentation and/or other materials provided with the distribution. 2236 // 3. All advertising materials mentioning features or use of this software 2237 // must display the following acknowledgement: 2238 // This product includes software developed by the University of 2239 // California, Berkeley and its contributors. 2240 // 4. Neither the name of the University nor the names of its contributors 2241 // may be used to endorse or promote products derived from this software 2242 // without specific prior written permission. 2243 // 2244 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2245 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2246 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2247 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2248 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2249 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2250 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2251 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2252 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2253 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2254 // SUCH DAMAGE. 2255 // 2256 // @(#)signal.h 8.2 (Berkeley) 1/21/94 2257 2258 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 2259 // 2260 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2261 // 2262 // This file contains Original Code and/or Modifications of Original Code 2263 // as defined in and that are subject to the Apple Public Source License 2264 // Version 2.0 (the 'License'). You may not use this file except in 2265 // compliance with the License. The rights granted to you under the License 2266 // may not be used to create, or enable the creation or redistribution of, 2267 // unlawful or unlicensed copies of an Apple operating system, or to 2268 // circumvent, violate, or enable the circumvention or violation of, any 2269 // terms of an Apple operating system software license agreement. 2270 // 2271 // Please obtain a copy of the License at 2272 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2273 // 2274 // The Original Code and all software distributed under the License are 2275 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2276 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2277 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2278 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2279 // Please see the License for the specific language governing rights and 2280 // limitations under the License. 2281 // 2282 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2283 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2284 // Copyright (c) 1991, 1993 2285 // The Regents of the University of California. All rights reserved. 2286 // 2287 // This code is derived from software contributed to Berkeley by 2288 // Berkeley Software Design, Inc. 2289 // 2290 // Redistribution and use in source and binary forms, with or without 2291 // modification, are permitted provided that the following conditions 2292 // are met: 2293 // 1. Redistributions of source code must retain the above copyright 2294 // notice, this list of conditions and the following disclaimer. 2295 // 2. Redistributions in binary form must reproduce the above copyright 2296 // notice, this list of conditions and the following disclaimer in the 2297 // documentation and/or other materials provided with the distribution. 2298 // 3. All advertising materials mentioning features or use of this software 2299 // must display the following acknowledgement: 2300 // This product includes software developed by the University of 2301 // California, Berkeley and its contributors. 2302 // 4. Neither the name of the University nor the names of its contributors 2303 // may be used to endorse or promote products derived from this software 2304 // without specific prior written permission. 2305 // 2306 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2307 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2308 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2309 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2310 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2311 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2312 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2313 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2314 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2315 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2316 // SUCH DAMAGE. 2317 // 2318 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 2319 2320 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 2321 // 2322 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2323 // 2324 // This file contains Original Code and/or Modifications of Original Code 2325 // as defined in and that are subject to the Apple Public Source License 2326 // Version 2.0 (the 'License'). You may not use this file except in 2327 // compliance with the License. The rights granted to you under the License 2328 // may not be used to create, or enable the creation or redistribution of, 2329 // unlawful or unlicensed copies of an Apple operating system, or to 2330 // circumvent, violate, or enable the circumvention or violation of, any 2331 // terms of an Apple operating system software license agreement. 2332 // 2333 // Please obtain a copy of the License at 2334 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2335 // 2336 // The Original Code and all software distributed under the License are 2337 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2338 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2339 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2340 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2341 // Please see the License for the specific language governing rights and 2342 // limitations under the License. 2343 // 2344 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2345 2346 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 2347 // 2348 // @APPLE_LICENSE_HEADER_START@ 2349 // 2350 // This file contains Original Code and/or Modifications of Original Code 2351 // as defined in and that are subject to the Apple Public Source License 2352 // Version 2.0 (the 'License'). You may not use this file except in 2353 // compliance with the License. Please obtain a copy of the License at 2354 // http://www.opensource.apple.com/apsl/ and read it before using this 2355 // file. 2356 // 2357 // The Original Code and all software distributed under the License are 2358 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2359 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2360 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2361 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2362 // Please see the License for the specific language governing rights and 2363 // limitations under the License. 2364 // 2365 // @APPLE_LICENSE_HEADER_END@ 2366 2367 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 2368 // 2369 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2370 // 2371 // This file contains Original Code and/or Modifications of Original Code 2372 // as defined in and that are subject to the Apple Public Source License 2373 // Version 2.0 (the 'License'). You may not use this file except in 2374 // compliance with the License. The rights granted to you under the License 2375 // may not be used to create, or enable the creation or redistribution of, 2376 // unlawful or unlicensed copies of an Apple operating system, or to 2377 // circumvent, violate, or enable the circumvention or violation of, any 2378 // terms of an Apple operating system software license agreement. 2379 // 2380 // Please obtain a copy of the License at 2381 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2382 // 2383 // The Original Code and all software distributed under the License are 2384 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2385 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2386 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2387 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2388 // Please see the License for the specific language governing rights and 2389 // limitations under the License. 2390 // 2391 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2392 2393 // Copyright (c) 2000-2009 Apple, Inc. All rights reserved. 2394 // Copyright (c) 1992 NeXT Computer, Inc. 2395 // 2396 2397 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 2398 // 2399 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2400 // 2401 // This file contains Original Code and/or Modifications of Original Code 2402 // as defined in and that are subject to the Apple Public Source License 2403 // Version 2.0 (the 'License'). You may not use this file except in 2404 // compliance with the License. The rights granted to you under the License 2405 // may not be used to create, or enable the creation or redistribution of, 2406 // unlawful or unlicensed copies of an Apple operating system, or to 2407 // circumvent, violate, or enable the circumvention or violation of, any 2408 // terms of an Apple operating system software license agreement. 2409 // 2410 // Please obtain a copy of the License at 2411 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2412 // 2413 // The Original Code and all software distributed under the License are 2414 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2415 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2416 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2417 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2418 // Please see the License for the specific language governing rights and 2419 // limitations under the License. 2420 // 2421 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2422 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2423 // Copyright (c) 1991, 1993 2424 // The Regents of the University of California. All rights reserved. 2425 // 2426 // This code is derived from software contributed to Berkeley by 2427 // Berkeley Software Design, Inc. 2428 // 2429 // Redistribution and use in source and binary forms, with or without 2430 // modification, are permitted provided that the following conditions 2431 // are met: 2432 // 1. Redistributions of source code must retain the above copyright 2433 // notice, this list of conditions and the following disclaimer. 2434 // 2. Redistributions in binary form must reproduce the above copyright 2435 // notice, this list of conditions and the following disclaimer in the 2436 // documentation and/or other materials provided with the distribution. 2437 // 3. All advertising materials mentioning features or use of this software 2438 // must display the following acknowledgement: 2439 // This product includes software developed by the University of 2440 // California, Berkeley and its contributors. 2441 // 4. Neither the name of the University nor the names of its contributors 2442 // may be used to endorse or promote products derived from this software 2443 // without specific prior written permission. 2444 // 2445 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2446 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2447 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2448 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2449 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2450 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2451 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2452 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2453 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2454 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2455 // SUCH DAMAGE. 2456 // 2457 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 2458 2459 type sig_atomic_t = int32 /* signal.h:17:13 */ 2460 2461 // Language spec sez we must list exactly one parameter, even though we 2462 // actually supply three. Ugh! 2463 // SIG_HOLD is chosen to avoid KERN_SIG_* values in <sys/signalvar.h> 2464 2465 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2466 // 2467 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2468 // 2469 // This file contains Original Code and/or Modifications of Original Code 2470 // as defined in and that are subject to the Apple Public Source License 2471 // Version 2.0 (the 'License'). You may not use this file except in 2472 // compliance with the License. The rights granted to you under the License 2473 // may not be used to create, or enable the creation or redistribution of, 2474 // unlawful or unlicensed copies of an Apple operating system, or to 2475 // circumvent, violate, or enable the circumvention or violation of, any 2476 // terms of an Apple operating system software license agreement. 2477 // 2478 // Please obtain a copy of the License at 2479 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2480 // 2481 // The Original Code and all software distributed under the License are 2482 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2483 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2484 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2485 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2486 // Please see the License for the specific language governing rights and 2487 // limitations under the License. 2488 // 2489 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2490 2491 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2492 // 2493 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2494 // 2495 // This file contains Original Code and/or Modifications of Original Code 2496 // as defined in and that are subject to the Apple Public Source License 2497 // Version 2.0 (the 'License'). You may not use this file except in 2498 // compliance with the License. The rights granted to you under the License 2499 // may not be used to create, or enable the creation or redistribution of, 2500 // unlawful or unlicensed copies of an Apple operating system, or to 2501 // circumvent, violate, or enable the circumvention or violation of, any 2502 // terms of an Apple operating system software license agreement. 2503 // 2504 // Please obtain a copy of the License at 2505 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2506 // 2507 // The Original Code and all software distributed under the License are 2508 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2509 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2510 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2511 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2512 // Please see the License for the specific language governing rights and 2513 // limitations under the License. 2514 // 2515 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2516 2517 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2518 // 2519 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2520 // 2521 // This file contains Original Code and/or Modifications of Original Code 2522 // as defined in and that are subject to the Apple Public Source License 2523 // Version 2.0 (the 'License'). You may not use this file except in 2524 // compliance with the License. The rights granted to you under the License 2525 // may not be used to create, or enable the creation or redistribution of, 2526 // unlawful or unlicensed copies of an Apple operating system, or to 2527 // circumvent, violate, or enable the circumvention or violation of, any 2528 // terms of an Apple operating system software license agreement. 2529 // 2530 // Please obtain a copy of the License at 2531 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2532 // 2533 // The Original Code and all software distributed under the License are 2534 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2535 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2536 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2537 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2538 // Please see the License for the specific language governing rights and 2539 // limitations under the License. 2540 // 2541 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2542 2543 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 2544 // 2545 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2546 // 2547 // This file contains Original Code and/or Modifications of Original Code 2548 // as defined in and that are subject to the Apple Public Source License 2549 // Version 2.0 (the 'License'). You may not use this file except in 2550 // compliance with the License. The rights granted to you under the License 2551 // may not be used to create, or enable the creation or redistribution of, 2552 // unlawful or unlicensed copies of an Apple operating system, or to 2553 // circumvent, violate, or enable the circumvention or violation of, any 2554 // terms of an Apple operating system software license agreement. 2555 // 2556 // Please obtain a copy of the License at 2557 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2558 // 2559 // The Original Code and all software distributed under the License are 2560 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2561 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2562 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2563 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2564 // Please see the License for the specific language governing rights and 2565 // limitations under the License. 2566 // 2567 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2568 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2569 // Copyright (c) 1991, 1993 2570 // The Regents of the University of California. All rights reserved. 2571 // 2572 // This code is derived from software contributed to Berkeley by 2573 // Berkeley Software Design, Inc. 2574 // 2575 // Redistribution and use in source and binary forms, with or without 2576 // modification, are permitted provided that the following conditions 2577 // are met: 2578 // 1. Redistributions of source code must retain the above copyright 2579 // notice, this list of conditions and the following disclaimer. 2580 // 2. Redistributions in binary form must reproduce the above copyright 2581 // notice, this list of conditions and the following disclaimer in the 2582 // documentation and/or other materials provided with the distribution. 2583 // 3. All advertising materials mentioning features or use of this software 2584 // must display the following acknowledgement: 2585 // This product includes software developed by the University of 2586 // California, Berkeley and its contributors. 2587 // 4. Neither the name of the University nor the names of its contributors 2588 // may be used to endorse or promote products derived from this software 2589 // without specific prior written permission. 2590 // 2591 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2592 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2593 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2594 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2595 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2596 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2597 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2598 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2599 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2600 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2601 // SUCH DAMAGE. 2602 // 2603 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 2604 2605 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 2606 // 2607 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2608 // 2609 // This file contains Original Code and/or Modifications of Original Code 2610 // as defined in and that are subject to the Apple Public Source License 2611 // Version 2.0 (the 'License'). You may not use this file except in 2612 // compliance with the License. The rights granted to you under the License 2613 // may not be used to create, or enable the creation or redistribution of, 2614 // unlawful or unlicensed copies of an Apple operating system, or to 2615 // circumvent, violate, or enable the circumvention or violation of, any 2616 // terms of an Apple operating system software license agreement. 2617 // 2618 // Please obtain a copy of the License at 2619 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2620 // 2621 // The Original Code and all software distributed under the License are 2622 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2623 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2624 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2625 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2626 // Please see the License for the specific language governing rights and 2627 // limitations under the License. 2628 // 2629 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2630 2631 // Copyright (c) 2017 Apple Inc. All rights reserved. 2632 // 2633 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2634 // 2635 // This file contains Original Code and/or Modifications of Original Code 2636 // as defined in and that are subject to the Apple Public Source License 2637 // Version 2.0 (the 'License'). You may not use this file except in 2638 // compliance with the License. The rights granted to you under the License 2639 // may not be used to create, or enable the creation or redistribution of, 2640 // unlawful or unlicensed copies of an Apple operating system, or to 2641 // circumvent, violate, or enable the circumvention or violation of, any 2642 // terms of an Apple operating system software license agreement. 2643 // 2644 // Please obtain a copy of the License at 2645 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2646 // 2647 // The Original Code and all software distributed under the License are 2648 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2649 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2650 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2651 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2652 // Please see the License for the specific language governing rights and 2653 // limitations under the License. 2654 // 2655 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2656 2657 // Copyright (c) 2004-2007 Apple Inc. All rights reserved. 2658 // 2659 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2660 // 2661 // This file contains Original Code and/or Modifications of Original Code 2662 // as defined in and that are subject to the Apple Public Source License 2663 // Version 2.0 (the 'License'). You may not use this file except in 2664 // compliance with the License. The rights granted to you under the License 2665 // may not be used to create, or enable the creation or redistribution of, 2666 // unlawful or unlicensed copies of an Apple operating system, or to 2667 // circumvent, violate, or enable the circumvention or violation of, any 2668 // terms of an Apple operating system software license agreement. 2669 // 2670 // Please obtain a copy of the License at 2671 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2672 // 2673 // The Original Code and all software distributed under the License are 2674 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2675 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2676 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2677 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2678 // Please see the License for the specific language governing rights and 2679 // limitations under the License. 2680 // 2681 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2682 // @OSF_COPYRIGHT@ 2683 2684 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 2685 // 2686 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2687 // 2688 // This file contains Original Code and/or Modifications of Original Code 2689 // as defined in and that are subject to the Apple Public Source License 2690 // Version 2.0 (the 'License'). You may not use this file except in 2691 // compliance with the License. The rights granted to you under the License 2692 // may not be used to create, or enable the creation or redistribution of, 2693 // unlawful or unlicensed copies of an Apple operating system, or to 2694 // circumvent, violate, or enable the circumvention or violation of, any 2695 // terms of an Apple operating system software license agreement. 2696 // 2697 // Please obtain a copy of the License at 2698 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2699 // 2700 // The Original Code and all software distributed under the License are 2701 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2702 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2703 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2704 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2705 // Please see the License for the specific language governing rights and 2706 // limitations under the License. 2707 // 2708 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2709 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2710 // Copyright (c) 1991, 1993 2711 // The Regents of the University of California. All rights reserved. 2712 // 2713 // This code is derived from software contributed to Berkeley by 2714 // Berkeley Software Design, Inc. 2715 // 2716 // Redistribution and use in source and binary forms, with or without 2717 // modification, are permitted provided that the following conditions 2718 // are met: 2719 // 1. Redistributions of source code must retain the above copyright 2720 // notice, this list of conditions and the following disclaimer. 2721 // 2. Redistributions in binary form must reproduce the above copyright 2722 // notice, this list of conditions and the following disclaimer in the 2723 // documentation and/or other materials provided with the distribution. 2724 // 3. All advertising materials mentioning features or use of this software 2725 // must display the following acknowledgement: 2726 // This product includes software developed by the University of 2727 // California, Berkeley and its contributors. 2728 // 4. Neither the name of the University nor the names of its contributors 2729 // may be used to endorse or promote products derived from this software 2730 // without specific prior written permission. 2731 // 2732 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2733 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2734 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2735 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2736 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2737 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2738 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2739 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2740 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2741 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2742 // SUCH DAMAGE. 2743 // 2744 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 2745 2746 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 2747 // 2748 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2749 // 2750 // This file contains Original Code and/or Modifications of Original Code 2751 // as defined in and that are subject to the Apple Public Source License 2752 // Version 2.0 (the 'License'). You may not use this file except in 2753 // compliance with the License. The rights granted to you under the License 2754 // may not be used to create, or enable the creation or redistribution of, 2755 // unlawful or unlicensed copies of an Apple operating system, or to 2756 // circumvent, violate, or enable the circumvention or violation of, any 2757 // terms of an Apple operating system software license agreement. 2758 // 2759 // Please obtain a copy of the License at 2760 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2761 // 2762 // The Original Code and all software distributed under the License are 2763 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2764 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2765 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2766 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2767 // Please see the License for the specific language governing rights and 2768 // limitations under the License. 2769 // 2770 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2771 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2772 2773 type __darwin_arm_exception_state = struct { 2774 F__exception uint32 2775 F__fsr uint32 2776 F__far uint32 2777 } /* _structs.h:41:1 */ 2778 2779 type __darwin_arm_exception_state64 = struct { 2780 F__far uint64 2781 F__esr uint32 2782 F__exception uint32 2783 } /* _structs.h:59:1 */ 2784 2785 type __darwin_arm_thread_state = struct { 2786 F__r [13]uint32 2787 F__sp uint32 2788 F__lr uint32 2789 F__pc uint32 2790 F__cpsr uint32 2791 } /* _structs.h:77:1 */ 2792 2793 // By default, the pointer fields in the arm_thread_state64_t structure are 2794 // opaque on the arm64e architecture and require the use of accessor macros. 2795 // This mode can also be enabled on the arm64 architecture by building with 2796 // -D__DARWIN_OPAQUE_ARM_THREAD_STATE64=1. 2797 2798 type __darwin_arm_thread_state64 = struct { 2799 F__x [29]uint64 2800 F__fp uint64 2801 F__lr uint64 2802 F__sp uint64 2803 F__pc uint64 2804 F__cpsr uint32 2805 F__pad uint32 2806 } /* _structs.h:136:1 */ 2807 2808 // Accessor macros for arm_thread_state64_t pointer fields 2809 2810 // Return pc field of arm_thread_state64_t as a data pointer value 2811 // Return pc field of arm_thread_state64_t as a function pointer 2812 // Set pc field of arm_thread_state64_t to a function pointer 2813 // Return lr field of arm_thread_state64_t as a data pointer value 2814 // Return lr field of arm_thread_state64_t as a function pointer 2815 // Set lr field of arm_thread_state64_t to a function pointer 2816 // Return sp field of arm_thread_state64_t as a data pointer value 2817 // Set sp field of arm_thread_state64_t to a data pointer value 2818 // Return fp field of arm_thread_state64_t as a data pointer value 2819 // Set fp field of arm_thread_state64_t to a data pointer value 2820 // Strip ptr auth bits from pc, lr, sp and fp field of arm_thread_state64_t 2821 2822 type __darwin_arm_vfp_state = struct { 2823 F__r [64]uint32 2824 F__fpscr uint32 2825 } /* _structs.h:424:1 */ 2826 2827 type __darwin_arm_neon_state64 = struct { 2828 F__v [32]struct { 2829 Flo uint64 2830 Fhi uint64 2831 } 2832 F__fpsr uint32 2833 F__fpcr uint32 2834 } /* _structs.h:443:1 */ 2835 2836 type __darwin_arm_neon_state = struct { 2837 F__v [16]struct { 2838 Flo uint64 2839 Fhi uint64 2840 } 2841 F__fpsr uint32 2842 F__fpcr uint32 2843 } /* _structs.h:450:1 */ 2844 2845 type __arm_pagein_state = struct{ F__pagein_error int32 } /* _structs.h:514:1 */ 2846 2847 // Debug State 2848 2849 // ARM's arm_debug_state is ARM64's arm_legacy_debug_state 2850 2851 type __arm_legacy_debug_state = struct { 2852 F__bvr [16]uint32 2853 F__bcr [16]uint32 2854 F__wvr [16]uint32 2855 F__wcr [16]uint32 2856 } /* _structs.h:551:1 */ 2857 2858 type __darwin_arm_debug_state32 = struct { 2859 F__bvr [16]uint32 2860 F__bcr [16]uint32 2861 F__wvr [16]uint32 2862 F__wcr [16]uint32 2863 F__mdscr_el1 uint64 2864 } /* _structs.h:574:1 */ 2865 2866 type __darwin_arm_debug_state64 = struct { 2867 F__bvr [16]uint64 2868 F__bcr [16]uint64 2869 F__wvr [16]uint64 2870 F__wcr [16]uint64 2871 F__mdscr_el1 uint64 2872 } /* _structs.h:584:1 */ 2873 2874 type __darwin_arm_cpmu_state64 = struct{ F__ctrs [16]uint64 } /* _structs.h:616:1 */ 2875 2876 type __darwin_mcontext32 = struct { 2877 F__es struct { 2878 F__exception uint32 2879 F__fsr uint32 2880 F__far uint32 2881 } 2882 F__ss struct { 2883 F__r [13]uint32 2884 F__sp uint32 2885 F__lr uint32 2886 F__pc uint32 2887 F__cpsr uint32 2888 } 2889 F__fs struct { 2890 F__r [64]uint32 2891 F__fpscr uint32 2892 } 2893 } /* _mcontext.h:41:1 */ 2894 2895 type __darwin_mcontext64 = struct { 2896 F__es struct { 2897 F__far uint64 2898 F__esr uint32 2899 F__exception uint32 2900 } 2901 F__ss struct { 2902 F__x [29]uint64 2903 F__fp uint64 2904 F__lr uint64 2905 F__sp uint64 2906 F__pc uint64 2907 F__cpsr uint32 2908 F__pad uint32 2909 } 2910 F__ns struct { 2911 F__v [32]struct { 2912 Flo uint64 2913 Fhi uint64 2914 } 2915 F__fpsr uint32 2916 F__fpcr uint32 2917 } 2918 } /* _mcontext.h:64:1 */ 2919 2920 type mcontext_t = uintptr /* _mcontext.h:85:33 */ 2921 2922 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2923 // 2924 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2925 // 2926 // This file contains Original Code and/or Modifications of Original Code 2927 // as defined in and that are subject to the Apple Public Source License 2928 // Version 2.0 (the 'License'). You may not use this file except in 2929 // compliance with the License. The rights granted to you under the License 2930 // may not be used to create, or enable the creation or redistribution of, 2931 // unlawful or unlicensed copies of an Apple operating system, or to 2932 // circumvent, violate, or enable the circumvention or violation of, any 2933 // terms of an Apple operating system software license agreement. 2934 // 2935 // Please obtain a copy of the License at 2936 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2937 // 2938 // The Original Code and all software distributed under the License are 2939 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2940 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2941 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2942 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2943 // Please see the License for the specific language governing rights and 2944 // limitations under the License. 2945 // 2946 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2947 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 2948 // 2949 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2950 // 2951 // This file contains Original Code and/or Modifications of Original Code 2952 // as defined in and that are subject to the Apple Public Source License 2953 // Version 2.0 (the 'License'). You may not use this file except in 2954 // compliance with the License. The rights granted to you under the License 2955 // may not be used to create, or enable the creation or redistribution of, 2956 // unlawful or unlicensed copies of an Apple operating system, or to 2957 // circumvent, violate, or enable the circumvention or violation of, any 2958 // terms of an Apple operating system software license agreement. 2959 // 2960 // Please obtain a copy of the License at 2961 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2962 // 2963 // The Original Code and all software distributed under the License are 2964 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2965 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2966 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2967 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2968 // Please see the License for the specific language governing rights and 2969 // limitations under the License. 2970 // 2971 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2972 2973 type pthread_attr_t = _opaque_pthread_attr_t /* _pthread_attr_t.h:31:33 */ 2974 2975 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2976 // 2977 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2978 // 2979 // This file contains Original Code and/or Modifications of Original Code 2980 // as defined in and that are subject to the Apple Public Source License 2981 // Version 2.0 (the 'License'). You may not use this file except in 2982 // compliance with the License. The rights granted to you under the License 2983 // may not be used to create, or enable the creation or redistribution of, 2984 // unlawful or unlicensed copies of an Apple operating system, or to 2985 // circumvent, violate, or enable the circumvention or violation of, any 2986 // terms of an Apple operating system software license agreement. 2987 // 2988 // Please obtain a copy of the License at 2989 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2990 // 2991 // The Original Code and all software distributed under the License are 2992 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2993 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2994 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2995 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2996 // Please see the License for the specific language governing rights and 2997 // limitations under the License. 2998 // 2999 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3000 3001 // Structure used in sigaltstack call. 3002 3003 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 3004 // 3005 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3006 // 3007 // This file contains Original Code and/or Modifications of Original Code 3008 // as defined in and that are subject to the Apple Public Source License 3009 // Version 2.0 (the 'License'). You may not use this file except in 3010 // compliance with the License. The rights granted to you under the License 3011 // may not be used to create, or enable the creation or redistribution of, 3012 // unlawful or unlicensed copies of an Apple operating system, or to 3013 // circumvent, violate, or enable the circumvention or violation of, any 3014 // terms of an Apple operating system software license agreement. 3015 // 3016 // Please obtain a copy of the License at 3017 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3018 // 3019 // The Original Code and all software distributed under the License are 3020 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3021 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3022 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3023 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3024 // Please see the License for the specific language governing rights and 3025 // limitations under the License. 3026 // 3027 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3028 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3029 // Copyright (c) 1991, 1993 3030 // The Regents of the University of California. All rights reserved. 3031 // 3032 // This code is derived from software contributed to Berkeley by 3033 // Berkeley Software Design, Inc. 3034 // 3035 // Redistribution and use in source and binary forms, with or without 3036 // modification, are permitted provided that the following conditions 3037 // are met: 3038 // 1. Redistributions of source code must retain the above copyright 3039 // notice, this list of conditions and the following disclaimer. 3040 // 2. Redistributions in binary form must reproduce the above copyright 3041 // notice, this list of conditions and the following disclaimer in the 3042 // documentation and/or other materials provided with the distribution. 3043 // 3. All advertising materials mentioning features or use of this software 3044 // must display the following acknowledgement: 3045 // This product includes software developed by the University of 3046 // California, Berkeley and its contributors. 3047 // 4. Neither the name of the University nor the names of its contributors 3048 // may be used to endorse or promote products derived from this software 3049 // without specific prior written permission. 3050 // 3051 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 3052 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3053 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3054 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3055 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3056 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3057 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3058 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3059 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3060 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3061 // SUCH DAMAGE. 3062 // 3063 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 3064 3065 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 3066 // 3067 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3068 // 3069 // This file contains Original Code and/or Modifications of Original Code 3070 // as defined in and that are subject to the Apple Public Source License 3071 // Version 2.0 (the 'License'). You may not use this file except in 3072 // compliance with the License. The rights granted to you under the License 3073 // may not be used to create, or enable the creation or redistribution of, 3074 // unlawful or unlicensed copies of an Apple operating system, or to 3075 // circumvent, violate, or enable the circumvention or violation of, any 3076 // terms of an Apple operating system software license agreement. 3077 // 3078 // Please obtain a copy of the License at 3079 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3080 // 3081 // The Original Code and all software distributed under the License are 3082 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3083 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3084 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3085 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3086 // Please see the License for the specific language governing rights and 3087 // limitations under the License. 3088 // 3089 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3090 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3091 3092 type __darwin_sigaltstack = struct { 3093 Fss_sp uintptr 3094 Fss_size uint64 3095 Fss_flags int32 3096 F__ccgo_pad1 [4]byte 3097 } /* _sigaltstack.h:42:1 */ 3098 3099 type stack_t = __darwin_sigaltstack /* _sigaltstack.h:48:33 */ // [???] signal stack 3100 3101 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3102 // 3103 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3104 // 3105 // This file contains Original Code and/or Modifications of Original Code 3106 // as defined in and that are subject to the Apple Public Source License 3107 // Version 2.0 (the 'License'). You may not use this file except in 3108 // compliance with the License. The rights granted to you under the License 3109 // may not be used to create, or enable the creation or redistribution of, 3110 // unlawful or unlicensed copies of an Apple operating system, or to 3111 // circumvent, violate, or enable the circumvention or violation of, any 3112 // terms of an Apple operating system software license agreement. 3113 // 3114 // Please obtain a copy of the License at 3115 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3116 // 3117 // The Original Code and all software distributed under the License are 3118 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3119 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3120 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3121 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3122 // Please see the License for the specific language governing rights and 3123 // limitations under the License. 3124 // 3125 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3126 3127 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 3128 // 3129 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3130 // 3131 // This file contains Original Code and/or Modifications of Original Code 3132 // as defined in and that are subject to the Apple Public Source License 3133 // Version 2.0 (the 'License'). You may not use this file except in 3134 // compliance with the License. The rights granted to you under the License 3135 // may not be used to create, or enable the creation or redistribution of, 3136 // unlawful or unlicensed copies of an Apple operating system, or to 3137 // circumvent, violate, or enable the circumvention or violation of, any 3138 // terms of an Apple operating system software license agreement. 3139 // 3140 // Please obtain a copy of the License at 3141 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3142 // 3143 // The Original Code and all software distributed under the License are 3144 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3145 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3146 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3147 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3148 // Please see the License for the specific language governing rights and 3149 // limitations under the License. 3150 // 3151 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3152 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3153 // Copyright (c) 1991, 1993 3154 // The Regents of the University of California. All rights reserved. 3155 // 3156 // This code is derived from software contributed to Berkeley by 3157 // Berkeley Software Design, Inc. 3158 // 3159 // Redistribution and use in source and binary forms, with or without 3160 // modification, are permitted provided that the following conditions 3161 // are met: 3162 // 1. Redistributions of source code must retain the above copyright 3163 // notice, this list of conditions and the following disclaimer. 3164 // 2. Redistributions in binary form must reproduce the above copyright 3165 // notice, this list of conditions and the following disclaimer in the 3166 // documentation and/or other materials provided with the distribution. 3167 // 3. All advertising materials mentioning features or use of this software 3168 // must display the following acknowledgement: 3169 // This product includes software developed by the University of 3170 // California, Berkeley and its contributors. 3171 // 4. Neither the name of the University nor the names of its contributors 3172 // may be used to endorse or promote products derived from this software 3173 // without specific prior written permission. 3174 // 3175 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 3176 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3177 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3178 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3179 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3180 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3181 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3182 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3183 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3184 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3185 // SUCH DAMAGE. 3186 // 3187 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 3188 3189 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 3190 // 3191 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3192 // 3193 // This file contains Original Code and/or Modifications of Original Code 3194 // as defined in and that are subject to the Apple Public Source License 3195 // Version 2.0 (the 'License'). You may not use this file except in 3196 // compliance with the License. The rights granted to you under the License 3197 // may not be used to create, or enable the creation or redistribution of, 3198 // unlawful or unlicensed copies of an Apple operating system, or to 3199 // circumvent, violate, or enable the circumvention or violation of, any 3200 // terms of an Apple operating system software license agreement. 3201 // 3202 // Please obtain a copy of the License at 3203 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3204 // 3205 // The Original Code and all software distributed under the License are 3206 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3207 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3208 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3209 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3210 // Please see the License for the specific language governing rights and 3211 // limitations under the License. 3212 // 3213 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3214 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3215 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3216 // 3217 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3218 // 3219 // This file contains Original Code and/or Modifications of Original Code 3220 // as defined in and that are subject to the Apple Public Source License 3221 // Version 2.0 (the 'License'). You may not use this file except in 3222 // compliance with the License. The rights granted to you under the License 3223 // may not be used to create, or enable the creation or redistribution of, 3224 // unlawful or unlicensed copies of an Apple operating system, or to 3225 // circumvent, violate, or enable the circumvention or violation of, any 3226 // terms of an Apple operating system software license agreement. 3227 // 3228 // Please obtain a copy of the License at 3229 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3230 // 3231 // The Original Code and all software distributed under the License are 3232 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3233 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3234 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3235 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3236 // Please see the License for the specific language governing rights and 3237 // limitations under the License. 3238 // 3239 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3240 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 3241 // 3242 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3243 // 3244 // This file contains Original Code and/or Modifications of Original Code 3245 // as defined in and that are subject to the Apple Public Source License 3246 // Version 2.0 (the 'License'). You may not use this file except in 3247 // compliance with the License. The rights granted to you under the License 3248 // may not be used to create, or enable the creation or redistribution of, 3249 // unlawful or unlicensed copies of an Apple operating system, or to 3250 // circumvent, violate, or enable the circumvention or violation of, any 3251 // terms of an Apple operating system software license agreement. 3252 // 3253 // Please obtain a copy of the License at 3254 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3255 // 3256 // The Original Code and all software distributed under the License are 3257 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3258 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3259 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3260 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3261 // Please see the License for the specific language governing rights and 3262 // limitations under the License. 3263 // 3264 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3265 3266 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3267 // 3268 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3269 // 3270 // This file contains Original Code and/or Modifications of Original Code 3271 // as defined in and that are subject to the Apple Public Source License 3272 // Version 2.0 (the 'License'). You may not use this file except in 3273 // compliance with the License. The rights granted to you under the License 3274 // may not be used to create, or enable the creation or redistribution of, 3275 // unlawful or unlicensed copies of an Apple operating system, or to 3276 // circumvent, violate, or enable the circumvention or violation of, any 3277 // terms of an Apple operating system software license agreement. 3278 // 3279 // Please obtain a copy of the License at 3280 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3281 // 3282 // The Original Code and all software distributed under the License are 3283 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3284 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3285 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3286 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3287 // Please see the License for the specific language governing rights and 3288 // limitations under the License. 3289 // 3290 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3291 3292 // Structure used in sigaltstack call. 3293 3294 type __darwin_ucontext = struct { 3295 Fuc_onstack int32 3296 Fuc_sigmask uint32 3297 Fuc_stack struct { 3298 Fss_sp uintptr 3299 Fss_size uint64 3300 Fss_flags int32 3301 F__ccgo_pad1 [4]byte 3302 } 3303 Fuc_link uintptr 3304 Fuc_mcsize uint64 3305 Fuc_mcontext uintptr 3306 } /* _ucontext.h:43:1 */ 3307 3308 // user context 3309 type ucontext_t = __darwin_ucontext /* _ucontext.h:57:33 */ // [???] user context 3310 3311 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3312 // 3313 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3314 // 3315 // This file contains Original Code and/or Modifications of Original Code 3316 // as defined in and that are subject to the Apple Public Source License 3317 // Version 2.0 (the 'License'). You may not use this file except in 3318 // compliance with the License. The rights granted to you under the License 3319 // may not be used to create, or enable the creation or redistribution of, 3320 // unlawful or unlicensed copies of an Apple operating system, or to 3321 // circumvent, violate, or enable the circumvention or violation of, any 3322 // terms of an Apple operating system software license agreement. 3323 // 3324 // Please obtain a copy of the License at 3325 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3326 // 3327 // The Original Code and all software distributed under the License are 3328 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3329 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3330 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3331 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3332 // Please see the License for the specific language governing rights and 3333 // limitations under the License. 3334 // 3335 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3336 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3337 // 3338 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3339 // 3340 // This file contains Original Code and/or Modifications of Original Code 3341 // as defined in and that are subject to the Apple Public Source License 3342 // Version 2.0 (the 'License'). You may not use this file except in 3343 // compliance with the License. The rights granted to you under the License 3344 // may not be used to create, or enable the creation or redistribution of, 3345 // unlawful or unlicensed copies of an Apple operating system, or to 3346 // circumvent, violate, or enable the circumvention or violation of, any 3347 // terms of an Apple operating system software license agreement. 3348 // 3349 // Please obtain a copy of the License at 3350 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3351 // 3352 // The Original Code and all software distributed under the License are 3353 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3354 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3355 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3356 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3357 // Please see the License for the specific language governing rights and 3358 // limitations under the License. 3359 // 3360 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3361 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 3362 // 3363 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3364 // 3365 // This file contains Original Code and/or Modifications of Original Code 3366 // as defined in and that are subject to the Apple Public Source License 3367 // Version 2.0 (the 'License'). You may not use this file except in 3368 // compliance with the License. The rights granted to you under the License 3369 // may not be used to create, or enable the creation or redistribution of, 3370 // unlawful or unlicensed copies of an Apple operating system, or to 3371 // circumvent, violate, or enable the circumvention or violation of, any 3372 // terms of an Apple operating system software license agreement. 3373 // 3374 // Please obtain a copy of the License at 3375 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3376 // 3377 // The Original Code and all software distributed under the License are 3378 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3379 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3380 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3381 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3382 // Please see the License for the specific language governing rights and 3383 // limitations under the License. 3384 // 3385 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3386 3387 type sigset_t = uint32 /* _sigset_t.h:31:41 */ 3388 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3389 // 3390 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3391 // 3392 // This file contains Original Code and/or Modifications of Original Code 3393 // as defined in and that are subject to the Apple Public Source License 3394 // Version 2.0 (the 'License'). You may not use this file except in 3395 // compliance with the License. The rights granted to you under the License 3396 // may not be used to create, or enable the creation or redistribution of, 3397 // unlawful or unlicensed copies of an Apple operating system, or to 3398 // circumvent, violate, or enable the circumvention or violation of, any 3399 // terms of an Apple operating system software license agreement. 3400 // 3401 // Please obtain a copy of the License at 3402 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3403 // 3404 // The Original Code and all software distributed under the License are 3405 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3406 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3407 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3408 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3409 // Please see the License for the specific language governing rights and 3410 // limitations under the License. 3411 // 3412 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3413 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3414 // 3415 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3416 // 3417 // This file contains Original Code and/or Modifications of Original Code 3418 // as defined in and that are subject to the Apple Public Source License 3419 // Version 2.0 (the 'License'). You may not use this file except in 3420 // compliance with the License. The rights granted to you under the License 3421 // may not be used to create, or enable the creation or redistribution of, 3422 // unlawful or unlicensed copies of an Apple operating system, or to 3423 // circumvent, violate, or enable the circumvention or violation of, any 3424 // terms of an Apple operating system software license agreement. 3425 // 3426 // Please obtain a copy of the License at 3427 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3428 // 3429 // The Original Code and all software distributed under the License are 3430 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3431 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3432 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3433 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3434 // Please see the License for the specific language governing rights and 3435 // limitations under the License. 3436 // 3437 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3438 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 3439 // 3440 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3441 // 3442 // This file contains Original Code and/or Modifications of Original Code 3443 // as defined in and that are subject to the Apple Public Source License 3444 // Version 2.0 (the 'License'). You may not use this file except in 3445 // compliance with the License. The rights granted to you under the License 3446 // may not be used to create, or enable the creation or redistribution of, 3447 // unlawful or unlicensed copies of an Apple operating system, or to 3448 // circumvent, violate, or enable the circumvention or violation of, any 3449 // terms of an Apple operating system software license agreement. 3450 // 3451 // Please obtain a copy of the License at 3452 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3453 // 3454 // The Original Code and all software distributed under the License are 3455 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3456 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3457 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3458 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3459 // Please see the License for the specific language governing rights and 3460 // limitations under the License. 3461 // 3462 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3463 3464 type uid_t = uint32 /* _uid_t.h:31:31 */ 3465 3466 type sigval = struct { 3467 F__ccgo_pad1 [0]uint64 3468 Fsival_int int32 3469 F__ccgo_pad2 [4]byte 3470 } /* signal.h:158:1 */ 3471 3472 type sigevent = struct { 3473 Fsigev_notify int32 3474 Fsigev_signo int32 3475 Fsigev_value struct { 3476 F__ccgo_pad1 [0]uint64 3477 Fsival_int int32 3478 F__ccgo_pad2 [4]byte 3479 } 3480 Fsigev_notify_function uintptr 3481 Fsigev_notify_attributes uintptr 3482 } /* signal.h:168:1 */ 3483 3484 type __siginfo = struct { 3485 Fsi_signo int32 3486 Fsi_errno int32 3487 Fsi_code int32 3488 Fsi_pid pid_t 3489 Fsi_uid uid_t 3490 Fsi_status int32 3491 Fsi_addr uintptr 3492 Fsi_value struct { 3493 F__ccgo_pad1 [0]uint64 3494 Fsival_int int32 3495 F__ccgo_pad2 [4]byte 3496 } 3497 Fsi_band int64 3498 F__pad [7]uint64 3499 } /* signal.h:177:9 */ 3500 3501 type siginfo_t = __siginfo /* signal.h:188:3 */ 3502 3503 // When the signal is SIGILL or SIGFPE, si_addr contains the address of 3504 // the faulting instruction. 3505 // When the signal is SIGSEGV or SIGBUS, si_addr contains the address of 3506 // the faulting memory reference. Although for x86 there are cases of SIGSEGV 3507 // for which si_addr cannot be determined and is NULL. 3508 // If the signal is SIGCHLD, the si_pid field will contain the child process ID, 3509 // si_status contains the exit value or signal and 3510 // si_uid contains the real user ID of the process that sent the signal. 3511 3512 // Values for si_code 3513 3514 // Codes for SIGILL 3515 3516 // Codes for SIGFPE 3517 3518 // Codes for SIGSEGV 3519 3520 // Codes for SIGBUS 3521 3522 // Codes for SIGTRAP 3523 3524 // Codes for SIGCHLD 3525 3526 // Codes for SIGPOLL 3527 3528 // union for signal handlers 3529 type __sigaction_u = struct{ F__sa_handler uintptr } /* signal.h:269:1 */ 3530 3531 // Signal vector template for Kernel user boundary 3532 type __sigaction = struct { 3533 F__sigaction_u struct{ F__sa_handler uintptr } 3534 Fsa_tramp uintptr 3535 Fsa_mask sigset_t 3536 Fsa_flags int32 3537 } /* signal.h:276:1 */ 3538 3539 // Signal vector "template" used in sigaction call. 3540 type sigaction = struct { 3541 F__sigaction_u struct{ F__sa_handler uintptr } 3542 Fsa_mask sigset_t 3543 Fsa_flags int32 3544 } /* signal.h:286:1 */ 3545 3546 // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler. 3547 3548 // This will provide 64bit register set in a 32bit user address space 3549 3550 // the following are the only bits we support from user space, the 3551 // rest are for kernel use only. 3552 3553 // Flags for sigprocmask: 3554 3555 // POSIX 1003.1b required values. 3556 3557 type sig_t = uintptr /* signal.h:331:14 */ // type of signal function 3558 3559 // Structure used in sigaltstack call. 3560 3561 // 4.3 compatibility: 3562 // Signal vector "template" used in sigvec call. 3563 type sigvec = struct { 3564 Fsv_handler uintptr 3565 Fsv_mask int32 3566 Fsv_flags int32 3567 } /* signal.h:348:1 */ 3568 3569 // Structure used in sigstack call. 3570 type sigstack = struct { 3571 Fss_sp uintptr 3572 Fss_onstack int32 3573 F__ccgo_pad1 [4]byte 3574 } /* signal.h:367:1 */ 3575 3576 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 3577 // 3578 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3579 // 3580 // This file contains Original Code and/or Modifications of Original Code 3581 // as defined in and that are subject to the Apple Public Source License 3582 // Version 2.0 (the 'License'). You may not use this file except in 3583 // compliance with the License. The rights granted to you under the License 3584 // may not be used to create, or enable the creation or redistribution of, 3585 // unlawful or unlicensed copies of an Apple operating system, or to 3586 // circumvent, violate, or enable the circumvention or violation of, any 3587 // terms of an Apple operating system software license agreement. 3588 // 3589 // Please obtain a copy of the License at 3590 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3591 // 3592 // The Original Code and all software distributed under the License are 3593 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3594 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3595 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3596 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3597 // Please see the License for the specific language governing rights and 3598 // limitations under the License. 3599 // 3600 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3601 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 3602 // Copyright (c) 1982, 1986, 1993 3603 // The Regents of the University of California. All rights reserved. 3604 // 3605 // Redistribution and use in source and binary forms, with or without 3606 // modification, are permitted provided that the following conditions 3607 // are met: 3608 // 1. Redistributions of source code must retain the above copyright 3609 // notice, this list of conditions and the following disclaimer. 3610 // 2. Redistributions in binary form must reproduce the above copyright 3611 // notice, this list of conditions and the following disclaimer in the 3612 // documentation and/or other materials provided with the distribution. 3613 // 3. All advertising materials mentioning features or use of this software 3614 // must display the following acknowledgement: 3615 // This product includes software developed by the University of 3616 // California, Berkeley and its contributors. 3617 // 4. Neither the name of the University nor the names of its contributors 3618 // may be used to endorse or promote products derived from this software 3619 // without specific prior written permission. 3620 // 3621 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 3622 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3623 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3624 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3625 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3626 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3627 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3628 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3629 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3630 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3631 // SUCH DAMAGE. 3632 // 3633 // @(#)resource.h 8.2 (Berkeley) 1/4/94 3634 3635 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 3636 // 3637 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3638 // 3639 // This file contains Original Code and/or Modifications of Original Code 3640 // as defined in and that are subject to the Apple Public Source License 3641 // Version 2.0 (the 'License'). You may not use this file except in 3642 // compliance with the License. The rights granted to you under the License 3643 // may not be used to create, or enable the creation or redistribution of, 3644 // unlawful or unlicensed copies of an Apple operating system, or to 3645 // circumvent, violate, or enable the circumvention or violation of, any 3646 // terms of an Apple operating system software license agreement. 3647 // 3648 // Please obtain a copy of the License at 3649 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3650 // 3651 // The Original Code and all software distributed under the License are 3652 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3653 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3654 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3655 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3656 // Please see the License for the specific language governing rights and 3657 // limitations under the License. 3658 // 3659 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3660 3661 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 3662 // 3663 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3664 // 3665 // This file contains Original Code and/or Modifications of Original Code 3666 // as defined in and that are subject to the Apple Public Source License 3667 // Version 2.0 (the 'License'). You may not use this file except in 3668 // compliance with the License. The rights granted to you under the License 3669 // may not be used to create, or enable the creation or redistribution of, 3670 // unlawful or unlicensed copies of an Apple operating system, or to 3671 // circumvent, violate, or enable the circumvention or violation of, any 3672 // terms of an Apple operating system software license agreement. 3673 // 3674 // Please obtain a copy of the License at 3675 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3676 // 3677 // The Original Code and all software distributed under the License are 3678 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3679 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3680 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3681 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3682 // Please see the License for the specific language governing rights and 3683 // limitations under the License. 3684 // 3685 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3686 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3687 // Copyright (c) 1991, 1993 3688 // The Regents of the University of California. All rights reserved. 3689 // 3690 // This code is derived from software contributed to Berkeley by 3691 // Berkeley Software Design, Inc. 3692 // 3693 // Redistribution and use in source and binary forms, with or without 3694 // modification, are permitted provided that the following conditions 3695 // are met: 3696 // 1. Redistributions of source code must retain the above copyright 3697 // notice, this list of conditions and the following disclaimer. 3698 // 2. Redistributions in binary form must reproduce the above copyright 3699 // notice, this list of conditions and the following disclaimer in the 3700 // documentation and/or other materials provided with the distribution. 3701 // 3. All advertising materials mentioning features or use of this software 3702 // must display the following acknowledgement: 3703 // This product includes software developed by the University of 3704 // California, Berkeley and its contributors. 3705 // 4. Neither the name of the University nor the names of its contributors 3706 // may be used to endorse or promote products derived from this software 3707 // without specific prior written permission. 3708 // 3709 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 3710 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3711 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3712 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3713 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3714 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3715 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3716 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3717 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3718 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3719 // SUCH DAMAGE. 3720 // 3721 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 3722 3723 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 3724 // 3725 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3726 // 3727 // This file contains Original Code and/or Modifications of Original Code 3728 // as defined in and that are subject to the Apple Public Source License 3729 // Version 2.0 (the 'License'). You may not use this file except in 3730 // compliance with the License. The rights granted to you under the License 3731 // may not be used to create, or enable the creation or redistribution of, 3732 // unlawful or unlicensed copies of an Apple operating system, or to 3733 // circumvent, violate, or enable the circumvention or violation of, any 3734 // terms of an Apple operating system software license agreement. 3735 // 3736 // Please obtain a copy of the License at 3737 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3738 // 3739 // The Original Code and all software distributed under the License are 3740 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3741 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3742 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3743 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3744 // Please see the License for the specific language governing rights and 3745 // limitations under the License. 3746 // 3747 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3748 3749 // DO NOT EDIT THIS FILE. 3750 // 3751 // It has been auto-edited by fixincludes from: 3752 // 3753 // "/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/stdint.h" 3754 // 3755 // This had to be done to correct non-standard usages in the 3756 // original, manufacturer supplied header file. 3757 3758 // Copyright (c) 2000-2010 Apple Inc. 3759 // All rights reserved. 3760 3761 // from ISO/IEC 988:1999 spec 3762 3763 // 7.18.1.1 Exact-width integer types 3764 // Copyright (c) 2012 Apple Inc. All rights reserved. 3765 // 3766 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3767 // 3768 // This file contains Original Code and/or Modifications of Original Code 3769 // as defined in and that are subject to the Apple Public Source License 3770 // Version 2.0 (the 'License'). You may not use this file except in 3771 // compliance with the License. The rights granted to you under the License 3772 // may not be used to create, or enable the creation or redistribution of, 3773 // unlawful or unlicensed copies of an Apple operating system, or to 3774 // circumvent, violate, or enable the circumvention or violation of, any 3775 // terms of an Apple operating system software license agreement. 3776 // 3777 // Please obtain a copy of the License at 3778 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3779 // 3780 // The Original Code and all software distributed under the License are 3781 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3782 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3783 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3784 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3785 // Please see the License for the specific language governing rights and 3786 // limitations under the License. 3787 // 3788 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3789 // Copyright (c) 2012 Apple Inc. All rights reserved. 3790 // 3791 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3792 // 3793 // This file contains Original Code and/or Modifications of Original Code 3794 // as defined in and that are subject to the Apple Public Source License 3795 // Version 2.0 (the 'License'). You may not use this file except in 3796 // compliance with the License. The rights granted to you under the License 3797 // may not be used to create, or enable the creation or redistribution of, 3798 // unlawful or unlicensed copies of an Apple operating system, or to 3799 // circumvent, violate, or enable the circumvention or violation of, any 3800 // terms of an Apple operating system software license agreement. 3801 // 3802 // Please obtain a copy of the License at 3803 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3804 // 3805 // The Original Code and all software distributed under the License are 3806 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3807 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3808 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3809 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3810 // Please see the License for the specific language governing rights and 3811 // limitations under the License. 3812 // 3813 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3814 // Copyright (c) 2012 Apple Inc. All rights reserved. 3815 // 3816 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3817 // 3818 // This file contains Original Code and/or Modifications of Original Code 3819 // as defined in and that are subject to the Apple Public Source License 3820 // Version 2.0 (the 'License'). You may not use this file except in 3821 // compliance with the License. The rights granted to you under the License 3822 // may not be used to create, or enable the creation or redistribution of, 3823 // unlawful or unlicensed copies of an Apple operating system, or to 3824 // circumvent, violate, or enable the circumvention or violation of, any 3825 // terms of an Apple operating system software license agreement. 3826 // 3827 // Please obtain a copy of the License at 3828 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3829 // 3830 // The Original Code and all software distributed under the License are 3831 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3832 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3833 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3834 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3835 // Please see the License for the specific language governing rights and 3836 // limitations under the License. 3837 // 3838 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3839 // Copyright (c) 2012 Apple Inc. All rights reserved. 3840 // 3841 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3842 // 3843 // This file contains Original Code and/or Modifications of Original Code 3844 // as defined in and that are subject to the Apple Public Source License 3845 // Version 2.0 (the 'License'). You may not use this file except in 3846 // compliance with the License. The rights granted to you under the License 3847 // may not be used to create, or enable the creation or redistribution of, 3848 // unlawful or unlicensed copies of an Apple operating system, or to 3849 // circumvent, violate, or enable the circumvention or violation of, any 3850 // terms of an Apple operating system software license agreement. 3851 // 3852 // Please obtain a copy of the License at 3853 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3854 // 3855 // The Original Code and all software distributed under the License are 3856 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3857 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3858 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3859 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3860 // Please see the License for the specific language governing rights and 3861 // limitations under the License. 3862 // 3863 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3864 3865 // Copyright (c) 2012 Apple Inc. All rights reserved. 3866 // 3867 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3868 // 3869 // This file contains Original Code and/or Modifications of Original Code 3870 // as defined in and that are subject to the Apple Public Source License 3871 // Version 2.0 (the 'License'). You may not use this file except in 3872 // compliance with the License. The rights granted to you under the License 3873 // may not be used to create, or enable the creation or redistribution of, 3874 // unlawful or unlicensed copies of an Apple operating system, or to 3875 // circumvent, violate, or enable the circumvention or violation of, any 3876 // terms of an Apple operating system software license agreement. 3877 // 3878 // Please obtain a copy of the License at 3879 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3880 // 3881 // The Original Code and all software distributed under the License are 3882 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3883 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3884 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3885 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3886 // Please see the License for the specific language governing rights and 3887 // limitations under the License. 3888 // 3889 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3890 3891 type uint8_t = uint8 /* _uint8_t.h:31:23 */ 3892 // Copyright (c) 2012 Apple Inc. All rights reserved. 3893 // 3894 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3895 // 3896 // This file contains Original Code and/or Modifications of Original Code 3897 // as defined in and that are subject to the Apple Public Source License 3898 // Version 2.0 (the 'License'). You may not use this file except in 3899 // compliance with the License. The rights granted to you under the License 3900 // may not be used to create, or enable the creation or redistribution of, 3901 // unlawful or unlicensed copies of an Apple operating system, or to 3902 // circumvent, violate, or enable the circumvention or violation of, any 3903 // terms of an Apple operating system software license agreement. 3904 // 3905 // Please obtain a copy of the License at 3906 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3907 // 3908 // The Original Code and all software distributed under the License are 3909 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3910 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3911 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3912 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3913 // Please see the License for the specific language governing rights and 3914 // limitations under the License. 3915 // 3916 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3917 3918 type uint16_t = uint16 /* _uint16_t.h:31:24 */ 3919 // Copyright (c) 2012 Apple Inc. All rights reserved. 3920 // 3921 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3922 // 3923 // This file contains Original Code and/or Modifications of Original Code 3924 // as defined in and that are subject to the Apple Public Source License 3925 // Version 2.0 (the 'License'). You may not use this file except in 3926 // compliance with the License. The rights granted to you under the License 3927 // may not be used to create, or enable the creation or redistribution of, 3928 // unlawful or unlicensed copies of an Apple operating system, or to 3929 // circumvent, violate, or enable the circumvention or violation of, any 3930 // terms of an Apple operating system software license agreement. 3931 // 3932 // Please obtain a copy of the License at 3933 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3934 // 3935 // The Original Code and all software distributed under the License are 3936 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3937 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3938 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3939 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3940 // Please see the License for the specific language governing rights and 3941 // limitations under the License. 3942 // 3943 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3944 3945 type uint32_t = uint32 /* _uint32_t.h:31:22 */ 3946 // Copyright (c) 2012 Apple Inc. All rights reserved. 3947 // 3948 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3949 // 3950 // This file contains Original Code and/or Modifications of Original Code 3951 // as defined in and that are subject to the Apple Public Source License 3952 // Version 2.0 (the 'License'). You may not use this file except in 3953 // compliance with the License. The rights granted to you under the License 3954 // may not be used to create, or enable the creation or redistribution of, 3955 // unlawful or unlicensed copies of an Apple operating system, or to 3956 // circumvent, violate, or enable the circumvention or violation of, any 3957 // terms of an Apple operating system software license agreement. 3958 // 3959 // Please obtain a copy of the License at 3960 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3961 // 3962 // The Original Code and all software distributed under the License are 3963 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3964 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3965 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3966 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3967 // Please see the License for the specific language governing rights and 3968 // limitations under the License. 3969 // 3970 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3971 3972 type uint64_t = uint64 /* _uint64_t.h:31:28 */ 3973 3974 // 7.18.1.2 Minimum-width integer types 3975 type int_least8_t = int8_t /* stdint.h:38:26 */ 3976 type int_least16_t = int16_t /* stdint.h:39:25 */ 3977 type int_least32_t = int32_t /* stdint.h:40:25 */ 3978 type int_least64_t = int64_t /* stdint.h:41:25 */ 3979 type uint_least8_t = uint8_t /* stdint.h:42:25 */ 3980 type uint_least16_t = uint16_t /* stdint.h:43:24 */ 3981 type uint_least32_t = uint32_t /* stdint.h:44:24 */ 3982 type uint_least64_t = uint64_t /* stdint.h:45:24 */ 3983 3984 // 7.18.1.3 Fastest-width integer types 3985 type int_fast8_t = int8_t /* stdint.h:49:27 */ 3986 type int_fast16_t = int16_t /* stdint.h:50:26 */ 3987 type int_fast32_t = int32_t /* stdint.h:51:26 */ 3988 type int_fast64_t = int64_t /* stdint.h:52:26 */ 3989 type uint_fast8_t = uint8_t /* stdint.h:53:26 */ 3990 type uint_fast16_t = uint16_t /* stdint.h:54:25 */ 3991 type uint_fast32_t = uint32_t /* stdint.h:55:25 */ 3992 type uint_fast64_t = uint64_t /* stdint.h:56:25 */ 3993 3994 // 7.18.1.4 Integer types capable of holding object pointers 3995 3996 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 3997 // 3998 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3999 // 4000 // This file contains Original Code and/or Modifications of Original Code 4001 // as defined in and that are subject to the Apple Public Source License 4002 // Version 2.0 (the 'License'). You may not use this file except in 4003 // compliance with the License. The rights granted to you under the License 4004 // may not be used to create, or enable the creation or redistribution of, 4005 // unlawful or unlicensed copies of an Apple operating system, or to 4006 // circumvent, violate, or enable the circumvention or violation of, any 4007 // terms of an Apple operating system software license agreement. 4008 // 4009 // Please obtain a copy of the License at 4010 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4011 // 4012 // The Original Code and all software distributed under the License are 4013 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4014 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4015 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4016 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4017 // Please see the License for the specific language governing rights and 4018 // limitations under the License. 4019 // 4020 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4021 4022 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4023 // 4024 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4025 // 4026 // This file contains Original Code and/or Modifications of Original Code 4027 // as defined in and that are subject to the Apple Public Source License 4028 // Version 2.0 (the 'License'). You may not use this file except in 4029 // compliance with the License. The rights granted to you under the License 4030 // may not be used to create, or enable the creation or redistribution of, 4031 // unlawful or unlicensed copies of an Apple operating system, or to 4032 // circumvent, violate, or enable the circumvention or violation of, any 4033 // terms of an Apple operating system software license agreement. 4034 // 4035 // Please obtain a copy of the License at 4036 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4037 // 4038 // The Original Code and all software distributed under the License are 4039 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4040 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4041 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4042 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4043 // Please see the License for the specific language governing rights and 4044 // limitations under the License. 4045 // 4046 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4047 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4048 // 4049 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4050 // 4051 // This file contains Original Code and/or Modifications of Original Code 4052 // as defined in and that are subject to the Apple Public Source License 4053 // Version 2.0 (the 'License'). You may not use this file except in 4054 // compliance with the License. The rights granted to you under the License 4055 // may not be used to create, or enable the creation or redistribution of, 4056 // unlawful or unlicensed copies of an Apple operating system, or to 4057 // circumvent, violate, or enable the circumvention or violation of, any 4058 // terms of an Apple operating system software license agreement. 4059 // 4060 // Please obtain a copy of the License at 4061 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4062 // 4063 // The Original Code and all software distributed under the License are 4064 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4065 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4066 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4067 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4068 // Please see the License for the specific language governing rights and 4069 // limitations under the License. 4070 // 4071 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4072 4073 // 7.18.1.5 Greatest-width integer types 4074 // Copyright (c) 2012 Apple Inc. All rights reserved. 4075 // 4076 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4077 // 4078 // This file contains Original Code and/or Modifications of Original Code 4079 // as defined in and that are subject to the Apple Public Source License 4080 // Version 2.0 (the 'License'). You may not use this file except in 4081 // compliance with the License. The rights granted to you under the License 4082 // may not be used to create, or enable the creation or redistribution of, 4083 // unlawful or unlicensed copies of an Apple operating system, or to 4084 // circumvent, violate, or enable the circumvention or violation of, any 4085 // terms of an Apple operating system software license agreement. 4086 // 4087 // Please obtain a copy of the License at 4088 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4089 // 4090 // The Original Code and all software distributed under the License are 4091 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4092 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4093 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4094 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4095 // Please see the License for the specific language governing rights and 4096 // limitations under the License. 4097 // 4098 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4099 4100 type intmax_t = int64 /* _intmax_t.h:32:25 */ 4101 // Copyright (c) 2012 Apple Inc. All rights reserved. 4102 // 4103 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4104 // 4105 // This file contains Original Code and/or Modifications of Original Code 4106 // as defined in and that are subject to the Apple Public Source License 4107 // Version 2.0 (the 'License'). You may not use this file except in 4108 // compliance with the License. The rights granted to you under the License 4109 // may not be used to create, or enable the creation or redistribution of, 4110 // unlawful or unlicensed copies of an Apple operating system, or to 4111 // circumvent, violate, or enable the circumvention or violation of, any 4112 // terms of an Apple operating system software license agreement. 4113 // 4114 // Please obtain a copy of the License at 4115 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4116 // 4117 // The Original Code and all software distributed under the License are 4118 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4119 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4120 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4121 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4122 // Please see the License for the specific language governing rights and 4123 // limitations under the License. 4124 // 4125 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4126 4127 type uintmax_t = uint64 /* _uintmax_t.h:32:26 */ 4128 4129 // 7.18.4 Macros for integer constants 4130 4131 // 7.18.2 Limits of specified-width integer types: 4132 // These #defines specify the minimum and maximum limits 4133 // of each of the types declared above. 4134 // 4135 // They must have "the same type as would an expression that is an 4136 // object of the corresponding type converted according to the integer 4137 // promotion". 4138 4139 // 7.18.2.1 Limits of exact-width integer types 4140 4141 // 4142 // Note: the literal "most negative int" cannot be written in C -- 4143 // the rules in the standard (section 6.4.4.1 in C99) will give it 4144 // an unsigned type, so INT32_MIN (and the most negative member of 4145 // any larger signed type) must be written via a constant expression. 4146 // 4147 4148 // 7.18.2.2 Limits of minimum-width integer types 4149 4150 // 7.18.2.3 Limits of fastest minimum-width integer types 4151 4152 // 7.18.2.4 Limits of integer types capable of holding object pointers 4153 4154 // 7.18.2.5 Limits of greatest-width integer types 4155 4156 // 7.18.3 "Other" 4157 4158 // WCHAR_MIN should be 0 if wchar_t is an unsigned type and 4159 // (-WCHAR_MAX-1) if wchar_t is a signed type. Unfortunately, 4160 // it turns out that -fshort-wchar changes the signedness of 4161 // the type. 4162 4163 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 4164 // 4165 // @APPLE_LICENSE_HEADER_START@ 4166 // 4167 // This file contains Original Code and/or Modifications of Original Code 4168 // as defined in and that are subject to the Apple Public Source License 4169 // Version 2.0 (the 'License'). You may not use this file except in 4170 // compliance with the License. Please obtain a copy of the License at 4171 // http://www.opensource.apple.com/apsl/ and read it before using this 4172 // file. 4173 // 4174 // The Original Code and all software distributed under the License are 4175 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4176 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4177 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4178 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4179 // Please see the License for the specific language governing rights and 4180 // limitations under the License. 4181 // 4182 // @APPLE_LICENSE_HEADER_END@ 4183 4184 // [XSI] The timeval structure shall be defined as described in 4185 // <sys/time.h> 4186 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4187 // 4188 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4189 // 4190 // This file contains Original Code and/or Modifications of Original Code 4191 // as defined in and that are subject to the Apple Public Source License 4192 // Version 2.0 (the 'License'). You may not use this file except in 4193 // compliance with the License. The rights granted to you under the License 4194 // may not be used to create, or enable the creation or redistribution of, 4195 // unlawful or unlicensed copies of an Apple operating system, or to 4196 // circumvent, violate, or enable the circumvention or violation of, any 4197 // terms of an Apple operating system software license agreement. 4198 // 4199 // Please obtain a copy of the License at 4200 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4201 // 4202 // The Original Code and all software distributed under the License are 4203 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4204 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4205 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4206 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4207 // Please see the License for the specific language governing rights and 4208 // limitations under the License. 4209 // 4210 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4211 4212 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4213 // 4214 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4215 // 4216 // This file contains Original Code and/or Modifications of Original Code 4217 // as defined in and that are subject to the Apple Public Source License 4218 // Version 2.0 (the 'License'). You may not use this file except in 4219 // compliance with the License. The rights granted to you under the License 4220 // may not be used to create, or enable the creation or redistribution of, 4221 // unlawful or unlicensed copies of an Apple operating system, or to 4222 // circumvent, violate, or enable the circumvention or violation of, any 4223 // terms of an Apple operating system software license agreement. 4224 // 4225 // Please obtain a copy of the License at 4226 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4227 // 4228 // The Original Code and all software distributed under the License are 4229 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4230 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4231 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4232 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4233 // Please see the License for the specific language governing rights and 4234 // limitations under the License. 4235 // 4236 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4237 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4238 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4239 // 4240 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4241 // 4242 // This file contains Original Code and/or Modifications of Original Code 4243 // as defined in and that are subject to the Apple Public Source License 4244 // Version 2.0 (the 'License'). You may not use this file except in 4245 // compliance with the License. The rights granted to you under the License 4246 // may not be used to create, or enable the creation or redistribution of, 4247 // unlawful or unlicensed copies of an Apple operating system, or to 4248 // circumvent, violate, or enable the circumvention or violation of, any 4249 // terms of an Apple operating system software license agreement. 4250 // 4251 // Please obtain a copy of the License at 4252 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4253 // 4254 // The Original Code and all software distributed under the License are 4255 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4256 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4257 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4258 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4259 // Please see the License for the specific language governing rights and 4260 // limitations under the License. 4261 // 4262 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4263 4264 type timeval = struct { 4265 Ftv_sec int64 4266 Ftv_usec int32 4267 F__ccgo_pad1 [4]byte 4268 } /* _timeval.h:34:1 */ 4269 4270 // The id_t type shall be defined as described in <sys/types.h> 4271 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4272 // 4273 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4274 // 4275 // This file contains Original Code and/or Modifications of Original Code 4276 // as defined in and that are subject to the Apple Public Source License 4277 // Version 2.0 (the 'License'). You may not use this file except in 4278 // compliance with the License. The rights granted to you under the License 4279 // may not be used to create, or enable the creation or redistribution of, 4280 // unlawful or unlicensed copies of an Apple operating system, or to 4281 // circumvent, violate, or enable the circumvention or violation of, any 4282 // terms of an Apple operating system software license agreement. 4283 // 4284 // Please obtain a copy of the License at 4285 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4286 // 4287 // The Original Code and all software distributed under the License are 4288 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4289 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4290 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4291 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4292 // Please see the License for the specific language governing rights and 4293 // limitations under the License. 4294 // 4295 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4296 4297 // Resource limit type (low 63 bits, excluding the sign bit) 4298 type rlim_t = uint64 /* resource.h:89:25 */ 4299 4300 // **** 4301 // 4302 // PRIORITY 4303 4304 // Possible values of the first parameter to getpriority()/setpriority(), 4305 // used to indicate the type of the second parameter. 4306 4307 // Range limitations for the value of the third parameter to setpriority(). 4308 4309 // use PRIO_DARWIN_BG to set the current thread into "background" state 4310 // which lowers CPU, disk IO, and networking priorites until thread terminates 4311 // or "background" state is revoked 4312 4313 // use PRIO_DARWIN_NONUI to restrict a process's ability to make calls to 4314 // the GPU. (deprecated) 4315 4316 // **** 4317 // 4318 // RESOURCE USAGE 4319 4320 // Possible values of the first parameter to getrusage(), used to indicate 4321 // the scope of the information to be returned. 4322 4323 // A structure representing an accounting of resource utilization. The 4324 // address of an instance of this structure is the second parameter to 4325 // getrusage(). 4326 // 4327 // Note: All values other than ru_utime and ru_stime are implementaiton 4328 // defined and subject to change in a future release. Their use 4329 // is discouraged for standards compliant programs. 4330 type rusage = struct { 4331 Fru_utime struct { 4332 Ftv_sec int64 4333 Ftv_usec int32 4334 F__ccgo_pad1 [4]byte 4335 } 4336 Fru_stime struct { 4337 Ftv_sec int64 4338 Ftv_usec int32 4339 F__ccgo_pad1 [4]byte 4340 } 4341 Fru_maxrss int64 4342 Fru_ixrss int64 4343 Fru_idrss int64 4344 Fru_isrss int64 4345 Fru_minflt int64 4346 Fru_majflt int64 4347 Fru_nswap int64 4348 Fru_inblock int64 4349 Fru_oublock int64 4350 Fru_msgsnd int64 4351 Fru_msgrcv int64 4352 Fru_nsignals int64 4353 Fru_nvcsw int64 4354 Fru_nivcsw int64 4355 } /* resource.h:152:1 */ 4356 4357 // Flavors for proc_pid_rusage(). 4358 4359 // Flags for RUSAGE_INFO_V5 4360 4361 type rusage_info_t = uintptr /* resource.h:199:14 */ 4362 4363 type rusage_info_v0 = struct { 4364 Fri_uuid [16]uint8_t 4365 Fri_user_time uint64_t 4366 Fri_system_time uint64_t 4367 Fri_pkg_idle_wkups uint64_t 4368 Fri_interrupt_wkups uint64_t 4369 Fri_pageins uint64_t 4370 Fri_wired_size uint64_t 4371 Fri_resident_size uint64_t 4372 Fri_phys_footprint uint64_t 4373 Fri_proc_start_abstime uint64_t 4374 Fri_proc_exit_abstime uint64_t 4375 } /* resource.h:201:1 */ 4376 4377 type rusage_info_v1 = struct { 4378 Fri_uuid [16]uint8_t 4379 Fri_user_time uint64_t 4380 Fri_system_time uint64_t 4381 Fri_pkg_idle_wkups uint64_t 4382 Fri_interrupt_wkups uint64_t 4383 Fri_pageins uint64_t 4384 Fri_wired_size uint64_t 4385 Fri_resident_size uint64_t 4386 Fri_phys_footprint uint64_t 4387 Fri_proc_start_abstime uint64_t 4388 Fri_proc_exit_abstime uint64_t 4389 Fri_child_user_time uint64_t 4390 Fri_child_system_time uint64_t 4391 Fri_child_pkg_idle_wkups uint64_t 4392 Fri_child_interrupt_wkups uint64_t 4393 Fri_child_pageins uint64_t 4394 Fri_child_elapsed_abstime uint64_t 4395 } /* resource.h:215:1 */ 4396 4397 type rusage_info_v2 = struct { 4398 Fri_uuid [16]uint8_t 4399 Fri_user_time uint64_t 4400 Fri_system_time uint64_t 4401 Fri_pkg_idle_wkups uint64_t 4402 Fri_interrupt_wkups uint64_t 4403 Fri_pageins uint64_t 4404 Fri_wired_size uint64_t 4405 Fri_resident_size uint64_t 4406 Fri_phys_footprint uint64_t 4407 Fri_proc_start_abstime uint64_t 4408 Fri_proc_exit_abstime uint64_t 4409 Fri_child_user_time uint64_t 4410 Fri_child_system_time uint64_t 4411 Fri_child_pkg_idle_wkups uint64_t 4412 Fri_child_interrupt_wkups uint64_t 4413 Fri_child_pageins uint64_t 4414 Fri_child_elapsed_abstime uint64_t 4415 Fri_diskio_bytesread uint64_t 4416 Fri_diskio_byteswritten uint64_t 4417 } /* resource.h:235:1 */ 4418 4419 type rusage_info_v3 = struct { 4420 Fri_uuid [16]uint8_t 4421 Fri_user_time uint64_t 4422 Fri_system_time uint64_t 4423 Fri_pkg_idle_wkups uint64_t 4424 Fri_interrupt_wkups uint64_t 4425 Fri_pageins uint64_t 4426 Fri_wired_size uint64_t 4427 Fri_resident_size uint64_t 4428 Fri_phys_footprint uint64_t 4429 Fri_proc_start_abstime uint64_t 4430 Fri_proc_exit_abstime uint64_t 4431 Fri_child_user_time uint64_t 4432 Fri_child_system_time uint64_t 4433 Fri_child_pkg_idle_wkups uint64_t 4434 Fri_child_interrupt_wkups uint64_t 4435 Fri_child_pageins uint64_t 4436 Fri_child_elapsed_abstime uint64_t 4437 Fri_diskio_bytesread uint64_t 4438 Fri_diskio_byteswritten uint64_t 4439 Fri_cpu_time_qos_default uint64_t 4440 Fri_cpu_time_qos_maintenance uint64_t 4441 Fri_cpu_time_qos_background uint64_t 4442 Fri_cpu_time_qos_utility uint64_t 4443 Fri_cpu_time_qos_legacy uint64_t 4444 Fri_cpu_time_qos_user_initiated uint64_t 4445 Fri_cpu_time_qos_user_interactive uint64_t 4446 Fri_billed_system_time uint64_t 4447 Fri_serviced_system_time uint64_t 4448 } /* resource.h:257:1 */ 4449 4450 type rusage_info_v4 = struct { 4451 Fri_uuid [16]uint8_t 4452 Fri_user_time uint64_t 4453 Fri_system_time uint64_t 4454 Fri_pkg_idle_wkups uint64_t 4455 Fri_interrupt_wkups uint64_t 4456 Fri_pageins uint64_t 4457 Fri_wired_size uint64_t 4458 Fri_resident_size uint64_t 4459 Fri_phys_footprint uint64_t 4460 Fri_proc_start_abstime uint64_t 4461 Fri_proc_exit_abstime uint64_t 4462 Fri_child_user_time uint64_t 4463 Fri_child_system_time uint64_t 4464 Fri_child_pkg_idle_wkups uint64_t 4465 Fri_child_interrupt_wkups uint64_t 4466 Fri_child_pageins uint64_t 4467 Fri_child_elapsed_abstime uint64_t 4468 Fri_diskio_bytesread uint64_t 4469 Fri_diskio_byteswritten uint64_t 4470 Fri_cpu_time_qos_default uint64_t 4471 Fri_cpu_time_qos_maintenance uint64_t 4472 Fri_cpu_time_qos_background uint64_t 4473 Fri_cpu_time_qos_utility uint64_t 4474 Fri_cpu_time_qos_legacy uint64_t 4475 Fri_cpu_time_qos_user_initiated uint64_t 4476 Fri_cpu_time_qos_user_interactive uint64_t 4477 Fri_billed_system_time uint64_t 4478 Fri_serviced_system_time uint64_t 4479 Fri_logical_writes uint64_t 4480 Fri_lifetime_max_phys_footprint uint64_t 4481 Fri_instructions uint64_t 4482 Fri_cycles uint64_t 4483 Fri_billed_energy uint64_t 4484 Fri_serviced_energy uint64_t 4485 Fri_interval_max_phys_footprint uint64_t 4486 Fri_runnable_time uint64_t 4487 } /* resource.h:288:1 */ 4488 4489 type rusage_info_v5 = struct { 4490 Fri_uuid [16]uint8_t 4491 Fri_user_time uint64_t 4492 Fri_system_time uint64_t 4493 Fri_pkg_idle_wkups uint64_t 4494 Fri_interrupt_wkups uint64_t 4495 Fri_pageins uint64_t 4496 Fri_wired_size uint64_t 4497 Fri_resident_size uint64_t 4498 Fri_phys_footprint uint64_t 4499 Fri_proc_start_abstime uint64_t 4500 Fri_proc_exit_abstime uint64_t 4501 Fri_child_user_time uint64_t 4502 Fri_child_system_time uint64_t 4503 Fri_child_pkg_idle_wkups uint64_t 4504 Fri_child_interrupt_wkups uint64_t 4505 Fri_child_pageins uint64_t 4506 Fri_child_elapsed_abstime uint64_t 4507 Fri_diskio_bytesread uint64_t 4508 Fri_diskio_byteswritten uint64_t 4509 Fri_cpu_time_qos_default uint64_t 4510 Fri_cpu_time_qos_maintenance uint64_t 4511 Fri_cpu_time_qos_background uint64_t 4512 Fri_cpu_time_qos_utility uint64_t 4513 Fri_cpu_time_qos_legacy uint64_t 4514 Fri_cpu_time_qos_user_initiated uint64_t 4515 Fri_cpu_time_qos_user_interactive uint64_t 4516 Fri_billed_system_time uint64_t 4517 Fri_serviced_system_time uint64_t 4518 Fri_logical_writes uint64_t 4519 Fri_lifetime_max_phys_footprint uint64_t 4520 Fri_instructions uint64_t 4521 Fri_cycles uint64_t 4522 Fri_billed_energy uint64_t 4523 Fri_serviced_energy uint64_t 4524 Fri_interval_max_phys_footprint uint64_t 4525 Fri_runnable_time uint64_t 4526 Fri_flags uint64_t 4527 } /* resource.h:327:1 */ 4528 4529 type rusage_info_current = rusage_info_v5 /* resource.h:367:31 */ 4530 4531 // **** 4532 // 4533 // RESOURCE LIMITS 4534 4535 // Symbolic constants for resource limits; since all limits are representable 4536 // as a type rlim_t, we are permitted to define RLIM_SAVED_* in terms of 4537 // RLIM_INFINITY. 4538 4539 // Possible values of the first parameter to getrlimit()/setrlimit(), to 4540 // indicate for which resource the operation is being performed. 4541 4542 // A structure representing a resource limit. The address of an instance 4543 // of this structure is the second parameter to getrlimit()/setrlimit(). 4544 type rlimit = struct { 4545 Frlim_cur rlim_t 4546 Frlim_max rlim_t 4547 } /* resource.h:411:1 */ 4548 4549 // proc_rlimit_control() 4550 // 4551 // Resource limit flavors 4552 4553 // Flags for wakeups monitor control. 4554 4555 // Flags for CPU usage monitor control. 4556 4557 // Flags for memory footprint interval tracking. 4558 4559 type proc_rlimit_control_wakeupmon = struct { 4560 Fwm_flags uint32_t 4561 Fwm_rate int32_t 4562 } /* resource.h:446:1 */ 4563 4564 // Option bits for the third argument of wait4. WNOHANG causes the 4565 // wait to not hang if there are no stopped or terminated processes, rather 4566 // returning an error indication in this case (pid==0). WUNTRACED 4567 // indicates that the caller should receive status about untraced children 4568 // which stop due to signals. If children are stopped and a wait without 4569 // this option is done, it is as though they were still running... nothing 4570 // about them is returned. 4571 4572 // Macros to test the exit status returned by wait 4573 // and extract the relevant values. 4574 4575 // These macros are permited, as they are in the implementation namespace 4576 4577 // [XSI] The <sys/wait.h> header shall define the following macros for 4578 // analysis of process status values 4579 // 0x13 == SIGCONT 4580 4581 // [XSI] The following symbolic constants shall be defined as possible 4582 // values for the fourth argument to waitid(). 4583 // WNOHANG already defined for wait4() 4584 // WUNTRACED defined for wait4() but not for waitid() 4585 // waitid() parameter 4586 4587 // POSIX extensions and 4.2/4.3 compatability: 4588 4589 // Tokens for special values of the "pid" parameter to wait4. 4590 4591 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4592 // 4593 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4594 // 4595 // This file contains Original Code and/or Modifications of Original Code 4596 // as defined in and that are subject to the Apple Public Source License 4597 // Version 2.0 (the 'License'). You may not use this file except in 4598 // compliance with the License. The rights granted to you under the License 4599 // may not be used to create, or enable the creation or redistribution of, 4600 // unlawful or unlicensed copies of an Apple operating system, or to 4601 // circumvent, violate, or enable the circumvention or violation of, any 4602 // terms of an Apple operating system software license agreement. 4603 // 4604 // Please obtain a copy of the License at 4605 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4606 // 4607 // The Original Code and all software distributed under the License are 4608 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4609 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4610 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4611 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4612 // Please see the License for the specific language governing rights and 4613 // limitations under the License. 4614 // 4615 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4616 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4617 4618 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4619 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4620 // Copyright (c) 1987, 1991, 1993 4621 // The Regents of the University of California. All rights reserved. 4622 // 4623 // Redistribution and use in source and binary forms, with or without 4624 // modification, are permitted provided that the following conditions 4625 // are met: 4626 // 1. Redistributions of source code must retain the above copyright 4627 // notice, this list of conditions and the following disclaimer. 4628 // 2. Redistributions in binary form must reproduce the above copyright 4629 // notice, this list of conditions and the following disclaimer in the 4630 // documentation and/or other materials provided with the distribution. 4631 // 3. All advertising materials mentioning features or use of this software 4632 // must display the following acknowledgement: 4633 // This product includes software developed by the University of 4634 // California, Berkeley and its contributors. 4635 // 4. Neither the name of the University nor the names of its contributors 4636 // may be used to endorse or promote products derived from this software 4637 // without specific prior written permission. 4638 // 4639 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 4640 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4641 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4642 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 4643 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4644 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 4645 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4646 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 4647 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 4648 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4649 // SUCH DAMAGE. 4650 // 4651 // @(#)endian.h 8.1 (Berkeley) 6/11/93 4652 4653 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 4654 // 4655 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4656 // 4657 // This file contains Original Code and/or Modifications of Original Code 4658 // as defined in and that are subject to the Apple Public Source License 4659 // Version 2.0 (the 'License'). You may not use this file except in 4660 // compliance with the License. The rights granted to you under the License 4661 // may not be used to create, or enable the creation or redistribution of, 4662 // unlawful or unlicensed copies of an Apple operating system, or to 4663 // circumvent, violate, or enable the circumvention or violation of, any 4664 // terms of an Apple operating system software license agreement. 4665 // 4666 // Please obtain a copy of the License at 4667 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4668 // 4669 // The Original Code and all software distributed under the License are 4670 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4671 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4672 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4673 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4674 // Please see the License for the specific language governing rights and 4675 // limitations under the License. 4676 // 4677 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4678 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4679 // Copyright (c) 1991, 1993 4680 // The Regents of the University of California. All rights reserved. 4681 // 4682 // This code is derived from software contributed to Berkeley by 4683 // Berkeley Software Design, Inc. 4684 // 4685 // Redistribution and use in source and binary forms, with or without 4686 // modification, are permitted provided that the following conditions 4687 // are met: 4688 // 1. Redistributions of source code must retain the above copyright 4689 // notice, this list of conditions and the following disclaimer. 4690 // 2. Redistributions in binary form must reproduce the above copyright 4691 // notice, this list of conditions and the following disclaimer in the 4692 // documentation and/or other materials provided with the distribution. 4693 // 3. All advertising materials mentioning features or use of this software 4694 // must display the following acknowledgement: 4695 // This product includes software developed by the University of 4696 // California, Berkeley and its contributors. 4697 // 4. Neither the name of the University nor the names of its contributors 4698 // may be used to endorse or promote products derived from this software 4699 // without specific prior written permission. 4700 // 4701 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 4702 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4703 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4704 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 4705 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4706 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 4707 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4708 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 4709 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 4710 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4711 // SUCH DAMAGE. 4712 // 4713 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 4714 4715 // Define _NOQUAD if the compiler does NOT support 64-bit integers. 4716 // #define _NOQUAD 4717 4718 // Define the order of 32-bit words in 64-bit words. 4719 4720 // Definitions for byte order, according to byte significance from low 4721 // address to high. 4722 4723 // Copyright (c) 2004, 2006 Apple Computer, Inc. All rights reserved. 4724 // 4725 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4726 // 4727 // This file contains Original Code and/or Modifications of Original Code 4728 // as defined in and that are subject to the Apple Public Source License 4729 // Version 2.0 (the 'License'). You may not use this file except in 4730 // compliance with the License. The rights granted to you under the License 4731 // may not be used to create, or enable the creation or redistribution of, 4732 // unlawful or unlicensed copies of an Apple operating system, or to 4733 // circumvent, violate, or enable the circumvention or violation of, any 4734 // terms of an Apple operating system software license agreement. 4735 // 4736 // Please obtain a copy of the License at 4737 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4738 // 4739 // The Original Code and all software distributed under the License are 4740 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4741 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4742 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4743 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4744 // Please see the License for the specific language governing rights and 4745 // limitations under the License. 4746 // 4747 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4748 4749 // Copyright (c) 1995 NeXT Computer, Inc. All rights reserved. 4750 // Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved. 4751 // 4752 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4753 // 4754 // This file contains Original Code and/or Modifications of Original Code 4755 // as defined in and that are subject to the Apple Public Source License 4756 // Version 2.0 (the 'License'). You may not use this file except in 4757 // compliance with the License. The rights granted to you under the License 4758 // may not be used to create, or enable the creation or redistribution of, 4759 // unlawful or unlicensed copies of an Apple operating system, or to 4760 // circumvent, violate, or enable the circumvention or violation of, any 4761 // terms of an Apple operating system software license agreement. 4762 // 4763 // Please obtain a copy of the License at 4764 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4765 // 4766 // The Original Code and all software distributed under the License are 4767 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4768 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4769 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4770 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4771 // Please see the License for the specific language governing rights and 4772 // limitations under the License. 4773 // 4774 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4775 // Copyright (c) 1987, 1991, 1993 4776 // The Regents of the University of California. All rights reserved. 4777 // 4778 // Redistribution and use in source and binary forms, with or without 4779 // modification, are permitted provided that the following conditions 4780 // are met: 4781 // 1. Redistributions of source code must retain the above copyright 4782 // notice, this list of conditions and the following disclaimer. 4783 // 2. Redistributions in binary form must reproduce the above copyright 4784 // notice, this list of conditions and the following disclaimer in the 4785 // documentation and/or other materials provided with the distribution. 4786 // 3. All advertising materials mentioning features or use of this software 4787 // must display the following acknowledgement: 4788 // This product includes software developed by the University of 4789 // California, Berkeley and its contributors. 4790 // 4. Neither the name of the University nor the names of its contributors 4791 // may be used to endorse or promote products derived from this software 4792 // without specific prior written permission. 4793 // 4794 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 4795 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4796 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4797 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 4798 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4799 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 4800 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4801 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 4802 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 4803 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4804 // SUCH DAMAGE. 4805 4806 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 4807 // 4808 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4809 // 4810 // This file contains Original Code and/or Modifications of Original Code 4811 // as defined in and that are subject to the Apple Public Source License 4812 // Version 2.0 (the 'License'). You may not use this file except in 4813 // compliance with the License. The rights granted to you under the License 4814 // may not be used to create, or enable the creation or redistribution of, 4815 // unlawful or unlicensed copies of an Apple operating system, or to 4816 // circumvent, violate, or enable the circumvention or violation of, any 4817 // terms of an Apple operating system software license agreement. 4818 // 4819 // Please obtain a copy of the License at 4820 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4821 // 4822 // The Original Code and all software distributed under the License are 4823 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4824 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4825 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4826 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4827 // Please see the License for the specific language governing rights and 4828 // limitations under the License. 4829 // 4830 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4831 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4832 // Copyright (c) 1991, 1993 4833 // The Regents of the University of California. All rights reserved. 4834 // 4835 // This code is derived from software contributed to Berkeley by 4836 // Berkeley Software Design, Inc. 4837 // 4838 // Redistribution and use in source and binary forms, with or without 4839 // modification, are permitted provided that the following conditions 4840 // are met: 4841 // 1. Redistributions of source code must retain the above copyright 4842 // notice, this list of conditions and the following disclaimer. 4843 // 2. Redistributions in binary form must reproduce the above copyright 4844 // notice, this list of conditions and the following disclaimer in the 4845 // documentation and/or other materials provided with the distribution. 4846 // 3. All advertising materials mentioning features or use of this software 4847 // must display the following acknowledgement: 4848 // This product includes software developed by the University of 4849 // California, Berkeley and its contributors. 4850 // 4. Neither the name of the University nor the names of its contributors 4851 // may be used to endorse or promote products derived from this software 4852 // without specific prior written permission. 4853 // 4854 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 4855 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4856 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4857 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 4858 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4859 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 4860 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4861 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 4862 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 4863 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4864 // SUCH DAMAGE. 4865 // 4866 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 4867 4868 // Macros for network/external number representation conversion. 4869 4870 // Copyright (c) 2006 Apple Computer, Inc. All rights reserved. 4871 // 4872 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4873 // 4874 // This file contains Original Code and/or Modifications of Original Code 4875 // as defined in and that are subject to the Apple Public Source License 4876 // Version 2.0 (the 'License'). You may not use this file except in 4877 // compliance with the License. The rights granted to you under the License 4878 // may not be used to create, or enable the creation or redistribution of, 4879 // unlawful or unlicensed copies of an Apple operating system, or to 4880 // circumvent, violate, or enable the circumvention or violation of, any 4881 // terms of an Apple operating system software license agreement. 4882 // 4883 // Please obtain a copy of the License at 4884 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4885 // 4886 // The Original Code and all software distributed under the License are 4887 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4888 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4889 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4890 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4891 // Please see the License for the specific language governing rights and 4892 // limitations under the License. 4893 // 4894 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4895 4896 // This header is normally included from <libkern/OSByteOrder.h>. However, 4897 // <sys/_endian.h> also includes this in the case of little-endian 4898 // architectures, so that we can map OSByteOrder routines to the hton* and ntoh* 4899 // macros. This results in the asymmetry below; we only include 4900 // <libkern/arch/_OSByteOrder.h> for little-endian architectures. 4901 4902 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4903 // 4904 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4905 // 4906 // This file contains Original Code and/or Modifications of Original Code 4907 // as defined in and that are subject to the Apple Public Source License 4908 // Version 2.0 (the 'License'). You may not use this file except in 4909 // compliance with the License. The rights granted to you under the License 4910 // may not be used to create, or enable the creation or redistribution of, 4911 // unlawful or unlicensed copies of an Apple operating system, or to 4912 // circumvent, violate, or enable the circumvention or violation of, any 4913 // terms of an Apple operating system software license agreement. 4914 // 4915 // Please obtain a copy of the License at 4916 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4917 // 4918 // The Original Code and all software distributed under the License are 4919 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4920 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4921 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4922 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4923 // Please see the License for the specific language governing rights and 4924 // limitations under the License. 4925 // 4926 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4927 4928 // Macros for swapping constant values in the preprocessing stage. 4929 4930 // Copyright (c) 1999-2007 Apple Inc. All rights reserved. 4931 4932 // Copyright (c) 2007 Apple Inc. All rights reserved. 4933 // 4934 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4935 // 4936 // This file contains Original Code and/or Modifications of Original Code 4937 // as defined in and that are subject to the Apple Public Source License 4938 // Version 2.0 (the 'License'). You may not use this file except in 4939 // compliance with the License. The rights granted to you under the License 4940 // may not be used to create, or enable the creation or redistribution of, 4941 // unlawful or unlicensed copies of an Apple operating system, or to 4942 // circumvent, violate, or enable the circumvention or violation of, any 4943 // terms of an Apple operating system software license agreement. 4944 // 4945 // Please obtain a copy of the License at 4946 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4947 // 4948 // The Original Code and all software distributed under the License are 4949 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4950 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4951 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4952 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4953 // Please see the License for the specific language governing rights and 4954 // limitations under the License. 4955 // 4956 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4957 4958 // Collect the __ARM_ARCH_*__ compiler flags into something easier to use. 4959 4960 // Generic byte swapping functions. 4961 4962 func _OSSwapInt16(tls *libc.TLS, _data uint16_t) uint16_t { /* OSByteOrder.h:15:1: */ 4963 // Reduces to 'rev16' with clang 4964 return uint16_t(int32(_data)<<8 | int32(_data)>>8) 4965 } 4966 4967 func _OSSwapInt32(tls *libc.TLS, _data uint32_t) uint32_t { /* OSByteOrder.h:25:1: */ 4968 // This actually generates the best code 4969 _data = (_data^(_data>>16|_data<<16))&0xFF00FFFF>>8 ^ (_data>>8 | _data<<24) 4970 4971 return _data 4972 } 4973 4974 func _OSSwapInt64(tls *libc.TLS, _data uint64_t) uint64_t { /* OSByteOrder.h:41:1: */ 4975 bp := tls.Alloc(8) 4976 defer tls.Free(8) 4977 4978 // var _u struct {F_ull uint64_t;} at bp, 8 4979 4980 // This actually generates the best code 4981 *(*uint32_t)(unsafe.Pointer(bp)) = uint32_t(_data >> 32) 4982 *(*uint32_t)(unsafe.Pointer(bp + 1*4)) = uint32_t(_data & uint64(0xffffffff)) 4983 *(*uint32_t)(unsafe.Pointer(bp)) = _OSSwapInt32(tls, *(*uint32_t)(unsafe.Pointer(bp))) 4984 *(*uint32_t)(unsafe.Pointer(bp + 1*4)) = _OSSwapInt32(tls, *(*uint32_t)(unsafe.Pointer(bp + 1*4))) 4985 return *(*uint64_t)(unsafe.Pointer(bp)) 4986 } 4987 4988 // Functions for byte reversed loads. 4989 4990 type _OSUnalignedU16 = struct{ F__val uint16_t } /* OSByteOrder.h:64:1 */ 4991 4992 type _OSUnalignedU32 = struct{ F__val uint32_t } /* OSByteOrder.h:68:1 */ 4993 4994 type _OSUnalignedU64 = struct{ F__val uint64_t } /* OSByteOrder.h:72:1 */ 4995 4996 // Deprecated: 4997 // Structure of the information in the status word returned by wait4. 4998 // If w_stopval==_WSTOPPED, then the second structure describes 4999 // the information returned, else the first. 5000 type wait = struct{ Fw_status int32 } /* wait.h:194:1 */ 5001 5002 // built-in for gcc 5003 5004 // built-in for gcc 3 5005 5006 // DO NOT REMOVE THIS COMMENT: fixincludes needs to see: 5007 // _GCC_SIZE_T 5008 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5009 // 5010 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5011 // 5012 // This file contains Original Code and/or Modifications of Original Code 5013 // as defined in and that are subject to the Apple Public Source License 5014 // Version 2.0 (the 'License'). You may not use this file except in 5015 // compliance with the License. The rights granted to you under the License 5016 // may not be used to create, or enable the creation or redistribution of, 5017 // unlawful or unlicensed copies of an Apple operating system, or to 5018 // circumvent, violate, or enable the circumvention or violation of, any 5019 // terms of an Apple operating system software license agreement. 5020 // 5021 // Please obtain a copy of the License at 5022 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5023 // 5024 // The Original Code and all software distributed under the License are 5025 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5026 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5027 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5028 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5029 // Please see the License for the specific language governing rights and 5030 // limitations under the License. 5031 // 5032 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5033 5034 // Copyright (c) 2012 Apple Inc. All rights reserved. 5035 // 5036 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5037 // 5038 // This file contains Original Code and/or Modifications of Original Code 5039 // as defined in and that are subject to the Apple Public Source License 5040 // Version 2.0 (the 'License'). You may not use this file except in 5041 // compliance with the License. The rights granted to you under the License 5042 // may not be used to create, or enable the creation or redistribution of, 5043 // unlawful or unlicensed copies of an Apple operating system, or to 5044 // circumvent, violate, or enable the circumvention or violation of, any 5045 // terms of an Apple operating system software license agreement. 5046 // 5047 // Please obtain a copy of the License at 5048 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5049 // 5050 // The Original Code and all software distributed under the License are 5051 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5052 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5053 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5054 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5055 // Please see the License for the specific language governing rights and 5056 // limitations under the License. 5057 // 5058 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5059 5060 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5061 // 5062 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5063 // 5064 // This file contains Original Code and/or Modifications of Original Code 5065 // as defined in and that are subject to the Apple Public Source License 5066 // Version 2.0 (the 'License'). You may not use this file except in 5067 // compliance with the License. The rights granted to you under the License 5068 // may not be used to create, or enable the creation or redistribution of, 5069 // unlawful or unlicensed copies of an Apple operating system, or to 5070 // circumvent, violate, or enable the circumvention or violation of, any 5071 // terms of an Apple operating system software license agreement. 5072 // 5073 // Please obtain a copy of the License at 5074 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5075 // 5076 // The Original Code and all software distributed under the License are 5077 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5078 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5079 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5080 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5081 // Please see the License for the specific language governing rights and 5082 // limitations under the License. 5083 // 5084 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5085 type ct_rune_t = int32 /* _ct_rune_t.h:32:28 */ 5086 // Copyright (c) 2012 Apple Inc. All rights reserved. 5087 // 5088 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5089 // 5090 // This file contains Original Code and/or Modifications of Original Code 5091 // as defined in and that are subject to the Apple Public Source License 5092 // Version 2.0 (the 'License'). You may not use this file except in 5093 // compliance with the License. The rights granted to you under the License 5094 // may not be used to create, or enable the creation or redistribution of, 5095 // unlawful or unlicensed copies of an Apple operating system, or to 5096 // circumvent, violate, or enable the circumvention or violation of, any 5097 // terms of an Apple operating system software license agreement. 5098 // 5099 // Please obtain a copy of the License at 5100 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5101 // 5102 // The Original Code and all software distributed under the License are 5103 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5104 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5105 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5106 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5107 // Please see the License for the specific language governing rights and 5108 // limitations under the License. 5109 // 5110 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5111 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5112 // 5113 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5114 // 5115 // This file contains Original Code and/or Modifications of Original Code 5116 // as defined in and that are subject to the Apple Public Source License 5117 // Version 2.0 (the 'License'). You may not use this file except in 5118 // compliance with the License. The rights granted to you under the License 5119 // may not be used to create, or enable the creation or redistribution of, 5120 // unlawful or unlicensed copies of an Apple operating system, or to 5121 // circumvent, violate, or enable the circumvention or violation of, any 5122 // terms of an Apple operating system software license agreement. 5123 // 5124 // Please obtain a copy of the License at 5125 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5126 // 5127 // The Original Code and all software distributed under the License are 5128 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5129 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5130 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5131 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5132 // Please see the License for the specific language governing rights and 5133 // limitations under the License. 5134 // 5135 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5136 type rune_t = int32 /* _rune_t.h:31:25 */ 5137 5138 type div_t = struct { 5139 Fquot int32 5140 Frem int32 5141 } /* stdlib.h:86:3 */ 5142 5143 type ldiv_t = struct { 5144 Fquot int64 5145 Frem int64 5146 } /* stdlib.h:91:3 */ 5147 5148 type lldiv_t = struct { 5149 Fquot int64 5150 Frem int64 5151 } /* stdlib.h:97:3 */ 5152 5153 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 5154 // 5155 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5156 // 5157 // This file contains Original Code and/or Modifications of Original Code 5158 // as defined in and that are subject to the Apple Public Source License 5159 // Version 2.0 (the 'License'). You may not use this file except in 5160 // compliance with the License. The rights granted to you under the License 5161 // may not be used to create, or enable the creation or redistribution of, 5162 // unlawful or unlicensed copies of an Apple operating system, or to 5163 // circumvent, violate, or enable the circumvention or violation of, any 5164 // terms of an Apple operating system software license agreement. 5165 // 5166 // Please obtain a copy of the License at 5167 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5168 // 5169 // The Original Code and all software distributed under the License are 5170 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5171 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5172 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5173 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5174 // Please see the License for the specific language governing rights and 5175 // limitations under the License. 5176 // 5177 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5178 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 5179 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5180 // 5181 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5182 // 5183 // This file contains Original Code and/or Modifications of Original Code 5184 // as defined in and that are subject to the Apple Public Source License 5185 // Version 2.0 (the 'License'). You may not use this file except in 5186 // compliance with the License. The rights granted to you under the License 5187 // may not be used to create, or enable the creation or redistribution of, 5188 // unlawful or unlicensed copies of an Apple operating system, or to 5189 // circumvent, violate, or enable the circumvention or violation of, any 5190 // terms of an Apple operating system software license agreement. 5191 // 5192 // Please obtain a copy of the License at 5193 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5194 // 5195 // The Original Code and all software distributed under the License are 5196 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5197 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5198 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5199 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5200 // Please see the License for the specific language governing rights and 5201 // limitations under the License. 5202 // 5203 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5204 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5205 // 5206 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5207 // 5208 // This file contains Original Code and/or Modifications of Original Code 5209 // as defined in and that are subject to the Apple Public Source License 5210 // Version 2.0 (the 'License'). You may not use this file except in 5211 // compliance with the License. The rights granted to you under the License 5212 // may not be used to create, or enable the creation or redistribution of, 5213 // unlawful or unlicensed copies of an Apple operating system, or to 5214 // circumvent, violate, or enable the circumvention or violation of, any 5215 // terms of an Apple operating system software license agreement. 5216 // 5217 // Please obtain a copy of the License at 5218 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5219 // 5220 // The Original Code and all software distributed under the License are 5221 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5222 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5223 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5224 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5225 // Please see the License for the specific language governing rights and 5226 // limitations under the License. 5227 // 5228 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5229 5230 type dev_t = int32 /* _dev_t.h:31:31 */ // device number 5231 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5232 // 5233 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5234 // 5235 // This file contains Original Code and/or Modifications of Original Code 5236 // as defined in and that are subject to the Apple Public Source License 5237 // Version 2.0 (the 'License'). You may not use this file except in 5238 // compliance with the License. The rights granted to you under the License 5239 // may not be used to create, or enable the creation or redistribution of, 5240 // unlawful or unlicensed copies of an Apple operating system, or to 5241 // circumvent, violate, or enable the circumvention or violation of, any 5242 // terms of an Apple operating system software license agreement. 5243 // 5244 // Please obtain a copy of the License at 5245 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5246 // 5247 // The Original Code and all software distributed under the License are 5248 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5249 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5250 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5251 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5252 // Please see the License for the specific language governing rights and 5253 // limitations under the License. 5254 // 5255 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5256 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5257 // 5258 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5259 // 5260 // This file contains Original Code and/or Modifications of Original Code 5261 // as defined in and that are subject to the Apple Public Source License 5262 // Version 2.0 (the 'License'). You may not use this file except in 5263 // compliance with the License. The rights granted to you under the License 5264 // may not be used to create, or enable the creation or redistribution of, 5265 // unlawful or unlicensed copies of an Apple operating system, or to 5266 // circumvent, violate, or enable the circumvention or violation of, any 5267 // terms of an Apple operating system software license agreement. 5268 // 5269 // Please obtain a copy of the License at 5270 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5271 // 5272 // The Original Code and all software distributed under the License are 5273 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5274 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5275 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5276 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5277 // Please see the License for the specific language governing rights and 5278 // limitations under the License. 5279 // 5280 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5281 5282 type mode_t = uint16 /* _mode_t.h:31:33 */ 5283 5284 // getsubopt(3) external variable 5285 // valloc is now declared in _malloc.h 5286 5287 // Poison the following routines if -fshort-wchar is set 5288 5289 func main1(tls *libc.TLS, argc int32, argv uintptr) int32 { /* Autest.c:35:1: */ 5290 bp := tls.Alloc(64) 5291 defer tls.Free(64) 5292 5293 // var test_data Xauth at bp, 64 5294 5295 var name uintptr = ts /* "XAU-TEST-1" */ 5296 var data uintptr = ts + 11 /* "Do not begin the..." */ 5297 var file uintptr = uintptr(0) 5298 var state int32 = 0 5299 var output uintptr 5300 5301 for *(*uintptr)(unsafe.Pointer(libc.PreIncUintptr(&argv, 8))) != 0 { 5302 if !(libc.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv)), ts+60) != 0) { 5303 file = *(*uintptr)(unsafe.Pointer(libc.PreIncUintptr(&argv, 8))) 5304 } else if state == 0 { 5305 name = *(*uintptr)(unsafe.Pointer(argv)) 5306 state++ 5307 } else if state == 1 { 5308 data = *(*uintptr)(unsafe.Pointer(argv)) 5309 state++ 5310 } 5311 } 5312 (*Xauth)(unsafe.Pointer(bp /* &test_data */)).Ffamily = uint16(0) 5313 (*Xauth)(unsafe.Pointer(bp /* &test_data */)).Faddress_length = uint16(0) 5314 (*Xauth)(unsafe.Pointer(bp /* &test_data */)).Faddress = ts + 66 /* "" */ 5315 (*Xauth)(unsafe.Pointer(bp /* &test_data */)).Fnumber_length = uint16(0) 5316 (*Xauth)(unsafe.Pointer(bp /* &test_data */)).Fnumber = ts + 66 /* "" */ 5317 (*Xauth)(unsafe.Pointer(bp /* &test_data */)).Fname_length = uint16(libc.Xstrlen(tls, name)) 5318 (*Xauth)(unsafe.Pointer(bp /* &test_data */)).Fname = name 5319 (*Xauth)(unsafe.Pointer(bp /* &test_data */)).Fdata_length = uint16(libc.Xstrlen(tls, data)) 5320 (*Xauth)(unsafe.Pointer(bp /* &test_data */)).Fdata = data 5321 if !(file != 0) { 5322 output = libc.Xtmpfile(tls) 5323 } else { 5324 output = libc.Xfopen(tls, file, ts+67) 5325 } 5326 if output != 0 { 5327 state = xau.XXauWriteAuth(tls, output, bp) 5328 libc.Xfclose(tls, output) 5329 } 5330 if libc.AssignInt32(&state, 1) != 0 { 5331 return 0 5332 } 5333 return 1 5334 } 5335 5336 var ts1 = "XAU-TEST-1\x00Do not begin the test until instructed to do so.\x00-file\x00\x00w\x00" 5337 var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data