modernc.org/z@v1.7.4/internal/example_darwin_arm64.go (about)

     1  // Code generated by 'ccgo -lmodernc.org/z/lib -o internal/example_darwin_arm64.go -trace-translation-units /var/folders/4f/mc8mts295pqf7gmnfcwh6g8w0000gn/T/go-generate-3712341751/cdb.json example64', 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/z/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  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
    26  //
    27  // @APPLE_LICENSE_HEADER_START@
    28  //
    29  // This file contains Original Code and/or Modifications of Original Code
    30  // as defined in and that are subject to the Apple Public Source License
    31  // Version 2.0 (the 'License'). You may not use this file except in
    32  // compliance with the License. Please obtain a copy of the License at
    33  // http://www.opensource.apple.com/apsl/ and read it before using this
    34  // file.
    35  //
    36  // The Original Code and all software distributed under the License are
    37  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
    38  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
    39  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
    40  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
    41  // Please see the License for the specific language governing rights and
    42  // limitations under the License.
    43  //
    44  // @APPLE_LICENSE_HEADER_END@
    45  // -
    46  // Copyright (c) 1990, 1993
    47  //	The Regents of the University of California.  All rights reserved.
    48  //
    49  // Redistribution and use in source and binary forms, with or without
    50  // modification, are permitted provided that the following conditions
    51  // are met:
    52  // 1. Redistributions of source code must retain the above copyright
    53  //    notice, this list of conditions and the following disclaimer.
    54  // 2. Redistributions in binary form must reproduce the above copyright
    55  //    notice, this list of conditions and the following disclaimer in the
    56  //    documentation and/or other materials provided with the distribution.
    57  // 3. All advertising materials mentioning features or use of this software
    58  //    must display the following acknowledgement:
    59  //	This product includes software developed by the University of
    60  //	California, Berkeley and its contributors.
    61  // 4. Neither the name of the University nor the names of its contributors
    62  //    may be used to endorse or promote products derived from this software
    63  //    without specific prior written permission.
    64  //
    65  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    66  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    67  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    68  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    69  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    70  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    71  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    72  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    73  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    74  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    75  // SUCH DAMAGE.
    76  //
    77  //	@(#)string.h	8.1 (Berkeley) 6/2/93
    78  
    79  // Security checking functions.
    80  // Copyright (c) 2017 Apple Inc. All rights reserved.
    81  //
    82  // @APPLE_LICENSE_HEADER_START@
    83  //
    84  // This file contains Original Code and/or Modifications of Original Code
    85  // as defined in and that are subject to the Apple Public Source License
    86  // Version 2.0 (the 'License'). You may not use this file except in
    87  // compliance with the License. Please obtain a copy of the License at
    88  // http://www.opensource.apple.com/apsl/ and read it before using this
    89  // file.
    90  //
    91  // The Original Code and all software distributed under the License are
    92  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
    93  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
    94  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
    95  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
    96  // Please see the License for the specific language governing rights and
    97  // limitations under the License.
    98  //
    99  // @APPLE_LICENSE_HEADER_END@
   100  
   101  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   102  //
   103  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   104  //
   105  // This file contains Original Code and/or Modifications of Original Code
   106  // as defined in and that are subject to the Apple Public Source License
   107  // Version 2.0 (the 'License'). You may not use this file except in
   108  // compliance with the License. The rights granted to you under the License
   109  // may not be used to create, or enable the creation or redistribution of,
   110  // unlawful or unlicensed copies of an Apple operating system, or to
   111  // circumvent, violate, or enable the circumvention or violation of, any
   112  // terms of an Apple operating system software license agreement.
   113  //
   114  // Please obtain a copy of the License at
   115  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   116  //
   117  // The Original Code and all software distributed under the License are
   118  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   119  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   120  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   121  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   122  // Please see the License for the specific language governing rights and
   123  // limitations under the License.
   124  //
   125  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   126  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   127  // Copyright (c) 1991, 1993
   128  //	The Regents of the University of California.  All rights reserved.
   129  //
   130  // This code is derived from software contributed to Berkeley by
   131  // Berkeley Software Design, Inc.
   132  //
   133  // Redistribution and use in source and binary forms, with or without
   134  // modification, are permitted provided that the following conditions
   135  // are met:
   136  // 1. Redistributions of source code must retain the above copyright
   137  //    notice, this list of conditions and the following disclaimer.
   138  // 2. Redistributions in binary form must reproduce the above copyright
   139  //    notice, this list of conditions and the following disclaimer in the
   140  //    documentation and/or other materials provided with the distribution.
   141  // 3. All advertising materials mentioning features or use of this software
   142  //    must display the following acknowledgement:
   143  //	This product includes software developed by the University of
   144  //	California, Berkeley and its contributors.
   145  // 4. Neither the name of the University nor the names of its contributors
   146  //    may be used to endorse or promote products derived from this software
   147  //    without specific prior written permission.
   148  //
   149  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   150  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   151  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   152  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   153  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   154  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   155  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   156  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   157  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   158  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   159  // SUCH DAMAGE.
   160  //
   161  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   162  
   163  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
   164  //
   165  // @APPLE_LICENSE_HEADER_START@
   166  //
   167  // This file contains Original Code and/or Modifications of Original Code
   168  // as defined in and that are subject to the Apple Public Source License
   169  // Version 2.0 (the 'License'). You may not use this file except in
   170  // compliance with the License. Please obtain a copy of the License at
   171  // http://www.opensource.apple.com/apsl/ and read it before using this
   172  // file.
   173  //
   174  // The Original Code and all software distributed under the License are
   175  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   176  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   177  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   178  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   179  // Please see the License for the specific language governing rights and
   180  // limitations under the License.
   181  //
   182  // @APPLE_LICENSE_HEADER_END@
   183  
   184  // Copyright (c) 2007, 2008 Apple Inc. All rights reserved.
   185  //
   186  // @APPLE_LICENSE_HEADER_START@
   187  //
   188  // This file contains Original Code and/or Modifications of Original Code
   189  // as defined in and that are subject to the Apple Public Source License
   190  // Version 2.0 (the 'License'). You may not use this file except in
   191  // compliance with the License. Please obtain a copy of the License at
   192  // http://www.opensource.apple.com/apsl/ and read it before using this
   193  // file.
   194  //
   195  // The Original Code and all software distributed under the License are
   196  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   197  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   198  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   199  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   200  // Please see the License for the specific language governing rights and
   201  // limitations under the License.
   202  //
   203  // @APPLE_LICENSE_HEADER_END@
   204  
   205  // bcopy and bzero
   206  
   207  // Removed in Issue 7
   208  
   209  // void	bcopy(const void *src, void *dst, size_t len)
   210  
   211  // void	bzero(void *s, size_t n)
   212  
   213  // Security checking functions.
   214  // Copyright (c) 2007,2017 Apple Inc. All rights reserved.
   215  //
   216  // @APPLE_LICENSE_HEADER_START@
   217  //
   218  // This file contains Original Code and/or Modifications of Original Code
   219  // as defined in and that are subject to the Apple Public Source License
   220  // Version 2.0 (the 'License'). You may not use this file except in
   221  // compliance with the License. Please obtain a copy of the License at
   222  // http://www.opensource.apple.com/apsl/ and read it before using this
   223  // file.
   224  //
   225  // The Original Code and all software distributed under the License are
   226  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   227  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   228  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   229  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   230  // Please see the License for the specific language governing rights and
   231  // limitations under the License.
   232  //
   233  // @APPLE_LICENSE_HEADER_END@
   234  
   235  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   236  //
   237  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   238  //
   239  // This file contains Original Code and/or Modifications of Original Code
   240  // as defined in and that are subject to the Apple Public Source License
   241  // Version 2.0 (the 'License'). You may not use this file except in
   242  // compliance with the License. The rights granted to you under the License
   243  // may not be used to create, or enable the creation or redistribution of,
   244  // unlawful or unlicensed copies of an Apple operating system, or to
   245  // circumvent, violate, or enable the circumvention or violation of, any
   246  // terms of an Apple operating system software license agreement.
   247  //
   248  // Please obtain a copy of the License at
   249  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   250  //
   251  // The Original Code and all software distributed under the License are
   252  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   253  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   254  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   255  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   256  // Please see the License for the specific language governing rights and
   257  // limitations under the License.
   258  //
   259  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   260  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   261  // Copyright (c) 1991, 1993
   262  //	The Regents of the University of California.  All rights reserved.
   263  //
   264  // This code is derived from software contributed to Berkeley by
   265  // Berkeley Software Design, Inc.
   266  //
   267  // Redistribution and use in source and binary forms, with or without
   268  // modification, are permitted provided that the following conditions
   269  // are met:
   270  // 1. Redistributions of source code must retain the above copyright
   271  //    notice, this list of conditions and the following disclaimer.
   272  // 2. Redistributions in binary form must reproduce the above copyright
   273  //    notice, this list of conditions and the following disclaimer in the
   274  //    documentation and/or other materials provided with the distribution.
   275  // 3. All advertising materials mentioning features or use of this software
   276  //    must display the following acknowledgement:
   277  //	This product includes software developed by the University of
   278  //	California, Berkeley and its contributors.
   279  // 4. Neither the name of the University nor the names of its contributors
   280  //    may be used to endorse or promote products derived from this software
   281  //    without specific prior written permission.
   282  //
   283  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   284  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   285  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   286  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   287  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   288  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   289  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   290  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   291  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   292  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   293  // SUCH DAMAGE.
   294  //
   295  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   296  
   297  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
   298  //
   299  // @APPLE_LICENSE_HEADER_START@
   300  //
   301  // This file contains Original Code and/or Modifications of Original Code
   302  // as defined in and that are subject to the Apple Public Source License
   303  // Version 2.0 (the 'License'). You may not use this file except in
   304  // compliance with the License. Please obtain a copy of the License at
   305  // http://www.opensource.apple.com/apsl/ and read it before using this
   306  // file.
   307  //
   308  // The Original Code and all software distributed under the License are
   309  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   310  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   311  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   312  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   313  // Please see the License for the specific language governing rights and
   314  // limitations under the License.
   315  //
   316  // @APPLE_LICENSE_HEADER_END@
   317  
   318  // Copyright (c) 2007, 2008 Apple Inc. All rights reserved.
   319  //
   320  // @APPLE_LICENSE_HEADER_START@
   321  //
   322  // This file contains Original Code and/or Modifications of Original Code
   323  // as defined in and that are subject to the Apple Public Source License
   324  // Version 2.0 (the 'License'). You may not use this file except in
   325  // compliance with the License. Please obtain a copy of the License at
   326  // http://www.opensource.apple.com/apsl/ and read it before using this
   327  // file.
   328  //
   329  // The Original Code and all software distributed under the License are
   330  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   331  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   332  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   333  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   334  // Please see the License for the specific language governing rights and
   335  // limitations under the License.
   336  //
   337  // @APPLE_LICENSE_HEADER_END@
   338  
   339  // <rdar://problem/12622659>
   340  
   341  // memccpy, memcpy, mempcpy, memmove, memset, strcpy, strlcpy, stpcpy,
   342  //    strncpy, stpncpy, strcat, strlcat, and strncat
   343  
   344  // void *memcpy(void *dst, const void *src, size_t n)
   345  
   346  // void *memmove(void *dst, const void *src, size_t len)
   347  
   348  // void *memset(void *b, int c, size_t len)
   349  
   350  // char *strcpy(char *dst, const char *src)
   351  
   352  // char *stpcpy(char *dst, const char *src)
   353  
   354  // char *stpncpy(char *dst, const char *src, size_t n)
   355  
   356  // char *strncpy(char *dst, const char *src, size_t n)
   357  
   358  // char *strcat(char *s1, const char *s2)
   359  
   360  // char *strncat(char *s1, const char *s2, size_t n)
   361  
   362  // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved.
   363  //
   364  // @APPLE_LICENSE_HEADER_START@
   365  //
   366  // This file contains Original Code and/or Modifications of Original Code
   367  // as defined in and that are subject to the Apple Public Source License
   368  // Version 2.0 (the 'License'). You may not use this file except in
   369  // compliance with the License. Please obtain a copy of the License at
   370  // http://www.opensource.apple.com/apsl/ and read it before using this
   371  // file.
   372  //
   373  // The Original Code and all software distributed under the License are
   374  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   375  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   376  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   377  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   378  // Please see the License for the specific language governing rights and
   379  // limitations under the License.
   380  //
   381  // @APPLE_LICENSE_HEADER_END@
   382  // -
   383  // Copyright (c) 1990, 1993
   384  //	The Regents of the University of California.  All rights reserved.
   385  //
   386  // Redistribution and use in source and binary forms, with or without
   387  // modification, are permitted provided that the following conditions
   388  // are met:
   389  // 1. Redistributions of source code must retain the above copyright
   390  //    notice, this list of conditions and the following disclaimer.
   391  // 2. Redistributions in binary form must reproduce the above copyright
   392  //    notice, this list of conditions and the following disclaimer in the
   393  //    documentation and/or other materials provided with the distribution.
   394  // 3. All advertising materials mentioning features or use of this software
   395  //    must display the following acknowledgement:
   396  //	This product includes software developed by the University of
   397  //	California, Berkeley and its contributors.
   398  // 4. Neither the name of the University nor the names of its contributors
   399  //    may be used to endorse or promote products derived from this software
   400  //    without specific prior written permission.
   401  //
   402  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   403  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   404  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   405  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   406  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   407  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   408  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   409  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   410  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   411  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   412  // SUCH DAMAGE.
   413  //
   414  //	@(#)stdlib.h	8.5 (Berkeley) 5/19/95
   415  
   416  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
   417  //
   418  // @APPLE_LICENSE_HEADER_START@
   419  //
   420  // This file contains Original Code and/or Modifications of Original Code
   421  // as defined in and that are subject to the Apple Public Source License
   422  // Version 2.0 (the 'License'). You may not use this file except in
   423  // compliance with the License. Please obtain a copy of the License at
   424  // http://www.opensource.apple.com/apsl/ and read it before using this
   425  // file.
   426  //
   427  // The Original Code and all software distributed under the License are
   428  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   429  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   430  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   431  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   432  // Please see the License for the specific language governing rights and
   433  // limitations under the License.
   434  //
   435  // @APPLE_LICENSE_HEADER_END@
   436  
   437  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   438  //
   439  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   440  //
   441  // This file contains Original Code and/or Modifications of Original Code
   442  // as defined in and that are subject to the Apple Public Source License
   443  // Version 2.0 (the 'License'). You may not use this file except in
   444  // compliance with the License. The rights granted to you under the License
   445  // may not be used to create, or enable the creation or redistribution of,
   446  // unlawful or unlicensed copies of an Apple operating system, or to
   447  // circumvent, violate, or enable the circumvention or violation of, any
   448  // terms of an Apple operating system software license agreement.
   449  //
   450  // Please obtain a copy of the License at
   451  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   452  //
   453  // The Original Code and all software distributed under the License are
   454  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   455  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   456  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   457  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   458  // Please see the License for the specific language governing rights and
   459  // limitations under the License.
   460  //
   461  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   462  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   463  // Copyright (c) 1991, 1993
   464  //	The Regents of the University of California.  All rights reserved.
   465  //
   466  // This code is derived from software contributed to Berkeley by
   467  // Berkeley Software Design, Inc.
   468  //
   469  // Redistribution and use in source and binary forms, with or without
   470  // modification, are permitted provided that the following conditions
   471  // are met:
   472  // 1. Redistributions of source code must retain the above copyright
   473  //    notice, this list of conditions and the following disclaimer.
   474  // 2. Redistributions in binary form must reproduce the above copyright
   475  //    notice, this list of conditions and the following disclaimer in the
   476  //    documentation and/or other materials provided with the distribution.
   477  // 3. All advertising materials mentioning features or use of this software
   478  //    must display the following acknowledgement:
   479  //	This product includes software developed by the University of
   480  //	California, Berkeley and its contributors.
   481  // 4. Neither the name of the University nor the names of its contributors
   482  //    may be used to endorse or promote products derived from this software
   483  //    without specific prior written permission.
   484  //
   485  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   486  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   487  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   488  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   489  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   490  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   491  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   492  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   493  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   494  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   495  // SUCH DAMAGE.
   496  //
   497  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   498  
   499  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
   500  //
   501  // @APPLE_LICENSE_HEADER_START@
   502  //
   503  // This file contains Original Code and/or Modifications of Original Code
   504  // as defined in and that are subject to the Apple Public Source License
   505  // Version 2.0 (the 'License'). You may not use this file except in
   506  // compliance with the License. Please obtain a copy of the License at
   507  // http://www.opensource.apple.com/apsl/ and read it before using this
   508  // file.
   509  //
   510  // The Original Code and all software distributed under the License are
   511  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   512  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   513  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   514  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   515  // Please see the License for the specific language governing rights and
   516  // limitations under the License.
   517  //
   518  // @APPLE_LICENSE_HEADER_END@
   519  
   520  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
   521  //
   522  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   523  //
   524  // This file contains Original Code and/or Modifications of Original Code
   525  // as defined in and that are subject to the Apple Public Source License
   526  // Version 2.0 (the 'License'). You may not use this file except in
   527  // compliance with the License. The rights granted to you under the License
   528  // may not be used to create, or enable the creation or redistribution of,
   529  // unlawful or unlicensed copies of an Apple operating system, or to
   530  // circumvent, violate, or enable the circumvention or violation of, any
   531  // terms of an Apple operating system software license agreement.
   532  //
   533  // Please obtain a copy of the License at
   534  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   535  //
   536  // The Original Code and all software distributed under the License are
   537  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   538  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   539  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   540  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   541  // Please see the License for the specific language governing rights and
   542  // limitations under the License.
   543  //
   544  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   545  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
   546  // Copyright (c) 1982, 1986, 1989, 1993, 1994
   547  //	The Regents of the University of California.  All rights reserved.
   548  //
   549  // Redistribution and use in source and binary forms, with or without
   550  // modification, are permitted provided that the following conditions
   551  // are met:
   552  // 1. Redistributions of source code must retain the above copyright
   553  //    notice, this list of conditions and the following disclaimer.
   554  // 2. Redistributions in binary form must reproduce the above copyright
   555  //    notice, this list of conditions and the following disclaimer in the
   556  //    documentation and/or other materials provided with the distribution.
   557  // 3. All advertising materials mentioning features or use of this software
   558  //    must display the following acknowledgement:
   559  //	This product includes software developed by the University of
   560  //	California, Berkeley and its contributors.
   561  // 4. Neither the name of the University nor the names of its contributors
   562  //    may be used to endorse or promote products derived from this software
   563  //    without specific prior written permission.
   564  //
   565  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   566  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   567  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   568  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   569  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   570  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   571  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   572  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   573  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   574  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   575  // SUCH DAMAGE.
   576  //
   577  //	@(#)wait.h	8.2 (Berkeley) 7/10/94
   578  
   579  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   580  //
   581  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   582  //
   583  // This file contains Original Code and/or Modifications of Original Code
   584  // as defined in and that are subject to the Apple Public Source License
   585  // Version 2.0 (the 'License'). You may not use this file except in
   586  // compliance with the License. The rights granted to you under the License
   587  // may not be used to create, or enable the creation or redistribution of,
   588  // unlawful or unlicensed copies of an Apple operating system, or to
   589  // circumvent, violate, or enable the circumvention or violation of, any
   590  // terms of an Apple operating system software license agreement.
   591  //
   592  // Please obtain a copy of the License at
   593  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   594  //
   595  // The Original Code and all software distributed under the License are
   596  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   597  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   598  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   599  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   600  // Please see the License for the specific language governing rights and
   601  // limitations under the License.
   602  //
   603  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   604  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   605  // Copyright (c) 1991, 1993
   606  //	The Regents of the University of California.  All rights reserved.
   607  //
   608  // This code is derived from software contributed to Berkeley by
   609  // Berkeley Software Design, Inc.
   610  //
   611  // Redistribution and use in source and binary forms, with or without
   612  // modification, are permitted provided that the following conditions
   613  // are met:
   614  // 1. Redistributions of source code must retain the above copyright
   615  //    notice, this list of conditions and the following disclaimer.
   616  // 2. Redistributions in binary form must reproduce the above copyright
   617  //    notice, this list of conditions and the following disclaimer in the
   618  //    documentation and/or other materials provided with the distribution.
   619  // 3. All advertising materials mentioning features or use of this software
   620  //    must display the following acknowledgement:
   621  //	This product includes software developed by the University of
   622  //	California, Berkeley and its contributors.
   623  // 4. Neither the name of the University nor the names of its contributors
   624  //    may be used to endorse or promote products derived from this software
   625  //    without specific prior written permission.
   626  //
   627  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   628  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   629  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   630  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   631  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   632  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   633  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   634  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   635  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   636  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   637  // SUCH DAMAGE.
   638  //
   639  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   640  
   641  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   642  //
   643  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   644  //
   645  // This file contains Original Code and/or Modifications of Original Code
   646  // as defined in and that are subject to the Apple Public Source License
   647  // Version 2.0 (the 'License'). You may not use this file except in
   648  // compliance with the License. The rights granted to you under the License
   649  // may not be used to create, or enable the creation or redistribution of,
   650  // unlawful or unlicensed copies of an Apple operating system, or to
   651  // circumvent, violate, or enable the circumvention or violation of, any
   652  // terms of an Apple operating system software license agreement.
   653  //
   654  // Please obtain a copy of the License at
   655  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   656  //
   657  // The Original Code and all software distributed under the License are
   658  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   659  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   660  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   661  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   662  // Please see the License for the specific language governing rights and
   663  // limitations under the License.
   664  //
   665  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   666  
   667  // This file holds definitions relevent to the wait4 system call
   668  // and the alternate interfaces that use it (wait, wait3, waitpid).
   669  
   670  // [XSI] The type idtype_t shall be defined as an enumeration type whose
   671  // possible values shall include at least P_ALL, P_PID, and P_PGID.
   672  const ( /* wait.h:79:1: */
   673  	P_ALL  = 0
   674  	P_PID  = 1
   675  	P_PGID = 2
   676  )
   677  
   678  type ptrdiff_t = int64 /* <builtin>:3:26 */
   679  
   680  type size_t = uint64 /* <builtin>:9:23 */
   681  
   682  type wchar_t = int32 /* <builtin>:15:24 */
   683  
   684  // A null pointer constant.
   685  
   686  // Offset of member MEMBER in a struct of type TYPE.
   687  
   688  // Type whose alignment is supported in every context and is at least
   689  //    as great as that of any standard type not using alignment
   690  //    specifiers.
   691  type max_align_t = struct {
   692  	__max_align_ll int64
   693  	__max_align_ld float64
   694  } /* stddef.h:426:3 */
   695  
   696  type z_size_t = size_t /* zconf.h:248:21 */
   697  
   698  // Maximum value for memLevel in deflateInit2
   699  
   700  // Maximum value for windowBits in deflateInit2 and inflateInit2.
   701  // WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
   702  // created by gzip. (Files created by minigzip can still be extracted by
   703  // gzip.)
   704  
   705  // The memory requirements for deflate are (in bytes):
   706  //             (1 << (windowBits+2)) +  (1 << (memLevel+9))
   707  //  that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
   708  //  plus a few kilobytes for small objects. For example, if you want to reduce
   709  //  the default memory requirements from 256K to 128K, compile with
   710  //      make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
   711  //  Of course this will generally degrade compression (there's no free lunch).
   712  //
   713  //    The memory requirements for inflate are (in bytes) 1 << windowBits
   714  //  that is, 32K for windowBits=15 (default value) plus about 7 kilobytes
   715  //  for small objects.
   716  
   717  // Type declarations
   718  
   719  // The following definitions for FAR are needed only for MSDOS mixed
   720  // model programming (small or medium model with some far allocations).
   721  // This was tested only with MSC; for other MSDOS compilers you may have
   722  // to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
   723  // just define FAR to be empty.
   724  
   725  type Byte = uint8   /* zconf.h:391:24 */ // 8 bits
   726  type uInt = uint32  /* zconf.h:393:24 */ // 16 bits or more
   727  type uLong = uint64 /* zconf.h:394:24 */ // 32 bits or more
   728  
   729  type Bytef = Byte   /* zconf.h:400:22 */
   730  type charf = int8   /* zconf.h:402:19 */
   731  type intf = int32   /* zconf.h:403:19 */
   732  type uIntf = uInt   /* zconf.h:404:19 */
   733  type uLongf = uLong /* zconf.h:405:19 */
   734  
   735  type voidpc = uintptr /* zconf.h:408:23 */
   736  type voidpf = uintptr /* zconf.h:409:23 */
   737  type voidp = uintptr  /* zconf.h:410:23 */
   738  
   739  // Copyright (C) 1992-2021 Free Software Foundation, Inc.
   740  //
   741  // This file is part of GCC.
   742  //
   743  // GCC is free software; you can redistribute it and/or modify it under
   744  // the terms of the GNU General Public License as published by the Free
   745  // Software Foundation; either version 3, or (at your option) any later
   746  // version.
   747  //
   748  // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
   749  // WARRANTY; without even the implied warranty of MERCHANTABILITY or
   750  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
   751  // for more details.
   752  //
   753  // Under Section 7 of GPL version 3, you are granted additional
   754  // permissions described in the GCC Runtime Library Exception, version
   755  // 3.1, as published by the Free Software Foundation.
   756  //
   757  // You should have received a copy of the GNU General Public License and
   758  // a copy of the GCC Runtime Library Exception along with this program;
   759  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   760  // <http://www.gnu.org/licenses/>.
   761  
   762  // This administrivia gets added to the beginning of limits.h
   763  //    if the system has its own version of limits.h.
   764  
   765  // We use _GCC_LIMITS_H_ because we want this not to match
   766  //    any macros that the system's limits.h uses for its own purposes.
   767  
   768  // Use "..." so that we find syslimits.h only in this same directory.
   769  // syslimits.h stands for the system's own limits.h file.
   770  //    If we can use it ok unmodified, then we install this text.
   771  //    If fixincludes fixes it, then the fixed version is installed
   772  //    instead of this text.
   773  
   774  // Copyright (c) 2000, 2004-2007, 2009 Apple Inc. All rights reserved.
   775  //
   776  // @APPLE_LICENSE_HEADER_START@
   777  //
   778  // This file contains Original Code and/or Modifications of Original Code
   779  // as defined in and that are subject to the Apple Public Source License
   780  // Version 2.0 (the 'License'). You may not use this file except in
   781  // compliance with the License. Please obtain a copy of the License at
   782  // http://www.opensource.apple.com/apsl/ and read it before using this
   783  // file.
   784  //
   785  // The Original Code and all software distributed under the License are
   786  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   787  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   788  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   789  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   790  // Please see the License for the specific language governing rights and
   791  // limitations under the License.
   792  //
   793  // @APPLE_LICENSE_HEADER_END@
   794  //	$NetBSD: limits.h,v 1.8 1996/10/21 05:10:50 jtc Exp $
   795  
   796  // Copyright (c) 1988, 1993
   797  //	The Regents of the University of California.  All rights reserved.
   798  //
   799  // Redistribution and use in source and binary forms, with or without
   800  // modification, are permitted provided that the following conditions
   801  // are met:
   802  // 1. Redistributions of source code must retain the above copyright
   803  //    notice, this list of conditions and the following disclaimer.
   804  // 2. Redistributions in binary form must reproduce the above copyright
   805  //    notice, this list of conditions and the following disclaimer in the
   806  //    documentation and/or other materials provided with the distribution.
   807  // 3. All advertising materials mentioning features or use of this software
   808  //    must display the following acknowledgement:
   809  //	This product includes software developed by the University of
   810  //	California, Berkeley and its contributors.
   811  // 4. Neither the name of the University nor the names of its contributors
   812  //    may be used to endorse or promote products derived from this software
   813  //    without specific prior written permission.
   814  //
   815  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   816  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   817  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   818  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   819  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   820  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   821  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   822  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   823  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   824  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   825  // SUCH DAMAGE.
   826  //
   827  //	@(#)limits.h	8.2 (Berkeley) 1/4/94
   828  
   829  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   830  //
   831  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   832  //
   833  // This file contains Original Code and/or Modifications of Original Code
   834  // as defined in and that are subject to the Apple Public Source License
   835  // Version 2.0 (the 'License'). You may not use this file except in
   836  // compliance with the License. The rights granted to you under the License
   837  // may not be used to create, or enable the creation or redistribution of,
   838  // unlawful or unlicensed copies of an Apple operating system, or to
   839  // circumvent, violate, or enable the circumvention or violation of, any
   840  // terms of an Apple operating system software license agreement.
   841  //
   842  // Please obtain a copy of the License at
   843  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   844  //
   845  // The Original Code and all software distributed under the License are
   846  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   847  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   848  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   849  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   850  // Please see the License for the specific language governing rights and
   851  // limitations under the License.
   852  //
   853  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   854  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   855  // Copyright (c) 1991, 1993
   856  //	The Regents of the University of California.  All rights reserved.
   857  //
   858  // This code is derived from software contributed to Berkeley by
   859  // Berkeley Software Design, Inc.
   860  //
   861  // Redistribution and use in source and binary forms, with or without
   862  // modification, are permitted provided that the following conditions
   863  // are met:
   864  // 1. Redistributions of source code must retain the above copyright
   865  //    notice, this list of conditions and the following disclaimer.
   866  // 2. Redistributions in binary form must reproduce the above copyright
   867  //    notice, this list of conditions and the following disclaimer in the
   868  //    documentation and/or other materials provided with the distribution.
   869  // 3. All advertising materials mentioning features or use of this software
   870  //    must display the following acknowledgement:
   871  //	This product includes software developed by the University of
   872  //	California, Berkeley and its contributors.
   873  // 4. Neither the name of the University nor the names of its contributors
   874  //    may be used to endorse or promote products derived from this software
   875  //    without specific prior written permission.
   876  //
   877  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   878  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   879  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   880  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   881  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   882  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   883  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   884  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   885  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   886  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   887  // SUCH DAMAGE.
   888  //
   889  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   890  
   891  // This SDK is designed to work with clang and specific versions of
   892  // gcc >= 4.0 with Apple's patch sets
   893  
   894  // Compatibility with compilers and environments that don't support compiler
   895  // feature checking function-like macros.
   896  
   897  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
   898  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
   899  // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
   900  // in between its arguments.  __CONCAT can also concatenate double-quoted
   901  // strings produced by the __STRING macro, but this only works with ANSI C.
   902  
   903  // __pure2 can be used for functions that are only a function of their scalar
   904  // arguments (meaning they can't dereference pointers).
   905  //
   906  // __stateful_pure can be used for functions that have no side effects,
   907  // but depend on the state of the memory.
   908  
   909  // __unused denotes variables and functions that may not be used, preventing
   910  // the compiler from warning about it if not used.
   911  
   912  // __used forces variables and functions to be included even if it appears
   913  // to the compiler that they are not used (and would thust be discarded).
   914  
   915  // __cold marks code used for debugging or that is rarely taken
   916  // and tells the compiler to optimize for size and outline code.
   917  
   918  // __exported denotes symbols that should be exported even when symbols
   919  // are hidden by default.
   920  // __exported_push/_exported_pop are pragmas used to delimit a range of
   921  //  symbols that should be exported even when symbols are hidden by default.
   922  
   923  // __deprecated causes the compiler to produce a warning when encountering
   924  // code using the deprecated functionality.
   925  // __deprecated_msg() does the same, and compilers that support it will print
   926  // a message along with the deprecation warning.
   927  // This may require turning on such warning with the -Wdeprecated flag.
   928  // __deprecated_enum_msg() should be used on enums, and compilers that support
   929  // it will print the deprecation warning.
   930  // __kpi_deprecated() specifically indicates deprecation of kernel programming
   931  // interfaces in Kernel.framework used by KEXTs.
   932  
   933  // __unavailable causes the compiler to error out when encountering
   934  // code using the tagged function
   935  
   936  // Delete pseudo-keywords wherever they are not available or needed.
   937  
   938  // We use `__restrict' as a way to define the `restrict' type qualifier
   939  // without disturbing older software that is unaware of C99 keywords.
   940  
   941  // Compatibility with compilers and environments that don't support the
   942  // nullability feature.
   943  
   944  // __disable_tail_calls causes the compiler to not perform tail call
   945  // optimization inside the marked function.
   946  
   947  // __not_tail_called causes the compiler to prevent tail call optimization
   948  // on statically bound calls to the function.  It has no effect on indirect
   949  // calls.  Virtual functions, objective-c methods, and functions marked as
   950  // "always_inline" cannot be marked as __not_tail_called.
   951  
   952  // __result_use_check warns callers of a function that not using the function
   953  // return value is a bug, i.e. dismissing malloc() return value results in a
   954  // memory leak.
   955  
   956  // __swift_unavailable causes the compiler to mark a symbol as specifically
   957  // unavailable in Swift, regardless of any other availability in C.
   958  
   959  // __abortlike is the attribute to put on functions like abort() that are
   960  // typically used to mark assertions. These optimize the codegen
   961  // for outlining while still maintaining debugability.
   962  
   963  // Declaring inline functions within headers is error-prone due to differences
   964  // across various versions of the C language and extensions.  __header_inline
   965  // can be used to declare inline functions within system headers.  In cases
   966  // where you want to force inlining instead of letting the compiler make
   967  // the decision, you can use __header_always_inline.
   968  //
   969  // Be aware that using inline for functions which compilers may also provide
   970  // builtins can behave differently under various compilers.  If you intend to
   971  // provide an inline version of such a function, you may want to use a macro
   972  // instead.
   973  //
   974  // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
   975  // support c99 inline in some cases:
   976  // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
   977  
   978  // Compiler-dependent macros that bracket portions of code where the
   979  // "-Wunreachable-code" warning should be ignored. Please use sparingly.
   980  
   981  // Compiler-dependent macros to declare that functions take printf-like
   982  // or scanf-like arguments.  They are null except for versions of gcc
   983  // that are known to support the features properly.  Functions declared
   984  // with these attributes will cause compilation warnings if there is a
   985  // mismatch between the format string and subsequent function parameter
   986  // types.
   987  
   988  // Source compatibility only, ID string not emitted in object file
   989  
   990  // __alloc_size can be used to label function arguments that represent the
   991  // size of memory that the function allocates and returns. The one-argument
   992  // form labels a single argument that gives the allocation size (where the
   993  // arguments are numbered from 1):
   994  //
   995  // void	*malloc(size_t __size) __alloc_size(1);
   996  //
   997  // The two-argument form handles the case where the size is calculated as the
   998  // product of two arguments:
   999  //
  1000  // void	*calloc(size_t __count, size_t __size) __alloc_size(1,2);
  1001  
  1002  // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  1003  //
  1004  // DEFAULT	By default newly complied code will get POSIX APIs plus
  1005  //		Apple API extensions in scope.
  1006  //
  1007  //		Most users will use this compilation environment to avoid
  1008  //		behavioral differences between 32 and 64 bit code.
  1009  //
  1010  // LEGACY	Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  1011  //		API extensions in scope.
  1012  //
  1013  //		This is generally equivalent to the Tiger release compilation
  1014  //		environment, except that it cannot be applied to 64 bit code;
  1015  //		its use is discouraged.
  1016  //
  1017  //		We expect this environment to be deprecated in the future.
  1018  //
  1019  // STRICT	Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  1020  //		available APIs to exactly the set of APIs defined by the
  1021  //		corresponding standard, based on the value defined.
  1022  //
  1023  //		A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  1024  //		A correct, portable definition for _XOPEN_SOURCE is 600L.
  1025  //
  1026  //		Apple API extensions are not visible in this environment,
  1027  //		which can cause Apple specific code to fail to compile,
  1028  //		or behave incorrectly if prototypes are not in scope or
  1029  //		warnings about missing prototypes are not enabled or ignored.
  1030  //
  1031  // In any compilation environment, for correct symbol resolution to occur,
  1032  // function prototypes must be in scope.  It is recommended that all Apple
  1033  // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  1034  // compiler flags to their projects to be warned when a function is being
  1035  // used without a prototype in scope.
  1036  
  1037  // These settings are particular to each product.
  1038  // Platform: MacOSX
  1039  
  1040  // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  1041  // legacy code to use the old symbol, thus maintaining binary compatibility
  1042  // while new code can use a standards compliant version of the same function.
  1043  //
  1044  // __DARWIN_ALIAS is used by itself if the function signature has not
  1045  // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  1046  // if the signature has changed.  Because the __LP64__ environment
  1047  // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  1048  // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  1049  //
  1050  // As a special case, when XCode is used to target a specific version of the
  1051  // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  1052  // will be defined by the compiler, with the digits representing major version
  1053  // time 100 + minor version times 10 (e.g. 10.5 := 1050).  If we are targeting
  1054  // pre-10.5, and it is the default compilation environment, revert the
  1055  // compilation environment to pre-__DARWIN_UNIX03.
  1056  
  1057  // symbol suffixes used for symbol versioning
  1058  
  1059  // symbol versioning macros
  1060  
  1061  // symbol release macros
  1062  // Copyright (c) 2010 Apple Inc. All rights reserved.
  1063  //
  1064  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1065  //
  1066  // This file contains Original Code and/or Modifications of Original Code
  1067  // as defined in and that are subject to the Apple Public Source License
  1068  // Version 2.0 (the 'License'). You may not use this file except in
  1069  // compliance with the License. The rights granted to you under the License
  1070  // may not be used to create, or enable the creation or redistribution of,
  1071  // unlawful or unlicensed copies of an Apple operating system, or to
  1072  // circumvent, violate, or enable the circumvention or violation of, any
  1073  // terms of an Apple operating system software license agreement.
  1074  //
  1075  // Please obtain a copy of the License at
  1076  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1077  //
  1078  // The Original Code and all software distributed under the License are
  1079  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1080  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1081  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1082  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1083  // Please see the License for the specific language governing rights and
  1084  // limitations under the License.
  1085  //
  1086  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1087  
  1088  // POSIX.1 requires that the macros we test be defined before any standard
  1089  // header file is included.  This permits us to convert values for feature
  1090  // testing, as necessary, using only _POSIX_C_SOURCE.
  1091  //
  1092  // Here's a quick run-down of the versions:
  1093  //  defined(_POSIX_SOURCE)		1003.1-1988
  1094  //  _POSIX_C_SOURCE == 1L		1003.1-1990
  1095  //  _POSIX_C_SOURCE == 2L		1003.2-1992 C Language Binding Option
  1096  //  _POSIX_C_SOURCE == 199309L		1003.1b-1993
  1097  //  _POSIX_C_SOURCE == 199506L		1003.1c-1995, 1003.1i-1995,
  1098  //					and the omnibus ISO/IEC 9945-1: 1996
  1099  //  _POSIX_C_SOURCE == 200112L		1003.1-2001
  1100  //  _POSIX_C_SOURCE == 200809L		1003.1-2008
  1101  //
  1102  // In addition, the X/Open Portability Guide, which is now the Single UNIX
  1103  // Specification, defines a feature-test macro which indicates the version of
  1104  // that specification, and which subsumes _POSIX_C_SOURCE.
  1105  
  1106  // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  1107  
  1108  // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  1109  
  1110  // Deal with various X/Open Portability Guides and Single UNIX Spec.
  1111  
  1112  // Deal with all versions of POSIX.  The ordering relative to the tests above is
  1113  // important.
  1114  
  1115  // POSIX C deprecation macros
  1116  // Copyright (c) 2010 Apple Inc. All rights reserved.
  1117  //
  1118  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1119  //
  1120  // This file contains Original Code and/or Modifications of Original Code
  1121  // as defined in and that are subject to the Apple Public Source License
  1122  // Version 2.0 (the 'License'). You may not use this file except in
  1123  // compliance with the License. The rights granted to you under the License
  1124  // may not be used to create, or enable the creation or redistribution of,
  1125  // unlawful or unlicensed copies of an Apple operating system, or to
  1126  // circumvent, violate, or enable the circumvention or violation of, any
  1127  // terms of an Apple operating system software license agreement.
  1128  //
  1129  // Please obtain a copy of the License at
  1130  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1131  //
  1132  // The Original Code and all software distributed under the License are
  1133  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1134  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1135  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1136  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1137  // Please see the License for the specific language governing rights and
  1138  // limitations under the License.
  1139  //
  1140  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1141  
  1142  // Set a single macro which will always be defined and can be used to determine
  1143  // the appropriate namespace.  For POSIX, these values will correspond to
  1144  // _POSIX_C_SOURCE value.  Currently there are two additional levels corresponding
  1145  // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  1146  
  1147  // If the developer has neither requested a strict language mode nor a version
  1148  // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  1149  // of __DARWIN_C_FULL.
  1150  
  1151  // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  1152  // c99 still want long longs.  While not perfect, we allow long longs for
  1153  // g++.
  1154  
  1155  // ****************************************
  1156  //
  1157  //  Public darwin-specific feature macros
  1158  //
  1159  
  1160  // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  1161  // structures modified for 64-bit inodes (like struct stat) will be used.
  1162  
  1163  // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  1164  // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  1165  // (and non-zero).  There is no struct stat64 either, as the regular
  1166  // struct stat will already be the 64-bit version.
  1167  
  1168  // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  1169  // in 10.5 exists; no pre-10.5 variants are available.
  1170  
  1171  // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  1172  // are available (the legacy BSD APIs are not available)
  1173  
  1174  // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  1175  // and specifies the conformance level (3 is SUSv3)
  1176  
  1177  // This macro casts away the qualifier from the variable
  1178  //
  1179  // Note: use at your own risk, removing qualifiers can result in
  1180  // catastrophic run-time failures.
  1181  
  1182  // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  1183  // used from other compilation units, but not other libraries or executables.
  1184  
  1185  // Architecture validation for current SDK
  1186  
  1187  // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  1188  //
  1189  // This provides more advanced type checking on compilers supporting
  1190  // the proper extensions, even in C.
  1191  
  1192  // This is the `system' limits.h, independent of any particular
  1193  //  compiler.  GCC provides its own limits.h which can be found in
  1194  //  /usr/lib/gcc, although it is not very informative.
  1195  //  This file is public domain.
  1196  
  1197  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1198  // Copyright (c) 1988, 1993
  1199  //	The Regents of the University of California.  All rights reserved.
  1200  //
  1201  // Redistribution and use in source and binary forms, with or without
  1202  // modification, are permitted provided that the following conditions
  1203  // are met:
  1204  // 1. Redistributions of source code must retain the above copyright
  1205  //    notice, this list of conditions and the following disclaimer.
  1206  // 2. Redistributions in binary form must reproduce the above copyright
  1207  //    notice, this list of conditions and the following disclaimer in the
  1208  //    documentation and/or other materials provided with the distribution.
  1209  // 3. All advertising materials mentioning features or use of this software
  1210  //    must display the following acknowledgement:
  1211  //	This product includes software developed by the University of
  1212  //	California, Berkeley and its contributors.
  1213  // 4. Neither the name of the University nor the names of its contributors
  1214  //    may be used to endorse or promote products derived from this software
  1215  //    without specific prior written permission.
  1216  //
  1217  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1218  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1219  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1220  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1221  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1222  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1223  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1224  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1225  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1226  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1227  // SUCH DAMAGE.
  1228  //
  1229  //	@(#)limits.h	8.3 (Berkeley) 1/4/94
  1230  
  1231  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1232  //
  1233  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1234  //
  1235  // This file contains Original Code and/or Modifications of Original Code
  1236  // as defined in and that are subject to the Apple Public Source License
  1237  // Version 2.0 (the 'License'). You may not use this file except in
  1238  // compliance with the License. The rights granted to you under the License
  1239  // may not be used to create, or enable the creation or redistribution of,
  1240  // unlawful or unlicensed copies of an Apple operating system, or to
  1241  // circumvent, violate, or enable the circumvention or violation of, any
  1242  // terms of an Apple operating system software license agreement.
  1243  //
  1244  // Please obtain a copy of the License at
  1245  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1246  //
  1247  // The Original Code and all software distributed under the License are
  1248  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1249  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1250  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1251  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1252  // Please see the License for the specific language governing rights and
  1253  // limitations under the License.
  1254  //
  1255  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1256  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1257  // Copyright (c) 1991, 1993
  1258  //	The Regents of the University of California.  All rights reserved.
  1259  //
  1260  // This code is derived from software contributed to Berkeley by
  1261  // Berkeley Software Design, Inc.
  1262  //
  1263  // Redistribution and use in source and binary forms, with or without
  1264  // modification, are permitted provided that the following conditions
  1265  // are met:
  1266  // 1. Redistributions of source code must retain the above copyright
  1267  //    notice, this list of conditions and the following disclaimer.
  1268  // 2. Redistributions in binary form must reproduce the above copyright
  1269  //    notice, this list of conditions and the following disclaimer in the
  1270  //    documentation and/or other materials provided with the distribution.
  1271  // 3. All advertising materials mentioning features or use of this software
  1272  //    must display the following acknowledgement:
  1273  //	This product includes software developed by the University of
  1274  //	California, Berkeley and its contributors.
  1275  // 4. Neither the name of the University nor the names of its contributors
  1276  //    may be used to endorse or promote products derived from this software
  1277  //    without specific prior written permission.
  1278  //
  1279  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1280  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1281  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1282  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1283  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1284  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1285  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1286  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1287  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1288  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1289  // SUCH DAMAGE.
  1290  //
  1291  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1292  
  1293  // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
  1294  
  1295  // According to ANSI (section 2.2.4.2), the values below must be usable by
  1296  // #if preprocessing directives.  Additionally, the expression must have the
  1297  // same type as would an expression that is an object of the corresponding
  1298  // type converted according to the integral promotions.  The subtraction for
  1299  // INT_MIN and LONG_MIN is so the value is not unsigned; 2147483648 is an
  1300  // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
  1301  // These numbers work for pcc as well.  The UINT_MAX and ULONG_MAX values
  1302  // are written as hex so that GCC will be quiet about large integer constants.
  1303  
  1304  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  1305  //
  1306  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1307  //
  1308  // This file contains Original Code and/or Modifications of Original Code
  1309  // as defined in and that are subject to the Apple Public Source License
  1310  // Version 2.0 (the 'License'). You may not use this file except in
  1311  // compliance with the License. The rights granted to you under the License
  1312  // may not be used to create, or enable the creation or redistribution of,
  1313  // unlawful or unlicensed copies of an Apple operating system, or to
  1314  // circumvent, violate, or enable the circumvention or violation of, any
  1315  // terms of an Apple operating system software license agreement.
  1316  //
  1317  // Please obtain a copy of the License at
  1318  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1319  //
  1320  // The Original Code and all software distributed under the License are
  1321  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1322  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1323  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1324  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1325  // Please see the License for the specific language governing rights and
  1326  // limitations under the License.
  1327  //
  1328  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1329  //	$NetBSD: syslimits.h,v 1.15 1997/06/25 00:48:09 lukem Exp $
  1330  
  1331  // Copyright (c) 1988, 1993
  1332  //	The Regents of the University of California.  All rights reserved.
  1333  //
  1334  // Redistribution and use in source and binary forms, with or without
  1335  // modification, are permitted provided that the following conditions
  1336  // are met:
  1337  // 1. Redistributions of source code must retain the above copyright
  1338  //    notice, this list of conditions and the following disclaimer.
  1339  // 2. Redistributions in binary form must reproduce the above copyright
  1340  //    notice, this list of conditions and the following disclaimer in the
  1341  //    documentation and/or other materials provided with the distribution.
  1342  // 3. All advertising materials mentioning features or use of this software
  1343  //    must display the following acknowledgement:
  1344  //	This product includes software developed by the University of
  1345  //	California, Berkeley and its contributors.
  1346  // 4. Neither the name of the University nor the names of its contributors
  1347  //    may be used to endorse or promote products derived from this software
  1348  //    without specific prior written permission.
  1349  //
  1350  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1351  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1352  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1353  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1354  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1355  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1356  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1357  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1358  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1359  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1360  // SUCH DAMAGE.
  1361  //
  1362  //	@(#)syslimits.h	8.1 (Berkeley) 6/2/93
  1363  
  1364  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1365  //
  1366  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1367  //
  1368  // This file contains Original Code and/or Modifications of Original Code
  1369  // as defined in and that are subject to the Apple Public Source License
  1370  // Version 2.0 (the 'License'). You may not use this file except in
  1371  // compliance with the License. The rights granted to you under the License
  1372  // may not be used to create, or enable the creation or redistribution of,
  1373  // unlawful or unlicensed copies of an Apple operating system, or to
  1374  // circumvent, violate, or enable the circumvention or violation of, any
  1375  // terms of an Apple operating system software license agreement.
  1376  //
  1377  // Please obtain a copy of the License at
  1378  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1379  //
  1380  // The Original Code and all software distributed under the License are
  1381  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1382  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1383  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1384  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1385  // Please see the License for the specific language governing rights and
  1386  // limitations under the License.
  1387  //
  1388  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1389  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1390  // Copyright (c) 1991, 1993
  1391  //	The Regents of the University of California.  All rights reserved.
  1392  //
  1393  // This code is derived from software contributed to Berkeley by
  1394  // Berkeley Software Design, Inc.
  1395  //
  1396  // Redistribution and use in source and binary forms, with or without
  1397  // modification, are permitted provided that the following conditions
  1398  // are met:
  1399  // 1. Redistributions of source code must retain the above copyright
  1400  //    notice, this list of conditions and the following disclaimer.
  1401  // 2. Redistributions in binary form must reproduce the above copyright
  1402  //    notice, this list of conditions and the following disclaimer in the
  1403  //    documentation and/or other materials provided with the distribution.
  1404  // 3. All advertising materials mentioning features or use of this software
  1405  //    must display the following acknowledgement:
  1406  //	This product includes software developed by the University of
  1407  //	California, Berkeley and its contributors.
  1408  // 4. Neither the name of the University nor the names of its contributors
  1409  //    may be used to endorse or promote products derived from this software
  1410  //    without specific prior written permission.
  1411  //
  1412  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1413  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1414  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1415  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1416  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1417  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1418  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1419  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1420  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1421  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1422  // SUCH DAMAGE.
  1423  //
  1424  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1425  
  1426  // max bytes for an exec function
  1427  
  1428  // Note: CHILD_MAX *must* be less than hard_maxproc, which is set at
  1429  // compile time; you *cannot* set it higher than the hard limit!!
  1430  
  1431  // = ((PRIO_MAX - PRIO_MIN) / 2) + 1
  1432  // range: 0 - 39 [(2 * NZERO) - 1]
  1433  // 0 is not actually used
  1434  
  1435  // Actually for XSI Visible
  1436  
  1437  // Removed in Issue 6
  1438  
  1439  // NZERO to be defined here. TBD. See also sys/param.h
  1440  
  1441  // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  1442  //
  1443  // This file is part of GCC.
  1444  //
  1445  // GCC is free software; you can redistribute it and/or modify it under
  1446  // the terms of the GNU General Public License as published by the Free
  1447  // Software Foundation; either version 3, or (at your option) any later
  1448  // version.
  1449  //
  1450  // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  1451  // WARRANTY; without even the implied warranty of MERCHANTABILITY or
  1452  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  1453  // for more details.
  1454  //
  1455  // Under Section 7 of GPL version 3, you are granted additional
  1456  // permissions described in the GCC Runtime Library Exception, version
  1457  // 3.1, as published by the Free Software Foundation.
  1458  //
  1459  // You should have received a copy of the GNU General Public License and
  1460  // a copy of the GCC Runtime Library Exception along with this program;
  1461  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
  1462  // <http://www.gnu.org/licenses/>.
  1463  
  1464  // Number of bits in a `char'.
  1465  
  1466  // Maximum length of a multibyte character.
  1467  
  1468  // Minimum and maximum values a `signed char' can hold.
  1469  
  1470  // Maximum value an `unsigned char' can hold.  (Minimum is 0).
  1471  
  1472  // Minimum and maximum values a `char' can hold.
  1473  
  1474  // Minimum and maximum values a `signed short int' can hold.
  1475  
  1476  // Maximum value an `unsigned short int' can hold.  (Minimum is 0).
  1477  
  1478  // Minimum and maximum values a `signed int' can hold.
  1479  
  1480  // Maximum value an `unsigned int' can hold.  (Minimum is 0).
  1481  
  1482  // Minimum and maximum values a `signed long int' can hold.
  1483  //    (Same as `int').
  1484  
  1485  // Maximum value an `unsigned long int' can hold.  (Minimum is 0).
  1486  
  1487  // Minimum and maximum values a `signed long long int' can hold.
  1488  
  1489  // Maximum value an `unsigned long long int' can hold.  (Minimum is 0).
  1490  
  1491  // Minimum and maximum values a `signed long long int' can hold.
  1492  
  1493  // Maximum value an `unsigned long long int' can hold.  (Minimum is 0).
  1494  
  1495  // This administrivia gets added to the end of limits.h
  1496  //    if the system has its own version of limits.h.
  1497  
  1498  type z_crc_t = uint32 /* zconf.h:429:17 */ // time()
  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  // Basic integral types.  Omit the typedef if
  1563  // not possible for a machine/compiler combination.
  1564  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1565  //
  1566  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1567  //
  1568  // This file contains Original Code and/or Modifications of Original Code
  1569  // as defined in and that are subject to the Apple Public Source License
  1570  // Version 2.0 (the 'License'). You may not use this file except in
  1571  // compliance with the License. The rights granted to you under the License
  1572  // may not be used to create, or enable the creation or redistribution of,
  1573  // unlawful or unlicensed copies of an Apple operating system, or to
  1574  // circumvent, violate, or enable the circumvention or violation of, any
  1575  // terms of an Apple operating system software license agreement.
  1576  //
  1577  // Please obtain a copy of the License at
  1578  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1579  //
  1580  // The Original Code and all software distributed under the License are
  1581  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1582  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1583  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1584  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1585  // Please see the License for the specific language governing rights and
  1586  // limitations under the License.
  1587  //
  1588  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1589  type int8_t = int8 /* _int8_t.h:30:31 */
  1590  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1591  //
  1592  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1593  //
  1594  // This file contains Original Code and/or Modifications of Original Code
  1595  // as defined in and that are subject to the Apple Public Source License
  1596  // Version 2.0 (the 'License'). You may not use this file except in
  1597  // compliance with the License. The rights granted to you under the License
  1598  // may not be used to create, or enable the creation or redistribution of,
  1599  // unlawful or unlicensed copies of an Apple operating system, or to
  1600  // circumvent, violate, or enable the circumvention or violation of, any
  1601  // terms of an Apple operating system software license agreement.
  1602  //
  1603  // Please obtain a copy of the License at
  1604  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1605  //
  1606  // The Original Code and all software distributed under the License are
  1607  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1608  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1609  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1610  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1611  // Please see the License for the specific language governing rights and
  1612  // limitations under the License.
  1613  //
  1614  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1615  type int16_t = int16 /* _int16_t.h:30:33 */
  1616  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1617  //
  1618  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1619  //
  1620  // This file contains Original Code and/or Modifications of Original Code
  1621  // as defined in and that are subject to the Apple Public Source License
  1622  // Version 2.0 (the 'License'). You may not use this file except in
  1623  // compliance with the License. The rights granted to you under the License
  1624  // may not be used to create, or enable the creation or redistribution of,
  1625  // unlawful or unlicensed copies of an Apple operating system, or to
  1626  // circumvent, violate, or enable the circumvention or violation of, any
  1627  // terms of an Apple operating system software license agreement.
  1628  //
  1629  // Please obtain a copy of the License at
  1630  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1631  //
  1632  // The Original Code and all software distributed under the License are
  1633  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1634  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1635  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1636  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1637  // Please see the License for the specific language governing rights and
  1638  // limitations under the License.
  1639  //
  1640  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1641  type int32_t = int32 /* _int32_t.h:30:33 */
  1642  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1643  //
  1644  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1645  //
  1646  // This file contains Original Code and/or Modifications of Original Code
  1647  // as defined in and that are subject to the Apple Public Source License
  1648  // Version 2.0 (the 'License'). You may not use this file except in
  1649  // compliance with the License. The rights granted to you under the License
  1650  // may not be used to create, or enable the creation or redistribution of,
  1651  // unlawful or unlicensed copies of an Apple operating system, or to
  1652  // circumvent, violate, or enable the circumvention or violation of, any
  1653  // terms of an Apple operating system software license agreement.
  1654  //
  1655  // Please obtain a copy of the License at
  1656  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1657  //
  1658  // The Original Code and all software distributed under the License are
  1659  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1660  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1661  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1662  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1663  // Please see the License for the specific language governing rights and
  1664  // limitations under the License.
  1665  //
  1666  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1667  type int64_t = int64 /* _int64_t.h:30:33 */
  1668  
  1669  // Copyright (c) 2016 Apple Inc. All rights reserved.
  1670  //
  1671  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1672  //
  1673  // This file contains Original Code and/or Modifications of Original Code
  1674  // as defined in and that are subject to the Apple Public Source License
  1675  // Version 2.0 (the 'License'). You may not use this file except in
  1676  // compliance with the License. The rights granted to you under the License
  1677  // may not be used to create, or enable the creation or redistribution of,
  1678  // unlawful or unlicensed copies of an Apple operating system, or to
  1679  // circumvent, violate, or enable the circumvention or violation of, any
  1680  // terms of an Apple operating system software license agreement.
  1681  //
  1682  // Please obtain a copy of the License at
  1683  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1684  //
  1685  // The Original Code and all software distributed under the License are
  1686  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1687  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1688  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1689  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1690  // Please see the License for the specific language governing rights and
  1691  // limitations under the License.
  1692  //
  1693  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1694  type u_int8_t = uint8 /* _u_int8_t.h:30:33 */
  1695  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1696  //
  1697  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1698  //
  1699  // This file contains Original Code and/or Modifications of Original Code
  1700  // as defined in and that are subject to the Apple Public Source License
  1701  // Version 2.0 (the 'License'). You may not use this file except in
  1702  // compliance with the License. The rights granted to you under the License
  1703  // may not be used to create, or enable the creation or redistribution of,
  1704  // unlawful or unlicensed copies of an Apple operating system, or to
  1705  // circumvent, violate, or enable the circumvention or violation of, any
  1706  // terms of an Apple operating system software license agreement.
  1707  //
  1708  // Please obtain a copy of the License at
  1709  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1710  //
  1711  // The Original Code and all software distributed under the License are
  1712  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1713  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1714  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1715  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1716  // Please see the License for the specific language governing rights and
  1717  // limitations under the License.
  1718  //
  1719  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1720  type u_int16_t = uint16 /* _u_int16_t.h:30:41 */
  1721  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1722  //
  1723  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1724  //
  1725  // This file contains Original Code and/or Modifications of Original Code
  1726  // as defined in and that are subject to the Apple Public Source License
  1727  // Version 2.0 (the 'License'). You may not use this file except in
  1728  // compliance with the License. The rights granted to you under the License
  1729  // may not be used to create, or enable the creation or redistribution of,
  1730  // unlawful or unlicensed copies of an Apple operating system, or to
  1731  // circumvent, violate, or enable the circumvention or violation of, any
  1732  // terms of an Apple operating system software license agreement.
  1733  //
  1734  // Please obtain a copy of the License at
  1735  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1736  //
  1737  // The Original Code and all software distributed under the License are
  1738  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1739  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1740  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1741  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1742  // Please see the License for the specific language governing rights and
  1743  // limitations under the License.
  1744  //
  1745  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1746  type u_int32_t = uint32 /* _u_int32_t.h:30:33 */
  1747  // Copyright (c) 2012 Apple Inc. All rights reserved.
  1748  //
  1749  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1750  //
  1751  // This file contains Original Code and/or Modifications of Original Code
  1752  // as defined in and that are subject to the Apple Public Source License
  1753  // Version 2.0 (the 'License'). You may not use this file except in
  1754  // compliance with the License. The rights granted to you under the License
  1755  // may not be used to create, or enable the creation or redistribution of,
  1756  // unlawful or unlicensed copies of an Apple operating system, or to
  1757  // circumvent, violate, or enable the circumvention or violation of, any
  1758  // terms of an Apple operating system software license agreement.
  1759  //
  1760  // Please obtain a copy of the License at
  1761  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1762  //
  1763  // The Original Code and all software distributed under the License are
  1764  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1765  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1766  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1767  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1768  // Please see the License for the specific language governing rights and
  1769  // limitations under the License.
  1770  //
  1771  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1772  type u_int64_t = uint64 /* _u_int64_t.h:30:33 */
  1773  
  1774  type register_t = int64_t /* types.h:66:33 */
  1775  
  1776  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1777  //
  1778  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1779  //
  1780  // This file contains Original Code and/or Modifications of Original Code
  1781  // as defined in and that are subject to the Apple Public Source License
  1782  // Version 2.0 (the 'License'). You may not use this file except in
  1783  // compliance with the License. The rights granted to you under the License
  1784  // may not be used to create, or enable the creation or redistribution of,
  1785  // unlawful or unlicensed copies of an Apple operating system, or to
  1786  // circumvent, violate, or enable the circumvention or violation of, any
  1787  // terms of an Apple operating system software license agreement.
  1788  //
  1789  // Please obtain a copy of the License at
  1790  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1791  //
  1792  // The Original Code and all software distributed under the License are
  1793  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1794  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1795  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1796  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1797  // Please see the License for the specific language governing rights and
  1798  // limitations under the License.
  1799  //
  1800  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1801  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1802  //
  1803  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1804  //
  1805  // This file contains Original Code and/or Modifications of Original Code
  1806  // as defined in and that are subject to the Apple Public Source License
  1807  // Version 2.0 (the 'License'). You may not use this file except in
  1808  // compliance with the License. The rights granted to you under the License
  1809  // may not be used to create, or enable the creation or redistribution of,
  1810  // unlawful or unlicensed copies of an Apple operating system, or to
  1811  // circumvent, violate, or enable the circumvention or violation of, any
  1812  // terms of an Apple operating system software license agreement.
  1813  //
  1814  // Please obtain a copy of the License at
  1815  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1816  //
  1817  // The Original Code and all software distributed under the License are
  1818  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1819  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1820  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1821  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1822  // Please see the License for the specific language governing rights and
  1823  // limitations under the License.
  1824  //
  1825  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1826  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1827  
  1828  type intptr_t = int64 /* _intptr_t.h:32:33 */
  1829  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1830  //
  1831  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1832  //
  1833  // This file contains Original Code and/or Modifications of Original Code
  1834  // as defined in and that are subject to the Apple Public Source License
  1835  // Version 2.0 (the 'License'). You may not use this file except in
  1836  // compliance with the License. The rights granted to you under the License
  1837  // may not be used to create, or enable the creation or redistribution of,
  1838  // unlawful or unlicensed copies of an Apple operating system, or to
  1839  // circumvent, violate, or enable the circumvention or violation of, any
  1840  // terms of an Apple operating system software license agreement.
  1841  //
  1842  // Please obtain a copy of the License at
  1843  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1844  //
  1845  // The Original Code and all software distributed under the License are
  1846  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1847  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1848  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1849  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1850  // Please see the License for the specific language governing rights and
  1851  // limitations under the License.
  1852  //
  1853  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1854  
  1855  type uintptr_t = uint64 /* _uintptr_t.h:34:33 */
  1856  
  1857  // These types are used for reserving the largest possible size.
  1858  type user_addr_t = u_int64_t  /* types.h:77:33 */
  1859  type user_size_t = u_int64_t  /* types.h:78:33 */
  1860  type user_ssize_t = int64_t   /* types.h:79:33 */
  1861  type user_long_t = int64_t    /* types.h:80:33 */
  1862  type user_ulong_t = u_int64_t /* types.h:81:33 */
  1863  type user_time_t = int64_t    /* types.h:82:33 */
  1864  type user_off_t = int64_t     /* types.h:83:33 */
  1865  
  1866  // This defines the size of syscall arguments after copying into the kernel:
  1867  type syscall_arg_t = u_int64_t /* types.h:104:33 */
  1868  
  1869  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  1870  //
  1871  // @APPLE_OSREFERENCE_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. The rights granted to you under the License
  1877  // may not be used to create, or enable the creation or redistribution of,
  1878  // unlawful or unlicensed copies of an Apple operating system, or to
  1879  // circumvent, violate, or enable the circumvention or violation of, any
  1880  // terms of an Apple operating system software license agreement.
  1881  //
  1882  // Please obtain a copy of the License at
  1883  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1884  //
  1885  // The Original Code and all software distributed under the License are
  1886  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1887  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1888  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1889  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1890  // Please see the License for the specific language governing rights and
  1891  // limitations under the License.
  1892  //
  1893  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1894  
  1895  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1896  //
  1897  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1898  //
  1899  // This file contains Original Code and/or Modifications of Original Code
  1900  // as defined in and that are subject to the Apple Public Source License
  1901  // Version 2.0 (the 'License'). You may not use this file except in
  1902  // compliance with the License. The rights granted to you under the License
  1903  // may not be used to create, or enable the creation or redistribution of,
  1904  // unlawful or unlicensed copies of an Apple operating system, or to
  1905  // circumvent, violate, or enable the circumvention or violation of, any
  1906  // terms of an Apple operating system software license agreement.
  1907  //
  1908  // Please obtain a copy of the License at
  1909  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1910  //
  1911  // The Original Code and all software distributed under the License are
  1912  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1913  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1914  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1915  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1916  // Please see the License for the specific language governing rights and
  1917  // limitations under the License.
  1918  //
  1919  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1920  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1921  // Copyright (c) 1991, 1993
  1922  //	The Regents of the University of California.  All rights reserved.
  1923  //
  1924  // This code is derived from software contributed to Berkeley by
  1925  // Berkeley Software Design, Inc.
  1926  //
  1927  // Redistribution and use in source and binary forms, with or without
  1928  // modification, are permitted provided that the following conditions
  1929  // are met:
  1930  // 1. Redistributions of source code must retain the above copyright
  1931  //    notice, this list of conditions and the following disclaimer.
  1932  // 2. Redistributions in binary form must reproduce the above copyright
  1933  //    notice, this list of conditions and the following disclaimer in the
  1934  //    documentation and/or other materials provided with the distribution.
  1935  // 3. All advertising materials mentioning features or use of this software
  1936  //    must display the following acknowledgement:
  1937  //	This product includes software developed by the University of
  1938  //	California, Berkeley and its contributors.
  1939  // 4. Neither the name of the University nor the names of its contributors
  1940  //    may be used to endorse or promote products derived from this software
  1941  //    without specific prior written permission.
  1942  //
  1943  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1944  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1945  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1946  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1947  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1948  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1949  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1950  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1951  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1952  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1953  // SUCH DAMAGE.
  1954  //
  1955  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1956  
  1957  // pthread opaque structures
  1958  
  1959  type __darwin_pthread_handler_rec = struct {
  1960  	__routine uintptr
  1961  	__arg     uintptr
  1962  	__next    uintptr
  1963  } /* _pthread_types.h:57:1 */
  1964  
  1965  type _opaque_pthread_attr_t = struct {
  1966  	__sig    int64
  1967  	__opaque [56]int8
  1968  } /* _pthread_types.h:63:1 */
  1969  
  1970  type _opaque_pthread_cond_t = struct {
  1971  	__sig    int64
  1972  	__opaque [40]int8
  1973  } /* _pthread_types.h:68:1 */
  1974  
  1975  type _opaque_pthread_condattr_t = struct {
  1976  	__sig    int64
  1977  	__opaque [8]int8
  1978  } /* _pthread_types.h:73:1 */
  1979  
  1980  type _opaque_pthread_mutex_t = struct {
  1981  	__sig    int64
  1982  	__opaque [56]int8
  1983  } /* _pthread_types.h:78:1 */
  1984  
  1985  type _opaque_pthread_mutexattr_t = struct {
  1986  	__sig    int64
  1987  	__opaque [8]int8
  1988  } /* _pthread_types.h:83:1 */
  1989  
  1990  type _opaque_pthread_once_t = struct {
  1991  	__sig    int64
  1992  	__opaque [8]int8
  1993  } /* _pthread_types.h:88:1 */
  1994  
  1995  type _opaque_pthread_rwlock_t = struct {
  1996  	__sig    int64
  1997  	__opaque [192]int8
  1998  } /* _pthread_types.h:93:1 */
  1999  
  2000  type _opaque_pthread_rwlockattr_t = struct {
  2001  	__sig    int64
  2002  	__opaque [16]int8
  2003  } /* _pthread_types.h:98:1 */
  2004  
  2005  type _opaque_pthread_t = struct {
  2006  	__sig           int64
  2007  	__cleanup_stack uintptr
  2008  	__opaque        [8176]int8
  2009  } /* _pthread_types.h:103:1 */
  2010  
  2011  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2012  //
  2013  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2014  //
  2015  // This file contains Original Code and/or Modifications of Original Code
  2016  // as defined in and that are subject to the Apple Public Source License
  2017  // Version 2.0 (the 'License'). You may not use this file except in
  2018  // compliance with the License. The rights granted to you under the License
  2019  // may not be used to create, or enable the creation or redistribution of,
  2020  // unlawful or unlicensed copies of an Apple operating system, or to
  2021  // circumvent, violate, or enable the circumvention or violation of, any
  2022  // terms of an Apple operating system software license agreement.
  2023  //
  2024  // Please obtain a copy of the License at
  2025  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2026  //
  2027  // The Original Code and all software distributed under the License are
  2028  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2029  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2030  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2031  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2032  // Please see the License for the specific language governing rights and
  2033  // limitations under the License.
  2034  //
  2035  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2036  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2037  
  2038  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2039  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2040  // Copyright (c) 1987, 1991, 1993
  2041  //	The Regents of the University of California.  All rights reserved.
  2042  //
  2043  // Redistribution and use in source and binary forms, with or without
  2044  // modification, are permitted provided that the following conditions
  2045  // are met:
  2046  // 1. Redistributions of source code must retain the above copyright
  2047  //    notice, this list of conditions and the following disclaimer.
  2048  // 2. Redistributions in binary form must reproduce the above copyright
  2049  //    notice, this list of conditions and the following disclaimer in the
  2050  //    documentation and/or other materials provided with the distribution.
  2051  // 3. All advertising materials mentioning features or use of this software
  2052  //    must display the following acknowledgement:
  2053  //	This product includes software developed by the University of
  2054  //	California, Berkeley and its contributors.
  2055  // 4. Neither the name of the University nor the names of its contributors
  2056  //    may be used to endorse or promote products derived from this software
  2057  //    without specific prior written permission.
  2058  //
  2059  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2060  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2061  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2062  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2063  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2064  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2065  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2066  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2067  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2068  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2069  // SUCH DAMAGE.
  2070  //
  2071  //	@(#)endian.h	8.1 (Berkeley) 6/11/93
  2072  
  2073  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2074  //
  2075  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2076  //
  2077  // This file contains Original Code and/or Modifications of Original Code
  2078  // as defined in and that are subject to the Apple Public Source License
  2079  // Version 2.0 (the 'License'). You may not use this file except in
  2080  // compliance with the License. The rights granted to you under the License
  2081  // may not be used to create, or enable the creation or redistribution of,
  2082  // unlawful or unlicensed copies of an Apple operating system, or to
  2083  // circumvent, violate, or enable the circumvention or violation of, any
  2084  // terms of an Apple operating system software license agreement.
  2085  //
  2086  // Please obtain a copy of the License at
  2087  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2088  //
  2089  // The Original Code and all software distributed under the License are
  2090  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2091  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2092  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2093  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2094  // Please see the License for the specific language governing rights and
  2095  // limitations under the License.
  2096  //
  2097  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2098  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2099  // Copyright (c) 1991, 1993
  2100  //	The Regents of the University of California.  All rights reserved.
  2101  //
  2102  // This code is derived from software contributed to Berkeley by
  2103  // Berkeley Software Design, Inc.
  2104  //
  2105  // Redistribution and use in source and binary forms, with or without
  2106  // modification, are permitted provided that the following conditions
  2107  // are met:
  2108  // 1. Redistributions of source code must retain the above copyright
  2109  //    notice, this list of conditions and the following disclaimer.
  2110  // 2. Redistributions in binary form must reproduce the above copyright
  2111  //    notice, this list of conditions and the following disclaimer in the
  2112  //    documentation and/or other materials provided with the distribution.
  2113  // 3. All advertising materials mentioning features or use of this software
  2114  //    must display the following acknowledgement:
  2115  //	This product includes software developed by the University of
  2116  //	California, Berkeley and its contributors.
  2117  // 4. Neither the name of the University nor the names of its contributors
  2118  //    may be used to endorse or promote products derived from this software
  2119  //    without specific prior written permission.
  2120  //
  2121  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2122  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2123  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2124  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2125  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2126  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2127  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2128  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2129  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2130  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2131  // SUCH DAMAGE.
  2132  //
  2133  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2134  
  2135  // Define _NOQUAD if the compiler does NOT support 64-bit integers.
  2136  // #define _NOQUAD
  2137  
  2138  // Define the order of 32-bit words in 64-bit words.
  2139  
  2140  // Definitions for byte order, according to byte significance from low
  2141  // address to high.
  2142  
  2143  // Copyright (c) 2004, 2006 Apple Computer, Inc. All rights reserved.
  2144  //
  2145  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2146  //
  2147  // This file contains Original Code and/or Modifications of Original Code
  2148  // as defined in and that are subject to the Apple Public Source License
  2149  // Version 2.0 (the 'License'). You may not use this file except in
  2150  // compliance with the License. The rights granted to you under the License
  2151  // may not be used to create, or enable the creation or redistribution of,
  2152  // unlawful or unlicensed copies of an Apple operating system, or to
  2153  // circumvent, violate, or enable the circumvention or violation of, any
  2154  // terms of an Apple operating system software license agreement.
  2155  //
  2156  // Please obtain a copy of the License at
  2157  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2158  //
  2159  // The Original Code and all software distributed under the License are
  2160  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2161  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2162  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2163  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2164  // Please see the License for the specific language governing rights and
  2165  // limitations under the License.
  2166  //
  2167  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2168  
  2169  // Copyright (c) 1995 NeXT Computer, Inc. All rights reserved.
  2170  // Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
  2171  //
  2172  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2173  //
  2174  // This file contains Original Code and/or Modifications of Original Code
  2175  // as defined in and that are subject to the Apple Public Source License
  2176  // Version 2.0 (the 'License'). You may not use this file except in
  2177  // compliance with the License. The rights granted to you under the License
  2178  // may not be used to create, or enable the creation or redistribution of,
  2179  // unlawful or unlicensed copies of an Apple operating system, or to
  2180  // circumvent, violate, or enable the circumvention or violation of, any
  2181  // terms of an Apple operating system software license agreement.
  2182  //
  2183  // Please obtain a copy of the License at
  2184  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2185  //
  2186  // The Original Code and all software distributed under the License are
  2187  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2188  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2189  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2190  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2191  // Please see the License for the specific language governing rights and
  2192  // limitations under the License.
  2193  //
  2194  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2195  // Copyright (c) 1987, 1991, 1993
  2196  //	The Regents of the University of California.  All rights reserved.
  2197  //
  2198  // Redistribution and use in source and binary forms, with or without
  2199  // modification, are permitted provided that the following conditions
  2200  // are met:
  2201  // 1. Redistributions of source code must retain the above copyright
  2202  //    notice, this list of conditions and the following disclaimer.
  2203  // 2. Redistributions in binary form must reproduce the above copyright
  2204  //    notice, this list of conditions and the following disclaimer in the
  2205  //    documentation and/or other materials provided with the distribution.
  2206  // 3. All advertising materials mentioning features or use of this software
  2207  //    must display the following acknowledgement:
  2208  //	This product includes software developed by the University of
  2209  //	California, Berkeley and its contributors.
  2210  // 4. Neither the name of the University nor the names of its contributors
  2211  //    may be used to endorse or promote products derived from this software
  2212  //    without specific prior written permission.
  2213  //
  2214  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2215  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2216  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2217  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2218  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2219  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2220  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2221  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2222  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2223  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2224  // SUCH DAMAGE.
  2225  
  2226  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2227  //
  2228  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2229  //
  2230  // This file contains Original Code and/or Modifications of Original Code
  2231  // as defined in and that are subject to the Apple Public Source License
  2232  // Version 2.0 (the 'License'). You may not use this file except in
  2233  // compliance with the License. The rights granted to you under the License
  2234  // may not be used to create, or enable the creation or redistribution of,
  2235  // unlawful or unlicensed copies of an Apple operating system, or to
  2236  // circumvent, violate, or enable the circumvention or violation of, any
  2237  // terms of an Apple operating system software license agreement.
  2238  //
  2239  // Please obtain a copy of the License at
  2240  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2241  //
  2242  // The Original Code and all software distributed under the License are
  2243  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2244  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2245  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2246  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2247  // Please see the License for the specific language governing rights and
  2248  // limitations under the License.
  2249  //
  2250  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2251  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2252  // Copyright (c) 1991, 1993
  2253  //	The Regents of the University of California.  All rights reserved.
  2254  //
  2255  // This code is derived from software contributed to Berkeley by
  2256  // Berkeley Software Design, Inc.
  2257  //
  2258  // Redistribution and use in source and binary forms, with or without
  2259  // modification, are permitted provided that the following conditions
  2260  // are met:
  2261  // 1. Redistributions of source code must retain the above copyright
  2262  //    notice, this list of conditions and the following disclaimer.
  2263  // 2. Redistributions in binary form must reproduce the above copyright
  2264  //    notice, this list of conditions and the following disclaimer in the
  2265  //    documentation and/or other materials provided with the distribution.
  2266  // 3. All advertising materials mentioning features or use of this software
  2267  //    must display the following acknowledgement:
  2268  //	This product includes software developed by the University of
  2269  //	California, Berkeley and its contributors.
  2270  // 4. Neither the name of the University nor the names of its contributors
  2271  //    may be used to endorse or promote products derived from this software
  2272  //    without specific prior written permission.
  2273  //
  2274  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2275  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2276  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2277  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2278  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2279  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2280  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2281  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2282  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2283  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2284  // SUCH DAMAGE.
  2285  //
  2286  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2287  
  2288  // Macros for network/external number representation conversion.
  2289  
  2290  // Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
  2291  //
  2292  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2293  //
  2294  // This file contains Original Code and/or Modifications of Original Code
  2295  // as defined in and that are subject to the Apple Public Source License
  2296  // Version 2.0 (the 'License'). You may not use this file except in
  2297  // compliance with the License. The rights granted to you under the License
  2298  // may not be used to create, or enable the creation or redistribution of,
  2299  // unlawful or unlicensed copies of an Apple operating system, or to
  2300  // circumvent, violate, or enable the circumvention or violation of, any
  2301  // terms of an Apple operating system software license agreement.
  2302  //
  2303  // Please obtain a copy of the License at
  2304  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2305  //
  2306  // The Original Code and all software distributed under the License are
  2307  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2308  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2309  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2310  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2311  // Please see the License for the specific language governing rights and
  2312  // limitations under the License.
  2313  //
  2314  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2315  
  2316  // This header is normally included from <libkern/OSByteOrder.h>.  However,
  2317  // <sys/_endian.h> also includes this in the case of little-endian
  2318  // architectures, so that we can map OSByteOrder routines to the hton* and ntoh*
  2319  // macros.  This results in the asymmetry below; we only include
  2320  // <libkern/arch/_OSByteOrder.h> for little-endian architectures.
  2321  
  2322  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2323  //
  2324  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2325  //
  2326  // This file contains Original Code and/or Modifications of Original Code
  2327  // as defined in and that are subject to the Apple Public Source License
  2328  // Version 2.0 (the 'License'). You may not use this file except in
  2329  // compliance with the License. The rights granted to you under the License
  2330  // may not be used to create, or enable the creation or redistribution of,
  2331  // unlawful or unlicensed copies of an Apple operating system, or to
  2332  // circumvent, violate, or enable the circumvention or violation of, any
  2333  // terms of an Apple operating system software license agreement.
  2334  //
  2335  // Please obtain a copy of the License at
  2336  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2337  //
  2338  // The Original Code and all software distributed under the License are
  2339  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2340  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2341  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2342  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2343  // Please see the License for the specific language governing rights and
  2344  // limitations under the License.
  2345  //
  2346  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2347  
  2348  // Macros for swapping constant values in the preprocessing stage.
  2349  
  2350  // Copyright (c) 1999-2007 Apple Inc. All rights reserved.
  2351  
  2352  //  DO NOT EDIT THIS FILE.
  2353  //
  2354  //     It has been auto-edited by fixincludes from:
  2355  //
  2356  // 	"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/stdint.h"
  2357  //
  2358  //     This had to be done to correct non-standard usages in the
  2359  //     original, manufacturer supplied header file.
  2360  
  2361  // Copyright (c) 2000-2010 Apple Inc.
  2362  // All rights reserved.
  2363  
  2364  // from ISO/IEC 988:1999 spec
  2365  
  2366  // 7.18.1.1 Exact-width integer types
  2367  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2368  //
  2369  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2370  //
  2371  // This file contains Original Code and/or Modifications of Original Code
  2372  // as defined in and that are subject to the Apple Public Source License
  2373  // Version 2.0 (the 'License'). You may not use this file except in
  2374  // compliance with the License. The rights granted to you under the License
  2375  // may not be used to create, or enable the creation or redistribution of,
  2376  // unlawful or unlicensed copies of an Apple operating system, or to
  2377  // circumvent, violate, or enable the circumvention or violation of, any
  2378  // terms of an Apple operating system software license agreement.
  2379  //
  2380  // Please obtain a copy of the License at
  2381  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2382  //
  2383  // The Original Code and all software distributed under the License are
  2384  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2385  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2386  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2387  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2388  // Please see the License for the specific language governing rights and
  2389  // limitations under the License.
  2390  //
  2391  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2392  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2393  //
  2394  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2395  //
  2396  // This file contains Original Code and/or Modifications of Original Code
  2397  // as defined in and that are subject to the Apple Public Source License
  2398  // Version 2.0 (the 'License'). You may not use this file except in
  2399  // compliance with the License. The rights granted to you under the License
  2400  // may not be used to create, or enable the creation or redistribution of,
  2401  // unlawful or unlicensed copies of an Apple operating system, or to
  2402  // circumvent, violate, or enable the circumvention or violation of, any
  2403  // terms of an Apple operating system software license agreement.
  2404  //
  2405  // Please obtain a copy of the License at
  2406  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2407  //
  2408  // The Original Code and all software distributed under the License are
  2409  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2410  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2411  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2412  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2413  // Please see the License for the specific language governing rights and
  2414  // limitations under the License.
  2415  //
  2416  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2417  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2418  //
  2419  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2420  //
  2421  // This file contains Original Code and/or Modifications of Original Code
  2422  // as defined in and that are subject to the Apple Public Source License
  2423  // Version 2.0 (the 'License'). You may not use this file except in
  2424  // compliance with the License. The rights granted to you under the License
  2425  // may not be used to create, or enable the creation or redistribution of,
  2426  // unlawful or unlicensed copies of an Apple operating system, or to
  2427  // circumvent, violate, or enable the circumvention or violation of, any
  2428  // terms of an Apple operating system software license agreement.
  2429  //
  2430  // Please obtain a copy of the License at
  2431  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2432  //
  2433  // The Original Code and all software distributed under the License are
  2434  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2435  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2436  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2437  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2438  // Please see the License for the specific language governing rights and
  2439  // limitations under the License.
  2440  //
  2441  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2442  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2443  //
  2444  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2445  //
  2446  // This file contains Original Code and/or Modifications of Original Code
  2447  // as defined in and that are subject to the Apple Public Source License
  2448  // Version 2.0 (the 'License'). You may not use this file except in
  2449  // compliance with the License. The rights granted to you under the License
  2450  // may not be used to create, or enable the creation or redistribution of,
  2451  // unlawful or unlicensed copies of an Apple operating system, or to
  2452  // circumvent, violate, or enable the circumvention or violation of, any
  2453  // terms of an Apple operating system software license agreement.
  2454  //
  2455  // Please obtain a copy of the License at
  2456  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2457  //
  2458  // The Original Code and all software distributed under the License are
  2459  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2460  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2461  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2462  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2463  // Please see the License for the specific language governing rights and
  2464  // limitations under the License.
  2465  //
  2466  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2467  
  2468  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2469  //
  2470  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2471  //
  2472  // This file contains Original Code and/or Modifications of Original Code
  2473  // as defined in and that are subject to the Apple Public Source License
  2474  // Version 2.0 (the 'License'). You may not use this file except in
  2475  // compliance with the License. The rights granted to you under the License
  2476  // may not be used to create, or enable the creation or redistribution of,
  2477  // unlawful or unlicensed copies of an Apple operating system, or to
  2478  // circumvent, violate, or enable the circumvention or violation of, any
  2479  // terms of an Apple operating system software license agreement.
  2480  //
  2481  // Please obtain a copy of the License at
  2482  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2483  //
  2484  // The Original Code and all software distributed under the License are
  2485  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2486  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2487  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2488  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2489  // Please see the License for the specific language governing rights and
  2490  // limitations under the License.
  2491  //
  2492  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2493  
  2494  type uint8_t = uint8 /* _uint8_t.h:31:23 */
  2495  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2496  //
  2497  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2498  //
  2499  // This file contains Original Code and/or Modifications of Original Code
  2500  // as defined in and that are subject to the Apple Public Source License
  2501  // Version 2.0 (the 'License'). You may not use this file except in
  2502  // compliance with the License. The rights granted to you under the License
  2503  // may not be used to create, or enable the creation or redistribution of,
  2504  // unlawful or unlicensed copies of an Apple operating system, or to
  2505  // circumvent, violate, or enable the circumvention or violation of, any
  2506  // terms of an Apple operating system software license agreement.
  2507  //
  2508  // Please obtain a copy of the License at
  2509  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2510  //
  2511  // The Original Code and all software distributed under the License are
  2512  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2513  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2514  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2515  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2516  // Please see the License for the specific language governing rights and
  2517  // limitations under the License.
  2518  //
  2519  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2520  
  2521  type uint16_t = uint16 /* _uint16_t.h:31:24 */
  2522  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2523  //
  2524  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2525  //
  2526  // This file contains Original Code and/or Modifications of Original Code
  2527  // as defined in and that are subject to the Apple Public Source License
  2528  // Version 2.0 (the 'License'). You may not use this file except in
  2529  // compliance with the License. The rights granted to you under the License
  2530  // may not be used to create, or enable the creation or redistribution of,
  2531  // unlawful or unlicensed copies of an Apple operating system, or to
  2532  // circumvent, violate, or enable the circumvention or violation of, any
  2533  // terms of an Apple operating system software license agreement.
  2534  //
  2535  // Please obtain a copy of the License at
  2536  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2537  //
  2538  // The Original Code and all software distributed under the License are
  2539  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2540  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2541  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2542  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2543  // Please see the License for the specific language governing rights and
  2544  // limitations under the License.
  2545  //
  2546  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2547  
  2548  type uint32_t = uint32 /* _uint32_t.h:31:22 */
  2549  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2550  //
  2551  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2552  //
  2553  // This file contains Original Code and/or Modifications of Original Code
  2554  // as defined in and that are subject to the Apple Public Source License
  2555  // Version 2.0 (the 'License'). You may not use this file except in
  2556  // compliance with the License. The rights granted to you under the License
  2557  // may not be used to create, or enable the creation or redistribution of,
  2558  // unlawful or unlicensed copies of an Apple operating system, or to
  2559  // circumvent, violate, or enable the circumvention or violation of, any
  2560  // terms of an Apple operating system software license agreement.
  2561  //
  2562  // Please obtain a copy of the License at
  2563  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2564  //
  2565  // The Original Code and all software distributed under the License are
  2566  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2567  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2568  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2569  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2570  // Please see the License for the specific language governing rights and
  2571  // limitations under the License.
  2572  //
  2573  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2574  
  2575  type uint64_t = uint64 /* _uint64_t.h:31:28 */
  2576  
  2577  // 7.18.1.2 Minimum-width integer types
  2578  type int_least8_t = int8_t     /* stdint.h:38:26 */
  2579  type int_least16_t = int16_t   /* stdint.h:39:25 */
  2580  type int_least32_t = int32_t   /* stdint.h:40:25 */
  2581  type int_least64_t = int64_t   /* stdint.h:41:25 */
  2582  type uint_least8_t = uint8_t   /* stdint.h:42:25 */
  2583  type uint_least16_t = uint16_t /* stdint.h:43:24 */
  2584  type uint_least32_t = uint32_t /* stdint.h:44:24 */
  2585  type uint_least64_t = uint64_t /* stdint.h:45:24 */
  2586  
  2587  // 7.18.1.3 Fastest-width integer types
  2588  type int_fast8_t = int8_t     /* stdint.h:49:27 */
  2589  type int_fast16_t = int16_t   /* stdint.h:50:26 */
  2590  type int_fast32_t = int32_t   /* stdint.h:51:26 */
  2591  type int_fast64_t = int64_t   /* stdint.h:52:26 */
  2592  type uint_fast8_t = uint8_t   /* stdint.h:53:26 */
  2593  type uint_fast16_t = uint16_t /* stdint.h:54:25 */
  2594  type uint_fast32_t = uint32_t /* stdint.h:55:25 */
  2595  type uint_fast64_t = uint64_t /* stdint.h:56:25 */
  2596  
  2597  // 7.18.1.4 Integer types capable of holding object pointers
  2598  
  2599  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2600  //
  2601  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2602  //
  2603  // This file contains Original Code and/or Modifications of Original Code
  2604  // as defined in and that are subject to the Apple Public Source License
  2605  // Version 2.0 (the 'License'). You may not use this file except in
  2606  // compliance with the License. The rights granted to you under the License
  2607  // may not be used to create, or enable the creation or redistribution of,
  2608  // unlawful or unlicensed copies of an Apple operating system, or to
  2609  // circumvent, violate, or enable the circumvention or violation of, any
  2610  // terms of an Apple operating system software license agreement.
  2611  //
  2612  // Please obtain a copy of the License at
  2613  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2614  //
  2615  // The Original Code and all software distributed under the License are
  2616  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2617  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2618  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2619  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2620  // Please see the License for the specific language governing rights and
  2621  // limitations under the License.
  2622  //
  2623  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2624  
  2625  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2626  //
  2627  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2628  //
  2629  // This file contains Original Code and/or Modifications of Original Code
  2630  // as defined in and that are subject to the Apple Public Source License
  2631  // Version 2.0 (the 'License'). You may not use this file except in
  2632  // compliance with the License. The rights granted to you under the License
  2633  // may not be used to create, or enable the creation or redistribution of,
  2634  // unlawful or unlicensed copies of an Apple operating system, or to
  2635  // circumvent, violate, or enable the circumvention or violation of, any
  2636  // terms of an Apple operating system software license agreement.
  2637  //
  2638  // Please obtain a copy of the License at
  2639  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2640  //
  2641  // The Original Code and all software distributed under the License are
  2642  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2643  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2644  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2645  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2646  // Please see the License for the specific language governing rights and
  2647  // limitations under the License.
  2648  //
  2649  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2650  // Copyright (c) 2003-2012 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  
  2676  // 7.18.1.5 Greatest-width integer types
  2677  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2678  //
  2679  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2680  //
  2681  // This file contains Original Code and/or Modifications of Original Code
  2682  // as defined in and that are subject to the Apple Public Source License
  2683  // Version 2.0 (the 'License'). You may not use this file except in
  2684  // compliance with the License. The rights granted to you under the License
  2685  // may not be used to create, or enable the creation or redistribution of,
  2686  // unlawful or unlicensed copies of an Apple operating system, or to
  2687  // circumvent, violate, or enable the circumvention or violation of, any
  2688  // terms of an Apple operating system software license agreement.
  2689  //
  2690  // Please obtain a copy of the License at
  2691  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2692  //
  2693  // The Original Code and all software distributed under the License are
  2694  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2695  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2696  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2697  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2698  // Please see the License for the specific language governing rights and
  2699  // limitations under the License.
  2700  //
  2701  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2702  
  2703  type intmax_t = int64 /* _intmax_t.h:32:25 */
  2704  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2705  //
  2706  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2707  //
  2708  // This file contains Original Code and/or Modifications of Original Code
  2709  // as defined in and that are subject to the Apple Public Source License
  2710  // Version 2.0 (the 'License'). You may not use this file except in
  2711  // compliance with the License. The rights granted to you under the License
  2712  // may not be used to create, or enable the creation or redistribution of,
  2713  // unlawful or unlicensed copies of an Apple operating system, or to
  2714  // circumvent, violate, or enable the circumvention or violation of, any
  2715  // terms of an Apple operating system software license agreement.
  2716  //
  2717  // Please obtain a copy of the License at
  2718  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2719  //
  2720  // The Original Code and all software distributed under the License are
  2721  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2722  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2723  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2724  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2725  // Please see the License for the specific language governing rights and
  2726  // limitations under the License.
  2727  //
  2728  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2729  
  2730  type uintmax_t = uint64 /* _uintmax_t.h:32:26 */
  2731  
  2732  // 7.18.4 Macros for integer constants
  2733  
  2734  // 7.18.2 Limits of specified-width integer types:
  2735  //   These #defines specify the minimum and maximum limits
  2736  //   of each of the types declared above.
  2737  //
  2738  //   They must have "the same type as would an expression that is an
  2739  //   object of the corresponding type converted according to the integer
  2740  //   promotion".
  2741  
  2742  // 7.18.2.1 Limits of exact-width integer types
  2743  
  2744  //
  2745  //       Note:  the literal "most negative int" cannot be written in C --
  2746  //       the rules in the standard (section 6.4.4.1 in C99) will give it
  2747  //       an unsigned type, so INT32_MIN (and the most negative member of
  2748  //       any larger signed type) must be written via a constant expression.
  2749  //
  2750  
  2751  // 7.18.2.2 Limits of minimum-width integer types
  2752  
  2753  // 7.18.2.3 Limits of fastest minimum-width integer types
  2754  
  2755  // 7.18.2.4 Limits of integer types capable of holding object pointers
  2756  
  2757  // 7.18.2.5 Limits of greatest-width integer types
  2758  
  2759  // 7.18.3 "Other"
  2760  
  2761  // WCHAR_MIN should be 0 if wchar_t is an unsigned type and
  2762  //    (-WCHAR_MAX-1) if wchar_t is a signed type.  Unfortunately,
  2763  //    it turns out that -fshort-wchar changes the signedness of
  2764  //    the type.
  2765  
  2766  // Copyright (c) 2007 Apple Inc. All rights reserved.
  2767  //
  2768  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2769  //
  2770  // This file contains Original Code and/or Modifications of Original Code
  2771  // as defined in and that are subject to the Apple Public Source License
  2772  // Version 2.0 (the 'License'). You may not use this file except in
  2773  // compliance with the License. The rights granted to you under the License
  2774  // may not be used to create, or enable the creation or redistribution of,
  2775  // unlawful or unlicensed copies of an Apple operating system, or to
  2776  // circumvent, violate, or enable the circumvention or violation of, any
  2777  // terms of an Apple operating system software license agreement.
  2778  //
  2779  // Please obtain a copy of the License at
  2780  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2781  //
  2782  // The Original Code and all software distributed under the License are
  2783  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2784  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2785  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2786  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2787  // Please see the License for the specific language governing rights and
  2788  // limitations under the License.
  2789  //
  2790  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2791  
  2792  // Collect the __ARM_ARCH_*__ compiler flags into something easier to use.
  2793  
  2794  // Generic byte swapping functions.
  2795  
  2796  func _OSSwapInt16(tls *libc.TLS, _data uint16_t) uint16_t { /* OSByteOrder.h:15:1: */
  2797  	// Reduces to 'rev16' with clang
  2798  	return uint16_t(int32(_data)<<8 | int32(_data)>>8)
  2799  }
  2800  
  2801  func _OSSwapInt32(tls *libc.TLS, _data uint32_t) uint32_t { /* OSByteOrder.h:25:1: */
  2802  	// This actually generates the best code
  2803  	_data = (_data^(_data>>16|_data<<16))&0xFF00FFFF>>8 ^ (_data>>8 | _data<<24)
  2804  
  2805  	return _data
  2806  }
  2807  
  2808  func _OSSwapInt64(tls *libc.TLS, _data uint64_t) uint64_t { /* OSByteOrder.h:41:1: */
  2809  	bp := tls.Alloc(8)
  2810  	defer tls.Free(8)
  2811  
  2812  	// var _u struct {_ull uint64_t;} at bp, 8
  2813  
  2814  	// This actually generates the best code
  2815  	*(*uint32_t)(unsafe.Pointer(bp)) = uint32_t(_data >> 32)
  2816  	*(*uint32_t)(unsafe.Pointer(bp + 1*4)) = uint32_t(_data & uint64(0xffffffff))
  2817  	*(*uint32_t)(unsafe.Pointer(bp)) = _OSSwapInt32(tls, *(*uint32_t)(unsafe.Pointer(bp)))
  2818  	*(*uint32_t)(unsafe.Pointer(bp + 1*4)) = _OSSwapInt32(tls, *(*uint32_t)(unsafe.Pointer(bp + 1*4)))
  2819  	return *(*uint64_t)(unsafe.Pointer(bp))
  2820  }
  2821  
  2822  // Functions for byte reversed loads.
  2823  
  2824  type _OSUnalignedU16 = struct{ __val uint16_t } /* OSByteOrder.h:64:1 */
  2825  
  2826  type _OSUnalignedU32 = struct{ __val uint32_t } /* OSByteOrder.h:68:1 */
  2827  
  2828  type _OSUnalignedU64 = struct{ __val uint64_t } /* OSByteOrder.h:72:1 */
  2829  
  2830  // Copyright (c) 2017 Apple Inc. All rights reserved.
  2831  //
  2832  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2833  //
  2834  // This file contains Original Code and/or Modifications of Original Code
  2835  // as defined in and that are subject to the Apple Public Source License
  2836  // Version 2.0 (the 'License'). You may not use this file except in
  2837  // compliance with the License. The rights granted to you under the License
  2838  // may not be used to create, or enable the creation or redistribution of,
  2839  // unlawful or unlicensed copies of an Apple operating system, or to
  2840  // circumvent, violate, or enable the circumvention or violation of, any
  2841  // terms of an Apple operating system software license agreement.
  2842  //
  2843  // Please obtain a copy of the License at
  2844  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2845  //
  2846  // The Original Code and all software distributed under the License are
  2847  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2848  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2849  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2850  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2851  // Please see the License for the specific language governing rights and
  2852  // limitations under the License.
  2853  //
  2854  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2855  type u_char = uint8 /* _u_char.h:30:25 */
  2856  // Copyright (c) 2017 Apple Inc. All rights reserved.
  2857  //
  2858  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2859  //
  2860  // This file contains Original Code and/or Modifications of Original Code
  2861  // as defined in and that are subject to the Apple Public Source License
  2862  // Version 2.0 (the 'License'). You may not use this file except in
  2863  // compliance with the License. The rights granted to you under the License
  2864  // may not be used to create, or enable the creation or redistribution of,
  2865  // unlawful or unlicensed copies of an Apple operating system, or to
  2866  // circumvent, violate, or enable the circumvention or violation of, any
  2867  // terms of an Apple operating system software license agreement.
  2868  //
  2869  // Please obtain a copy of the License at
  2870  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2871  //
  2872  // The Original Code and all software distributed under the License are
  2873  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2874  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2875  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2876  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2877  // Please see the License for the specific language governing rights and
  2878  // limitations under the License.
  2879  //
  2880  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2881  type u_short = uint16 /* _u_short.h:30:25 */
  2882  // Copyright (c) 2017 Apple Inc. All rights reserved.
  2883  //
  2884  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2885  //
  2886  // This file contains Original Code and/or Modifications of Original Code
  2887  // as defined in and that are subject to the Apple Public Source License
  2888  // Version 2.0 (the 'License'). You may not use this file except in
  2889  // compliance with the License. The rights granted to you under the License
  2890  // may not be used to create, or enable the creation or redistribution of,
  2891  // unlawful or unlicensed copies of an Apple operating system, or to
  2892  // circumvent, violate, or enable the circumvention or violation of, any
  2893  // terms of an Apple operating system software license agreement.
  2894  //
  2895  // Please obtain a copy of the License at
  2896  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2897  //
  2898  // The Original Code and all software distributed under the License are
  2899  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2900  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2901  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2902  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2903  // Please see the License for the specific language governing rights and
  2904  // limitations under the License.
  2905  //
  2906  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2907  type u_int = uint32  /* _u_int.h:30:25 */
  2908  type u_long = uint64 /* types.h:88:33 */
  2909  type ushort = uint16 /* types.h:91:33 */ // Sys V compatibility
  2910  type uint = uint32   /* types.h:92:33 */ // Sys V compatibility
  2911  
  2912  type u_quad_t = u_int64_t /* types.h:95:33 */ // quads
  2913  type quad_t = int64_t     /* types.h:96:33 */
  2914  type qaddr_t = uintptr    /* types.h:97:16 */
  2915  
  2916  // Copyright (c) 2017 Apple Inc. All rights reserved.
  2917  //
  2918  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2919  //
  2920  // This file contains Original Code and/or Modifications of Original Code
  2921  // as defined in and that are subject to the Apple Public Source License
  2922  // Version 2.0 (the 'License'). You may not use this file except in
  2923  // compliance with the License. The rights granted to you under the License
  2924  // may not be used to create, or enable the creation or redistribution of,
  2925  // unlawful or unlicensed copies of an Apple operating system, or to
  2926  // circumvent, violate, or enable the circumvention or violation of, any
  2927  // terms of an Apple operating system software license agreement.
  2928  //
  2929  // Please obtain a copy of the License at
  2930  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2931  //
  2932  // The Original Code and all software distributed under the License are
  2933  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2934  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2935  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2936  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2937  // Please see the License for the specific language governing rights and
  2938  // limitations under the License.
  2939  //
  2940  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2941  type caddr_t = uintptr /* _caddr_t.h:30:14 */
  2942  
  2943  type daddr_t = int32_t /* types.h:101:33 */ // disk address
  2944  
  2945  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2946  //
  2947  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2948  //
  2949  // This file contains Original Code and/or Modifications of Original Code
  2950  // as defined in and that are subject to the Apple Public Source License
  2951  // Version 2.0 (the 'License'). You may not use this file except in
  2952  // compliance with the License. The rights granted to you under the License
  2953  // may not be used to create, or enable the creation or redistribution of,
  2954  // unlawful or unlicensed copies of an Apple operating system, or to
  2955  // circumvent, violate, or enable the circumvention or violation of, any
  2956  // terms of an Apple operating system software license agreement.
  2957  //
  2958  // Please obtain a copy of the License at
  2959  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2960  //
  2961  // The Original Code and all software distributed under the License are
  2962  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2963  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2964  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2965  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2966  // Please see the License for the specific language governing rights and
  2967  // limitations under the License.
  2968  //
  2969  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2970  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2971  //
  2972  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2973  //
  2974  // This file contains Original Code and/or Modifications of Original Code
  2975  // as defined in and that are subject to the Apple Public Source License
  2976  // Version 2.0 (the 'License'). You may not use this file except in
  2977  // compliance with the License. The rights granted to you under the License
  2978  // may not be used to create, or enable the creation or redistribution of,
  2979  // unlawful or unlicensed copies of an Apple operating system, or to
  2980  // circumvent, violate, or enable the circumvention or violation of, any
  2981  // terms of an Apple operating system software license agreement.
  2982  //
  2983  // Please obtain a copy of the License at
  2984  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2985  //
  2986  // The Original Code and all software distributed under the License are
  2987  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2988  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2989  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2990  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2991  // Please see the License for the specific language governing rights and
  2992  // limitations under the License.
  2993  //
  2994  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2995  
  2996  type dev_t = int32 /* _dev_t.h:31:31 */ // device number
  2997  
  2998  type fixpt_t = u_int32_t /* types.h:105:33 */ // fixed point number
  2999  
  3000  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3001  //
  3002  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3003  //
  3004  // This file contains Original Code and/or Modifications of Original Code
  3005  // as defined in and that are subject to the Apple Public Source License
  3006  // Version 2.0 (the 'License'). You may not use this file except in
  3007  // compliance with the License. The rights granted to you under the License
  3008  // may not be used to create, or enable the creation or redistribution of,
  3009  // unlawful or unlicensed copies of an Apple operating system, or to
  3010  // circumvent, violate, or enable the circumvention or violation of, any
  3011  // terms of an Apple operating system software license agreement.
  3012  //
  3013  // Please obtain a copy of the License at
  3014  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3015  //
  3016  // The Original Code and all software distributed under the License are
  3017  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3018  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3019  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3020  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3021  // Please see the License for the specific language governing rights and
  3022  // limitations under the License.
  3023  //
  3024  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3025  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3026  //
  3027  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3028  //
  3029  // This file contains Original Code and/or Modifications of Original Code
  3030  // as defined in and that are subject to the Apple Public Source License
  3031  // Version 2.0 (the 'License'). You may not use this file except in
  3032  // compliance with the License. The rights granted to you under the License
  3033  // may not be used to create, or enable the creation or redistribution of,
  3034  // unlawful or unlicensed copies of an Apple operating system, or to
  3035  // circumvent, violate, or enable the circumvention or violation of, any
  3036  // terms of an Apple operating system software license agreement.
  3037  //
  3038  // Please obtain a copy of the License at
  3039  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3040  //
  3041  // The Original Code and all software distributed under the License are
  3042  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3043  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3044  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3045  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3046  // Please see the License for the specific language governing rights and
  3047  // limitations under the License.
  3048  //
  3049  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3050  
  3051  type blkcnt_t = int64 /* _blkcnt_t.h:31:34 */
  3052  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3053  //
  3054  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3055  //
  3056  // This file contains Original Code and/or Modifications of Original Code
  3057  // as defined in and that are subject to the Apple Public Source License
  3058  // Version 2.0 (the 'License'). You may not use this file except in
  3059  // compliance with the License. The rights granted to you under the License
  3060  // may not be used to create, or enable the creation or redistribution of,
  3061  // unlawful or unlicensed copies of an Apple operating system, or to
  3062  // circumvent, violate, or enable the circumvention or violation of, any
  3063  // terms of an Apple operating system software license agreement.
  3064  //
  3065  // Please obtain a copy of the License at
  3066  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3067  //
  3068  // The Original Code and all software distributed under the License are
  3069  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3070  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3071  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3072  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3073  // Please see the License for the specific language governing rights and
  3074  // limitations under the License.
  3075  //
  3076  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3077  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3078  //
  3079  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3080  //
  3081  // This file contains Original Code and/or Modifications of Original Code
  3082  // as defined in and that are subject to the Apple Public Source License
  3083  // Version 2.0 (the 'License'). You may not use this file except in
  3084  // compliance with the License. The rights granted to you under the License
  3085  // may not be used to create, or enable the creation or redistribution of,
  3086  // unlawful or unlicensed copies of an Apple operating system, or to
  3087  // circumvent, violate, or enable the circumvention or violation of, any
  3088  // terms of an Apple operating system software license agreement.
  3089  //
  3090  // Please obtain a copy of the License at
  3091  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3092  //
  3093  // The Original Code and all software distributed under the License are
  3094  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3095  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3096  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3097  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3098  // Please see the License for the specific language governing rights and
  3099  // limitations under the License.
  3100  //
  3101  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3102  
  3103  type blksize_t = int32 /* _blksize_t.h:31:35 */
  3104  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3105  //
  3106  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3107  //
  3108  // This file contains Original Code and/or Modifications of Original Code
  3109  // as defined in and that are subject to the Apple Public Source License
  3110  // Version 2.0 (the 'License'). You may not use this file except in
  3111  // compliance with the License. The rights granted to you under the License
  3112  // may not be used to create, or enable the creation or redistribution of,
  3113  // unlawful or unlicensed copies of an Apple operating system, or to
  3114  // circumvent, violate, or enable the circumvention or violation of, any
  3115  // terms of an Apple operating system software license agreement.
  3116  //
  3117  // Please obtain a copy of the License at
  3118  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3119  //
  3120  // The Original Code and all software distributed under the License are
  3121  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3122  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3123  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3124  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3125  // Please see the License for the specific language governing rights and
  3126  // limitations under the License.
  3127  //
  3128  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3129  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3130  //
  3131  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3132  //
  3133  // This file contains Original Code and/or Modifications of Original Code
  3134  // as defined in and that are subject to the Apple Public Source License
  3135  // Version 2.0 (the 'License'). You may not use this file except in
  3136  // compliance with the License. The rights granted to you under the License
  3137  // may not be used to create, or enable the creation or redistribution of,
  3138  // unlawful or unlicensed copies of an Apple operating system, or to
  3139  // circumvent, violate, or enable the circumvention or violation of, any
  3140  // terms of an Apple operating system software license agreement.
  3141  //
  3142  // Please obtain a copy of the License at
  3143  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3144  //
  3145  // The Original Code and all software distributed under the License are
  3146  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3147  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3148  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3149  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3150  // Please see the License for the specific language governing rights and
  3151  // limitations under the License.
  3152  //
  3153  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3154  
  3155  type gid_t = uint32 /* _gid_t.h:31:25 */
  3156  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3157  //
  3158  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3159  //
  3160  // This file contains Original Code and/or Modifications of Original Code
  3161  // as defined in and that are subject to the Apple Public Source License
  3162  // Version 2.0 (the 'License'). You may not use this file except in
  3163  // compliance with the License. The rights granted to you under the License
  3164  // may not be used to create, or enable the creation or redistribution of,
  3165  // unlawful or unlicensed copies of an Apple operating system, or to
  3166  // circumvent, violate, or enable the circumvention or violation of, any
  3167  // terms of an Apple operating system software license agreement.
  3168  //
  3169  // Please obtain a copy of the License at
  3170  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3171  //
  3172  // The Original Code and all software distributed under the License are
  3173  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3174  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3175  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3176  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3177  // Please see the License for the specific language governing rights and
  3178  // limitations under the License.
  3179  //
  3180  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3181  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3182  //
  3183  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3184  //
  3185  // This file contains Original Code and/or Modifications of Original Code
  3186  // as defined in and that are subject to the Apple Public Source License
  3187  // Version 2.0 (the 'License'). You may not use this file except in
  3188  // compliance with the License. The rights granted to you under the License
  3189  // may not be used to create, or enable the creation or redistribution of,
  3190  // unlawful or unlicensed copies of an Apple operating system, or to
  3191  // circumvent, violate, or enable the circumvention or violation of, any
  3192  // terms of an Apple operating system software license agreement.
  3193  //
  3194  // Please obtain a copy of the License at
  3195  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3196  //
  3197  // The Original Code and all software distributed under the License are
  3198  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3199  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3200  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3201  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3202  // Please see the License for the specific language governing rights and
  3203  // limitations under the License.
  3204  //
  3205  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3206  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3207  type in_addr_t = uint32 /* _in_addr_t.h:31:25 */ // base type for internet address
  3208  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3209  //
  3210  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3211  //
  3212  // This file contains Original Code and/or Modifications of Original Code
  3213  // as defined in and that are subject to the Apple Public Source License
  3214  // Version 2.0 (the 'License'). You may not use this file except in
  3215  // compliance with the License. The rights granted to you under the License
  3216  // may not be used to create, or enable the creation or redistribution of,
  3217  // unlawful or unlicensed copies of an Apple operating system, or to
  3218  // circumvent, violate, or enable the circumvention or violation of, any
  3219  // terms of an Apple operating system software license agreement.
  3220  //
  3221  // Please obtain a copy of the License at
  3222  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3223  //
  3224  // The Original Code and all software distributed under the License are
  3225  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3226  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3227  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3228  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3229  // Please see the License for the specific language governing rights and
  3230  // limitations under the License.
  3231  //
  3232  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3233  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3234  //
  3235  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3236  //
  3237  // This file contains Original Code and/or Modifications of Original Code
  3238  // as defined in and that are subject to the Apple Public Source License
  3239  // Version 2.0 (the 'License'). You may not use this file except in
  3240  // compliance with the License. The rights granted to you under the License
  3241  // may not be used to create, or enable the creation or redistribution of,
  3242  // unlawful or unlicensed copies of an Apple operating system, or to
  3243  // circumvent, violate, or enable the circumvention or violation of, any
  3244  // terms of an Apple operating system software license agreement.
  3245  //
  3246  // Please obtain a copy of the License at
  3247  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3248  //
  3249  // The Original Code and all software distributed under the License are
  3250  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3251  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3252  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3253  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3254  // Please see the License for the specific language governing rights and
  3255  // limitations under the License.
  3256  //
  3257  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3258  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3259  type in_port_t = uint16 /* _in_port_t.h:31:33 */
  3260  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3261  //
  3262  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3263  //
  3264  // This file contains Original Code and/or Modifications of Original Code
  3265  // as defined in and that are subject to the Apple Public Source License
  3266  // Version 2.0 (the 'License'). You may not use this file except in
  3267  // compliance with the License. The rights granted to you under the License
  3268  // may not be used to create, or enable the creation or redistribution of,
  3269  // unlawful or unlicensed copies of an Apple operating system, or to
  3270  // circumvent, violate, or enable the circumvention or violation of, any
  3271  // terms of an Apple operating system software license agreement.
  3272  //
  3273  // Please obtain a copy of the License at
  3274  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3275  //
  3276  // The Original Code and all software distributed under the License are
  3277  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3278  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3279  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3280  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3281  // Please see the License for the specific language governing rights and
  3282  // limitations under the License.
  3283  //
  3284  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3285  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3286  //
  3287  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3288  //
  3289  // This file contains Original Code and/or Modifications of Original Code
  3290  // as defined in and that are subject to the Apple Public Source License
  3291  // Version 2.0 (the 'License'). You may not use this file except in
  3292  // compliance with the License. The rights granted to you under the License
  3293  // may not be used to create, or enable the creation or redistribution of,
  3294  // unlawful or unlicensed copies of an Apple operating system, or to
  3295  // circumvent, violate, or enable the circumvention or violation of, any
  3296  // terms of an Apple operating system software license agreement.
  3297  //
  3298  // Please obtain a copy of the License at
  3299  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3300  //
  3301  // The Original Code and all software distributed under the License are
  3302  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3303  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3304  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3305  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3306  // Please see the License for the specific language governing rights and
  3307  // limitations under the License.
  3308  //
  3309  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3310  
  3311  type ino_t = uint64 /* _ino_t.h:31:33 */ // inode number
  3312  
  3313  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3314  //
  3315  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3316  //
  3317  // This file contains Original Code and/or Modifications of Original Code
  3318  // as defined in and that are subject to the Apple Public Source License
  3319  // Version 2.0 (the 'License'). You may not use this file except in
  3320  // compliance with the License. The rights granted to you under the License
  3321  // may not be used to create, or enable the creation or redistribution of,
  3322  // unlawful or unlicensed copies of an Apple operating system, or to
  3323  // circumvent, violate, or enable the circumvention or violation of, any
  3324  // terms of an Apple operating system software license agreement.
  3325  //
  3326  // Please obtain a copy of the License at
  3327  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3328  //
  3329  // The Original Code and all software distributed under the License are
  3330  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3331  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3332  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3333  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3334  // Please see the License for the specific language governing rights and
  3335  // limitations under the License.
  3336  //
  3337  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3338  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3339  //
  3340  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3341  //
  3342  // This file contains Original Code and/or Modifications of Original Code
  3343  // as defined in and that are subject to the Apple Public Source License
  3344  // Version 2.0 (the 'License'). You may not use this file except in
  3345  // compliance with the License. The rights granted to you under the License
  3346  // may not be used to create, or enable the creation or redistribution of,
  3347  // unlawful or unlicensed copies of an Apple operating system, or to
  3348  // circumvent, violate, or enable the circumvention or violation of, any
  3349  // terms of an Apple operating system software license agreement.
  3350  //
  3351  // Please obtain a copy of the License at
  3352  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3353  //
  3354  // The Original Code and all software distributed under the License are
  3355  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3356  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3357  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3358  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3359  // Please see the License for the specific language governing rights and
  3360  // limitations under the License.
  3361  //
  3362  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3363  
  3364  type ino64_t = uint64 /* _ino64_t.h:31:33 */ // 64bit inode number
  3365  
  3366  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3367  //
  3368  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3369  //
  3370  // This file contains Original Code and/or Modifications of Original Code
  3371  // as defined in and that are subject to the Apple Public Source License
  3372  // Version 2.0 (the 'License'). You may not use this file except in
  3373  // compliance with the License. The rights granted to you under the License
  3374  // may not be used to create, or enable the creation or redistribution of,
  3375  // unlawful or unlicensed copies of an Apple operating system, or to
  3376  // circumvent, violate, or enable the circumvention or violation of, any
  3377  // terms of an Apple operating system software license agreement.
  3378  //
  3379  // Please obtain a copy of the License at
  3380  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3381  //
  3382  // The Original Code and all software distributed under the License are
  3383  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3384  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3385  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3386  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3387  // Please see the License for the specific language governing rights and
  3388  // limitations under the License.
  3389  //
  3390  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3391  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3392  //
  3393  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3394  //
  3395  // This file contains Original Code and/or Modifications of Original Code
  3396  // as defined in and that are subject to the Apple Public Source License
  3397  // Version 2.0 (the 'License'). You may not use this file except in
  3398  // compliance with the License. The rights granted to you under the License
  3399  // may not be used to create, or enable the creation or redistribution of,
  3400  // unlawful or unlicensed copies of an Apple operating system, or to
  3401  // circumvent, violate, or enable the circumvention or violation of, any
  3402  // terms of an Apple operating system software license agreement.
  3403  //
  3404  // Please obtain a copy of the License at
  3405  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3406  //
  3407  // The Original Code and all software distributed under the License are
  3408  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3409  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3410  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3411  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3412  // Please see the License for the specific language governing rights and
  3413  // limitations under the License.
  3414  //
  3415  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3416  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3417  type key_t = int32 /* _key_t.h:31:26 */ // IPC key (for Sys V IPC)
  3418  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3419  //
  3420  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3421  //
  3422  // This file contains Original Code and/or Modifications of Original Code
  3423  // as defined in and that are subject to the Apple Public Source License
  3424  // Version 2.0 (the 'License'). You may not use this file except in
  3425  // compliance with the License. The rights granted to you under the License
  3426  // may not be used to create, or enable the creation or redistribution of,
  3427  // unlawful or unlicensed copies of an Apple operating system, or to
  3428  // circumvent, violate, or enable the circumvention or violation of, any
  3429  // terms of an Apple operating system software license agreement.
  3430  //
  3431  // Please obtain a copy of the License at
  3432  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3433  //
  3434  // The Original Code and all software distributed under the License are
  3435  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3436  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3437  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3438  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3439  // Please see the License for the specific language governing rights and
  3440  // limitations under the License.
  3441  //
  3442  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3443  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3444  //
  3445  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3446  //
  3447  // This file contains Original Code and/or Modifications of Original Code
  3448  // as defined in and that are subject to the Apple Public Source License
  3449  // Version 2.0 (the 'License'). You may not use this file except in
  3450  // compliance with the License. The rights granted to you under the License
  3451  // may not be used to create, or enable the creation or redistribution of,
  3452  // unlawful or unlicensed copies of an Apple operating system, or to
  3453  // circumvent, violate, or enable the circumvention or violation of, any
  3454  // terms of an Apple operating system software license agreement.
  3455  //
  3456  // Please obtain a copy of the License at
  3457  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3458  //
  3459  // The Original Code and all software distributed under the License are
  3460  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3461  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3462  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3463  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3464  // Please see the License for the specific language governing rights and
  3465  // limitations under the License.
  3466  //
  3467  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3468  
  3469  type mode_t = uint16 /* _mode_t.h:31:33 */
  3470  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3471  //
  3472  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3473  //
  3474  // This file contains Original Code and/or Modifications of Original Code
  3475  // as defined in and that are subject to the Apple Public Source License
  3476  // Version 2.0 (the 'License'). You may not use this file except in
  3477  // compliance with the License. The rights granted to you under the License
  3478  // may not be used to create, or enable the creation or redistribution of,
  3479  // unlawful or unlicensed copies of an Apple operating system, or to
  3480  // circumvent, violate, or enable the circumvention or violation of, any
  3481  // terms of an Apple operating system software license agreement.
  3482  //
  3483  // Please obtain a copy of the License at
  3484  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3485  //
  3486  // The Original Code and all software distributed under the License are
  3487  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3488  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3489  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3490  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3491  // Please see the License for the specific language governing rights and
  3492  // limitations under the License.
  3493  //
  3494  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3495  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3496  //
  3497  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3498  //
  3499  // This file contains Original Code and/or Modifications of Original Code
  3500  // as defined in and that are subject to the Apple Public Source License
  3501  // Version 2.0 (the 'License'). You may not use this file except in
  3502  // compliance with the License. The rights granted to you under the License
  3503  // may not be used to create, or enable the creation or redistribution of,
  3504  // unlawful or unlicensed copies of an Apple operating system, or to
  3505  // circumvent, violate, or enable the circumvention or violation of, any
  3506  // terms of an Apple operating system software license agreement.
  3507  //
  3508  // Please obtain a copy of the License at
  3509  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3510  //
  3511  // The Original Code and all software distributed under the License are
  3512  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3513  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3514  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3515  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3516  // Please see the License for the specific language governing rights and
  3517  // limitations under the License.
  3518  //
  3519  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3520  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3521  type nlink_t = uint16 /* _nlink_t.h:31:27 */ // link count
  3522  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3523  //
  3524  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3525  //
  3526  // This file contains Original Code and/or Modifications of Original Code
  3527  // as defined in and that are subject to the Apple Public Source License
  3528  // Version 2.0 (the 'License'). You may not use this file except in
  3529  // compliance with the License. The rights granted to you under the License
  3530  // may not be used to create, or enable the creation or redistribution of,
  3531  // unlawful or unlicensed copies of an Apple operating system, or to
  3532  // circumvent, violate, or enable the circumvention or violation of, any
  3533  // terms of an Apple operating system software license agreement.
  3534  //
  3535  // Please obtain a copy of the License at
  3536  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3537  //
  3538  // The Original Code and all software distributed under the License are
  3539  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3540  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3541  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3542  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3543  // Please see the License for the specific language governing rights and
  3544  // limitations under the License.
  3545  //
  3546  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3547  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3548  //
  3549  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3550  //
  3551  // This file contains Original Code and/or Modifications of Original Code
  3552  // as defined in and that are subject to the Apple Public Source License
  3553  // Version 2.0 (the 'License'). You may not use this file except in
  3554  // compliance with the License. The rights granted to you under the License
  3555  // may not be used to create, or enable the creation or redistribution of,
  3556  // unlawful or unlicensed copies of an Apple operating system, or to
  3557  // circumvent, violate, or enable the circumvention or violation of, any
  3558  // terms of an Apple operating system software license agreement.
  3559  //
  3560  // Please obtain a copy of the License at
  3561  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3562  //
  3563  // The Original Code and all software distributed under the License are
  3564  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3565  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3566  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3567  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3568  // Please see the License for the specific language governing rights and
  3569  // limitations under the License.
  3570  //
  3571  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3572  
  3573  type id_t = uint32 /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t
  3574  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3575  //
  3576  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3577  //
  3578  // This file contains Original Code and/or Modifications of Original Code
  3579  // as defined in and that are subject to the Apple Public Source License
  3580  // Version 2.0 (the 'License'). You may not use this file except in
  3581  // compliance with the License. The rights granted to you under the License
  3582  // may not be used to create, or enable the creation or redistribution of,
  3583  // unlawful or unlicensed copies of an Apple operating system, or to
  3584  // circumvent, violate, or enable the circumvention or violation of, any
  3585  // terms of an Apple operating system software license agreement.
  3586  //
  3587  // Please obtain a copy of the License at
  3588  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3589  //
  3590  // The Original Code and all software distributed under the License are
  3591  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3592  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3593  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3594  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3595  // Please see the License for the specific language governing rights and
  3596  // limitations under the License.
  3597  //
  3598  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3599  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3600  //
  3601  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3602  //
  3603  // This file contains Original Code and/or Modifications of Original Code
  3604  // as defined in and that are subject to the Apple Public Source License
  3605  // Version 2.0 (the 'License'). You may not use this file except in
  3606  // compliance with the License. The rights granted to you under the License
  3607  // may not be used to create, or enable the creation or redistribution of,
  3608  // unlawful or unlicensed copies of an Apple operating system, or to
  3609  // circumvent, violate, or enable the circumvention or violation of, any
  3610  // terms of an Apple operating system software license agreement.
  3611  //
  3612  // Please obtain a copy of the License at
  3613  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3614  //
  3615  // The Original Code and all software distributed under the License are
  3616  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3617  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3618  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3619  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3620  // Please see the License for the specific language governing rights and
  3621  // limitations under the License.
  3622  //
  3623  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3624  
  3625  type pid_t = int32 /* _pid_t.h:31:31 */
  3626  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3627  //
  3628  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3629  //
  3630  // This file contains Original Code and/or Modifications of Original Code
  3631  // as defined in and that are subject to the Apple Public Source License
  3632  // Version 2.0 (the 'License'). You may not use this file except in
  3633  // compliance with the License. The rights granted to you under the License
  3634  // may not be used to create, or enable the creation or redistribution of,
  3635  // unlawful or unlicensed copies of an Apple operating system, or to
  3636  // circumvent, violate, or enable the circumvention or violation of, any
  3637  // terms of an Apple operating system software license agreement.
  3638  //
  3639  // Please obtain a copy of the License at
  3640  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3641  //
  3642  // The Original Code and all software distributed under the License are
  3643  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3644  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3645  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3646  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3647  // Please see the License for the specific language governing rights and
  3648  // limitations under the License.
  3649  //
  3650  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3651  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3652  //
  3653  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3654  //
  3655  // This file contains Original Code and/or Modifications of Original Code
  3656  // as defined in and that are subject to the Apple Public Source License
  3657  // Version 2.0 (the 'License'). You may not use this file except in
  3658  // compliance with the License. The rights granted to you under the License
  3659  // may not be used to create, or enable the creation or redistribution of,
  3660  // unlawful or unlicensed copies of an Apple operating system, or to
  3661  // circumvent, violate, or enable the circumvention or violation of, any
  3662  // terms of an Apple operating system software license agreement.
  3663  //
  3664  // Please obtain a copy of the License at
  3665  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3666  //
  3667  // The Original Code and all software distributed under the License are
  3668  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3669  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3670  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3671  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3672  // Please see the License for the specific language governing rights and
  3673  // limitations under the License.
  3674  //
  3675  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3676  
  3677  type off_t = int64 /* _off_t.h:31:33 */
  3678  
  3679  type segsz_t = int32_t /* types.h:125:33 */ // segment size
  3680  type swblk_t = int32_t /* types.h:126:33 */ // swap offset
  3681  
  3682  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3683  //
  3684  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3685  //
  3686  // This file contains Original Code and/or Modifications of Original Code
  3687  // as defined in and that are subject to the Apple Public Source License
  3688  // Version 2.0 (the 'License'). You may not use this file except in
  3689  // compliance with the License. The rights granted to you under the License
  3690  // may not be used to create, or enable the creation or redistribution of,
  3691  // unlawful or unlicensed copies of an Apple operating system, or to
  3692  // circumvent, violate, or enable the circumvention or violation of, any
  3693  // terms of an Apple operating system software license agreement.
  3694  //
  3695  // Please obtain a copy of the License at
  3696  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3697  //
  3698  // The Original Code and all software distributed under the License are
  3699  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3700  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3701  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3702  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3703  // Please see the License for the specific language governing rights and
  3704  // limitations under the License.
  3705  //
  3706  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3707  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3708  //
  3709  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3710  //
  3711  // This file contains Original Code and/or Modifications of Original Code
  3712  // as defined in and that are subject to the Apple Public Source License
  3713  // Version 2.0 (the 'License'). You may not use this file except in
  3714  // compliance with the License. The rights granted to you under the License
  3715  // may not be used to create, or enable the creation or redistribution of,
  3716  // unlawful or unlicensed copies of an Apple operating system, or to
  3717  // circumvent, violate, or enable the circumvention or violation of, any
  3718  // terms of an Apple operating system software license agreement.
  3719  //
  3720  // Please obtain a copy of the License at
  3721  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3722  //
  3723  // The Original Code and all software distributed under the License are
  3724  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3725  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3726  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3727  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3728  // Please see the License for the specific language governing rights and
  3729  // limitations under the License.
  3730  //
  3731  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3732  
  3733  type uid_t = uint32 /* _uid_t.h:31:31 */
  3734  
  3735  // Major, minor numbers, dev_t's.
  3736  
  3737  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3738  //
  3739  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3740  //
  3741  // This file contains Original Code and/or Modifications of Original Code
  3742  // as defined in and that are subject to the Apple Public Source License
  3743  // Version 2.0 (the 'License'). You may not use this file except in
  3744  // compliance with the License. The rights granted to you under the License
  3745  // may not be used to create, or enable the creation or redistribution of,
  3746  // unlawful or unlicensed copies of an Apple operating system, or to
  3747  // circumvent, violate, or enable the circumvention or violation of, any
  3748  // terms of an Apple operating system software license agreement.
  3749  //
  3750  // Please obtain a copy of the License at
  3751  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3752  //
  3753  // The Original Code and all software distributed under the License are
  3754  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3755  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3756  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3757  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3758  // Please see the License for the specific language governing rights and
  3759  // limitations under the License.
  3760  //
  3761  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3762  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3763  //
  3764  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3765  //
  3766  // This file contains Original Code and/or Modifications of Original Code
  3767  // as defined in and that are subject to the Apple Public Source License
  3768  // Version 2.0 (the 'License'). You may not use this file except in
  3769  // compliance with the License. The rights granted to you under the License
  3770  // may not be used to create, or enable the creation or redistribution of,
  3771  // unlawful or unlicensed copies of an Apple operating system, or to
  3772  // circumvent, violate, or enable the circumvention or violation of, any
  3773  // terms of an Apple operating system software license agreement.
  3774  //
  3775  // Please obtain a copy of the License at
  3776  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3777  //
  3778  // The Original Code and all software distributed under the License are
  3779  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3780  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3781  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3782  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3783  // Please see the License for the specific language governing rights and
  3784  // limitations under the License.
  3785  //
  3786  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3787  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3788  type clock_t = uint64 /* _clock_t.h:31:33 */
  3789  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3790  //
  3791  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3792  //
  3793  // This file contains Original Code and/or Modifications of Original Code
  3794  // as defined in and that are subject to the Apple Public Source License
  3795  // Version 2.0 (the 'License'). You may not use this file except in
  3796  // compliance with the License. The rights granted to you under the License
  3797  // may not be used to create, or enable the creation or redistribution of,
  3798  // unlawful or unlicensed copies of an Apple operating system, or to
  3799  // circumvent, violate, or enable the circumvention or violation of, any
  3800  // terms of an Apple operating system software license agreement.
  3801  //
  3802  // Please obtain a copy of the License at
  3803  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3804  //
  3805  // The Original Code and all software distributed under the License are
  3806  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3807  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3808  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3809  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3810  // Please see the License for the specific language governing rights and
  3811  // limitations under the License.
  3812  //
  3813  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3814  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3815  //
  3816  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3817  //
  3818  // This file contains Original Code and/or Modifications of Original Code
  3819  // as defined in and that are subject to the Apple Public Source License
  3820  // Version 2.0 (the 'License'). You may not use this file except in
  3821  // compliance with the License. The rights granted to you under the License
  3822  // may not be used to create, or enable the creation or redistribution of,
  3823  // unlawful or unlicensed copies of an Apple operating system, or to
  3824  // circumvent, violate, or enable the circumvention or violation of, any
  3825  // terms of an Apple operating system software license agreement.
  3826  //
  3827  // Please obtain a copy of the License at
  3828  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3829  //
  3830  // The Original Code and all software distributed under the License are
  3831  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3832  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3833  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3834  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3835  // Please see the License for the specific language governing rights and
  3836  // limitations under the License.
  3837  //
  3838  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3839  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3840  //
  3841  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3842  //
  3843  // This file contains Original Code and/or Modifications of Original Code
  3844  // as defined in and that are subject to the Apple Public Source License
  3845  // Version 2.0 (the 'License'). You may not use this file except in
  3846  // compliance with the License. The rights granted to you under the License
  3847  // may not be used to create, or enable the creation or redistribution of,
  3848  // unlawful or unlicensed copies of an Apple operating system, or to
  3849  // circumvent, violate, or enable the circumvention or violation of, any
  3850  // terms of an Apple operating system software license agreement.
  3851  //
  3852  // Please obtain a copy of the License at
  3853  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3854  //
  3855  // The Original Code and all software distributed under the License are
  3856  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3857  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3858  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3859  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3860  // Please see the License for the specific language governing rights and
  3861  // limitations under the License.
  3862  //
  3863  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3864  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3865  type ssize_t = int64 /* _ssize_t.h:31:33 */
  3866  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3867  //
  3868  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3869  //
  3870  // This file contains Original Code and/or Modifications of Original Code
  3871  // as defined in and that are subject to the Apple Public Source License
  3872  // Version 2.0 (the 'License'). You may not use this file except in
  3873  // compliance with the License. The rights granted to you under the License
  3874  // may not be used to create, or enable the creation or redistribution of,
  3875  // unlawful or unlicensed copies of an Apple operating system, or to
  3876  // circumvent, violate, or enable the circumvention or violation of, any
  3877  // terms of an Apple operating system software license agreement.
  3878  //
  3879  // Please obtain a copy of the License at
  3880  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3881  //
  3882  // The Original Code and all software distributed under the License are
  3883  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3884  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3885  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3886  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3887  // Please see the License for the specific language governing rights and
  3888  // limitations under the License.
  3889  //
  3890  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3891  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3892  //
  3893  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3894  //
  3895  // This file contains Original Code and/or Modifications of Original Code
  3896  // as defined in and that are subject to the Apple Public Source License
  3897  // Version 2.0 (the 'License'). You may not use this file except in
  3898  // compliance with the License. The rights granted to you under the License
  3899  // may not be used to create, or enable the creation or redistribution of,
  3900  // unlawful or unlicensed copies of an Apple operating system, or to
  3901  // circumvent, violate, or enable the circumvention or violation of, any
  3902  // terms of an Apple operating system software license agreement.
  3903  //
  3904  // Please obtain a copy of the License at
  3905  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3906  //
  3907  // The Original Code and all software distributed under the License are
  3908  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3909  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3910  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3911  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3912  // Please see the License for the specific language governing rights and
  3913  // limitations under the License.
  3914  //
  3915  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3916  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3917  type time_t = int64 /* _time_t.h:31:33 */
  3918  
  3919  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3920  //
  3921  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3922  //
  3923  // This file contains Original Code and/or Modifications of Original Code
  3924  // as defined in and that are subject to the Apple Public Source License
  3925  // Version 2.0 (the 'License'). You may not use this file except in
  3926  // compliance with the License. The rights granted to you under the License
  3927  // may not be used to create, or enable the creation or redistribution of,
  3928  // unlawful or unlicensed copies of an Apple operating system, or to
  3929  // circumvent, violate, or enable the circumvention or violation of, any
  3930  // terms of an Apple operating system software license agreement.
  3931  //
  3932  // Please obtain a copy of the License at
  3933  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3934  //
  3935  // The Original Code and all software distributed under the License are
  3936  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3937  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3938  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3939  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3940  // Please see the License for the specific language governing rights and
  3941  // limitations under the License.
  3942  //
  3943  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3944  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3945  //
  3946  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3947  //
  3948  // This file contains Original Code and/or Modifications of Original Code
  3949  // as defined in and that are subject to the Apple Public Source License
  3950  // Version 2.0 (the 'License'). You may not use this file except in
  3951  // compliance with the License. The rights granted to you under the License
  3952  // may not be used to create, or enable the creation or redistribution of,
  3953  // unlawful or unlicensed copies of an Apple operating system, or to
  3954  // circumvent, violate, or enable the circumvention or violation of, any
  3955  // terms of an Apple operating system software license agreement.
  3956  //
  3957  // Please obtain a copy of the License at
  3958  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3959  //
  3960  // The Original Code and all software distributed under the License are
  3961  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3962  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3963  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3964  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3965  // Please see the License for the specific language governing rights and
  3966  // limitations under the License.
  3967  //
  3968  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3969  
  3970  type useconds_t = uint32 /* _useconds_t.h:31:33 */
  3971  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3972  //
  3973  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3974  //
  3975  // This file contains Original Code and/or Modifications of Original Code
  3976  // as defined in and that are subject to the Apple Public Source License
  3977  // Version 2.0 (the 'License'). You may not use this file except in
  3978  // compliance with the License. The rights granted to you under the License
  3979  // may not be used to create, or enable the creation or redistribution of,
  3980  // unlawful or unlicensed copies of an Apple operating system, or to
  3981  // circumvent, violate, or enable the circumvention or violation of, any
  3982  // terms of an Apple operating system software license agreement.
  3983  //
  3984  // Please obtain a copy of the License at
  3985  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3986  //
  3987  // The Original Code and all software distributed under the License are
  3988  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3989  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3990  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3991  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3992  // Please see the License for the specific language governing rights and
  3993  // limitations under the License.
  3994  //
  3995  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3996  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3997  //
  3998  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3999  //
  4000  // This file contains Original Code and/or Modifications of Original Code
  4001  // as defined in and that are subject to the Apple Public Source License
  4002  // Version 2.0 (the 'License'). You may not use this file except in
  4003  // compliance with the License. The rights granted to you under the License
  4004  // may not be used to create, or enable the creation or redistribution of,
  4005  // unlawful or unlicensed copies of an Apple operating system, or to
  4006  // circumvent, violate, or enable the circumvention or violation of, any
  4007  // terms of an Apple operating system software license agreement.
  4008  //
  4009  // Please obtain a copy of the License at
  4010  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4011  //
  4012  // The Original Code and all software distributed under the License are
  4013  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4014  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4015  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4016  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4017  // Please see the License for the specific language governing rights and
  4018  // limitations under the License.
  4019  //
  4020  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4021  
  4022  type suseconds_t = int32 /* _suseconds_t.h:31:33 */
  4023  
  4024  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4025  //
  4026  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4027  //
  4028  // This file contains Original Code and/or Modifications of Original Code
  4029  // as defined in and that are subject to the Apple Public Source License
  4030  // Version 2.0 (the 'License'). You may not use this file except in
  4031  // compliance with the License. The rights granted to you under the License
  4032  // may not be used to create, or enable the creation or redistribution of,
  4033  // unlawful or unlicensed copies of an Apple operating system, or to
  4034  // circumvent, violate, or enable the circumvention or violation of, any
  4035  // terms of an Apple operating system software license agreement.
  4036  //
  4037  // Please obtain a copy of the License at
  4038  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4039  //
  4040  // The Original Code and all software distributed under the License are
  4041  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4042  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4043  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4044  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4045  // Please see the License for the specific language governing rights and
  4046  // limitations under the License.
  4047  //
  4048  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4049  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4050  //
  4051  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4052  //
  4053  // This file contains Original Code and/or Modifications of Original Code
  4054  // as defined in and that are subject to the Apple Public Source License
  4055  // Version 2.0 (the 'License'). You may not use this file except in
  4056  // compliance with the License. The rights granted to you under the License
  4057  // may not be used to create, or enable the creation or redistribution of,
  4058  // unlawful or unlicensed copies of an Apple operating system, or to
  4059  // circumvent, violate, or enable the circumvention or violation of, any
  4060  // terms of an Apple operating system software license agreement.
  4061  //
  4062  // Please obtain a copy of the License at
  4063  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4064  //
  4065  // The Original Code and all software distributed under the License are
  4066  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4067  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4068  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4069  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4070  // Please see the License for the specific language governing rights and
  4071  // limitations under the License.
  4072  //
  4073  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4074  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4075  type rsize_t = uint64 /* _rsize_t.h:31:32 */
  4076  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4077  //
  4078  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4079  //
  4080  // This file contains Original Code and/or Modifications of Original Code
  4081  // as defined in and that are subject to the Apple Public Source License
  4082  // Version 2.0 (the 'License'). You may not use this file except in
  4083  // compliance with the License. The rights granted to you under the License
  4084  // may not be used to create, or enable the creation or redistribution of,
  4085  // unlawful or unlicensed copies of an Apple operating system, or to
  4086  // circumvent, violate, or enable the circumvention or violation of, any
  4087  // terms of an Apple operating system software license agreement.
  4088  //
  4089  // Please obtain a copy of the License at
  4090  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4091  //
  4092  // The Original Code and all software distributed under the License are
  4093  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4094  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4095  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4096  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4097  // Please see the License for the specific language governing rights and
  4098  // limitations under the License.
  4099  //
  4100  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4101  type errno_t = int32 /* _errno_t.h:30:32 */
  4102  
  4103  // This code is present here in order to maintain historical backward
  4104  // compatability, and is intended to be removed at some point in the
  4105  // future; please include <sys/select.h> instead.
  4106  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4107  //
  4108  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4109  //
  4110  // This file contains Original Code and/or Modifications of Original Code
  4111  // as defined in and that are subject to the Apple Public Source License
  4112  // Version 2.0 (the 'License'). You may not use this file except in
  4113  // compliance with the License. The rights granted to you under the License
  4114  // may not be used to create, or enable the creation or redistribution of,
  4115  // unlawful or unlicensed copies of an Apple operating system, or to
  4116  // circumvent, violate, or enable the circumvention or violation of, any
  4117  // terms of an Apple operating system software license agreement.
  4118  //
  4119  // Please obtain a copy of the License at
  4120  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4121  //
  4122  // The Original Code and all software distributed under the License are
  4123  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4124  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4125  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4126  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4127  // Please see the License for the specific language governing rights and
  4128  // limitations under the License.
  4129  //
  4130  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4131  
  4132  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4133  //
  4134  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4135  //
  4136  // This file contains Original Code and/or Modifications of Original Code
  4137  // as defined in and that are subject to the Apple Public Source License
  4138  // Version 2.0 (the 'License'). You may not use this file except in
  4139  // compliance with the License. The rights granted to you under the License
  4140  // may not be used to create, or enable the creation or redistribution of,
  4141  // unlawful or unlicensed copies of an Apple operating system, or to
  4142  // circumvent, violate, or enable the circumvention or violation of, any
  4143  // terms of an Apple operating system software license agreement.
  4144  //
  4145  // Please obtain a copy of the License at
  4146  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4147  //
  4148  // The Original Code and all software distributed under the License are
  4149  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4150  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4151  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4152  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4153  // Please see the License for the specific language governing rights and
  4154  // limitations under the License.
  4155  //
  4156  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4157  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4158  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  4159  //
  4160  // @APPLE_LICENSE_HEADER_START@
  4161  //
  4162  // This file contains Original Code and/or Modifications of Original Code
  4163  // as defined in and that are subject to the Apple Public Source License
  4164  // Version 2.0 (the 'License'). You may not use this file except in
  4165  // compliance with the License. Please obtain a copy of the License at
  4166  // http://www.opensource.apple.com/apsl/ and read it before using this
  4167  // file.
  4168  //
  4169  // The Original Code and all software distributed under the License are
  4170  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4171  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4172  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4173  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4174  // Please see the License for the specific language governing rights and
  4175  // limitations under the License.
  4176  //
  4177  // @APPLE_LICENSE_HEADER_END@
  4178  
  4179  //
  4180  //     These macros are for use in OS header files. They enable function prototypes
  4181  //     and Objective-C methods to be tagged with the OS version in which they
  4182  //     were first available; and, if applicable, the OS version in which they
  4183  //     became deprecated.
  4184  //
  4185  //     The desktop Mac OS X and iOS each have different version numbers.
  4186  //     The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  4187  //     and iOS version numbers.  For instance:
  4188  //         __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  4189  //     means the function/method was first available on Mac OS X 10.2 on the desktop
  4190  //     and first available in iOS 2.0 on the iPhone.
  4191  //
  4192  //     If a function is available on one platform, but not the other a _NA (not
  4193  //     applicable) parameter is used.  For instance:
  4194  //             __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  4195  //     means that the function/method was first available on Mac OS X 10.3, and it
  4196  //     currently not implemented on the iPhone.
  4197  //
  4198  //     At some point, a function/method may be deprecated.  That means Apple
  4199  //     recommends applications stop using the function, either because there is a
  4200  //     better replacement or the functionality is being phased out.  Deprecated
  4201  //     functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  4202  //     macro which specifies the OS version where the function became available
  4203  //     as well as the OS version in which it became deprecated.  For instance:
  4204  //         __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  4205  //     means that the function/method was introduced in Mac OS X 10.0, then
  4206  //     became deprecated beginning in Mac OS X 10.5.  On iOS the function
  4207  //     has never been available.
  4208  //
  4209  //     For these macros to function properly, a program must specify the OS version range
  4210  //     it is targeting.  The min OS version is specified as an option to the compiler:
  4211  //     -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  4212  //     when building for the iPhone.  The upper bound for the OS version is rarely needed,
  4213  //     but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  4214  //     Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  4215  //
  4216  //     Examples:
  4217  //
  4218  //         A function available in Mac OS X 10.5 and later, but not on the phone:
  4219  //
  4220  //             extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  4221  //
  4222  //
  4223  //         An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  4224  //
  4225  //             @interface MyClass : NSObject
  4226  //             -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  4227  //             @end
  4228  //
  4229  //
  4230  //         An enum available on the phone, but not available on Mac OS X:
  4231  //
  4232  //             #if __IPHONE_OS_VERSION_MIN_REQUIRED
  4233  //                 enum { myEnum = 1 };
  4234  //             #endif
  4235  //            Note: this works when targeting the Mac OS X platform because
  4236  //            __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  4237  //
  4238  //
  4239  //         An enum with values added in different iPhoneOS versions:
  4240  //
  4241  // 			enum {
  4242  // 			    myX  = 1,	// Usable on iPhoneOS 2.1 and later
  4243  // 			    myY  = 2,	// Usable on iPhoneOS 3.0 and later
  4244  // 			    myZ  = 3,	// Usable on iPhoneOS 3.0 and later
  4245  // 				...
  4246  // 		      Note: you do not want to use #if with enumeration values
  4247  // 			  when a client needs to see all values at compile time
  4248  // 			  and use runtime logic to only use the viable values.
  4249  //
  4250  //
  4251  //     It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  4252  //     source base that can be compiled to target a range of OS versions.  It is best
  4253  //     to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  4254  //     That is because you might get compiled on an old OS that does not define a later
  4255  //     OS version macro, and in the C preprocessor undefined values evaluate to zero
  4256  //     in expresssions, which could cause the #if expression to evaluate in an unexpected
  4257  //     way.
  4258  //
  4259  //         #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  4260  //             // code only compiled when targeting Mac OS X and not iPhone
  4261  //             // note use of 1050 instead of __MAC_10_5
  4262  //             #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  4263  //                 // code in here might run on pre-Leopard OS
  4264  //             #else
  4265  //                 // code here can assume Leopard or later
  4266  //             #endif
  4267  //         #endif
  4268  //
  4269  //
  4270  
  4271  // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  4272  // in an upcoming release. This soft deprecation is an intermediate step before formal
  4273  // deprecation to notify developers about the API before compiler warnings are generated.
  4274  // You can find all places in your code that use soft deprecated API by redefining the
  4275  // value of this macro to your current minimum deployment target, for example:
  4276  // (macOS)
  4277  //   clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  4278  // (iOS)
  4279  //   clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  4280  
  4281  // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  4282  //
  4283  // @APPLE_LICENSE_HEADER_START@
  4284  //
  4285  // This file contains Original Code and/or Modifications of Original Code
  4286  // as defined in and that are subject to the Apple Public Source License
  4287  // Version 2.0 (the 'License'). You may not use this file except in
  4288  // compliance with the License. Please obtain a copy of the License at
  4289  // http://www.opensource.apple.com/apsl/ and read it before using this
  4290  // file.
  4291  //
  4292  // The Original Code and all software distributed under the License are
  4293  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4294  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4295  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4296  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4297  // Please see the License for the specific language governing rights and
  4298  // limitations under the License.
  4299  //
  4300  // @APPLE_LICENSE_HEADER_END@
  4301  
  4302  // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  4303  
  4304  // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  4305  
  4306  // Set up standard Mac OS X versions
  4307  
  4308  //  DO NOT EDIT THIS FILE.
  4309  //
  4310  //     It has been auto-edited by fixincludes from:
  4311  //
  4312  // 	"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/AvailabilityInternal.h"
  4313  //
  4314  //     This had to be done to correct non-standard usages in the
  4315  //     original, manufacturer supplied header file.
  4316  
  4317  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  4318  //
  4319  // @APPLE_LICENSE_HEADER_START@
  4320  //
  4321  // This file contains Original Code and/or Modifications of Original Code
  4322  // as defined in and that are subject to the Apple Public Source License
  4323  // Version 2.0 (the 'License'). You may not use this file except in
  4324  // compliance with the License. Please obtain a copy of the License at
  4325  // http://www.opensource.apple.com/apsl/ and read it before using this
  4326  // file.
  4327  //
  4328  // The Original Code and all software distributed under the License are
  4329  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4330  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4331  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4332  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4333  // Please see the License for the specific language governing rights and
  4334  // limitations under the License.
  4335  //
  4336  // @APPLE_LICENSE_HEADER_END@
  4337  
  4338  //
  4339  //     File:       AvailabilityInternal.h
  4340  //
  4341  //     Contains:   implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  4342  //
  4343  
  4344  // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  4345  
  4346  // make sure a default max version is set
  4347  
  4348  //
  4349  //  Macros for defining which versions/platform a given symbol can be used.
  4350  //
  4351  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  4352  //
  4353  
  4354  // Evaluate to nothing for compilers that don't support availability.
  4355  
  4356  // Swift compiler version
  4357  // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  4358  // Example:
  4359  //
  4360  //  #if __swift_compiler_version_at_least(800, 2, 20)
  4361  //  - (nonnull NSString *)description;
  4362  //  #else
  4363  //  - (NSString *)description;
  4364  //  #endif
  4365  
  4366  // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  4367  
  4368  // for use to document app extension usage
  4369  
  4370  // for use marking APIs available info for Mac OSX
  4371  
  4372  // for use marking APIs available info for iOS
  4373  
  4374  // for use marking APIs available info for tvOS
  4375  
  4376  // for use marking APIs available info for Watch OS
  4377  
  4378  // for use marking APIs unavailable for swift
  4379  
  4380  //
  4381  //  Macros for defining which versions/platform a given symbol can be used.
  4382  //
  4383  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  4384  //
  4385  //  * Note that these macros are only compatible with clang compilers that
  4386  //  * support the following target selection options:
  4387  //  *
  4388  //  * -mmacosx-version-min
  4389  //  * -miphoneos-version-min
  4390  //  * -mwatchos-version-min
  4391  //  * -mtvos-version-min
  4392  //
  4393  
  4394  // Evaluate to nothing for compilers that don't support availability.
  4395  
  4396  // If SPI decorations have not been defined elsewhere, disable them.
  4397  
  4398  // Select uses bit masks of file descriptors in longs.  These macros
  4399  // manipulate such bit fields (the filesystem macros use chars).  The
  4400  // extra protection here is to permit application redefinition above
  4401  // the default size.
  4402  
  4403  type fd_set1 = struct{ fds_bits [32]int32 } /* _fd_def.h:50:9 */
  4404  
  4405  // This code is present here in order to maintain historical backward
  4406  // compatability, and is intended to be removed at some point in the
  4407  // future; please include <sys/select.h> instead.
  4408  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4409  //
  4410  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4411  //
  4412  // This file contains Original Code and/or Modifications of Original Code
  4413  // as defined in and that are subject to the Apple Public Source License
  4414  // Version 2.0 (the 'License'). You may not use this file except in
  4415  // compliance with the License. The rights granted to you under the License
  4416  // may not be used to create, or enable the creation or redistribution of,
  4417  // unlawful or unlicensed copies of an Apple operating system, or to
  4418  // circumvent, violate, or enable the circumvention or violation of, any
  4419  // terms of an Apple operating system software license agreement.
  4420  //
  4421  // Please obtain a copy of the License at
  4422  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4423  //
  4424  // The Original Code and all software distributed under the License are
  4425  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4426  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4427  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4428  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4429  // Please see the License for the specific language governing rights and
  4430  // limitations under the License.
  4431  //
  4432  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4433  
  4434  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4435  //
  4436  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4437  //
  4438  // This file contains Original Code and/or Modifications of Original Code
  4439  // as defined in and that are subject to the Apple Public Source License
  4440  // Version 2.0 (the 'License'). You may not use this file except in
  4441  // compliance with the License. The rights granted to you under the License
  4442  // may not be used to create, or enable the creation or redistribution of,
  4443  // unlawful or unlicensed copies of an Apple operating system, or to
  4444  // circumvent, violate, or enable the circumvention or violation of, any
  4445  // terms of an Apple operating system software license agreement.
  4446  //
  4447  // Please obtain a copy of the License at
  4448  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4449  //
  4450  // The Original Code and all software distributed under the License are
  4451  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4452  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4453  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4454  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4455  // Please see the License for the specific language governing rights and
  4456  // limitations under the License.
  4457  //
  4458  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4459  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4460  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  4461  //
  4462  // @APPLE_LICENSE_HEADER_START@
  4463  //
  4464  // This file contains Original Code and/or Modifications of Original Code
  4465  // as defined in and that are subject to the Apple Public Source License
  4466  // Version 2.0 (the 'License'). You may not use this file except in
  4467  // compliance with the License. Please obtain a copy of the License at
  4468  // http://www.opensource.apple.com/apsl/ and read it before using this
  4469  // 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_LICENSE_HEADER_END@
  4480  
  4481  //
  4482  //     These macros are for use in OS header files. They enable function prototypes
  4483  //     and Objective-C methods to be tagged with the OS version in which they
  4484  //     were first available; and, if applicable, the OS version in which they
  4485  //     became deprecated.
  4486  //
  4487  //     The desktop Mac OS X and iOS each have different version numbers.
  4488  //     The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  4489  //     and iOS version numbers.  For instance:
  4490  //         __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  4491  //     means the function/method was first available on Mac OS X 10.2 on the desktop
  4492  //     and first available in iOS 2.0 on the iPhone.
  4493  //
  4494  //     If a function is available on one platform, but not the other a _NA (not
  4495  //     applicable) parameter is used.  For instance:
  4496  //             __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  4497  //     means that the function/method was first available on Mac OS X 10.3, and it
  4498  //     currently not implemented on the iPhone.
  4499  //
  4500  //     At some point, a function/method may be deprecated.  That means Apple
  4501  //     recommends applications stop using the function, either because there is a
  4502  //     better replacement or the functionality is being phased out.  Deprecated
  4503  //     functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  4504  //     macro which specifies the OS version where the function became available
  4505  //     as well as the OS version in which it became deprecated.  For instance:
  4506  //         __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  4507  //     means that the function/method was introduced in Mac OS X 10.0, then
  4508  //     became deprecated beginning in Mac OS X 10.5.  On iOS the function
  4509  //     has never been available.
  4510  //
  4511  //     For these macros to function properly, a program must specify the OS version range
  4512  //     it is targeting.  The min OS version is specified as an option to the compiler:
  4513  //     -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  4514  //     when building for the iPhone.  The upper bound for the OS version is rarely needed,
  4515  //     but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  4516  //     Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  4517  //
  4518  //     Examples:
  4519  //
  4520  //         A function available in Mac OS X 10.5 and later, but not on the phone:
  4521  //
  4522  //             extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  4523  //
  4524  //
  4525  //         An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  4526  //
  4527  //             @interface MyClass : NSObject
  4528  //             -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  4529  //             @end
  4530  //
  4531  //
  4532  //         An enum available on the phone, but not available on Mac OS X:
  4533  //
  4534  //             #if __IPHONE_OS_VERSION_MIN_REQUIRED
  4535  //                 enum { myEnum = 1 };
  4536  //             #endif
  4537  //            Note: this works when targeting the Mac OS X platform because
  4538  //            __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  4539  //
  4540  //
  4541  //         An enum with values added in different iPhoneOS versions:
  4542  //
  4543  // 			enum {
  4544  // 			    myX  = 1,	// Usable on iPhoneOS 2.1 and later
  4545  // 			    myY  = 2,	// Usable on iPhoneOS 3.0 and later
  4546  // 			    myZ  = 3,	// Usable on iPhoneOS 3.0 and later
  4547  // 				...
  4548  // 		      Note: you do not want to use #if with enumeration values
  4549  // 			  when a client needs to see all values at compile time
  4550  // 			  and use runtime logic to only use the viable values.
  4551  //
  4552  //
  4553  //     It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  4554  //     source base that can be compiled to target a range of OS versions.  It is best
  4555  //     to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  4556  //     That is because you might get compiled on an old OS that does not define a later
  4557  //     OS version macro, and in the C preprocessor undefined values evaluate to zero
  4558  //     in expresssions, which could cause the #if expression to evaluate in an unexpected
  4559  //     way.
  4560  //
  4561  //         #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  4562  //             // code only compiled when targeting Mac OS X and not iPhone
  4563  //             // note use of 1050 instead of __MAC_10_5
  4564  //             #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  4565  //                 // code in here might run on pre-Leopard OS
  4566  //             #else
  4567  //                 // code here can assume Leopard or later
  4568  //             #endif
  4569  //         #endif
  4570  //
  4571  //
  4572  
  4573  // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  4574  // in an upcoming release. This soft deprecation is an intermediate step before formal
  4575  // deprecation to notify developers about the API before compiler warnings are generated.
  4576  // You can find all places in your code that use soft deprecated API by redefining the
  4577  // value of this macro to your current minimum deployment target, for example:
  4578  // (macOS)
  4579  //   clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  4580  // (iOS)
  4581  //   clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  4582  
  4583  // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  4584  //
  4585  // @APPLE_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. Please obtain a copy of the License at
  4591  // http://www.opensource.apple.com/apsl/ and read it before using this
  4592  // file.
  4593  //
  4594  // The Original Code and all software distributed under the License are
  4595  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4596  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4597  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4598  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4599  // Please see the License for the specific language governing rights and
  4600  // limitations under the License.
  4601  //
  4602  // @APPLE_LICENSE_HEADER_END@
  4603  
  4604  // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  4605  
  4606  // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  4607  
  4608  // Set up standard Mac OS X versions
  4609  
  4610  //  DO NOT EDIT THIS FILE.
  4611  //
  4612  //     It has been auto-edited by fixincludes from:
  4613  //
  4614  // 	"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/AvailabilityInternal.h"
  4615  //
  4616  //     This had to be done to correct non-standard usages in the
  4617  //     original, manufacturer supplied header file.
  4618  
  4619  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  4620  //
  4621  // @APPLE_LICENSE_HEADER_START@
  4622  //
  4623  // This file contains Original Code and/or Modifications of Original Code
  4624  // as defined in and that are subject to the Apple Public Source License
  4625  // Version 2.0 (the 'License'). You may not use this file except in
  4626  // compliance with the License. Please obtain a copy of the License at
  4627  // http://www.opensource.apple.com/apsl/ and read it before using this
  4628  // file.
  4629  //
  4630  // The Original Code and all software distributed under the License are
  4631  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4632  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4633  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4634  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4635  // Please see the License for the specific language governing rights and
  4636  // limitations under the License.
  4637  //
  4638  // @APPLE_LICENSE_HEADER_END@
  4639  
  4640  //
  4641  //     File:       AvailabilityInternal.h
  4642  //
  4643  //     Contains:   implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  4644  //
  4645  
  4646  // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  4647  
  4648  // make sure a default max version is set
  4649  
  4650  //
  4651  //  Macros for defining which versions/platform a given symbol can be used.
  4652  //
  4653  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  4654  //
  4655  
  4656  // Evaluate to nothing for compilers that don't support availability.
  4657  
  4658  // Swift compiler version
  4659  // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  4660  // Example:
  4661  //
  4662  //  #if __swift_compiler_version_at_least(800, 2, 20)
  4663  //  - (nonnull NSString *)description;
  4664  //  #else
  4665  //  - (NSString *)description;
  4666  //  #endif
  4667  
  4668  // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  4669  
  4670  // for use to document app extension usage
  4671  
  4672  // for use marking APIs available info for Mac OSX
  4673  
  4674  // for use marking APIs available info for iOS
  4675  
  4676  // for use marking APIs available info for tvOS
  4677  
  4678  // for use marking APIs available info for Watch OS
  4679  
  4680  // for use marking APIs unavailable for swift
  4681  
  4682  //
  4683  //  Macros for defining which versions/platform a given symbol can be used.
  4684  //
  4685  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  4686  //
  4687  //  * Note that these macros are only compatible with clang compilers that
  4688  //  * support the following target selection options:
  4689  //  *
  4690  //  * -mmacosx-version-min
  4691  //  * -miphoneos-version-min
  4692  //  * -mwatchos-version-min
  4693  //  * -mtvos-version-min
  4694  //
  4695  
  4696  // Evaluate to nothing for compilers that don't support availability.
  4697  
  4698  // If SPI decorations have not been defined elsewhere, disable them.
  4699  
  4700  // Select uses bit masks of file descriptors in longs.  These macros
  4701  // manipulate such bit fields (the filesystem macros use chars).  The
  4702  // extra protection here is to permit application redefinition above
  4703  // the default size.
  4704  
  4705  type fd_set = fd_set1 /* _fd_def.h:52:3 */
  4706  
  4707  // Use the built-in bzero function instead of the library version so that
  4708  // we do not pollute the namespace or introduce prototype warnings.
  4709  
  4710  type fd_mask = int32 /* types.h:189:25 */
  4711  
  4712  // Select uses bit masks of file descriptors in longs.  These macros
  4713  // manipulate such bit fields (the filesystem macros use chars).  The
  4714  // extra protection here is to permit application redefinition above
  4715  // the default size.
  4716  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4717  //
  4718  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4719  //
  4720  // This file contains Original Code and/or Modifications of Original Code
  4721  // as defined in and that are subject to the Apple Public Source License
  4722  // Version 2.0 (the 'License'). You may not use this file except in
  4723  // compliance with the License. The rights granted to you under the License
  4724  // may not be used to create, or enable the creation or redistribution of,
  4725  // unlawful or unlicensed copies of an Apple operating system, or to
  4726  // circumvent, violate, or enable the circumvention or violation of, any
  4727  // terms of an Apple operating system software license agreement.
  4728  //
  4729  // Please obtain a copy of the License at
  4730  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4731  //
  4732  // The Original Code and all software distributed under the License are
  4733  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4734  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4735  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4736  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4737  // Please see the License for the specific language governing rights and
  4738  // limitations under the License.
  4739  //
  4740  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4741  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4742  //
  4743  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4744  //
  4745  // This file contains Original Code and/or Modifications of Original Code
  4746  // as defined in and that are subject to the Apple Public Source License
  4747  // Version 2.0 (the 'License'). You may not use this file except in
  4748  // compliance with the License. The rights granted to you under the License
  4749  // may not be used to create, or enable the creation or redistribution of,
  4750  // unlawful or unlicensed copies of an Apple operating system, or to
  4751  // circumvent, violate, or enable the circumvention or violation of, any
  4752  // terms of an Apple operating system software license agreement.
  4753  //
  4754  // Please obtain a copy of the License at
  4755  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4756  //
  4757  // The Original Code and all software distributed under the License are
  4758  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4759  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4760  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4761  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4762  // Please see the License for the specific language governing rights and
  4763  // limitations under the License.
  4764  //
  4765  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4766  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4767  //
  4768  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4769  //
  4770  // This file contains Original Code and/or Modifications of Original Code
  4771  // as defined in and that are subject to the Apple Public Source License
  4772  // Version 2.0 (the 'License'). You may not use this file except in
  4773  // compliance with the License. The rights granted to you under the License
  4774  // may not be used to create, or enable the creation or redistribution of,
  4775  // unlawful or unlicensed copies of an Apple operating system, or to
  4776  // circumvent, violate, or enable the circumvention or violation of, any
  4777  // terms of an Apple operating system software license agreement.
  4778  //
  4779  // Please obtain a copy of the License at
  4780  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4781  //
  4782  // The Original Code and all software distributed under the License are
  4783  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4784  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4785  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4786  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4787  // Please see the License for the specific language governing rights and
  4788  // limitations under the License.
  4789  //
  4790  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4791  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4792  //
  4793  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4794  //
  4795  // This file contains Original Code and/or Modifications of Original Code
  4796  // as defined in and that are subject to the Apple Public Source License
  4797  // Version 2.0 (the 'License'). You may not use this file except in
  4798  // compliance with the License. The rights granted to you under the License
  4799  // may not be used to create, or enable the creation or redistribution of,
  4800  // unlawful or unlicensed copies of an Apple operating system, or to
  4801  // circumvent, violate, or enable the circumvention or violation of, any
  4802  // terms of an Apple operating system software license agreement.
  4803  //
  4804  // Please obtain a copy of the License at
  4805  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4806  //
  4807  // The Original Code and all software distributed under the License are
  4808  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4809  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4810  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4811  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4812  // Please see the License for the specific language governing rights and
  4813  // limitations under the License.
  4814  //
  4815  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4816  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4817  //
  4818  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4819  //
  4820  // This file contains Original Code and/or Modifications of Original Code
  4821  // as defined in and that are subject to the Apple Public Source License
  4822  // Version 2.0 (the 'License'). You may not use this file except in
  4823  // compliance with the License. The rights granted to you under the License
  4824  // may not be used to create, or enable the creation or redistribution of,
  4825  // unlawful or unlicensed copies of an Apple operating system, or to
  4826  // circumvent, violate, or enable the circumvention or violation of, any
  4827  // terms of an Apple operating system software license agreement.
  4828  //
  4829  // Please obtain a copy of the License at
  4830  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4831  //
  4832  // The Original Code and all software distributed under the License are
  4833  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4834  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4835  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4836  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4837  // Please see the License for the specific language governing rights and
  4838  // limitations under the License.
  4839  //
  4840  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4841  
  4842  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4843  //
  4844  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4845  //
  4846  // This file contains Original Code and/or Modifications of Original Code
  4847  // as defined in and that are subject to the Apple Public Source License
  4848  // Version 2.0 (the 'License'). You may not use this file except in
  4849  // compliance with the License. The rights granted to you under the License
  4850  // may not be used to create, or enable the creation or redistribution of,
  4851  // unlawful or unlicensed copies of an Apple operating system, or to
  4852  // circumvent, violate, or enable the circumvention or violation of, any
  4853  // terms of an Apple operating system software license agreement.
  4854  //
  4855  // Please obtain a copy of the License at
  4856  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4857  //
  4858  // The Original Code and all software distributed under the License are
  4859  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4860  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4861  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4862  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4863  // Please see the License for the specific language governing rights and
  4864  // limitations under the License.
  4865  //
  4866  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4867  
  4868  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4869  //
  4870  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4871  //
  4872  // This file contains Original Code and/or Modifications of Original Code
  4873  // as defined in and that are subject to the Apple Public Source License
  4874  // Version 2.0 (the 'License'). You may not use this file except in
  4875  // compliance with the License. The rights granted to you under the License
  4876  // may not be used to create, or enable the creation or redistribution of,
  4877  // unlawful or unlicensed copies of an Apple operating system, or to
  4878  // circumvent, violate, or enable the circumvention or violation of, any
  4879  // terms of an Apple operating system software license agreement.
  4880  //
  4881  // Please obtain a copy of the License at
  4882  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4883  //
  4884  // The Original Code and all software distributed under the License are
  4885  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4886  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4887  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4888  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4889  // Please see the License for the specific language governing rights and
  4890  // limitations under the License.
  4891  //
  4892  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4893  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4894  //
  4895  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4896  //
  4897  // This file contains Original Code and/or Modifications of Original Code
  4898  // as defined in and that are subject to the Apple Public Source License
  4899  // Version 2.0 (the 'License'). You may not use this file except in
  4900  // compliance with the License. The rights granted to you under the License
  4901  // may not be used to create, or enable the creation or redistribution of,
  4902  // unlawful or unlicensed copies of an Apple operating system, or to
  4903  // circumvent, violate, or enable the circumvention or violation of, any
  4904  // terms of an Apple operating system software license agreement.
  4905  //
  4906  // Please obtain a copy of the License at
  4907  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4908  //
  4909  // The Original Code and all software distributed under the License are
  4910  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4911  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4912  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4913  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4914  // Please see the License for the specific language governing rights and
  4915  // limitations under the License.
  4916  //
  4917  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4918  
  4919  type pthread_attr_t = _opaque_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  4920  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4921  //
  4922  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4923  //
  4924  // This file contains Original Code and/or Modifications of Original Code
  4925  // as defined in and that are subject to the Apple Public Source License
  4926  // Version 2.0 (the 'License'). You may not use this file except in
  4927  // compliance with the License. The rights granted to you under the License
  4928  // may not be used to create, or enable the creation or redistribution of,
  4929  // unlawful or unlicensed copies of an Apple operating system, or to
  4930  // circumvent, violate, or enable the circumvention or violation of, any
  4931  // terms of an Apple operating system software license agreement.
  4932  //
  4933  // Please obtain a copy of the License at
  4934  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4935  //
  4936  // The Original Code and all software distributed under the License are
  4937  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4938  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4939  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4940  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4941  // Please see the License for the specific language governing rights and
  4942  // limitations under the License.
  4943  //
  4944  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4945  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4946  //
  4947  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4948  //
  4949  // This file contains Original Code and/or Modifications of Original Code
  4950  // as defined in and that are subject to the Apple Public Source License
  4951  // Version 2.0 (the 'License'). You may not use this file except in
  4952  // compliance with the License. The rights granted to you under the License
  4953  // may not be used to create, or enable the creation or redistribution of,
  4954  // unlawful or unlicensed copies of an Apple operating system, or to
  4955  // circumvent, violate, or enable the circumvention or violation of, any
  4956  // terms of an Apple operating system software license agreement.
  4957  //
  4958  // Please obtain a copy of the License at
  4959  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4960  //
  4961  // The Original Code and all software distributed under the License are
  4962  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4963  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4964  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4965  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4966  // Please see the License for the specific language governing rights and
  4967  // limitations under the License.
  4968  //
  4969  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4970  
  4971  type pthread_cond_t = _opaque_pthread_cond_t /* _pthread_cond_t.h:31:33 */
  4972  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4973  //
  4974  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4975  //
  4976  // This file contains Original Code and/or Modifications of Original Code
  4977  // as defined in and that are subject to the Apple Public Source License
  4978  // Version 2.0 (the 'License'). You may not use this file except in
  4979  // compliance with the License. The rights granted to you under the License
  4980  // may not be used to create, or enable the creation or redistribution of,
  4981  // unlawful or unlicensed copies of an Apple operating system, or to
  4982  // circumvent, violate, or enable the circumvention or violation of, any
  4983  // terms of an Apple operating system software license agreement.
  4984  //
  4985  // Please obtain a copy of the License at
  4986  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4987  //
  4988  // The Original Code and all software distributed under the License are
  4989  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4990  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4991  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4992  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4993  // Please see the License for the specific language governing rights and
  4994  // limitations under the License.
  4995  //
  4996  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4997  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  4998  //
  4999  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5000  //
  5001  // This file contains Original Code and/or Modifications of Original Code
  5002  // as defined in and that are subject to the Apple Public Source License
  5003  // Version 2.0 (the 'License'). You may not use this file except in
  5004  // compliance with the License. The rights granted to you under the License
  5005  // may not be used to create, or enable the creation or redistribution of,
  5006  // unlawful or unlicensed copies of an Apple operating system, or to
  5007  // circumvent, violate, or enable the circumvention or violation of, any
  5008  // terms of an Apple operating system software license agreement.
  5009  //
  5010  // Please obtain a copy of the License at
  5011  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5012  //
  5013  // The Original Code and all software distributed under the License are
  5014  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5015  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5016  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5017  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5018  // Please see the License for the specific language governing rights and
  5019  // limitations under the License.
  5020  //
  5021  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5022  
  5023  type pthread_condattr_t = _opaque_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */
  5024  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5025  //
  5026  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5027  //
  5028  // This file contains Original Code and/or Modifications of Original Code
  5029  // as defined in and that are subject to the Apple Public Source License
  5030  // Version 2.0 (the 'License'). You may not use this file except in
  5031  // compliance with the License. The rights granted to you under the License
  5032  // may not be used to create, or enable the creation or redistribution of,
  5033  // unlawful or unlicensed copies of an Apple operating system, or to
  5034  // circumvent, violate, or enable the circumvention or violation of, any
  5035  // terms of an Apple operating system software license agreement.
  5036  //
  5037  // Please obtain a copy of the License at
  5038  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5039  //
  5040  // The Original Code and all software distributed under the License are
  5041  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5042  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5043  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5044  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5045  // Please see the License for the specific language governing rights and
  5046  // limitations under the License.
  5047  //
  5048  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5049  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  5050  //
  5051  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5052  //
  5053  // This file contains Original Code and/or Modifications of Original Code
  5054  // as defined in and that are subject to the Apple Public Source License
  5055  // Version 2.0 (the 'License'). You may not use this file except in
  5056  // compliance with the License. The rights granted to you under the License
  5057  // may not be used to create, or enable the creation or redistribution of,
  5058  // unlawful or unlicensed copies of an Apple operating system, or to
  5059  // circumvent, violate, or enable the circumvention or violation of, any
  5060  // terms of an Apple operating system software license agreement.
  5061  //
  5062  // Please obtain a copy of the License at
  5063  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5064  //
  5065  // The Original Code and all software distributed under the License are
  5066  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5067  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5068  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5069  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5070  // Please see the License for the specific language governing rights and
  5071  // limitations under the License.
  5072  //
  5073  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5074  
  5075  type pthread_mutex_t = _opaque_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */
  5076  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5077  //
  5078  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5079  //
  5080  // This file contains Original Code and/or Modifications of Original Code
  5081  // as defined in and that are subject to the Apple Public Source License
  5082  // Version 2.0 (the 'License'). You may not use this file except in
  5083  // compliance with the License. The rights granted to you under the License
  5084  // may not be used to create, or enable the creation or redistribution of,
  5085  // unlawful or unlicensed copies of an Apple operating system, or to
  5086  // circumvent, violate, or enable the circumvention or violation of, any
  5087  // terms of an Apple operating system software license agreement.
  5088  //
  5089  // Please obtain a copy of the License at
  5090  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5091  //
  5092  // The Original Code and all software distributed under the License are
  5093  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5094  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5095  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5096  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5097  // Please see the License for the specific language governing rights and
  5098  // limitations under the License.
  5099  //
  5100  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5101  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  5102  //
  5103  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5104  //
  5105  // This file contains Original Code and/or Modifications of Original Code
  5106  // as defined in and that are subject to the Apple Public Source License
  5107  // Version 2.0 (the 'License'). You may not use this file except in
  5108  // compliance with the License. The rights granted to you under the License
  5109  // may not be used to create, or enable the creation or redistribution of,
  5110  // unlawful or unlicensed copies of an Apple operating system, or to
  5111  // circumvent, violate, or enable the circumvention or violation of, any
  5112  // terms of an Apple operating system software license agreement.
  5113  //
  5114  // Please obtain a copy of the License at
  5115  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5116  //
  5117  // The Original Code and all software distributed under the License are
  5118  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5119  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5120  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5121  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5122  // Please see the License for the specific language governing rights and
  5123  // limitations under the License.
  5124  //
  5125  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5126  
  5127  type pthread_mutexattr_t = _opaque_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */
  5128  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5129  //
  5130  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5131  //
  5132  // This file contains Original Code and/or Modifications of Original Code
  5133  // as defined in and that are subject to the Apple Public Source License
  5134  // Version 2.0 (the 'License'). You may not use this file except in
  5135  // compliance with the License. The rights granted to you under the License
  5136  // may not be used to create, or enable the creation or redistribution of,
  5137  // unlawful or unlicensed copies of an Apple operating system, or to
  5138  // circumvent, violate, or enable the circumvention or violation of, any
  5139  // terms of an Apple operating system software license agreement.
  5140  //
  5141  // Please obtain a copy of the License at
  5142  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5143  //
  5144  // The Original Code and all software distributed under the License are
  5145  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5146  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5147  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5148  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5149  // Please see the License for the specific language governing rights and
  5150  // limitations under the License.
  5151  //
  5152  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5153  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  5154  //
  5155  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5156  //
  5157  // This file contains Original Code and/or Modifications of Original Code
  5158  // as defined in and that are subject to the Apple Public Source License
  5159  // Version 2.0 (the 'License'). You may not use this file except in
  5160  // compliance with the License. The rights granted to you under the License
  5161  // may not be used to create, or enable the creation or redistribution of,
  5162  // unlawful or unlicensed copies of an Apple operating system, or to
  5163  // circumvent, violate, or enable the circumvention or violation of, any
  5164  // terms of an Apple operating system software license agreement.
  5165  //
  5166  // Please obtain a copy of the License at
  5167  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5168  //
  5169  // The Original Code and all software distributed under the License are
  5170  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5171  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5172  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5173  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5174  // Please see the License for the specific language governing rights and
  5175  // limitations under the License.
  5176  //
  5177  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5178  
  5179  type pthread_once_t = _opaque_pthread_once_t /* _pthread_once_t.h:31:33 */
  5180  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5181  //
  5182  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5183  //
  5184  // This file contains Original Code and/or Modifications of Original Code
  5185  // as defined in and that are subject to the Apple Public Source License
  5186  // Version 2.0 (the 'License'). You may not use this file except in
  5187  // compliance with the License. The rights granted to you under the License
  5188  // may not be used to create, or enable the creation or redistribution of,
  5189  // unlawful or unlicensed copies of an Apple operating system, or to
  5190  // circumvent, violate, or enable the circumvention or violation of, any
  5191  // terms of an Apple operating system software license agreement.
  5192  //
  5193  // Please obtain a copy of the License at
  5194  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5195  //
  5196  // The Original Code and all software distributed under the License are
  5197  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5198  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5199  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5200  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5201  // Please see the License for the specific language governing rights and
  5202  // limitations under the License.
  5203  //
  5204  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5205  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  5206  //
  5207  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5208  //
  5209  // This file contains Original Code and/or Modifications of Original Code
  5210  // as defined in and that are subject to the Apple Public Source License
  5211  // Version 2.0 (the 'License'). You may not use this file except in
  5212  // compliance with the License. The rights granted to you under the License
  5213  // may not be used to create, or enable the creation or redistribution of,
  5214  // unlawful or unlicensed copies of an Apple operating system, or to
  5215  // circumvent, violate, or enable the circumvention or violation of, any
  5216  // terms of an Apple operating system software license agreement.
  5217  //
  5218  // Please obtain a copy of the License at
  5219  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5220  //
  5221  // The Original Code and all software distributed under the License are
  5222  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5223  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5224  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5225  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5226  // Please see the License for the specific language governing rights and
  5227  // limitations under the License.
  5228  //
  5229  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5230  
  5231  type pthread_rwlock_t = _opaque_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */
  5232  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5233  //
  5234  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5235  //
  5236  // This file contains Original Code and/or Modifications of Original Code
  5237  // as defined in and that are subject to the Apple Public Source License
  5238  // Version 2.0 (the 'License'). You may not use this file except in
  5239  // compliance with the License. The rights granted to you under the License
  5240  // may not be used to create, or enable the creation or redistribution of,
  5241  // unlawful or unlicensed copies of an Apple operating system, or to
  5242  // circumvent, violate, or enable the circumvention or violation of, any
  5243  // terms of an Apple operating system software license agreement.
  5244  //
  5245  // Please obtain a copy of the License at
  5246  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5247  //
  5248  // The Original Code and all software distributed under the License are
  5249  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5250  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5251  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5252  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5253  // Please see the License for the specific language governing rights and
  5254  // limitations under the License.
  5255  //
  5256  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5257  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  5258  //
  5259  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5260  //
  5261  // This file contains Original Code and/or Modifications of Original Code
  5262  // as defined in and that are subject to the Apple Public Source License
  5263  // Version 2.0 (the 'License'). You may not use this file except in
  5264  // compliance with the License. The rights granted to you under the License
  5265  // may not be used to create, or enable the creation or redistribution of,
  5266  // unlawful or unlicensed copies of an Apple operating system, or to
  5267  // circumvent, violate, or enable the circumvention or violation of, any
  5268  // terms of an Apple operating system software license agreement.
  5269  //
  5270  // Please obtain a copy of the License at
  5271  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5272  //
  5273  // The Original Code and all software distributed under the License are
  5274  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5275  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5276  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5277  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5278  // Please see the License for the specific language governing rights and
  5279  // limitations under the License.
  5280  //
  5281  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5282  
  5283  type pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */
  5284  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5285  //
  5286  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5287  //
  5288  // This file contains Original Code and/or Modifications of Original Code
  5289  // as defined in and that are subject to the Apple Public Source License
  5290  // Version 2.0 (the 'License'). You may not use this file except in
  5291  // compliance with the License. The rights granted to you under the License
  5292  // may not be used to create, or enable the creation or redistribution of,
  5293  // unlawful or unlicensed copies of an Apple operating system, or to
  5294  // circumvent, violate, or enable the circumvention or violation of, any
  5295  // terms of an Apple operating system software license agreement.
  5296  //
  5297  // Please obtain a copy of the License at
  5298  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5299  //
  5300  // The Original Code and all software distributed under the License are
  5301  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5302  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5303  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5304  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5305  // Please see the License for the specific language governing rights and
  5306  // limitations under the License.
  5307  //
  5308  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5309  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  5310  //
  5311  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5312  //
  5313  // This file contains Original Code and/or Modifications of Original Code
  5314  // as defined in and that are subject to the Apple Public Source License
  5315  // Version 2.0 (the 'License'). You may not use this file except in
  5316  // compliance with the License. The rights granted to you under the License
  5317  // may not be used to create, or enable the creation or redistribution of,
  5318  // unlawful or unlicensed copies of an Apple operating system, or to
  5319  // circumvent, violate, or enable the circumvention or violation of, any
  5320  // terms of an Apple operating system software license agreement.
  5321  //
  5322  // Please obtain a copy of the License at
  5323  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5324  //
  5325  // The Original Code and all software distributed under the License are
  5326  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5327  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5328  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5329  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5330  // Please see the License for the specific language governing rights and
  5331  // limitations under the License.
  5332  //
  5333  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5334  
  5335  type pthread_t = uintptr /* _pthread_t.h:31:28 */
  5336  
  5337  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5338  //
  5339  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5340  //
  5341  // This file contains Original Code and/or Modifications of Original Code
  5342  // as defined in and that are subject to the Apple Public Source License
  5343  // Version 2.0 (the 'License'). You may not use this file except in
  5344  // compliance with the License. The rights granted to you under the License
  5345  // may not be used to create, or enable the creation or redistribution of,
  5346  // unlawful or unlicensed copies of an Apple operating system, or to
  5347  // circumvent, violate, or enable the circumvention or violation of, any
  5348  // terms of an Apple operating system software license agreement.
  5349  //
  5350  // Please obtain a copy of the License at
  5351  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5352  //
  5353  // The Original Code and all software distributed under the License are
  5354  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5355  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5356  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5357  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5358  // Please see the License for the specific language governing rights and
  5359  // limitations under the License.
  5360  //
  5361  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5362  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  5363  //
  5364  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5365  //
  5366  // This file contains Original Code and/or Modifications of Original Code
  5367  // as defined in and that are subject to the Apple Public Source License
  5368  // Version 2.0 (the 'License'). You may not use this file except in
  5369  // compliance with the License. The rights granted to you under the License
  5370  // may not be used to create, or enable the creation or redistribution of,
  5371  // unlawful or unlicensed copies of an Apple operating system, or to
  5372  // circumvent, violate, or enable the circumvention or violation of, any
  5373  // terms of an Apple operating system software license agreement.
  5374  //
  5375  // Please obtain a copy of the License at
  5376  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5377  //
  5378  // The Original Code and all software distributed under the License are
  5379  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5380  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5381  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5382  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5383  // Please see the License for the specific language governing rights and
  5384  // limitations under the License.
  5385  //
  5386  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5387  
  5388  type pthread_key_t = uint64 /* _pthread_key_t.h:31:32 */
  5389  
  5390  // statvfs and fstatvfs
  5391  
  5392  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5393  //
  5394  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5395  //
  5396  // This file contains Original Code and/or Modifications of Original Code
  5397  // as defined in and that are subject to the Apple Public Source License
  5398  // Version 2.0 (the 'License'). You may not use this file except in
  5399  // compliance with the License. The rights granted to you under the License
  5400  // may not be used to create, or enable the creation or redistribution of,
  5401  // unlawful or unlicensed copies of an Apple operating system, or to
  5402  // circumvent, violate, or enable the circumvention or violation of, any
  5403  // terms of an Apple operating system software license agreement.
  5404  //
  5405  // Please obtain a copy of the License at
  5406  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5407  //
  5408  // The Original Code and all software distributed under the License are
  5409  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5410  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5411  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5412  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5413  // Please see the License for the specific language governing rights and
  5414  // limitations under the License.
  5415  //
  5416  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5417  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5418  //
  5419  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5420  //
  5421  // This file contains Original Code and/or Modifications of Original Code
  5422  // as defined in and that are subject to the Apple Public Source License
  5423  // Version 2.0 (the 'License'). You may not use this file except in
  5424  // compliance with the License. The rights granted to you under the License
  5425  // may not be used to create, or enable the creation or redistribution of,
  5426  // unlawful or unlicensed copies of an Apple operating system, or to
  5427  // circumvent, violate, or enable the circumvention or violation of, any
  5428  // terms of an Apple operating system software license agreement.
  5429  //
  5430  // Please obtain a copy of the License at
  5431  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5432  //
  5433  // The Original Code and all software distributed under the License are
  5434  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5435  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5436  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5437  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5438  // Please see the License for the specific language governing rights and
  5439  // limitations under the License.
  5440  //
  5441  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5442  
  5443  type fsblkcnt_t = uint32 /* _fsblkcnt_t.h:31:41 */
  5444  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5445  //
  5446  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5447  //
  5448  // This file contains Original Code and/or Modifications of Original Code
  5449  // as defined in and that are subject to the Apple Public Source License
  5450  // Version 2.0 (the 'License'). You may not use this file except in
  5451  // compliance with the License. The rights granted to you under the License
  5452  // may not be used to create, or enable the creation or redistribution of,
  5453  // unlawful or unlicensed copies of an Apple operating system, or to
  5454  // circumvent, violate, or enable the circumvention or violation of, any
  5455  // terms of an Apple operating system software license agreement.
  5456  //
  5457  // Please obtain a copy of the License at
  5458  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5459  //
  5460  // The Original Code and all software distributed under the License are
  5461  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5462  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5463  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5464  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5465  // Please see the License for the specific language governing rights and
  5466  // limitations under the License.
  5467  //
  5468  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5469  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5470  //
  5471  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5472  //
  5473  // This file contains Original Code and/or Modifications of Original Code
  5474  // as defined in and that are subject to the Apple Public Source License
  5475  // Version 2.0 (the 'License'). You may not use this file except in
  5476  // compliance with the License. The rights granted to you under the License
  5477  // may not be used to create, or enable the creation or redistribution of,
  5478  // unlawful or unlicensed copies of an Apple operating system, or to
  5479  // circumvent, violate, or enable the circumvention or violation of, any
  5480  // terms of an Apple operating system software license agreement.
  5481  //
  5482  // Please obtain a copy of the License at
  5483  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5484  //
  5485  // The Original Code and all software distributed under the License are
  5486  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5487  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5488  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5489  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5490  // Please see the License for the specific language governing rights and
  5491  // limitations under the License.
  5492  //
  5493  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5494  
  5495  type fsfilcnt_t = uint32 /* _fsfilcnt_t.h:31:41 */
  5496  
  5497  // Define the standard macros for the user,
  5498  //    if this invocation was from the user program.
  5499  
  5500  // Define va_list, if desired, from __gnuc_va_list.
  5501  // We deliberately do not define va_list when called from
  5502  //    stdio.h, because ANSI C says that stdio.h is not supposed to define
  5503  //    va_list.  stdio.h needs to have access to that data type,
  5504  //    but must not use that name.  It should use the name __gnuc_va_list,
  5505  //    which is safe because it is reserved for the implementation.
  5506  
  5507  // The macro _VA_LIST_ is the same thing used by this file in Ultrix.
  5508  //    But on BSD NET2 we must not test or define or undef it.
  5509  //    (Note that the comments in NET 2's ansi.h
  5510  //    are incorrect for _VA_LIST_--see stdio.h!)
  5511  // The macro _VA_LIST_DEFINED is used in Windows NT 3.5
  5512  // The macro _VA_LIST is used in SCO Unix 3.2.
  5513  // The macro _VA_LIST_T_H is used in the Bull dpx2
  5514  // The macro __va_list__ is used by BeOS.
  5515  type va_list = uintptr /* stdarg.h:99:24 */
  5516  
  5517  // Copyright (c) 2000-2013 Apple Inc. All rights reserved.
  5518  //
  5519  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5520  //
  5521  // This file contains Original Code and/or Modifications of Original Code
  5522  // as defined in and that are subject to the Apple Public Source License
  5523  // Version 2.0 (the 'License'). You may not use this file except in
  5524  // compliance with the License. The rights granted to you under the License
  5525  // may not be used to create, or enable the creation or redistribution of,
  5526  // unlawful or unlicensed copies of an Apple operating system, or to
  5527  // circumvent, violate, or enable the circumvention or violation of, any
  5528  // terms of an Apple operating system software license agreement.
  5529  //
  5530  // Please obtain a copy of the License at
  5531  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5532  //
  5533  // The Original Code and all software distributed under the License are
  5534  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5535  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5536  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5537  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5538  // Please see the License for the specific language governing rights and
  5539  // limitations under the License.
  5540  //
  5541  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5542  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  5543  // Copyright (c) 1989, 1993
  5544  //	The Regents of the University of California.  All rights reserved.
  5545  //
  5546  // Redistribution and use in source and binary forms, with or without
  5547  // modification, are permitted provided that the following conditions
  5548  // are met:
  5549  // 1. Redistributions of source code must retain the above copyright
  5550  //    notice, this list of conditions and the following disclaimer.
  5551  // 2. Redistributions in binary form must reproduce the above copyright
  5552  //    notice, this list of conditions and the following disclaimer in the
  5553  //    documentation and/or other materials provided with the distribution.
  5554  // 3. All advertising materials mentioning features or use of this software
  5555  //    must display the following acknowledgement:
  5556  //	This product includes software developed by the University of
  5557  //	California, Berkeley and its contributors.
  5558  // 4. Neither the name of the University nor the names of its contributors
  5559  //    may be used to endorse or promote products derived from this software
  5560  //    without specific prior written permission.
  5561  //
  5562  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5563  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5564  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5565  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5566  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5567  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5568  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5569  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5570  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5571  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5572  // SUCH DAMAGE.
  5573  //
  5574  //	@(#)unistd.h	8.2 (Berkeley) 1/7/94
  5575  
  5576  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  5577  //
  5578  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5579  //
  5580  // This file contains Original Code and/or Modifications of Original Code
  5581  // as defined in and that are subject to the Apple Public Source License
  5582  // Version 2.0 (the 'License'). You may not use this file except in
  5583  // compliance with the License. The rights granted to you under the License
  5584  // may not be used to create, or enable the creation or redistribution of,
  5585  // unlawful or unlicensed copies of an Apple operating system, or to
  5586  // circumvent, violate, or enable the circumvention or violation of, any
  5587  // terms of an Apple operating system software license agreement.
  5588  //
  5589  // Please obtain a copy of the License at
  5590  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5591  //
  5592  // The Original Code and all software distributed under the License are
  5593  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5594  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5595  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5596  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5597  // Please see the License for the specific language governing rights and
  5598  // limitations under the License.
  5599  //
  5600  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5601  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5602  // Copyright (c) 1991, 1993
  5603  //	The Regents of the University of California.  All rights reserved.
  5604  //
  5605  // This code is derived from software contributed to Berkeley by
  5606  // Berkeley Software Design, Inc.
  5607  //
  5608  // Redistribution and use in source and binary forms, with or without
  5609  // modification, are permitted provided that the following conditions
  5610  // are met:
  5611  // 1. Redistributions of source code must retain the above copyright
  5612  //    notice, this list of conditions and the following disclaimer.
  5613  // 2. Redistributions in binary form must reproduce the above copyright
  5614  //    notice, this list of conditions and the following disclaimer in the
  5615  //    documentation and/or other materials provided with the distribution.
  5616  // 3. All advertising materials mentioning features or use of this software
  5617  //    must display the following acknowledgement:
  5618  //	This product includes software developed by the University of
  5619  //	California, Berkeley and its contributors.
  5620  // 4. Neither the name of the University nor the names of its contributors
  5621  //    may be used to endorse or promote products derived from this software
  5622  //    without specific prior written permission.
  5623  //
  5624  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5625  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5626  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5627  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5628  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5629  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5630  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5631  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5632  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5633  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5634  // SUCH DAMAGE.
  5635  //
  5636  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  5637  
  5638  // Although we have saved user/group IDs, we do not use them in setuid
  5639  // as described in POSIX 1003.1, because the feature does not work for
  5640  // root.  We use the saved IDs in seteuid/setegid, which are not currently
  5641  // part of the POSIX 1003.1 specification.
  5642  
  5643  // execution-time symbolic constants
  5644  // may disable terminal special characters
  5645  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5646  //
  5647  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5648  //
  5649  // This file contains Original Code and/or Modifications of Original Code
  5650  // as defined in and that are subject to the Apple Public Source License
  5651  // Version 2.0 (the 'License'). You may not use this file except in
  5652  // compliance with the License. The rights granted to you under the License
  5653  // may not be used to create, or enable the creation or redistribution of,
  5654  // unlawful or unlicensed copies of an Apple operating system, or to
  5655  // circumvent, violate, or enable the circumvention or violation of, any
  5656  // terms of an Apple operating system software license agreement.
  5657  //
  5658  // Please obtain a copy of the License at
  5659  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5660  //
  5661  // The Original Code and all software distributed under the License are
  5662  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5663  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5664  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5665  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5666  // Please see the License for the specific language governing rights and
  5667  // limitations under the License.
  5668  //
  5669  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5670  
  5671  // access function
  5672  
  5673  // Extended access functions.
  5674  // Note that we depend on these matching the definitions in sys/kauth.h,
  5675  // but with the bits shifted left by 8.
  5676  
  5677  // whence values for lseek(2)
  5678  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5679  //
  5680  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5681  //
  5682  // This file contains Original Code and/or Modifications of Original Code
  5683  // as defined in and that are subject to the Apple Public Source License
  5684  // Version 2.0 (the 'License'). You may not use this file except in
  5685  // compliance with the License. The rights granted to you under the License
  5686  // may not be used to create, or enable the creation or redistribution of,
  5687  // unlawful or unlicensed copies of an Apple operating system, or to
  5688  // circumvent, violate, or enable the circumvention or violation of, any
  5689  // terms of an Apple operating system software license agreement.
  5690  //
  5691  // Please obtain a copy of the License at
  5692  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5693  //
  5694  // The Original Code and all software distributed under the License are
  5695  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5696  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5697  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5698  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5699  // Please see the License for the specific language governing rights and
  5700  // limitations under the License.
  5701  //
  5702  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5703  
  5704  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  5705  //
  5706  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5707  //
  5708  // This file contains Original Code and/or Modifications of Original Code
  5709  // as defined in and that are subject to the Apple Public Source License
  5710  // Version 2.0 (the 'License'). You may not use this file except in
  5711  // compliance with the License. The rights granted to you under the License
  5712  // may not be used to create, or enable the creation or redistribution of,
  5713  // unlawful or unlicensed copies of an Apple operating system, or to
  5714  // circumvent, violate, or enable the circumvention or violation of, any
  5715  // terms of an Apple operating system software license agreement.
  5716  //
  5717  // Please obtain a copy of the License at
  5718  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5719  //
  5720  // The Original Code and all software distributed under the License are
  5721  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5722  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5723  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5724  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5725  // Please see the License for the specific language governing rights and
  5726  // limitations under the License.
  5727  //
  5728  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5729  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5730  // Copyright (c) 1991, 1993
  5731  //	The Regents of the University of California.  All rights reserved.
  5732  //
  5733  // This code is derived from software contributed to Berkeley by
  5734  // Berkeley Software Design, Inc.
  5735  //
  5736  // Redistribution and use in source and binary forms, with or without
  5737  // modification, are permitted provided that the following conditions
  5738  // are met:
  5739  // 1. Redistributions of source code must retain the above copyright
  5740  //    notice, this list of conditions and the following disclaimer.
  5741  // 2. Redistributions in binary form must reproduce the above copyright
  5742  //    notice, this list of conditions and the following disclaimer in the
  5743  //    documentation and/or other materials provided with the distribution.
  5744  // 3. All advertising materials mentioning features or use of this software
  5745  //    must display the following acknowledgement:
  5746  //	This product includes software developed by the University of
  5747  //	California, Berkeley and its contributors.
  5748  // 4. Neither the name of the University nor the names of its contributors
  5749  //    may be used to endorse or promote products derived from this software
  5750  //    without specific prior written permission.
  5751  //
  5752  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5753  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5754  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5755  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5756  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5757  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5758  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5759  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5760  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5761  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5762  // SUCH DAMAGE.
  5763  //
  5764  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  5765  
  5766  // whence values for lseek(2)
  5767  
  5768  // whence values for lseek(2); renamed by POSIX 1003.1
  5769  
  5770  type accessx_descriptor = struct {
  5771  	ad_name_offset uint32
  5772  	ad_flags       int32
  5773  	ad_pad         [2]int32
  5774  } /* unistd.h:132:1 */
  5775  
  5776  // Darwin extensions
  5777  
  5778  // Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
  5779  //
  5780  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5781  //
  5782  // This file contains Original Code and/or Modifications of Original Code
  5783  // as defined in and that are subject to the Apple Public Source License
  5784  // Version 2.0 (the 'License'). You may not use this file except in
  5785  // compliance with the License. The rights granted to you under the License
  5786  // may not be used to create, or enable the creation or redistribution of,
  5787  // unlawful or unlicensed copies of an Apple operating system, or to
  5788  // circumvent, violate, or enable the circumvention or violation of, any
  5789  // terms of an Apple operating system software license agreement.
  5790  //
  5791  // Please obtain a copy of the License at
  5792  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5793  //
  5794  // The Original Code and all software distributed under the License are
  5795  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5796  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5797  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5798  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5799  // Please see the License for the specific language governing rights and
  5800  // limitations under the License.
  5801  //
  5802  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5803  // Copyright (c) 1992, 1993
  5804  //	The Regents of the University of California.  All rights reserved.
  5805  //
  5806  // Redistribution and use in source and binary forms, with or without
  5807  // modification, are permitted provided that the following conditions
  5808  // are met:
  5809  // 1. Redistributions of source code must retain the above copyright
  5810  //    notice, this list of conditions and the following disclaimer.
  5811  // 2. Redistributions in binary form must reproduce the above copyright
  5812  //    notice, this list of conditions and the following disclaimer in the
  5813  //    documentation and/or other materials provided with the distribution.
  5814  // 3. All advertising materials mentioning features or use of this software
  5815  //    must display the following acknowledgement:
  5816  //	This product includes software developed by the University of
  5817  //	California, Berkeley and its contributors.
  5818  // 4. Neither the name of the University nor the names of its contributors
  5819  //    may be used to endorse or promote products derived from this software
  5820  //    without specific prior written permission.
  5821  //
  5822  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5823  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5824  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5825  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5826  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5827  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5828  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5829  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5830  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5831  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5832  // SUCH DAMAGE.
  5833  //
  5834  //	@(#)select.h	8.2 (Berkeley) 1/4/94
  5835  
  5836  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  5837  //
  5838  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5839  //
  5840  // This file contains Original Code and/or Modifications of Original Code
  5841  // as defined in and that are subject to the Apple Public Source License
  5842  // Version 2.0 (the 'License'). You may not use this file except in
  5843  // compliance with the License. The rights granted to you under the License
  5844  // may not be used to create, or enable the creation or redistribution of,
  5845  // unlawful or unlicensed copies of an Apple operating system, or to
  5846  // circumvent, violate, or enable the circumvention or violation of, any
  5847  // terms of an Apple operating system software license agreement.
  5848  //
  5849  // Please obtain a copy of the License at
  5850  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5851  //
  5852  // The Original Code and all software distributed under the License are
  5853  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5854  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5855  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5856  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5857  // Please see the License for the specific language governing rights and
  5858  // limitations under the License.
  5859  //
  5860  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5861  
  5862  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  5863  //
  5864  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5865  //
  5866  // This file contains Original Code and/or Modifications of Original Code
  5867  // as defined in and that are subject to the Apple Public Source License
  5868  // Version 2.0 (the 'License'). You may not use this file except in
  5869  // compliance with the License. The rights granted to you under the License
  5870  // may not be used to create, or enable the creation or redistribution of,
  5871  // unlawful or unlicensed copies of an Apple operating system, or to
  5872  // circumvent, violate, or enable the circumvention or violation of, any
  5873  // terms of an Apple operating system software license agreement.
  5874  //
  5875  // Please obtain a copy of the License at
  5876  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5877  //
  5878  // The Original Code and all software distributed under the License are
  5879  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5880  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5881  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5882  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5883  // Please see the License for the specific language governing rights and
  5884  // limitations under the License.
  5885  //
  5886  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5887  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5888  // Copyright (c) 1991, 1993
  5889  //	The Regents of the University of California.  All rights reserved.
  5890  //
  5891  // This code is derived from software contributed to Berkeley by
  5892  // Berkeley Software Design, Inc.
  5893  //
  5894  // Redistribution and use in source and binary forms, with or without
  5895  // modification, are permitted provided that the following conditions
  5896  // are met:
  5897  // 1. Redistributions of source code must retain the above copyright
  5898  //    notice, this list of conditions and the following disclaimer.
  5899  // 2. Redistributions in binary form must reproduce the above copyright
  5900  //    notice, this list of conditions and the following disclaimer in the
  5901  //    documentation and/or other materials provided with the distribution.
  5902  // 3. All advertising materials mentioning features or use of this software
  5903  //    must display the following acknowledgement:
  5904  //	This product includes software developed by the University of
  5905  //	California, Berkeley and its contributors.
  5906  // 4. Neither the name of the University nor the names of its contributors
  5907  //    may be used to endorse or promote products derived from this software
  5908  //    without specific prior written permission.
  5909  //
  5910  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5911  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5912  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5913  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5914  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5915  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5916  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5917  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5918  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5919  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5920  // SUCH DAMAGE.
  5921  //
  5922  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  5923  
  5924  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5925  //
  5926  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5927  //
  5928  // This file contains Original Code and/or Modifications of Original Code
  5929  // as defined in and that are subject to the Apple Public Source License
  5930  // Version 2.0 (the 'License'). You may not use this file except in
  5931  // compliance with the License. The rights granted to you under the License
  5932  // may not be used to create, or enable the creation or redistribution of,
  5933  // unlawful or unlicensed copies of an Apple operating system, or to
  5934  // circumvent, violate, or enable the circumvention or violation of, any
  5935  // terms of an Apple operating system software license agreement.
  5936  //
  5937  // Please obtain a copy of the License at
  5938  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5939  //
  5940  // The Original Code and all software distributed under the License are
  5941  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5942  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5943  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5944  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5945  // Please see the License for the specific language governing rights and
  5946  // limitations under the License.
  5947  //
  5948  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5949  
  5950  // [XSI] The <sys/select.h> header shall define the fd_set type as a structure.
  5951  // The timespec structure shall be defined as described in <time.h>
  5952  // The <sys/select.h> header shall define the timeval structure.
  5953  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5954  //
  5955  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5956  //
  5957  // This file contains Original Code and/or Modifications of Original Code
  5958  // as defined in and that are subject to the Apple Public Source License
  5959  // Version 2.0 (the 'License'). You may not use this file except in
  5960  // compliance with the License. The rights granted to you under the License
  5961  // may not be used to create, or enable the creation or redistribution of,
  5962  // unlawful or unlicensed copies of an Apple operating system, or to
  5963  // circumvent, violate, or enable the circumvention or violation of, any
  5964  // terms of an Apple operating system software license agreement.
  5965  //
  5966  // Please obtain a copy of the License at
  5967  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5968  //
  5969  // The Original Code and all software distributed under the License are
  5970  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5971  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5972  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5973  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5974  // Please see the License for the specific language governing rights and
  5975  // limitations under the License.
  5976  //
  5977  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5978  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5979  //
  5980  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5981  //
  5982  // This file contains Original Code and/or Modifications of Original Code
  5983  // as defined in and that are subject to the Apple Public Source License
  5984  // Version 2.0 (the 'License'). You may not use this file except in
  5985  // compliance with the License. The rights granted to you under the License
  5986  // may not be used to create, or enable the creation or redistribution of,
  5987  // unlawful or unlicensed copies of an Apple operating system, or to
  5988  // circumvent, violate, or enable the circumvention or violation of, any
  5989  // terms of an Apple operating system software license agreement.
  5990  //
  5991  // Please obtain a copy of the License at
  5992  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5993  //
  5994  // The Original Code and all software distributed under the License are
  5995  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5996  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5997  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5998  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5999  // Please see the License for the specific language governing rights and
  6000  // limitations under the License.
  6001  //
  6002  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6003  
  6004  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  6005  //
  6006  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6007  //
  6008  // This file contains Original Code and/or Modifications of Original Code
  6009  // as defined in and that are subject to the Apple Public Source License
  6010  // Version 2.0 (the 'License'). You may not use this file except in
  6011  // compliance with the License. The rights granted to you under the License
  6012  // may not be used to create, or enable the creation or redistribution of,
  6013  // unlawful or unlicensed copies of an Apple operating system, or to
  6014  // circumvent, violate, or enable the circumvention or violation of, any
  6015  // terms of an Apple operating system software license agreement.
  6016  //
  6017  // Please obtain a copy of the License at
  6018  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6019  //
  6020  // The Original Code and all software distributed under the License are
  6021  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6022  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6023  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6024  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6025  // Please see the License for the specific language governing rights and
  6026  // limitations under the License.
  6027  //
  6028  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6029  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6030  
  6031  type timespec = struct {
  6032  	tv_sec  int64
  6033  	tv_nsec int64
  6034  } /* _timespec.h:33:1 */
  6035  
  6036  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6037  //
  6038  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6039  //
  6040  // This file contains Original Code and/or Modifications of Original Code
  6041  // as defined in and that are subject to the Apple Public Source License
  6042  // Version 2.0 (the 'License'). You may not use this file except in
  6043  // compliance with the License. The rights granted to you under the License
  6044  // may not be used to create, or enable the creation or redistribution of,
  6045  // unlawful or unlicensed copies of an Apple operating system, or to
  6046  // circumvent, violate, or enable the circumvention or violation of, any
  6047  // terms of an Apple operating system software license agreement.
  6048  //
  6049  // Please obtain a copy of the License at
  6050  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6051  //
  6052  // The Original Code and all software distributed under the License are
  6053  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6054  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6055  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6056  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6057  // Please see the License for the specific language governing rights and
  6058  // limitations under the License.
  6059  //
  6060  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6061  
  6062  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  6063  //
  6064  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6065  //
  6066  // This file contains Original Code and/or Modifications of Original Code
  6067  // as defined in and that are subject to the Apple Public Source License
  6068  // Version 2.0 (the 'License'). You may not use this file except in
  6069  // compliance with the License. The rights granted to you under the License
  6070  // may not be used to create, or enable the creation or redistribution of,
  6071  // unlawful or unlicensed copies of an Apple operating system, or to
  6072  // circumvent, violate, or enable the circumvention or violation of, any
  6073  // terms of an Apple operating system software license agreement.
  6074  //
  6075  // Please obtain a copy of the License at
  6076  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6077  //
  6078  // The Original Code and all software distributed under the License are
  6079  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6080  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6081  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6082  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6083  // Please see the License for the specific language governing rights and
  6084  // limitations under the License.
  6085  //
  6086  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6087  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6088  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6089  //
  6090  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6091  //
  6092  // This file contains Original Code and/or Modifications of Original Code
  6093  // as defined in and that are subject to the Apple Public Source License
  6094  // Version 2.0 (the 'License'). You may not use this file except in
  6095  // compliance with the License. The rights granted to you under the License
  6096  // may not be used to create, or enable the creation or redistribution of,
  6097  // unlawful or unlicensed copies of an Apple operating system, or to
  6098  // circumvent, violate, or enable the circumvention or violation of, any
  6099  // terms of an Apple operating system software license agreement.
  6100  //
  6101  // Please obtain a copy of the License at
  6102  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6103  //
  6104  // The Original Code and all software distributed under the License are
  6105  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6106  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6107  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6108  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6109  // Please see the License for the specific language governing rights and
  6110  // limitations under the License.
  6111  //
  6112  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6113  
  6114  type timeval = struct {
  6115  	tv_sec  int64
  6116  	tv_usec int32
  6117  	_       [4]byte
  6118  } /* _timeval.h:34:1 */
  6119  
  6120  // The time_t and suseconds_t types shall be defined as described in
  6121  // <sys/types.h>
  6122  // The sigset_t type shall be defined as described in <signal.h>
  6123  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6124  //
  6125  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6126  //
  6127  // This file contains Original Code and/or Modifications of Original Code
  6128  // as defined in and that are subject to the Apple Public Source License
  6129  // Version 2.0 (the 'License'). You may not use this file except in
  6130  // compliance with the License. The rights granted to you under the License
  6131  // may not be used to create, or enable the creation or redistribution of,
  6132  // unlawful or unlicensed copies of an Apple operating system, or to
  6133  // circumvent, violate, or enable the circumvention or violation of, any
  6134  // terms of an Apple operating system software license agreement.
  6135  //
  6136  // Please obtain a copy of the License at
  6137  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6138  //
  6139  // The Original Code and all software distributed under the License are
  6140  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6141  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6142  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6143  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6144  // Please see the License for the specific language governing rights and
  6145  // limitations under the License.
  6146  //
  6147  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6148  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6149  //
  6150  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6151  //
  6152  // This file contains Original Code and/or Modifications of Original Code
  6153  // as defined in and that are subject to the Apple Public Source License
  6154  // Version 2.0 (the 'License'). You may not use this file except in
  6155  // compliance with the License. The rights granted to you under the License
  6156  // may not be used to create, or enable the creation or redistribution of,
  6157  // unlawful or unlicensed copies of an Apple operating system, or to
  6158  // circumvent, violate, or enable the circumvention or violation of, any
  6159  // terms of an Apple operating system software license agreement.
  6160  //
  6161  // Please obtain a copy of the License at
  6162  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6163  //
  6164  // The Original Code and all software distributed under the License are
  6165  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6166  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6167  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6168  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6169  // Please see the License for the specific language governing rights and
  6170  // limitations under the License.
  6171  //
  6172  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6173  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6174  //
  6175  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6176  //
  6177  // This file contains Original Code and/or Modifications of Original Code
  6178  // as defined in and that are subject to the Apple Public Source License
  6179  // Version 2.0 (the 'License'). You may not use this file except in
  6180  // compliance with the License. The rights granted to you under the License
  6181  // may not be used to create, or enable the creation or redistribution of,
  6182  // unlawful or unlicensed copies of an Apple operating system, or to
  6183  // circumvent, violate, or enable the circumvention or violation of, any
  6184  // terms of an Apple operating system software license agreement.
  6185  //
  6186  // Please obtain a copy of the License at
  6187  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6188  //
  6189  // The Original Code and all software distributed under the License are
  6190  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6191  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6192  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6193  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6194  // Please see the License for the specific language governing rights and
  6195  // limitations under the License.
  6196  //
  6197  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6198  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6199  //
  6200  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6201  //
  6202  // This file contains Original Code and/or Modifications of Original Code
  6203  // as defined in and that are subject to the Apple Public Source License
  6204  // Version 2.0 (the 'License'). You may not use this file except in
  6205  // compliance with the License. The rights granted to you under the License
  6206  // may not be used to create, or enable the creation or redistribution of,
  6207  // unlawful or unlicensed copies of an Apple operating system, or to
  6208  // circumvent, violate, or enable the circumvention or violation of, any
  6209  // terms of an Apple operating system software license agreement.
  6210  //
  6211  // Please obtain a copy of the License at
  6212  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6213  //
  6214  // The Original Code and all software distributed under the License are
  6215  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6216  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6217  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6218  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6219  // Please see the License for the specific language governing rights and
  6220  // limitations under the License.
  6221  //
  6222  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6223  
  6224  type sigset_t = uint32 /* _sigset_t.h:31:41 */
  6225  
  6226  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6227  //
  6228  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6229  //
  6230  // This file contains Original Code and/or Modifications of Original Code
  6231  // as defined in and that are subject to the Apple Public Source License
  6232  // Version 2.0 (the 'License'). You may not use this file except in
  6233  // compliance with the License. The rights granted to you under the License
  6234  // may not be used to create, or enable the creation or redistribution of,
  6235  // unlawful or unlicensed copies of an Apple operating system, or to
  6236  // circumvent, violate, or enable the circumvention or violation of, any
  6237  // terms of an Apple operating system software license agreement.
  6238  //
  6239  // Please obtain a copy of the License at
  6240  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6241  //
  6242  // The Original Code and all software distributed under the License are
  6243  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6244  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6245  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6246  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6247  // Please see the License for the specific language governing rights and
  6248  // limitations under the License.
  6249  //
  6250  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6251  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6252  //
  6253  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6254  //
  6255  // This file contains Original Code and/or Modifications of Original Code
  6256  // as defined in and that are subject to the Apple Public Source License
  6257  // Version 2.0 (the 'License'). You may not use this file except in
  6258  // compliance with the License. The rights granted to you under the License
  6259  // may not be used to create, or enable the creation or redistribution of,
  6260  // unlawful or unlicensed copies of an Apple operating system, or to
  6261  // circumvent, violate, or enable the circumvention or violation of, any
  6262  // terms of an Apple operating system software license agreement.
  6263  //
  6264  // Please obtain a copy of the License at
  6265  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6266  //
  6267  // The Original Code and all software distributed under the License are
  6268  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6269  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6270  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6271  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6272  // Please see the License for the specific language governing rights and
  6273  // limitations under the License.
  6274  //
  6275  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6276  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6277  //
  6278  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6279  //
  6280  // This file contains Original Code and/or Modifications of Original Code
  6281  // as defined in and that are subject to the Apple Public Source License
  6282  // Version 2.0 (the 'License'). You may not use this file except in
  6283  // compliance with the License. The rights granted to you under the License
  6284  // may not be used to create, or enable the creation or redistribution of,
  6285  // unlawful or unlicensed copies of an Apple operating system, or to
  6286  // circumvent, violate, or enable the circumvention or violation of, any
  6287  // terms of an Apple operating system software license agreement.
  6288  //
  6289  // Please obtain a copy of the License at
  6290  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6291  //
  6292  // The Original Code and all software distributed under the License are
  6293  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6294  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6295  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6296  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6297  // Please see the License for the specific language governing rights and
  6298  // limitations under the License.
  6299  //
  6300  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6301  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6302  //
  6303  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6304  //
  6305  // This file contains Original Code and/or Modifications of Original Code
  6306  // as defined in and that are subject to the Apple Public Source License
  6307  // Version 2.0 (the 'License'). You may not use this file except in
  6308  // compliance with the License. The rights granted to you under the License
  6309  // may not be used to create, or enable the creation or redistribution of,
  6310  // unlawful or unlicensed copies of an Apple operating system, or to
  6311  // circumvent, violate, or enable the circumvention or violation of, any
  6312  // terms of an Apple operating system software license agreement.
  6313  //
  6314  // Please obtain a copy of the License at
  6315  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6316  //
  6317  // The Original Code and all software distributed under the License are
  6318  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6319  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6320  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6321  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6322  // Please see the License for the specific language governing rights and
  6323  // limitations under the License.
  6324  //
  6325  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6326  
  6327  type uuid_t = [16]uint8 /* _uuid_t.h:31:25 */
  6328  
  6329  // MVS linker does not support external names larger than 8 bytes
  6330  
  6331  //
  6332  //     The 'zlib' compression library provides in-memory compression and
  6333  //   decompression functions, including integrity checks of the uncompressed data.
  6334  //   This version of the library supports only one compression method (deflation)
  6335  //   but other algorithms will be added later and will have the same stream
  6336  //   interface.
  6337  //
  6338  //     Compression can be done in a single step if the buffers are large enough,
  6339  //   or can be done by repeated calls of the compression function.  In the latter
  6340  //   case, the application must provide more input and/or consume the output
  6341  //   (providing more output space) before each call.
  6342  //
  6343  //     The compressed data format used by default by the in-memory functions is
  6344  //   the zlib format, which is a zlib wrapper documented in RFC 1950, wrapped
  6345  //   around a deflate stream, which is itself documented in RFC 1951.
  6346  //
  6347  //     The library also supports reading and writing files in gzip (.gz) format
  6348  //   with an interface similar to that of stdio using the functions that start
  6349  //   with "gz".  The gzip format is different from the zlib format.  gzip is a
  6350  //   gzip wrapper, documented in RFC 1952, wrapped around a deflate stream.
  6351  //
  6352  //     This library can optionally read and write gzip and raw deflate streams in
  6353  //   memory as well.
  6354  //
  6355  //     The zlib format was designed to be compact and fast for use in memory
  6356  //   and on communications channels.  The gzip format was designed for single-
  6357  //   file compression on file systems, has a larger header than zlib to maintain
  6358  //   directory information, and uses a different, slower check method than zlib.
  6359  //
  6360  //     The library does not install any signal handler.  The decoder checks
  6361  //   the consistency of the compressed data, so the library should never crash
  6362  //   even in the case of corrupted input.
  6363  
  6364  type alloc_func = uintptr /* zlib.h:81:16 */
  6365  type free_func = uintptr  /* zlib.h:82:16 */
  6366  
  6367  type z_stream_s = struct {
  6368  	next_in   uintptr
  6369  	avail_in  uInt
  6370  	_         [4]byte
  6371  	total_in  uLong
  6372  	next_out  uintptr
  6373  	avail_out uInt
  6374  	_         [4]byte
  6375  	total_out uLong
  6376  	msg       uintptr
  6377  	state     uintptr
  6378  	zalloc    alloc_func
  6379  	zfree     free_func
  6380  	opaque    voidpf
  6381  	data_type int32
  6382  	_         [4]byte
  6383  	adler     uLong
  6384  	reserved  uLong
  6385  } /* zlib.h:86:9 */
  6386  
  6387  type z_stream = z_stream_s /* zlib.h:106:3 */
  6388  
  6389  type z_streamp = uintptr /* zlib.h:108:22 */
  6390  
  6391  //
  6392  //      gzip header information passed to and from zlib routines.  See RFC 1952
  6393  //   for more details on the meanings of these fields.
  6394  type gz_header_s = struct {
  6395  	text      int32
  6396  	_         [4]byte
  6397  	time      uLong
  6398  	xflags    int32
  6399  	os        int32
  6400  	extra     uintptr
  6401  	extra_len uInt
  6402  	extra_max uInt
  6403  	name      uintptr
  6404  	name_max  uInt
  6405  	_         [4]byte
  6406  	comment   uintptr
  6407  	comm_max  uInt
  6408  	hcrc      int32
  6409  	done      int32
  6410  	_         [4]byte
  6411  } /* zlib.h:114:9 */
  6412  
  6413  //
  6414  //      gzip header information passed to and from zlib routines.  See RFC 1952
  6415  //   for more details on the meanings of these fields.
  6416  type gz_header = gz_header_s /* zlib.h:129:3 */
  6417  
  6418  type gz_headerp = uintptr /* zlib.h:131:23 */
  6419  //
  6420  //      inflateGetHeader() requests that gzip header information be stored in the
  6421  //    provided gz_header structure.  inflateGetHeader() may be called after
  6422  //    inflateInit2() or inflateReset(), and before the first call of inflate().
  6423  //    As inflate() processes the gzip stream, head->done is zero until the header
  6424  //    is completed, at which time head->done is set to one.  If a zlib stream is
  6425  //    being decoded, then head->done is set to -1 to indicate that there will be
  6426  //    no gzip header information forthcoming.  Note that Z_BLOCK or Z_TREES can be
  6427  //    used to force inflate() to return immediately after header processing is
  6428  //    complete and before any actual data is decompressed.
  6429  //
  6430  //      The text, time, xflags, and os fields are filled in with the gzip header
  6431  //    contents.  hcrc is set to true if there is a header CRC.  (The header CRC
  6432  //    was valid if done is set to one.) If extra is not Z_NULL, then extra_max
  6433  //    contains the maximum number of bytes to write to extra.  Once done is true,
  6434  //    extra_len contains the actual extra field length, and extra contains the
  6435  //    extra field, or that field truncated if extra_max is less than extra_len.
  6436  //    If name is not Z_NULL, then up to name_max characters are written there,
  6437  //    terminated with a zero unless the length is greater than name_max.  If
  6438  //    comment is not Z_NULL, then up to comm_max characters are written there,
  6439  //    terminated with a zero unless the length is greater than comm_max.  When any
  6440  //    of extra, name, or comment are not Z_NULL and the respective field is not
  6441  //    present in the header, then that field is set to Z_NULL to signal its
  6442  //    absence.  This allows the use of deflateSetHeader() with the returned
  6443  //    structure to duplicate the header.  However if those fields are set to
  6444  //    allocated memory, then the application will need to save those pointers
  6445  //    elsewhere so that they can be eventually freed.
  6446  //
  6447  //      If inflateGetHeader is not used, then the header information is simply
  6448  //    discarded.  The header is always checked for validity, including the header
  6449  //    CRC if present.  inflateReset() will reset the process to discard the header
  6450  //    information.  The application would need to call inflateGetHeader() again to
  6451  //    retrieve the header from the next gzip stream.
  6452  //
  6453  //      inflateGetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source
  6454  //    stream state was inconsistent.
  6455  
  6456  //
  6457  // ZEXTERN int ZEXPORT inflateBackInit OF((z_streamp strm, int windowBits,
  6458  //                                         unsigned char FAR *window));
  6459  //
  6460  //      Initialize the internal stream state for decompression using inflateBack()
  6461  //    calls.  The fields zalloc, zfree and opaque in strm must be initialized
  6462  //    before the call.  If zalloc and zfree are Z_NULL, then the default library-
  6463  //    derived memory allocation routines are used.  windowBits is the base two
  6464  //    logarithm of the window size, in the range 8..15.  window is a caller
  6465  //    supplied buffer of that size.  Except for special applications where it is
  6466  //    assured that deflate was used with small window sizes, windowBits must be 15
  6467  //    and a 32K byte window must be supplied to be able to decompress general
  6468  //    deflate streams.
  6469  //
  6470  //      See inflateBack() for the usage of these routines.
  6471  //
  6472  //      inflateBackInit will return Z_OK on success, Z_STREAM_ERROR if any of
  6473  //    the parameters are invalid, Z_MEM_ERROR if the internal state could not be
  6474  //    allocated, or Z_VERSION_ERROR if the version of the library does not match
  6475  //    the version of the header file.
  6476  
  6477  type in_func = uintptr  /* zlib.h:1092:18 */
  6478  type out_func = uintptr /* zlib.h:1094:13 */
  6479  //
  6480  //      Same as uncompress, except that sourceLen is a pointer, where the
  6481  //    length of the source is *sourceLen.  On return, *sourceLen is the number of
  6482  //    source bytes consumed.
  6483  
  6484  // gzip file access functions
  6485  
  6486  //
  6487  //      This library supports reading and writing files in gzip (.gz) format with
  6488  //    an interface similar to that of stdio, using the functions that start with
  6489  //    "gz".  The gzip format is different from the zlib format.  gzip is a gzip
  6490  //    wrapper, documented in RFC 1952, wrapped around a deflate stream.
  6491  
  6492  type gzFile_s = struct {
  6493  	have uint32
  6494  	_    [4]byte
  6495  	next uintptr
  6496  	pos  off_t
  6497  } /* zlib.h:1300:9 */
  6498  
  6499  //
  6500  //      Same as uncompress, except that sourceLen is a pointer, where the
  6501  //    length of the source is *sourceLen.  On return, *sourceLen is the number of
  6502  //    source bytes consumed.
  6503  
  6504  // gzip file access functions
  6505  
  6506  //
  6507  //      This library supports reading and writing files in gzip (.gz) format with
  6508  //    an interface similar to that of stdio, using the functions that start with
  6509  //    "gz".  The gzip format is different from the zlib format.  gzip is a gzip
  6510  //    wrapper, documented in RFC 1952, wrapped around a deflate stream.
  6511  
  6512  type gzFile = uintptr /* zlib.h:1300:25 */
  6513  
  6514  type fpos_t = int64 /* _stdio.h:81:25 */
  6515  
  6516  // NB: to fit things in six character monocase externals, the stdio
  6517  // code uses the prefix `__s' for stdio objects, typically followed
  6518  // by a three-character attempt at a mnemonic.
  6519  
  6520  // stdio buffers
  6521  type __sbuf = struct {
  6522  	_base uintptr
  6523  	_size int32
  6524  	_     [4]byte
  6525  } /* _stdio.h:92:1 */
  6526  
  6527  // stdio state variables.
  6528  //
  6529  // The following always hold:
  6530  //
  6531  //	if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR),
  6532  //		_lbfsize is -_bf._size, else _lbfsize is 0
  6533  //	if _flags&__SRD, _w is 0
  6534  //	if _flags&__SWR, _r is 0
  6535  //
  6536  // This ensures that the getc and putc macros (or inline functions) never
  6537  // try to write or read from a file that is in `read' or `write' mode.
  6538  // (Moreover, they can, and do, automatically switch from read mode to
  6539  // write mode, and back, on "r+" and "w+" files.)
  6540  //
  6541  // _lbfsize is used only to make the inline line-buffered output stream
  6542  // code as compact as possible.
  6543  //
  6544  // _ub, _up, and _ur are used when ungetc() pushes back more characters
  6545  // than fit in the current _bf, or when ungetc() pushes back a character
  6546  // that does not match the previous one in _bf.  When this happens,
  6547  // _ub._base becomes non-nil (i.e., a stream has ungetc() data iff
  6548  // _ub._base!=NULL) and _up and _ur save the current values of _p and _r.
  6549  //
  6550  // NB: see WARNING above before changing the layout of this structure!
  6551  type __sFILE = struct {
  6552  	_p     uintptr
  6553  	_r     int32
  6554  	_w     int32
  6555  	_flags int16
  6556  	_file  int16
  6557  	_      [4]byte
  6558  	_bf    struct {
  6559  		_base uintptr
  6560  		_size int32
  6561  		_     [4]byte
  6562  	}
  6563  	_lbfsize int32
  6564  	_        [4]byte
  6565  	_cookie  uintptr
  6566  	_close   uintptr
  6567  	_read    uintptr
  6568  	_seek    uintptr
  6569  	_write   uintptr
  6570  	_ub      struct {
  6571  		_base uintptr
  6572  		_size int32
  6573  		_     [4]byte
  6574  	}
  6575  	_extra uintptr
  6576  	_ur    int32
  6577  	_ubuf  [3]uint8
  6578  	_nbuf  [1]uint8
  6579  	_lb    struct {
  6580  		_base uintptr
  6581  		_size int32
  6582  		_     [4]byte
  6583  	}
  6584  	_blksize int32
  6585  	_        [4]byte
  6586  	_offset  fpos_t
  6587  } /* _stdio.h:126:9 */
  6588  
  6589  // stdio state variables.
  6590  //
  6591  // The following always hold:
  6592  //
  6593  //	if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR),
  6594  //		_lbfsize is -_bf._size, else _lbfsize is 0
  6595  //	if _flags&__SRD, _w is 0
  6596  //	if _flags&__SWR, _r is 0
  6597  //
  6598  // This ensures that the getc and putc macros (or inline functions) never
  6599  // try to write or read from a file that is in `read' or `write' mode.
  6600  // (Moreover, they can, and do, automatically switch from read mode to
  6601  // write mode, and back, on "r+" and "w+" files.)
  6602  //
  6603  // _lbfsize is used only to make the inline line-buffered output stream
  6604  // code as compact as possible.
  6605  //
  6606  // _ub, _up, and _ur are used when ungetc() pushes back more characters
  6607  // than fit in the current _bf, or when ungetc() pushes back a character
  6608  // that does not match the previous one in _bf.  When this happens,
  6609  // _ub._base becomes non-nil (i.e., a stream has ungetc() data iff
  6610  // _ub._base!=NULL) and _up and _ur save the current values of _p and _r.
  6611  //
  6612  // NB: see WARNING above before changing the layout of this structure!
  6613  type FILE = __sFILE /* _stdio.h:157:3 */
  6614  
  6615  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
  6616  //
  6617  // @APPLE_LICENSE_HEADER_START@
  6618  //
  6619  // This file contains Original Code and/or Modifications of Original Code
  6620  // as defined in and that are subject to the Apple Public Source License
  6621  // Version 2.0 (the 'License'). You may not use this file except in
  6622  // compliance with the License. Please obtain a copy of the License at
  6623  // http://www.opensource.apple.com/apsl/ and read it before using this
  6624  // file.
  6625  //
  6626  // The Original Code and all software distributed under the License are
  6627  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6628  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6629  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6630  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6631  // Please see the License for the specific language governing rights and
  6632  // limitations under the License.
  6633  //
  6634  // @APPLE_LICENSE_HEADER_END@
  6635  // -
  6636  // Copyright (c) 1990, 1993
  6637  //	The Regents of the University of California.  All rights reserved.
  6638  //
  6639  // Redistribution and use in source and binary forms, with or without
  6640  // modification, are permitted provided that the following conditions
  6641  // are met:
  6642  // 1. Redistributions of source code must retain the above copyright
  6643  //    notice, this list of conditions and the following disclaimer.
  6644  // 2. Redistributions in binary form must reproduce the above copyright
  6645  //    notice, this list of conditions and the following disclaimer in the
  6646  //    documentation and/or other materials provided with the distribution.
  6647  // 3. All advertising materials mentioning features or use of this software
  6648  //    must display the following acknowledgement:
  6649  //	This product includes software developed by the University of
  6650  //	California, Berkeley and its contributors.
  6651  // 4. Neither the name of the University nor the names of its contributors
  6652  //    may be used to endorse or promote products derived from this software
  6653  //    without specific prior written permission.
  6654  //
  6655  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6656  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6657  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6658  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6659  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6660  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6661  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6662  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6663  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6664  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6665  // SUCH DAMAGE.
  6666  //
  6667  //	@(#)string.h	8.1 (Berkeley) 6/2/93
  6668  
  6669  // Security checking functions.
  6670  // Copyright (c) 2017 Apple Inc. All rights reserved.
  6671  //
  6672  // @APPLE_LICENSE_HEADER_START@
  6673  //
  6674  // This file contains Original Code and/or Modifications of Original Code
  6675  // as defined in and that are subject to the Apple Public Source License
  6676  // Version 2.0 (the 'License'). You may not use this file except in
  6677  // compliance with the License. Please obtain a copy of the License at
  6678  // http://www.opensource.apple.com/apsl/ and read it before using this
  6679  // file.
  6680  //
  6681  // The Original Code and all software distributed under the License are
  6682  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6683  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6684  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6685  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6686  // Please see the License for the specific language governing rights and
  6687  // limitations under the License.
  6688  //
  6689  // @APPLE_LICENSE_HEADER_END@
  6690  
  6691  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  6692  //
  6693  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6694  //
  6695  // This file contains Original Code and/or Modifications of Original Code
  6696  // as defined in and that are subject to the Apple Public Source License
  6697  // Version 2.0 (the 'License'). You may not use this file except in
  6698  // compliance with the License. The rights granted to you under the License
  6699  // may not be used to create, or enable the creation or redistribution of,
  6700  // unlawful or unlicensed copies of an Apple operating system, or to
  6701  // circumvent, violate, or enable the circumvention or violation of, any
  6702  // terms of an Apple operating system software license agreement.
  6703  //
  6704  // Please obtain a copy of the License at
  6705  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6706  //
  6707  // The Original Code and all software distributed under the License are
  6708  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6709  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6710  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6711  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6712  // Please see the License for the specific language governing rights and
  6713  // limitations under the License.
  6714  //
  6715  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6716  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6717  // Copyright (c) 1991, 1993
  6718  //	The Regents of the University of California.  All rights reserved.
  6719  //
  6720  // This code is derived from software contributed to Berkeley by
  6721  // Berkeley Software Design, Inc.
  6722  //
  6723  // Redistribution and use in source and binary forms, with or without
  6724  // modification, are permitted provided that the following conditions
  6725  // are met:
  6726  // 1. Redistributions of source code must retain the above copyright
  6727  //    notice, this list of conditions and the following disclaimer.
  6728  // 2. Redistributions in binary form must reproduce the above copyright
  6729  //    notice, this list of conditions and the following disclaimer in the
  6730  //    documentation and/or other materials provided with the distribution.
  6731  // 3. All advertising materials mentioning features or use of this software
  6732  //    must display the following acknowledgement:
  6733  //	This product includes software developed by the University of
  6734  //	California, Berkeley and its contributors.
  6735  // 4. Neither the name of the University nor the names of its contributors
  6736  //    may be used to endorse or promote products derived from this software
  6737  //    without specific prior written permission.
  6738  //
  6739  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6740  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6741  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6742  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6743  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6744  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6745  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6746  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6747  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6748  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6749  // SUCH DAMAGE.
  6750  //
  6751  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  6752  
  6753  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  6754  //
  6755  // @APPLE_LICENSE_HEADER_START@
  6756  //
  6757  // This file contains Original Code and/or Modifications of Original Code
  6758  // as defined in and that are subject to the Apple Public Source License
  6759  // Version 2.0 (the 'License'). You may not use this file except in
  6760  // compliance with the License. Please obtain a copy of the License at
  6761  // http://www.opensource.apple.com/apsl/ and read it before using this
  6762  // file.
  6763  //
  6764  // The Original Code and all software distributed under the License are
  6765  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6766  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6767  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6768  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6769  // Please see the License for the specific language governing rights and
  6770  // limitations under the License.
  6771  //
  6772  // @APPLE_LICENSE_HEADER_END@
  6773  
  6774  // Copyright (c) 2007, 2008 Apple Inc. All rights reserved.
  6775  //
  6776  // @APPLE_LICENSE_HEADER_START@
  6777  //
  6778  // This file contains Original Code and/or Modifications of Original Code
  6779  // as defined in and that are subject to the Apple Public Source License
  6780  // Version 2.0 (the 'License'). You may not use this file except in
  6781  // compliance with the License. Please obtain a copy of the License at
  6782  // http://www.opensource.apple.com/apsl/ and read it before using this
  6783  // file.
  6784  //
  6785  // The Original Code and all software distributed under the License are
  6786  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6787  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6788  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6789  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6790  // Please see the License for the specific language governing rights and
  6791  // limitations under the License.
  6792  //
  6793  // @APPLE_LICENSE_HEADER_END@
  6794  
  6795  // bcopy and bzero
  6796  
  6797  // Removed in Issue 7
  6798  
  6799  // void	bcopy(const void *src, void *dst, size_t len)
  6800  
  6801  // void	bzero(void *s, size_t n)
  6802  
  6803  // Security checking functions.
  6804  // Copyright (c) 2007,2017 Apple Inc. All rights reserved.
  6805  //
  6806  // @APPLE_LICENSE_HEADER_START@
  6807  //
  6808  // This file contains Original Code and/or Modifications of Original Code
  6809  // as defined in and that are subject to the Apple Public Source License
  6810  // Version 2.0 (the 'License'). You may not use this file except in
  6811  // compliance with the License. Please obtain a copy of the License at
  6812  // http://www.opensource.apple.com/apsl/ and read it before using this
  6813  // file.
  6814  //
  6815  // The Original Code and all software distributed under the License are
  6816  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6817  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6818  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6819  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6820  // Please see the License for the specific language governing rights and
  6821  // limitations under the License.
  6822  //
  6823  // @APPLE_LICENSE_HEADER_END@
  6824  
  6825  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  6826  //
  6827  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6828  //
  6829  // This file contains Original Code and/or Modifications of Original Code
  6830  // as defined in and that are subject to the Apple Public Source License
  6831  // Version 2.0 (the 'License'). You may not use this file except in
  6832  // compliance with the License. The rights granted to you under the License
  6833  // may not be used to create, or enable the creation or redistribution of,
  6834  // unlawful or unlicensed copies of an Apple operating system, or to
  6835  // circumvent, violate, or enable the circumvention or violation of, any
  6836  // terms of an Apple operating system software license agreement.
  6837  //
  6838  // Please obtain a copy of the License at
  6839  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6840  //
  6841  // The Original Code and all software distributed under the License are
  6842  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6843  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6844  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6845  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6846  // Please see the License for the specific language governing rights and
  6847  // limitations under the License.
  6848  //
  6849  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6850  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6851  // Copyright (c) 1991, 1993
  6852  //	The Regents of the University of California.  All rights reserved.
  6853  //
  6854  // This code is derived from software contributed to Berkeley by
  6855  // Berkeley Software Design, Inc.
  6856  //
  6857  // Redistribution and use in source and binary forms, with or without
  6858  // modification, are permitted provided that the following conditions
  6859  // are met:
  6860  // 1. Redistributions of source code must retain the above copyright
  6861  //    notice, this list of conditions and the following disclaimer.
  6862  // 2. Redistributions in binary form must reproduce the above copyright
  6863  //    notice, this list of conditions and the following disclaimer in the
  6864  //    documentation and/or other materials provided with the distribution.
  6865  // 3. All advertising materials mentioning features or use of this software
  6866  //    must display the following acknowledgement:
  6867  //	This product includes software developed by the University of
  6868  //	California, Berkeley and its contributors.
  6869  // 4. Neither the name of the University nor the names of its contributors
  6870  //    may be used to endorse or promote products derived from this software
  6871  //    without specific prior written permission.
  6872  //
  6873  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6874  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6875  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6876  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6877  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6878  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6879  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6880  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6881  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6882  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6883  // SUCH DAMAGE.
  6884  //
  6885  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  6886  
  6887  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  6888  //
  6889  // @APPLE_LICENSE_HEADER_START@
  6890  //
  6891  // This file contains Original Code and/or Modifications of Original Code
  6892  // as defined in and that are subject to the Apple Public Source License
  6893  // Version 2.0 (the 'License'). You may not use this file except in
  6894  // compliance with the License. Please obtain a copy of the License at
  6895  // http://www.opensource.apple.com/apsl/ and read it before using this
  6896  // file.
  6897  //
  6898  // The Original Code and all software distributed under the License are
  6899  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6900  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6901  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6902  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6903  // Please see the License for the specific language governing rights and
  6904  // limitations under the License.
  6905  //
  6906  // @APPLE_LICENSE_HEADER_END@
  6907  
  6908  // Copyright (c) 2007, 2008 Apple Inc. All rights reserved.
  6909  //
  6910  // @APPLE_LICENSE_HEADER_START@
  6911  //
  6912  // This file contains Original Code and/or Modifications of Original Code
  6913  // as defined in and that are subject to the Apple Public Source License
  6914  // Version 2.0 (the 'License'). You may not use this file except in
  6915  // compliance with the License. Please obtain a copy of the License at
  6916  // http://www.opensource.apple.com/apsl/ and read it before using this
  6917  // file.
  6918  //
  6919  // The Original Code and all software distributed under the License are
  6920  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6921  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6922  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6923  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6924  // Please see the License for the specific language governing rights and
  6925  // limitations under the License.
  6926  //
  6927  // @APPLE_LICENSE_HEADER_END@
  6928  
  6929  // <rdar://problem/12622659>
  6930  
  6931  // memccpy, memcpy, mempcpy, memmove, memset, strcpy, strlcpy, stpcpy,
  6932  //    strncpy, stpncpy, strcat, strlcat, and strncat
  6933  
  6934  // void *memcpy(void *dst, const void *src, size_t n)
  6935  
  6936  // void *memmove(void *dst, const void *src, size_t len)
  6937  
  6938  // void *memset(void *b, int c, size_t len)
  6939  
  6940  // char *strcpy(char *dst, const char *src)
  6941  
  6942  // char *stpcpy(char *dst, const char *src)
  6943  
  6944  // char *stpncpy(char *dst, const char *src, size_t n)
  6945  
  6946  // char *strncpy(char *dst, const char *src, size_t n)
  6947  
  6948  // char *strcat(char *s1, const char *s2)
  6949  
  6950  // char *strncat(char *s1, const char *s2, size_t n)
  6951  
  6952  // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved.
  6953  //
  6954  // @APPLE_LICENSE_HEADER_START@
  6955  //
  6956  // This file contains Original Code and/or Modifications of Original Code
  6957  // as defined in and that are subject to the Apple Public Source License
  6958  // Version 2.0 (the 'License'). You may not use this file except in
  6959  // compliance with the License. Please obtain a copy of the License at
  6960  // http://www.opensource.apple.com/apsl/ and read it before using this
  6961  // file.
  6962  //
  6963  // The Original Code and all software distributed under the License are
  6964  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6965  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6966  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6967  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6968  // Please see the License for the specific language governing rights and
  6969  // limitations under the License.
  6970  //
  6971  // @APPLE_LICENSE_HEADER_END@
  6972  // -
  6973  // Copyright (c) 1990, 1993
  6974  //	The Regents of the University of California.  All rights reserved.
  6975  //
  6976  // Redistribution and use in source and binary forms, with or without
  6977  // modification, are permitted provided that the following conditions
  6978  // are met:
  6979  // 1. Redistributions of source code must retain the above copyright
  6980  //    notice, this list of conditions and the following disclaimer.
  6981  // 2. Redistributions in binary form must reproduce the above copyright
  6982  //    notice, this list of conditions and the following disclaimer in the
  6983  //    documentation and/or other materials provided with the distribution.
  6984  // 3. All advertising materials mentioning features or use of this software
  6985  //    must display the following acknowledgement:
  6986  //	This product includes software developed by the University of
  6987  //	California, Berkeley and its contributors.
  6988  // 4. Neither the name of the University nor the names of its contributors
  6989  //    may be used to endorse or promote products derived from this software
  6990  //    without specific prior written permission.
  6991  //
  6992  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6993  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6994  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6995  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6996  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6997  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6998  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6999  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7000  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7001  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7002  // SUCH DAMAGE.
  7003  //
  7004  //	@(#)stdlib.h	8.5 (Berkeley) 5/19/95
  7005  
  7006  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  7007  //
  7008  // @APPLE_LICENSE_HEADER_START@
  7009  //
  7010  // This file contains Original Code and/or Modifications of Original Code
  7011  // as defined in and that are subject to the Apple Public Source License
  7012  // Version 2.0 (the 'License'). You may not use this file except in
  7013  // compliance with the License. Please obtain a copy of the License at
  7014  // http://www.opensource.apple.com/apsl/ and read it before using this
  7015  // file.
  7016  //
  7017  // The Original Code and all software distributed under the License are
  7018  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7019  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7020  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7021  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7022  // Please see the License for the specific language governing rights and
  7023  // limitations under the License.
  7024  //
  7025  // @APPLE_LICENSE_HEADER_END@
  7026  
  7027  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  7028  //
  7029  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7030  //
  7031  // This file contains Original Code and/or Modifications of Original Code
  7032  // as defined in and that are subject to the Apple Public Source License
  7033  // Version 2.0 (the 'License'). You may not use this file except in
  7034  // compliance with the License. The rights granted to you under the License
  7035  // may not be used to create, or enable the creation or redistribution of,
  7036  // unlawful or unlicensed copies of an Apple operating system, or to
  7037  // circumvent, violate, or enable the circumvention or violation of, any
  7038  // terms of an Apple operating system software license agreement.
  7039  //
  7040  // Please obtain a copy of the License at
  7041  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7042  //
  7043  // The Original Code and all software distributed under the License are
  7044  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7045  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7046  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7047  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7048  // Please see the License for the specific language governing rights and
  7049  // limitations under the License.
  7050  //
  7051  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7052  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7053  // Copyright (c) 1991, 1993
  7054  //	The Regents of the University of California.  All rights reserved.
  7055  //
  7056  // This code is derived from software contributed to Berkeley by
  7057  // Berkeley Software Design, Inc.
  7058  //
  7059  // Redistribution and use in source and binary forms, with or without
  7060  // modification, are permitted provided that the following conditions
  7061  // are met:
  7062  // 1. Redistributions of source code must retain the above copyright
  7063  //    notice, this list of conditions and the following disclaimer.
  7064  // 2. Redistributions in binary form must reproduce the above copyright
  7065  //    notice, this list of conditions and the following disclaimer in the
  7066  //    documentation and/or other materials provided with the distribution.
  7067  // 3. All advertising materials mentioning features or use of this software
  7068  //    must display the following acknowledgement:
  7069  //	This product includes software developed by the University of
  7070  //	California, Berkeley and its contributors.
  7071  // 4. Neither the name of the University nor the names of its contributors
  7072  //    may be used to endorse or promote products derived from this software
  7073  //    without specific prior written permission.
  7074  //
  7075  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7076  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7077  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7078  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7079  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7080  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7081  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7082  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7083  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7084  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7085  // SUCH DAMAGE.
  7086  //
  7087  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  7088  
  7089  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  7090  //
  7091  // @APPLE_LICENSE_HEADER_START@
  7092  //
  7093  // This file contains Original Code and/or Modifications of Original Code
  7094  // as defined in and that are subject to the Apple Public Source License
  7095  // Version 2.0 (the 'License'). You may not use this file except in
  7096  // compliance with the License. Please obtain a copy of the License at
  7097  // http://www.opensource.apple.com/apsl/ and read it before using this
  7098  // file.
  7099  //
  7100  // The Original Code and all software distributed under the License are
  7101  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7102  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7103  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7104  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7105  // Please see the License for the specific language governing rights and
  7106  // limitations under the License.
  7107  //
  7108  // @APPLE_LICENSE_HEADER_END@
  7109  
  7110  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  7111  //
  7112  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7113  //
  7114  // This file contains Original Code and/or Modifications of Original Code
  7115  // as defined in and that are subject to the Apple Public Source License
  7116  // Version 2.0 (the 'License'). You may not use this file except in
  7117  // compliance with the License. The rights granted to you under the License
  7118  // may not be used to create, or enable the creation or redistribution of,
  7119  // unlawful or unlicensed copies of an Apple operating system, or to
  7120  // circumvent, violate, or enable the circumvention or violation of, any
  7121  // terms of an Apple operating system software license agreement.
  7122  //
  7123  // Please obtain a copy of the License at
  7124  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7125  //
  7126  // The Original Code and all software distributed under the License are
  7127  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7128  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7129  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7130  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7131  // Please see the License for the specific language governing rights and
  7132  // limitations under the License.
  7133  //
  7134  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7135  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  7136  // Copyright (c) 1982, 1986, 1989, 1993, 1994
  7137  //	The Regents of the University of California.  All rights reserved.
  7138  //
  7139  // Redistribution and use in source and binary forms, with or without
  7140  // modification, are permitted provided that the following conditions
  7141  // are met:
  7142  // 1. Redistributions of source code must retain the above copyright
  7143  //    notice, this list of conditions and the following disclaimer.
  7144  // 2. Redistributions in binary form must reproduce the above copyright
  7145  //    notice, this list of conditions and the following disclaimer in the
  7146  //    documentation and/or other materials provided with the distribution.
  7147  // 3. All advertising materials mentioning features or use of this software
  7148  //    must display the following acknowledgement:
  7149  //	This product includes software developed by the University of
  7150  //	California, Berkeley and its contributors.
  7151  // 4. Neither the name of the University nor the names of its contributors
  7152  //    may be used to endorse or promote products derived from this software
  7153  //    without specific prior written permission.
  7154  //
  7155  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7156  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7157  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7158  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7159  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7160  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7161  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7162  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7163  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7164  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7165  // SUCH DAMAGE.
  7166  //
  7167  //	@(#)wait.h	8.2 (Berkeley) 7/10/94
  7168  
  7169  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  7170  //
  7171  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7172  //
  7173  // This file contains Original Code and/or Modifications of Original Code
  7174  // as defined in and that are subject to the Apple Public Source License
  7175  // Version 2.0 (the 'License'). You may not use this file except in
  7176  // compliance with the License. The rights granted to you under the License
  7177  // may not be used to create, or enable the creation or redistribution of,
  7178  // unlawful or unlicensed copies of an Apple operating system, or to
  7179  // circumvent, violate, or enable the circumvention or violation of, any
  7180  // terms of an Apple operating system software license agreement.
  7181  //
  7182  // Please obtain a copy of the License at
  7183  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7184  //
  7185  // The Original Code and all software distributed under the License are
  7186  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7187  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7188  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7189  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7190  // Please see the License for the specific language governing rights and
  7191  // limitations under the License.
  7192  //
  7193  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7194  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7195  // Copyright (c) 1991, 1993
  7196  //	The Regents of the University of California.  All rights reserved.
  7197  //
  7198  // This code is derived from software contributed to Berkeley by
  7199  // Berkeley Software Design, Inc.
  7200  //
  7201  // Redistribution and use in source and binary forms, with or without
  7202  // modification, are permitted provided that the following conditions
  7203  // are met:
  7204  // 1. Redistributions of source code must retain the above copyright
  7205  //    notice, this list of conditions and the following disclaimer.
  7206  // 2. Redistributions in binary form must reproduce the above copyright
  7207  //    notice, this list of conditions and the following disclaimer in the
  7208  //    documentation and/or other materials provided with the distribution.
  7209  // 3. All advertising materials mentioning features or use of this software
  7210  //    must display the following acknowledgement:
  7211  //	This product includes software developed by the University of
  7212  //	California, Berkeley and its contributors.
  7213  // 4. Neither the name of the University nor the names of its contributors
  7214  //    may be used to endorse or promote products derived from this software
  7215  //    without specific prior written permission.
  7216  //
  7217  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7218  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7219  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7220  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7221  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7222  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7223  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7224  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7225  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7226  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7227  // SUCH DAMAGE.
  7228  //
  7229  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  7230  
  7231  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7232  //
  7233  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7234  //
  7235  // This file contains Original Code and/or Modifications of Original Code
  7236  // as defined in and that are subject to the Apple Public Source License
  7237  // Version 2.0 (the 'License'). You may not use this file except in
  7238  // compliance with the License. The rights granted to you under the License
  7239  // may not be used to create, or enable the creation or redistribution of,
  7240  // unlawful or unlicensed copies of an Apple operating system, or to
  7241  // circumvent, violate, or enable the circumvention or violation of, any
  7242  // terms of an Apple operating system software license agreement.
  7243  //
  7244  // Please obtain a copy of the License at
  7245  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7246  //
  7247  // The Original Code and all software distributed under the License are
  7248  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7249  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7250  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7251  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7252  // Please see the License for the specific language governing rights and
  7253  // limitations under the License.
  7254  //
  7255  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7256  
  7257  // This file holds definitions relevent to the wait4 system call
  7258  // and the alternate interfaces that use it (wait, wait3, waitpid).
  7259  
  7260  // [XSI] The type idtype_t shall be defined as an enumeration type whose
  7261  // possible values shall include at least P_ALL, P_PID, and P_PGID.
  7262  type idtype_t = uint32 /* wait.h:83:3 */
  7263  
  7264  // [XSI] The id_t and pid_t types shall be defined as described
  7265  // in <sys/types.h>
  7266  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7267  //
  7268  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7269  //
  7270  // This file contains Original Code and/or Modifications of Original Code
  7271  // as defined in and that are subject to the Apple Public Source License
  7272  // Version 2.0 (the 'License'). You may not use this file except in
  7273  // compliance with the License. The rights granted to you under the License
  7274  // may not be used to create, or enable the creation or redistribution of,
  7275  // unlawful or unlicensed copies of an Apple operating system, or to
  7276  // circumvent, violate, or enable the circumvention or violation of, any
  7277  // terms of an Apple operating system software license agreement.
  7278  //
  7279  // Please obtain a copy of the License at
  7280  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7281  //
  7282  // The Original Code and all software distributed under the License are
  7283  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7284  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7285  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7286  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7287  // Please see the License for the specific language governing rights and
  7288  // limitations under the License.
  7289  //
  7290  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7291  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7292  //
  7293  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7294  //
  7295  // This file contains Original Code and/or Modifications of Original Code
  7296  // as defined in and that are subject to the Apple Public Source License
  7297  // Version 2.0 (the 'License'). You may not use this file except in
  7298  // compliance with the License. The rights granted to you under the License
  7299  // may not be used to create, or enable the creation or redistribution of,
  7300  // unlawful or unlicensed copies of an Apple operating system, or to
  7301  // circumvent, violate, or enable the circumvention or violation of, any
  7302  // terms of an Apple operating system software license agreement.
  7303  //
  7304  // Please obtain a copy of the License at
  7305  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7306  //
  7307  // The Original Code and all software distributed under the License are
  7308  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7309  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7310  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7311  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7312  // Please see the License for the specific language governing rights and
  7313  // limitations under the License.
  7314  //
  7315  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7316  
  7317  // [XSI] The siginfo_t type shall be defined as described in <signal.h>
  7318  // [XSI] The rusage structure shall be defined as described in <sys/resource.h>
  7319  // [XSI] Inclusion of the <sys/wait.h> header may also make visible all
  7320  // symbols from <signal.h> and <sys/resource.h>
  7321  //
  7322  // NOTE:	This requirement is currently being satisfied by the direct
  7323  //		inclusion of <sys/signal.h> and <sys/resource.h>, below.
  7324  //
  7325  //		Software should not depend on the exposure of anything other
  7326  //		than the types siginfo_t and struct rusage as a result of
  7327  //		this inclusion.  If you depend on any types or manifest
  7328  //		values othe than siginfo_t and struct rusage from either of
  7329  //		those files, you should explicitly include them yourself, as
  7330  //		well, or in future releases your stware may not compile
  7331  //		without modification.
  7332  // Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
  7333  //
  7334  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7335  //
  7336  // This file contains Original Code and/or Modifications of Original Code
  7337  // as defined in and that are subject to the Apple Public Source License
  7338  // Version 2.0 (the 'License'). You may not use this file except in
  7339  // compliance with the License. The rights granted to you under the License
  7340  // may not be used to create, or enable the creation or redistribution of,
  7341  // unlawful or unlicensed copies of an Apple operating system, or to
  7342  // circumvent, violate, or enable the circumvention or violation of, any
  7343  // terms of an Apple operating system software license agreement.
  7344  //
  7345  // Please obtain a copy of the License at
  7346  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7347  //
  7348  // The Original Code and all software distributed under the License are
  7349  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7350  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7351  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7352  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7353  // Please see the License for the specific language governing rights and
  7354  // limitations under the License.
  7355  //
  7356  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7357  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  7358  // Copyright (c) 1982, 1986, 1989, 1991, 1993
  7359  //	The Regents of the University of California.  All rights reserved.
  7360  // (c) UNIX System Laboratories, Inc.
  7361  // All or some portions of this file are derived from material licensed
  7362  // to the University of California by American Telephone and Telegraph
  7363  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  7364  // the permission of UNIX System Laboratories, Inc.
  7365  //
  7366  // Redistribution and use in source and binary forms, with or without
  7367  // modification, are permitted provided that the following conditions
  7368  // are met:
  7369  // 1. Redistributions of source code must retain the above copyright
  7370  //    notice, this list of conditions and the following disclaimer.
  7371  // 2. Redistributions in binary form must reproduce the above copyright
  7372  //    notice, this list of conditions and the following disclaimer in the
  7373  //    documentation and/or other materials provided with the distribution.
  7374  // 3. All advertising materials mentioning features or use of this software
  7375  //    must display the following acknowledgement:
  7376  //	This product includes software developed by the University of
  7377  //	California, Berkeley and its contributors.
  7378  // 4. Neither the name of the University nor the names of its contributors
  7379  //    may be used to endorse or promote products derived from this software
  7380  //    without specific prior written permission.
  7381  //
  7382  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7383  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7384  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7385  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7386  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7387  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7388  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7389  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7390  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7391  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7392  // SUCH DAMAGE.
  7393  //
  7394  //	@(#)signal.h	8.2 (Berkeley) 1/21/94
  7395  
  7396  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  7397  //
  7398  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7399  //
  7400  // This file contains Original Code and/or Modifications of Original Code
  7401  // as defined in and that are subject to the Apple Public Source License
  7402  // Version 2.0 (the 'License'). You may not use this file except in
  7403  // compliance with the License. The rights granted to you under the License
  7404  // may not be used to create, or enable the creation or redistribution of,
  7405  // unlawful or unlicensed copies of an Apple operating system, or to
  7406  // circumvent, violate, or enable the circumvention or violation of, any
  7407  // terms of an Apple operating system software license agreement.
  7408  //
  7409  // Please obtain a copy of the License at
  7410  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7411  //
  7412  // The Original Code and all software distributed under the License are
  7413  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7414  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7415  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7416  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7417  // Please see the License for the specific language governing rights and
  7418  // limitations under the License.
  7419  //
  7420  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7421  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7422  // Copyright (c) 1991, 1993
  7423  //	The Regents of the University of California.  All rights reserved.
  7424  //
  7425  // This code is derived from software contributed to Berkeley by
  7426  // Berkeley Software Design, Inc.
  7427  //
  7428  // Redistribution and use in source and binary forms, with or without
  7429  // modification, are permitted provided that the following conditions
  7430  // are met:
  7431  // 1. Redistributions of source code must retain the above copyright
  7432  //    notice, this list of conditions and the following disclaimer.
  7433  // 2. Redistributions in binary form must reproduce the above copyright
  7434  //    notice, this list of conditions and the following disclaimer in the
  7435  //    documentation and/or other materials provided with the distribution.
  7436  // 3. All advertising materials mentioning features or use of this software
  7437  //    must display the following acknowledgement:
  7438  //	This product includes software developed by the University of
  7439  //	California, Berkeley and its contributors.
  7440  // 4. Neither the name of the University nor the names of its contributors
  7441  //    may be used to endorse or promote products derived from this software
  7442  //    without specific prior written permission.
  7443  //
  7444  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7445  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7446  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7447  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7448  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7449  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7450  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7451  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7452  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7453  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7454  // SUCH DAMAGE.
  7455  //
  7456  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  7457  
  7458  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  7459  //
  7460  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7461  //
  7462  // This file contains Original Code and/or Modifications of Original Code
  7463  // as defined in and that are subject to the Apple Public Source License
  7464  // Version 2.0 (the 'License'). You may not use this file except in
  7465  // compliance with the License. The rights granted to you under the License
  7466  // may not be used to create, or enable the creation or redistribution of,
  7467  // unlawful or unlicensed copies of an Apple operating system, or to
  7468  // circumvent, violate, or enable the circumvention or violation of, any
  7469  // terms of an Apple operating system software license agreement.
  7470  //
  7471  // Please obtain a copy of the License at
  7472  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7473  //
  7474  // The Original Code and all software distributed under the License are
  7475  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7476  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7477  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7478  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7479  // Please see the License for the specific language governing rights and
  7480  // limitations under the License.
  7481  //
  7482  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7483  
  7484  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  7485  //
  7486  // @APPLE_LICENSE_HEADER_START@
  7487  //
  7488  // This file contains Original Code and/or Modifications of Original Code
  7489  // as defined in and that are subject to the Apple Public Source License
  7490  // Version 2.0 (the 'License'). You may not use this file except in
  7491  // compliance with the License. Please obtain a copy of the License at
  7492  // http://www.opensource.apple.com/apsl/ and read it before using this
  7493  // file.
  7494  //
  7495  // The Original Code and all software distributed under the License are
  7496  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7497  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7498  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7499  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7500  // Please see the License for the specific language governing rights and
  7501  // limitations under the License.
  7502  //
  7503  // @APPLE_LICENSE_HEADER_END@
  7504  
  7505  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7506  //
  7507  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7508  //
  7509  // This file contains Original Code and/or Modifications of Original Code
  7510  // as defined in and that are subject to the Apple Public Source License
  7511  // Version 2.0 (the 'License'). You may not use this file except in
  7512  // compliance with the License. The rights granted to you under the License
  7513  // may not be used to create, or enable the creation or redistribution of,
  7514  // unlawful or unlicensed copies of an Apple operating system, or to
  7515  // circumvent, violate, or enable the circumvention or violation of, any
  7516  // terms of an Apple operating system software license agreement.
  7517  //
  7518  // Please obtain a copy of the License at
  7519  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7520  //
  7521  // The Original Code and all software distributed under the License are
  7522  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7523  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7524  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7525  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7526  // Please see the License for the specific language governing rights and
  7527  // limitations under the License.
  7528  //
  7529  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7530  
  7531  // Copyright (c) 2000-2009 Apple, Inc. All rights reserved.
  7532  // Copyright (c) 1992 NeXT Computer, Inc.
  7533  //
  7534  
  7535  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  7536  //
  7537  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7538  //
  7539  // This file contains Original Code and/or Modifications of Original Code
  7540  // as defined in and that are subject to the Apple Public Source License
  7541  // Version 2.0 (the 'License'). You may not use this file except in
  7542  // compliance with the License. The rights granted to you under the License
  7543  // may not be used to create, or enable the creation or redistribution of,
  7544  // unlawful or unlicensed copies of an Apple operating system, or to
  7545  // circumvent, violate, or enable the circumvention or violation of, any
  7546  // terms of an Apple operating system software license agreement.
  7547  //
  7548  // Please obtain a copy of the License at
  7549  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7550  //
  7551  // The Original Code and all software distributed under the License are
  7552  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7553  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7554  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7555  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7556  // Please see the License for the specific language governing rights and
  7557  // limitations under the License.
  7558  //
  7559  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7560  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7561  // Copyright (c) 1991, 1993
  7562  //	The Regents of the University of California.  All rights reserved.
  7563  //
  7564  // This code is derived from software contributed to Berkeley by
  7565  // Berkeley Software Design, Inc.
  7566  //
  7567  // Redistribution and use in source and binary forms, with or without
  7568  // modification, are permitted provided that the following conditions
  7569  // are met:
  7570  // 1. Redistributions of source code must retain the above copyright
  7571  //    notice, this list of conditions and the following disclaimer.
  7572  // 2. Redistributions in binary form must reproduce the above copyright
  7573  //    notice, this list of conditions and the following disclaimer in the
  7574  //    documentation and/or other materials provided with the distribution.
  7575  // 3. All advertising materials mentioning features or use of this software
  7576  //    must display the following acknowledgement:
  7577  //	This product includes software developed by the University of
  7578  //	California, Berkeley and its contributors.
  7579  // 4. Neither the name of the University nor the names of its contributors
  7580  //    may be used to endorse or promote products derived from this software
  7581  //    without specific prior written permission.
  7582  //
  7583  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7584  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7585  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7586  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7587  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7588  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7589  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7590  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7591  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7592  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7593  // SUCH DAMAGE.
  7594  //
  7595  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  7596  
  7597  type sig_atomic_t = int32 /* signal.h:17:13 */
  7598  
  7599  // Language spec sez we must list exactly one parameter, even though we
  7600  // actually supply three.  Ugh!
  7601  // SIG_HOLD is chosen to avoid KERN_SIG_* values in <sys/signalvar.h>
  7602  
  7603  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7604  //
  7605  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7606  //
  7607  // This file contains Original Code and/or Modifications of Original Code
  7608  // as defined in and that are subject to the Apple Public Source License
  7609  // Version 2.0 (the 'License'). You may not use this file except in
  7610  // compliance with the License. The rights granted to you under the License
  7611  // may not be used to create, or enable the creation or redistribution of,
  7612  // unlawful or unlicensed copies of an Apple operating system, or to
  7613  // circumvent, violate, or enable the circumvention or violation of, any
  7614  // terms of an Apple operating system software license agreement.
  7615  //
  7616  // Please obtain a copy of the License at
  7617  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7618  //
  7619  // The Original Code and all software distributed under the License are
  7620  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7621  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7622  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7623  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7624  // Please see the License for the specific language governing rights and
  7625  // limitations under the License.
  7626  //
  7627  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7628  
  7629  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7630  //
  7631  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7632  //
  7633  // This file contains Original Code and/or Modifications of Original Code
  7634  // as defined in and that are subject to the Apple Public Source License
  7635  // Version 2.0 (the 'License'). You may not use this file except in
  7636  // compliance with the License. The rights granted to you under the License
  7637  // may not be used to create, or enable the creation or redistribution of,
  7638  // unlawful or unlicensed copies of an Apple operating system, or to
  7639  // circumvent, violate, or enable the circumvention or violation of, any
  7640  // terms of an Apple operating system software license agreement.
  7641  //
  7642  // Please obtain a copy of the License at
  7643  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7644  //
  7645  // The Original Code and all software distributed under the License are
  7646  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7647  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7648  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7649  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7650  // Please see the License for the specific language governing rights and
  7651  // limitations under the License.
  7652  //
  7653  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7654  
  7655  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7656  //
  7657  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7658  //
  7659  // This file contains Original Code and/or Modifications of Original Code
  7660  // as defined in and that are subject to the Apple Public Source License
  7661  // Version 2.0 (the 'License'). You may not use this file except in
  7662  // compliance with the License. The rights granted to you under the License
  7663  // may not be used to create, or enable the creation or redistribution of,
  7664  // unlawful or unlicensed copies of an Apple operating system, or to
  7665  // circumvent, violate, or enable the circumvention or violation of, any
  7666  // terms of an Apple operating system software license agreement.
  7667  //
  7668  // Please obtain a copy of the License at
  7669  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7670  //
  7671  // The Original Code and all software distributed under the License are
  7672  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7673  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7674  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7675  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7676  // Please see the License for the specific language governing rights and
  7677  // limitations under the License.
  7678  //
  7679  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7680  
  7681  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  7682  //
  7683  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7684  //
  7685  // This file contains Original Code and/or Modifications of Original Code
  7686  // as defined in and that are subject to the Apple Public Source License
  7687  // Version 2.0 (the 'License'). You may not use this file except in
  7688  // compliance with the License. The rights granted to you under the License
  7689  // may not be used to create, or enable the creation or redistribution of,
  7690  // unlawful or unlicensed copies of an Apple operating system, or to
  7691  // circumvent, violate, or enable the circumvention or violation of, any
  7692  // terms of an Apple operating system software license agreement.
  7693  //
  7694  // Please obtain a copy of the License at
  7695  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7696  //
  7697  // The Original Code and all software distributed under the License are
  7698  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7699  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7700  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7701  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7702  // Please see the License for the specific language governing rights and
  7703  // limitations under the License.
  7704  //
  7705  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7706  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7707  // Copyright (c) 1991, 1993
  7708  //	The Regents of the University of California.  All rights reserved.
  7709  //
  7710  // This code is derived from software contributed to Berkeley by
  7711  // Berkeley Software Design, Inc.
  7712  //
  7713  // Redistribution and use in source and binary forms, with or without
  7714  // modification, are permitted provided that the following conditions
  7715  // are met:
  7716  // 1. Redistributions of source code must retain the above copyright
  7717  //    notice, this list of conditions and the following disclaimer.
  7718  // 2. Redistributions in binary form must reproduce the above copyright
  7719  //    notice, this list of conditions and the following disclaimer in the
  7720  //    documentation and/or other materials provided with the distribution.
  7721  // 3. All advertising materials mentioning features or use of this software
  7722  //    must display the following acknowledgement:
  7723  //	This product includes software developed by the University of
  7724  //	California, Berkeley and its contributors.
  7725  // 4. Neither the name of the University nor the names of its contributors
  7726  //    may be used to endorse or promote products derived from this software
  7727  //    without specific prior written permission.
  7728  //
  7729  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7730  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7731  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7732  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7733  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7734  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7735  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7736  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7737  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7738  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7739  // SUCH DAMAGE.
  7740  //
  7741  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  7742  
  7743  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  7744  //
  7745  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7746  //
  7747  // This file contains Original Code and/or Modifications of Original Code
  7748  // as defined in and that are subject to the Apple Public Source License
  7749  // Version 2.0 (the 'License'). You may not use this file except in
  7750  // compliance with the License. The rights granted to you under the License
  7751  // may not be used to create, or enable the creation or redistribution of,
  7752  // unlawful or unlicensed copies of an Apple operating system, or to
  7753  // circumvent, violate, or enable the circumvention or violation of, any
  7754  // terms of an Apple operating system software license agreement.
  7755  //
  7756  // Please obtain a copy of the License at
  7757  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7758  //
  7759  // The Original Code and all software distributed under the License are
  7760  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7761  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7762  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7763  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7764  // Please see the License for the specific language governing rights and
  7765  // limitations under the License.
  7766  //
  7767  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7768  
  7769  // Copyright (c) 2017 Apple Inc. All rights reserved.
  7770  //
  7771  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7772  //
  7773  // This file contains Original Code and/or Modifications of Original Code
  7774  // as defined in and that are subject to the Apple Public Source License
  7775  // Version 2.0 (the 'License'). You may not use this file except in
  7776  // compliance with the License. The rights granted to you under the License
  7777  // may not be used to create, or enable the creation or redistribution of,
  7778  // unlawful or unlicensed copies of an Apple operating system, or to
  7779  // circumvent, violate, or enable the circumvention or violation of, any
  7780  // terms of an Apple operating system software license agreement.
  7781  //
  7782  // Please obtain a copy of the License at
  7783  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7784  //
  7785  // The Original Code and all software distributed under the License are
  7786  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7787  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7788  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7789  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7790  // Please see the License for the specific language governing rights and
  7791  // limitations under the License.
  7792  //
  7793  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7794  
  7795  // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
  7796  //
  7797  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7798  //
  7799  // This file contains Original Code and/or Modifications of Original Code
  7800  // as defined in and that are subject to the Apple Public Source License
  7801  // Version 2.0 (the 'License'). You may not use this file except in
  7802  // compliance with the License. The rights granted to you under the License
  7803  // may not be used to create, or enable the creation or redistribution of,
  7804  // unlawful or unlicensed copies of an Apple operating system, or to
  7805  // circumvent, violate, or enable the circumvention or violation of, any
  7806  // terms of an Apple operating system software license agreement.
  7807  //
  7808  // Please obtain a copy of the License at
  7809  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7810  //
  7811  // The Original Code and all software distributed under the License are
  7812  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7813  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7814  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7815  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7816  // Please see the License for the specific language governing rights and
  7817  // limitations under the License.
  7818  //
  7819  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7820  // @OSF_COPYRIGHT@
  7821  
  7822  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  7823  //
  7824  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7825  //
  7826  // This file contains Original Code and/or Modifications of Original Code
  7827  // as defined in and that are subject to the Apple Public Source License
  7828  // Version 2.0 (the 'License'). You may not use this file except in
  7829  // compliance with the License. The rights granted to you under the License
  7830  // may not be used to create, or enable the creation or redistribution of,
  7831  // unlawful or unlicensed copies of an Apple operating system, or to
  7832  // circumvent, violate, or enable the circumvention or violation of, any
  7833  // terms of an Apple operating system software license agreement.
  7834  //
  7835  // Please obtain a copy of the License at
  7836  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7837  //
  7838  // The Original Code and all software distributed under the License are
  7839  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7840  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7841  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7842  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7843  // Please see the License for the specific language governing rights and
  7844  // limitations under the License.
  7845  //
  7846  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7847  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7848  // Copyright (c) 1991, 1993
  7849  //	The Regents of the University of California.  All rights reserved.
  7850  //
  7851  // This code is derived from software contributed to Berkeley by
  7852  // Berkeley Software Design, Inc.
  7853  //
  7854  // Redistribution and use in source and binary forms, with or without
  7855  // modification, are permitted provided that the following conditions
  7856  // are met:
  7857  // 1. Redistributions of source code must retain the above copyright
  7858  //    notice, this list of conditions and the following disclaimer.
  7859  // 2. Redistributions in binary form must reproduce the above copyright
  7860  //    notice, this list of conditions and the following disclaimer in the
  7861  //    documentation and/or other materials provided with the distribution.
  7862  // 3. All advertising materials mentioning features or use of this software
  7863  //    must display the following acknowledgement:
  7864  //	This product includes software developed by the University of
  7865  //	California, Berkeley and its contributors.
  7866  // 4. Neither the name of the University nor the names of its contributors
  7867  //    may be used to endorse or promote products derived from this software
  7868  //    without specific prior written permission.
  7869  //
  7870  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7871  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7872  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7873  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7874  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7875  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7876  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7877  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7878  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7879  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7880  // SUCH DAMAGE.
  7881  //
  7882  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  7883  
  7884  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7885  //
  7886  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7887  //
  7888  // This file contains Original Code and/or Modifications of Original Code
  7889  // as defined in and that are subject to the Apple Public Source License
  7890  // Version 2.0 (the 'License'). You may not use this file except in
  7891  // compliance with the License. The rights granted to you under the License
  7892  // may not be used to create, or enable the creation or redistribution of,
  7893  // unlawful or unlicensed copies of an Apple operating system, or to
  7894  // circumvent, violate, or enable the circumvention or violation of, any
  7895  // terms of an Apple operating system software license agreement.
  7896  //
  7897  // Please obtain a copy of the License at
  7898  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7899  //
  7900  // The Original Code and all software distributed under the License are
  7901  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7902  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7903  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7904  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7905  // Please see the License for the specific language governing rights and
  7906  // limitations under the License.
  7907  //
  7908  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7909  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7910  
  7911  type __darwin_arm_exception_state = struct {
  7912  	__exception uint32
  7913  	__fsr       uint32
  7914  	__far       uint32
  7915  } /* _structs.h:41:1 */
  7916  
  7917  type __darwin_arm_exception_state64 = struct {
  7918  	__far       uint64
  7919  	__esr       uint32
  7920  	__exception uint32
  7921  } /* _structs.h:59:1 */
  7922  
  7923  type __darwin_arm_thread_state = struct {
  7924  	__r    [13]uint32
  7925  	__sp   uint32
  7926  	__lr   uint32
  7927  	__pc   uint32
  7928  	__cpsr uint32
  7929  } /* _structs.h:77:1 */
  7930  
  7931  // By default, the pointer fields in the arm_thread_state64_t structure are
  7932  // opaque on the arm64e architecture and require the use of accessor macros.
  7933  // This mode can also be enabled on the arm64 architecture by building with
  7934  // -D__DARWIN_OPAQUE_ARM_THREAD_STATE64=1.
  7935  
  7936  type __darwin_arm_thread_state64 = struct {
  7937  	__x    [29]uint64
  7938  	__fp   uint64
  7939  	__lr   uint64
  7940  	__sp   uint64
  7941  	__pc   uint64
  7942  	__cpsr uint32
  7943  	__pad  uint32
  7944  } /* _structs.h:136:1 */
  7945  
  7946  // Accessor macros for arm_thread_state64_t pointer fields
  7947  
  7948  // Return pc field of arm_thread_state64_t as a data pointer value
  7949  // Return pc field of arm_thread_state64_t as a function pointer
  7950  // Set pc field of arm_thread_state64_t to a function pointer
  7951  // Return lr field of arm_thread_state64_t as a data pointer value
  7952  // Return lr field of arm_thread_state64_t as a function pointer
  7953  // Set lr field of arm_thread_state64_t to a function pointer
  7954  // Return sp field of arm_thread_state64_t as a data pointer value
  7955  // Set sp field of arm_thread_state64_t to a data pointer value
  7956  // Return fp field of arm_thread_state64_t as a data pointer value
  7957  // Set fp field of arm_thread_state64_t to a data pointer value
  7958  // Strip ptr auth bits from pc, lr, sp and fp field of arm_thread_state64_t
  7959  
  7960  type __darwin_arm_vfp_state = struct {
  7961  	__r     [64]uint32
  7962  	__fpscr uint32
  7963  } /* _structs.h:424:1 */
  7964  
  7965  type __darwin_arm_neon_state64 = struct {
  7966  	__v [32]struct {
  7967  		lo uint64
  7968  		hi uint64
  7969  	}
  7970  	__fpsr uint32
  7971  	__fpcr uint32
  7972  } /* _structs.h:443:1 */
  7973  
  7974  type __darwin_arm_neon_state = struct {
  7975  	__v [16]struct {
  7976  		lo uint64
  7977  		hi uint64
  7978  	}
  7979  	__fpsr uint32
  7980  	__fpcr uint32
  7981  } /* _structs.h:450:1 */
  7982  
  7983  type __arm_pagein_state = struct{ __pagein_error int32 } /* _structs.h:514:1 */
  7984  
  7985  // Debug State
  7986  
  7987  // ARM's arm_debug_state is ARM64's arm_legacy_debug_state
  7988  
  7989  type __arm_legacy_debug_state = struct {
  7990  	__bvr [16]uint32
  7991  	__bcr [16]uint32
  7992  	__wvr [16]uint32
  7993  	__wcr [16]uint32
  7994  } /* _structs.h:551:1 */
  7995  
  7996  type __darwin_arm_debug_state32 = struct {
  7997  	__bvr       [16]uint32
  7998  	__bcr       [16]uint32
  7999  	__wvr       [16]uint32
  8000  	__wcr       [16]uint32
  8001  	__mdscr_el1 uint64
  8002  } /* _structs.h:574:1 */
  8003  
  8004  type __darwin_arm_debug_state64 = struct {
  8005  	__bvr       [16]uint64
  8006  	__bcr       [16]uint64
  8007  	__wvr       [16]uint64
  8008  	__wcr       [16]uint64
  8009  	__mdscr_el1 uint64
  8010  } /* _structs.h:584:1 */
  8011  
  8012  type __darwin_arm_cpmu_state64 = struct{ __ctrs [16]uint64 } /* _structs.h:616:1 */
  8013  
  8014  type __darwin_mcontext32 = struct {
  8015  	__es struct {
  8016  		__exception uint32
  8017  		__fsr       uint32
  8018  		__far       uint32
  8019  	}
  8020  	__ss struct {
  8021  		__r    [13]uint32
  8022  		__sp   uint32
  8023  		__lr   uint32
  8024  		__pc   uint32
  8025  		__cpsr uint32
  8026  	}
  8027  	__fs struct {
  8028  		__r     [64]uint32
  8029  		__fpscr uint32
  8030  	}
  8031  } /* _mcontext.h:41:1 */
  8032  
  8033  type __darwin_mcontext64 = struct {
  8034  	__es struct {
  8035  		__far       uint64
  8036  		__esr       uint32
  8037  		__exception uint32
  8038  	}
  8039  	__ss struct {
  8040  		__x    [29]uint64
  8041  		__fp   uint64
  8042  		__lr   uint64
  8043  		__sp   uint64
  8044  		__pc   uint64
  8045  		__cpsr uint32
  8046  		__pad  uint32
  8047  	}
  8048  	__ns struct {
  8049  		__v [32]struct {
  8050  			lo uint64
  8051  			hi uint64
  8052  		}
  8053  		__fpsr uint32
  8054  		__fpcr uint32
  8055  	}
  8056  } /* _mcontext.h:64:1 */
  8057  
  8058  type mcontext_t = uintptr /* _mcontext.h:85:33 */
  8059  
  8060  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8061  //
  8062  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8063  //
  8064  // This file contains Original Code and/or Modifications of Original Code
  8065  // as defined in and that are subject to the Apple Public Source License
  8066  // Version 2.0 (the 'License'). You may not use this file except in
  8067  // compliance with the License. The rights granted to you under the License
  8068  // may not be used to create, or enable the creation or redistribution of,
  8069  // unlawful or unlicensed copies of an Apple operating system, or to
  8070  // circumvent, violate, or enable the circumvention or violation of, any
  8071  // terms of an Apple operating system software license agreement.
  8072  //
  8073  // Please obtain a copy of the License at
  8074  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8075  //
  8076  // The Original Code and all software distributed under the License are
  8077  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8078  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8079  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8080  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8081  // Please see the License for the specific language governing rights and
  8082  // limitations under the License.
  8083  //
  8084  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8085  
  8086  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8087  //
  8088  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8089  //
  8090  // This file contains Original Code and/or Modifications of Original Code
  8091  // as defined in and that are subject to the Apple Public Source License
  8092  // Version 2.0 (the 'License'). You may not use this file except in
  8093  // compliance with the License. The rights granted to you under the License
  8094  // may not be used to create, or enable the creation or redistribution of,
  8095  // unlawful or unlicensed copies of an Apple operating system, or to
  8096  // circumvent, violate, or enable the circumvention or violation of, any
  8097  // terms of an Apple operating system software license agreement.
  8098  //
  8099  // Please obtain a copy of the License at
  8100  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8101  //
  8102  // The Original Code and all software distributed under the License are
  8103  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8104  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8105  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8106  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8107  // Please see the License for the specific language governing rights and
  8108  // limitations under the License.
  8109  //
  8110  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8111  
  8112  // Structure used in sigaltstack call.
  8113  
  8114  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  8115  //
  8116  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8117  //
  8118  // This file contains Original Code and/or Modifications of Original Code
  8119  // as defined in and that are subject to the Apple Public Source License
  8120  // Version 2.0 (the 'License'). You may not use this file except in
  8121  // compliance with the License. The rights granted to you under the License
  8122  // may not be used to create, or enable the creation or redistribution of,
  8123  // unlawful or unlicensed copies of an Apple operating system, or to
  8124  // circumvent, violate, or enable the circumvention or violation of, any
  8125  // terms of an Apple operating system software license agreement.
  8126  //
  8127  // Please obtain a copy of the License at
  8128  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8129  //
  8130  // The Original Code and all software distributed under the License are
  8131  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8132  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8133  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8134  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8135  // Please see the License for the specific language governing rights and
  8136  // limitations under the License.
  8137  //
  8138  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8139  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8140  // Copyright (c) 1991, 1993
  8141  //	The Regents of the University of California.  All rights reserved.
  8142  //
  8143  // This code is derived from software contributed to Berkeley by
  8144  // Berkeley Software Design, Inc.
  8145  //
  8146  // Redistribution and use in source and binary forms, with or without
  8147  // modification, are permitted provided that the following conditions
  8148  // are met:
  8149  // 1. Redistributions of source code must retain the above copyright
  8150  //    notice, this list of conditions and the following disclaimer.
  8151  // 2. Redistributions in binary form must reproduce the above copyright
  8152  //    notice, this list of conditions and the following disclaimer in the
  8153  //    documentation and/or other materials provided with the distribution.
  8154  // 3. All advertising materials mentioning features or use of this software
  8155  //    must display the following acknowledgement:
  8156  //	This product includes software developed by the University of
  8157  //	California, Berkeley and its contributors.
  8158  // 4. Neither the name of the University nor the names of its contributors
  8159  //    may be used to endorse or promote products derived from this software
  8160  //    without specific prior written permission.
  8161  //
  8162  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8163  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8164  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8165  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8166  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8167  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8168  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8169  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8170  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8171  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8172  // SUCH DAMAGE.
  8173  //
  8174  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  8175  
  8176  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  8177  //
  8178  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8179  //
  8180  // This file contains Original Code and/or Modifications of Original Code
  8181  // as defined in and that are subject to the Apple Public Source License
  8182  // Version 2.0 (the 'License'). You may not use this file except in
  8183  // compliance with the License. The rights granted to you under the License
  8184  // may not be used to create, or enable the creation or redistribution of,
  8185  // unlawful or unlicensed copies of an Apple operating system, or to
  8186  // circumvent, violate, or enable the circumvention or violation of, any
  8187  // terms of an Apple operating system software license agreement.
  8188  //
  8189  // Please obtain a copy of the License at
  8190  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8191  //
  8192  // The Original Code and all software distributed under the License are
  8193  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8194  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8195  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8196  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8197  // Please see the License for the specific language governing rights and
  8198  // limitations under the License.
  8199  //
  8200  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8201  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8202  
  8203  type __darwin_sigaltstack = struct {
  8204  	ss_sp    uintptr
  8205  	ss_size  uint64
  8206  	ss_flags int32
  8207  	_        [4]byte
  8208  } /* _sigaltstack.h:42:1 */
  8209  
  8210  type stack_t = __darwin_sigaltstack /* _sigaltstack.h:48:33 */ // [???] signal stack
  8211  
  8212  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8213  //
  8214  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8215  //
  8216  // This file contains Original Code and/or Modifications of Original Code
  8217  // as defined in and that are subject to the Apple Public Source License
  8218  // Version 2.0 (the 'License'). You may not use this file except in
  8219  // compliance with the License. The rights granted to you under the License
  8220  // may not be used to create, or enable the creation or redistribution of,
  8221  // unlawful or unlicensed copies of an Apple operating system, or to
  8222  // circumvent, violate, or enable the circumvention or violation of, any
  8223  // terms of an Apple operating system software license agreement.
  8224  //
  8225  // Please obtain a copy of the License at
  8226  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8227  //
  8228  // The Original Code and all software distributed under the License are
  8229  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8230  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8231  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8232  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8233  // Please see the License for the specific language governing rights and
  8234  // limitations under the License.
  8235  //
  8236  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8237  
  8238  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  8239  //
  8240  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8241  //
  8242  // This file contains Original Code and/or Modifications of Original Code
  8243  // as defined in and that are subject to the Apple Public Source License
  8244  // Version 2.0 (the 'License'). You may not use this file except in
  8245  // compliance with the License. The rights granted to you under the License
  8246  // may not be used to create, or enable the creation or redistribution of,
  8247  // unlawful or unlicensed copies of an Apple operating system, or to
  8248  // circumvent, violate, or enable the circumvention or violation of, any
  8249  // terms of an Apple operating system software license agreement.
  8250  //
  8251  // Please obtain a copy of the License at
  8252  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8253  //
  8254  // The Original Code and all software distributed under the License are
  8255  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8256  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8257  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8258  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8259  // Please see the License for the specific language governing rights and
  8260  // limitations under the License.
  8261  //
  8262  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8263  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8264  // Copyright (c) 1991, 1993
  8265  //	The Regents of the University of California.  All rights reserved.
  8266  //
  8267  // This code is derived from software contributed to Berkeley by
  8268  // Berkeley Software Design, Inc.
  8269  //
  8270  // Redistribution and use in source and binary forms, with or without
  8271  // modification, are permitted provided that the following conditions
  8272  // are met:
  8273  // 1. Redistributions of source code must retain the above copyright
  8274  //    notice, this list of conditions and the following disclaimer.
  8275  // 2. Redistributions in binary form must reproduce the above copyright
  8276  //    notice, this list of conditions and the following disclaimer in the
  8277  //    documentation and/or other materials provided with the distribution.
  8278  // 3. All advertising materials mentioning features or use of this software
  8279  //    must display the following acknowledgement:
  8280  //	This product includes software developed by the University of
  8281  //	California, Berkeley and its contributors.
  8282  // 4. Neither the name of the University nor the names of its contributors
  8283  //    may be used to endorse or promote products derived from this software
  8284  //    without specific prior written permission.
  8285  //
  8286  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8287  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8288  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8289  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8290  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8291  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8292  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8293  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8294  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8295  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8296  // SUCH DAMAGE.
  8297  //
  8298  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  8299  
  8300  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  8301  //
  8302  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8303  //
  8304  // This file contains Original Code and/or Modifications of Original Code
  8305  // as defined in and that are subject to the Apple Public Source License
  8306  // Version 2.0 (the 'License'). You may not use this file except in
  8307  // compliance with the License. The rights granted to you under the License
  8308  // may not be used to create, or enable the creation or redistribution of,
  8309  // unlawful or unlicensed copies of an Apple operating system, or to
  8310  // circumvent, violate, or enable the circumvention or violation of, any
  8311  // terms of an Apple operating system software license agreement.
  8312  //
  8313  // Please obtain a copy of the License at
  8314  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8315  //
  8316  // The Original Code and all software distributed under the License are
  8317  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8318  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8319  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8320  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8321  // Please see the License for the specific language governing rights and
  8322  // limitations under the License.
  8323  //
  8324  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8325  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8326  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8327  //
  8328  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8329  //
  8330  // This file contains Original Code and/or Modifications of Original Code
  8331  // as defined in and that are subject to the Apple Public Source License
  8332  // Version 2.0 (the 'License'). You may not use this file except in
  8333  // compliance with the License. The rights granted to you under the License
  8334  // may not be used to create, or enable the creation or redistribution of,
  8335  // unlawful or unlicensed copies of an Apple operating system, or to
  8336  // circumvent, violate, or enable the circumvention or violation of, any
  8337  // terms of an Apple operating system software license agreement.
  8338  //
  8339  // Please obtain a copy of the License at
  8340  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8341  //
  8342  // The Original Code and all software distributed under the License are
  8343  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8344  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8345  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8346  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8347  // Please see the License for the specific language governing rights and
  8348  // limitations under the License.
  8349  //
  8350  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8351  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  8352  //
  8353  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8354  //
  8355  // This file contains Original Code and/or Modifications of Original Code
  8356  // as defined in and that are subject to the Apple Public Source License
  8357  // Version 2.0 (the 'License'). You may not use this file except in
  8358  // compliance with the License. The rights granted to you under the License
  8359  // may not be used to create, or enable the creation or redistribution of,
  8360  // unlawful or unlicensed copies of an Apple operating system, or to
  8361  // circumvent, violate, or enable the circumvention or violation of, any
  8362  // terms of an Apple operating system software license agreement.
  8363  //
  8364  // Please obtain a copy of the License at
  8365  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8366  //
  8367  // The Original Code and all software distributed under the License are
  8368  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8369  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8370  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8371  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8372  // Please see the License for the specific language governing rights and
  8373  // limitations under the License.
  8374  //
  8375  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8376  
  8377  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8378  //
  8379  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8380  //
  8381  // This file contains Original Code and/or Modifications of Original Code
  8382  // as defined in and that are subject to the Apple Public Source License
  8383  // Version 2.0 (the 'License'). You may not use this file except in
  8384  // compliance with the License. The rights granted to you under the License
  8385  // may not be used to create, or enable the creation or redistribution of,
  8386  // unlawful or unlicensed copies of an Apple operating system, or to
  8387  // circumvent, violate, or enable the circumvention or violation of, any
  8388  // terms of an Apple operating system software license agreement.
  8389  //
  8390  // Please obtain a copy of the License at
  8391  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8392  //
  8393  // The Original Code and all software distributed under the License are
  8394  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8395  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8396  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8397  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8398  // Please see the License for the specific language governing rights and
  8399  // limitations under the License.
  8400  //
  8401  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8402  
  8403  // Structure used in sigaltstack call.
  8404  
  8405  type __darwin_ucontext = struct {
  8406  	uc_onstack int32
  8407  	uc_sigmask uint32
  8408  	uc_stack   struct {
  8409  		ss_sp    uintptr
  8410  		ss_size  uint64
  8411  		ss_flags int32
  8412  		_        [4]byte
  8413  	}
  8414  	uc_link     uintptr
  8415  	uc_mcsize   uint64
  8416  	uc_mcontext uintptr
  8417  } /* _ucontext.h:43:1 */
  8418  
  8419  // user context
  8420  type ucontext_t = __darwin_ucontext /* _ucontext.h:57:33 */ // [???] user context
  8421  
  8422  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8423  //
  8424  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8425  //
  8426  // This file contains Original Code and/or Modifications of Original Code
  8427  // as defined in and that are subject to the Apple Public Source License
  8428  // Version 2.0 (the 'License'). You may not use this file except in
  8429  // compliance with the License. The rights granted to you under the License
  8430  // may not be used to create, or enable the creation or redistribution of,
  8431  // unlawful or unlicensed copies of an Apple operating system, or to
  8432  // circumvent, violate, or enable the circumvention or violation of, any
  8433  // terms of an Apple operating system software license agreement.
  8434  //
  8435  // Please obtain a copy of the License at
  8436  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8437  //
  8438  // The Original Code and all software distributed under the License are
  8439  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8440  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8441  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8442  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8443  // Please see the License for the specific language governing rights and
  8444  // limitations under the License.
  8445  //
  8446  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8447  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8448  //
  8449  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8450  //
  8451  // This file contains Original Code and/or Modifications of Original Code
  8452  // as defined in and that are subject to the Apple Public Source License
  8453  // Version 2.0 (the 'License'). You may not use this file except in
  8454  // compliance with the License. The rights granted to you under the License
  8455  // may not be used to create, or enable the creation or redistribution of,
  8456  // unlawful or unlicensed copies of an Apple operating system, or to
  8457  // circumvent, violate, or enable the circumvention or violation of, any
  8458  // terms of an Apple operating system software license agreement.
  8459  //
  8460  // Please obtain a copy of the License at
  8461  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8462  //
  8463  // The Original Code and all software distributed under the License are
  8464  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8465  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8466  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8467  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8468  // Please see the License for the specific language governing rights and
  8469  // limitations under the License.
  8470  //
  8471  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8472  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8473  //
  8474  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8475  //
  8476  // This file contains Original Code and/or Modifications of Original Code
  8477  // as defined in and that are subject to the Apple Public Source License
  8478  // Version 2.0 (the 'License'). You may not use this file except in
  8479  // compliance with the License. The rights granted to you under the License
  8480  // may not be used to create, or enable the creation or redistribution of,
  8481  // unlawful or unlicensed copies of an Apple operating system, or to
  8482  // circumvent, violate, or enable the circumvention or violation of, any
  8483  // terms of an Apple operating system software license agreement.
  8484  //
  8485  // Please obtain a copy of the License at
  8486  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8487  //
  8488  // The Original Code and all software distributed under the License are
  8489  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8490  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8491  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8492  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8493  // Please see the License for the specific language governing rights and
  8494  // limitations under the License.
  8495  //
  8496  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8497  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8498  //
  8499  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8500  //
  8501  // This file contains Original Code and/or Modifications of Original Code
  8502  // as defined in and that are subject to the Apple Public Source License
  8503  // Version 2.0 (the 'License'). You may not use this file except in
  8504  // compliance with the License. The rights granted to you under the License
  8505  // may not be used to create, or enable the creation or redistribution of,
  8506  // unlawful or unlicensed copies of an Apple operating system, or to
  8507  // circumvent, violate, or enable the circumvention or violation of, any
  8508  // terms of an Apple operating system software license agreement.
  8509  //
  8510  // Please obtain a copy of the License at
  8511  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8512  //
  8513  // The Original Code and all software distributed under the License are
  8514  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8515  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8516  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8517  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8518  // Please see the License for the specific language governing rights and
  8519  // limitations under the License.
  8520  //
  8521  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8522  
  8523  type sigval = struct {
  8524  	_         [0]uint64
  8525  	sival_int int32
  8526  	_         [4]byte
  8527  } /* signal.h:158:1 */
  8528  
  8529  type sigevent = struct {
  8530  	sigev_notify int32
  8531  	sigev_signo  int32
  8532  	sigev_value  struct {
  8533  		_         [0]uint64
  8534  		sival_int int32
  8535  		_         [4]byte
  8536  	}
  8537  	sigev_notify_function   uintptr
  8538  	sigev_notify_attributes uintptr
  8539  } /* signal.h:168:1 */
  8540  
  8541  type __siginfo = struct {
  8542  	si_signo  int32
  8543  	si_errno  int32
  8544  	si_code   int32
  8545  	si_pid    pid_t
  8546  	si_uid    uid_t
  8547  	si_status int32
  8548  	si_addr   uintptr
  8549  	si_value  struct {
  8550  		_         [0]uint64
  8551  		sival_int int32
  8552  		_         [4]byte
  8553  	}
  8554  	si_band int64
  8555  	__pad   [7]uint64
  8556  } /* signal.h:177:9 */
  8557  
  8558  type siginfo_t = __siginfo /* signal.h:188:3 */
  8559  
  8560  // When the signal is SIGILL or SIGFPE, si_addr contains the address of
  8561  // the faulting instruction.
  8562  // When the signal is SIGSEGV or SIGBUS, si_addr contains the address of
  8563  // the faulting memory reference. Although for x86 there are cases of SIGSEGV
  8564  // for which si_addr cannot be determined and is NULL.
  8565  // If the signal is SIGCHLD, the si_pid field will contain the child process ID,
  8566  //  si_status contains the exit value or signal and
  8567  //  si_uid contains the real user ID of the process that sent the signal.
  8568  
  8569  // Values for si_code
  8570  
  8571  // Codes for SIGILL
  8572  
  8573  // Codes for SIGFPE
  8574  
  8575  // Codes for SIGSEGV
  8576  
  8577  // Codes for SIGBUS
  8578  
  8579  // Codes for SIGTRAP
  8580  
  8581  // Codes for SIGCHLD
  8582  
  8583  // Codes for SIGPOLL
  8584  
  8585  // union for signal handlers
  8586  type __sigaction_u = struct{ __sa_handler uintptr } /* signal.h:269:1 */
  8587  
  8588  // Signal vector template for Kernel user boundary
  8589  type __sigaction = struct {
  8590  	__sigaction_u struct{ __sa_handler uintptr }
  8591  	sa_tramp      uintptr
  8592  	sa_mask       sigset_t
  8593  	sa_flags      int32
  8594  } /* signal.h:276:1 */
  8595  
  8596  // Signal vector "template" used in sigaction call.
  8597  type sigaction = struct {
  8598  	__sigaction_u struct{ __sa_handler uintptr }
  8599  	sa_mask       sigset_t
  8600  	sa_flags      int32
  8601  } /* signal.h:286:1 */
  8602  
  8603  // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler.
  8604  
  8605  // This will provide 64bit register set in a 32bit user address space
  8606  
  8607  // the following are the only bits we support from user space, the
  8608  // rest are for kernel use only.
  8609  
  8610  // Flags for sigprocmask:
  8611  
  8612  // POSIX 1003.1b required values.
  8613  
  8614  type sig_t = uintptr /* signal.h:331:14 */ // type of signal function
  8615  
  8616  // Structure used in sigaltstack call.
  8617  
  8618  // 4.3 compatibility:
  8619  // Signal vector "template" used in sigvec call.
  8620  type sigvec = struct {
  8621  	sv_handler uintptr
  8622  	sv_mask    int32
  8623  	sv_flags   int32
  8624  } /* signal.h:348:1 */
  8625  
  8626  // Structure used in sigstack call.
  8627  type sigstack = struct {
  8628  	ss_sp      uintptr
  8629  	ss_onstack int32
  8630  	_          [4]byte
  8631  } /* signal.h:367:1 */
  8632  
  8633  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  8634  //
  8635  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8636  //
  8637  // This file contains Original Code and/or Modifications of Original Code
  8638  // as defined in and that are subject to the Apple Public Source License
  8639  // Version 2.0 (the 'License'). You may not use this file except in
  8640  // compliance with the License. The rights granted to you under the License
  8641  // may not be used to create, or enable the creation or redistribution of,
  8642  // unlawful or unlicensed copies of an Apple operating system, or to
  8643  // circumvent, violate, or enable the circumvention or violation of, any
  8644  // terms of an Apple operating system software license agreement.
  8645  //
  8646  // Please obtain a copy of the License at
  8647  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8648  //
  8649  // The Original Code and all software distributed under the License are
  8650  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8651  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8652  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8653  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8654  // Please see the License for the specific language governing rights and
  8655  // limitations under the License.
  8656  //
  8657  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8658  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  8659  // Copyright (c) 1982, 1986, 1993
  8660  //	The Regents of the University of California.  All rights reserved.
  8661  //
  8662  // Redistribution and use in source and binary forms, with or without
  8663  // modification, are permitted provided that the following conditions
  8664  // are met:
  8665  // 1. Redistributions of source code must retain the above copyright
  8666  //    notice, this list of conditions and the following disclaimer.
  8667  // 2. Redistributions in binary form must reproduce the above copyright
  8668  //    notice, this list of conditions and the following disclaimer in the
  8669  //    documentation and/or other materials provided with the distribution.
  8670  // 3. All advertising materials mentioning features or use of this software
  8671  //    must display the following acknowledgement:
  8672  //	This product includes software developed by the University of
  8673  //	California, Berkeley and its contributors.
  8674  // 4. Neither the name of the University nor the names of its contributors
  8675  //    may be used to endorse or promote products derived from this software
  8676  //    without specific prior written permission.
  8677  //
  8678  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8679  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8680  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8681  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8682  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8683  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8684  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8685  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8686  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8687  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8688  // SUCH DAMAGE.
  8689  //
  8690  //	@(#)resource.h	8.2 (Berkeley) 1/4/94
  8691  
  8692  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  8693  //
  8694  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8695  //
  8696  // This file contains Original Code and/or Modifications of Original Code
  8697  // as defined in and that are subject to the Apple Public Source License
  8698  // Version 2.0 (the 'License'). You may not use this file except in
  8699  // compliance with the License. The rights granted to you under the License
  8700  // may not be used to create, or enable the creation or redistribution of,
  8701  // unlawful or unlicensed copies of an Apple operating system, or to
  8702  // circumvent, violate, or enable the circumvention or violation of, any
  8703  // terms of an Apple operating system software license agreement.
  8704  //
  8705  // Please obtain a copy of the License at
  8706  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8707  //
  8708  // The Original Code and all software distributed under the License are
  8709  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8710  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8711  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8712  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8713  // Please see the License for the specific language governing rights and
  8714  // limitations under the License.
  8715  //
  8716  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8717  
  8718  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  8719  //
  8720  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8721  //
  8722  // This file contains Original Code and/or Modifications of Original Code
  8723  // as defined in and that are subject to the Apple Public Source License
  8724  // Version 2.0 (the 'License'). You may not use this file except in
  8725  // compliance with the License. The rights granted to you under the License
  8726  // may not be used to create, or enable the creation or redistribution of,
  8727  // unlawful or unlicensed copies of an Apple operating system, or to
  8728  // circumvent, violate, or enable the circumvention or violation of, any
  8729  // terms of an Apple operating system software license agreement.
  8730  //
  8731  // Please obtain a copy of the License at
  8732  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8733  //
  8734  // The Original Code and all software distributed under the License are
  8735  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8736  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8737  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8738  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8739  // Please see the License for the specific language governing rights and
  8740  // limitations under the License.
  8741  //
  8742  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8743  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8744  // Copyright (c) 1991, 1993
  8745  //	The Regents of the University of California.  All rights reserved.
  8746  //
  8747  // This code is derived from software contributed to Berkeley by
  8748  // Berkeley Software Design, Inc.
  8749  //
  8750  // Redistribution and use in source and binary forms, with or without
  8751  // modification, are permitted provided that the following conditions
  8752  // are met:
  8753  // 1. Redistributions of source code must retain the above copyright
  8754  //    notice, this list of conditions and the following disclaimer.
  8755  // 2. Redistributions in binary form must reproduce the above copyright
  8756  //    notice, this list of conditions and the following disclaimer in the
  8757  //    documentation and/or other materials provided with the distribution.
  8758  // 3. All advertising materials mentioning features or use of this software
  8759  //    must display the following acknowledgement:
  8760  //	This product includes software developed by the University of
  8761  //	California, Berkeley and its contributors.
  8762  // 4. Neither the name of the University nor the names of its contributors
  8763  //    may be used to endorse or promote products derived from this software
  8764  //    without specific prior written permission.
  8765  //
  8766  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8767  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8768  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8769  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8770  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8771  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8772  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8773  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8774  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8775  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8776  // SUCH DAMAGE.
  8777  //
  8778  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  8779  
  8780  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  8781  //
  8782  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8783  //
  8784  // This file contains Original Code and/or Modifications of Original Code
  8785  // as defined in and that are subject to the Apple Public Source License
  8786  // Version 2.0 (the 'License'). You may not use this file except in
  8787  // compliance with the License. The rights granted to you under the License
  8788  // may not be used to create, or enable the creation or redistribution of,
  8789  // unlawful or unlicensed copies of an Apple operating system, or to
  8790  // circumvent, violate, or enable the circumvention or violation of, any
  8791  // terms of an Apple operating system software license agreement.
  8792  //
  8793  // Please obtain a copy of the License at
  8794  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8795  //
  8796  // The Original Code and all software distributed under the License are
  8797  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8798  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8799  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8800  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8801  // Please see the License for the specific language governing rights and
  8802  // limitations under the License.
  8803  //
  8804  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8805  
  8806  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  8807  //
  8808  // @APPLE_LICENSE_HEADER_START@
  8809  //
  8810  // This file contains Original Code and/or Modifications of Original Code
  8811  // as defined in and that are subject to the Apple Public Source License
  8812  // Version 2.0 (the 'License'). You may not use this file except in
  8813  // compliance with the License. Please obtain a copy of the License at
  8814  // http://www.opensource.apple.com/apsl/ and read it before using this
  8815  // file.
  8816  //
  8817  // The Original Code and all software distributed under the License are
  8818  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8819  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8820  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8821  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8822  // Please see the License for the specific language governing rights and
  8823  // limitations under the License.
  8824  //
  8825  // @APPLE_LICENSE_HEADER_END@
  8826  
  8827  // [XSI] The timeval structure shall be defined as described in
  8828  // <sys/time.h>
  8829  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8830  //
  8831  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8832  //
  8833  // This file contains Original Code and/or Modifications of Original Code
  8834  // as defined in and that are subject to the Apple Public Source License
  8835  // Version 2.0 (the 'License'). You may not use this file except in
  8836  // compliance with the License. The rights granted to you under the License
  8837  // may not be used to create, or enable the creation or redistribution of,
  8838  // unlawful or unlicensed copies of an Apple operating system, or to
  8839  // circumvent, violate, or enable the circumvention or violation of, any
  8840  // terms of an Apple operating system software license agreement.
  8841  //
  8842  // Please obtain a copy of the License at
  8843  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8844  //
  8845  // The Original Code and all software distributed under the License are
  8846  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8847  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8848  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8849  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8850  // Please see the License for the specific language governing rights and
  8851  // limitations under the License.
  8852  //
  8853  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8854  
  8855  // The id_t type shall be defined as described in <sys/types.h>
  8856  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8857  //
  8858  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8859  //
  8860  // This file contains Original Code and/or Modifications of Original Code
  8861  // as defined in and that are subject to the Apple Public Source License
  8862  // Version 2.0 (the 'License'). You may not use this file except in
  8863  // compliance with the License. The rights granted to you under the License
  8864  // may not be used to create, or enable the creation or redistribution of,
  8865  // unlawful or unlicensed copies of an Apple operating system, or to
  8866  // circumvent, violate, or enable the circumvention or violation of, any
  8867  // terms of an Apple operating system software license agreement.
  8868  //
  8869  // Please obtain a copy of the License at
  8870  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8871  //
  8872  // The Original Code and all software distributed under the License are
  8873  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8874  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8875  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8876  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8877  // Please see the License for the specific language governing rights and
  8878  // limitations under the License.
  8879  //
  8880  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8881  
  8882  // Resource limit type (low 63 bits, excluding the sign bit)
  8883  type rlim_t = uint64 /* resource.h:89:25 */
  8884  
  8885  // ****
  8886  //
  8887  // PRIORITY
  8888  
  8889  // Possible values of the first parameter to getpriority()/setpriority(),
  8890  // used to indicate the type of the second parameter.
  8891  
  8892  // Range limitations for the value of the third parameter to setpriority().
  8893  
  8894  // use PRIO_DARWIN_BG to set the current thread into "background" state
  8895  // which lowers CPU, disk IO, and networking priorites until thread terminates
  8896  // or "background" state is revoked
  8897  
  8898  // use PRIO_DARWIN_NONUI to restrict a process's ability to make calls to
  8899  // the GPU. (deprecated)
  8900  
  8901  // ****
  8902  //
  8903  // RESOURCE USAGE
  8904  
  8905  // Possible values of the first parameter to getrusage(), used to indicate
  8906  // the scope of the information to be returned.
  8907  
  8908  // A structure representing an accounting of resource utilization.  The
  8909  // address of an instance of this structure is the second parameter to
  8910  // getrusage().
  8911  //
  8912  // Note: All values other than ru_utime and ru_stime are implementaiton
  8913  //       defined and subject to change in a future release.  Their use
  8914  //       is discouraged for standards compliant programs.
  8915  type rusage = struct {
  8916  	ru_utime struct {
  8917  		tv_sec  int64
  8918  		tv_usec int32
  8919  		_       [4]byte
  8920  	}
  8921  	ru_stime struct {
  8922  		tv_sec  int64
  8923  		tv_usec int32
  8924  		_       [4]byte
  8925  	}
  8926  	ru_maxrss   int64
  8927  	ru_ixrss    int64
  8928  	ru_idrss    int64
  8929  	ru_isrss    int64
  8930  	ru_minflt   int64
  8931  	ru_majflt   int64
  8932  	ru_nswap    int64
  8933  	ru_inblock  int64
  8934  	ru_oublock  int64
  8935  	ru_msgsnd   int64
  8936  	ru_msgrcv   int64
  8937  	ru_nsignals int64
  8938  	ru_nvcsw    int64
  8939  	ru_nivcsw   int64
  8940  } /* resource.h:152:1 */
  8941  
  8942  // Flavors for proc_pid_rusage().
  8943  
  8944  // Flags for RUSAGE_INFO_V5
  8945  
  8946  type rusage_info_t = uintptr /* resource.h:199:14 */
  8947  
  8948  type rusage_info_v0 = struct {
  8949  	ri_uuid               [16]uint8_t
  8950  	ri_user_time          uint64_t
  8951  	ri_system_time        uint64_t
  8952  	ri_pkg_idle_wkups     uint64_t
  8953  	ri_interrupt_wkups    uint64_t
  8954  	ri_pageins            uint64_t
  8955  	ri_wired_size         uint64_t
  8956  	ri_resident_size      uint64_t
  8957  	ri_phys_footprint     uint64_t
  8958  	ri_proc_start_abstime uint64_t
  8959  	ri_proc_exit_abstime  uint64_t
  8960  } /* resource.h:201:1 */
  8961  
  8962  type rusage_info_v1 = struct {
  8963  	ri_uuid                  [16]uint8_t
  8964  	ri_user_time             uint64_t
  8965  	ri_system_time           uint64_t
  8966  	ri_pkg_idle_wkups        uint64_t
  8967  	ri_interrupt_wkups       uint64_t
  8968  	ri_pageins               uint64_t
  8969  	ri_wired_size            uint64_t
  8970  	ri_resident_size         uint64_t
  8971  	ri_phys_footprint        uint64_t
  8972  	ri_proc_start_abstime    uint64_t
  8973  	ri_proc_exit_abstime     uint64_t
  8974  	ri_child_user_time       uint64_t
  8975  	ri_child_system_time     uint64_t
  8976  	ri_child_pkg_idle_wkups  uint64_t
  8977  	ri_child_interrupt_wkups uint64_t
  8978  	ri_child_pageins         uint64_t
  8979  	ri_child_elapsed_abstime uint64_t
  8980  } /* resource.h:215:1 */
  8981  
  8982  type rusage_info_v2 = struct {
  8983  	ri_uuid                  [16]uint8_t
  8984  	ri_user_time             uint64_t
  8985  	ri_system_time           uint64_t
  8986  	ri_pkg_idle_wkups        uint64_t
  8987  	ri_interrupt_wkups       uint64_t
  8988  	ri_pageins               uint64_t
  8989  	ri_wired_size            uint64_t
  8990  	ri_resident_size         uint64_t
  8991  	ri_phys_footprint        uint64_t
  8992  	ri_proc_start_abstime    uint64_t
  8993  	ri_proc_exit_abstime     uint64_t
  8994  	ri_child_user_time       uint64_t
  8995  	ri_child_system_time     uint64_t
  8996  	ri_child_pkg_idle_wkups  uint64_t
  8997  	ri_child_interrupt_wkups uint64_t
  8998  	ri_child_pageins         uint64_t
  8999  	ri_child_elapsed_abstime uint64_t
  9000  	ri_diskio_bytesread      uint64_t
  9001  	ri_diskio_byteswritten   uint64_t
  9002  } /* resource.h:235:1 */
  9003  
  9004  type rusage_info_v3 = struct {
  9005  	ri_uuid                          [16]uint8_t
  9006  	ri_user_time                     uint64_t
  9007  	ri_system_time                   uint64_t
  9008  	ri_pkg_idle_wkups                uint64_t
  9009  	ri_interrupt_wkups               uint64_t
  9010  	ri_pageins                       uint64_t
  9011  	ri_wired_size                    uint64_t
  9012  	ri_resident_size                 uint64_t
  9013  	ri_phys_footprint                uint64_t
  9014  	ri_proc_start_abstime            uint64_t
  9015  	ri_proc_exit_abstime             uint64_t
  9016  	ri_child_user_time               uint64_t
  9017  	ri_child_system_time             uint64_t
  9018  	ri_child_pkg_idle_wkups          uint64_t
  9019  	ri_child_interrupt_wkups         uint64_t
  9020  	ri_child_pageins                 uint64_t
  9021  	ri_child_elapsed_abstime         uint64_t
  9022  	ri_diskio_bytesread              uint64_t
  9023  	ri_diskio_byteswritten           uint64_t
  9024  	ri_cpu_time_qos_default          uint64_t
  9025  	ri_cpu_time_qos_maintenance      uint64_t
  9026  	ri_cpu_time_qos_background       uint64_t
  9027  	ri_cpu_time_qos_utility          uint64_t
  9028  	ri_cpu_time_qos_legacy           uint64_t
  9029  	ri_cpu_time_qos_user_initiated   uint64_t
  9030  	ri_cpu_time_qos_user_interactive uint64_t
  9031  	ri_billed_system_time            uint64_t
  9032  	ri_serviced_system_time          uint64_t
  9033  } /* resource.h:257:1 */
  9034  
  9035  type rusage_info_v4 = struct {
  9036  	ri_uuid                          [16]uint8_t
  9037  	ri_user_time                     uint64_t
  9038  	ri_system_time                   uint64_t
  9039  	ri_pkg_idle_wkups                uint64_t
  9040  	ri_interrupt_wkups               uint64_t
  9041  	ri_pageins                       uint64_t
  9042  	ri_wired_size                    uint64_t
  9043  	ri_resident_size                 uint64_t
  9044  	ri_phys_footprint                uint64_t
  9045  	ri_proc_start_abstime            uint64_t
  9046  	ri_proc_exit_abstime             uint64_t
  9047  	ri_child_user_time               uint64_t
  9048  	ri_child_system_time             uint64_t
  9049  	ri_child_pkg_idle_wkups          uint64_t
  9050  	ri_child_interrupt_wkups         uint64_t
  9051  	ri_child_pageins                 uint64_t
  9052  	ri_child_elapsed_abstime         uint64_t
  9053  	ri_diskio_bytesread              uint64_t
  9054  	ri_diskio_byteswritten           uint64_t
  9055  	ri_cpu_time_qos_default          uint64_t
  9056  	ri_cpu_time_qos_maintenance      uint64_t
  9057  	ri_cpu_time_qos_background       uint64_t
  9058  	ri_cpu_time_qos_utility          uint64_t
  9059  	ri_cpu_time_qos_legacy           uint64_t
  9060  	ri_cpu_time_qos_user_initiated   uint64_t
  9061  	ri_cpu_time_qos_user_interactive uint64_t
  9062  	ri_billed_system_time            uint64_t
  9063  	ri_serviced_system_time          uint64_t
  9064  	ri_logical_writes                uint64_t
  9065  	ri_lifetime_max_phys_footprint   uint64_t
  9066  	ri_instructions                  uint64_t
  9067  	ri_cycles                        uint64_t
  9068  	ri_billed_energy                 uint64_t
  9069  	ri_serviced_energy               uint64_t
  9070  	ri_interval_max_phys_footprint   uint64_t
  9071  	ri_runnable_time                 uint64_t
  9072  } /* resource.h:288:1 */
  9073  
  9074  type rusage_info_v5 = struct {
  9075  	ri_uuid                          [16]uint8_t
  9076  	ri_user_time                     uint64_t
  9077  	ri_system_time                   uint64_t
  9078  	ri_pkg_idle_wkups                uint64_t
  9079  	ri_interrupt_wkups               uint64_t
  9080  	ri_pageins                       uint64_t
  9081  	ri_wired_size                    uint64_t
  9082  	ri_resident_size                 uint64_t
  9083  	ri_phys_footprint                uint64_t
  9084  	ri_proc_start_abstime            uint64_t
  9085  	ri_proc_exit_abstime             uint64_t
  9086  	ri_child_user_time               uint64_t
  9087  	ri_child_system_time             uint64_t
  9088  	ri_child_pkg_idle_wkups          uint64_t
  9089  	ri_child_interrupt_wkups         uint64_t
  9090  	ri_child_pageins                 uint64_t
  9091  	ri_child_elapsed_abstime         uint64_t
  9092  	ri_diskio_bytesread              uint64_t
  9093  	ri_diskio_byteswritten           uint64_t
  9094  	ri_cpu_time_qos_default          uint64_t
  9095  	ri_cpu_time_qos_maintenance      uint64_t
  9096  	ri_cpu_time_qos_background       uint64_t
  9097  	ri_cpu_time_qos_utility          uint64_t
  9098  	ri_cpu_time_qos_legacy           uint64_t
  9099  	ri_cpu_time_qos_user_initiated   uint64_t
  9100  	ri_cpu_time_qos_user_interactive uint64_t
  9101  	ri_billed_system_time            uint64_t
  9102  	ri_serviced_system_time          uint64_t
  9103  	ri_logical_writes                uint64_t
  9104  	ri_lifetime_max_phys_footprint   uint64_t
  9105  	ri_instructions                  uint64_t
  9106  	ri_cycles                        uint64_t
  9107  	ri_billed_energy                 uint64_t
  9108  	ri_serviced_energy               uint64_t
  9109  	ri_interval_max_phys_footprint   uint64_t
  9110  	ri_runnable_time                 uint64_t
  9111  	ri_flags                         uint64_t
  9112  } /* resource.h:327:1 */
  9113  
  9114  type rusage_info_current = rusage_info_v5 /* resource.h:367:31 */
  9115  
  9116  // ****
  9117  //
  9118  // RESOURCE LIMITS
  9119  
  9120  // Symbolic constants for resource limits; since all limits are representable
  9121  // as a type rlim_t, we are permitted to define RLIM_SAVED_* in terms of
  9122  // RLIM_INFINITY.
  9123  
  9124  // Possible values of the first parameter to getrlimit()/setrlimit(), to
  9125  // indicate for which resource the operation is being performed.
  9126  
  9127  // A structure representing a resource limit.  The address of an instance
  9128  // of this structure is the second parameter to getrlimit()/setrlimit().
  9129  type rlimit = struct {
  9130  	rlim_cur rlim_t
  9131  	rlim_max rlim_t
  9132  } /* resource.h:411:1 */
  9133  
  9134  // proc_rlimit_control()
  9135  //
  9136  // Resource limit flavors
  9137  
  9138  // Flags for wakeups monitor control.
  9139  
  9140  // Flags for CPU usage monitor control.
  9141  
  9142  // Flags for memory footprint interval tracking.
  9143  
  9144  type proc_rlimit_control_wakeupmon = struct {
  9145  	wm_flags uint32_t
  9146  	wm_rate  int32_t
  9147  } /* resource.h:446:1 */
  9148  
  9149  // Option bits for the third argument of wait4.  WNOHANG causes the
  9150  // wait to not hang if there are no stopped or terminated processes, rather
  9151  // returning an error indication in this case (pid==0).  WUNTRACED
  9152  // indicates that the caller should receive status about untraced children
  9153  // which stop due to signals.  If children are stopped and a wait without
  9154  // this option is done, it is as though they were still running... nothing
  9155  // about them is returned.
  9156  
  9157  // Macros to test the exit status returned by wait
  9158  // and extract the relevant values.
  9159  
  9160  // These macros are permited, as they are in the implementation namespace
  9161  
  9162  // [XSI] The <sys/wait.h> header shall define the following macros for
  9163  // analysis of process status values
  9164  // 0x13 == SIGCONT
  9165  
  9166  // [XSI] The following symbolic constants shall be defined as possible
  9167  // values for the fourth argument to waitid().
  9168  // WNOHANG already defined for wait4()
  9169  // WUNTRACED defined for wait4() but not for waitid()
  9170  // waitid() parameter
  9171  
  9172  // POSIX extensions and 4.2/4.3 compatability:
  9173  
  9174  // Tokens for special values of the "pid" parameter to wait4.
  9175  
  9176  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  9177  //
  9178  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9179  //
  9180  // This file contains Original Code and/or Modifications of Original Code
  9181  // as defined in and that are subject to the Apple Public Source License
  9182  // Version 2.0 (the 'License'). You may not use this file except in
  9183  // compliance with the License. The rights granted to you under the License
  9184  // may not be used to create, or enable the creation or redistribution of,
  9185  // unlawful or unlicensed copies of an Apple operating system, or to
  9186  // circumvent, violate, or enable the circumvention or violation of, any
  9187  // terms of an Apple operating system software license agreement.
  9188  //
  9189  // Please obtain a copy of the License at
  9190  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9191  //
  9192  // The Original Code and all software distributed under the License are
  9193  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9194  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9195  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9196  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9197  // Please see the License for the specific language governing rights and
  9198  // limitations under the License.
  9199  //
  9200  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9201  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  9202  
  9203  // Deprecated:
  9204  // Structure of the information in the status word returned by wait4.
  9205  // If w_stopval==_WSTOPPED, then the second structure describes
  9206  // the information returned, else the first.
  9207  type wait = struct{ w_status int32 } /* wait.h:194:1 */
  9208  
  9209  // built-in for gcc
  9210  
  9211  // built-in for gcc 3
  9212  
  9213  // DO NOT REMOVE THIS COMMENT: fixincludes needs to see:
  9214  // _GCC_SIZE_T
  9215  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9216  //
  9217  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9218  //
  9219  // This file contains Original Code and/or Modifications of Original Code
  9220  // as defined in and that are subject to the Apple Public Source License
  9221  // Version 2.0 (the 'License'). You may not use this file except in
  9222  // compliance with the License. The rights granted to you under the License
  9223  // may not be used to create, or enable the creation or redistribution of,
  9224  // unlawful or unlicensed copies of an Apple operating system, or to
  9225  // circumvent, violate, or enable the circumvention or violation of, any
  9226  // terms of an Apple operating system software license agreement.
  9227  //
  9228  // Please obtain a copy of the License at
  9229  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9230  //
  9231  // The Original Code and all software distributed under the License are
  9232  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9233  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9234  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9235  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9236  // Please see the License for the specific language governing rights and
  9237  // limitations under the License.
  9238  //
  9239  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9240  
  9241  // Copyright (c) 2012 Apple Inc. All rights reserved.
  9242  //
  9243  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9244  //
  9245  // This file contains Original Code and/or Modifications of Original Code
  9246  // as defined in and that are subject to the Apple Public Source License
  9247  // Version 2.0 (the 'License'). You may not use this file except in
  9248  // compliance with the License. The rights granted to you under the License
  9249  // may not be used to create, or enable the creation or redistribution of,
  9250  // unlawful or unlicensed copies of an Apple operating system, or to
  9251  // circumvent, violate, or enable the circumvention or violation of, any
  9252  // terms of an Apple operating system software license agreement.
  9253  //
  9254  // Please obtain a copy of the License at
  9255  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9256  //
  9257  // The Original Code and all software distributed under the License are
  9258  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9259  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9260  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9261  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9262  // Please see the License for the specific language governing rights and
  9263  // limitations under the License.
  9264  //
  9265  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9266  
  9267  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  9268  //
  9269  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9270  //
  9271  // This file contains Original Code and/or Modifications of Original Code
  9272  // as defined in and that are subject to the Apple Public Source License
  9273  // Version 2.0 (the 'License'). You may not use this file except in
  9274  // compliance with the License. The rights granted to you under the License
  9275  // may not be used to create, or enable the creation or redistribution of,
  9276  // unlawful or unlicensed copies of an Apple operating system, or to
  9277  // circumvent, violate, or enable the circumvention or violation of, any
  9278  // terms of an Apple operating system software license agreement.
  9279  //
  9280  // Please obtain a copy of the License at
  9281  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9282  //
  9283  // The Original Code and all software distributed under the License are
  9284  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9285  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9286  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9287  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9288  // Please see the License for the specific language governing rights and
  9289  // limitations under the License.
  9290  //
  9291  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9292  type ct_rune_t = int32 /* _ct_rune_t.h:32:28 */
  9293  // Copyright (c) 2012 Apple Inc. All rights reserved.
  9294  //
  9295  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9296  //
  9297  // This file contains Original Code and/or Modifications of Original Code
  9298  // as defined in and that are subject to the Apple Public Source License
  9299  // Version 2.0 (the 'License'). You may not use this file except in
  9300  // compliance with the License. The rights granted to you under the License
  9301  // may not be used to create, or enable the creation or redistribution of,
  9302  // unlawful or unlicensed copies of an Apple operating system, or to
  9303  // circumvent, violate, or enable the circumvention or violation of, any
  9304  // terms of an Apple operating system software license agreement.
  9305  //
  9306  // Please obtain a copy of the License at
  9307  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9308  //
  9309  // The Original Code and all software distributed under the License are
  9310  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9311  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9312  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9313  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9314  // Please see the License for the specific language governing rights and
  9315  // limitations under the License.
  9316  //
  9317  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9318  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  9319  //
  9320  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9321  //
  9322  // This file contains Original Code and/or Modifications of Original Code
  9323  // as defined in and that are subject to the Apple Public Source License
  9324  // Version 2.0 (the 'License'). You may not use this file except in
  9325  // compliance with the License. The rights granted to you under the License
  9326  // may not be used to create, or enable the creation or redistribution of,
  9327  // unlawful or unlicensed copies of an Apple operating system, or to
  9328  // circumvent, violate, or enable the circumvention or violation of, any
  9329  // terms of an Apple operating system software license agreement.
  9330  //
  9331  // Please obtain a copy of the License at
  9332  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9333  //
  9334  // The Original Code and all software distributed under the License are
  9335  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9336  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9337  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9338  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9339  // Please see the License for the specific language governing rights and
  9340  // limitations under the License.
  9341  //
  9342  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9343  type rune_t = int32 /* _rune_t.h:31:25 */
  9344  
  9345  // Copyright (c) 2012 Apple Inc. All rights reserved.
  9346  //
  9347  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9348  //
  9349  // This file contains Original Code and/or Modifications of Original Code
  9350  // as defined in and that are subject to the Apple Public Source License
  9351  // Version 2.0 (the 'License'). You may not use this file except in
  9352  // compliance with the License. The rights granted to you under the License
  9353  // may not be used to create, or enable the creation or redistribution of,
  9354  // unlawful or unlicensed copies of an Apple operating system, or to
  9355  // circumvent, violate, or enable the circumvention or violation of, any
  9356  // terms of an Apple operating system software license agreement.
  9357  //
  9358  // Please obtain a copy of the License at
  9359  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9360  //
  9361  // The Original Code and all software distributed under the License are
  9362  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9363  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9364  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9365  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9366  // Please see the License for the specific language governing rights and
  9367  // limitations under the License.
  9368  //
  9369  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9370  
  9371  // wchar_t is a built-in type in C++
  9372  
  9373  type div_t = struct {
  9374  	quot int32
  9375  	rem  int32
  9376  } /* stdlib.h:86:3 */
  9377  
  9378  type ldiv_t = struct {
  9379  	quot int64
  9380  	rem  int64
  9381  } /* stdlib.h:91:3 */
  9382  
  9383  type lldiv_t = struct {
  9384  	quot int64
  9385  	rem  int64
  9386  } /* stdlib.h:97:3 */ // getsubopt(3) external variable
  9387  // valloc is now declared in _malloc.h
  9388  
  9389  // Poison the following routines if -fshort-wchar is set
  9390  
  9391  var hello = *(*[14]int8)(unsafe.Pointer(ts)) /* example.c:29:21 */
  9392  // "hello world" would be more standard, but the repeated "hello"
  9393  // stresses the compression code better, sorry...
  9394  
  9395  var dictionary = *(*[6]int8)(unsafe.Pointer(ts + 14)) /* example.c:34:19 */
  9396  var dictId uLong                                      /* example.c:35:14: */
  9397  
  9398  var zalloc alloc_func = uintptr(0) /* example.c:77:19 */
  9399  var zfree free_func = uintptr(0)   /* example.c:78:18 */
  9400  
  9401  // ===========================================================================
  9402  // Test compress() and uncompress()
  9403  func test_compress(tls *libc.TLS, compr uintptr, comprLen uLong, uncompr uintptr, uncomprLen uLong) { /* example.c:88:6: */
  9404  	bp := tls.Alloc(56)
  9405  	defer tls.Free(56)
  9406  	*(*uLong)(unsafe.Pointer(bp + 40)) = comprLen
  9407  	*(*uLong)(unsafe.Pointer(bp + 48)) = uncomprLen
  9408  
  9409  	var err int32
  9410  	var len uLong = libc.Xstrlen(tls, uintptr(unsafe.Pointer(&hello))) + uint64(1)
  9411  
  9412  	err = z.Xcompress(tls, compr, bp+40, uintptr(uintptr(unsafe.Pointer(&hello))), len)
  9413  	{
  9414  		if err != 0 {
  9415  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp, ts+34, err))
  9416  			libc.Xexit(tls, 1)
  9417  		}
  9418  	}
  9419  
  9420  	libc.X__builtin___strcpy_chk(tls, uncompr, ts+43, libc.X__builtin_object_size(tls, uncompr, func() int32 {
  9421  		if 2 > 1 {
  9422  			return 1
  9423  		}
  9424  		return 0
  9425  	}()))
  9426  
  9427  	err = z.Xuncompress(tls, uncompr, bp+48, compr, *(*uLong)(unsafe.Pointer(bp + 40 /* comprLen */)))
  9428  	{
  9429  		if err != 0 {
  9430  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+16, ts+51, err))
  9431  			libc.Xexit(tls, 1)
  9432  		}
  9433  	}
  9434  
  9435  	if libc.Xstrcmp(tls, uncompr, uintptr(unsafe.Pointer(&hello))) != 0 {
  9436  		libc.Xfprintf(tls, libc.X__stderrp, ts+62, 0)
  9437  		libc.Xexit(tls, 1)
  9438  	} else {
  9439  		libc.Xprintf(tls, ts+78, libc.VaList(bp+32, uncompr))
  9440  	}
  9441  }
  9442  
  9443  // ===========================================================================
  9444  // Test read/write of .gz files
  9445  func test_gzio(tls *libc.TLS, fname uintptr, uncompr uintptr, uncomprLen uLong) { /* example.c:114:6: */
  9446  	bp := tls.Alloc(84)
  9447  	defer tls.Free(84)
  9448  
  9449  	// var err int32 at bp+80, 4
  9450  
  9451  	var len int32 = int32(libc.Xstrlen(tls, uintptr(unsafe.Pointer(&hello)))) + 1
  9452  	var file gzFile
  9453  	var pos off_t
  9454  
  9455  	file = z.Xgzopen(tls, fname, ts+96)
  9456  	if file == uintptr(0) {
  9457  		libc.Xfprintf(tls, libc.X__stderrp, ts+99, 0)
  9458  		libc.Xexit(tls, 1)
  9459  	}
  9460  	z.Xgzputc(tls, file, 'h')
  9461  	if z.Xgzputs(tls, file, ts+113) != 4 {
  9462  		libc.Xfprintf(tls, libc.X__stderrp, ts+118, libc.VaList(bp, z.Xgzerror(tls, file, bp+80)))
  9463  		libc.Xexit(tls, 1)
  9464  	}
  9465  	if z.Xgzprintf(tls, file, ts+134, libc.VaList(bp+8, ts+14)) != 8 {
  9466  		libc.Xfprintf(tls, libc.X__stderrp, ts+140, libc.VaList(bp+16, z.Xgzerror(tls, file, bp+80)))
  9467  		libc.Xexit(tls, 1)
  9468  	}
  9469  	z.Xgzseek(tls, file, 1, 1) // add one zero byte
  9470  	z.Xgzclose(tls, file)
  9471  
  9472  	file = z.Xgzopen(tls, fname, ts+158)
  9473  	if file == uintptr(0) {
  9474  		libc.Xfprintf(tls, libc.X__stderrp, ts+99, 0)
  9475  		libc.Xexit(tls, 1)
  9476  	}
  9477  	libc.X__builtin___strcpy_chk(tls, uncompr, ts+43, libc.X__builtin_object_size(tls, uncompr, func() int32 {
  9478  		if 2 > 1 {
  9479  			return 1
  9480  		}
  9481  		return 0
  9482  	}()))
  9483  
  9484  	if z.Xgzread(tls, file, uncompr, uint32(uncomprLen)) != len {
  9485  		libc.Xfprintf(tls, libc.X__stderrp, ts+161, libc.VaList(bp+24, z.Xgzerror(tls, file, bp+80)))
  9486  		libc.Xexit(tls, 1)
  9487  	}
  9488  	if libc.Xstrcmp(tls, uncompr, uintptr(unsafe.Pointer(&hello))) != 0 {
  9489  		libc.Xfprintf(tls, libc.X__stderrp, ts+177, libc.VaList(bp+32, uncompr))
  9490  		libc.Xexit(tls, 1)
  9491  	} else {
  9492  		libc.Xprintf(tls, ts+193, libc.VaList(bp+40, uncompr))
  9493  	}
  9494  
  9495  	pos = z.Xgzseek(tls, file, -8, 1)
  9496  	if pos != int64(6) || z.Xgztell(tls, file) != pos {
  9497  		libc.Xfprintf(tls, libc.X__stderrp, ts+207,
  9498  			libc.VaList(bp+48, int64(pos), int64(z.Xgztell(tls, file))))
  9499  		libc.Xexit(tls, 1)
  9500  	}
  9501  
  9502  	if func() int32 {
  9503  		if (*gzFile_s)(unsafe.Pointer(file)).have != 0 {
  9504  			return int32(func() uint8 {
  9505  				(*gzFile_s)(unsafe.Pointer(file)).have--
  9506  				(*gzFile_s)(unsafe.Pointer(file)).pos++
  9507  				return *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&(*gzFile_s)(unsafe.Pointer(file)).next, 1)))
  9508  			}())
  9509  		}
  9510  		return z.Xgzgetc(tls, file)
  9511  	}() != ' ' {
  9512  		libc.Xfprintf(tls, libc.X__stderrp, ts+242, 0)
  9513  		libc.Xexit(tls, 1)
  9514  	}
  9515  
  9516  	if z.Xgzungetc(tls, ' ', file) != ' ' {
  9517  		libc.Xfprintf(tls, libc.X__stderrp, ts+256, 0)
  9518  		libc.Xexit(tls, 1)
  9519  	}
  9520  
  9521  	z.Xgzgets(tls, file, uncompr, int32(uncomprLen))
  9522  	if libc.Xstrlen(tls, uncompr) != uint64(7) { // " hello!"
  9523  		libc.Xfprintf(tls, libc.X__stderrp, ts+272, libc.VaList(bp+64, z.Xgzerror(tls, file, bp+80)))
  9524  		libc.Xexit(tls, 1)
  9525  	}
  9526  	if libc.Xstrcmp(tls, uncompr, uintptr(unsafe.Pointer(&hello))+uintptr(6)) != 0 {
  9527  		libc.Xfprintf(tls, libc.X__stderrp, ts+301, 0)
  9528  		libc.Xexit(tls, 1)
  9529  	} else {
  9530  		libc.Xprintf(tls, ts+326, libc.VaList(bp+72, uncompr))
  9531  	}
  9532  
  9533  	z.Xgzclose(tls, file)
  9534  }
  9535  
  9536  // ===========================================================================
  9537  // Test deflate() with small buffers
  9538  func test_deflate(tls *libc.TLS, compr uintptr, comprLen uLong) { /* example.c:200:6: */
  9539  	bp := tls.Alloc(176)
  9540  	defer tls.Free(176)
  9541  
  9542  	// var c_stream z_stream at bp+64, 112
  9543  	// compression stream
  9544  	var err int32
  9545  	var len uLong = libc.Xstrlen(tls, uintptr(unsafe.Pointer(&hello))) + uint64(1)
  9546  
  9547  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).zalloc = zalloc
  9548  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).zfree = zfree
  9549  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).opaque = uintptr(0)
  9550  
  9551  	err = z.XdeflateInit_(tls, bp+64, -1, ts+353, int32(unsafe.Sizeof(z_stream{})))
  9552  	{
  9553  		if err != 0 {
  9554  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp, ts+360, err))
  9555  			libc.Xexit(tls, 1)
  9556  		}
  9557  	}
  9558  
  9559  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).next_in = uintptr(uintptr(unsafe.Pointer(&hello)))
  9560  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).next_out = compr
  9561  
  9562  	for (*z_stream)(unsafe.Pointer(bp+64)).total_in != len && (*z_stream)(unsafe.Pointer(bp+64)).total_out < comprLen {
  9563  		(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).avail_in = libc.AssignPtrUint32(bp+64+32, uInt(1)) // force small buffers
  9564  		err = z.Xdeflate(tls, bp+64, 0)
  9565  		{
  9566  			if err != 0 {
  9567  				libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+16, ts+372, err))
  9568  				libc.Xexit(tls, 1)
  9569  			}
  9570  		}
  9571  
  9572  	}
  9573  	// Finish the stream, still forcing small buffers:
  9574  	for {
  9575  		(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).avail_out = uInt(1)
  9576  		err = z.Xdeflate(tls, bp+64, 4)
  9577  		if err == 1 {
  9578  			break
  9579  		}
  9580  		{
  9581  			if err != 0 {
  9582  				libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+32, ts+372, err))
  9583  				libc.Xexit(tls, 1)
  9584  			}
  9585  		}
  9586  
  9587  	}
  9588  
  9589  	err = z.XdeflateEnd(tls, bp+64)
  9590  	{
  9591  		if err != 0 {
  9592  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+48, ts+380, err))
  9593  			libc.Xexit(tls, 1)
  9594  		}
  9595  	}
  9596  
  9597  }
  9598  
  9599  // ===========================================================================
  9600  // Test inflate() with small buffers
  9601  func test_inflate(tls *libc.TLS, compr uintptr, comprLen uLong, uncompr uintptr, uncomprLen uLong) { /* example.c:238:6: */
  9602  	bp := tls.Alloc(168)
  9603  	defer tls.Free(168)
  9604  
  9605  	var err int32
  9606  	// var d_stream z_stream at bp+56, 112
  9607  	// decompression stream
  9608  
  9609  	libc.X__builtin___strcpy_chk(tls, uncompr, ts+43, libc.X__builtin_object_size(tls, uncompr, func() int32 {
  9610  		if 2 > 1 {
  9611  			return 1
  9612  		}
  9613  		return 0
  9614  	}()))
  9615  
  9616  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).zalloc = zalloc
  9617  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).zfree = zfree
  9618  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).opaque = uintptr(0)
  9619  
  9620  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).next_in = compr
  9621  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).avail_in = uInt(0)
  9622  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).next_out = uncompr
  9623  
  9624  	err = z.XinflateInit_(tls, bp+56, ts+353, int32(unsafe.Sizeof(z_stream{})))
  9625  	{
  9626  		if err != 0 {
  9627  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp, ts+391, err))
  9628  			libc.Xexit(tls, 1)
  9629  		}
  9630  	}
  9631  
  9632  	for (*z_stream)(unsafe.Pointer(bp+56)).total_out < uncomprLen && (*z_stream)(unsafe.Pointer(bp+56)).total_in < comprLen {
  9633  		(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).avail_in = libc.AssignPtrUint32(bp+56+32, uInt(1)) // force small buffers
  9634  		err = z.Xinflate(tls, bp+56, 0)
  9635  		if err == 1 {
  9636  			break
  9637  		}
  9638  		{
  9639  			if err != 0 {
  9640  				libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+16, ts+403, err))
  9641  				libc.Xexit(tls, 1)
  9642  			}
  9643  		}
  9644  
  9645  	}
  9646  
  9647  	err = z.XinflateEnd(tls, bp+56)
  9648  	{
  9649  		if err != 0 {
  9650  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+32, ts+411, err))
  9651  			libc.Xexit(tls, 1)
  9652  		}
  9653  	}
  9654  
  9655  	if libc.Xstrcmp(tls, uncompr, uintptr(unsafe.Pointer(&hello))) != 0 {
  9656  		libc.Xfprintf(tls, libc.X__stderrp, ts+422, 0)
  9657  		libc.Xexit(tls, 1)
  9658  	} else {
  9659  		libc.Xprintf(tls, ts+435, libc.VaList(bp+48, uncompr))
  9660  	}
  9661  }
  9662  
  9663  // ===========================================================================
  9664  // Test deflate() with large buffers and dynamic change of compression level
  9665  func test_large_deflate(tls *libc.TLS, compr uintptr, comprLen uLong, uncompr uintptr, uncomprLen uLong) { /* example.c:279:6: */
  9666  	bp := tls.Alloc(192)
  9667  	defer tls.Free(192)
  9668  
  9669  	// var c_stream z_stream at bp+80, 112
  9670  	// compression stream
  9671  	var err int32
  9672  
  9673  	(*z_stream)(unsafe.Pointer(bp + 80 /* &c_stream */)).zalloc = zalloc
  9674  	(*z_stream)(unsafe.Pointer(bp + 80 /* &c_stream */)).zfree = zfree
  9675  	(*z_stream)(unsafe.Pointer(bp + 80 /* &c_stream */)).opaque = uintptr(0)
  9676  
  9677  	err = z.XdeflateInit_(tls, bp+80, 1, ts+353, int32(unsafe.Sizeof(z_stream{})))
  9678  	{
  9679  		if err != 0 {
  9680  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp, ts+360, err))
  9681  			libc.Xexit(tls, 1)
  9682  		}
  9683  	}
  9684  
  9685  	(*z_stream)(unsafe.Pointer(bp + 80 /* &c_stream */)).next_out = compr
  9686  	(*z_stream)(unsafe.Pointer(bp + 80 /* &c_stream */)).avail_out = uInt(comprLen)
  9687  
  9688  	// At this point, uncompr is still mostly zeroes, so it should compress
  9689  	// very well:
  9690  	(*z_stream)(unsafe.Pointer(bp + 80 /* &c_stream */)).next_in = uncompr
  9691  	(*z_stream)(unsafe.Pointer(bp + 80 /* &c_stream */)).avail_in = uInt(uncomprLen)
  9692  	err = z.Xdeflate(tls, bp+80, 0)
  9693  	{
  9694  		if err != 0 {
  9695  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+16, ts+372, err))
  9696  			libc.Xexit(tls, 1)
  9697  		}
  9698  	}
  9699  
  9700  	if (*z_stream)(unsafe.Pointer(bp+80)).avail_in != uInt(0) {
  9701  		libc.Xfprintf(tls, libc.X__stderrp, ts+450, 0)
  9702  		libc.Xexit(tls, 1)
  9703  	}
  9704  
  9705  	// Feed in already compressed data and switch to no compression:
  9706  	z.XdeflateParams(tls, bp+80, 0, 0)
  9707  	(*z_stream)(unsafe.Pointer(bp + 80 /* &c_stream */)).next_in = compr
  9708  	(*z_stream)(unsafe.Pointer(bp + 80 /* &c_stream */)).avail_in = uInt(comprLen) / uInt(2)
  9709  	err = z.Xdeflate(tls, bp+80, 0)
  9710  	{
  9711  		if err != 0 {
  9712  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+32, ts+372, err))
  9713  			libc.Xexit(tls, 1)
  9714  		}
  9715  	}
  9716  
  9717  	// Switch back to compressing mode:
  9718  	z.XdeflateParams(tls, bp+80, 9, 1)
  9719  	(*z_stream)(unsafe.Pointer(bp + 80 /* &c_stream */)).next_in = uncompr
  9720  	(*z_stream)(unsafe.Pointer(bp + 80 /* &c_stream */)).avail_in = uInt(uncomprLen)
  9721  	err = z.Xdeflate(tls, bp+80, 0)
  9722  	{
  9723  		if err != 0 {
  9724  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+48, ts+372, err))
  9725  			libc.Xexit(tls, 1)
  9726  		}
  9727  	}
  9728  
  9729  	err = z.Xdeflate(tls, bp+80, 4)
  9730  	if err != 1 {
  9731  		libc.Xfprintf(tls, libc.X__stderrp, ts+470, 0)
  9732  		libc.Xexit(tls, 1)
  9733  	}
  9734  	err = z.XdeflateEnd(tls, bp+80)
  9735  	{
  9736  		if err != 0 {
  9737  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+64, ts+380, err))
  9738  			libc.Xexit(tls, 1)
  9739  		}
  9740  	}
  9741  
  9742  }
  9743  
  9744  // ===========================================================================
  9745  // Test inflate() with large buffers
  9746  func test_large_inflate(tls *libc.TLS, compr uintptr, comprLen uLong, uncompr uintptr, uncomprLen uLong) { /* example.c:334:6: */
  9747  	bp := tls.Alloc(168)
  9748  	defer tls.Free(168)
  9749  
  9750  	var err int32
  9751  	// var d_stream z_stream at bp+56, 112
  9752  	// decompression stream
  9753  
  9754  	libc.X__builtin___strcpy_chk(tls, uncompr, ts+43, libc.X__builtin_object_size(tls, uncompr, func() int32 {
  9755  		if 2 > 1 {
  9756  			return 1
  9757  		}
  9758  		return 0
  9759  	}()))
  9760  
  9761  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).zalloc = zalloc
  9762  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).zfree = zfree
  9763  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).opaque = uintptr(0)
  9764  
  9765  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).next_in = compr
  9766  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).avail_in = uInt(comprLen)
  9767  
  9768  	err = z.XinflateInit_(tls, bp+56, ts+353, int32(unsafe.Sizeof(z_stream{})))
  9769  	{
  9770  		if err != 0 {
  9771  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp, ts+391, err))
  9772  			libc.Xexit(tls, 1)
  9773  		}
  9774  	}
  9775  
  9776  	for {
  9777  		(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).next_out = uncompr // discard the output
  9778  		(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).avail_out = uInt(uncomprLen)
  9779  		err = z.Xinflate(tls, bp+56, 0)
  9780  		if err == 1 {
  9781  			break
  9782  		}
  9783  		{
  9784  			if err != 0 {
  9785  				libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+16, ts+506, err))
  9786  				libc.Xexit(tls, 1)
  9787  			}
  9788  		}
  9789  
  9790  	}
  9791  
  9792  	err = z.XinflateEnd(tls, bp+56)
  9793  	{
  9794  		if err != 0 {
  9795  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+32, ts+411, err))
  9796  			libc.Xexit(tls, 1)
  9797  		}
  9798  	}
  9799  
  9800  	if (*z_stream)(unsafe.Pointer(bp+56)).total_out != uint64(2)*uncomprLen+comprLen/uint64(2) {
  9801  		libc.Xfprintf(tls, libc.X__stderrp, ts+520, libc.VaList(bp+48, (*z_stream)(unsafe.Pointer(bp+56 /* &d_stream */)).total_out))
  9802  		libc.Xexit(tls, 1)
  9803  	} else {
  9804  		libc.Xprintf(tls, ts+544, 0)
  9805  	}
  9806  }
  9807  
  9808  // ===========================================================================
  9809  // Test deflate() with full flush
  9810  func test_flush(tls *libc.TLS, compr uintptr, comprLen uintptr) { /* example.c:375:6: */
  9811  	bp := tls.Alloc(176)
  9812  	defer tls.Free(176)
  9813  
  9814  	// var c_stream z_stream at bp+64, 112
  9815  	// compression stream
  9816  	var err int32
  9817  	var len uInt = uInt(libc.Xstrlen(tls, uintptr(unsafe.Pointer(&hello)))) + uInt(1)
  9818  
  9819  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).zalloc = zalloc
  9820  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).zfree = zfree
  9821  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).opaque = uintptr(0)
  9822  
  9823  	err = z.XdeflateInit_(tls, bp+64, -1, ts+353, int32(unsafe.Sizeof(z_stream{})))
  9824  	{
  9825  		if err != 0 {
  9826  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp, ts+360, err))
  9827  			libc.Xexit(tls, 1)
  9828  		}
  9829  	}
  9830  
  9831  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).next_in = uintptr(uintptr(unsafe.Pointer(&hello)))
  9832  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).next_out = compr
  9833  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).avail_in = uInt(3)
  9834  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).avail_out = uInt(*(*uLong)(unsafe.Pointer(comprLen)))
  9835  	err = z.Xdeflate(tls, bp+64, 3)
  9836  	{
  9837  		if err != 0 {
  9838  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+16, ts+372, err))
  9839  			libc.Xexit(tls, 1)
  9840  		}
  9841  	}
  9842  
  9843  	*(*Byte)(unsafe.Pointer(compr + 3))++ // force an error in first compressed block
  9844  	(*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).avail_in = len - uInt(3)
  9845  
  9846  	err = z.Xdeflate(tls, bp+64, 4)
  9847  	if err != 1 {
  9848  		{
  9849  			if err != 0 {
  9850  				libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+32, ts+372, err))
  9851  				libc.Xexit(tls, 1)
  9852  			}
  9853  		}
  9854  
  9855  	}
  9856  	err = z.XdeflateEnd(tls, bp+64)
  9857  	{
  9858  		if err != 0 {
  9859  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+48, ts+380, err))
  9860  			libc.Xexit(tls, 1)
  9861  		}
  9862  	}
  9863  
  9864  	*(*uLong)(unsafe.Pointer(comprLen)) = (*z_stream)(unsafe.Pointer(bp + 64 /* &c_stream */)).total_out
  9865  }
  9866  
  9867  // ===========================================================================
  9868  // Test inflateSync()
  9869  func test_sync(tls *libc.TLS, compr uintptr, comprLen uLong, uncompr uintptr, uncomprLen uLong) { /* example.c:413:6: */
  9870  	bp := tls.Alloc(184)
  9871  	defer tls.Free(184)
  9872  
  9873  	var err int32
  9874  	// var d_stream z_stream at bp+72, 112
  9875  	// decompression stream
  9876  
  9877  	libc.X__builtin___strcpy_chk(tls, uncompr, ts+43, libc.X__builtin_object_size(tls, uncompr, func() int32 {
  9878  		if 2 > 1 {
  9879  			return 1
  9880  		}
  9881  		return 0
  9882  	}()))
  9883  
  9884  	(*z_stream)(unsafe.Pointer(bp + 72 /* &d_stream */)).zalloc = zalloc
  9885  	(*z_stream)(unsafe.Pointer(bp + 72 /* &d_stream */)).zfree = zfree
  9886  	(*z_stream)(unsafe.Pointer(bp + 72 /* &d_stream */)).opaque = uintptr(0)
  9887  
  9888  	(*z_stream)(unsafe.Pointer(bp + 72 /* &d_stream */)).next_in = compr
  9889  	(*z_stream)(unsafe.Pointer(bp + 72 /* &d_stream */)).avail_in = uInt(2) // just read the zlib header
  9890  
  9891  	err = z.XinflateInit_(tls, bp+72, ts+353, int32(unsafe.Sizeof(z_stream{})))
  9892  	{
  9893  		if err != 0 {
  9894  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp, ts+391, err))
  9895  			libc.Xexit(tls, 1)
  9896  		}
  9897  	}
  9898  
  9899  	(*z_stream)(unsafe.Pointer(bp + 72 /* &d_stream */)).next_out = uncompr
  9900  	(*z_stream)(unsafe.Pointer(bp + 72 /* &d_stream */)).avail_out = uInt(uncomprLen)
  9901  
  9902  	err = z.Xinflate(tls, bp+72, 0)
  9903  	{
  9904  		if err != 0 {
  9905  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+16, ts+403, err))
  9906  			libc.Xexit(tls, 1)
  9907  		}
  9908  	}
  9909  
  9910  	(*z_stream)(unsafe.Pointer(bp + 72 /* &d_stream */)).avail_in = uInt(comprLen) - uInt(2) // read all compressed data
  9911  	err = z.XinflateSync(tls, bp+72)                                                         /* but skip the damaged part */
  9912  	{
  9913  		if err != 0 {
  9914  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+32, ts+565, err))
  9915  			libc.Xexit(tls, 1)
  9916  		}
  9917  	}
  9918  
  9919  	err = z.Xinflate(tls, bp+72, 4)
  9920  	if err != -3 {
  9921  		libc.Xfprintf(tls, libc.X__stderrp, ts+577, 0)
  9922  		// Because of incorrect adler32
  9923  		libc.Xexit(tls, 1)
  9924  	}
  9925  	err = z.XinflateEnd(tls, bp+72)
  9926  	{
  9927  		if err != 0 {
  9928  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+48, ts+411, err))
  9929  			libc.Xexit(tls, 1)
  9930  		}
  9931  	}
  9932  
  9933  	libc.Xprintf(tls, ts+611, libc.VaList(bp+64, uncompr))
  9934  }
  9935  
  9936  // ===========================================================================
  9937  // Test deflate() with preset dictionary
  9938  func test_dict_deflate(tls *libc.TLS, compr uintptr, comprLen uLong) { /* example.c:457:6: */
  9939  	bp := tls.Alloc(160)
  9940  	defer tls.Free(160)
  9941  
  9942  	// var c_stream z_stream at bp+48, 112
  9943  	// compression stream
  9944  	var err int32
  9945  
  9946  	(*z_stream)(unsafe.Pointer(bp + 48 /* &c_stream */)).zalloc = zalloc
  9947  	(*z_stream)(unsafe.Pointer(bp + 48 /* &c_stream */)).zfree = zfree
  9948  	(*z_stream)(unsafe.Pointer(bp + 48 /* &c_stream */)).opaque = uintptr(0)
  9949  
  9950  	err = z.XdeflateInit_(tls, bp+48, 9, ts+353, int32(unsafe.Sizeof(z_stream{})))
  9951  	{
  9952  		if err != 0 {
  9953  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp, ts+360, err))
  9954  			libc.Xexit(tls, 1)
  9955  		}
  9956  	}
  9957  
  9958  	err = z.XdeflateSetDictionary(tls, bp+48,
  9959  		uintptr(uintptr(unsafe.Pointer(&dictionary))), uint32(int32(unsafe.Sizeof(dictionary))))
  9960  	{
  9961  		if err != 0 {
  9962  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+16, ts+639, err))
  9963  			libc.Xexit(tls, 1)
  9964  		}
  9965  	}
  9966  
  9967  	dictId = (*z_stream)(unsafe.Pointer(bp + 48 /* &c_stream */)).adler
  9968  	(*z_stream)(unsafe.Pointer(bp + 48 /* &c_stream */)).next_out = compr
  9969  	(*z_stream)(unsafe.Pointer(bp + 48 /* &c_stream */)).avail_out = uInt(comprLen)
  9970  
  9971  	(*z_stream)(unsafe.Pointer(bp + 48 /* &c_stream */)).next_in = uintptr(uintptr(unsafe.Pointer(&hello)))
  9972  	(*z_stream)(unsafe.Pointer(bp + 48 /* &c_stream */)).avail_in = uInt(libc.Xstrlen(tls, uintptr(unsafe.Pointer(&hello)))) + uInt(1)
  9973  
  9974  	err = z.Xdeflate(tls, bp+48, 4)
  9975  	if err != 1 {
  9976  		libc.Xfprintf(tls, libc.X__stderrp, ts+470, 0)
  9977  		libc.Xexit(tls, 1)
  9978  	}
  9979  	err = z.XdeflateEnd(tls, bp+48)
  9980  	{
  9981  		if err != 0 {
  9982  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+32, ts+380, err))
  9983  			libc.Xexit(tls, 1)
  9984  		}
  9985  	}
  9986  
  9987  }
  9988  
  9989  // ===========================================================================
  9990  // Test inflate() with a preset dictionary
  9991  func test_dict_inflate(tls *libc.TLS, compr uintptr, comprLen uLong, uncompr uintptr, uncomprLen uLong) { /* example.c:494:6: */
  9992  	bp := tls.Alloc(168)
  9993  	defer tls.Free(168)
  9994  
  9995  	var err int32
  9996  	// var d_stream z_stream at bp+56, 112
  9997  	// decompression stream
  9998  
  9999  	libc.X__builtin___strcpy_chk(tls, uncompr, ts+43, libc.X__builtin_object_size(tls, uncompr, func() int32 {
 10000  		if 2 > 1 {
 10001  			return 1
 10002  		}
 10003  		return 0
 10004  	}()))
 10005  
 10006  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).zalloc = zalloc
 10007  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).zfree = zfree
 10008  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).opaque = uintptr(0)
 10009  
 10010  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).next_in = compr
 10011  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).avail_in = uInt(comprLen)
 10012  
 10013  	err = z.XinflateInit_(tls, bp+56, ts+353, int32(unsafe.Sizeof(z_stream{})))
 10014  	{
 10015  		if err != 0 {
 10016  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp, ts+391, err))
 10017  			libc.Xexit(tls, 1)
 10018  		}
 10019  	}
 10020  
 10021  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).next_out = uncompr
 10022  	(*z_stream)(unsafe.Pointer(bp + 56 /* &d_stream */)).avail_out = uInt(uncomprLen)
 10023  
 10024  	for {
 10025  		err = z.Xinflate(tls, bp+56, 0)
 10026  		if err == 1 {
 10027  			break
 10028  		}
 10029  		if err == 2 {
 10030  			if (*z_stream)(unsafe.Pointer(bp+56)).adler != dictId {
 10031  				libc.Xfprintf(tls, libc.X__stderrp, ts+660, 0)
 10032  				libc.Xexit(tls, 1)
 10033  			}
 10034  			err = z.XinflateSetDictionary(tls, bp+56, uintptr(uintptr(unsafe.Pointer(&dictionary))),
 10035  				uint32(int32(unsafe.Sizeof(dictionary))))
 10036  		}
 10037  		{
 10038  			if err != 0 {
 10039  				libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+16, ts+682, err))
 10040  				libc.Xexit(tls, 1)
 10041  			}
 10042  		}
 10043  
 10044  	}
 10045  
 10046  	err = z.XinflateEnd(tls, bp+56)
 10047  	{
 10048  		if err != 0 {
 10049  			libc.Xfprintf(tls, libc.X__stderrp, ts+20, libc.VaList(bp+32, ts+411, err))
 10050  			libc.Xexit(tls, 1)
 10051  		}
 10052  	}
 10053  
 10054  	if libc.Xstrcmp(tls, uncompr, uintptr(unsafe.Pointer(&hello))) != 0 {
 10055  		libc.Xfprintf(tls, libc.X__stderrp, ts+700, 0)
 10056  		libc.Xexit(tls, 1)
 10057  	} else {
 10058  		libc.Xprintf(tls, ts+723, libc.VaList(bp+48, uncompr))
 10059  	}
 10060  }
 10061  
 10062  // ===========================================================================
 10063  // Usage:  example [output.gz  [input.gz]]
 10064  
 10065  func main1(tls *libc.TLS, argc int32, argv uintptr) int32 { /* example.c:545:5: */
 10066  	bp := tls.Alloc(32)
 10067  	defer tls.Free(32)
 10068  
 10069  	var compr uintptr
 10070  	var uncompr uintptr
 10071  	*(*uLong)(unsafe.Pointer(bp + 24 /* comprLen */)) = uint64(10000) * uint64(unsafe.Sizeof(int32(0))) // don't overflow on MSDOS
 10072  	var uncomprLen uLong = *(*uLong)(unsafe.Pointer(bp + 24 /* comprLen */))
 10073  
 10074  	if int32(*(*int8)(unsafe.Pointer(z.XzlibVersion(tls)))) != int32(*(*int8)(unsafe.Pointer(myVersion))) {
 10075  		libc.Xfprintf(tls, libc.X__stderrp, ts+752, 0)
 10076  		libc.Xexit(tls, 1)
 10077  
 10078  	} else if libc.Xstrcmp(tls, z.XzlibVersion(tls), ts+353) != 0 {
 10079  		libc.Xfprintf(tls, libc.X__stderrp, ts+779, 0)
 10080  	}
 10081  
 10082  	libc.Xprintf(tls, ts+812,
 10083  		libc.VaList(bp, ts+353, 0x12b0, z.XzlibCompileFlags(tls)))
 10084  
 10085  	compr = libc.Xcalloc(tls, uint64(uInt(*(*uLong)(unsafe.Pointer(bp + 24 /* comprLen */)))), uint64(1))
 10086  	uncompr = libc.Xcalloc(tls, uint64(uInt(uncomprLen)), uint64(1))
 10087  	// compr and uncompr are cleared to avoid reading uninitialized
 10088  	// data and to ensure that uncompr compresses well.
 10089  	if compr == uintptr(0) || uncompr == uintptr(0) {
 10090  		libc.Xprintf(tls, ts+861, 0)
 10091  		libc.Xexit(tls, 1)
 10092  	}
 10093  
 10094  	test_compress(tls, compr, *(*uLong)(unsafe.Pointer(bp + 24 /* comprLen */)), uncompr, uncomprLen)
 10095  
 10096  	test_gzio(tls, func() uintptr {
 10097  		if argc > 1 {
 10098  			return *(*uintptr)(unsafe.Pointer(argv + 1*8))
 10099  		}
 10100  		return ts + 876
 10101  	}(),
 10102  		uncompr, uncomprLen)
 10103  
 10104  	test_deflate(tls, compr, *(*uLong)(unsafe.Pointer(bp + 24 /* comprLen */)))
 10105  	test_inflate(tls, compr, *(*uLong)(unsafe.Pointer(bp + 24 /* comprLen */)), uncompr, uncomprLen)
 10106  
 10107  	test_large_deflate(tls, compr, *(*uLong)(unsafe.Pointer(bp + 24 /* comprLen */)), uncompr, uncomprLen)
 10108  	test_large_inflate(tls, compr, *(*uLong)(unsafe.Pointer(bp + 24 /* comprLen */)), uncompr, uncomprLen)
 10109  
 10110  	test_flush(tls, compr, bp+24)
 10111  	test_sync(tls, compr, *(*uLong)(unsafe.Pointer(bp + 24 /* comprLen */)), uncompr, uncomprLen)
 10112  	*(*uLong)(unsafe.Pointer(bp + 24 /* comprLen */)) = uncomprLen
 10113  
 10114  	test_dict_deflate(tls, compr, *(*uLong)(unsafe.Pointer(bp + 24 /* comprLen */)))
 10115  	test_dict_inflate(tls, compr, *(*uLong)(unsafe.Pointer(bp + 24 /* comprLen */)), uncompr, uncomprLen)
 10116  
 10117  	libc.Xfree(tls, compr)
 10118  	libc.Xfree(tls, uncompr)
 10119  
 10120  	return 0
 10121  }
 10122  
 10123  var myVersion uintptr = ts + 353 /* "1.2.11" */ /* example.c:552:22 */
 10124  
 10125  var ts1 = "hello, hello!\x00hello\x00%s error: %d\n\x00compress\x00garbage\x00uncompress\x00bad uncompress\n\x00uncompress(): %s\n\x00wb\x00gzopen error\n\x00ello\x00gzputs err: %s\n\x00, %s!\x00gzprintf err: %s\n\x00rb\x00gzread err: %s\n\x00bad gzread: %s\n\x00gzread(): %s\n\x00gzseek error, pos=%ld, gztell=%ld\n\x00gzgetc error\n\x00gzungetc error\n\x00gzgets err after gzseek: %s\n\x00bad gzgets after gzseek\n\x00gzgets() after gzseek: %s\n\x001.2.11\x00deflateInit\x00deflate\x00deflateEnd\x00inflateInit\x00inflate\x00inflateEnd\x00bad inflate\n\x00inflate(): %s\n\x00deflate not greedy\n\x00deflate should report Z_STREAM_END\n\x00large inflate\x00bad large inflate: %ld\n\x00large_inflate(): OK\n\x00inflateSync\x00inflate should report DATA_ERROR\n\x00after inflateSync(): hel%s\n\x00deflateSetDictionary\x00unexpected dictionary\x00inflate with dict\x00bad inflate with dict\n\x00inflate with dictionary: %s\n\x00incompatible zlib version\n\x00warning: different zlib version\n\x00zlib version %s = 0x%04x, compile flags = 0x%lx\n\x00out of memory\n\x00foo.gz\x00"
 10126  var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data