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