github.com/afumu/libc@v0.0.6/time/time_netbsd_arm.go (about)

     1  // Code generated by 'ccgo time/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 time/time_netbsd_arm.go -pkgname time', DO NOT EDIT.
     2  
     3  package time
     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  	CLOCKS_PER_SEC                = 100                  // time.h:73:1:
    21  	CLOCK_MONOTONIC               = 3                    // time.h:297:1:
    22  	CLOCK_PROCESS_CPUTIME_ID      = 0x40000000           // time.h:299:1:
    23  	CLOCK_PROF                    = 2                    // time.h:296:1:
    24  	CLOCK_REALTIME                = 0                    // time.h:294:1:
    25  	CLOCK_THREAD_CPUTIME_ID       = 0x20000000           // time.h:298:1:
    26  	CLOCK_VIRTUAL                 = 1                    // time.h:295:1:
    27  	FD_SETSIZE                    = 256                  // fd_set.h:59:1:
    28  	INT16_MAX                     = 32767                // common_int_limits.h:53:1:
    29  	INT16_MIN                     = -32768               // common_int_limits.h:47:1:
    30  	INT32_MAX                     = 2147483647           // common_int_limits.h:54:1:
    31  	INT32_MIN                     = -2147483648          // common_int_limits.h:48:1:
    32  	INT64_MAX                     = 9223372036854775807  // common_int_limits.h:55:1:
    33  	INT64_MIN                     = -9223372036854775808 // common_int_limits.h:49:1:
    34  	INT8_MAX                      = 127                  // common_int_limits.h:52:1:
    35  	INT8_MIN                      = -128                 // common_int_limits.h:46:1:
    36  	INTMAX_MAX                    = 9223372036854775807  // common_int_limits.h:111:1:
    37  	INTMAX_MIN                    = -9223372036854775808 // common_int_limits.h:110:1:
    38  	INTPTR_MAX                    = 2147483647           // common_int_limits.h:105:1:
    39  	INTPTR_MIN                    = -2147483648          // common_int_limits.h:104:1:
    40  	INT_FAST16_MAX                = 2147483647           // common_int_limits.h:93:1:
    41  	INT_FAST16_MIN                = -2147483648          // common_int_limits.h:87:1:
    42  	INT_FAST32_MAX                = 2147483647           // common_int_limits.h:94:1:
    43  	INT_FAST32_MIN                = -2147483648          // common_int_limits.h:88:1:
    44  	INT_FAST64_MAX                = 9223372036854775807  // common_int_limits.h:95:1:
    45  	INT_FAST64_MIN                = -9223372036854775808 // common_int_limits.h:89:1:
    46  	INT_FAST8_MAX                 = 2147483647           // common_int_limits.h:92:1:
    47  	INT_FAST8_MIN                 = -2147483648          // common_int_limits.h:86:1:
    48  	INT_LEAST16_MAX               = 32767                // common_int_limits.h:73:1:
    49  	INT_LEAST16_MIN               = -32768               // common_int_limits.h:67:1:
    50  	INT_LEAST32_MAX               = 2147483647           // common_int_limits.h:74:1:
    51  	INT_LEAST32_MIN               = -2147483648          // common_int_limits.h:68:1:
    52  	INT_LEAST64_MAX               = 9223372036854775807  // common_int_limits.h:75:1:
    53  	INT_LEAST64_MIN               = -9223372036854775808 // common_int_limits.h:69:1:
    54  	INT_LEAST8_MAX                = 127                  // common_int_limits.h:72:1:
    55  	INT_LEAST8_MIN                = -128                 // common_int_limits.h:66:1:
    56  	ITIMER_MONOTONIC              = 3                    // time.h:278:1:
    57  	ITIMER_PROF                   = 2                    // time.h:277:1:
    58  	ITIMER_REAL                   = 0                    // time.h:275:1:
    59  	ITIMER_VIRTUAL                = 1                    // time.h:276:1:
    60  	LITTLE_ENDIAN                 = 1234                 // endian.h:100:1:
    61  	NBBY                          = 8                    // types.h:316:1:
    62  	NFDBITS                       = 32                   // fd_set.h:93:1:
    63  	NODEVMAJOR                    = -1                   // types.h:258:1:
    64  	PDP_ENDIAN                    = 3412                 // endian.h:102:1:
    65  	PTRDIFF_MAX                   = 2147483647           // common_int_limits.h:121:1:
    66  	PTRDIFF_MIN                   = -2147483648          // common_int_limits.h:120:1:
    67  	SIG_ATOMIC_MAX                = 2147483647           // common_int_limits.h:125:1:
    68  	SIG_ATOMIC_MIN                = -2147483648          // common_int_limits.h:124:1:
    69  	SIZE_MAX                      = 4294967295           // common_int_limits.h:128:1:
    70  	TIMER_ABSTIME                 = 0x1                  // time.h:304:1:
    71  	TIMER_RELTIME                 = 0x0                  // time.h:302:1:
    72  	TIME_UTC                      = 1                    // time.h:238:1:
    73  	UINT16_MAX                    = 65535                // common_int_limits.h:59:1:
    74  	UINT32_MAX                    = 4294967295           // common_int_limits.h:60:1:
    75  	UINT64_MAX                    = 18446744073709551615 // common_int_limits.h:61:1:
    76  	UINT8_MAX                     = 255                  // common_int_limits.h:58:1:
    77  	UINTMAX_MAX                   = 18446744073709551615 // common_int_limits.h:112:1:
    78  	UINTPTR_MAX                   = 4294967295           // common_int_limits.h:106:1:
    79  	UINT_FAST16_MAX               = 4294967295           // common_int_limits.h:99:1:
    80  	UINT_FAST32_MAX               = 4294967295           // common_int_limits.h:100:1:
    81  	UINT_FAST64_MAX               = 18446744073709551615 // common_int_limits.h:101:1:
    82  	UINT_FAST8_MAX                = 4294967295           // common_int_limits.h:98:1:
    83  	UINT_LEAST16_MAX              = 65535                // common_int_limits.h:79:1:
    84  	UINT_LEAST32_MAX              = 4294967295           // common_int_limits.h:80:1:
    85  	UINT_LEAST64_MAX              = 18446744073709551615 // common_int_limits.h:81:1:
    86  	UINT_LEAST8_MAX               = 255                  // common_int_limits.h:78:1:
    87  	WCHAR_MAX                     = 2147483647           // wchar_limits.h:50:1:
    88  	WCHAR_MIN                     = -2147483648          // wchar_limits.h:42:1:
    89  	WINT_MAX                      = 2147483647           // wchar_limits.h:68:1:
    90  	WINT_MIN                      = -2147483648          // wchar_limits.h:60:1:
    91  	X_ARM_ARCH_4T                 = 0                    // cdefs.h:44:1:
    92  	X_ARM_ARCH_5                  = 0                    // cdefs.h:40:1:
    93  	X_ARM_ARCH_5T                 = 0                    // cdefs.h:36:1:
    94  	X_ARM_ARCH_6                  = 0                    // cdefs.h:31:1:
    95  	X_ARM_ARCH_7                  = 0                    // cdefs.h:20:1:
    96  	X_ARM_ARCH_DWORD_OK           = 0                    // cdefs.h:51:1:
    97  	X_ARM_ARCH_T2                 = 0                    // cdefs.h:24:1:
    98  	X_ARM_BSWAP_H_                = 0                    // bswap.h:4:1:
    99  	X_ARM_BYTE_SWAP_H_            = 0                    // byte_swap.h:33:1:
   100  	X_ARM_CDEFS_H_                = 0                    // cdefs.h:4:1:
   101  	X_ARM_INT_CONST_H_            = 0                    // int_const.h:33:1:
   102  	X_ARM_INT_LIMITS_H_           = 0                    // int_limits.h:33:1:
   103  	X_ARM_INT_MWGWTYPES_H_        = 0                    // int_mwgwtypes.h:33:1:
   104  	X_ARM_INT_TYPES_H_            = 0                    // int_types.h:33:1:
   105  	X_ARM_TYPES_H_                = 0                    // types.h:35:1:
   106  	X_ARM_WCHAR_LIMITS_H_         = 0                    // wchar_limits.h:33:1:
   107  	X_BIG_ENDIAN                  = 4321                 // endian.h:44:1:
   108  	X_BSD_INT16_T_                = 0                    // types.h:65:1:
   109  	X_BSD_INT32_T_                = 0                    // types.h:75:1:
   110  	X_BSD_INT64_T_                = 0                    // types.h:85:1:
   111  	X_BSD_INT8_T_                 = 0                    // types.h:55:1:
   112  	X_BSD_INTPTR_T_               = 0                    // stdint.h:80:1:
   113  	X_BSD_UINT16_T_               = 0                    // types.h:70:1:
   114  	X_BSD_UINT32_T_               = 0                    // types.h:80:1:
   115  	X_BSD_UINT64_T_               = 0                    // types.h:90:1:
   116  	X_BSD_UINT8_T_                = 0                    // types.h:60:1:
   117  	X_BSD_UINTPTR_T_              = 0                    // stdint.h:85:1:
   118  	X_BYTE_ORDER                  = 1234                 // endian_machdep.h:7:1:
   119  	X_FILE_OFFSET_BITS            = 64                   // <builtin>:25:1:
   120  	X_LIB_PTHREAD_TYPES_H         = 0                    // pthread_types.h:33:1:
   121  	X_LITTLE_ENDIAN               = 1234                 // endian.h:43:1:
   122  	X_NETBSD_SOURCE               = 1                    // featuretest.h:70:1:
   123  	X_PDP_ENDIAN                  = 3412                 // endian.h:45:1:
   124  	X_PT_BARRIERATTR_DEAD         = 0xDEAD0808           // pthread_types.h:278:1:
   125  	X_PT_BARRIERATTR_MAGIC        = 0x88880808           // pthread_types.h:277:1:
   126  	X_PT_BARRIER_DEAD             = 0xDEAD0008           // pthread_types.h:270:1:
   127  	X_PT_BARRIER_MAGIC            = 0x88880008           // pthread_types.h:269:1:
   128  	X_PT_CONDATTR_DEAD            = 0xDEAD0006           // pthread_types.h:197:1:
   129  	X_PT_CONDATTR_MAGIC           = 0x66660006           // pthread_types.h:196:1:
   130  	X_PT_COND_DEAD                = 0xDEAD0005           // pthread_types.h:182:1:
   131  	X_PT_COND_MAGIC               = 0x55550005           // pthread_types.h:181:1:
   132  	X_PT_MUTEXATTR_DEAD           = 0xDEAD0004           // pthread_types.h:167:1:
   133  	X_PT_MUTEXATTR_MAGIC          = 0x44440004           // pthread_types.h:166:1:
   134  	X_PT_MUTEX_DEAD               = 0xDEAD0003           // pthread_types.h:139:1:
   135  	X_PT_MUTEX_MAGIC              = 0x33330003           // pthread_types.h:138:1:
   136  	X_PT_RWLOCKATTR_DEAD          = 0xDEAD0909           // pthread_types.h:253:1:
   137  	X_PT_RWLOCKATTR_MAGIC         = 0x99990909           // pthread_types.h:252:1:
   138  	X_PT_RWLOCK_DEAD              = 0xDEAD0009           // pthread_types.h:236:1:
   139  	X_PT_RWLOCK_MAGIC             = 0x99990009           // pthread_types.h:235:1:
   140  	X_PT_SPINLOCK_DEAD            = 0xDEAD0007           // pthread_types.h:213:1:
   141  	X_PT_SPINLOCK_MAGIC           = 0x77770007           // pthread_types.h:212:1:
   142  	X_PT_SPINLOCK_PSHARED         = 0x00000001           // pthread_types.h:214:1:
   143  	X_QUAD_HIGHWORD               = 1                    // endian.h:84:1:
   144  	X_QUAD_LOWWORD                = 0                    // endian.h:85:1:
   145  	X_SYS_ANSI_H_                 = 0                    // ansi.h:33:1:
   146  	X_SYS_BSWAP_H_                = 0                    // bswap.h:6:1:
   147  	X_SYS_CDEFS_ELF_H_            = 0                    // cdefs_elf.h:31:1:
   148  	X_SYS_CDEFS_H_                = 0                    // cdefs.h:37:1:
   149  	X_SYS_COMMON_ANSI_H_          = 0                    // common_ansi.h:33:1:
   150  	X_SYS_COMMON_INT_LIMITS_H_    = 0                    // common_int_limits.h:33:1:
   151  	X_SYS_COMMON_INT_MWGWTYPES_H_ = 0                    // common_int_mwgwtypes.h:33:1:
   152  	X_SYS_COMMON_INT_TYPES_H_     = 0                    // common_int_types.h:33:1:
   153  	X_SYS_ENDIAN_H_               = 0                    // endian.h:35:1:
   154  	X_SYS_FD_SET_H_               = 0                    // fd_set.h:35:1:
   155  	X_SYS_IDTYPE_H_               = 0                    // idtype.h:32:1:
   156  	X_SYS_NULL_H_                 = 0                    // null.h:9:1:
   157  	X_SYS_SELECT_H_               = 0                    // select.h:35:1:
   158  	X_SYS_SIGTYPES_H_             = 0                    // sigtypes.h:40:1:
   159  	X_SYS_STDINT_H_               = 0                    // stdint.h:33:1:
   160  	X_SYS_TIMESPEC_H_             = 0                    // timespec.h:38:1:
   161  	X_SYS_TIME_H_                 = 0                    // time.h:35:1:
   162  	X_SYS_TYPES_H_                = 0                    // types.h:40:1:
   163  	X_TIME_H_                     = 0                    // time.h:40:1:
   164  )
   165  
   166  //	$NetBSD: idtype.h,v 1.5 2016/04/09 17:02:51 riastradh Exp $
   167  
   168  // -
   169  // Copyright (c) 2016 The NetBSD Foundation, Inc.
   170  // All rights reserved.
   171  //
   172  // This code is derived from software contributed to The NetBSD Foundation
   173  // by Christos Zoulas.
   174  //
   175  // Redistribution and use in source and binary forms, with or without
   176  // modification, are permitted provided that the following conditions
   177  // are met:
   178  // 1. Redistributions of source code must retain the above copyright
   179  //    notice, this list of conditions and the following disclaimer.
   180  // 2. Redistributions in binary form must reproduce the above copyright
   181  //    notice, this list of conditions and the following disclaimer in the
   182  //    documentation and/or other materials provided with the distribution.
   183  //
   184  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   185  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   186  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   187  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   188  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   189  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   190  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   191  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   192  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   193  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   194  // POSSIBILITY OF SUCH DAMAGE.
   195  
   196  // Using the solaris constants, some of them are not applicable to us
   197  // Do not re-order the list, or add elements in the middle as this will
   198  // break the ABI of the system calls using this.  We set a high private
   199  // maximum so that new values can be added in the future without
   200  // changing the width of the type.
   201  const ( /* idtype.h:41:1: */
   202  	P_MYID        = -1 // Me/my process group
   203  	P_ALL         = 0  // All processes.
   204  	P_PID         = 1  // A process identifier.
   205  	P_LWPID       = 2  // An LWP identifier.
   206  	P_PPID        = 3  // A parent process identifier.
   207  	P_PGID        = 4  // A process group identifier.
   208  	P_SID         = 5  // A session identifier.
   209  	P_CID         = 6  // A scheduling class identifier.
   210  	P_UID         = 7  // A user identifier.
   211  	P_GID         = 8  // A group identifier.
   212  	P_TASKID      = 9  // A task identifier.
   213  	P_PROJID      = 10 // A project identifier.
   214  	P_POOLID      = 11 // A pool identifier.
   215  	P_ZONEID      = 12 // A zone identifier.
   216  	P_CTID        = 13 // A (process) contract identifier.
   217  	P_CPUID       = 14 // CPU identifier.
   218  	P_PSETID      = 15 // Processor set identifier.
   219  	X_P_MAXIDTYPE = 2147483647
   220  )
   221  
   222  type Ptrdiff_t = int32 /* <builtin>:3:26 */
   223  
   224  type Size_t = uint32 /* <builtin>:9:23 */
   225  
   226  type Wchar_t = int32 /* <builtin>:15:24 */
   227  
   228  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   229  type X__float128 = float64        /* <builtin>:47:21 */
   230  
   231  // return true if value 'a' fits in type 't'
   232  
   233  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   234  
   235  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   236  // Public domain.
   237  //
   238  // NOTE: Do not protect this header against multiple inclusion.  Doing
   239  // so can have subtle side-effects due to header file inclusion order
   240  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   241  // protect each CPP macro that we want to supply.
   242  
   243  // Feature-test macros are defined by several standards, and allow an
   244  // application to specify what symbols they want the system headers to
   245  // expose, and hence what standard they want them to conform to.
   246  // There are two classes of feature-test macros.  The first class
   247  // specify complete standards, and if one of these is defined, header
   248  // files will try to conform to the relevant standard.  They are:
   249  //
   250  // ANSI macros:
   251  // _ANSI_SOURCE			ANSI C89
   252  //
   253  // POSIX macros:
   254  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   255  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   256  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   257  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   258  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   259  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   260  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   261  //
   262  // X/Open macros:
   263  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   264  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   265  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   266  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   267  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   268  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   269  //
   270  // NetBSD macros:
   271  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   272  //
   273  // If more than one of these "major" feature-test macros is defined,
   274  // then the set of facilities provided (and namespace used) is the
   275  // union of that specified by the relevant standards, and in case of
   276  // conflict, the earlier standard in the above list has precedence (so
   277  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   278  // of rename() that's used is the POSIX one).  If none of the "major"
   279  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   280  //
   281  // There are also "minor" feature-test macros, which enable extra
   282  // functionality in addition to some base standard.  They should be
   283  // defined along with one of the "major" macros.  The "minor" macros
   284  // are:
   285  //
   286  // _REENTRANT
   287  // _ISOC99_SOURCE
   288  // _ISOC11_SOURCE
   289  // _LARGEFILE_SOURCE		Large File Support
   290  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   291  
   292  //	$NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $
   293  
   294  //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
   295  
   296  // -
   297  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   298  // All rights reserved.
   299  //
   300  // This code is derived from software contributed to The NetBSD Foundation
   301  // by Matt Thomas of 3am Software Foundry.
   302  //
   303  // Redistribution and use in source and binary forms, with or without
   304  // modification, are permitted provided that the following conditions
   305  // are met:
   306  // 1. Redistributions of source code must retain the above copyright
   307  //    notice, this list of conditions and the following disclaimer.
   308  // 2. Redistributions in binary form must reproduce the above copyright
   309  //    notice, this list of conditions and the following disclaimer in the
   310  //    documentation and/or other materials provided with the distribution.
   311  //
   312  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   313  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   314  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   315  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   316  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   317  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   318  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   319  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   320  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   321  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   322  // POSSIBILITY OF SUCH DAMAGE.
   323  
   324  //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
   325  
   326  // * Copyright (c) 1991, 1993
   327  //	The Regents of the University of California.  All rights reserved.
   328  //
   329  // This code is derived from software contributed to Berkeley by
   330  // Berkeley Software Design, Inc.
   331  //
   332  // Redistribution and use in source and binary forms, with or without
   333  // modification, are permitted provided that the following conditions
   334  // are met:
   335  // 1. Redistributions of source code must retain the above copyright
   336  //    notice, this list of conditions and the following disclaimer.
   337  // 2. Redistributions in binary form must reproduce the above copyright
   338  //    notice, this list of conditions and the following disclaimer in the
   339  //    documentation and/or other materials provided with the distribution.
   340  // 3. Neither the name of the University nor the names of its contributors
   341  //    may be used to endorse or promote products derived from this software
   342  //    without specific prior written permission.
   343  //
   344  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   345  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   346  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   347  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   348  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   349  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   350  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   351  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   352  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   353  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   354  // SUCH DAMAGE.
   355  //
   356  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   357  
   358  //	$NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
   359  
   360  // -
   361  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   362  // All rights reserved.
   363  //
   364  // This code is derived from software contributed to The NetBSD Foundation
   365  // by Matt Thomas of 3am Software Foundry.
   366  //
   367  // Redistribution and use in source and binary forms, with or without
   368  // modification, are permitted provided that the following conditions
   369  // are met:
   370  // 1. Redistributions of source code must retain the above copyright
   371  //    notice, this list of conditions and the following disclaimer.
   372  // 2. Redistributions in binary form must reproduce the above copyright
   373  //    notice, this list of conditions and the following disclaimer in the
   374  //    documentation and/or other materials provided with the distribution.
   375  //
   376  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   377  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   378  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   379  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   380  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   381  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   382  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   383  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   384  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   385  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   386  // POSSIBILITY OF SUCH DAMAGE.
   387  
   388  //	$NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
   389  
   390  // -
   391  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   392  // All rights reserved.
   393  //
   394  // This code is derived from software contributed to The NetBSD Foundation
   395  // by Joerg Sonnenberger.
   396  //
   397  // Redistribution and use in source and binary forms, with or without
   398  // modification, are permitted provided that the following conditions
   399  // are met:
   400  // 1. Redistributions of source code must retain the above copyright
   401  //    notice, this list of conditions and the following disclaimer.
   402  // 2. Redistributions in binary form must reproduce the above copyright
   403  //    notice, this list of conditions and the following disclaimer in the
   404  //    documentation and/or other materials provided with the distribution.
   405  //
   406  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   407  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   408  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   409  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   410  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   411  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   412  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   413  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   414  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   415  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   416  // POSSIBILITY OF SUCH DAMAGE.
   417  
   418  // 7.18.1 Integer types
   419  
   420  // 7.18.1.1 Exact-width integer types
   421  
   422  type X__int8_t = int8     /* common_int_types.h:45:27 */
   423  type X__uint8_t = uint8   /* common_int_types.h:46:27 */
   424  type X__int16_t = int16   /* common_int_types.h:47:27 */
   425  type X__uint16_t = uint16 /* common_int_types.h:48:27 */
   426  type X__int32_t = int32   /* common_int_types.h:49:27 */
   427  type X__uint32_t = uint32 /* common_int_types.h:50:27 */
   428  type X__int64_t = int64   /* common_int_types.h:51:27 */
   429  type X__uint64_t = uint64 /* common_int_types.h:52:27 */
   430  
   431  // 7.18.1.4 Integer types capable of holding object pointers
   432  
   433  type X__intptr_t = int32   /* common_int_types.h:58:27 */
   434  type X__uintptr_t = uint32 /* common_int_types.h:59:26 */
   435  
   436  // Types which are fundamental to the implementation and may appear in
   437  // more than one standard header are defined here.  Standard headers
   438  // then use:
   439  //	#ifdef	_BSD_SIZE_T_
   440  //	typedef	_BSD_SIZE_T_ size_t;
   441  //	#undef	_BSD_SIZE_T_
   442  //	#endif
   443  
   444  //	$NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $
   445  
   446  // Written by Klaus Klein <kleink@NetBSD.org>, December 22, 1999.
   447  // Public domain.
   448  
   449  type Clock_t = uint32 /* time.h:49:23 */
   450  
   451  type Time_t = X__int64_t /* time.h:54:22 */
   452  
   453  type Clockid_t = int32 /* time.h:64:25 */
   454  
   455  type Timer_t = int32 /* time.h:69:23 */
   456  
   457  type Tm = struct {
   458  	Ftm_sec    int32
   459  	Ftm_min    int32
   460  	Ftm_hour   int32
   461  	Ftm_mday   int32
   462  	Ftm_mon    int32
   463  	Ftm_year   int32
   464  	Ftm_wday   int32
   465  	Ftm_yday   int32
   466  	Ftm_isdst  int32
   467  	Ftm_gmtoff int32
   468  	Ftm_zone   uintptr
   469  } /* time.h:75:1 */
   470  
   471  // ISO/IEC 9899:201x 7.27.1/3 Components of time
   472  //	$NetBSD: timespec.h,v 1.1 2015/07/31 12:51:32 kamil Exp $
   473  
   474  // Copyright (c) 1982, 1986, 1993
   475  //	The Regents of the University of California.  All rights reserved.
   476  //
   477  // Redistribution and use in source and binary forms, with or without
   478  // modification, are permitted provided that the following conditions
   479  // are met:
   480  // 1. Redistributions of source code must retain the above copyright
   481  //    notice, this list of conditions and the following disclaimer.
   482  // 2. Redistributions in binary form must reproduce the above copyright
   483  //    notice, this list of conditions and the following disclaimer in the
   484  //    documentation and/or other materials provided with the distribution.
   485  // 3. Neither the name of the University nor the names of its contributors
   486  //    may be used to endorse or promote products derived from this software
   487  //    without specific prior written permission.
   488  //
   489  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   490  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   491  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   492  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   493  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   494  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   495  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   496  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   497  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   498  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   499  // SUCH DAMAGE.
   500  //
   501  //	@(#)time.h	8.5 (Berkeley) 5/4/95
   502  //
   503  // Extracted by Kamil Rytarowski from:
   504  // NetBSD: src/sys/sys/time.h,v 1.69 2015/05/19 23:35:11 riastradh Exp
   505  
   506  //	$NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
   507  
   508  // -
   509  // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
   510  // All rights reserved.
   511  //
   512  // This code is derived from software contributed to The NetBSD Foundation
   513  // by Jun-ichiro itojun Hagino and by Klaus Klein.
   514  //
   515  // Redistribution and use in source and binary forms, with or without
   516  // modification, are permitted provided that the following conditions
   517  // are met:
   518  // 1. Redistributions of source code must retain the above copyright
   519  //    notice, this list of conditions and the following disclaimer.
   520  // 2. Redistributions in binary form must reproduce the above copyright
   521  //    notice, this list of conditions and the following disclaimer in the
   522  //    documentation and/or other materials provided with the distribution.
   523  //
   524  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   525  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   526  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   527  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   528  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   529  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   530  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   531  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   532  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   533  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   534  // POSSIBILITY OF SUCH DAMAGE.
   535  
   536  //	$NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $
   537  
   538  //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
   539  
   540  // -
   541  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   542  // All rights reserved.
   543  //
   544  // This code is derived from software contributed to The NetBSD Foundation
   545  // by Matt Thomas of 3am Software Foundry.
   546  //
   547  // Redistribution and use in source and binary forms, with or without
   548  // modification, are permitted provided that the following conditions
   549  // are met:
   550  // 1. Redistributions of source code must retain the above copyright
   551  //    notice, this list of conditions and the following disclaimer.
   552  // 2. Redistributions in binary form must reproduce the above copyright
   553  //    notice, this list of conditions and the following disclaimer in the
   554  //    documentation and/or other materials provided with the distribution.
   555  //
   556  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   557  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   558  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   559  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   560  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   561  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   562  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   563  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   564  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   565  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   566  // POSSIBILITY OF SUCH DAMAGE.
   567  
   568  type X__caddr_t = uintptr        /* ansi.h:37:14 */ // core address
   569  type X__gid_t = X__uint32_t      /* ansi.h:38:20 */ // group id
   570  type X__in_addr_t = X__uint32_t  /* ansi.h:39:20 */ // IP(v4) address
   571  type X__in_port_t = X__uint16_t  /* ansi.h:40:20 */ // "Internet" port number
   572  type X__mode_t = X__uint32_t     /* ansi.h:41:20 */ // file permissions
   573  type X__off_t = X__int64_t       /* ansi.h:42:19 */ // file offset
   574  type X__pid_t = X__int32_t       /* ansi.h:43:19 */ // process id
   575  type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
   576  type X__socklen_t = uint32       /* ansi.h:45:22 */ // socket-related datum length
   577  type X__uid_t = X__uint32_t      /* ansi.h:46:20 */ // user id
   578  type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
   579  type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
   580  type X__wctrans_t = uintptr      /* ansi.h:51:32 */
   581  type X__wctype_t = uintptr       /* ansi.h:54:31 */
   582  
   583  // mbstate_t is an opaque object to keep conversion state, during multibyte
   584  // stream conversions.  The content must not be referenced by user programs.
   585  type X__mbstate_t = struct {
   586  	F__mbstateL  X__int64_t
   587  	F__ccgo_pad1 [120]byte
   588  } /* ansi.h:63:3 */
   589  
   590  type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
   591  
   592  type Timespec = struct {
   593  	Ftv_sec      Time_t
   594  	Ftv_nsec     int32
   595  	F__ccgo_pad1 [4]byte
   596  } /* timespec.h:47:1 */
   597  
   598  //	$NetBSD: time.h,v 1.79 2017/01/17 15:28:34 maya Exp $
   599  
   600  // Copyright (c) 1982, 1986, 1993
   601  //	The Regents of the University of California.  All rights reserved.
   602  //
   603  // Redistribution and use in source and binary forms, with or without
   604  // modification, are permitted provided that the following conditions
   605  // are met:
   606  // 1. Redistributions of source code must retain the above copyright
   607  //    notice, this list of conditions and the following disclaimer.
   608  // 2. Redistributions in binary form must reproduce the above copyright
   609  //    notice, this list of conditions and the following disclaimer in the
   610  //    documentation and/or other materials provided with the distribution.
   611  // 3. Neither the name of the University nor the names of its contributors
   612  //    may be used to endorse or promote products derived from this software
   613  //    without specific prior written permission.
   614  //
   615  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   616  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   617  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   618  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   619  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   620  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   621  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   622  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   623  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   624  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   625  // SUCH DAMAGE.
   626  //
   627  //	@(#)time.h	8.5 (Berkeley) 5/4/95
   628  
   629  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   630  
   631  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   632  // Public domain.
   633  //
   634  // NOTE: Do not protect this header against multiple inclusion.  Doing
   635  // so can have subtle side-effects due to header file inclusion order
   636  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   637  // protect each CPP macro that we want to supply.
   638  
   639  // Feature-test macros are defined by several standards, and allow an
   640  // application to specify what symbols they want the system headers to
   641  // expose, and hence what standard they want them to conform to.
   642  // There are two classes of feature-test macros.  The first class
   643  // specify complete standards, and if one of these is defined, header
   644  // files will try to conform to the relevant standard.  They are:
   645  //
   646  // ANSI macros:
   647  // _ANSI_SOURCE			ANSI C89
   648  //
   649  // POSIX macros:
   650  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   651  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   652  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   653  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   654  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   655  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   656  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   657  //
   658  // X/Open macros:
   659  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   660  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   661  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   662  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   663  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   664  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   665  //
   666  // NetBSD macros:
   667  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   668  //
   669  // If more than one of these "major" feature-test macros is defined,
   670  // then the set of facilities provided (and namespace used) is the
   671  // union of that specified by the relevant standards, and in case of
   672  // conflict, the earlier standard in the above list has precedence (so
   673  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   674  // of rename() that's used is the POSIX one).  If none of the "major"
   675  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   676  //
   677  // There are also "minor" feature-test macros, which enable extra
   678  // functionality in addition to some base standard.  They should be
   679  // defined along with one of the "major" macros.  The "minor" macros
   680  // are:
   681  //
   682  // _REENTRANT
   683  // _ISOC99_SOURCE
   684  // _ISOC11_SOURCE
   685  // _LARGEFILE_SOURCE		Large File Support
   686  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   687  
   688  //	$NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
   689  
   690  // -
   691  // Copyright (c) 1982, 1986, 1991, 1993, 1994
   692  //	The Regents of the University of California.  All rights reserved.
   693  // (c) UNIX System Laboratories, Inc.
   694  // All or some portions of this file are derived from material licensed
   695  // to the University of California by American Telephone and Telegraph
   696  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   697  // the permission of UNIX System Laboratories, Inc.
   698  //
   699  // Redistribution and use in source and binary forms, with or without
   700  // modification, are permitted provided that the following conditions
   701  // are met:
   702  // 1. Redistributions of source code must retain the above copyright
   703  //    notice, this list of conditions and the following disclaimer.
   704  // 2. Redistributions in binary form must reproduce the above copyright
   705  //    notice, this list of conditions and the following disclaimer in the
   706  //    documentation and/or other materials provided with the distribution.
   707  // 3. Neither the name of the University nor the names of its contributors
   708  //    may be used to endorse or promote products derived from this software
   709  //    without specific prior written permission.
   710  //
   711  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   712  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   713  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   714  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   715  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   716  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   717  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   718  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   719  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   720  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   721  // SUCH DAMAGE.
   722  //
   723  //	@(#)types.h	8.4 (Berkeley) 1/21/94
   724  
   725  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   726  
   727  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   728  // Public domain.
   729  //
   730  // NOTE: Do not protect this header against multiple inclusion.  Doing
   731  // so can have subtle side-effects due to header file inclusion order
   732  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   733  // protect each CPP macro that we want to supply.
   734  
   735  // Feature-test macros are defined by several standards, and allow an
   736  // application to specify what symbols they want the system headers to
   737  // expose, and hence what standard they want them to conform to.
   738  // There are two classes of feature-test macros.  The first class
   739  // specify complete standards, and if one of these is defined, header
   740  // files will try to conform to the relevant standard.  They are:
   741  //
   742  // ANSI macros:
   743  // _ANSI_SOURCE			ANSI C89
   744  //
   745  // POSIX macros:
   746  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   747  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   748  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   749  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   750  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   751  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   752  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   753  //
   754  // X/Open macros:
   755  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   756  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   757  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   758  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   759  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   760  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   761  //
   762  // NetBSD macros:
   763  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   764  //
   765  // If more than one of these "major" feature-test macros is defined,
   766  // then the set of facilities provided (and namespace used) is the
   767  // union of that specified by the relevant standards, and in case of
   768  // conflict, the earlier standard in the above list has precedence (so
   769  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   770  // of rename() that's used is the POSIX one).  If none of the "major"
   771  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   772  //
   773  // There are also "minor" feature-test macros, which enable extra
   774  // functionality in addition to some base standard.  They should be
   775  // defined along with one of the "major" macros.  The "minor" macros
   776  // are:
   777  //
   778  // _REENTRANT
   779  // _ISOC99_SOURCE
   780  // _ISOC11_SOURCE
   781  // _LARGEFILE_SOURCE		Large File Support
   782  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   783  
   784  // Machine type dependent parameters.
   785  //	$NetBSD: types.h,v 1.38 2019/04/06 03:06:25 thorpej Exp $
   786  
   787  // Copyright (c) 1990 The Regents of the University of California.
   788  // All rights reserved.
   789  //
   790  // Redistribution and use in source and binary forms, with or without
   791  // modification, are permitted provided that the following conditions
   792  // are met:
   793  // 1. Redistributions of source code must retain the above copyright
   794  //    notice, this list of conditions and the following disclaimer.
   795  // 2. Redistributions in binary form must reproduce the above copyright
   796  //    notice, this list of conditions and the following disclaimer in the
   797  //    documentation and/or other materials provided with the distribution.
   798  // 3. Neither the name of the University nor the names of its contributors
   799  //    may be used to endorse or promote products derived from this software
   800  //    without specific prior written permission.
   801  //
   802  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   803  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   804  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   805  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   806  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   807  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   808  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   809  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   810  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   811  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   812  // SUCH DAMAGE.
   813  //
   814  //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
   815  
   816  //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
   817  
   818  // * Copyright (c) 1991, 1993
   819  //	The Regents of the University of California.  All rights reserved.
   820  //
   821  // This code is derived from software contributed to Berkeley by
   822  // Berkeley Software Design, Inc.
   823  //
   824  // Redistribution and use in source and binary forms, with or without
   825  // modification, are permitted provided that the following conditions
   826  // are met:
   827  // 1. Redistributions of source code must retain the above copyright
   828  //    notice, this list of conditions and the following disclaimer.
   829  // 2. Redistributions in binary form must reproduce the above copyright
   830  //    notice, this list of conditions and the following disclaimer in the
   831  //    documentation and/or other materials provided with the distribution.
   832  // 3. Neither the name of the University nor the names of its contributors
   833  //    may be used to endorse or promote products derived from this software
   834  //    without specific prior written permission.
   835  //
   836  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   837  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   838  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   839  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   840  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   841  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   842  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   843  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   844  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   845  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   846  // SUCH DAMAGE.
   847  //
   848  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   849  
   850  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   851  
   852  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   853  // Public domain.
   854  //
   855  // NOTE: Do not protect this header against multiple inclusion.  Doing
   856  // so can have subtle side-effects due to header file inclusion order
   857  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   858  // protect each CPP macro that we want to supply.
   859  
   860  // Feature-test macros are defined by several standards, and allow an
   861  // application to specify what symbols they want the system headers to
   862  // expose, and hence what standard they want them to conform to.
   863  // There are two classes of feature-test macros.  The first class
   864  // specify complete standards, and if one of these is defined, header
   865  // files will try to conform to the relevant standard.  They are:
   866  //
   867  // ANSI macros:
   868  // _ANSI_SOURCE			ANSI C89
   869  //
   870  // POSIX macros:
   871  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   872  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   873  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   874  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   875  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   876  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   877  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   878  //
   879  // X/Open macros:
   880  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   881  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   882  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   883  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   884  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   885  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   886  //
   887  // NetBSD macros:
   888  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   889  //
   890  // If more than one of these "major" feature-test macros is defined,
   891  // then the set of facilities provided (and namespace used) is the
   892  // union of that specified by the relevant standards, and in case of
   893  // conflict, the earlier standard in the above list has precedence (so
   894  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   895  // of rename() that's used is the POSIX one).  If none of the "major"
   896  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   897  //
   898  // There are also "minor" feature-test macros, which enable extra
   899  // functionality in addition to some base standard.  They should be
   900  // defined along with one of the "major" macros.  The "minor" macros
   901  // are:
   902  //
   903  // _REENTRANT
   904  // _ISOC99_SOURCE
   905  // _ISOC11_SOURCE
   906  // _LARGEFILE_SOURCE		Large File Support
   907  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   908  
   909  //	$NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
   910  
   911  // -
   912  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   913  // All rights reserved.
   914  //
   915  // This code is derived from software contributed to The NetBSD Foundation
   916  // by Matt Thomas of 3am Software Foundry.
   917  //
   918  // Redistribution and use in source and binary forms, with or without
   919  // modification, are permitted provided that the following conditions
   920  // are met:
   921  // 1. Redistributions of source code must retain the above copyright
   922  //    notice, this list of conditions and the following disclaimer.
   923  // 2. Redistributions in binary form must reproduce the above copyright
   924  //    notice, this list of conditions and the following disclaimer in the
   925  //    documentation and/or other materials provided with the distribution.
   926  //
   927  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   928  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   929  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   930  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   931  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   932  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   933  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   934  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   935  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   936  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   937  // POSSIBILITY OF SUCH DAMAGE.
   938  
   939  // This should have always been an 8-bit type, but since it's been exposed
   940  // to user-space, we don't want ABI breakage there.
   941  type X__cpu_simple_lock_nv_t = int32 /* types.h:75:14 */
   942  type X__register_t = int32           /* types.h:77:14 */
   943  
   944  //	$NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $
   945  
   946  //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
   947  
   948  // -
   949  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   950  // All rights reserved.
   951  //
   952  // This code is derived from software contributed to The NetBSD Foundation
   953  // by Matt Thomas of 3am Software Foundry.
   954  //
   955  // Redistribution and use in source and binary forms, with or without
   956  // modification, are permitted provided that the following conditions
   957  // are met:
   958  // 1. Redistributions of source code must retain the above copyright
   959  //    notice, this list of conditions and the following disclaimer.
   960  // 2. Redistributions in binary form must reproduce the above copyright
   961  //    notice, this list of conditions and the following disclaimer in the
   962  //    documentation and/or other materials provided with the distribution.
   963  //
   964  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   965  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   966  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   967  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   968  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   969  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   970  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   971  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   972  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   973  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   974  // POSSIBILITY OF SUCH DAMAGE.
   975  
   976  //	$NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
   977  
   978  // -
   979  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   980  // All rights reserved.
   981  //
   982  // This code is derived from software contributed to The NetBSD Foundation
   983  // by Matt Thomas of 3am Software Foundry.
   984  //
   985  // Redistribution and use in source and binary forms, with or without
   986  // modification, are permitted provided that the following conditions
   987  // are met:
   988  // 1. Redistributions of source code must retain the above copyright
   989  //    notice, this list of conditions and the following disclaimer.
   990  // 2. Redistributions in binary form must reproduce the above copyright
   991  //    notice, this list of conditions and the following disclaimer in the
   992  //    documentation and/or other materials provided with the distribution.
   993  //
   994  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   995  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   996  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   997  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   998  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   999  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1000  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1001  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1002  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1003  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1004  // POSSIBILITY OF SUCH DAMAGE.
  1005  
  1006  //	$NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  1007  
  1008  // -
  1009  // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  1010  // All rights reserved.
  1011  //
  1012  // This code is derived from software contributed to The NetBSD Foundation
  1013  // by Jun-ichiro itojun Hagino and by Klaus Klein.
  1014  //
  1015  // Redistribution and use in source and binary forms, with or without
  1016  // modification, are permitted provided that the following conditions
  1017  // are met:
  1018  // 1. Redistributions of source code must retain the above copyright
  1019  //    notice, this list of conditions and the following disclaimer.
  1020  // 2. Redistributions in binary form must reproduce the above copyright
  1021  //    notice, this list of conditions and the following disclaimer in the
  1022  //    documentation and/or other materials provided with the distribution.
  1023  //
  1024  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1025  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1026  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1027  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1028  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1029  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1030  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1031  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1032  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1033  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1034  // POSSIBILITY OF SUCH DAMAGE.
  1035  
  1036  type Int8_t = X__int8_t /* types.h:54:18 */
  1037  
  1038  type Uint8_t = X__uint8_t /* types.h:59:19 */
  1039  
  1040  type Int16_t = X__int16_t /* types.h:64:19 */
  1041  
  1042  type Uint16_t = X__uint16_t /* types.h:69:20 */
  1043  
  1044  type Int32_t = X__int32_t /* types.h:74:19 */
  1045  
  1046  type Uint32_t = X__uint32_t /* types.h:79:20 */
  1047  
  1048  type Int64_t = X__int64_t /* types.h:84:19 */
  1049  
  1050  type Uint64_t = X__uint64_t /* types.h:89:20 */
  1051  
  1052  type U_int8_t = Uint8_t   /* types.h:93:18 */
  1053  type U_int16_t = Uint16_t /* types.h:94:18 */
  1054  type U_int32_t = Uint32_t /* types.h:95:18 */
  1055  type U_int64_t = Uint64_t /* types.h:96:18 */
  1056  
  1057  //	$NetBSD: endian.h,v 1.3 2001/06/23 12:20:27 bjh21 Exp $
  1058  
  1059  //	$NetBSD: endian.h,v 1.30 2016/02/27 21:37:35 christos Exp $
  1060  
  1061  // Copyright (c) 1987, 1991, 1993
  1062  //	The Regents of the University of California.  All rights reserved.
  1063  //
  1064  // Redistribution and use in source and binary forms, with or without
  1065  // modification, are permitted provided that the following conditions
  1066  // are met:
  1067  // 1. Redistributions of source code must retain the above copyright
  1068  //    notice, this list of conditions and the following disclaimer.
  1069  // 2. Redistributions in binary form must reproduce the above copyright
  1070  //    notice, this list of conditions and the following disclaimer in the
  1071  //    documentation and/or other materials provided with the distribution.
  1072  // 3. Neither the name of the University nor the names of its contributors
  1073  //    may be used to endorse or promote products derived from this software
  1074  //    without specific prior written permission.
  1075  //
  1076  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1077  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1078  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1079  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1080  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1081  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1082  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1083  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1084  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1085  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1086  // SUCH DAMAGE.
  1087  //
  1088  //	@(#)endian.h	8.1 (Berkeley) 6/11/93
  1089  
  1090  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1091  
  1092  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1093  // Public domain.
  1094  //
  1095  // NOTE: Do not protect this header against multiple inclusion.  Doing
  1096  // so can have subtle side-effects due to header file inclusion order
  1097  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
  1098  // protect each CPP macro that we want to supply.
  1099  
  1100  // Feature-test macros are defined by several standards, and allow an
  1101  // application to specify what symbols they want the system headers to
  1102  // expose, and hence what standard they want them to conform to.
  1103  // There are two classes of feature-test macros.  The first class
  1104  // specify complete standards, and if one of these is defined, header
  1105  // files will try to conform to the relevant standard.  They are:
  1106  //
  1107  // ANSI macros:
  1108  // _ANSI_SOURCE			ANSI C89
  1109  //
  1110  // POSIX macros:
  1111  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
  1112  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
  1113  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
  1114  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
  1115  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
  1116  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
  1117  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
  1118  //
  1119  // X/Open macros:
  1120  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
  1121  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
  1122  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
  1123  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
  1124  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
  1125  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
  1126  //
  1127  // NetBSD macros:
  1128  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
  1129  //
  1130  // If more than one of these "major" feature-test macros is defined,
  1131  // then the set of facilities provided (and namespace used) is the
  1132  // union of that specified by the relevant standards, and in case of
  1133  // conflict, the earlier standard in the above list has precedence (so
  1134  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1135  // of rename() that's used is the POSIX one).  If none of the "major"
  1136  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1137  //
  1138  // There are also "minor" feature-test macros, which enable extra
  1139  // functionality in addition to some base standard.  They should be
  1140  // defined along with one of the "major" macros.  The "minor" macros
  1141  // are:
  1142  //
  1143  // _REENTRANT
  1144  // _ISOC99_SOURCE
  1145  // _ISOC11_SOURCE
  1146  // _LARGEFILE_SOURCE		Large File Support
  1147  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1148  
  1149  // Definitions for byte order, according to byte significance from low
  1150  // address to high.
  1151  
  1152  // C-family endian-ness definitions
  1153  
  1154  //	$NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  1155  
  1156  // -
  1157  // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  1158  // All rights reserved.
  1159  //
  1160  // This code is derived from software contributed to The NetBSD Foundation
  1161  // by Jun-ichiro itojun Hagino and by Klaus Klein.
  1162  //
  1163  // Redistribution and use in source and binary forms, with or without
  1164  // modification, are permitted provided that the following conditions
  1165  // are met:
  1166  // 1. Redistributions of source code must retain the above copyright
  1167  //    notice, this list of conditions and the following disclaimer.
  1168  // 2. Redistributions in binary form must reproduce the above copyright
  1169  //    notice, this list of conditions and the following disclaimer in the
  1170  //    documentation and/or other materials provided with the distribution.
  1171  //
  1172  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1173  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1174  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1175  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1176  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1177  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1178  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1179  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1180  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1181  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1182  // POSSIBILITY OF SUCH DAMAGE.
  1183  
  1184  //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1185  
  1186  // * Copyright (c) 1991, 1993
  1187  //	The Regents of the University of California.  All rights reserved.
  1188  //
  1189  // This code is derived from software contributed to Berkeley by
  1190  // Berkeley Software Design, Inc.
  1191  //
  1192  // Redistribution and use in source and binary forms, with or without
  1193  // modification, are permitted provided that the following conditions
  1194  // are met:
  1195  // 1. Redistributions of source code must retain the above copyright
  1196  //    notice, this list of conditions and the following disclaimer.
  1197  // 2. Redistributions in binary form must reproduce the above copyright
  1198  //    notice, this list of conditions and the following disclaimer in the
  1199  //    documentation and/or other materials provided with the distribution.
  1200  // 3. Neither the name of the University nor the names of its contributors
  1201  //    may be used to endorse or promote products derived from this software
  1202  //    without specific prior written permission.
  1203  //
  1204  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1205  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1206  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1207  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1208  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1209  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1210  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1211  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1212  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1213  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1214  // SUCH DAMAGE.
  1215  //
  1216  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1217  
  1218  //	$NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
  1219  
  1220  // -
  1221  // Copyright (c) 1982, 1986, 1991, 1993, 1994
  1222  //	The Regents of the University of California.  All rights reserved.
  1223  // (c) UNIX System Laboratories, Inc.
  1224  // All or some portions of this file are derived from material licensed
  1225  // to the University of California by American Telephone and Telegraph
  1226  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1227  // the permission of UNIX System Laboratories, Inc.
  1228  //
  1229  // Redistribution and use in source and binary forms, with or without
  1230  // modification, are permitted provided that the following conditions
  1231  // are met:
  1232  // 1. Redistributions of source code must retain the above copyright
  1233  //    notice, this list of conditions and the following disclaimer.
  1234  // 2. Redistributions in binary form must reproduce the above copyright
  1235  //    notice, this list of conditions and the following disclaimer in the
  1236  //    documentation and/or other materials provided with the distribution.
  1237  // 3. Neither the name of the University nor the names of its contributors
  1238  //    may be used to endorse or promote products derived from this software
  1239  //    without specific prior written permission.
  1240  //
  1241  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1242  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1243  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1244  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1245  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1246  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1247  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1248  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1249  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1250  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1251  // SUCH DAMAGE.
  1252  //
  1253  //	@(#)types.h	8.4 (Berkeley) 1/21/94
  1254  
  1255  type In_addr_t = X__in_addr_t /* endian.h:58:21 */
  1256  
  1257  type In_port_t = X__in_port_t /* endian.h:63:21 */
  1258  
  1259  //      $NetBSD: bswap.h,v 1.19 2015/03/12 15:28:16 christos Exp $
  1260  
  1261  // Written by Manuel Bouyer. Public domain
  1262  
  1263  //	$NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $
  1264  
  1265  // -
  1266  // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
  1267  // All rights reserved.
  1268  //
  1269  // This code is derived from software contributed to The NetBSD Foundation
  1270  // by Klaus Klein.
  1271  //
  1272  // Redistribution and use in source and binary forms, with or without
  1273  // modification, are permitted provided that the following conditions
  1274  // are met:
  1275  // 1. Redistributions of source code must retain the above copyright
  1276  //    notice, this list of conditions and the following disclaimer.
  1277  // 2. Redistributions in binary form must reproduce the above copyright
  1278  //    notice, this list of conditions and the following disclaimer in the
  1279  //    documentation and/or other materials provided with the distribution.
  1280  //
  1281  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1282  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1283  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1284  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1285  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1286  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1287  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1288  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1289  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1290  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1291  // POSSIBILITY OF SUCH DAMAGE.
  1292  
  1293  //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1294  
  1295  // * Copyright (c) 1991, 1993
  1296  //	The Regents of the University of California.  All rights reserved.
  1297  //
  1298  // This code is derived from software contributed to Berkeley by
  1299  // Berkeley Software Design, Inc.
  1300  //
  1301  // Redistribution and use in source and binary forms, with or without
  1302  // modification, are permitted provided that the following conditions
  1303  // are met:
  1304  // 1. Redistributions of source code must retain the above copyright
  1305  //    notice, this list of conditions and the following disclaimer.
  1306  // 2. Redistributions in binary form must reproduce the above copyright
  1307  //    notice, this list of conditions and the following disclaimer in the
  1308  //    documentation and/or other materials provided with the distribution.
  1309  // 3. Neither the name of the University nor the names of its contributors
  1310  //    may be used to endorse or promote products derived from this software
  1311  //    without specific prior written permission.
  1312  //
  1313  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1314  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1315  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1316  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1317  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1318  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1319  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1320  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1321  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1322  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1323  // SUCH DAMAGE.
  1324  //
  1325  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1326  
  1327  //	$NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  1328  
  1329  // -
  1330  // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1331  // All rights reserved.
  1332  //
  1333  // This code is derived from software contributed to The NetBSD Foundation
  1334  // by Matt Thomas of 3am Software Foundry.
  1335  //
  1336  // Redistribution and use in source and binary forms, with or without
  1337  // modification, are permitted provided that the following conditions
  1338  // are met:
  1339  // 1. Redistributions of source code must retain the above copyright
  1340  //    notice, this list of conditions and the following disclaimer.
  1341  // 2. Redistributions in binary form must reproduce the above copyright
  1342  //    notice, this list of conditions and the following disclaimer in the
  1343  //    documentation and/or other materials provided with the distribution.
  1344  //
  1345  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1346  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1347  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1348  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1349  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1350  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1351  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1352  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1353  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1354  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1355  // POSSIBILITY OF SUCH DAMAGE.
  1356  
  1357  type Intptr_t = X__intptr_t /* stdint.h:79:20 */
  1358  
  1359  type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */
  1360  
  1361  // $NetBSD: int_mwgwtypes.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  1362  
  1363  // -
  1364  // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1365  // All rights reserved.
  1366  //
  1367  // This code is derived from software contributed to The NetBSD Foundation
  1368  // by Matt Thomas of 3am Software Foundry.
  1369  //
  1370  // Redistribution and use in source and binary forms, with or without
  1371  // modification, are permitted provided that the following conditions
  1372  // are met:
  1373  // 1. Redistributions of source code must retain the above copyright
  1374  //    notice, this list of conditions and the following disclaimer.
  1375  // 2. Redistributions in binary form must reproduce the above copyright
  1376  //    notice, this list of conditions and the following disclaimer in the
  1377  //    documentation and/or other materials provided with the distribution.
  1378  //
  1379  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1380  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1381  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1382  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1383  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1384  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1385  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1386  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1387  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1388  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1389  // POSSIBILITY OF SUCH DAMAGE.
  1390  
  1391  //	$NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  1392  
  1393  // -
  1394  // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1395  // All rights reserved.
  1396  //
  1397  // This code is derived from software contributed to The NetBSD Foundation
  1398  // by Joerg Sonnenberger.
  1399  //
  1400  // Redistribution and use in source and binary forms, with or without
  1401  // modification, are permitted provided that the following conditions
  1402  // are met:
  1403  // 1. Redistributions of source code must retain the above copyright
  1404  //    notice, this list of conditions and the following disclaimer.
  1405  // 2. Redistributions in binary form must reproduce the above copyright
  1406  //    notice, this list of conditions and the following disclaimer in the
  1407  //    documentation and/or other materials provided with the distribution.
  1408  //
  1409  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1410  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1411  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1412  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1413  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1414  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1415  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1416  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1417  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1418  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1419  // POSSIBILITY OF SUCH DAMAGE.
  1420  
  1421  // 7.18.1 Integer types
  1422  
  1423  // 7.18.1.2 Minimum-width integer types
  1424  
  1425  type Int_least8_t = int8     /* common_int_mwgwtypes.h:45:32 */
  1426  type Uint_least8_t = uint8   /* common_int_mwgwtypes.h:46:32 */
  1427  type Int_least16_t = int16   /* common_int_mwgwtypes.h:47:32 */
  1428  type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */
  1429  type Int_least32_t = int32   /* common_int_mwgwtypes.h:49:32 */
  1430  type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */
  1431  type Int_least64_t = int64   /* common_int_mwgwtypes.h:51:32 */
  1432  type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */
  1433  
  1434  // 7.18.1.3 Fastest minimum-width integer types
  1435  type Int_fast8_t = int32    /* common_int_mwgwtypes.h:55:32 */
  1436  type Uint_fast8_t = uint32  /* common_int_mwgwtypes.h:56:32 */
  1437  type Int_fast16_t = int32   /* common_int_mwgwtypes.h:57:32 */
  1438  type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */
  1439  type Int_fast32_t = int32   /* common_int_mwgwtypes.h:59:32 */
  1440  type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */
  1441  type Int_fast64_t = int64   /* common_int_mwgwtypes.h:61:32 */
  1442  type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
  1443  
  1444  // 7.18.1.5 Greatest-width integer types
  1445  
  1446  type Intmax_t = int64   /* common_int_mwgwtypes.h:66:33 */
  1447  type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
  1448  
  1449  type U_char = uint8   /* types.h:101:23 */
  1450  type U_short = uint16 /* types.h:102:24 */
  1451  type U_int = uint32   /* types.h:103:22 */
  1452  type U_long = uint32  /* types.h:104:23 */
  1453  
  1454  type Unchar = uint8  /* types.h:106:23 */ // Sys V compatibility
  1455  type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
  1456  type Uint = uint32   /* types.h:108:22 */ // Sys V compatibility
  1457  type Ulong = uint32  /* types.h:109:23 */ // Sys V compatibility
  1458  
  1459  type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
  1460  type Quad_t = Int64_t    /* types.h:113:18 */
  1461  type Qaddr_t = uintptr   /* types.h:114:16 */
  1462  
  1463  // The types longlong_t and u_longlong_t exist for use with the
  1464  // Sun-derived XDR routines involving these types, and their usage
  1465  // in other contexts is discouraged.  Further note that these types
  1466  // may not be equivalent to "long long" and "unsigned long long",
  1467  // they are only guaranteed to be signed and unsigned 64-bit types
  1468  // respectively.  Portable programs that need 64-bit types should use
  1469  // the C99 types int64_t and uint64_t instead.
  1470  
  1471  type Longlong_t = Int64_t    /* types.h:126:18 */ // for XDR
  1472  type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
  1473  
  1474  type Blkcnt_t = Int64_t  /* types.h:129:18 */ // fs block count
  1475  type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
  1476  
  1477  type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
  1478  
  1479  type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
  1480  
  1481  // We don't and shouldn't use caddr_t in the kernel anymore
  1482  type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
  1483  
  1484  type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
  1485  
  1486  type Dev_t = Uint64_t   /* types.h:157:18 */ // device number
  1487  type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
  1488  
  1489  type Gid_t = X__gid_t /* types.h:161:18 */ // group id
  1490  
  1491  type Id_t = Uint32_t  /* types.h:165:18 */ // group id, process id or user id
  1492  type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
  1493  type Key_t = int32    /* types.h:167:15 */ // IPC key (for Sys V IPC)
  1494  
  1495  type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
  1496  
  1497  type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
  1498  
  1499  type Off_t = X__off_t /* types.h:177:18 */ // file offset
  1500  
  1501  type Pid_t = X__pid_t  /* types.h:182:18 */ // process id
  1502  type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
  1503  type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
  1504  type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
  1505  type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
  1506  
  1507  type Uid_t = X__uid_t /* types.h:191:18 */ // user id
  1508  
  1509  type Mqd_t = int32 /* types.h:195:14 */
  1510  
  1511  type Cpuid_t = uint32 /* types.h:197:23 */
  1512  
  1513  type Psetid_t = int32 /* types.h:199:14 */
  1514  
  1515  type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
  1516  
  1517  // Major, minor numbers, dev_t's.
  1518  type X__devmajor_t = Int32_t /* types.h:255:17 */
  1519  type X__devminor_t = Int32_t /* types.h:255:31 */
  1520  
  1521  type Ssize_t = int32 /* types.h:284:24 */
  1522  
  1523  type Suseconds_t = int32 /* types.h:304:27 */
  1524  
  1525  type Useconds_t = uint32 /* types.h:309:26 */
  1526  
  1527  //	$NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
  1528  
  1529  // -
  1530  // Copyright (c) 1992, 1993
  1531  //	The Regents of the University of California.  All rights reserved.
  1532  //
  1533  // Redistribution and use in source and binary forms, with or without
  1534  // modification, are permitted provided that the following conditions
  1535  // are met:
  1536  // 1. Redistributions of source code must retain the above copyright
  1537  //    notice, this list of conditions and the following disclaimer.
  1538  // 2. Redistributions in binary form must reproduce the above copyright
  1539  //    notice, this list of conditions and the following disclaimer in the
  1540  //    documentation and/or other materials provided with the distribution.
  1541  // 3. Neither the name of the University nor the names of its contributors
  1542  //    may be used to endorse or promote products derived from this software
  1543  //    without specific prior written permission.
  1544  //
  1545  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1546  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1547  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1548  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1549  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1550  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1551  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1552  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1553  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1554  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1555  // SUCH DAMAGE.
  1556  //
  1557  //	from: @(#)types.h	8.4 (Berkeley) 1/21/94
  1558  
  1559  //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1560  
  1561  // * Copyright (c) 1991, 1993
  1562  //	The Regents of the University of California.  All rights reserved.
  1563  //
  1564  // This code is derived from software contributed to Berkeley by
  1565  // Berkeley Software Design, Inc.
  1566  //
  1567  // Redistribution and use in source and binary forms, with or without
  1568  // modification, are permitted provided that the following conditions
  1569  // are met:
  1570  // 1. Redistributions of source code must retain the above copyright
  1571  //    notice, this list of conditions and the following disclaimer.
  1572  // 2. Redistributions in binary form must reproduce the above copyright
  1573  //    notice, this list of conditions and the following disclaimer in the
  1574  //    documentation and/or other materials provided with the distribution.
  1575  // 3. Neither the name of the University nor the names of its contributors
  1576  //    may be used to endorse or promote products derived from this software
  1577  //    without specific prior written permission.
  1578  //
  1579  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1580  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1581  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1582  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1583  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1584  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1585  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1586  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1587  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1588  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1589  // SUCH DAMAGE.
  1590  //
  1591  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1592  
  1593  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1594  
  1595  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1596  // Public domain.
  1597  //
  1598  // NOTE: Do not protect this header against multiple inclusion.  Doing
  1599  // so can have subtle side-effects due to header file inclusion order
  1600  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
  1601  // protect each CPP macro that we want to supply.
  1602  
  1603  // Feature-test macros are defined by several standards, and allow an
  1604  // application to specify what symbols they want the system headers to
  1605  // expose, and hence what standard they want them to conform to.
  1606  // There are two classes of feature-test macros.  The first class
  1607  // specify complete standards, and if one of these is defined, header
  1608  // files will try to conform to the relevant standard.  They are:
  1609  //
  1610  // ANSI macros:
  1611  // _ANSI_SOURCE			ANSI C89
  1612  //
  1613  // POSIX macros:
  1614  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
  1615  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
  1616  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
  1617  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
  1618  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
  1619  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
  1620  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
  1621  //
  1622  // X/Open macros:
  1623  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
  1624  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
  1625  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
  1626  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
  1627  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
  1628  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
  1629  //
  1630  // NetBSD macros:
  1631  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
  1632  //
  1633  // If more than one of these "major" feature-test macros is defined,
  1634  // then the set of facilities provided (and namespace used) is the
  1635  // union of that specified by the relevant standards, and in case of
  1636  // conflict, the earlier standard in the above list has precedence (so
  1637  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1638  // of rename() that's used is the POSIX one).  If none of the "major"
  1639  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1640  //
  1641  // There are also "minor" feature-test macros, which enable extra
  1642  // functionality in addition to some base standard.  They should be
  1643  // defined along with one of the "major" macros.  The "minor" macros
  1644  // are:
  1645  //
  1646  // _REENTRANT
  1647  // _ISOC99_SOURCE
  1648  // _ISOC11_SOURCE
  1649  // _LARGEFILE_SOURCE		Large File Support
  1650  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1651  
  1652  //	$NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  1653  
  1654  // -
  1655  // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1656  // All rights reserved.
  1657  //
  1658  // This code is derived from software contributed to The NetBSD Foundation
  1659  // by Matt Thomas of 3am Software Foundry.
  1660  //
  1661  // Redistribution and use in source and binary forms, with or without
  1662  // modification, are permitted provided that the following conditions
  1663  // are met:
  1664  // 1. Redistributions of source code must retain the above copyright
  1665  //    notice, this list of conditions and the following disclaimer.
  1666  // 2. Redistributions in binary form must reproduce the above copyright
  1667  //    notice, this list of conditions and the following disclaimer in the
  1668  //    documentation and/or other materials provided with the distribution.
  1669  //
  1670  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1671  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1672  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1673  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1674  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1675  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1676  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1677  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1678  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1679  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1680  // POSSIBILITY OF SUCH DAMAGE.
  1681  
  1682  // Implementation dependent defines, hidden from user space.
  1683  // POSIX does not specify them.
  1684  
  1685  type X__fd_mask = X__uint32_t /* fd_set.h:46:20 */
  1686  
  1687  // 32 = 2 ^ 5
  1688  
  1689  // Select uses bit fields of file descriptors.  These macros manipulate
  1690  // such bit fields.  Note: FD_SETSIZE may be defined by the user.
  1691  
  1692  type Fd_set1 = struct{ Ffds_bits [8]X__fd_mask } /* fd_set.h:66:9 */
  1693  
  1694  // 32 = 2 ^ 5
  1695  
  1696  // Select uses bit fields of file descriptors.  These macros manipulate
  1697  // such bit fields.  Note: FD_SETSIZE may be defined by the user.
  1698  
  1699  type Fd_set = Fd_set1 /* fd_set.h:68:3 */
  1700  
  1701  // Expose our internals if we are not required to hide them.
  1702  
  1703  type Kauth_cred_t = uintptr /* types.h:318:27 */
  1704  
  1705  type Pri_t = int32 /* types.h:320:13 */
  1706  
  1707  //	$NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
  1708  
  1709  // -
  1710  // Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
  1711  // All rights reserved.
  1712  //
  1713  // This code is derived from software contributed to The NetBSD Foundation
  1714  // by Nathan J. Williams.
  1715  //
  1716  // Redistribution and use in source and binary forms, with or without
  1717  // modification, are permitted provided that the following conditions
  1718  // are met:
  1719  // 1. Redistributions of source code must retain the above copyright
  1720  //    notice, this list of conditions and the following disclaimer.
  1721  // 2. Redistributions in binary form must reproduce the above copyright
  1722  //    notice, this list of conditions and the following disclaimer in the
  1723  //    documentation and/or other materials provided with the distribution.
  1724  //
  1725  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1726  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1727  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1728  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1729  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1730  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1731  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1732  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1733  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1734  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1735  // POSSIBILITY OF SUCH DAMAGE.
  1736  
  1737  // We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the
  1738  // POSIX spinlock object.
  1739  //
  1740  // C++ expects to be using PTHREAD_FOO_INITIALIZER as a member initializer.
  1741  // This does not work for volatile types.  Since C++ does not touch the guts
  1742  // of those types, we do not include volatile in the C++ definitions.
  1743  type Pthread_spin_t = X__cpu_simple_lock_t /* pthread_types.h:43:29 */
  1744  type X__pthread_spin_t = Pthread_spin_t    /* pthread_types.h:48:24 */
  1745  
  1746  // Copied from PTQ_HEAD in pthread_queue.h
  1747  
  1748  type Pthread_queue_struct_t = struct {
  1749  	Fptqh_first uintptr
  1750  	Fptqh_last  uintptr
  1751  } /* pthread_types.h:61:1 */
  1752  
  1753  type Pthread_queue_t = Pthread_queue_struct_t /* pthread_types.h:62:39 */
  1754  type X__pthread_attr_st = struct {
  1755  	Fpta_magic   uint32
  1756  	Fpta_flags   int32
  1757  	Fpta_private uintptr
  1758  } /* pthread_types.h:65:1 */
  1759  
  1760  type X__pthread_mutex_st = struct {
  1761  	Fptm_magic      uint32
  1762  	Fptm_errorcheck X__pthread_spin_t
  1763  	F__8            struct {
  1764  		F__ccgo_pad1 [0]uint32
  1765  		Fptm_ceiling uint8
  1766  		F__ccgo_pad2 [3]byte
  1767  	}
  1768  	Fptm_owner    Pthread_t
  1769  	Fptm_waiters  uintptr
  1770  	Fptm_recursed uint32
  1771  	Fptm_spare2   uintptr
  1772  } /* pthread_types.h:66:1 */
  1773  
  1774  type X__pthread_mutexattr_st = struct {
  1775  	Fptma_magic   uint32
  1776  	Fptma_private uintptr
  1777  } /* pthread_types.h:67:1 */
  1778  
  1779  type X__pthread_cond_st = struct {
  1780  	Fptc_magic   uint32
  1781  	Fptc_lock    X__pthread_spin_t
  1782  	Fptc_waiters Pthread_queue_t
  1783  	Fptc_mutex   uintptr
  1784  	Fptc_private uintptr
  1785  } /* pthread_types.h:68:1 */
  1786  
  1787  type X__pthread_condattr_st = struct {
  1788  	Fptca_magic   uint32
  1789  	Fptca_private uintptr
  1790  } /* pthread_types.h:69:1 */
  1791  
  1792  type X__pthread_rwlock_st = struct {
  1793  	Fptr_magic     uint32
  1794  	Fptr_interlock X__pthread_spin_t
  1795  	Fptr_rblocked  Pthread_queue_t
  1796  	Fptr_wblocked  Pthread_queue_t
  1797  	Fptr_nreaders  uint32
  1798  	Fptr_owner     Pthread_t
  1799  	Fptr_private   uintptr
  1800  } /* pthread_types.h:71:1 */
  1801  
  1802  type X__pthread_rwlockattr_st = struct {
  1803  	Fptra_magic   uint32
  1804  	Fptra_private uintptr
  1805  } /* pthread_types.h:72:1 */
  1806  
  1807  type X__pthread_barrier_st = struct {
  1808  	Fptb_magic      uint32
  1809  	Fptb_lock       Pthread_spin_t
  1810  	Fptb_waiters    Pthread_queue_t
  1811  	Fptb_initcount  uint32
  1812  	Fptb_curcount   uint32
  1813  	Fptb_generation uint32
  1814  	Fptb_private    uintptr
  1815  } /* pthread_types.h:73:1 */
  1816  
  1817  type X__pthread_barrierattr_st = struct {
  1818  	Fptba_magic   uint32
  1819  	Fptba_private uintptr
  1820  } /* pthread_types.h:74:1 */
  1821  
  1822  type Pthread_t = uintptr                           /* pthread_types.h:76:29 */
  1823  type Pthread_attr_t = X__pthread_attr_st           /* pthread_types.h:77:34 */
  1824  type Pthread_mutex_t = X__pthread_mutex_st         /* pthread_types.h:78:35 */
  1825  type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */
  1826  type Pthread_cond_t = X__pthread_cond_st           /* pthread_types.h:80:34 */
  1827  type Pthread_condattr_t = X__pthread_condattr_st   /* pthread_types.h:81:38 */
  1828  type X__pthread_once_st = struct {
  1829  	Fpto_mutex Pthread_mutex_t
  1830  	Fpto_done  int32
  1831  } /* pthread_types.h:82:9 */
  1832  
  1833  type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */
  1834  type X__pthread_spinlock_st = struct {
  1835  	Fpts_magic uint32
  1836  	Fpts_spin  X__pthread_spin_t
  1837  	Fpts_flags int32
  1838  } /* pthread_types.h:83:9 */
  1839  
  1840  type Pthread_spinlock_t = X__pthread_spinlock_st       /* pthread_types.h:83:38 */
  1841  type Pthread_rwlock_t = X__pthread_rwlock_st           /* pthread_types.h:84:36 */
  1842  type Pthread_rwlockattr_t = X__pthread_rwlockattr_st   /* pthread_types.h:85:40 */
  1843  type Pthread_barrier_t = X__pthread_barrier_st         /* pthread_types.h:86:37 */
  1844  type Pthread_barrierattr_t = X__pthread_barrierattr_st /* pthread_types.h:87:41 */
  1845  type Pthread_key_t = int32                             /* pthread_types.h:88:13 */
  1846  
  1847  // Structure returned by gettimeofday(2) system call,
  1848  // and used in other calls.
  1849  type Timeval = struct {
  1850  	Ftv_sec      Time_t
  1851  	Ftv_usec     Suseconds_t
  1852  	F__ccgo_pad1 [4]byte
  1853  } /* time.h:44:1 */
  1854  
  1855  //	$NetBSD: timespec.h,v 1.1 2015/07/31 12:51:32 kamil Exp $
  1856  
  1857  // Copyright (c) 1982, 1986, 1993
  1858  //	The Regents of the University of California.  All rights reserved.
  1859  //
  1860  // Redistribution and use in source and binary forms, with or without
  1861  // modification, are permitted provided that the following conditions
  1862  // are met:
  1863  // 1. Redistributions of source code must retain the above copyright
  1864  //    notice, this list of conditions and the following disclaimer.
  1865  // 2. Redistributions in binary form must reproduce the above copyright
  1866  //    notice, this list of conditions and the following disclaimer in the
  1867  //    documentation and/or other materials provided with the distribution.
  1868  // 3. Neither the name of the University nor the names of its contributors
  1869  //    may be used to endorse or promote products derived from this software
  1870  //    without specific prior written permission.
  1871  //
  1872  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1873  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1874  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1875  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1876  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1877  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1878  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1879  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1880  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1881  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1882  // SUCH DAMAGE.
  1883  //
  1884  //	@(#)time.h	8.5 (Berkeley) 5/4/95
  1885  //
  1886  // Extracted by Kamil Rytarowski from:
  1887  // NetBSD: src/sys/sys/time.h,v 1.69 2015/05/19 23:35:11 riastradh Exp
  1888  
  1889  // Note: timezone is obsolete. All timezone handling is now in
  1890  // userland. Its just here for back compatibility.
  1891  type Timezone = struct {
  1892  	Ftz_minuteswest int32
  1893  	Ftz_dsttime     int32
  1894  } /* time.h:65:1 */
  1895  
  1896  // Operations on timevals.
  1897  
  1898  // hide bintime for _STANDALONE because this header is used for hpcboot.exe,
  1899  // which is built with compilers which don't recognize LL suffix.
  1900  //
  1901  //	http://mail-index.NetBSD.org/tech-userlevel/2008/02/27/msg000181.html
  1902  type Bintime = struct {
  1903  	Fsec  Time_t
  1904  	Ffrac Uint64_t
  1905  } /* time.h:102:1 */
  1906  
  1907  // Operations on timespecs.
  1908  
  1909  // Names of the interval timers, and structure
  1910  // defining a timer setting.
  1911  // NB: Must match the CLOCK_ constants below.
  1912  
  1913  type Itimerval = struct {
  1914  	Fit_interval struct {
  1915  		Ftv_sec      Time_t
  1916  		Ftv_usec     Suseconds_t
  1917  		F__ccgo_pad1 [4]byte
  1918  	}
  1919  	Fit_value struct {
  1920  		Ftv_sec      Time_t
  1921  		Ftv_usec     Suseconds_t
  1922  		F__ccgo_pad1 [4]byte
  1923  	}
  1924  } /* time.h:280:1 */
  1925  
  1926  // Structure defined by POSIX.1b to be like a itimerval, but with
  1927  // timespecs. Used in the timer_*() system calls.
  1928  type Itimerspec = struct {
  1929  	Fit_interval struct {
  1930  		Ftv_sec      Time_t
  1931  		Ftv_nsec     int32
  1932  		F__ccgo_pad1 [4]byte
  1933  	}
  1934  	Fit_value struct {
  1935  		Ftv_sec      Time_t
  1936  		Ftv_nsec     int32
  1937  		F__ccgo_pad1 [4]byte
  1938  	}
  1939  } /* time.h:289:1 */
  1940  
  1941  //	$NetBSD: select.h,v 1.37 2014/04/25 15:52:45 pooka Exp $
  1942  
  1943  // -
  1944  // Copyright (c) 1992, 1993
  1945  //	The Regents of the University of California.  All rights reserved.
  1946  //
  1947  // Redistribution and use in source and binary forms, with or without
  1948  // modification, are permitted provided that the following conditions
  1949  // are met:
  1950  // 1. Redistributions of source code must retain the above copyright
  1951  //    notice, this list of conditions and the following disclaimer.
  1952  // 2. Redistributions in binary form must reproduce the above copyright
  1953  //    notice, this list of conditions and the following disclaimer in the
  1954  //    documentation and/or other materials provided with the distribution.
  1955  // 3. Neither the name of the University nor the names of its contributors
  1956  //    may be used to endorse or promote products derived from this software
  1957  //    without specific prior written permission.
  1958  //
  1959  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1960  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1961  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1962  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1963  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1964  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1965  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1966  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1967  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1968  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1969  // SUCH DAMAGE.
  1970  //
  1971  //	@(#)select.h	8.2 (Berkeley) 1/4/94
  1972  
  1973  //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1974  
  1975  // * Copyright (c) 1991, 1993
  1976  //	The Regents of the University of California.  All rights reserved.
  1977  //
  1978  // This code is derived from software contributed to Berkeley by
  1979  // Berkeley Software Design, Inc.
  1980  //
  1981  // Redistribution and use in source and binary forms, with or without
  1982  // modification, are permitted provided that the following conditions
  1983  // are met:
  1984  // 1. Redistributions of source code must retain the above copyright
  1985  //    notice, this list of conditions and the following disclaimer.
  1986  // 2. Redistributions in binary form must reproduce the above copyright
  1987  //    notice, this list of conditions and the following disclaimer in the
  1988  //    documentation and/or other materials provided with the distribution.
  1989  // 3. Neither the name of the University nor the names of its contributors
  1990  //    may be used to endorse or promote products derived from this software
  1991  //    without specific prior written permission.
  1992  //
  1993  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1994  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1995  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1996  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1997  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1998  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1999  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2000  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2001  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2002  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2003  // SUCH DAMAGE.
  2004  //
  2005  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2006  
  2007  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  2008  
  2009  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  2010  // Public domain.
  2011  //
  2012  // NOTE: Do not protect this header against multiple inclusion.  Doing
  2013  // so can have subtle side-effects due to header file inclusion order
  2014  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
  2015  // protect each CPP macro that we want to supply.
  2016  
  2017  // Feature-test macros are defined by several standards, and allow an
  2018  // application to specify what symbols they want the system headers to
  2019  // expose, and hence what standard they want them to conform to.
  2020  // There are two classes of feature-test macros.  The first class
  2021  // specify complete standards, and if one of these is defined, header
  2022  // files will try to conform to the relevant standard.  They are:
  2023  //
  2024  // ANSI macros:
  2025  // _ANSI_SOURCE			ANSI C89
  2026  //
  2027  // POSIX macros:
  2028  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
  2029  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
  2030  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
  2031  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
  2032  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
  2033  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
  2034  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
  2035  //
  2036  // X/Open macros:
  2037  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
  2038  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
  2039  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
  2040  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
  2041  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
  2042  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
  2043  //
  2044  // NetBSD macros:
  2045  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
  2046  //
  2047  // If more than one of these "major" feature-test macros is defined,
  2048  // then the set of facilities provided (and namespace used) is the
  2049  // union of that specified by the relevant standards, and in case of
  2050  // conflict, the earlier standard in the above list has precedence (so
  2051  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  2052  // of rename() that's used is the POSIX one).  If none of the "major"
  2053  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  2054  //
  2055  // There are also "minor" feature-test macros, which enable extra
  2056  // functionality in addition to some base standard.  They should be
  2057  // defined along with one of the "major" macros.  The "minor" macros
  2058  // are:
  2059  //
  2060  // _REENTRANT
  2061  // _ISOC99_SOURCE
  2062  // _ISOC11_SOURCE
  2063  // _LARGEFILE_SOURCE		Large File Support
  2064  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  2065  
  2066  //	$NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
  2067  
  2068  // -
  2069  // Copyright (c) 1992, 1993
  2070  //	The Regents of the University of California.  All rights reserved.
  2071  //
  2072  // Redistribution and use in source and binary forms, with or without
  2073  // modification, are permitted provided that the following conditions
  2074  // are met:
  2075  // 1. Redistributions of source code must retain the above copyright
  2076  //    notice, this list of conditions and the following disclaimer.
  2077  // 2. Redistributions in binary form must reproduce the above copyright
  2078  //    notice, this list of conditions and the following disclaimer in the
  2079  //    documentation and/or other materials provided with the distribution.
  2080  // 3. Neither the name of the University nor the names of its contributors
  2081  //    may be used to endorse or promote products derived from this software
  2082  //    without specific prior written permission.
  2083  //
  2084  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2085  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2086  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2087  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2088  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2089  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2090  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2091  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2092  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2093  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2094  // SUCH DAMAGE.
  2095  //
  2096  //	from: @(#)types.h	8.4 (Berkeley) 1/21/94
  2097  
  2098  //	$NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $
  2099  
  2100  // Copyright (c) 1982, 1986, 1989, 1991, 1993
  2101  //	The Regents of the University of California.  All rights reserved.
  2102  // (c) UNIX System Laboratories, Inc.
  2103  // All or some portions of this file are derived from material licensed
  2104  // to the University of California by American Telephone and Telegraph
  2105  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  2106  // the permission of UNIX System Laboratories, Inc.
  2107  //
  2108  // Redistribution and use in source and binary forms, with or without
  2109  // modification, are permitted provided that the following conditions
  2110  // are met:
  2111  // 1. Redistributions of source code must retain the above copyright
  2112  //    notice, this list of conditions and the following disclaimer.
  2113  // 2. Redistributions in binary form must reproduce the above copyright
  2114  //    notice, this list of conditions and the following disclaimer in the
  2115  //    documentation and/or other materials provided with the distribution.
  2116  // 3. Neither the name of the University nor the names of its contributors
  2117  //    may be used to endorse or promote products derived from this software
  2118  //    without specific prior written permission.
  2119  //
  2120  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2121  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2122  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2123  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2124  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2125  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2126  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2127  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2128  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2129  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2130  // SUCH DAMAGE.
  2131  //
  2132  //	@(#)signal.h	8.4 (Berkeley) 5/4/95
  2133  
  2134  // This header file defines various signal-related types.  We also keep
  2135  // the macros to manipulate sigset_t here, to encapsulate knowledge of
  2136  // its internals.
  2137  
  2138  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  2139  
  2140  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  2141  // Public domain.
  2142  //
  2143  // NOTE: Do not protect this header against multiple inclusion.  Doing
  2144  // so can have subtle side-effects due to header file inclusion order
  2145  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
  2146  // protect each CPP macro that we want to supply.
  2147  
  2148  // Feature-test macros are defined by several standards, and allow an
  2149  // application to specify what symbols they want the system headers to
  2150  // expose, and hence what standard they want them to conform to.
  2151  // There are two classes of feature-test macros.  The first class
  2152  // specify complete standards, and if one of these is defined, header
  2153  // files will try to conform to the relevant standard.  They are:
  2154  //
  2155  // ANSI macros:
  2156  // _ANSI_SOURCE			ANSI C89
  2157  //
  2158  // POSIX macros:
  2159  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
  2160  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
  2161  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
  2162  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
  2163  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
  2164  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
  2165  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
  2166  //
  2167  // X/Open macros:
  2168  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
  2169  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
  2170  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
  2171  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
  2172  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
  2173  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
  2174  //
  2175  // NetBSD macros:
  2176  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
  2177  //
  2178  // If more than one of these "major" feature-test macros is defined,
  2179  // then the set of facilities provided (and namespace used) is the
  2180  // union of that specified by the relevant standards, and in case of
  2181  // conflict, the earlier standard in the above list has precedence (so
  2182  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  2183  // of rename() that's used is the POSIX one).  If none of the "major"
  2184  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  2185  //
  2186  // There are also "minor" feature-test macros, which enable extra
  2187  // functionality in addition to some base standard.  They should be
  2188  // defined along with one of the "major" macros.  The "minor" macros
  2189  // are:
  2190  //
  2191  // _REENTRANT
  2192  // _ISOC99_SOURCE
  2193  // _ISOC11_SOURCE
  2194  // _LARGEFILE_SOURCE		Large File Support
  2195  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  2196  
  2197  //	$NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  2198  
  2199  // -
  2200  // Copyright (c) 2014 The NetBSD Foundation, Inc.
  2201  // All rights reserved.
  2202  //
  2203  // This code is derived from software contributed to The NetBSD Foundation
  2204  // by Matt Thomas of 3am Software Foundry.
  2205  //
  2206  // Redistribution and use in source and binary forms, with or without
  2207  // modification, are permitted provided that the following conditions
  2208  // are met:
  2209  // 1. Redistributions of source code must retain the above copyright
  2210  //    notice, this list of conditions and the following disclaimer.
  2211  // 2. Redistributions in binary form must reproduce the above copyright
  2212  //    notice, this list of conditions and the following disclaimer in the
  2213  //    documentation and/or other materials provided with the distribution.
  2214  //
  2215  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  2216  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  2217  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  2218  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  2219  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  2220  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  2221  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  2222  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  2223  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  2224  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  2225  // POSSIBILITY OF SUCH DAMAGE.
  2226  
  2227  //	$NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $
  2228  
  2229  //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  2230  
  2231  // -
  2232  // Copyright (c) 2014 The NetBSD Foundation, Inc.
  2233  // All rights reserved.
  2234  //
  2235  // This code is derived from software contributed to The NetBSD Foundation
  2236  // by Matt Thomas of 3am Software Foundry.
  2237  //
  2238  // Redistribution and use in source and binary forms, with or without
  2239  // modification, are permitted provided that the following conditions
  2240  // are met:
  2241  // 1. Redistributions of source code must retain the above copyright
  2242  //    notice, this list of conditions and the following disclaimer.
  2243  // 2. Redistributions in binary form must reproduce the above copyright
  2244  //    notice, this list of conditions and the following disclaimer in the
  2245  //    documentation and/or other materials provided with the distribution.
  2246  //
  2247  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  2248  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  2249  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  2250  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  2251  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  2252  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  2253  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  2254  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  2255  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  2256  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  2257  // POSSIBILITY OF SUCH DAMAGE.
  2258  
  2259  type Sigset_t = struct{ F__bits [4]X__uint32_t } /* sigtypes.h:62:3 */
  2260  
  2261  // Macro for manipulating signal masks.
  2262  
  2263  type Sigaltstack = struct {
  2264  	Fss_sp    uintptr
  2265  	Fss_size  Size_t
  2266  	Fss_flags int32
  2267  } /* sigtypes.h:108:9 */
  2268  
  2269  // Macro for manipulating signal masks.
  2270  
  2271  type Stack_t = Sigaltstack /* sigtypes.h:116:3 */
  2272  //	$NetBSD: idtype.h,v 1.5 2016/04/09 17:02:51 riastradh Exp $
  2273  
  2274  // -
  2275  // Copyright (c) 2016 The NetBSD Foundation, Inc.
  2276  // All rights reserved.
  2277  //
  2278  // This code is derived from software contributed to The NetBSD Foundation
  2279  // by Christos Zoulas.
  2280  //
  2281  // Redistribution and use in source and binary forms, with or without
  2282  // modification, are permitted provided that the following conditions
  2283  // are met:
  2284  // 1. Redistributions of source code must retain the above copyright
  2285  //    notice, this list of conditions and the following disclaimer.
  2286  // 2. Redistributions in binary form must reproduce the above copyright
  2287  //    notice, this list of conditions and the following disclaimer in the
  2288  //    documentation and/or other materials provided with the distribution.
  2289  //
  2290  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  2291  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  2292  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  2293  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  2294  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  2295  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  2296  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  2297  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  2298  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  2299  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  2300  // POSSIBILITY OF SUCH DAMAGE.
  2301  
  2302  // Using the solaris constants, some of them are not applicable to us
  2303  // Do not re-order the list, or add elements in the middle as this will
  2304  // break the ABI of the system calls using this.  We set a high private
  2305  // maximum so that new values can be added in the future without
  2306  // changing the width of the type.
  2307  type Idtype_t = int32 /* idtype.h:60:3 */
  2308  
  2309  type Locale_t = uintptr /* time.h:188:25 */
  2310  
  2311  type Timezone_t = uintptr /* time.h:198:24 */
  2312  
  2313  var _ uint8 /* gen.c:2:13: */