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