github.com/afumu/libc@v0.0.6/grp/grp_netbsd_amd64.go (about)

     1  // Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o grp/grp_netbsd_amd64.go -pkgname grp', DO NOT EDIT.
     2  
     3  package grp
     4  
     5  import (
     6  	"math"
     7  	"reflect"
     8  	"sync/atomic"
     9  	"unsafe"
    10  )
    11  
    12  var _ = math.Pi
    13  var _ reflect.Kind
    14  var _ atomic.Value
    15  var _ unsafe.Pointer
    16  
    17  const (
    18  	BIG_ENDIAN                    = 4321                 // endian.h:101:1:
    19  	BYTE_ORDER                    = 1234                 // endian.h:103:1:
    20  	FD_SETSIZE                    = 256                  // fd_set.h:59:1:
    21  	INT16_MAX                     = 32767                // common_int_limits.h:53:1:
    22  	INT16_MIN                     = -32768               // common_int_limits.h:47:1:
    23  	INT32_MAX                     = 2147483647           // common_int_limits.h:54:1:
    24  	INT32_MIN                     = -2147483648          // common_int_limits.h:48:1:
    25  	INT64_MAX                     = 9223372036854775807  // common_int_limits.h:55:1:
    26  	INT64_MIN                     = -9223372036854775808 // common_int_limits.h:49:1:
    27  	INT8_MAX                      = 127                  // common_int_limits.h:52:1:
    28  	INT8_MIN                      = -128                 // common_int_limits.h:46:1:
    29  	INTMAX_MAX                    = 9223372036854775807  // common_int_limits.h:111:1:
    30  	INTMAX_MIN                    = -9223372036854775808 // common_int_limits.h:110:1:
    31  	INTPTR_MAX                    = 9223372036854775807  // common_int_limits.h:105:1:
    32  	INTPTR_MIN                    = -9223372036854775808 // common_int_limits.h:104:1:
    33  	INT_FAST16_MAX                = 2147483647           // common_int_limits.h:93:1:
    34  	INT_FAST16_MIN                = -2147483648          // common_int_limits.h:87:1:
    35  	INT_FAST32_MAX                = 2147483647           // common_int_limits.h:94:1:
    36  	INT_FAST32_MIN                = -2147483648          // common_int_limits.h:88:1:
    37  	INT_FAST64_MAX                = 9223372036854775807  // common_int_limits.h:95:1:
    38  	INT_FAST64_MIN                = -9223372036854775808 // common_int_limits.h:89:1:
    39  	INT_FAST8_MAX                 = 2147483647           // common_int_limits.h:92:1:
    40  	INT_FAST8_MIN                 = -2147483648          // common_int_limits.h:86:1:
    41  	INT_LEAST16_MAX               = 32767                // common_int_limits.h:73:1:
    42  	INT_LEAST16_MIN               = -32768               // common_int_limits.h:67:1:
    43  	INT_LEAST32_MAX               = 2147483647           // common_int_limits.h:74:1:
    44  	INT_LEAST32_MIN               = -2147483648          // common_int_limits.h:68:1:
    45  	INT_LEAST64_MAX               = 9223372036854775807  // common_int_limits.h:75:1:
    46  	INT_LEAST64_MIN               = -9223372036854775808 // common_int_limits.h:69:1:
    47  	INT_LEAST8_MAX                = 127                  // common_int_limits.h:72:1:
    48  	INT_LEAST8_MIN                = -128                 // common_int_limits.h:66:1:
    49  	LITTLE_ENDIAN                 = 1234                 // endian.h:100:1:
    50  	NBBY                          = 8                    // types.h:316:1:
    51  	NFDBITS                       = 32                   // fd_set.h:93:1:
    52  	NODEVMAJOR                    = -1                   // types.h:258:1:
    53  	PDP_ENDIAN                    = 3412                 // endian.h:102:1:
    54  	PTRDIFF_MAX                   = 9223372036854775807  // common_int_limits.h:121:1:
    55  	PTRDIFF_MIN                   = -9223372036854775808 // common_int_limits.h:120:1:
    56  	SIG_ATOMIC_MAX                = 2147483647           // common_int_limits.h:125:1:
    57  	SIG_ATOMIC_MIN                = -2147483648          // common_int_limits.h:124:1:
    58  	SIZE_MAX                      = 18446744073709551615 // common_int_limits.h:128:1:
    59  	UINT16_MAX                    = 65535                // common_int_limits.h:59:1:
    60  	UINT32_MAX                    = 4294967295           // common_int_limits.h:60:1:
    61  	UINT64_MAX                    = 18446744073709551615 // common_int_limits.h:61:1:
    62  	UINT8_MAX                     = 255                  // common_int_limits.h:58:1:
    63  	UINTMAX_MAX                   = 18446744073709551615 // common_int_limits.h:112:1:
    64  	UINTPTR_MAX                   = 18446744073709551615 // common_int_limits.h:106:1:
    65  	UINT_FAST16_MAX               = 4294967295           // common_int_limits.h:99:1:
    66  	UINT_FAST32_MAX               = 4294967295           // common_int_limits.h:100:1:
    67  	UINT_FAST64_MAX               = 18446744073709551615 // common_int_limits.h:101:1:
    68  	UINT_FAST8_MAX                = 4294967295           // common_int_limits.h:98:1:
    69  	UINT_LEAST16_MAX              = 65535                // common_int_limits.h:79:1:
    70  	UINT_LEAST32_MAX              = 4294967295           // common_int_limits.h:80:1:
    71  	UINT_LEAST64_MAX              = 18446744073709551615 // common_int_limits.h:81:1:
    72  	UINT_LEAST8_MAX               = 255                  // common_int_limits.h:78:1:
    73  	WCHAR_MAX                     = 0x7fffffff           // wchar_limits.h:41:1:
    74  	WCHAR_MIN                     = -2147483648          // wchar_limits.h:40:1:
    75  	WINT_MAX                      = 0x7fffffff           // wchar_limits.h:45:1:
    76  	WINT_MIN                      = -2147483648          // wchar_limits.h:44:1:
    77  	X_AMD64_BYTE_SWAP_H_          = 0                    // byte_swap.h:37:1:
    78  	X_AMD64_INT_CONST_H_          = 0                    // int_const.h:33:1:
    79  	X_AMD64_INT_LIMITS_H_         = 0                    // int_limits.h:33:1:
    80  	X_AMD64_INT_MWGWTYPES_H_      = 0                    // int_mwgwtypes.h:33:1:
    81  	X_AMD64_INT_TYPES_H_          = 0                    // int_types.h:35:1:
    82  	X_AMD64_WCHAR_LIMITS_H_       = 0                    // wchar_limits.h:33:1:
    83  	X_BIG_ENDIAN                  = 4321                 // endian.h:44:1:
    84  	X_BSD_INT16_T_                = 0                    // types.h:65:1:
    85  	X_BSD_INT32_T_                = 0                    // types.h:75:1:
    86  	X_BSD_INT64_T_                = 0                    // types.h:85:1:
    87  	X_BSD_INT8_T_                 = 0                    // types.h:55:1:
    88  	X_BSD_INTPTR_T_               = 0                    // stdint.h:80:1:
    89  	X_BSD_UINT16_T_               = 0                    // types.h:70:1:
    90  	X_BSD_UINT32_T_               = 0                    // types.h:80:1:
    91  	X_BSD_UINT64_T_               = 0                    // types.h:90:1:
    92  	X_BSD_UINT8_T_                = 0                    // types.h:60:1:
    93  	X_BSD_UINTPTR_T_              = 0                    // stdint.h:85:1:
    94  	X_BYTE_ORDER                  = 1234                 // endian_machdep.h:3:1:
    95  	X_FILE_OFFSET_BITS            = 64                   // <builtin>:25:1:
    96  	X_GRP_H_                      = 0                    // grp.h:40:1:
    97  	X_LIB_PTHREAD_TYPES_H         = 0                    // pthread_types.h:33:1:
    98  	X_LITTLE_ENDIAN               = 1234                 // endian.h:43:1:
    99  	X_LP64                        = 1                    // <predefined>:268:1:
   100  	X_NETBSD_SOURCE               = 1                    // featuretest.h:70:1:
   101  	X_PATH_GROUP                  = "/etc/group"         // grp.h:47:1:
   102  	X_PDP_ENDIAN                  = 3412                 // endian.h:45:1:
   103  	X_PT_BARRIERATTR_DEAD         = 0xDEAD0808           // pthread_types.h:278:1:
   104  	X_PT_BARRIERATTR_MAGIC        = 0x88880808           // pthread_types.h:277:1:
   105  	X_PT_BARRIER_DEAD             = 0xDEAD0008           // pthread_types.h:270:1:
   106  	X_PT_BARRIER_MAGIC            = 0x88880008           // pthread_types.h:269:1:
   107  	X_PT_CONDATTR_DEAD            = 0xDEAD0006           // pthread_types.h:197:1:
   108  	X_PT_CONDATTR_MAGIC           = 0x66660006           // pthread_types.h:196:1:
   109  	X_PT_COND_DEAD                = 0xDEAD0005           // pthread_types.h:182:1:
   110  	X_PT_COND_MAGIC               = 0x55550005           // pthread_types.h:181:1:
   111  	X_PT_MUTEXATTR_DEAD           = 0xDEAD0004           // pthread_types.h:167:1:
   112  	X_PT_MUTEXATTR_MAGIC          = 0x44440004           // pthread_types.h:166:1:
   113  	X_PT_MUTEX_DEAD               = 0xDEAD0003           // pthread_types.h:139:1:
   114  	X_PT_MUTEX_MAGIC              = 0x33330003           // pthread_types.h:138:1:
   115  	X_PT_RWLOCKATTR_DEAD          = 0xDEAD0909           // pthread_types.h:253:1:
   116  	X_PT_RWLOCKATTR_MAGIC         = 0x99990909           // pthread_types.h:252:1:
   117  	X_PT_RWLOCK_DEAD              = 0xDEAD0009           // pthread_types.h:236:1:
   118  	X_PT_RWLOCK_MAGIC             = 0x99990009           // pthread_types.h:235:1:
   119  	X_PT_SPINLOCK_DEAD            = 0xDEAD0007           // pthread_types.h:213:1:
   120  	X_PT_SPINLOCK_MAGIC           = 0x77770007           // pthread_types.h:212:1:
   121  	X_PT_SPINLOCK_PSHARED         = 0x00000001           // pthread_types.h:214:1:
   122  	X_QUAD_HIGHWORD               = 1                    // endian.h:84:1:
   123  	X_QUAD_LOWWORD                = 0                    // endian.h:85:1:
   124  	X_SIZE_T                      = 0                    // types.h:279:1:
   125  	X_SYS_ANSI_H_                 = 0                    // ansi.h:33:1:
   126  	X_SYS_BSWAP_H_                = 0                    // bswap.h:6:1:
   127  	X_SYS_CDEFS_ELF_H_            = 0                    // cdefs_elf.h:31:1:
   128  	X_SYS_CDEFS_H_                = 0                    // cdefs.h:37:1:
   129  	X_SYS_COMMON_ANSI_H_          = 0                    // common_ansi.h:33:1:
   130  	X_SYS_COMMON_INT_LIMITS_H_    = 0                    // common_int_limits.h:33:1:
   131  	X_SYS_COMMON_INT_MWGWTYPES_H_ = 0                    // common_int_mwgwtypes.h:33:1:
   132  	X_SYS_COMMON_INT_TYPES_H_     = 0                    // common_int_types.h:33:1:
   133  	X_SYS_ENDIAN_H_               = 0                    // endian.h:35:1:
   134  	X_SYS_FD_SET_H_               = 0                    // fd_set.h:35:1:
   135  	X_SYS_STDINT_H_               = 0                    // stdint.h:33:1:
   136  	X_SYS_TYPES_H_                = 0                    // types.h:40:1:
   137  	X_X86_64_BSWAP_H_             = 0                    // bswap.h:6:1:
   138  	X_X86_64_CDEFS_H_             = 0                    // cdefs.h:4:1:
   139  	X_X86_64_TYPES_H_             = 0                    // types.h:35:1:
   140  )
   141  
   142  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   143  
   144  type Size_t = uint64 /* <builtin>:9:23 */
   145  
   146  type Wchar_t = int32 /* <builtin>:15:24 */
   147  
   148  type X__int128_t = struct {
   149  	Flo int64
   150  	Fhi int64
   151  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   152  type X__uint128_t = struct {
   153  	Flo uint64
   154  	Fhi uint64
   155  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   156  
   157  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   158  type X__float128 = float64        /* <builtin>:47:21 */
   159  
   160  // return true if value 'a' fits in type 't'
   161  
   162  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   163  
   164  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   165  // Public domain.
   166  //
   167  // NOTE: Do not protect this header against multiple inclusion.  Doing
   168  // so can have subtle side-effects due to header file inclusion order
   169  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   170  // protect each CPP macro that we want to supply.
   171  
   172  // Feature-test macros are defined by several standards, and allow an
   173  // application to specify what symbols they want the system headers to
   174  // expose, and hence what standard they want them to conform to.
   175  // There are two classes of feature-test macros.  The first class
   176  // specify complete standards, and if one of these is defined, header
   177  // files will try to conform to the relevant standard.  They are:
   178  //
   179  // ANSI macros:
   180  // _ANSI_SOURCE			ANSI C89
   181  //
   182  // POSIX macros:
   183  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   184  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   185  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   186  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   187  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   188  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   189  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   190  //
   191  // X/Open macros:
   192  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   193  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   194  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   195  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   196  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   197  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   198  //
   199  // NetBSD macros:
   200  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   201  //
   202  // If more than one of these "major" feature-test macros is defined,
   203  // then the set of facilities provided (and namespace used) is the
   204  // union of that specified by the relevant standards, and in case of
   205  // conflict, the earlier standard in the above list has precedence (so
   206  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   207  // of rename() that's used is the POSIX one).  If none of the "major"
   208  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   209  //
   210  // There are also "minor" feature-test macros, which enable extra
   211  // functionality in addition to some base standard.  They should be
   212  // defined along with one of the "major" macros.  The "minor" macros
   213  // are:
   214  //
   215  // _REENTRANT
   216  // _ISOC99_SOURCE
   217  // _ISOC11_SOURCE
   218  // _LARGEFILE_SOURCE		Large File Support
   219  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   220  
   221  //	$NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
   222  
   223  // -
   224  // Copyright (c) 1982, 1986, 1991, 1993, 1994
   225  //	The Regents of the University of California.  All rights reserved.
   226  // (c) UNIX System Laboratories, Inc.
   227  // All or some portions of this file are derived from material licensed
   228  // to the University of California by American Telephone and Telegraph
   229  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   230  // the permission of UNIX System Laboratories, Inc.
   231  //
   232  // Redistribution and use in source and binary forms, with or without
   233  // modification, are permitted provided that the following conditions
   234  // are met:
   235  // 1. Redistributions of source code must retain the above copyright
   236  //    notice, this list of conditions and the following disclaimer.
   237  // 2. Redistributions in binary form must reproduce the above copyright
   238  //    notice, this list of conditions and the following disclaimer in the
   239  //    documentation and/or other materials provided with the distribution.
   240  // 3. Neither the name of the University nor the names of its contributors
   241  //    may be used to endorse or promote products derived from this software
   242  //    without specific prior written permission.
   243  //
   244  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   245  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   246  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   247  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   248  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   249  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   250  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   251  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   252  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   253  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   254  // SUCH DAMAGE.
   255  //
   256  //	@(#)types.h	8.4 (Berkeley) 1/21/94
   257  
   258  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   259  
   260  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   261  // Public domain.
   262  //
   263  // NOTE: Do not protect this header against multiple inclusion.  Doing
   264  // so can have subtle side-effects due to header file inclusion order
   265  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   266  // protect each CPP macro that we want to supply.
   267  
   268  // Feature-test macros are defined by several standards, and allow an
   269  // application to specify what symbols they want the system headers to
   270  // expose, and hence what standard they want them to conform to.
   271  // There are two classes of feature-test macros.  The first class
   272  // specify complete standards, and if one of these is defined, header
   273  // files will try to conform to the relevant standard.  They are:
   274  //
   275  // ANSI macros:
   276  // _ANSI_SOURCE			ANSI C89
   277  //
   278  // POSIX macros:
   279  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   280  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   281  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   282  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   283  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   284  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   285  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   286  //
   287  // X/Open macros:
   288  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   289  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   290  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   291  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   292  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   293  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   294  //
   295  // NetBSD macros:
   296  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   297  //
   298  // If more than one of these "major" feature-test macros is defined,
   299  // then the set of facilities provided (and namespace used) is the
   300  // union of that specified by the relevant standards, and in case of
   301  // conflict, the earlier standard in the above list has precedence (so
   302  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   303  // of rename() that's used is the POSIX one).  If none of the "major"
   304  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   305  //
   306  // There are also "minor" feature-test macros, which enable extra
   307  // functionality in addition to some base standard.  They should be
   308  // defined along with one of the "major" macros.  The "minor" macros
   309  // are:
   310  //
   311  // _REENTRANT
   312  // _ISOC99_SOURCE
   313  // _ISOC11_SOURCE
   314  // _LARGEFILE_SOURCE		Large File Support
   315  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   316  
   317  // Machine type dependent parameters.
   318  //	$NetBSD: types.h,v 1.60 2019/04/06 03:06:24 thorpej Exp $
   319  
   320  // -
   321  // Copyright (c) 1990 The Regents of the University of California.
   322  // All rights reserved.
   323  //
   324  // Redistribution and use in source and binary forms, with or without
   325  // modification, are permitted provided that the following conditions
   326  // are met:
   327  // 1. Redistributions of source code must retain the above copyright
   328  //    notice, this list of conditions and the following disclaimer.
   329  // 2. Redistributions in binary form must reproduce the above copyright
   330  //    notice, this list of conditions and the following disclaimer in the
   331  //    documentation and/or other materials provided with the distribution.
   332  // 3. Neither the name of the University nor the names of its contributors
   333  //    may be used to endorse or promote products derived from this software
   334  //    without specific prior written permission.
   335  //
   336  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   337  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   338  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   339  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   340  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   341  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   342  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   343  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   344  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   345  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   346  // SUCH DAMAGE.
   347  //
   348  //	@(#)types.h	7.5 (Berkeley) 3/9/91
   349  
   350  //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
   351  
   352  // * Copyright (c) 1991, 1993
   353  //	The Regents of the University of California.  All rights reserved.
   354  //
   355  // This code is derived from software contributed to Berkeley by
   356  // Berkeley Software Design, Inc.
   357  //
   358  // Redistribution and use in source and binary forms, with or without
   359  // modification, are permitted provided that the following conditions
   360  // are met:
   361  // 1. Redistributions of source code must retain the above copyright
   362  //    notice, this list of conditions and the following disclaimer.
   363  // 2. Redistributions in binary form must reproduce the above copyright
   364  //    notice, this list of conditions and the following disclaimer in the
   365  //    documentation and/or other materials provided with the distribution.
   366  // 3. Neither the name of the University nor the names of its contributors
   367  //    may be used to endorse or promote products derived from this software
   368  //    without specific prior written permission.
   369  //
   370  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   371  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   372  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   373  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   374  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   375  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   376  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   377  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   378  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   379  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   380  // SUCH DAMAGE.
   381  //
   382  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   383  
   384  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   385  
   386  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   387  // Public domain.
   388  //
   389  // NOTE: Do not protect this header against multiple inclusion.  Doing
   390  // so can have subtle side-effects due to header file inclusion order
   391  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   392  // protect each CPP macro that we want to supply.
   393  
   394  // Feature-test macros are defined by several standards, and allow an
   395  // application to specify what symbols they want the system headers to
   396  // expose, and hence what standard they want them to conform to.
   397  // There are two classes of feature-test macros.  The first class
   398  // specify complete standards, and if one of these is defined, header
   399  // files will try to conform to the relevant standard.  They are:
   400  //
   401  // ANSI macros:
   402  // _ANSI_SOURCE			ANSI C89
   403  //
   404  // POSIX macros:
   405  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   406  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   407  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   408  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   409  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   410  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   411  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   412  //
   413  // X/Open macros:
   414  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   415  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   416  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   417  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   418  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   419  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   420  //
   421  // NetBSD macros:
   422  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   423  //
   424  // If more than one of these "major" feature-test macros is defined,
   425  // then the set of facilities provided (and namespace used) is the
   426  // union of that specified by the relevant standards, and in case of
   427  // conflict, the earlier standard in the above list has precedence (so
   428  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   429  // of rename() that's used is the POSIX one).  If none of the "major"
   430  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   431  //
   432  // There are also "minor" feature-test macros, which enable extra
   433  // functionality in addition to some base standard.  They should be
   434  // defined along with one of the "major" macros.  The "minor" macros
   435  // are:
   436  //
   437  // _REENTRANT
   438  // _ISOC99_SOURCE
   439  // _ISOC11_SOURCE
   440  // _LARGEFILE_SOURCE		Large File Support
   441  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   442  
   443  //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
   444  
   445  // -
   446  // Copyright (c) 1990 The Regents of the University of California.
   447  // All rights reserved.
   448  //
   449  // Redistribution and use in source and binary forms, with or without
   450  // modification, are permitted provided that the following conditions
   451  // are met:
   452  // 1. Redistributions of source code must retain the above copyright
   453  //    notice, this list of conditions and the following disclaimer.
   454  // 2. Redistributions in binary form must reproduce the above copyright
   455  //    notice, this list of conditions and the following disclaimer in the
   456  //    documentation and/or other materials provided with the distribution.
   457  // 3. Neither the name of the University nor the names of its contributors
   458  //    may be used to endorse or promote products derived from this software
   459  //    without specific prior written permission.
   460  //
   461  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   462  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   463  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   464  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   465  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   466  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   467  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   468  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   469  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   470  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   471  // SUCH DAMAGE.
   472  //
   473  //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
   474  
   475  //	$NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
   476  
   477  // -
   478  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   479  // All rights reserved.
   480  //
   481  // This code is derived from software contributed to The NetBSD Foundation
   482  // by Joerg Sonnenberger.
   483  //
   484  // Redistribution and use in source and binary forms, with or without
   485  // modification, are permitted provided that the following conditions
   486  // are met:
   487  // 1. Redistributions of source code must retain the above copyright
   488  //    notice, this list of conditions and the following disclaimer.
   489  // 2. Redistributions in binary form must reproduce the above copyright
   490  //    notice, this list of conditions and the following disclaimer in the
   491  //    documentation and/or other materials provided with the distribution.
   492  //
   493  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   494  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   495  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   496  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   497  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   498  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   499  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   500  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   501  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   502  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   503  // POSSIBILITY OF SUCH DAMAGE.
   504  
   505  // 7.18.1 Integer types
   506  
   507  // 7.18.1.1 Exact-width integer types
   508  
   509  type X__int8_t = int8     /* common_int_types.h:45:27 */
   510  type X__uint8_t = uint8   /* common_int_types.h:46:27 */
   511  type X__int16_t = int16   /* common_int_types.h:47:27 */
   512  type X__uint16_t = uint16 /* common_int_types.h:48:27 */
   513  type X__int32_t = int32   /* common_int_types.h:49:27 */
   514  type X__uint32_t = uint32 /* common_int_types.h:50:27 */
   515  type X__int64_t = int64   /* common_int_types.h:51:27 */
   516  type X__uint64_t = uint64 /* common_int_types.h:52:27 */
   517  
   518  // 7.18.1.4 Integer types capable of holding object pointers
   519  
   520  type X__intptr_t = int64   /* common_int_types.h:58:27 */
   521  type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
   522  
   523  type X__register_t = int64           /* types.h:68:19 */
   524  type X__cpu_simple_lock_nv_t = uint8 /* types.h:69:24 */
   525  
   526  // __cpu_simple_lock_t used to be a full word.
   527  
   528  // The amd64 does not have strict alignment requirements.
   529  
   530  //	$NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
   531  
   532  //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
   533  
   534  // -
   535  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   536  // All rights reserved.
   537  //
   538  // This code is derived from software contributed to The NetBSD Foundation
   539  // by Matt Thomas of 3am Software Foundry.
   540  //
   541  // Redistribution and use in source and binary forms, with or without
   542  // modification, are permitted provided that the following conditions
   543  // are met:
   544  // 1. Redistributions of source code must retain the above copyright
   545  //    notice, this list of conditions and the following disclaimer.
   546  // 2. Redistributions in binary form must reproduce the above copyright
   547  //    notice, this list of conditions and the following disclaimer in the
   548  //    documentation and/or other materials provided with the distribution.
   549  //
   550  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   551  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   552  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   553  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   554  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   555  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   556  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   557  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   558  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   559  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   560  // POSSIBILITY OF SUCH DAMAGE.
   561  
   562  //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
   563  
   564  // * Copyright (c) 1991, 1993
   565  //	The Regents of the University of California.  All rights reserved.
   566  //
   567  // This code is derived from software contributed to Berkeley by
   568  // Berkeley Software Design, Inc.
   569  //
   570  // Redistribution and use in source and binary forms, with or without
   571  // modification, are permitted provided that the following conditions
   572  // are met:
   573  // 1. Redistributions of source code must retain the above copyright
   574  //    notice, this list of conditions and the following disclaimer.
   575  // 2. Redistributions in binary form must reproduce the above copyright
   576  //    notice, this list of conditions and the following disclaimer in the
   577  //    documentation and/or other materials provided with the distribution.
   578  // 3. Neither the name of the University nor the names of its contributors
   579  //    may be used to endorse or promote products derived from this software
   580  //    without specific prior written permission.
   581  //
   582  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   583  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   584  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   585  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   586  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   587  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   588  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   589  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   590  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   591  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   592  // SUCH DAMAGE.
   593  //
   594  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   595  
   596  //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
   597  
   598  // -
   599  // Copyright (c) 1990 The Regents of the University of California.
   600  // All rights reserved.
   601  //
   602  // Redistribution and use in source and binary forms, with or without
   603  // modification, are permitted provided that the following conditions
   604  // are met:
   605  // 1. Redistributions of source code must retain the above copyright
   606  //    notice, this list of conditions and the following disclaimer.
   607  // 2. Redistributions in binary form must reproduce the above copyright
   608  //    notice, this list of conditions and the following disclaimer in the
   609  //    documentation and/or other materials provided with the distribution.
   610  // 3. Neither the name of the University nor the names of its contributors
   611  //    may be used to endorse or promote products derived from this software
   612  //    without specific prior written permission.
   613  //
   614  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   615  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   616  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   617  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   618  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   619  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   620  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   621  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   622  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   623  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   624  // SUCH DAMAGE.
   625  //
   626  //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
   627  
   628  // Types which are fundamental to the implementation and may appear in
   629  // more than one standard header are defined here.  Standard headers
   630  // then use:
   631  //	#ifdef	_BSD_SIZE_T_
   632  //	typedef	_BSD_SIZE_T_ size_t;
   633  //	#undef	_BSD_SIZE_T_
   634  //	#endif
   635  
   636  //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
   637  
   638  // -
   639  // Copyright (c) 1990 The Regents of the University of California.
   640  // All rights reserved.
   641  //
   642  // Redistribution and use in source and binary forms, with or without
   643  // modification, are permitted provided that the following conditions
   644  // are met:
   645  // 1. Redistributions of source code must retain the above copyright
   646  //    notice, this list of conditions and the following disclaimer.
   647  // 2. Redistributions in binary form must reproduce the above copyright
   648  //    notice, this list of conditions and the following disclaimer in the
   649  //    documentation and/or other materials provided with the distribution.
   650  // 3. Neither the name of the University nor the names of its contributors
   651  //    may be used to endorse or promote products derived from this software
   652  //    without specific prior written permission.
   653  //
   654  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   655  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   656  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   657  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   658  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   659  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   660  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   661  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   662  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   663  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   664  // SUCH DAMAGE.
   665  //
   666  //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
   667  
   668  //	$NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
   669  
   670  // -
   671  // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
   672  // All rights reserved.
   673  //
   674  // This code is derived from software contributed to The NetBSD Foundation
   675  // by Jun-ichiro itojun Hagino and by Klaus Klein.
   676  //
   677  // Redistribution and use in source and binary forms, with or without
   678  // modification, are permitted provided that the following conditions
   679  // are met:
   680  // 1. Redistributions of source code must retain the above copyright
   681  //    notice, this list of conditions and the following disclaimer.
   682  // 2. Redistributions in binary form must reproduce the above copyright
   683  //    notice, this list of conditions and the following disclaimer in the
   684  //    documentation and/or other materials provided with the distribution.
   685  //
   686  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   687  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   688  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   689  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   690  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   691  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   692  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   693  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   694  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   695  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   696  // POSSIBILITY OF SUCH DAMAGE.
   697  
   698  //	$NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
   699  
   700  //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
   701  
   702  // -
   703  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   704  // All rights reserved.
   705  //
   706  // This code is derived from software contributed to The NetBSD Foundation
   707  // by Matt Thomas of 3am Software Foundry.
   708  //
   709  // Redistribution and use in source and binary forms, with or without
   710  // modification, are permitted provided that the following conditions
   711  // are met:
   712  // 1. Redistributions of source code must retain the above copyright
   713  //    notice, this list of conditions and the following disclaimer.
   714  // 2. Redistributions in binary form must reproduce the above copyright
   715  //    notice, this list of conditions and the following disclaimer in the
   716  //    documentation and/or other materials provided with the distribution.
   717  //
   718  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   719  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   720  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   721  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   722  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   723  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   724  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   725  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   726  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   727  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   728  // POSSIBILITY OF SUCH DAMAGE.
   729  
   730  type X__caddr_t = uintptr        /* ansi.h:37:14 */ // core address
   731  type X__gid_t = X__uint32_t      /* ansi.h:38:20 */ // group id
   732  type X__in_addr_t = X__uint32_t  /* ansi.h:39:20 */ // IP(v4) address
   733  type X__in_port_t = X__uint16_t  /* ansi.h:40:20 */ // "Internet" port number
   734  type X__mode_t = X__uint32_t     /* ansi.h:41:20 */ // file permissions
   735  type X__off_t = X__int64_t       /* ansi.h:42:19 */ // file offset
   736  type X__pid_t = X__int32_t       /* ansi.h:43:19 */ // process id
   737  type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
   738  type X__socklen_t = uint32       /* ansi.h:45:22 */ // socket-related datum length
   739  type X__uid_t = X__uint32_t      /* ansi.h:46:20 */ // user id
   740  type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
   741  type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
   742  type X__wctrans_t = uintptr      /* ansi.h:51:32 */
   743  type X__wctype_t = uintptr       /* ansi.h:54:31 */
   744  
   745  // mbstate_t is an opaque object to keep conversion state, during multibyte
   746  // stream conversions.  The content must not be referenced by user programs.
   747  type X__mbstate_t = struct {
   748  	F__mbstateL  X__int64_t
   749  	F__ccgo_pad1 [120]byte
   750  } /* ansi.h:63:3 */
   751  
   752  type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
   753  
   754  type Int8_t = X__int8_t /* types.h:54:18 */
   755  
   756  type Uint8_t = X__uint8_t /* types.h:59:19 */
   757  
   758  type Int16_t = X__int16_t /* types.h:64:19 */
   759  
   760  type Uint16_t = X__uint16_t /* types.h:69:20 */
   761  
   762  type Int32_t = X__int32_t /* types.h:74:19 */
   763  
   764  type Uint32_t = X__uint32_t /* types.h:79:20 */
   765  
   766  type Int64_t = X__int64_t /* types.h:84:19 */
   767  
   768  type Uint64_t = X__uint64_t /* types.h:89:20 */
   769  
   770  type U_int8_t = Uint8_t   /* types.h:93:18 */
   771  type U_int16_t = Uint16_t /* types.h:94:18 */
   772  type U_int32_t = Uint32_t /* types.h:95:18 */
   773  type U_int64_t = Uint64_t /* types.h:96:18 */
   774  
   775  //	$NetBSD: endian.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $
   776  
   777  //	$NetBSD: endian.h,v 1.30 2016/02/27 21:37:35 christos Exp $
   778  
   779  // Copyright (c) 1987, 1991, 1993
   780  //	The Regents of the University of California.  All rights reserved.
   781  //
   782  // Redistribution and use in source and binary forms, with or without
   783  // modification, are permitted provided that the following conditions
   784  // are met:
   785  // 1. Redistributions of source code must retain the above copyright
   786  //    notice, this list of conditions and the following disclaimer.
   787  // 2. Redistributions in binary form must reproduce the above copyright
   788  //    notice, this list of conditions and the following disclaimer in the
   789  //    documentation and/or other materials provided with the distribution.
   790  // 3. Neither the name of the University nor the names of its contributors
   791  //    may be used to endorse or promote products derived from this software
   792  //    without specific prior written permission.
   793  //
   794  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   795  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   796  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   797  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   798  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   799  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   800  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   801  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   802  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   803  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   804  // SUCH DAMAGE.
   805  //
   806  //	@(#)endian.h	8.1 (Berkeley) 6/11/93
   807  
   808  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   809  
   810  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   811  // Public domain.
   812  //
   813  // NOTE: Do not protect this header against multiple inclusion.  Doing
   814  // so can have subtle side-effects due to header file inclusion order
   815  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   816  // protect each CPP macro that we want to supply.
   817  
   818  // Feature-test macros are defined by several standards, and allow an
   819  // application to specify what symbols they want the system headers to
   820  // expose, and hence what standard they want them to conform to.
   821  // There are two classes of feature-test macros.  The first class
   822  // specify complete standards, and if one of these is defined, header
   823  // files will try to conform to the relevant standard.  They are:
   824  //
   825  // ANSI macros:
   826  // _ANSI_SOURCE			ANSI C89
   827  //
   828  // POSIX macros:
   829  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   830  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   831  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   832  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   833  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   834  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   835  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   836  //
   837  // X/Open macros:
   838  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   839  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   840  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   841  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   842  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   843  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   844  //
   845  // NetBSD macros:
   846  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   847  //
   848  // If more than one of these "major" feature-test macros is defined,
   849  // then the set of facilities provided (and namespace used) is the
   850  // union of that specified by the relevant standards, and in case of
   851  // conflict, the earlier standard in the above list has precedence (so
   852  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   853  // of rename() that's used is the POSIX one).  If none of the "major"
   854  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   855  //
   856  // There are also "minor" feature-test macros, which enable extra
   857  // functionality in addition to some base standard.  They should be
   858  // defined along with one of the "major" macros.  The "minor" macros
   859  // are:
   860  //
   861  // _REENTRANT
   862  // _ISOC99_SOURCE
   863  // _ISOC11_SOURCE
   864  // _LARGEFILE_SOURCE		Large File Support
   865  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   866  
   867  // Definitions for byte order, according to byte significance from low
   868  // address to high.
   869  
   870  // C-family endian-ness definitions
   871  
   872  //	$NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
   873  
   874  // -
   875  // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
   876  // All rights reserved.
   877  //
   878  // This code is derived from software contributed to The NetBSD Foundation
   879  // by Jun-ichiro itojun Hagino and by Klaus Klein.
   880  //
   881  // Redistribution and use in source and binary forms, with or without
   882  // modification, are permitted provided that the following conditions
   883  // are met:
   884  // 1. Redistributions of source code must retain the above copyright
   885  //    notice, this list of conditions and the following disclaimer.
   886  // 2. Redistributions in binary form must reproduce the above copyright
   887  //    notice, this list of conditions and the following disclaimer in the
   888  //    documentation and/or other materials provided with the distribution.
   889  //
   890  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   891  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   892  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   893  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   894  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   895  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   896  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   897  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   898  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   899  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   900  // POSSIBILITY OF SUCH DAMAGE.
   901  
   902  //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
   903  
   904  // * Copyright (c) 1991, 1993
   905  //	The Regents of the University of California.  All rights reserved.
   906  //
   907  // This code is derived from software contributed to Berkeley by
   908  // Berkeley Software Design, Inc.
   909  //
   910  // Redistribution and use in source and binary forms, with or without
   911  // modification, are permitted provided that the following conditions
   912  // are met:
   913  // 1. Redistributions of source code must retain the above copyright
   914  //    notice, this list of conditions and the following disclaimer.
   915  // 2. Redistributions in binary form must reproduce the above copyright
   916  //    notice, this list of conditions and the following disclaimer in the
   917  //    documentation and/or other materials provided with the distribution.
   918  // 3. Neither the name of the University nor the names of its contributors
   919  //    may be used to endorse or promote products derived from this software
   920  //    without specific prior written permission.
   921  //
   922  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   923  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   924  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   925  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   926  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   927  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   928  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   929  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   930  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   931  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   932  // SUCH DAMAGE.
   933  //
   934  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   935  
   936  //	$NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
   937  
   938  // -
   939  // Copyright (c) 1982, 1986, 1991, 1993, 1994
   940  //	The Regents of the University of California.  All rights reserved.
   941  // (c) UNIX System Laboratories, Inc.
   942  // All or some portions of this file are derived from material licensed
   943  // to the University of California by American Telephone and Telegraph
   944  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   945  // the permission of UNIX System Laboratories, Inc.
   946  //
   947  // Redistribution and use in source and binary forms, with or without
   948  // modification, are permitted provided that the following conditions
   949  // are met:
   950  // 1. Redistributions of source code must retain the above copyright
   951  //    notice, this list of conditions and the following disclaimer.
   952  // 2. Redistributions in binary form must reproduce the above copyright
   953  //    notice, this list of conditions and the following disclaimer in the
   954  //    documentation and/or other materials provided with the distribution.
   955  // 3. Neither the name of the University nor the names of its contributors
   956  //    may be used to endorse or promote products derived from this software
   957  //    without specific prior written permission.
   958  //
   959  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   960  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   961  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   962  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   963  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   964  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   965  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   966  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   967  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   968  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   969  // SUCH DAMAGE.
   970  //
   971  //	@(#)types.h	8.4 (Berkeley) 1/21/94
   972  
   973  type In_addr_t = X__in_addr_t /* endian.h:58:21 */
   974  
   975  type In_port_t = X__in_port_t /* endian.h:63:21 */
   976  
   977  //      $NetBSD: bswap.h,v 1.19 2015/03/12 15:28:16 christos Exp $
   978  
   979  // Written by Manuel Bouyer. Public domain
   980  
   981  //	$NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $
   982  
   983  // -
   984  // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
   985  // All rights reserved.
   986  //
   987  // This code is derived from software contributed to The NetBSD Foundation
   988  // by Klaus Klein.
   989  //
   990  // Redistribution and use in source and binary forms, with or without
   991  // modification, are permitted provided that the following conditions
   992  // are met:
   993  // 1. Redistributions of source code must retain the above copyright
   994  //    notice, this list of conditions and the following disclaimer.
   995  // 2. Redistributions in binary form must reproduce the above copyright
   996  //    notice, this list of conditions and the following disclaimer in the
   997  //    documentation and/or other materials provided with the distribution.
   998  //
   999  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1000  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1001  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1002  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1003  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1004  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1005  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1006  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1007  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1008  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1009  // POSSIBILITY OF SUCH DAMAGE.
  1010  
  1011  //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1012  
  1013  // * Copyright (c) 1991, 1993
  1014  //	The Regents of the University of California.  All rights reserved.
  1015  //
  1016  // This code is derived from software contributed to Berkeley by
  1017  // Berkeley Software Design, Inc.
  1018  //
  1019  // Redistribution and use in source and binary forms, with or without
  1020  // modification, are permitted provided that the following conditions
  1021  // are met:
  1022  // 1. Redistributions of source code must retain the above copyright
  1023  //    notice, this list of conditions and the following disclaimer.
  1024  // 2. Redistributions in binary form must reproduce the above copyright
  1025  //    notice, this list of conditions and the following disclaimer in the
  1026  //    documentation and/or other materials provided with the distribution.
  1027  // 3. Neither the name of the University nor the names of its contributors
  1028  //    may be used to endorse or promote products derived from this software
  1029  //    without specific prior written permission.
  1030  //
  1031  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1032  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1033  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1034  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1035  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1036  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1037  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1038  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1039  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1040  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1041  // SUCH DAMAGE.
  1042  //
  1043  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1044  
  1045  //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  1046  
  1047  // -
  1048  // Copyright (c) 1990 The Regents of the University of California.
  1049  // All rights reserved.
  1050  //
  1051  // Redistribution and use in source and binary forms, with or without
  1052  // modification, are permitted provided that the following conditions
  1053  // are met:
  1054  // 1. Redistributions of source code must retain the above copyright
  1055  //    notice, this list of conditions and the following disclaimer.
  1056  // 2. Redistributions in binary form must reproduce the above copyright
  1057  //    notice, this list of conditions and the following disclaimer in the
  1058  //    documentation and/or other materials provided with the distribution.
  1059  // 3. Neither the name of the University nor the names of its contributors
  1060  //    may be used to endorse or promote products derived from this software
  1061  //    without specific prior written permission.
  1062  //
  1063  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1064  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1065  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1066  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1067  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1068  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1069  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1070  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1071  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1072  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1073  // SUCH DAMAGE.
  1074  //
  1075  //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
  1076  
  1077  type Intptr_t = X__intptr_t /* stdint.h:79:20 */
  1078  
  1079  type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */
  1080  
  1081  //	$NetBSD: int_mwgwtypes.h,v 1.8 2014/07/25 21:43:13 joerg Exp $
  1082  
  1083  // -
  1084  // Copyright (c) 2001 The NetBSD Foundation, Inc.
  1085  // All rights reserved.
  1086  //
  1087  // This code is derived from software contributed to The NetBSD Foundation
  1088  // by Klaus Klein.
  1089  //
  1090  // Redistribution and use in source and binary forms, with or without
  1091  // modification, are permitted provided that the following conditions
  1092  // are met:
  1093  // 1. Redistributions of source code must retain the above copyright
  1094  //    notice, this list of conditions and the following disclaimer.
  1095  // 2. Redistributions in binary form must reproduce the above copyright
  1096  //    notice, this list of conditions and the following disclaimer in the
  1097  //    documentation and/or other materials provided with the distribution.
  1098  //
  1099  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1100  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1101  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1102  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1103  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1104  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1105  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1106  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1107  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1108  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1109  // POSSIBILITY OF SUCH DAMAGE.
  1110  
  1111  //	$NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  1112  
  1113  // -
  1114  // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1115  // All rights reserved.
  1116  //
  1117  // This code is derived from software contributed to The NetBSD Foundation
  1118  // by Joerg Sonnenberger.
  1119  //
  1120  // Redistribution and use in source and binary forms, with or without
  1121  // modification, are permitted provided that the following conditions
  1122  // are met:
  1123  // 1. Redistributions of source code must retain the above copyright
  1124  //    notice, this list of conditions and the following disclaimer.
  1125  // 2. Redistributions in binary form must reproduce the above copyright
  1126  //    notice, this list of conditions and the following disclaimer in the
  1127  //    documentation and/or other materials provided with the distribution.
  1128  //
  1129  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1130  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1131  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1132  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1133  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1134  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1135  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1136  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1137  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1138  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1139  // POSSIBILITY OF SUCH DAMAGE.
  1140  
  1141  // 7.18.1 Integer types
  1142  
  1143  // 7.18.1.2 Minimum-width integer types
  1144  
  1145  type Int_least8_t = int8     /* common_int_mwgwtypes.h:45:32 */
  1146  type Uint_least8_t = uint8   /* common_int_mwgwtypes.h:46:32 */
  1147  type Int_least16_t = int16   /* common_int_mwgwtypes.h:47:32 */
  1148  type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */
  1149  type Int_least32_t = int32   /* common_int_mwgwtypes.h:49:32 */
  1150  type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */
  1151  type Int_least64_t = int64   /* common_int_mwgwtypes.h:51:32 */
  1152  type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */
  1153  
  1154  // 7.18.1.3 Fastest minimum-width integer types
  1155  type Int_fast8_t = int32    /* common_int_mwgwtypes.h:55:32 */
  1156  type Uint_fast8_t = uint32  /* common_int_mwgwtypes.h:56:32 */
  1157  type Int_fast16_t = int32   /* common_int_mwgwtypes.h:57:32 */
  1158  type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */
  1159  type Int_fast32_t = int32   /* common_int_mwgwtypes.h:59:32 */
  1160  type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */
  1161  type Int_fast64_t = int64   /* common_int_mwgwtypes.h:61:32 */
  1162  type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
  1163  
  1164  // 7.18.1.5 Greatest-width integer types
  1165  
  1166  type Intmax_t = int64   /* common_int_mwgwtypes.h:66:33 */
  1167  type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
  1168  
  1169  type U_char = uint8   /* types.h:101:23 */
  1170  type U_short = uint16 /* types.h:102:24 */
  1171  type U_int = uint32   /* types.h:103:22 */
  1172  type U_long = uint64  /* types.h:104:23 */
  1173  
  1174  type Unchar = uint8  /* types.h:106:23 */ // Sys V compatibility
  1175  type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
  1176  type Uint = uint32   /* types.h:108:22 */ // Sys V compatibility
  1177  type Ulong = uint64  /* types.h:109:23 */ // Sys V compatibility
  1178  
  1179  type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
  1180  type Quad_t = Int64_t    /* types.h:113:18 */
  1181  type Qaddr_t = uintptr   /* types.h:114:16 */
  1182  
  1183  // The types longlong_t and u_longlong_t exist for use with the
  1184  // Sun-derived XDR routines involving these types, and their usage
  1185  // in other contexts is discouraged.  Further note that these types
  1186  // may not be equivalent to "long long" and "unsigned long long",
  1187  // they are only guaranteed to be signed and unsigned 64-bit types
  1188  // respectively.  Portable programs that need 64-bit types should use
  1189  // the C99 types int64_t and uint64_t instead.
  1190  
  1191  type Longlong_t = Int64_t    /* types.h:126:18 */ // for XDR
  1192  type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
  1193  
  1194  type Blkcnt_t = Int64_t  /* types.h:129:18 */ // fs block count
  1195  type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
  1196  
  1197  type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
  1198  
  1199  type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
  1200  
  1201  // We don't and shouldn't use caddr_t in the kernel anymore
  1202  type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
  1203  
  1204  type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
  1205  
  1206  type Dev_t = Uint64_t   /* types.h:157:18 */ // device number
  1207  type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
  1208  
  1209  type Gid_t = X__gid_t /* types.h:161:18 */ // group id
  1210  
  1211  type Id_t = Uint32_t  /* types.h:165:18 */ // group id, process id or user id
  1212  type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
  1213  type Key_t = int64    /* types.h:167:15 */ // IPC key (for Sys V IPC)
  1214  
  1215  type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
  1216  
  1217  type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
  1218  
  1219  type Off_t = X__off_t /* types.h:177:18 */ // file offset
  1220  
  1221  type Pid_t = X__pid_t  /* types.h:182:18 */ // process id
  1222  type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
  1223  type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
  1224  type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
  1225  type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
  1226  
  1227  type Uid_t = X__uid_t /* types.h:191:18 */ // user id
  1228  
  1229  type Mqd_t = int32 /* types.h:195:14 */
  1230  
  1231  type Cpuid_t = uint64 /* types.h:197:23 */
  1232  
  1233  type Psetid_t = int32 /* types.h:199:14 */
  1234  
  1235  type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
  1236  
  1237  // Major, minor numbers, dev_t's.
  1238  type X__devmajor_t = Int32_t /* types.h:255:17 */
  1239  type X__devminor_t = Int32_t /* types.h:255:31 */
  1240  
  1241  type Clock_t = uint32 /* types.h:268:24 */
  1242  
  1243  type Ssize_t = int64 /* types.h:284:24 */
  1244  
  1245  type Time_t = X__int64_t /* types.h:289:23 */
  1246  
  1247  type Clockid_t = int32 /* types.h:294:26 */
  1248  
  1249  type Timer_t = int32 /* types.h:299:24 */
  1250  
  1251  type Suseconds_t = int32 /* types.h:304:27 */
  1252  
  1253  type Useconds_t = uint32 /* types.h:309:26 */
  1254  
  1255  //	$NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
  1256  
  1257  // -
  1258  // Copyright (c) 1992, 1993
  1259  //	The Regents of the University of California.  All rights reserved.
  1260  //
  1261  // Redistribution and use in source and binary forms, with or without
  1262  // modification, are permitted provided that the following conditions
  1263  // are met:
  1264  // 1. Redistributions of source code must retain the above copyright
  1265  //    notice, this list of conditions and the following disclaimer.
  1266  // 2. Redistributions in binary form must reproduce the above copyright
  1267  //    notice, this list of conditions and the following disclaimer in the
  1268  //    documentation and/or other materials provided with the distribution.
  1269  // 3. Neither the name of the University nor the names of its contributors
  1270  //    may be used to endorse or promote products derived from this software
  1271  //    without specific prior written permission.
  1272  //
  1273  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1274  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1275  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1276  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1277  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1278  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1279  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1280  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1281  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1282  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1283  // SUCH DAMAGE.
  1284  //
  1285  //	from: @(#)types.h	8.4 (Berkeley) 1/21/94
  1286  
  1287  //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1288  
  1289  // * Copyright (c) 1991, 1993
  1290  //	The Regents of the University of California.  All rights reserved.
  1291  //
  1292  // This code is derived from software contributed to Berkeley by
  1293  // Berkeley Software Design, Inc.
  1294  //
  1295  // Redistribution and use in source and binary forms, with or without
  1296  // modification, are permitted provided that the following conditions
  1297  // are met:
  1298  // 1. Redistributions of source code must retain the above copyright
  1299  //    notice, this list of conditions and the following disclaimer.
  1300  // 2. Redistributions in binary form must reproduce the above copyright
  1301  //    notice, this list of conditions and the following disclaimer in the
  1302  //    documentation and/or other materials provided with the distribution.
  1303  // 3. Neither the name of the University nor the names of its contributors
  1304  //    may be used to endorse or promote products derived from this software
  1305  //    without specific prior written permission.
  1306  //
  1307  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1308  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1309  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1310  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1311  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1312  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1313  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1314  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1315  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1316  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1317  // SUCH DAMAGE.
  1318  //
  1319  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1320  
  1321  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1322  
  1323  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1324  // Public domain.
  1325  //
  1326  // NOTE: Do not protect this header against multiple inclusion.  Doing
  1327  // so can have subtle side-effects due to header file inclusion order
  1328  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
  1329  // protect each CPP macro that we want to supply.
  1330  
  1331  // Feature-test macros are defined by several standards, and allow an
  1332  // application to specify what symbols they want the system headers to
  1333  // expose, and hence what standard they want them to conform to.
  1334  // There are two classes of feature-test macros.  The first class
  1335  // specify complete standards, and if one of these is defined, header
  1336  // files will try to conform to the relevant standard.  They are:
  1337  //
  1338  // ANSI macros:
  1339  // _ANSI_SOURCE			ANSI C89
  1340  //
  1341  // POSIX macros:
  1342  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
  1343  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
  1344  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
  1345  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
  1346  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
  1347  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
  1348  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
  1349  //
  1350  // X/Open macros:
  1351  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
  1352  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
  1353  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
  1354  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
  1355  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
  1356  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
  1357  //
  1358  // NetBSD macros:
  1359  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
  1360  //
  1361  // If more than one of these "major" feature-test macros is defined,
  1362  // then the set of facilities provided (and namespace used) is the
  1363  // union of that specified by the relevant standards, and in case of
  1364  // conflict, the earlier standard in the above list has precedence (so
  1365  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1366  // of rename() that's used is the POSIX one).  If none of the "major"
  1367  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1368  //
  1369  // There are also "minor" feature-test macros, which enable extra
  1370  // functionality in addition to some base standard.  They should be
  1371  // defined along with one of the "major" macros.  The "minor" macros
  1372  // are:
  1373  //
  1374  // _REENTRANT
  1375  // _ISOC99_SOURCE
  1376  // _ISOC11_SOURCE
  1377  // _LARGEFILE_SOURCE		Large File Support
  1378  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1379  
  1380  //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  1381  
  1382  // -
  1383  // Copyright (c) 1990 The Regents of the University of California.
  1384  // All rights reserved.
  1385  //
  1386  // Redistribution and use in source and binary forms, with or without
  1387  // modification, are permitted provided that the following conditions
  1388  // are met:
  1389  // 1. Redistributions of source code must retain the above copyright
  1390  //    notice, this list of conditions and the following disclaimer.
  1391  // 2. Redistributions in binary form must reproduce the above copyright
  1392  //    notice, this list of conditions and the following disclaimer in the
  1393  //    documentation and/or other materials provided with the distribution.
  1394  // 3. Neither the name of the University nor the names of its contributors
  1395  //    may be used to endorse or promote products derived from this software
  1396  //    without specific prior written permission.
  1397  //
  1398  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1399  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1400  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1401  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1402  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1403  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1404  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1405  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1406  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1407  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1408  // SUCH DAMAGE.
  1409  //
  1410  //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
  1411  
  1412  // Implementation dependent defines, hidden from user space.
  1413  // POSIX does not specify them.
  1414  
  1415  type X__fd_mask = X__uint32_t /* fd_set.h:46:20 */
  1416  
  1417  // 32 = 2 ^ 5
  1418  
  1419  // Select uses bit fields of file descriptors.  These macros manipulate
  1420  // such bit fields.  Note: FD_SETSIZE may be defined by the user.
  1421  
  1422  type Fd_set1 = struct{ Ffds_bits [8]X__fd_mask } /* fd_set.h:66:9 */
  1423  
  1424  // 32 = 2 ^ 5
  1425  
  1426  // Select uses bit fields of file descriptors.  These macros manipulate
  1427  // such bit fields.  Note: FD_SETSIZE may be defined by the user.
  1428  
  1429  type Fd_set = Fd_set1 /* fd_set.h:68:3 */
  1430  
  1431  // Expose our internals if we are not required to hide them.
  1432  
  1433  type Kauth_cred_t = uintptr /* types.h:318:27 */
  1434  
  1435  type Pri_t = int32 /* types.h:320:13 */
  1436  
  1437  //	$NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
  1438  
  1439  // -
  1440  // Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
  1441  // All rights reserved.
  1442  //
  1443  // This code is derived from software contributed to The NetBSD Foundation
  1444  // by Nathan J. Williams.
  1445  //
  1446  // Redistribution and use in source and binary forms, with or without
  1447  // modification, are permitted provided that the following conditions
  1448  // are met:
  1449  // 1. Redistributions of source code must retain the above copyright
  1450  //    notice, this list of conditions and the following disclaimer.
  1451  // 2. Redistributions in binary form must reproduce the above copyright
  1452  //    notice, this list of conditions and the following disclaimer in the
  1453  //    documentation and/or other materials provided with the distribution.
  1454  //
  1455  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1456  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1457  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1458  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1459  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1460  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1461  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1462  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1463  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1464  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1465  // POSSIBILITY OF SUCH DAMAGE.
  1466  
  1467  // We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the
  1468  // POSIX spinlock object.
  1469  //
  1470  // C++ expects to be using PTHREAD_FOO_INITIALIZER as a member initializer.
  1471  // This does not work for volatile types.  Since C++ does not touch the guts
  1472  // of those types, we do not include volatile in the C++ definitions.
  1473  type Pthread_spin_t = X__cpu_simple_lock_t /* pthread_types.h:43:29 */
  1474  type X__pthread_spin_t = Pthread_spin_t    /* pthread_types.h:48:24 */
  1475  
  1476  // Copied from PTQ_HEAD in pthread_queue.h
  1477  
  1478  type Pthread_queue_struct_t = struct {
  1479  	Fptqh_first uintptr
  1480  	Fptqh_last  uintptr
  1481  } /* pthread_types.h:61:1 */
  1482  
  1483  type Pthread_queue_t = Pthread_queue_struct_t /* pthread_types.h:62:39 */
  1484  type X__pthread_attr_st = struct {
  1485  	Fpta_magic   uint32
  1486  	Fpta_flags   int32
  1487  	Fpta_private uintptr
  1488  } /* pthread_types.h:65:1 */
  1489  
  1490  type X__pthread_mutex_st = struct {
  1491  	Fptm_magic      uint32
  1492  	Fptm_errorcheck X__pthread_spin_t
  1493  	Fptm_pad1       [3]Uint8_t
  1494  	F__8            struct{ Fptm_ceiling uint8 }
  1495  	Fptm_pad2       [3]Uint8_t
  1496  	F__ccgo_pad1    [4]byte
  1497  	Fptm_owner      Pthread_t
  1498  	Fptm_waiters    uintptr
  1499  	Fptm_recursed   uint32
  1500  	F__ccgo_pad2    [4]byte
  1501  	Fptm_spare2     uintptr
  1502  } /* pthread_types.h:66:1 */
  1503  
  1504  type X__pthread_mutexattr_st = struct {
  1505  	Fptma_magic   uint32
  1506  	F__ccgo_pad1  [4]byte
  1507  	Fptma_private uintptr
  1508  } /* pthread_types.h:67:1 */
  1509  
  1510  type X__pthread_cond_st = struct {
  1511  	Fptc_magic   uint32
  1512  	Fptc_lock    X__pthread_spin_t
  1513  	F__ccgo_pad1 [3]byte
  1514  	Fptc_waiters Pthread_queue_t
  1515  	Fptc_mutex   uintptr
  1516  	Fptc_private uintptr
  1517  } /* pthread_types.h:68:1 */
  1518  
  1519  type X__pthread_condattr_st = struct {
  1520  	Fptca_magic   uint32
  1521  	F__ccgo_pad1  [4]byte
  1522  	Fptca_private uintptr
  1523  } /* pthread_types.h:69:1 */
  1524  
  1525  type X__pthread_rwlock_st = struct {
  1526  	Fptr_magic     uint32
  1527  	Fptr_interlock X__pthread_spin_t
  1528  	F__ccgo_pad1   [3]byte
  1529  	Fptr_rblocked  Pthread_queue_t
  1530  	Fptr_wblocked  Pthread_queue_t
  1531  	Fptr_nreaders  uint32
  1532  	F__ccgo_pad2   [4]byte
  1533  	Fptr_owner     Pthread_t
  1534  	Fptr_private   uintptr
  1535  } /* pthread_types.h:71:1 */
  1536  
  1537  type X__pthread_rwlockattr_st = struct {
  1538  	Fptra_magic   uint32
  1539  	F__ccgo_pad1  [4]byte
  1540  	Fptra_private uintptr
  1541  } /* pthread_types.h:72:1 */
  1542  
  1543  type X__pthread_barrier_st = struct {
  1544  	Fptb_magic      uint32
  1545  	Fptb_lock       Pthread_spin_t
  1546  	F__ccgo_pad1    [3]byte
  1547  	Fptb_waiters    Pthread_queue_t
  1548  	Fptb_initcount  uint32
  1549  	Fptb_curcount   uint32
  1550  	Fptb_generation uint32
  1551  	F__ccgo_pad2    [4]byte
  1552  	Fptb_private    uintptr
  1553  } /* pthread_types.h:73:1 */
  1554  
  1555  type X__pthread_barrierattr_st = struct {
  1556  	Fptba_magic   uint32
  1557  	F__ccgo_pad1  [4]byte
  1558  	Fptba_private uintptr
  1559  } /* pthread_types.h:74:1 */
  1560  
  1561  type Pthread_t = uintptr                           /* pthread_types.h:76:29 */
  1562  type Pthread_attr_t = X__pthread_attr_st           /* pthread_types.h:77:34 */
  1563  type Pthread_mutex_t = X__pthread_mutex_st         /* pthread_types.h:78:35 */
  1564  type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */
  1565  type Pthread_cond_t = X__pthread_cond_st           /* pthread_types.h:80:34 */
  1566  type Pthread_condattr_t = X__pthread_condattr_st   /* pthread_types.h:81:38 */
  1567  type X__pthread_once_st = struct {
  1568  	Fpto_mutex   Pthread_mutex_t
  1569  	Fpto_done    int32
  1570  	F__ccgo_pad1 [4]byte
  1571  } /* pthread_types.h:82:9 */
  1572  
  1573  type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */
  1574  type X__pthread_spinlock_st = struct {
  1575  	Fpts_magic   uint32
  1576  	Fpts_spin    X__pthread_spin_t
  1577  	F__ccgo_pad1 [3]byte
  1578  	Fpts_flags   int32
  1579  } /* pthread_types.h:83:9 */
  1580  
  1581  type Pthread_spinlock_t = X__pthread_spinlock_st       /* pthread_types.h:83:38 */
  1582  type Pthread_rwlock_t = X__pthread_rwlock_st           /* pthread_types.h:84:36 */
  1583  type Pthread_rwlockattr_t = X__pthread_rwlockattr_st   /* pthread_types.h:85:40 */
  1584  type Pthread_barrier_t = X__pthread_barrier_st         /* pthread_types.h:86:37 */
  1585  type Pthread_barrierattr_t = X__pthread_barrierattr_st /* pthread_types.h:87:41 */
  1586  type Pthread_key_t = int32                             /* pthread_types.h:88:13 */
  1587  
  1588  type Group = struct {
  1589  	Fgr_name     uintptr
  1590  	Fgr_passwd   uintptr
  1591  	Fgr_gid      X__gid_t
  1592  	F__ccgo_pad1 [4]byte
  1593  	Fgr_mem      uintptr
  1594  } /* grp.h:50:1 */
  1595  
  1596  var _ int8 /* gen.c:2:13: */