github.com/afumu/libc@v0.0.6/pthread/pthread_openbsd_amd64.go (about)

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