gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

pthread_openbsd_arm64.go (104462B)


      1 // Code generated by 'ccgo pthread/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 pthread/pthread_openbsd_arm64.go -pkgname pthread', DO NOT EDIT.
      2 
      3 package pthread
      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 	ARG_MAX                              = 524288               // syslimits.h:38:1:
     19 	BC_BASE_MAX                          = 2147483647           // syslimits.h:51:1:
     20 	BC_DIM_MAX                           = 65535                // syslimits.h:52:1:
     21 	BC_SCALE_MAX                         = 2147483647           // syslimits.h:53:1:
     22 	BC_STRING_MAX                        = 2147483647           // syslimits.h:54:1:
     23 	BIG_ENDIAN                           = 4321                 // endian.h:45:1:
     24 	BUS_ADRALN                           = 1                    // siginfo.h:83:1:
     25 	BUS_ADRERR                           = 2                    // siginfo.h:84:1:
     26 	BUS_OBJERR                           = 3                    // siginfo.h:85:1:
     27 	BYTE_ORDER                           = 1234                 // endian.h:47:1:
     28 	CHAR_BIT                             = 8                    // limits.h:36:1:
     29 	CHAR_MAX                             = 0xff                 // limits.h:44:1:
     30 	CHAR_MIN                             = 0                    // limits.h:43:1:
     31 	CHILD_MAX                            = 80                   // syslimits.h:39:1:
     32 	CLD_CONTINUED                        = 6                    // siginfo.h:105:1:
     33 	CLD_DUMPED                           = 3                    // siginfo.h:102:1:
     34 	CLD_EXITED                           = 1                    // siginfo.h:100:1:
     35 	CLD_KILLED                           = 2                    // siginfo.h:101:1:
     36 	CLD_STOPPED                          = 5                    // siginfo.h:104:1:
     37 	CLD_TRAPPED                          = 4                    // siginfo.h:103:1:
     38 	CLK_TCK                              = 100                  // time.h:68:1:
     39 	CLOCKS_PER_SEC                       = 100                  // time.h:71:1:
     40 	CLOCK_BOOTTIME                       = 6                    // _time.h:40:1:
     41 	CLOCK_MONOTONIC                      = 3                    // _time.h:37:1:
     42 	CLOCK_PROCESS_CPUTIME_ID             = 2                    // _time.h:36:1:
     43 	CLOCK_REALTIME                       = 0                    // _time.h:35:1:
     44 	CLOCK_THREAD_CPUTIME_ID              = 4                    // _time.h:38:1:
     45 	CLOCK_UPTIME                         = 5                    // _time.h:39:1:
     46 	COLL_WEIGHTS_MAX                     = 2                    // syslimits.h:55:1:
     47 	DST_AUST                             = 2                    // time.h:78:1:
     48 	DST_CAN                              = 6                    // time.h:82:1:
     49 	DST_EET                              = 5                    // time.h:81:1:
     50 	DST_MET                              = 4                    // time.h:80:1:
     51 	DST_NONE                             = 0                    // time.h:76:1:
     52 	DST_USA                              = 1                    // time.h:77:1:
     53 	DST_WET                              = 3                    // time.h:79:1:
     54 	EMT_TAGOVF                           = 1                    // siginfo.h:66:1:
     55 	EXPR_NEST_MAX                        = 32                   // syslimits.h:56:1:
     56 	FD_SETSIZE                           = 1024                 // select.h:62:1:
     57 	FPE_FLTDIV                           = 3                    // siginfo.h:71:1:
     58 	FPE_FLTINV                           = 7                    // siginfo.h:75:1:
     59 	FPE_FLTOVF                           = 4                    // siginfo.h:72:1:
     60 	FPE_FLTRES                           = 6                    // siginfo.h:74:1:
     61 	FPE_FLTSUB                           = 8                    // siginfo.h:76:1:
     62 	FPE_FLTUND                           = 5                    // siginfo.h:73:1:
     63 	FPE_INTDIV                           = 1                    // siginfo.h:69:1:
     64 	FPE_INTOVF                           = 2                    // siginfo.h:70:1:
     65 	GID_MAX                              = 4294967295           // limits.h:84:1:
     66 	HOST_NAME_MAX                        = 255                  // syslimits.h:76:1:
     67 	ILL_BADSTK                           = 8                    // siginfo.h:63:1:
     68 	ILL_COPROC                           = 7                    // siginfo.h:62:1:
     69 	ILL_ILLADR                           = 3                    // siginfo.h:58:1:
     70 	ILL_ILLOPC                           = 1                    // siginfo.h:56:1:
     71 	ILL_ILLOPN                           = 2                    // siginfo.h:57:1:
     72 	ILL_ILLTRP                           = 4                    // siginfo.h:59:1:
     73 	ILL_PRVOPC                           = 5                    // siginfo.h:60:1:
     74 	ILL_PRVREG                           = 6                    // siginfo.h:61:1:
     75 	INT_MAX                              = 0x7fffffff           // limits.h:57:1:
     76 	INT_MIN                              = -2147483648          // limits.h:58:1:
     77 	IOV_MAX                              = 1024                 // syslimits.h:64:1:
     78 	ITIMER_PROF                          = 2                    // time.h:146:1:
     79 	ITIMER_REAL                          = 0                    // time.h:144:1:
     80 	ITIMER_VIRTUAL                       = 1                    // time.h:145:1:
     81 	LINE_MAX                             = 2048                 // syslimits.h:57:1:
     82 	LINK_MAX                             = 32767                // syslimits.h:40:1:
     83 	LITTLE_ENDIAN                        = 1234                 // endian.h:44:1:
     84 	LLONG_MAX                            = 0x7fffffffffffffff   // limits.h:76:1:
     85 	LLONG_MIN                            = -9223372036854775808 // limits.h:78:1:
     86 	LOGIN_NAME_MAX                       = 32                   // syslimits.h:72:1:
     87 	LONG_BIT                             = 64                   // limits.h:89:1:
     88 	LONG_MAX                             = 0x7fffffffffffffff   // limits.h:63:1:
     89 	LONG_MIN                             = -9223372036854775808 // limits.h:65:1:
     90 	MAX_CANON                            = 255                  // syslimits.h:41:1:
     91 	MAX_INPUT                            = 255                  // syslimits.h:42:1:
     92 	MB_LEN_MAX                           = 4                    // limits.h:50:1:
     93 	MINSIGSTKSZ                          = 12288                // signal.h:183:1:
     94 	NAME_MAX                             = 255                  // syslimits.h:43:1:
     95 	NBBY                                 = 8                    // select.h:111:1:
     96 	NGROUPS_MAX                          = 16                   // syslimits.h:44:1:
     97 	NL_ARGMAX                            = 9                    // limits.h:89:1:
     98 	NL_LANGMAX                           = 14                   // limits.h:90:1:
     99 	NL_MSGMAX                            = 32767                // limits.h:91:1:
    100 	NL_SETMAX                            = 255                  // limits.h:92:1:
    101 	NL_TEXTMAX                           = 255                  // limits.h:93:1:
    102 	NSIG                                 = 33                   // signal.h:48:1:
    103 	NSIGBUS                              = 3                    // siginfo.h:86:1:
    104 	NSIGCLD                              = 6                    // siginfo.h:106:1:
    105 	NSIGEMT                              = 1                    // siginfo.h:67:1:
    106 	NSIGFPE                              = 8                    // siginfo.h:77:1:
    107 	NSIGILL                              = 8                    // siginfo.h:64:1:
    108 	NSIGSEGV                             = 2                    // siginfo.h:81:1:
    109 	NSIGTRAP                             = 2                    // siginfo.h:95:1:
    110 	NZERO                                = 20                   // syslimits.h:65:1:
    111 	OPEN_MAX                             = 64                   // syslimits.h:45:1:
    112 	PATH_MAX                             = 1024                 // syslimits.h:46:1:
    113 	PDP_ENDIAN                           = 3412                 // endian.h:46:1:
    114 	PIPE_BUF                             = 512                  // syslimits.h:47:1:
    115 	PTHREAD_BARRIER_SERIAL_THREAD        = -1                   // pthread.h:88:1:
    116 	PTHREAD_CANCEL_ASYNCHRONOUS          = 2                    // pthread.h:82:1:
    117 	PTHREAD_CANCEL_DEFERRED              = 0                    // pthread.h:81:1:
    118 	PTHREAD_CANCEL_DISABLE               = 1                    // pthread.h:80:1:
    119 	PTHREAD_CANCEL_ENABLE                = 0                    // pthread.h:79:1:
    120 	PTHREAD_CREATE_DETACHED              = 1                    // pthread.h:65:1:
    121 	PTHREAD_CREATE_JOINABLE              = 0                    // pthread.h:66:1:
    122 	PTHREAD_DESTRUCTOR_ITERATIONS        = 4                    // pthread.h:52:1:
    123 	PTHREAD_DETACHED                     = 0x1                  // pthread.h:60:1:
    124 	PTHREAD_DONE_INIT                    = 1                    // pthread.h:147:1:
    125 	PTHREAD_EXPLICIT_SCHED               = 0                    // pthread.h:68:1:
    126 	PTHREAD_INHERIT_SCHED                = 0x4                  // pthread.h:62:1:
    127 	PTHREAD_KEYS_MAX                     = 256                  // pthread.h:53:1:
    128 	PTHREAD_NEEDS_INIT                   = 0                    // pthread.h:146:1:
    129 	PTHREAD_NOFLOAT                      = 0x8                  // pthread.h:63:1:
    130 	PTHREAD_PRIO_INHERIT                 = 1                    // pthread.h:162:1:
    131 	PTHREAD_PRIO_NONE                    = 0                    // pthread.h:161:1:
    132 	PTHREAD_PRIO_PROTECT                 = 2                    // pthread.h:163:1:
    133 	PTHREAD_PROCESS_PRIVATE              = 0                    // pthread.h:73:1:
    134 	PTHREAD_PROCESS_SHARED               = 1                    // pthread.h:74:1:
    135 	PTHREAD_SCOPE_PROCESS                = 0                    // pthread.h:67:1:
    136 	PTHREAD_SCOPE_SYSTEM                 = 0x2                  // pthread.h:61:1:
    137 	PTHREAD_STACK_MIN                    = 4096                 // pthread.h:54:1:
    138 	PTHREAD_THREADS_MAX                  = 18446744073709551615 // pthread.h:55:1:
    139 	QUAD_MAX                             = 0x7fffffffffffffff   // limits.h:51:1:
    140 	QUAD_MIN                             = -9223372036854775808 // limits.h:52:1:
    141 	RE_DUP_MAX                           = 255                  // syslimits.h:59:1:
    142 	SA_NOCLDSTOP                         = 0x0008               // signal.h:132:1:
    143 	SA_NOCLDWAIT                         = 0x0020               // signal.h:130:1:
    144 	SA_NODEFER                           = 0x0010               // signal.h:129:1:
    145 	SA_ONSTACK                           = 0x0001               // signal.h:126:1:
    146 	SA_RESETHAND                         = 0x0004               // signal.h:128:1:
    147 	SA_RESTART                           = 0x0002               // signal.h:127:1:
    148 	SA_SIGINFO                           = 0x0040               // signal.h:134:1:
    149 	SCHAR_MAX                            = 0x7f                 // limits.h:38:1:
    150 	SCHAR_MIN                            = -128                 // limits.h:39:1:
    151 	SCHED_FIFO                           = 1                    // sched.h:47:1:
    152 	SCHED_OTHER                          = 2                    // sched.h:48:1:
    153 	SCHED_RR                             = 3                    // sched.h:49:1:
    154 	SEGV_ACCERR                          = 2                    // siginfo.h:80:1:
    155 	SEGV_MAPERR                          = 1                    // siginfo.h:79:1:
    156 	SEM_VALUE_MAX                        = 4294967295           // syslimits.h:60:1:
    157 	SHRT_MAX                             = 0x7fff               // limits.h:53:1:
    158 	SHRT_MIN                             = -32768               // limits.h:54:1:
    159 	SIGABRT                              = 6                    // signal.h:56:1:
    160 	SIGALRM                              = 14                   // signal.h:67:1:
    161 	SIGBUS                               = 10                   // signal.h:63:1:
    162 	SIGCHLD                              = 20                   // signal.h:73:1:
    163 	SIGCONT                              = 19                   // signal.h:72:1:
    164 	SIGEMT                               = 7                    // signal.h:59:1:
    165 	SIGFPE                               = 8                    // signal.h:61:1:
    166 	SIGHUP                               = 1                    // signal.h:51:1:
    167 	SIGILL                               = 4                    // signal.h:54:1:
    168 	SIGINFO                              = 29                   // signal.h:85:1:
    169 	SIGINT                               = 2                    // signal.h:52:1:
    170 	SIGIO                                = 23                   // signal.h:77:1:
    171 	SIGIOT                               = 6                    // signal.h:58:1:
    172 	SIGKILL                              = 9                    // signal.h:62:1:
    173 	SIGPIPE                              = 13                   // signal.h:66:1:
    174 	SIGPROF                              = 27                   // signal.h:82:1:
    175 	SIGQUIT                              = 3                    // signal.h:53:1:
    176 	SIGSEGV                              = 11                   // signal.h:64:1:
    177 	SIGSTKSZ                             = 28672                // signal.h:185:1:
    178 	SIGSTOP                              = 17                   // signal.h:70:1:
    179 	SIGSYS                               = 12                   // signal.h:65:1:
    180 	SIGTERM                              = 15                   // signal.h:68:1:
    181 	SIGTHR                               = 32                   // signal.h:90:1:
    182 	SIGTRAP                              = 5                    // signal.h:55:1:
    183 	SIGTSTP                              = 18                   // signal.h:71:1:
    184 	SIGTTIN                              = 21                   // signal.h:74:1:
    185 	SIGTTOU                              = 22                   // signal.h:75:1:
    186 	SIGURG                               = 16                   // signal.h:69:1:
    187 	SIGUSR1                              = 30                   // signal.h:87:1:
    188 	SIGUSR2                              = 31                   // signal.h:88:1:
    189 	SIGVTALRM                            = 26                   // signal.h:81:1:
    190 	SIGWINCH                             = 28                   // signal.h:84:1:
    191 	SIGXCPU                              = 24                   // signal.h:79:1:
    192 	SIGXFSZ                              = 25                   // signal.h:80:1:
    193 	SIG_BLOCK                            = 1                    // signal.h:140:1:
    194 	SIG_SETMASK                          = 3                    // signal.h:142:1:
    195 	SIG_UNBLOCK                          = 2                    // signal.h:141:1:
    196 	SIZE_MAX                             = 18446744073709551615 // limits.h:42:1:
    197 	SIZE_T_MAX                           = 18446744073709551615 // limits.h:48:1:
    198 	SI_LWP                               = -1                   // siginfo.h:47:1:
    199 	SI_MAXSZ                             = 128                  // siginfo.h:127:1:
    200 	SI_NOINFO                            = 32767                // siginfo.h:45:1:
    201 	SI_QUEUE                             = -2                   // siginfo.h:48:1:
    202 	SI_TIMER                             = -3                   // siginfo.h:49:1:
    203 	SI_USER                              = 0                    // siginfo.h:46:1:
    204 	SSIZE_MAX                            = 9223372036854775807  // limits.h:44:1:
    205 	SS_DISABLE                           = 0x0004               // signal.h:182:1:
    206 	SS_ONSTACK                           = 0x0001               // signal.h:181:1:
    207 	SV_INTERRUPT                         = 2                    // signal.h:158:1:
    208 	SV_ONSTACK                           = 1                    // signal.h:157:1:
    209 	SV_RESETHAND                         = 4                    // signal.h:159:1:
    210 	SYMLINK_MAX                          = 1024                 // syslimits.h:48:1:
    211 	SYMLOOP_MAX                          = 32                   // syslimits.h:49:1:
    212 	TIMER_ABSTIME                        = 0x1                  // _time.h:62:1:
    213 	TIMER_RELTIME                        = 0x0                  // _time.h:61:1:
    214 	TIME_UTC                             = 1                    // time.h:179:1:
    215 	TRAP_BRKPT                           = 1                    // siginfo.h:93:1:
    216 	TRAP_TRACE                           = 2                    // siginfo.h:94:1:
    217 	TTY_NAME_MAX                         = 260                  // syslimits.h:71:1:
    218 	UCHAR_MAX                            = 0xff                 // limits.h:41:1:
    219 	UID_MAX                              = 4294967295           // limits.h:83:1:
    220 	UINT_MAX                             = 0xffffffff           // limits.h:56:1:
    221 	ULLONG_MAX                           = 0xffffffffffffffff   // limits.h:74:1:
    222 	ULONG_MAX                            = 0xffffffffffffffff   // limits.h:61:1:
    223 	UQUAD_MAX                            = 0xffffffffffffffff   // limits.h:50:1:
    224 	USHRT_MAX                            = 0xffff               // limits.h:52:1:
    225 	WORD_BIT                             = 32                   // limits.h:93:1:
    226 	X_BIG_ENDIAN                         = 4321                 // _endian.h:43:1:
    227 	X_BYTE_ORDER                         = 1234                 // endian.h:60:1:
    228 	X_CLOCKID_T_DEFINED_                 = 0                    // types.h:162:1:
    229 	X_CLOCK_T_DEFINED_                   = 0                    // types.h:157:1:
    230 	X_FILE_OFFSET_BITS                   = 64                   // <builtin>:25:1:
    231 	X_INT16_T_DEFINED_                   = 0                    // types.h:84:1:
    232 	X_INT32_T_DEFINED_                   = 0                    // types.h:94:1:
    233 	X_INT64_T_DEFINED_                   = 0                    // types.h:104:1:
    234 	X_INT8_T_DEFINED_                    = 0                    // types.h:74:1:
    235 	X_LIMITS_H_                          = 0                    // limits.h:36:1:
    236 	X_LITTLE_ENDIAN                      = 1234                 // _endian.h:42:1:
    237 	X_LOCALE_T_DEFINED_                  = 0                    // time.h:106:1:
    238 	X_LP64                               = 1                    // <predefined>:1:1:
    239 	X_MACHINE_CDEFS_H_                   = 0                    // cdefs.h:4:1:
    240 	X_MACHINE_ENDIAN_H_                  = 0                    // endian.h:20:1:
    241 	X_MACHINE_LIMITS_H_                  = 0                    // limits.h:36:1:
    242 	X_MACHINE_SIGNAL_H_                  = 0                    // signal.h:37:1:
    243 	X_MACHINE__TYPES_H_                  = 0                    // _types.h:35:1:
    244 	X_MAXCOMLEN                          = 24                   // syslimits.h:79:1:
    245 	X_MAX_PAGE_SHIFT                     = 12                   // _types.h:57:1:
    246 	X_NSIG                               = 33                   // signal.h:45:1:
    247 	X_OFF_T_DEFINED_                     = 0                    // types.h:192:1:
    248 	X_PDP_ENDIAN                         = 3412                 // _endian.h:44:1:
    249 	X_PID_T_DEFINED_                     = 0                    // types.h:167:1:
    250 	X_POSIX2_BC_BASE_MAX                 = 99                   // limits.h:71:1:
    251 	X_POSIX2_BC_DIM_MAX                  = 2048                 // limits.h:72:1:
    252 	X_POSIX2_BC_SCALE_MAX                = 99                   // limits.h:73:1:
    253 	X_POSIX2_BC_STRING_MAX               = 1000                 // limits.h:74:1:
    254 	X_POSIX2_CHARCLASS_NAME_MAX          = 14                   // limits.h:79:1:
    255 	X_POSIX2_COLL_WEIGHTS_MAX            = 2                    // limits.h:75:1:
    256 	X_POSIX2_EXPR_NEST_MAX               = 32                   // limits.h:76:1:
    257 	X_POSIX2_LINE_MAX                    = 2048                 // limits.h:77:1:
    258 	X_POSIX2_RE_DUP_MAX                  = 255                  // limits.h:78:1:
    259 	X_POSIX_ARG_MAX                      = 4096                 // limits.h:41:1:
    260 	X_POSIX_CHILD_MAX                    = 25                   // limits.h:42:1:
    261 	X_POSIX_CLOCKRES_MIN                 = 20000000             // limits.h:61:1:
    262 	X_POSIX_HOST_NAME_MAX                = 255                  // limits.h:82:1:
    263 	X_POSIX_LINK_MAX                     = 8                    // limits.h:43:1:
    264 	X_POSIX_LOGIN_NAME_MAX               = 9                    // limits.h:83:1:
    265 	X_POSIX_MAX_CANON                    = 255                  // limits.h:44:1:
    266 	X_POSIX_MAX_INPUT                    = 255                  // limits.h:45:1:
    267 	X_POSIX_NAME_MAX                     = 14                   // limits.h:46:1:
    268 	X_POSIX_NGROUPS_MAX                  = 8                    // limits.h:62:1:
    269 	X_POSIX_OPEN_MAX                     = 20                   // limits.h:63:1:
    270 	X_POSIX_PATH_MAX                     = 256                  // limits.h:47:1:
    271 	X_POSIX_PIPE_BUF                     = 512                  // limits.h:48:1:
    272 	X_POSIX_RE_DUP_MAX                   = 255                  // limits.h:49:1:
    273 	X_POSIX_SEM_NSEMS_MAX                = 256                  // limits.h:50:1:
    274 	X_POSIX_SEM_VALUE_MAX                = 32767                // limits.h:51:1:
    275 	X_POSIX_SSIZE_MAX                    = 32767                // limits.h:52:1:
    276 	X_POSIX_STREAM_MAX                   = 8                    // limits.h:53:1:
    277 	X_POSIX_SYMLINK_MAX                  = 255                  // limits.h:54:1:
    278 	X_POSIX_SYMLOOP_MAX                  = 8                    // limits.h:55:1:
    279 	X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4                    // limits.h:56:1:
    280 	X_POSIX_THREAD_KEYS_MAX              = 128                  // limits.h:57:1:
    281 	X_POSIX_THREAD_THREADS_MAX           = 4                    // limits.h:58:1:
    282 	X_POSIX_TTY_NAME_MAX                 = 9                    // limits.h:84:1:
    283 	X_POSIX_TZNAME_MAX                   = 6                    // limits.h:64:1:
    284 	X_PTHREAD_H_                         = 0                    // pthread.h:38:1:
    285 	X_QUAD_HIGHWORD                      = 1                    // _endian.h:95:1:
    286 	X_QUAD_LOWWORD                       = 0                    // _endian.h:96:1:
    287 	X_RET_PROTECTOR                      = 1                    // <predefined>:2:1:
    288 	X_SCHED_H_                           = 0                    // sched.h:40:1:
    289 	X_SELECT_DEFINED_                    = 0                    // select.h:126:1:
    290 	X_SIGSET_T_DEFINED_                  = 0                    // select.h:121:1:
    291 	X_SIZE_T_DEFINED_                    = 0                    // types.h:172:1:
    292 	X_SSIZE_T_DEFINED_                   = 0                    // types.h:177:1:
    293 	X_STACKALIGNBYTES                    = 15                   // _types.h:54:1:
    294 	X_SYS_CDEFS_H_                       = 0                    // cdefs.h:39:1:
    295 	X_SYS_ENDIAN_H_                      = 0                    // endian.h:38:1:
    296 	X_SYS_LIMITS_H_                      = 0                    // limits.h:27:1:
    297 	X_SYS_SELECT_H_                      = 0                    // select.h:35:1:
    298 	X_SYS_SIGINFO_H                      = 0                    // siginfo.h:29:1:
    299 	X_SYS_SIGNAL_H_                      = 0                    // signal.h:41:1:
    300 	X_SYS_TIME_H_                        = 0                    // time.h:36:1:
    301 	X_SYS_TYPES_H_                       = 0                    // types.h:41:1:
    302 	X_SYS__ENDIAN_H_                     = 0                    // _endian.h:34:1:
    303 	X_SYS__TIME_H_                       = 0                    // _time.h:33:1:
    304 	X_SYS__TYPES_H_                      = 0                    // _types.h:35:1:
    305 	X_TIMER_T_DEFINED_                   = 0                    // types.h:187:1:
    306 	X_TIMESPEC_DECLARED                  = 0                    // select.h:48:1:
    307 	X_TIMEVAL_DECLARED                   = 0                    // select.h:40:1:
    308 	X_TIME_H_                            = 0                    // time.h:42:1:
    309 	X_TIME_T_DEFINED_                    = 0                    // types.h:182:1:
    310 	X_UINT16_T_DEFINED_                  = 0                    // types.h:89:1:
    311 	X_UINT32_T_DEFINED_                  = 0                    // types.h:99:1:
    312 	X_UINT64_T_DEFINED_                  = 0                    // types.h:109:1:
    313 	X_UINT8_T_DEFINED_                   = 0                    // types.h:79:1:
    314 	X_XOPEN_IOV_MAX                      = 16                   // limits.h:106:1:
    315 	X_XOPEN_NAME_MAX                     = 255                  // limits.h:107:1:
    316 	X_XOPEN_PATH_MAX                     = 1024                 // limits.h:108:1:
    317 	Unix                                 = 1                    // <predefined>:360:1:
    318 )
    319 
    320 // Flags for once initialization.
    321 
    322 // Static once initialization values.
    323 
    324 // Static initialization values.
    325 
    326 // Mutex types.
    327 const ( /* pthread.h:168:1: */
    328 	PTHREAD_MUTEX_ERRORCHECK = 1 // Error checking mutex
    329 	PTHREAD_MUTEX_RECURSIVE  = 2 // Recursive mutex
    330 	PTHREAD_MUTEX_NORMAL     = 3 // No error checking
    331 	PTHREAD_MUTEX_STRICT_NP  = 4 // Strict error checking
    332 	PTHREAD_MUTEX_TYPE_MAX   = 5
    333 )
    334 
    335 type Ptrdiff_t = int64 /* <builtin>:3:26 */
    336 
    337 type Size_t = uint64 /* <builtin>:9:23 */
    338 
    339 type Wchar_t = int32 /* <builtin>:15:24 */
    340 
    341 type X__int128_t = struct {
    342 	Flo int64
    343 	Fhi int64
    344 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    345 type X__uint128_t = struct {
    346 	Flo uint64
    347 	Fhi uint64
    348 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    349 
    350 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    351 type X__float128 = float64        /* <builtin>:47:21 */
    352 
    353 //	$OpenBSD: pthread.h,v 1.4 2018/03/05 01:15:26 deraadt Exp $
    354 
    355 // Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu
    356 // Copyright (c) 1995-1998 by John Birrell <jb@cimlogic.com.au>
    357 // All rights reserved.
    358 //
    359 // Redistribution and use in source and binary forms, with or without
    360 // modification, are permitted provided that the following conditions
    361 // are met:
    362 // 1. Redistributions of source code must retain the above copyright
    363 //    notice, this list of conditions and the following disclaimer.
    364 // 2. Redistributions in binary form must reproduce the above copyright
    365 //    notice, this list of conditions and the following disclaimer in the
    366 //    documentation and/or other materials provided with the distribution.
    367 // 3. All advertising materials mentioning features or use of this software
    368 //    must display the following acknowledgement:
    369 //  This product includes software developed by Chris Provenzano.
    370 // 4. The name of Chris Provenzano may not be used to endorse or promote
    371 //	  products derived from this software without specific prior written
    372 //	  permission.
    373 //
    374 // THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND
    375 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    376 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    377 // ARE DISCLAIMED.  IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY
    378 // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    379 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    380 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    381 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    382 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    383 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    384 // SUCH DAMAGE.
    385 //
    386 // $FreeBSD: pthread.h,v 1.13 1999/07/31 08:36:07 rse Exp $
    387 
    388 // Header files.
    389 //	$OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
    390 //	$NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
    391 
    392 // -
    393 // Copyright (c) 1982, 1986, 1991, 1993
    394 //	The Regents of the University of California.  All rights reserved.
    395 // (c) UNIX System Laboratories, Inc.
    396 // All or some portions of this file are derived from material licensed
    397 // to the University of California by American Telephone and Telegraph
    398 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
    399 // the permission of UNIX System Laboratories, Inc.
    400 //
    401 // Redistribution and use in source and binary forms, with or without
    402 // modification, are permitted provided that the following conditions
    403 // are met:
    404 // 1. Redistributions of source code must retain the above copyright
    405 //    notice, this list of conditions and the following disclaimer.
    406 // 2. Redistributions in binary form must reproduce the above copyright
    407 //    notice, this list of conditions and the following disclaimer in the
    408 //    documentation and/or other materials provided with the distribution.
    409 // 3. Neither the name of the University nor the names of its contributors
    410 //    may be used to endorse or promote products derived from this software
    411 //    without specific prior written permission.
    412 //
    413 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    414 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    415 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    416 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    417 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    418 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    419 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    420 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    421 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    422 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    423 // SUCH DAMAGE.
    424 //
    425 //	@(#)types.h	8.4 (Berkeley) 1/21/94
    426 
    427 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
    428 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
    429 
    430 // Copyright (c) 1991, 1993
    431 //	The Regents of the University of California.  All rights reserved.
    432 //
    433 // This code is derived from software contributed to Berkeley by
    434 // Berkeley Software Design, Inc.
    435 //
    436 // Redistribution and use in source and binary forms, with or without
    437 // modification, are permitted provided that the following conditions
    438 // are met:
    439 // 1. Redistributions of source code must retain the above copyright
    440 //    notice, this list of conditions and the following disclaimer.
    441 // 2. Redistributions in binary form must reproduce the above copyright
    442 //    notice, this list of conditions and the following disclaimer in the
    443 //    documentation and/or other materials provided with the distribution.
    444 // 3. Neither the name of the University nor the names of its contributors
    445 //    may be used to endorse or promote products derived from this software
    446 //    without specific prior written permission.
    447 //
    448 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    449 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    450 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    451 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    452 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    453 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    454 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    455 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    456 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    457 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    458 // SUCH DAMAGE.
    459 //
    460 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
    461 
    462 //	$OpenBSD: cdefs.h,v 1.1 2016/12/17 23:38:33 patrick Exp $
    463 
    464 // Macro to test if we're using a specific version of gcc or later.
    465 
    466 // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
    467 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
    468 // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
    469 // in between its arguments.  Do not use __CONCAT on double-quoted strings,
    470 // such as those from the __STRING macro: to concatenate strings just put
    471 // them next to each other.
    472 
    473 // GCC1 and some versions of GCC2 declare dead (non-returning) and
    474 // pure (no side effects) functions using "volatile" and "const";
    475 // unfortunately, these then cause warnings under "-ansi -pedantic".
    476 // GCC >= 2.5 uses the __attribute__((attrs)) style.  All of these
    477 // work for GNU C++ (modulo a slight glitch in the C++ grammar in
    478 // the distribution version of 2.5.5).
    479 
    480 // __returns_twice makes the compiler not assume the function
    481 // only returns once.  This affects registerisation of variables:
    482 // even local variables need to be in memory across such a call.
    483 // Example: setjmp()
    484 
    485 // __only_inline makes the compiler only use this function definition
    486 // for inlining; references that can't be inlined will be left as
    487 // external references instead of generating a local copy.  The
    488 // matching library should include a simple extern definition for
    489 // the function to handle those references.  c.f. ctype.h
    490 
    491 // GNU C version 2.96 adds explicit branch prediction so that
    492 // the CPU back-end can hint the processor and also so that
    493 // code blocks can be reordered such that the predicted path
    494 // sees a more linear flow, thus improving cache behavior, etc.
    495 //
    496 // The following two macros provide us with a way to utilize this
    497 // compiler feature.  Use __predict_true() if you expect the expression
    498 // to evaluate to true, and __predict_false() if you expect the
    499 // expression to evaluate to false.
    500 //
    501 // A few notes about usage:
    502 //
    503 //	* Generally, __predict_false() error condition checks (unless
    504 //	  you have some _strong_ reason to do otherwise, in which case
    505 //	  document it), and/or __predict_true() `no-error' condition
    506 //	  checks, assuming you want to optimize for the no-error case.
    507 //
    508 //	* Other than that, if you don't know the likelihood of a test
    509 //	  succeeding from empirical or other `hard' evidence, don't
    510 //	  make predictions.
    511 //
    512 //	* These are meant to be used in places that are run `a lot'.
    513 //	  It is wasteful to make predictions in code that is run
    514 //	  seldomly (e.g. at subsystem initialization time) as the
    515 //	  basic block reordering that this affects can often generate
    516 //	  larger code.
    517 
    518 // Delete pseudo-keywords wherever they are not available or needed.
    519 
    520 // The __packed macro indicates that a variable or structure members
    521 // should have the smallest possible alignment, despite any host CPU
    522 // alignment requirements.
    523 //
    524 // The __aligned(x) macro specifies the minimum alignment of a
    525 // variable or structure.
    526 //
    527 // These macros together are useful for describing the layout and
    528 // alignment of messages exchanged with hardware or other systems.
    529 
    530 // "The nice thing about standards is that there are so many to choose from."
    531 // There are a number of "feature test macros" specified by (different)
    532 // standards that determine which interfaces and types the header files
    533 // should expose.
    534 //
    535 // Because of inconsistencies in these macros, we define our own
    536 // set in the private name space that end in _VISIBLE.  These are
    537 // always defined and so headers can test their values easily.
    538 // Things can get tricky when multiple feature macros are defined.
    539 // We try to take the union of all the features requested.
    540 //
    541 // The following macros are guaranteed to have a value after cdefs.h
    542 // has been included:
    543 //	__POSIX_VISIBLE
    544 //	__XPG_VISIBLE
    545 //	__ISO_C_VISIBLE
    546 //	__BSD_VISIBLE
    547 
    548 // X/Open Portability Guides and Single Unix Specifications.
    549 // _XOPEN_SOURCE				XPG3
    550 // _XOPEN_SOURCE && _XOPEN_VERSION = 4		XPG4
    551 // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1	XPG4v2
    552 // _XOPEN_SOURCE == 500				XPG5
    553 // _XOPEN_SOURCE == 520				XPG5v2
    554 // _XOPEN_SOURCE == 600				POSIX 1003.1-2001 with XSI
    555 // _XOPEN_SOURCE == 700				POSIX 1003.1-2008 with XSI
    556 //
    557 // The XPG spec implies a specific value for _POSIX_C_SOURCE.
    558 
    559 // POSIX macros, these checks must follow the XOPEN ones above.
    560 //
    561 // _POSIX_SOURCE == 1		1003.1-1988 (superseded by _POSIX_C_SOURCE)
    562 // _POSIX_C_SOURCE == 1		1003.1-1990
    563 // _POSIX_C_SOURCE == 2		1003.2-1992
    564 // _POSIX_C_SOURCE == 199309L	1003.1b-1993
    565 // _POSIX_C_SOURCE == 199506L   1003.1c-1995, 1003.1i-1995,
    566 //				and the omnibus ISO/IEC 9945-1:1996
    567 // _POSIX_C_SOURCE == 200112L   1003.1-2001
    568 // _POSIX_C_SOURCE == 200809L   1003.1-2008
    569 //
    570 // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
    571 // this may be overridden by the _ISOC99_SOURCE macro later.
    572 
    573 // _ANSI_SOURCE means to expose ANSI C89 interfaces only.
    574 // If the user defines it in addition to one of the POSIX or XOPEN
    575 // macros, assume the POSIX/XOPEN macro(s) should take precedence.
    576 
    577 // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
    578 // override any of the other macros since they are non-exclusive.
    579 
    580 // Finally deal with BSD-specific interfaces that are not covered
    581 // by any standards.  We expose these when none of the POSIX or XPG
    582 // macros is defined or if the user explicitly asks for them.
    583 
    584 // Default values.
    585 
    586 //	$OpenBSD: endian.h,v 1.25 2014/12/21 04:49:00 guenther Exp $
    587 
    588 // -
    589 // Copyright (c) 1997 Niklas Hallqvist.  All rights reserved.
    590 //
    591 // Redistribution and use in source and binary forms, with or without
    592 // modification, are permitted provided that the following conditions
    593 // are met:
    594 // 1. Redistributions of source code must retain the above copyright
    595 //    notice, this list of conditions and the following disclaimer.
    596 // 2. Redistributions in binary form must reproduce the above copyright
    597 //    notice, this list of conditions and the following disclaimer in the
    598 //    documentation and/or other materials provided with the distribution.
    599 //
    600 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    601 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    602 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    603 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
    604 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    605 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    606 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    607 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    608 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    609 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    610 
    611 // Public definitions for little- and big-endian systems.
    612 // This file should be included as <endian.h> in userspace and as
    613 // <sys/endian.h> in the kernel.
    614 //
    615 // System headers that need endian information but that can't or don't
    616 // want to export the public names here should include <sys/_endian.h>
    617 // and use the internal names: _BYTE_ORDER, _*_ENDIAN, etc.
    618 
    619 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
    620 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
    621 
    622 // Copyright (c) 1991, 1993
    623 //	The Regents of the University of California.  All rights reserved.
    624 //
    625 // This code is derived from software contributed to Berkeley by
    626 // Berkeley Software Design, Inc.
    627 //
    628 // Redistribution and use in source and binary forms, with or without
    629 // modification, are permitted provided that the following conditions
    630 // are met:
    631 // 1. Redistributions of source code must retain the above copyright
    632 //    notice, this list of conditions and the following disclaimer.
    633 // 2. Redistributions in binary form must reproduce the above copyright
    634 //    notice, this list of conditions and the following disclaimer in the
    635 //    documentation and/or other materials provided with the distribution.
    636 // 3. Neither the name of the University nor the names of its contributors
    637 //    may be used to endorse or promote products derived from this software
    638 //    without specific prior written permission.
    639 //
    640 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    641 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    642 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    643 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    644 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    645 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    646 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    647 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    648 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    649 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    650 // SUCH DAMAGE.
    651 //
    652 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
    653 
    654 //	$OpenBSD: _endian.h,v 1.8 2018/01/11 23:13:37 dlg Exp $
    655 
    656 // -
    657 // Copyright (c) 1997 Niklas Hallqvist.  All rights reserved.
    658 //
    659 // Redistribution and use in source and binary forms, with or without
    660 // modification, are permitted provided that the following conditions
    661 // are met:
    662 // 1. Redistributions of source code must retain the above copyright
    663 //    notice, this list of conditions and the following disclaimer.
    664 // 2. Redistributions in binary form must reproduce the above copyright
    665 //    notice, this list of conditions and the following disclaimer in the
    666 //    documentation and/or other materials provided with the distribution.
    667 //
    668 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    669 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    670 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    671 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
    672 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    673 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    674 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    675 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    676 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    677 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    678 
    679 // Internal endianness macros.  This pulls in <machine/endian.h> to
    680 // get the correct setting direction for the platform and sets internal
    681 // ('__' prefix) macros appropriately.
    682 
    683 //	$OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $
    684 
    685 // -
    686 // Copyright (c) 1990, 1993
    687 //	The Regents of the University of California.  All rights reserved.
    688 //
    689 // Redistribution and use in source and binary forms, with or without
    690 // modification, are permitted provided that the following conditions
    691 // are met:
    692 // 1. Redistributions of source code must retain the above copyright
    693 //    notice, this list of conditions and the following disclaimer.
    694 // 2. Redistributions in binary form must reproduce the above copyright
    695 //    notice, this list of conditions and the following disclaimer in the
    696 //    documentation and/or other materials provided with the distribution.
    697 // 3. Neither the name of the University nor the names of its contributors
    698 //    may be used to endorse or promote products derived from this software
    699 //    without specific prior written permission.
    700 //
    701 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    702 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    703 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    704 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    705 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    706 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    707 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    708 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    709 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    710 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    711 // SUCH DAMAGE.
    712 //
    713 //	@(#)types.h	8.3 (Berkeley) 1/5/94
    714 
    715 // $OpenBSD: _types.h,v 1.4 2018/03/05 01:15:25 deraadt Exp $
    716 // -
    717 // Copyright (c) 1990, 1993
    718 //	The Regents of the University of California.  All rights reserved.
    719 //
    720 // Redistribution and use in source and binary forms, with or without
    721 // modification, are permitted provided that the following conditions
    722 // are met:
    723 // 1. Redistributions of source code must retain the above copyright
    724 //    notice, this list of conditions and the following disclaimer.
    725 // 2. Redistributions in binary form must reproduce the above copyright
    726 //    notice, this list of conditions and the following disclaimer in the
    727 //    documentation and/or other materials provided with the distribution.
    728 // 3. Neither the name of the University nor the names of its contributors
    729 //    may be used to endorse or promote products derived from this software
    730 //    without specific prior written permission.
    731 //
    732 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    733 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    734 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    735 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    736 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    737 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    738 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    739 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    740 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    741 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    742 // SUCH DAMAGE.
    743 //
    744 //	@(#)types.h	8.3 (Berkeley) 1/5/94
    745 //	@(#)ansi.h	8.2 (Berkeley) 1/4/94
    746 
    747 // _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned
    748 // value for all data types (int, long, ...).   The result is an
    749 // unsigned long and must be cast to any desired pointer type.
    750 //
    751 // _ALIGNED_POINTER is a boolean macro that checks whether an address
    752 // is valid to fetch data elements of type t from on this architecture.
    753 // This does not reflect the optimal alignment, just the possibility
    754 // (within reasonable limits).
    755 
    756 // 7.18.1.1 Exact-width integer types
    757 type X__int8_t = int8     /* _types.h:60:22 */
    758 type X__uint8_t = uint8   /* _types.h:61:24 */
    759 type X__int16_t = int16   /* _types.h:62:17 */
    760 type X__uint16_t = uint16 /* _types.h:63:25 */
    761 type X__int32_t = int32   /* _types.h:64:15 */
    762 type X__uint32_t = uint32 /* _types.h:65:23 */
    763 // LONGLONG
    764 type X__int64_t = int64 /* _types.h:67:20 */
    765 // LONGLONG
    766 type X__uint64_t = uint64 /* _types.h:69:28 */
    767 
    768 // 7.18.1.2 Minimum-width integer types
    769 type X__int_least8_t = X__int8_t     /* _types.h:72:19 */
    770 type X__uint_least8_t = X__uint8_t   /* _types.h:73:20 */
    771 type X__int_least16_t = X__int16_t   /* _types.h:74:20 */
    772 type X__uint_least16_t = X__uint16_t /* _types.h:75:21 */
    773 type X__int_least32_t = X__int32_t   /* _types.h:76:20 */
    774 type X__uint_least32_t = X__uint32_t /* _types.h:77:21 */
    775 type X__int_least64_t = X__int64_t   /* _types.h:78:20 */
    776 type X__uint_least64_t = X__uint64_t /* _types.h:79:21 */
    777 
    778 // 7.18.1.3 Fastest minimum-width integer types
    779 type X__int_fast8_t = X__int32_t    /* _types.h:82:20 */
    780 type X__uint_fast8_t = X__uint32_t  /* _types.h:83:21 */
    781 type X__int_fast16_t = X__int32_t   /* _types.h:84:20 */
    782 type X__uint_fast16_t = X__uint32_t /* _types.h:85:21 */
    783 type X__int_fast32_t = X__int32_t   /* _types.h:86:20 */
    784 type X__uint_fast32_t = X__uint32_t /* _types.h:87:21 */
    785 type X__int_fast64_t = X__int64_t   /* _types.h:88:20 */
    786 type X__uint_fast64_t = X__uint64_t /* _types.h:89:21 */
    787 
    788 // 7.18.1.4 Integer types capable of holding object pointers
    789 type X__intptr_t = int64   /* _types.h:104:16 */
    790 type X__uintptr_t = uint64 /* _types.h:105:24 */
    791 
    792 // 7.18.1.5 Greatest-width integer types
    793 type X__intmax_t = X__int64_t   /* _types.h:108:20 */
    794 type X__uintmax_t = X__uint64_t /* _types.h:109:21 */
    795 
    796 // Register size
    797 type X__register_t = int64 /* _types.h:112:16 */
    798 
    799 // VM system types
    800 type X__vaddr_t = uint64 /* _types.h:115:24 */
    801 type X__paddr_t = uint64 /* _types.h:116:24 */
    802 type X__vsize_t = uint64 /* _types.h:117:24 */
    803 type X__psize_t = uint64 /* _types.h:118:24 */
    804 
    805 // Standard system types
    806 type X__double_t = float64           /* _types.h:121:18 */
    807 type X__float_t = float32            /* _types.h:122:17 */
    808 type X__ptrdiff_t = int64            /* _types.h:123:16 */
    809 type X__size_t = uint64              /* _types.h:124:24 */
    810 type X__ssize_t = int64              /* _types.h:125:16 */
    811 type X__va_list = X__builtin_va_list /* _types.h:127:27 */
    812 
    813 // Wide character support types
    814 type X__wchar_t = int32     /* _types.h:137:15 */
    815 type X__wint_t = int32      /* _types.h:140:15 */
    816 type X__rune_t = int32      /* _types.h:141:15 */
    817 type X__wctrans_t = uintptr /* _types.h:142:14 */
    818 type X__wctype_t = uintptr  /* _types.h:143:14 */
    819 
    820 type X__blkcnt_t = X__int64_t    /* _types.h:39:19 */ // blocks allocated for file
    821 type X__blksize_t = X__int32_t   /* _types.h:40:19 */ // optimal blocksize for I/O
    822 type X__clock_t = X__int64_t     /* _types.h:41:19 */ // ticks in CLOCKS_PER_SEC
    823 type X__clockid_t = X__int32_t   /* _types.h:42:19 */ // CLOCK_* identifiers
    824 type X__cpuid_t = uint64         /* _types.h:43:23 */ // CPU id
    825 type X__dev_t = X__int32_t       /* _types.h:44:19 */ // device number
    826 type X__fixpt_t = X__uint32_t    /* _types.h:45:20 */ // fixed point number
    827 type X__fsblkcnt_t = X__uint64_t /* _types.h:46:20 */ // file system block count
    828 type X__fsfilcnt_t = X__uint64_t /* _types.h:47:20 */ // file system file count
    829 type X__gid_t = X__uint32_t      /* _types.h:48:20 */ // group id
    830 type X__id_t = X__uint32_t       /* _types.h:49:20 */ // may contain pid, uid or gid
    831 type X__in_addr_t = X__uint32_t  /* _types.h:50:20 */ // base type for internet address
    832 type X__in_port_t = X__uint16_t  /* _types.h:51:20 */ // IP port type
    833 type X__ino_t = X__uint64_t      /* _types.h:52:20 */ // inode number
    834 type X__key_t = int64            /* _types.h:53:15 */ // IPC key (for Sys V IPC)
    835 type X__mode_t = X__uint32_t     /* _types.h:54:20 */ // permissions
    836 type X__nlink_t = X__uint32_t    /* _types.h:55:20 */ // link count
    837 type X__off_t = X__int64_t       /* _types.h:56:19 */ // file offset or size
    838 type X__pid_t = X__int32_t       /* _types.h:57:19 */ // process id
    839 type X__rlim_t = X__uint64_t     /* _types.h:58:20 */ // resource limit
    840 type X__sa_family_t = X__uint8_t /* _types.h:59:19 */ // sockaddr address family type
    841 type X__segsz_t = X__int32_t     /* _types.h:60:19 */ // segment size
    842 type X__socklen_t = X__uint32_t  /* _types.h:61:20 */ // length type for network syscalls
    843 type X__suseconds_t = int64      /* _types.h:62:15 */ // microseconds (signed)
    844 type X__time_t = X__int64_t      /* _types.h:63:19 */ // epoch time
    845 type X__timer_t = X__int32_t     /* _types.h:64:19 */ // POSIX timer identifiers
    846 type X__uid_t = X__uint32_t      /* _types.h:65:20 */ // user id
    847 type X__useconds_t = X__uint32_t /* _types.h:66:20 */ // microseconds
    848 
    849 // mbstate_t is an opaque object to keep conversion state, during multibyte
    850 // stream conversions. The content must not be referenced by user programs.
    851 type X__mbstate_t = struct {
    852 	F__ccgo_pad1 [0]uint64
    853 	F__mbstate8  [128]int8
    854 } /* _types.h:75:3 */
    855 
    856 // Tell sys/endian.h we have MD variants of the swap macros.
    857 
    858 // Note that these macros evaluate their arguments several times.
    859 
    860 // Public names
    861 
    862 // These are specified to be function-like macros to match the spec
    863 
    864 // POSIX names
    865 
    866 // original BSD names
    867 
    868 // these were exposed here before
    869 
    870 // ancient stuff
    871 
    872 type U_char = uint8   /* types.h:51:23 */
    873 type U_short = uint16 /* types.h:52:24 */
    874 type U_int = uint32   /* types.h:53:22 */
    875 type U_long = uint64  /* types.h:54:23 */
    876 
    877 type Unchar = uint8  /* types.h:56:23 */ // Sys V compatibility
    878 type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility
    879 type Uint = uint32   /* types.h:58:22 */ // Sys V compatibility
    880 type Ulong = uint64  /* types.h:59:23 */ // Sys V compatibility
    881 
    882 type Cpuid_t = X__cpuid_t       /* types.h:61:19 */ // CPU id
    883 type Register_t = X__register_t /* types.h:62:22 */ // register-sized type
    884 
    885 // XXX The exact-width bit types should only be exposed if __BSD_VISIBLE
    886 //     but the rest of the includes are not ready for that yet.
    887 
    888 type Int8_t = X__int8_t /* types.h:75:19 */
    889 
    890 type Uint8_t = X__uint8_t /* types.h:80:20 */
    891 
    892 type Int16_t = X__int16_t /* types.h:85:20 */
    893 
    894 type Uint16_t = X__uint16_t /* types.h:90:21 */
    895 
    896 type Int32_t = X__int32_t /* types.h:95:20 */
    897 
    898 type Uint32_t = X__uint32_t /* types.h:100:21 */
    899 
    900 type Int64_t = X__int64_t /* types.h:105:20 */
    901 
    902 type Uint64_t = X__uint64_t /* types.h:110:21 */
    903 
    904 // BSD-style unsigned bits types
    905 type U_int8_t = X__uint8_t   /* types.h:114:19 */
    906 type U_int16_t = X__uint16_t /* types.h:115:20 */
    907 type U_int32_t = X__uint32_t /* types.h:116:20 */
    908 type U_int64_t = X__uint64_t /* types.h:117:20 */
    909 
    910 // quads, deprecated in favor of 64 bit int types
    911 type Quad_t = X__int64_t    /* types.h:120:19 */
    912 type U_quad_t = X__uint64_t /* types.h:121:20 */
    913 
    914 // VM system types
    915 type Vaddr_t = X__vaddr_t /* types.h:125:19 */
    916 type Paddr_t = X__paddr_t /* types.h:126:19 */
    917 type Vsize_t = X__vsize_t /* types.h:127:19 */
    918 type Psize_t = X__psize_t /* types.h:128:19 */
    919 
    920 // Standard system types
    921 type Blkcnt_t = X__blkcnt_t       /* types.h:132:20 */ // blocks allocated for file
    922 type Blksize_t = X__blksize_t     /* types.h:133:21 */ // optimal blocksize for I/O
    923 type Caddr_t = uintptr            /* types.h:134:14 */ // core address
    924 type Daddr32_t = X__int32_t       /* types.h:135:19 */ // 32-bit disk address
    925 type Daddr_t = X__int64_t         /* types.h:136:19 */ // 64-bit disk address
    926 type Dev_t = X__dev_t             /* types.h:137:18 */ // device number
    927 type Fixpt_t = X__fixpt_t         /* types.h:138:19 */ // fixed point number
    928 type Gid_t = X__gid_t             /* types.h:139:18 */ // group id
    929 type Id_t = X__id_t               /* types.h:140:17 */ // may contain pid, uid or gid
    930 type Ino_t = X__ino_t             /* types.h:141:18 */ // inode number
    931 type Key_t = X__key_t             /* types.h:142:18 */ // IPC key (for Sys V IPC)
    932 type Mode_t = X__mode_t           /* types.h:143:18 */ // permissions
    933 type Nlink_t = X__nlink_t         /* types.h:144:19 */ // link count
    934 type Rlim_t = X__rlim_t           /* types.h:145:18 */ // resource limit
    935 type Segsz_t = X__segsz_t         /* types.h:146:19 */ // segment size
    936 type Uid_t = X__uid_t             /* types.h:147:18 */ // user id
    937 type Useconds_t = X__useconds_t   /* types.h:148:22 */ // microseconds
    938 type Suseconds_t = X__suseconds_t /* types.h:149:23 */ // microseconds (signed)
    939 type Fsblkcnt_t = X__fsblkcnt_t   /* types.h:150:22 */ // file system block count
    940 type Fsfilcnt_t = X__fsfilcnt_t   /* types.h:151:22 */ // file system file count
    941 
    942 // The following types may be defined in multiple header files.
    943 type Clock_t = X__clock_t /* types.h:158:19 */
    944 
    945 type Clockid_t = X__clockid_t /* types.h:163:21 */
    946 
    947 type Pid_t = X__pid_t /* types.h:168:18 */
    948 
    949 type Ssize_t = X__ssize_t /* types.h:178:19 */
    950 
    951 type Time_t = X__time_t /* types.h:183:18 */
    952 
    953 type Timer_t = X__timer_t /* types.h:188:19 */
    954 
    955 type Off_t = X__off_t /* types.h:193:18 */
    956 
    957 // Major, minor numbers, dev_t's.
    958 
    959 //	$OpenBSD: time.h,v 1.62 2022/07/23 22:58:51 cheloha Exp $
    960 //	$NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $
    961 
    962 // Copyright (c) 1982, 1986, 1993
    963 //	The Regents of the University of California.  All rights reserved.
    964 //
    965 // Redistribution and use in source and binary forms, with or without
    966 // modification, are permitted provided that the following conditions
    967 // are met:
    968 // 1. Redistributions of source code must retain the above copyright
    969 //    notice, this list of conditions and the following disclaimer.
    970 // 2. Redistributions in binary form must reproduce the above copyright
    971 //    notice, this list of conditions and the following disclaimer in the
    972 //    documentation and/or other materials provided with the distribution.
    973 // 3. Neither the name of the University nor the names of its contributors
    974 //    may be used to endorse or promote products derived from this software
    975 //    without specific prior written permission.
    976 //
    977 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    978 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    979 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    980 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    981 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    982 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    983 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    984 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    985 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    986 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    987 // SUCH DAMAGE.
    988 //
    989 //	@(#)time.h	8.2 (Berkeley) 7/10/94
    990 
    991 //	$OpenBSD: select.h,v 1.17 2016/09/12 19:41:20 guenther Exp $
    992 
    993 // -
    994 // Copyright (c) 1992, 1993
    995 //	The Regents of the University of California.  All rights reserved.
    996 //
    997 // Redistribution and use in source and binary forms, with or without
    998 // modification, are permitted provided that the following conditions
    999 // are met:
   1000 // 1. Redistributions of source code must retain the above copyright
   1001 //    notice, this list of conditions and the following disclaimer.
   1002 // 2. Redistributions in binary form must reproduce the above copyright
   1003 //    notice, this list of conditions and the following disclaimer in the
   1004 //    documentation and/or other materials provided with the distribution.
   1005 // 3. Neither the name of the University nor the names of its contributors
   1006 //    may be used to endorse or promote products derived from this software
   1007 //    without specific prior written permission.
   1008 //
   1009 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1010 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1011 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1012 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1013 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1014 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1015 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1016 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1017 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1018 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1019 // SUCH DAMAGE.
   1020 //
   1021 //	@(#)select.h	8.2 (Berkeley) 1/4/94
   1022 
   1023 //	$OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
   1024 //	$NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
   1025 
   1026 // -
   1027 // Copyright (c) 1982, 1986, 1991, 1993
   1028 //	The Regents of the University of California.  All rights reserved.
   1029 // (c) UNIX System Laboratories, Inc.
   1030 // All or some portions of this file are derived from material licensed
   1031 // to the University of California by American Telephone and Telegraph
   1032 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   1033 // the permission of UNIX System Laboratories, Inc.
   1034 //
   1035 // Redistribution and use in source and binary forms, with or without
   1036 // modification, are permitted provided that the following conditions
   1037 // are met:
   1038 // 1. Redistributions of source code must retain the above copyright
   1039 //    notice, this list of conditions and the following disclaimer.
   1040 // 2. Redistributions in binary form must reproduce the above copyright
   1041 //    notice, this list of conditions and the following disclaimer in the
   1042 //    documentation and/or other materials provided with the distribution.
   1043 // 3. Neither the name of the University nor the names of its contributors
   1044 //    may be used to endorse or promote products derived from this software
   1045 //    without specific prior written permission.
   1046 //
   1047 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1048 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1049 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1050 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1051 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1052 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1053 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1054 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1055 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1056 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1057 // SUCH DAMAGE.
   1058 //
   1059 //	@(#)types.h	8.4 (Berkeley) 1/21/94
   1060 
   1061 type Timeval = struct {
   1062 	Ftv_sec  Time_t
   1063 	Ftv_usec Suseconds_t
   1064 } /* select.h:41:1 */
   1065 
   1066 type Timespec = struct {
   1067 	Ftv_sec  Time_t
   1068 	Ftv_nsec int64
   1069 } /* select.h:49:1 */
   1070 
   1071 // Select uses bit masks of file descriptors in longs.  These macros
   1072 // manipulate such bit fields (the filesystem macros use chars).
   1073 // FD_SETSIZE may be defined by the user, but the default here should
   1074 // be enough for most uses.
   1075 
   1076 // We don't want to pollute the namespace with select(2) internals.
   1077 // Non-underscore versions are exposed later #if __BSD_VISIBLE
   1078 type X__fd_mask = Uint32_t /* select.h:70:18 */
   1079 
   1080 type Fd_set1 = struct{ Ffds_bits [32]X__fd_mask } /* select.h:74:9 */
   1081 
   1082 type Fd_set = Fd_set1 /* select.h:76:3 */
   1083 
   1084 type Sigset_t = uint32 /* select.h:122:22 */
   1085 
   1086 type Timezone = struct {
   1087 	Ftz_minuteswest int32
   1088 	Ftz_dsttime     int32
   1089 } /* time.h:72:1 */
   1090 
   1091 // Operations on timevals.
   1092 
   1093 // Operations on timespecs.
   1094 
   1095 // Names of the interval timers, and structure
   1096 // defining a timer setting.
   1097 
   1098 type Itimerval = struct {
   1099 	Fit_interval struct {
   1100 		Ftv_sec  Time_t
   1101 		Ftv_usec Suseconds_t
   1102 	}
   1103 	Fit_value struct {
   1104 		Ftv_sec  Time_t
   1105 		Ftv_usec Suseconds_t
   1106 	}
   1107 } /* time.h:148:1 */
   1108 
   1109 // clock information structure for sysctl({CTL_KERN, KERN_CLOCKRATE})
   1110 type Clockinfo = struct {
   1111 	Fhz     int32
   1112 	Ftick   int32
   1113 	Fstathz int32
   1114 	Fprofhz int32
   1115 } /* time.h:157:1 */
   1116 
   1117 //	$OpenBSD: time.h,v 1.31 2018/10/30 16:28:42 guenther Exp $
   1118 //	$NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $
   1119 
   1120 // Copyright (c) 1989 The Regents of the University of California.
   1121 // All rights reserved.
   1122 //
   1123 // (c) UNIX System Laboratories, Inc.
   1124 // All or some portions of this file are derived from material licensed
   1125 // to the University of California by American Telephone and Telegraph
   1126 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   1127 // the permission of UNIX System Laboratories, Inc.
   1128 //
   1129 // Redistribution and use in source and binary forms, with or without
   1130 // modification, are permitted provided that the following conditions
   1131 // are met:
   1132 // 1. Redistributions of source code must retain the above copyright
   1133 //    notice, this list of conditions and the following disclaimer.
   1134 // 2. Redistributions in binary form must reproduce the above copyright
   1135 //    notice, this list of conditions and the following disclaimer in the
   1136 //    documentation and/or other materials provided with the distribution.
   1137 // 3. Neither the name of the University nor the names of its contributors
   1138 //    may be used to endorse or promote products derived from this software
   1139 //    without specific prior written permission.
   1140 //
   1141 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1142 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1143 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1144 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1145 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1146 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1147 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1148 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1149 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1150 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1151 // SUCH DAMAGE.
   1152 //
   1153 //	@(#)time.h	5.12 (Berkeley) 3/9/91
   1154 
   1155 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
   1156 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
   1157 
   1158 // Copyright (c) 1991, 1993
   1159 //	The Regents of the University of California.  All rights reserved.
   1160 //
   1161 // This code is derived from software contributed to Berkeley by
   1162 // Berkeley Software Design, Inc.
   1163 //
   1164 // Redistribution and use in source and binary forms, with or without
   1165 // modification, are permitted provided that the following conditions
   1166 // are met:
   1167 // 1. Redistributions of source code must retain the above copyright
   1168 //    notice, this list of conditions and the following disclaimer.
   1169 // 2. Redistributions in binary form must reproduce the above copyright
   1170 //    notice, this list of conditions and the following disclaimer in the
   1171 //    documentation and/or other materials provided with the distribution.
   1172 // 3. Neither the name of the University nor the names of its contributors
   1173 //    may be used to endorse or promote products derived from this software
   1174 //    without specific prior written permission.
   1175 //
   1176 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1177 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1178 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1179 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1180 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1181 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1182 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1183 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1184 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1185 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1186 // SUCH DAMAGE.
   1187 //
   1188 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
   1189 
   1190 //	$OpenBSD: _null.h,v 1.2 2016/09/09 22:07:58 millert Exp $
   1191 
   1192 // Written by Todd C. Miller, September 9, 2016
   1193 // Public domain.
   1194 
   1195 //	$OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $
   1196 
   1197 // -
   1198 // Copyright (c) 1990, 1993
   1199 //	The Regents of the University of California.  All rights reserved.
   1200 //
   1201 // Redistribution and use in source and binary forms, with or without
   1202 // modification, are permitted provided that the following conditions
   1203 // are met:
   1204 // 1. Redistributions of source code must retain the above copyright
   1205 //    notice, this list of conditions and the following disclaimer.
   1206 // 2. Redistributions in binary form must reproduce the above copyright
   1207 //    notice, this list of conditions and the following disclaimer in the
   1208 //    documentation and/or other materials provided with the distribution.
   1209 // 3. Neither the name of the University nor the names of its contributors
   1210 //    may be used to endorse or promote products derived from this software
   1211 //    without specific prior written permission.
   1212 //
   1213 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1214 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1215 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1216 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1217 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1218 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1219 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1220 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1221 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1222 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1223 // SUCH DAMAGE.
   1224 //
   1225 //	@(#)types.h	8.3 (Berkeley) 1/5/94
   1226 
   1227 // Frequency of the clock ticks reported by times().  Deprecated - use
   1228 // sysconf(_SC_CLK_TCK) instead.  (Removed in 1003.1-2001.)
   1229 
   1230 //	$OpenBSD: _time.h,v 1.9 2017/12/18 05:51:53 cheloha Exp $
   1231 
   1232 // Copyright (c) 1982, 1986, 1993
   1233 //	The Regents of the University of California.  All rights reserved.
   1234 //
   1235 // Redistribution and use in source and binary forms, with or without
   1236 // modification, are permitted provided that the following conditions
   1237 // are met:
   1238 // 1. Redistributions of source code must retain the above copyright
   1239 //    notice, this list of conditions and the following disclaimer.
   1240 // 2. Redistributions in binary form must reproduce the above copyright
   1241 //    notice, this list of conditions and the following disclaimer in the
   1242 //    documentation and/or other materials provided with the distribution.
   1243 // 3. Neither the name of the University nor the names of its contributors
   1244 //    may be used to endorse or promote products derived from this software
   1245 //    without specific prior written permission.
   1246 //
   1247 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1248 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1249 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1250 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1251 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1252 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1253 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1254 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1255 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1256 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1257 // SUCH DAMAGE.
   1258 
   1259 // Per-process and per-thread clocks encode the PID or TID into the
   1260 // high bits, with the type in the bottom bits
   1261 
   1262 // Structure defined by POSIX 1003.1b to be like a itimerval,
   1263 // but with timespecs. Used in the timer_*() system calls.
   1264 type Itimerspec = struct {
   1265 	Fit_interval struct {
   1266 		Ftv_sec  Time_t
   1267 		Ftv_nsec int64
   1268 	}
   1269 	Fit_value struct {
   1270 		Ftv_sec  Time_t
   1271 		Ftv_nsec int64
   1272 	}
   1273 } /* _time.h:56:1 */
   1274 
   1275 type Locale_t = uintptr /* time.h:107:14 */
   1276 
   1277 type Tm = struct {
   1278 	Ftm_sec      int32
   1279 	Ftm_min      int32
   1280 	Ftm_hour     int32
   1281 	Ftm_mday     int32
   1282 	Ftm_mon      int32
   1283 	Ftm_year     int32
   1284 	Ftm_wday     int32
   1285 	Ftm_yday     int32
   1286 	Ftm_isdst    int32
   1287 	F__ccgo_pad1 [4]byte
   1288 	Ftm_gmtoff   int64
   1289 	Ftm_zone     uintptr
   1290 } /* time.h:111:1 */
   1291 
   1292 //	$OpenBSD: signal.h,v 1.29 2018/04/18 16:05:20 deraadt Exp $
   1293 //	$NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $
   1294 
   1295 // Copyright (c) 1982, 1986, 1989, 1991, 1993
   1296 //	The Regents of the University of California.  All rights reserved.
   1297 // (c) UNIX System Laboratories, Inc.
   1298 // All or some portions of this file are derived from material licensed
   1299 // to the University of California by American Telephone and Telegraph
   1300 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   1301 // the permission of UNIX System Laboratories, Inc.
   1302 //
   1303 // Redistribution and use in source and binary forms, with or without
   1304 // modification, are permitted provided that the following conditions
   1305 // are met:
   1306 // 1. Redistributions of source code must retain the above copyright
   1307 //    notice, this list of conditions and the following disclaimer.
   1308 // 2. Redistributions in binary form must reproduce the above copyright
   1309 //    notice, this list of conditions and the following disclaimer in the
   1310 //    documentation and/or other materials provided with the distribution.
   1311 // 3. Neither the name of the University nor the names of its contributors
   1312 //    may be used to endorse or promote products derived from this software
   1313 //    without specific prior written permission.
   1314 //
   1315 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1316 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1317 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1318 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1319 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1320 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1321 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1322 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1323 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1324 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1325 // SUCH DAMAGE.
   1326 //
   1327 //	@(#)signal.h	8.2 (Berkeley) 1/21/94
   1328 
   1329 // $OpenBSD: signal.h,v 1.2 2017/03/12 17:57:12 kettenis Exp $
   1330 // Copyright (c) 1992, 1993
   1331 //	The Regents of the University of California.  All rights reserved.
   1332 //
   1333 // This code is derived from software contributed to Berkeley by
   1334 // Ralph Campbell.
   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 // 3. Neither the name of the University nor the names of its contributors
   1345 //    may be used to endorse or promote products derived from this software
   1346 //    without specific prior written permission.
   1347 //
   1348 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1349 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1350 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1351 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1352 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1353 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1354 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1355 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1356 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1357 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1358 // SUCH DAMAGE.
   1359 //
   1360 //	@(#)signal.h	8.1 (Berkeley) 6/10/93
   1361 
   1362 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
   1363 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
   1364 
   1365 // Copyright (c) 1991, 1993
   1366 //	The Regents of the University of California.  All rights reserved.
   1367 //
   1368 // This code is derived from software contributed to Berkeley by
   1369 // Berkeley Software Design, Inc.
   1370 //
   1371 // Redistribution and use in source and binary forms, with or without
   1372 // modification, are permitted provided that the following conditions
   1373 // are met:
   1374 // 1. Redistributions of source code must retain the above copyright
   1375 //    notice, this list of conditions and the following disclaimer.
   1376 // 2. Redistributions in binary form must reproduce the above copyright
   1377 //    notice, this list of conditions and the following disclaimer in the
   1378 //    documentation and/or other materials provided with the distribution.
   1379 // 3. Neither the name of the University nor the names of its contributors
   1380 //    may be used to endorse or promote products derived from this software
   1381 //    without specific prior written permission.
   1382 //
   1383 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1384 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1385 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1386 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1387 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1388 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1389 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1390 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1391 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1392 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1393 // SUCH DAMAGE.
   1394 //
   1395 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
   1396 
   1397 type Sig_atomic_t = int32 /* signal.h:41:13 */
   1398 
   1399 // Information pushed on stack when a signal is delivered.
   1400 // This is used by the kernel to restore state following
   1401 // execution of the signal handler.  It is also made available
   1402 // to the handler to allow it to restore state properly if
   1403 // a non-standard exit is performed.
   1404 type Sigcontext = struct {
   1405 	F__sc_unused int32
   1406 	Fsc_mask     int32
   1407 	Fsc_sp       uint64
   1408 	Fsc_lr       uint64
   1409 	Fsc_elr      uint64
   1410 	Fsc_spsr     uint64
   1411 	Fsc_x        [30]uint64
   1412 	Fsc_cookie   int64
   1413 } /* signal.h:51:1 */
   1414 
   1415 // Language spec says we must list exactly one parameter, even though we
   1416 // actually supply three.  Ugh!
   1417 
   1418 //	$OpenBSD: siginfo.h,v 1.12 2017/04/07 04:48:44 guenther Exp $
   1419 
   1420 // Copyright (c) 1997 Theo de Raadt
   1421 // All rights reserved.
   1422 //
   1423 // Redistribution and use in source and binary forms, with or without
   1424 // modification, are permitted provided that the following conditions
   1425 // are met:
   1426 // 1. Redistributions of source code must retain the above copyright
   1427 //    notice, this list of conditions and the following disclaimer.
   1428 // 2. Redistributions in binary form must reproduce the above copyright
   1429 //    notice, this list of conditions and the following disclaimer in the
   1430 //    documentation and/or other materials provided with the distribution.
   1431 //
   1432 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   1433 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   1434 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   1435 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   1436 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   1437 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   1438 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   1439 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   1440 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   1441 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   1442 
   1443 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
   1444 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
   1445 
   1446 // Copyright (c) 1991, 1993
   1447 //	The Regents of the University of California.  All rights reserved.
   1448 //
   1449 // This code is derived from software contributed to Berkeley by
   1450 // Berkeley Software Design, Inc.
   1451 //
   1452 // Redistribution and use in source and binary forms, with or without
   1453 // modification, are permitted provided that the following conditions
   1454 // are met:
   1455 // 1. Redistributions of source code must retain the above copyright
   1456 //    notice, this list of conditions and the following disclaimer.
   1457 // 2. Redistributions in binary form must reproduce the above copyright
   1458 //    notice, this list of conditions and the following disclaimer in the
   1459 //    documentation and/or other materials provided with the distribution.
   1460 // 3. Neither the name of the University nor the names of its contributors
   1461 //    may be used to endorse or promote products derived from this software
   1462 //    without specific prior written permission.
   1463 //
   1464 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1465 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1466 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1467 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1468 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1469 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1470 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1471 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1472 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1473 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1474 // SUCH DAMAGE.
   1475 //
   1476 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
   1477 
   1478 type Sigval = struct {
   1479 	F__ccgo_pad1 [0]uint64
   1480 	Fsival_int   int32
   1481 	F__ccgo_pad2 [4]byte
   1482 } /* siginfo.h:33:1 */
   1483 
   1484 // Negative signal codes are reserved for future use for
   1485 // user generated signals.
   1486 
   1487 // The machine dependent signal codes (SIGILL, SIGFPE,
   1488 // SIGSEGV, and SIGBUS)
   1489 
   1490 // SIGTRAP signal codes
   1491 
   1492 // SIGCHLD signal codes
   1493 
   1494 //	$OpenBSD: time.h,v 1.62 2022/07/23 22:58:51 cheloha Exp $
   1495 //	$NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $
   1496 
   1497 // Copyright (c) 1982, 1986, 1993
   1498 //	The Regents of the University of California.  All rights reserved.
   1499 //
   1500 // Redistribution and use in source and binary forms, with or without
   1501 // modification, are permitted provided that the following conditions
   1502 // are met:
   1503 // 1. Redistributions of source code must retain the above copyright
   1504 //    notice, this list of conditions and the following disclaimer.
   1505 // 2. Redistributions in binary form must reproduce the above copyright
   1506 //    notice, this list of conditions and the following disclaimer in the
   1507 //    documentation and/or other materials provided with the distribution.
   1508 // 3. Neither the name of the University nor the names of its contributors
   1509 //    may be used to endorse or promote products derived from this software
   1510 //    without specific prior written permission.
   1511 //
   1512 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1513 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1514 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1515 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1516 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1517 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1518 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1519 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1520 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1521 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1522 // SUCH DAMAGE.
   1523 //
   1524 //	@(#)time.h	8.2 (Berkeley) 7/10/94
   1525 
   1526 type Siginfo_t = struct {
   1527 	Fsi_signo    int32
   1528 	Fsi_code     int32
   1529 	Fsi_errno    int32
   1530 	F__ccgo_pad1 [4]byte
   1531 	F_data       struct {
   1532 		F__ccgo_pad1 [0]uint64
   1533 		F_pad        [29]int32
   1534 		F__ccgo_pad2 [4]byte
   1535 	}
   1536 } /* siginfo.h:173:3 */
   1537 
   1538 // Signal vector "template" used in sigaction call.
   1539 type Sigaction = struct {
   1540 	F__sigaction_u struct{ F__sa_handler uintptr }
   1541 	Fsa_mask       Sigset_t
   1542 	Fsa_flags      int32
   1543 } /* signal.h:112:1 */
   1544 
   1545 // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler.
   1546 
   1547 // Flags for sigprocmask:
   1548 
   1549 type Sig_t = uintptr /* signal.h:146:14 */ // type of signal function
   1550 
   1551 // 4.3 compatibility:
   1552 // Signal vector "template" used in sigvec call.
   1553 type Sigvec = struct {
   1554 	Fsv_handler uintptr
   1555 	Fsv_mask    int32
   1556 	Fsv_flags   int32
   1557 } /* signal.h:152:1 */
   1558 
   1559 // Macro for converting signal number to a mask suitable for
   1560 // sigblock().
   1561 
   1562 // Structure used in sigaltstack call.
   1563 type Sigaltstack = struct {
   1564 	Fss_sp       uintptr
   1565 	Fss_size     Size_t
   1566 	Fss_flags    int32
   1567 	F__ccgo_pad1 [4]byte
   1568 } /* signal.h:176:9 */
   1569 
   1570 // Macro for converting signal number to a mask suitable for
   1571 // sigblock().
   1572 
   1573 // Structure used in sigaltstack call.
   1574 type Stack_t = Sigaltstack /* signal.h:180:3 */
   1575 
   1576 type Ucontext_t = Sigcontext /* signal.h:190:27 */
   1577 
   1578 //	$OpenBSD: limits.h,v 1.19 2015/01/20 22:09:50 tedu Exp $
   1579 //	$NetBSD: limits.h,v 1.7 1994/10/26 00:56:00 cgd Exp $
   1580 
   1581 // Copyright (c) 1988 The Regents of the University of California.
   1582 // All rights reserved.
   1583 //
   1584 // Redistribution and use in source and binary forms, with or without
   1585 // modification, are permitted provided that the following conditions
   1586 // are met:
   1587 // 1. Redistributions of source code must retain the above copyright
   1588 //    notice, this list of conditions and the following disclaimer.
   1589 // 2. Redistributions in binary form must reproduce the above copyright
   1590 //    notice, this list of conditions and the following disclaimer in the
   1591 //    documentation and/or other materials provided with the distribution.
   1592 // 3. Neither the name of the University nor the names of its contributors
   1593 //    may be used to endorse or promote products derived from this software
   1594 //    without specific prior written permission.
   1595 //
   1596 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1597 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1598 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1599 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1600 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1601 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1602 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1603 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1604 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1605 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1606 // SUCH DAMAGE.
   1607 //
   1608 //	@(#)limits.h	5.9 (Berkeley) 4/3/91
   1609 
   1610 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
   1611 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
   1612 
   1613 // Copyright (c) 1991, 1993
   1614 //	The Regents of the University of California.  All rights reserved.
   1615 //
   1616 // This code is derived from software contributed to Berkeley by
   1617 // Berkeley Software Design, Inc.
   1618 //
   1619 // Redistribution and use in source and binary forms, with or without
   1620 // modification, are permitted provided that the following conditions
   1621 // are met:
   1622 // 1. Redistributions of source code must retain the above copyright
   1623 //    notice, this list of conditions and the following disclaimer.
   1624 // 2. Redistributions in binary form must reproduce the above copyright
   1625 //    notice, this list of conditions and the following disclaimer in the
   1626 //    documentation and/or other materials provided with the distribution.
   1627 // 3. Neither the name of the University nor the names of its contributors
   1628 //    may be used to endorse or promote products derived from this software
   1629 //    without specific prior written permission.
   1630 //
   1631 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1632 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1633 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1634 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1635 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1636 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1637 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1638 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1639 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1640 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1641 // SUCH DAMAGE.
   1642 //
   1643 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
   1644 
   1645 // $OpenBSD: limits.h,v 1.10 2012/06/30 20:21:10 guenther Exp $
   1646 // Copyright (c) 2002 Marc Espie.
   1647 //
   1648 // Redistribution and use in source and binary forms, with or without
   1649 // modification, are permitted provided that the following conditions
   1650 // are met:
   1651 // 1. Redistributions of source code must retain the above copyright
   1652 //    notice, this list of conditions and the following disclaimer.
   1653 // 2. Redistributions in binary form must reproduce the above copyright
   1654 //    notice, this list of conditions and the following disclaimer in the
   1655 //    documentation and/or other materials provided with the distribution.
   1656 //
   1657 // THIS SOFTWARE IS PROVIDED BY THE OPENBSD PROJECT AND CONTRIBUTORS
   1658 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
   1659 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
   1660 // A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OPENBSD
   1661 // PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   1662 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   1663 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   1664 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   1665 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   1666 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
   1667 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   1668 
   1669 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
   1670 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
   1671 
   1672 // Copyright (c) 1991, 1993
   1673 //	The Regents of the University of California.  All rights reserved.
   1674 //
   1675 // This code is derived from software contributed to Berkeley by
   1676 // Berkeley Software Design, Inc.
   1677 //
   1678 // Redistribution and use in source and binary forms, with or without
   1679 // modification, are permitted provided that the following conditions
   1680 // are met:
   1681 // 1. Redistributions of source code must retain the above copyright
   1682 //    notice, this list of conditions and the following disclaimer.
   1683 // 2. Redistributions in binary form must reproduce the above copyright
   1684 //    notice, this list of conditions and the following disclaimer in the
   1685 //    documentation and/or other materials provided with the distribution.
   1686 // 3. Neither the name of the University nor the names of its contributors
   1687 //    may be used to endorse or promote products derived from this software
   1688 //    without specific prior written permission.
   1689 //
   1690 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1691 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1692 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1693 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1694 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1695 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1696 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1697 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1698 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1699 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1700 // SUCH DAMAGE.
   1701 //
   1702 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
   1703 
   1704 // Common definitions for limits.h.
   1705 
   1706 // Legacy
   1707 //	$OpenBSD: limits.h,v 1.1 2016/12/17 23:38:33 patrick Exp $
   1708 //	$NetBSD: limits.h,v 1.4 2003/04/28 23:16:18 bjh21 Exp $
   1709 
   1710 // Copyright (c) 1988 The Regents of the University of California.
   1711 // All rights reserved.
   1712 //
   1713 // Redistribution and use in source and binary forms, with or without
   1714 // modification, are permitted provided that the following conditions
   1715 // are met:
   1716 // 1. Redistributions of source code must retain the above copyright
   1717 //    notice, this list of conditions and the following disclaimer.
   1718 // 2. Redistributions in binary form must reproduce the above copyright
   1719 //    notice, this list of conditions and the following disclaimer in the
   1720 //    documentation and/or other materials provided with the distribution.
   1721 // 3. Neither the name of the University nor the names of its contributors
   1722 //    may be used to endorse or promote products derived from this software
   1723 //    without specific prior written permission.
   1724 //
   1725 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1726 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1727 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1728 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1729 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1730 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1731 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1732 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1733 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1734 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1735 // SUCH DAMAGE.
   1736 //
   1737 //	from: @(#)limits.h	7.2 (Berkeley) 6/28/90
   1738 
   1739 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
   1740 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
   1741 
   1742 // Copyright (c) 1991, 1993
   1743 //	The Regents of the University of California.  All rights reserved.
   1744 //
   1745 // This code is derived from software contributed to Berkeley by
   1746 // Berkeley Software Design, Inc.
   1747 //
   1748 // Redistribution and use in source and binary forms, with or without
   1749 // modification, are permitted provided that the following conditions
   1750 // are met:
   1751 // 1. Redistributions of source code must retain the above copyright
   1752 //    notice, this list of conditions and the following disclaimer.
   1753 // 2. Redistributions in binary form must reproduce the above copyright
   1754 //    notice, this list of conditions and the following disclaimer in the
   1755 //    documentation and/or other materials provided with the distribution.
   1756 // 3. Neither the name of the University nor the names of its contributors
   1757 //    may be used to endorse or promote products derived from this software
   1758 //    without specific prior written permission.
   1759 //
   1760 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1761 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1762 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1763 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1764 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1765 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1766 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1767 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1768 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1769 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1770 // SUCH DAMAGE.
   1771 //
   1772 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
   1773 
   1774 // max value for unsigned long
   1775 // max value for a signed long
   1776 // min value for a signed long
   1777 
   1778 // max value for unsigned long long
   1779 // max value for a signed long long
   1780 // min value for a signed long long
   1781 
   1782 //	$OpenBSD: syslimits.h,v 1.15 2022/02/22 16:58:08 deraadt Exp $
   1783 //	$NetBSD: syslimits.h,v 1.12 1995/10/05 05:26:19 thorpej Exp $
   1784 
   1785 // Copyright (c) 1988, 1993
   1786 //	The Regents of the University of California.  All rights reserved.
   1787 //
   1788 // Redistribution and use in source and binary forms, with or without
   1789 // modification, are permitted provided that the following conditions
   1790 // are met:
   1791 // 1. Redistributions of source code must retain the above copyright
   1792 //    notice, this list of conditions and the following disclaimer.
   1793 // 2. Redistributions in binary form must reproduce the above copyright
   1794 //    notice, this list of conditions and the following disclaimer in the
   1795 //    documentation and/or other materials provided with the distribution.
   1796 // 3. Neither the name of the University nor the names of its contributors
   1797 //    may be used to endorse or promote products derived from this software
   1798 //    without specific prior written permission.
   1799 //
   1800 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1801 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1802 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1803 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1804 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1805 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1806 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1807 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1808 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1809 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1810 // SUCH DAMAGE.
   1811 //
   1812 //	@(#)syslimits.h	8.1 (Berkeley) 6/2/93
   1813 
   1814 //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
   1815 //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
   1816 
   1817 // Copyright (c) 1991, 1993
   1818 //	The Regents of the University of California.  All rights reserved.
   1819 //
   1820 // This code is derived from software contributed to Berkeley by
   1821 // Berkeley Software Design, Inc.
   1822 //
   1823 // Redistribution and use in source and binary forms, with or without
   1824 // modification, are permitted provided that the following conditions
   1825 // are met:
   1826 // 1. Redistributions of source code must retain the above copyright
   1827 //    notice, this list of conditions and the following disclaimer.
   1828 // 2. Redistributions in binary form must reproduce the above copyright
   1829 //    notice, this list of conditions and the following disclaimer in the
   1830 //    documentation and/or other materials provided with the distribution.
   1831 // 3. Neither the name of the University nor the names of its contributors
   1832 //    may be used to endorse or promote products derived from this software
   1833 //    without specific prior written permission.
   1834 //
   1835 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1836 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1837 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1838 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1839 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1840 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1841 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1842 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1843 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1844 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1845 // SUCH DAMAGE.
   1846 //
   1847 //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
   1848 
   1849 //	$OpenBSD: sched.h,v 1.1 2017/10/15 23:40:33 guenther Exp $
   1850 
   1851 // sched.h: POSIX 1003.1b Process Scheduling header
   1852 
   1853 // -
   1854 // Copyright (c) 1996, 1997
   1855 //	HD Associates, Inc.  All rights reserved.
   1856 //
   1857 // Redistribution and use in source and binary forms, with or without
   1858 // modification, are permitted provided that the following conditions
   1859 // are met:
   1860 // 1. Redistributions of source code must retain the above copyright
   1861 //    notice, this list of conditions and the following disclaimer.
   1862 // 2. Redistributions in binary form must reproduce the above copyright
   1863 //    notice, this list of conditions and the following disclaimer in the
   1864 //    documentation and/or other materials provided with the distribution.
   1865 // 3. All advertising materials mentioning features or use of this software
   1866 //    must display the following acknowledgement:
   1867 //	This product includes software developed by HD Associates, Inc
   1868 //	and Jukka Antero Ukkonen.
   1869 // 4. Neither the name of the author nor the names of any co-contributors
   1870 //    may be used to endorse or promote products derived from this software
   1871 //    without specific prior written permission.
   1872 //
   1873 // THIS SOFTWARE IS PROVIDED BY HD ASSOCIATES AND CONTRIBUTORS ``AS IS'' AND
   1874 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1875 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1876 // ARE DISCLAIMED.  IN NO EVENT SHALL HD ASSOCIATES OR CONTRIBUTORS BE LIABLE
   1877 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1878 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1879 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1880 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1881 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1882 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1883 // SUCH DAMAGE.
   1884 //
   1885 
   1886 //	$OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
   1887 //	$NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
   1888 
   1889 // -
   1890 // Copyright (c) 1982, 1986, 1991, 1993
   1891 //	The Regents of the University of California.  All rights reserved.
   1892 // (c) UNIX System Laboratories, Inc.
   1893 // All or some portions of this file are derived from material licensed
   1894 // to the University of California by American Telephone and Telegraph
   1895 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   1896 // the permission of UNIX System Laboratories, Inc.
   1897 //
   1898 // Redistribution and use in source and binary forms, with or without
   1899 // modification, are permitted provided that the following conditions
   1900 // are met:
   1901 // 1. Redistributions of source code must retain the above copyright
   1902 //    notice, this list of conditions and the following disclaimer.
   1903 // 2. Redistributions in binary form must reproduce the above copyright
   1904 //    notice, this list of conditions and the following disclaimer in the
   1905 //    documentation and/or other materials provided with the distribution.
   1906 // 3. Neither the name of the University nor the names of its contributors
   1907 //    may be used to endorse or promote products derived from this software
   1908 //    without specific prior written permission.
   1909 //
   1910 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1911 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1912 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1913 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1914 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1915 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1916 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1917 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1918 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1919 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1920 // SUCH DAMAGE.
   1921 //
   1922 //	@(#)types.h	8.4 (Berkeley) 1/21/94
   1923 
   1924 //	$OpenBSD: time.h,v 1.31 2018/10/30 16:28:42 guenther Exp $
   1925 //	$NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $
   1926 
   1927 // Copyright (c) 1989 The Regents of the University of California.
   1928 // All rights reserved.
   1929 //
   1930 // (c) UNIX System Laboratories, Inc.
   1931 // All or some portions of this file are derived from material licensed
   1932 // to the University of California by American Telephone and Telegraph
   1933 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   1934 // the permission of UNIX System Laboratories, Inc.
   1935 //
   1936 // Redistribution and use in source and binary forms, with or without
   1937 // modification, are permitted provided that the following conditions
   1938 // are met:
   1939 // 1. Redistributions of source code must retain the above copyright
   1940 //    notice, this list of conditions and the following disclaimer.
   1941 // 2. Redistributions in binary form must reproduce the above copyright
   1942 //    notice, this list of conditions and the following disclaimer in the
   1943 //    documentation and/or other materials provided with the distribution.
   1944 // 3. Neither the name of the University nor the names of its contributors
   1945 //    may be used to endorse or promote products derived from this software
   1946 //    without specific prior written permission.
   1947 //
   1948 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1949 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1950 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1951 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1952 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1953 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1954 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1955 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1956 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1957 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1958 // SUCH DAMAGE.
   1959 //
   1960 //	@(#)time.h	5.12 (Berkeley) 3/9/91
   1961 
   1962 // Scheduling policies
   1963 
   1964 type Sched_param = struct{ Fsched_priority int32 } /* sched.h:51:1 */
   1965 
   1966 type Pthread_once = struct {
   1967 	Fstate       int32
   1968 	F__ccgo_pad1 [4]byte
   1969 	Fmutex       Pthread_mutex_t
   1970 } /* pthread.h:101:1 */
   1971 
   1972 // Primitive system data type definitions required by P1003.1c.
   1973 //
   1974 // Note that P1003.1c specifies that there are no defined comparison
   1975 // or assignment operators for the types pthread_attr_t, pthread_cond_t,
   1976 // pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t.
   1977 type Pthread_t = uintptr             /* pthread.h:112:26 */
   1978 type Pthread_attr_t = uintptr        /* pthread.h:113:30 */
   1979 type Pthread_mutex_t = uintptr       /* pthread.h:114:39 */
   1980 type Pthread_mutexattr_t = uintptr   /* pthread.h:115:35 */
   1981 type Pthread_cond_t = uintptr        /* pthread.h:116:30 */
   1982 type Pthread_condattr_t = uintptr    /* pthread.h:117:34 */
   1983 type Pthread_key_t = int32           /* pthread.h:118:16 */
   1984 type Pthread_once_t = Pthread_once   /* pthread.h:119:30 */
   1985 type Pthread_rwlock_t = uintptr      /* pthread.h:120:32 */
   1986 type Pthread_rwlockattr_t = uintptr  /* pthread.h:121:35 */
   1987 type Pthread_barrier_t = uintptr     /* pthread.h:122:33 */
   1988 type Pthread_barrierattr_t = uintptr /* pthread.h:123:36 */
   1989 type Pthread_spinlock_t = uintptr    /* pthread.h:124:33 */
   1990 
   1991 // Additional type definitions:
   1992 //
   1993 // Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for
   1994 // use in header symbols.
   1995 type Pthread_addr_t = uintptr         /* pthread.h:132:14 */
   1996 type Pthread_startroutine_t = uintptr /* pthread.h:133:14 */
   1997 
   1998 var _ int8 /* gen.c:2:13: */