github.com/afumu/libc@v0.0.6/stdlib/stdlib_darwin_arm64.go (about)

     1  // Code generated by 'ccgo stdlib/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 stdlib/stdlib_darwin_arm64.go -pkgname stdlib', DO NOT EDIT.
     2  
     3  package stdlib
     4  
     5  import (
     6  	"math"
     7  	"reflect"
     8  	"sync/atomic"
     9  	"unsafe"
    10  )
    11  
    12  var _ = math.Pi
    13  var _ reflect.Kind
    14  var _ atomic.Value
    15  var _ unsafe.Pointer
    16  
    17  const (
    18  	BIG_ENDIAN                                = 4321                 // endian.h:72:1:
    19  	BUS_ADRALN                                = 1                    // signal.h:241:1:
    20  	BUS_ADRERR                                = 2                    // signal.h:242:1:
    21  	BUS_NOOP                                  = 0                    // signal.h:239:1:
    22  	BUS_OBJERR                                = 3                    // signal.h:243:1:
    23  	BYTE_ORDER                                = 1234                 // endian.h:75:1:
    24  	CLD_CONTINUED                             = 6                    // signal.h:258:1:
    25  	CLD_DUMPED                                = 3                    // signal.h:255:1:
    26  	CLD_EXITED                                = 1                    // signal.h:253:1:
    27  	CLD_KILLED                                = 2                    // signal.h:254:1:
    28  	CLD_NOOP                                  = 0                    // signal.h:251:1:
    29  	CLD_STOPPED                               = 5                    // signal.h:257:1:
    30  	CLD_TRAPPED                               = 4                    // signal.h:256:1:
    31  	CPUMON_MAKE_FATAL                         = 0x1000               // resource.h:439:1:
    32  	EXIT_FAILURE                              = 1                    // stdlib.h:102:1:
    33  	EXIT_SUCCESS                              = 0                    // stdlib.h:103:1:
    34  	FOOTPRINT_INTERVAL_RESET                  = 0x1                  // resource.h:444:1:
    35  	FPE_FLTDIV                                = 1                    // signal.h:221:1:
    36  	FPE_FLTINV                                = 5                    // signal.h:225:1:
    37  	FPE_FLTOVF                                = 2                    // signal.h:222:1:
    38  	FPE_FLTRES                                = 4                    // signal.h:224:1:
    39  	FPE_FLTSUB                                = 6                    // signal.h:226:1:
    40  	FPE_FLTUND                                = 3                    // signal.h:223:1:
    41  	FPE_INTDIV                                = 7                    // signal.h:227:1:
    42  	FPE_INTOVF                                = 8                    // signal.h:228:1:
    43  	FPE_NOOP                                  = 0                    // signal.h:219:1:
    44  	ILL_BADSTK                                = 8                    // signal.h:215:1:
    45  	ILL_COPROC                                = 7                    // signal.h:214:1:
    46  	ILL_ILLADR                                = 5                    // signal.h:212:1:
    47  	ILL_ILLOPC                                = 1                    // signal.h:208:1:
    48  	ILL_ILLOPN                                = 4                    // signal.h:211:1:
    49  	ILL_ILLTRP                                = 2                    // signal.h:209:1:
    50  	ILL_NOOP                                  = 0                    // signal.h:206:1:
    51  	ILL_PRVOPC                                = 3                    // signal.h:210:1:
    52  	ILL_PRVREG                                = 6                    // signal.h:213:1:
    53  	INT16_MAX                                 = 32767                // stdint.h:599:1:
    54  	INT16_MIN                                 = -32768               // stdint.h:600:1:
    55  	INT32_MAX                                 = 2147483647           // stdint.h:555:1:
    56  	INT32_MIN                                 = -2147483648          // stdint.h:556:1:
    57  	INT64_MAX                                 = 9223372036854775807  // stdint.h:461:1:
    58  	INT64_MIN                                 = -9223372036854775808 // stdint.h:462:1:
    59  	INT8_MAX                                  = 127                  // stdint.h:621:1:
    60  	INT8_MIN                                  = -128                 // stdint.h:622:1:
    61  	INTMAX_MAX                                = 9223372036854775807  // stdint.h:663:1:
    62  	INTMAX_MIN                                = -9223372036854775808 // stdint.h:662:1:
    63  	INTPTR_MAX                                = 9223372036854775807  // stdint.h:649:1:
    64  	INTPTR_MIN                                = -9223372036854775808 // stdint.h:648:1:
    65  	INT_FAST16_MAX                            = 32767                // stdint.h:615:1:
    66  	INT_FAST16_MIN                            = -32768               // stdint.h:614:1:
    67  	INT_FAST32_MAX                            = 2147483647           // stdint.h:574:1:
    68  	INT_FAST32_MIN                            = -2147483648          // stdint.h:573:1:
    69  	INT_FAST64_MAX                            = 9223372036854775807  // stdint.h:483:1:
    70  	INT_FAST64_MIN                            = -9223372036854775808 // stdint.h:482:1:
    71  	INT_FAST8_MAX                             = 127                  // stdint.h:634:1:
    72  	INT_FAST8_MIN                             = -128                 // stdint.h:633:1:
    73  	INT_LEAST16_MAX                           = 32767                // stdint.h:612:1:
    74  	INT_LEAST16_MIN                           = -32768               // stdint.h:611:1:
    75  	INT_LEAST32_MAX                           = 2147483647           // stdint.h:571:1:
    76  	INT_LEAST32_MIN                           = -2147483648          // stdint.h:570:1:
    77  	INT_LEAST64_MAX                           = 9223372036854775807  // stdint.h:480:1:
    78  	INT_LEAST64_MIN                           = -9223372036854775808 // stdint.h:479:1:
    79  	INT_LEAST8_MAX                            = 127                  // stdint.h:631:1:
    80  	INT_LEAST8_MIN                            = -128                 // stdint.h:630:1:
    81  	IOPOL_APPLICATION                         = 5                    // resource.h:478:1:
    82  	IOPOL_ATIME_UPDATES_DEFAULT               = 0                    // resource.h:482:1:
    83  	IOPOL_ATIME_UPDATES_OFF                   = 1                    // resource.h:483:1:
    84  	IOPOL_DEFAULT                             = 0                    // resource.h:470:1:
    85  	IOPOL_IMPORTANT                           = 1                    // resource.h:471:1:
    86  	IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT  = 0                    // resource.h:485:1:
    87  	IOPOL_MATERIALIZE_DATALESS_FILES_OFF      = 1                    // resource.h:486:1:
    88  	IOPOL_MATERIALIZE_DATALESS_FILES_ON       = 2                    // resource.h:487:1:
    89  	IOPOL_NORMAL                              = 1                    // resource.h:479:1:
    90  	IOPOL_PASSIVE                             = 2                    // resource.h:472:1:
    91  	IOPOL_SCOPE_DARWIN_BG                     = 2                    // resource.h:467:1:
    92  	IOPOL_SCOPE_PROCESS                       = 0                    // resource.h:465:1:
    93  	IOPOL_SCOPE_THREAD                        = 1                    // resource.h:466:1:
    94  	IOPOL_STANDARD                            = 5                    // resource.h:475:1:
    95  	IOPOL_THROTTLE                            = 3                    // resource.h:473:1:
    96  	IOPOL_TYPE_DISK                           = 0                    // resource.h:454:1:
    97  	IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES     = 9                    // resource.h:462:1:
    98  	IOPOL_TYPE_VFS_ATIME_UPDATES              = 2                    // resource.h:455:1:
    99  	IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION  = 6                    // resource.h:459:1:
   100  	IOPOL_TYPE_VFS_IGNORE_PERMISSIONS         = 7                    // resource.h:460:1:
   101  	IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES = 3                    // resource.h:456:1:
   102  	IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE          = 8                    // resource.h:461:1:
   103  	IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME      = 4                    // resource.h:457:1:
   104  	IOPOL_TYPE_VFS_TRIGGER_RESOLVE            = 5                    // resource.h:458:1:
   105  	IOPOL_UTILITY                             = 4                    // resource.h:474:1:
   106  	IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF      = 0                    // resource.h:504:1:
   107  	IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON       = 1                    // resource.h:505:1:
   108  	IOPOL_VFS_CONTENT_PROTECTION_DEFAULT      = 0                    // resource.h:495:1:
   109  	IOPOL_VFS_CONTENT_PROTECTION_IGNORE       = 1                    // resource.h:496:1:
   110  	IOPOL_VFS_IGNORE_PERMISSIONS_OFF          = 0                    // resource.h:498:1:
   111  	IOPOL_VFS_IGNORE_PERMISSIONS_ON           = 1                    // resource.h:499:1:
   112  	IOPOL_VFS_SKIP_MTIME_UPDATE_OFF           = 0                    // resource.h:501:1:
   113  	IOPOL_VFS_SKIP_MTIME_UPDATE_ON            = 1                    // resource.h:502:1:
   114  	IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME     = 1                    // resource.h:490:1:
   115  	IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT   = 0                    // resource.h:489:1:
   116  	IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT         = 0                    // resource.h:492:1:
   117  	IOPOL_VFS_TRIGGER_RESOLVE_OFF             = 1                    // resource.h:493:1:
   118  	LITTLE_ENDIAN                             = 1234                 // endian.h:71:1:
   119  	MAC_OS_VERSION_11_0                       = 110000               // AvailabilityVersions.h:238:1:
   120  	MAC_OS_VERSION_12_0                       = 120000               // AvailabilityVersions.h:239:1:
   121  	MAC_OS_X_VERSION_10_0                     = 1000                 // AvailabilityVersions.h:206:1:
   122  	MAC_OS_X_VERSION_10_1                     = 1010                 // AvailabilityVersions.h:207:1:
   123  	MAC_OS_X_VERSION_10_10                    = 101000               // AvailabilityVersions.h:216:1:
   124  	MAC_OS_X_VERSION_10_10_2                  = 101002               // AvailabilityVersions.h:217:1:
   125  	MAC_OS_X_VERSION_10_10_3                  = 101003               // AvailabilityVersions.h:218:1:
   126  	MAC_OS_X_VERSION_10_11                    = 101100               // AvailabilityVersions.h:219:1:
   127  	MAC_OS_X_VERSION_10_11_2                  = 101102               // AvailabilityVersions.h:220:1:
   128  	MAC_OS_X_VERSION_10_11_3                  = 101103               // AvailabilityVersions.h:221:1:
   129  	MAC_OS_X_VERSION_10_11_4                  = 101104               // AvailabilityVersions.h:222:1:
   130  	MAC_OS_X_VERSION_10_12                    = 101200               // AvailabilityVersions.h:223:1:
   131  	MAC_OS_X_VERSION_10_12_1                  = 101201               // AvailabilityVersions.h:224:1:
   132  	MAC_OS_X_VERSION_10_12_2                  = 101202               // AvailabilityVersions.h:225:1:
   133  	MAC_OS_X_VERSION_10_12_4                  = 101204               // AvailabilityVersions.h:226:1:
   134  	MAC_OS_X_VERSION_10_13                    = 101300               // AvailabilityVersions.h:227:1:
   135  	MAC_OS_X_VERSION_10_13_1                  = 101301               // AvailabilityVersions.h:228:1:
   136  	MAC_OS_X_VERSION_10_13_2                  = 101302               // AvailabilityVersions.h:229:1:
   137  	MAC_OS_X_VERSION_10_13_4                  = 101304               // AvailabilityVersions.h:230:1:
   138  	MAC_OS_X_VERSION_10_14                    = 101400               // AvailabilityVersions.h:231:1:
   139  	MAC_OS_X_VERSION_10_14_1                  = 101401               // AvailabilityVersions.h:232:1:
   140  	MAC_OS_X_VERSION_10_14_4                  = 101404               // AvailabilityVersions.h:233:1:
   141  	MAC_OS_X_VERSION_10_14_6                  = 101406               // AvailabilityVersions.h:234:1:
   142  	MAC_OS_X_VERSION_10_15                    = 101500               // AvailabilityVersions.h:235:1:
   143  	MAC_OS_X_VERSION_10_15_1                  = 101501               // AvailabilityVersions.h:236:1:
   144  	MAC_OS_X_VERSION_10_16                    = 101600               // AvailabilityVersions.h:237:1:
   145  	MAC_OS_X_VERSION_10_2                     = 1020                 // AvailabilityVersions.h:208:1:
   146  	MAC_OS_X_VERSION_10_3                     = 1030                 // AvailabilityVersions.h:209:1:
   147  	MAC_OS_X_VERSION_10_4                     = 1040                 // AvailabilityVersions.h:210:1:
   148  	MAC_OS_X_VERSION_10_5                     = 1050                 // AvailabilityVersions.h:211:1:
   149  	MAC_OS_X_VERSION_10_6                     = 1060                 // AvailabilityVersions.h:212:1:
   150  	MAC_OS_X_VERSION_10_7                     = 1070                 // AvailabilityVersions.h:213:1:
   151  	MAC_OS_X_VERSION_10_8                     = 1080                 // AvailabilityVersions.h:214:1:
   152  	MAC_OS_X_VERSION_10_9                     = 1090                 // AvailabilityVersions.h:215:1:
   153  	MINSIGSTKSZ                               = 32768                // signal.h:340:1:
   154  	NSIG                                      = 32                   // signal.h:79:1:
   155  	PDP_ENDIAN                                = 3412                 // endian.h:73:1:
   156  	POLL_ERR                                  = 4                    // signal.h:264:1:
   157  	POLL_HUP                                  = 6                    // signal.h:266:1:
   158  	POLL_IN                                   = 1                    // signal.h:261:1:
   159  	POLL_MSG                                  = 3                    // signal.h:263:1:
   160  	POLL_OUT                                  = 2                    // signal.h:262:1:
   161  	POLL_PRI                                  = 5                    // signal.h:265:1:
   162  	PRIO_DARWIN_BG                            = 0x1000               // resource.h:120:1:
   163  	PRIO_DARWIN_NONUI                         = 0x1001               // resource.h:126:1:
   164  	PRIO_DARWIN_PROCESS                       = 4                    // resource.h:106:1:
   165  	PRIO_DARWIN_THREAD                        = 3                    // resource.h:105:1:
   166  	PRIO_MAX                                  = 20                   // resource.h:113:1:
   167  	PRIO_MIN                                  = -20                  // resource.h:112:1:
   168  	PRIO_PGRP                                 = 1                    // resource.h:101:1:
   169  	PRIO_PROCESS                              = 0                    // resource.h:100:1:
   170  	PRIO_USER                                 = 2                    // resource.h:102:1:
   171  	PTRDIFF_MAX                               = 9223372036854775807  // stdint.h:652:1:
   172  	PTRDIFF_MIN                               = -9223372036854775808 // stdint.h:651:1:
   173  	RAND_MAX                                  = 0x7fffffff           // stdlib.h:105:1:
   174  	RLIMIT_AS                                 = 5                    // resource.h:395:1:
   175  	RLIMIT_CORE                               = 4                    // resource.h:394:1:
   176  	RLIMIT_CPU                                = 0                    // resource.h:390:1:
   177  	RLIMIT_CPU_USAGE_MONITOR                  = 0x2                  // resource.h:423:1:
   178  	RLIMIT_DATA                               = 2                    // resource.h:392:1:
   179  	RLIMIT_FOOTPRINT_INTERVAL                 = 0x4                  // resource.h:425:1:
   180  	RLIMIT_FSIZE                              = 1                    // resource.h:391:1:
   181  	RLIMIT_MEMLOCK                            = 6                    // resource.h:398:1:
   182  	RLIMIT_NOFILE                             = 8                    // resource.h:401:1:
   183  	RLIMIT_NPROC                              = 7                    // resource.h:399:1:
   184  	RLIMIT_RSS                                = 5                    // resource.h:397:1:
   185  	RLIMIT_STACK                              = 3                    // resource.h:393:1:
   186  	RLIMIT_THREAD_CPULIMITS                   = 0x3                  // resource.h:424:1:
   187  	RLIMIT_WAKEUPS_MONITOR                    = 0x1                  // resource.h:422:1:
   188  	RLIM_NLIMITS                              = 9                    // resource.h:403:1:
   189  	RSIZE_MAX                                 = 9223372036854775807  // stdint.h:658:1:
   190  	RUSAGE_CHILDREN                           = -1                   // resource.h:141:1:
   191  	RUSAGE_INFO_CURRENT                       = 5                    // resource.h:192:1:
   192  	RUSAGE_INFO_V0                            = 0                    // resource.h:186:1:
   193  	RUSAGE_INFO_V1                            = 1                    // resource.h:187:1:
   194  	RUSAGE_INFO_V2                            = 2                    // resource.h:188:1:
   195  	RUSAGE_INFO_V3                            = 3                    // resource.h:189:1:
   196  	RUSAGE_INFO_V4                            = 4                    // resource.h:190:1:
   197  	RUSAGE_INFO_V5                            = 5                    // resource.h:191:1:
   198  	RUSAGE_SELF                               = 0                    // resource.h:140:1:
   199  	RU_PROC_RUNS_RESLIDE                      = 0x00000001           // resource.h:197:1:
   200  	SA_64REGSET                               = 0x0200               // signal.h:308:1:
   201  	SA_NOCLDSTOP                              = 0x0008               // signal.h:301:1:
   202  	SA_NOCLDWAIT                              = 0x0020               // signal.h:303:1:
   203  	SA_NODEFER                                = 0x0010               // signal.h:302:1:
   204  	SA_ONSTACK                                = 0x0001               // signal.h:298:1:
   205  	SA_RESETHAND                              = 0x0004               // signal.h:300:1:
   206  	SA_RESTART                                = 0x0002               // signal.h:299:1:
   207  	SA_SIGINFO                                = 0x0040               // signal.h:304:1:
   208  	SA_USERSPACE_MASK                         = 127                  // signal.h:314:1:
   209  	SA_USERTRAMP                              = 0x0100               // signal.h:306:1:
   210  	SEGV_ACCERR                               = 2                    // signal.h:235:1:
   211  	SEGV_MAPERR                               = 1                    // signal.h:234:1:
   212  	SEGV_NOOP                                 = 0                    // signal.h:232:1:
   213  	SIGABRT                                   = 6                    // signal.h:89:1:
   214  	SIGALRM                                   = 14                   // signal.h:102:1:
   215  	SIGBUS                                    = 10                   // signal.h:98:1:
   216  	SIGCHLD                                   = 20                   // signal.h:108:1:
   217  	SIGCONT                                   = 19                   // signal.h:107:1:
   218  	SIGEMT                                    = 7                    // signal.h:94:1:
   219  	SIGEV_NONE                                = 0                    // signal.h:164:1:
   220  	SIGEV_SIGNAL                              = 1                    // signal.h:165:1:
   221  	SIGEV_THREAD                              = 3                    // signal.h:166:1:
   222  	SIGFPE                                    = 8                    // signal.h:96:1:
   223  	SIGHUP                                    = 1                    // signal.h:84:1:
   224  	SIGILL                                    = 4                    // signal.h:87:1:
   225  	SIGINFO                                   = 29                   // signal.h:120:1:
   226  	SIGINT                                    = 2                    // signal.h:85:1:
   227  	SIGIO                                     = 23                   // signal.h:112:1:
   228  	SIGIOT                                    = 6                    // signal.h:93:1:
   229  	SIGKILL                                   = 9                    // signal.h:97:1:
   230  	SIGPIPE                                   = 13                   // signal.h:101:1:
   231  	SIGPROF                                   = 27                   // signal.h:117:1:
   232  	SIGQUIT                                   = 3                    // signal.h:86:1:
   233  	SIGSEGV                                   = 11                   // signal.h:99:1:
   234  	SIGSTKSZ                                  = 131072               // signal.h:341:1:
   235  	SIGSTOP                                   = 17                   // signal.h:105:1:
   236  	SIGSYS                                    = 12                   // signal.h:100:1:
   237  	SIGTERM                                   = 15                   // signal.h:103:1:
   238  	SIGTRAP                                   = 5                    // signal.h:88:1:
   239  	SIGTSTP                                   = 18                   // signal.h:106:1:
   240  	SIGTTIN                                   = 21                   // signal.h:109:1:
   241  	SIGTTOU                                   = 22                   // signal.h:110:1:
   242  	SIGURG                                    = 16                   // signal.h:104:1:
   243  	SIGUSR1                                   = 30                   // signal.h:122:1:
   244  	SIGUSR2                                   = 31                   // signal.h:123:1:
   245  	SIGVTALRM                                 = 26                   // signal.h:116:1:
   246  	SIGWINCH                                  = 28                   // signal.h:119:1:
   247  	SIGXCPU                                   = 24                   // signal.h:114:1:
   248  	SIGXFSZ                                   = 25                   // signal.h:115:1:
   249  	SIG_ATOMIC_MAX                            = 2147483647           // stdint.h:668:1:
   250  	SIG_ATOMIC_MIN                            = -2147483648          // stdint.h:667:1:
   251  	SIG_BLOCK                                 = 1                    // signal.h:319:1:
   252  	SIG_SETMASK                               = 3                    // signal.h:321:1:
   253  	SIG_UNBLOCK                               = 2                    // signal.h:320:1:
   254  	SIZE_MAX                                  = 18446744073709551615 // stdint.h:653:1:
   255  	SI_ASYNCIO                                = 0x10004              // signal.h:327:1:
   256  	SI_MESGQ                                  = 0x10005              // signal.h:328:1:
   257  	SI_QUEUE                                  = 0x10002              // signal.h:325:1:
   258  	SI_TIMER                                  = 0x10003              // signal.h:326:1:
   259  	SI_USER                                   = 0x10001              // signal.h:324:1:
   260  	SS_DISABLE                                = 0x0004               // signal.h:339:1:
   261  	SS_ONSTACK                                = 0x0001               // signal.h:338:1:
   262  	SV_INTERRUPT                              = 2                    // signal.h:355:1:
   263  	SV_NOCLDSTOP                              = 8                    // signal.h:358:1:
   264  	SV_NODEFER                                = 16                   // signal.h:357:1:
   265  	SV_ONSTACK                                = 1                    // signal.h:354:1:
   266  	SV_RESETHAND                              = 4                    // signal.h:356:1:
   267  	SV_SIGINFO                                = 64                   // signal.h:359:1:
   268  	TRAP_BRKPT                                = 1                    // signal.h:246:1:
   269  	TRAP_TRACE                                = 2                    // signal.h:247:1:
   270  	UINT16_MAX                                = 65535                // stdint.h:601:1:
   271  	UINT32_MAX                                = 4294967295           // stdint.h:557:1:
   272  	UINT64_MAX                                = 18446744073709551615 // stdint.h:463:1:
   273  	UINT8_MAX                                 = 255                  // stdint.h:623:1:
   274  	UINTMAX_MAX                               = 18446744073709551615 // stdint.h:664:1:
   275  	UINTPTR_MAX                               = 18446744073709551615 // stdint.h:650:1:
   276  	UINT_FAST16_MAX                           = 65535                // stdint.h:616:1:
   277  	UINT_FAST32_MAX                           = 4294967295           // stdint.h:575:1:
   278  	UINT_FAST64_MAX                           = 18446744073709551615 // stdint.h:484:1:
   279  	UINT_FAST8_MAX                            = 255                  // stdint.h:635:1:
   280  	UINT_LEAST16_MAX                          = 65535                // stdint.h:613:1:
   281  	UINT_LEAST32_MAX                          = 4294967295           // stdint.h:572:1:
   282  	UINT_LEAST64_MAX                          = 18446744073709551615 // stdint.h:481:1:
   283  	UINT_LEAST8_MAX                           = 255                  // stdint.h:632:1:
   284  	WAIT_ANY                                  = -1                   // wait.h:183:1:
   285  	WAIT_MYPGRP                               = 0                    // wait.h:184:1:
   286  	WAKEMON_DISABLE                           = 0x02                 // resource.h:431:1:
   287  	WAKEMON_ENABLE                            = 0x01                 // resource.h:430:1:
   288  	WAKEMON_GET_PARAMS                        = 0x04                 // resource.h:432:1:
   289  	WAKEMON_MAKE_FATAL                        = 0x10                 // resource.h:434:1:
   290  	WAKEMON_SET_DEFAULTS                      = 0x08                 // resource.h:433:1:
   291  	WCHAR_MAX                                 = 2147483647           // stdint.h:678:1:
   292  	WCHAR_MIN                                 = -2147483648          // stdint.h:682:1:
   293  	WCONTINUED                                = 0x00000010           // wait.h:173:1:
   294  	WCOREFLAG                                 = 0200                 // wait.h:132:1:
   295  	WEXITED                                   = 0x00000004           // wait.h:168:1:
   296  	WINT_MAX                                  = 2147483647           // stdint.h:674:1:
   297  	WINT_MIN                                  = -2147483648          // stdint.h:673:1:
   298  	WNOHANG                                   = 0x00000001           // wait.h:121:1:
   299  	WNOWAIT                                   = 0x00000020           // wait.h:174:1:
   300  	WSTOPPED                                  = 0x00000008           // wait.h:171:1:
   301  	WUNTRACED                                 = 0x00000002           // wait.h:122:1:
   302  	X_ALLOCA_H_                               = 0                    // alloca.h:25:1:
   303  	X_ARM_ARCH_H                              = 0                    // arch.h:29:1:
   304  	X_ARM_MACHTYPES_H_                        = 0                    // types.h:43:1:
   305  	X_ARM_SIGNAL_                             = 1                    // signal.h:10:1:
   306  	X_ARM__ENDIAN_H_                          = 0                    // endian.h:43:1:
   307  	X_BSD_ARM__TYPES_H_                       = 0                    // _types.h:5:1:
   308  	X_BSD_MACHINE_ENDIAN_H_                   = 0                    // endian.h:32:1:
   309  	X_BSD_MACHINE_SIGNAL_H_                   = 0                    // signal.h:29:1:
   310  	X_BSD_MACHINE_TYPES_H_                    = 0                    // types.h:32:1:
   311  	X_BSD_MACHINE__MCONTEXT_H_                = 0                    // _mcontext.h:29:1:
   312  	X_BSD_MACHINE__TYPES_H_                   = 0                    // _types.h:29:1:
   313  	X_CDEFS_H_                                = 0                    // cdefs.h:68:1:
   314  	X_CT_RUNE_T                               = 0                    // _ct_rune_t.h:30:1:
   315  	X_DARWIN_FEATURE_64_BIT_INODE             = 1                    // cdefs.h:774:1:
   316  	X_DARWIN_FEATURE_ONLY_64_BIT_INODE        = 1                    // cdefs.h:784:1:
   317  	X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE    = 1                    // cdefs.h:800:1:
   318  	X_DARWIN_FEATURE_ONLY_VERS_1050           = 1                    // cdefs.h:792:1:
   319  	X_DARWIN_FEATURE_UNIX_CONFORMANCE         = 3                    // cdefs.h:808:1:
   320  	X_DEV_T                                   = 0                    // _dev_t.h:29:1:
   321  	X_FILE_OFFSET_BITS                        = 64                   // <builtin>:25:1:
   322  	X_FORTIFY_SOURCE                          = 2                    // _types.h:65:1:
   323  	X_ID_T                                    = 0                    // _id_t.h:29:1:
   324  	X_INT16_T                                 = 0                    // _int16_t.h:29:1:
   325  	X_INT32_T                                 = 0                    // _int32_t.h:29:1:
   326  	X_INT64_T                                 = 0                    // _int64_t.h:29:1:
   327  	X_INT8_T                                  = 0                    // _int8_t.h:29:1:
   328  	X_INTPTR_T                                = 0                    // _intptr_t.h:29:1:
   329  	X_LP64                                    = 1                    // <predefined>:1:1:
   330  	X_MACHTYPES_H_                            = 0                    // types.h:44:1:
   331  	X_MACH_ARM__STRUCTS_H_                    = 0                    // _structs.h:32:1:
   332  	X_MACH_MACHINE__STRUCTS_H_                = 0                    // _structs.h:30:1:
   333  	X_MALLOC_UNDERSCORE_MALLOC_H_             = 0                    // _malloc.h:25:1:
   334  	X_MCONTEXT_T                              = 0                    // _mcontext.h:83:1:
   335  	X_MODE_T                                  = 0                    // _mode_t.h:29:1:
   336  	X_Nonnull                                 = 0                    // cdefs.h:268:1:
   337  	X_Null_unspecified                        = 0                    // cdefs.h:271:1:
   338  	X_Nullable                                = 0                    // cdefs.h:265:1:
   339  	X_OS_OSBYTEORDERARM_H                     = 0                    // OSByteOrder.h:6:1:
   340  	X_OS__OSBYTEORDER_H                       = 0                    // _OSByteOrder.h:30:1:
   341  	X_PID_T                                   = 0                    // _pid_t.h:29:1:
   342  	X_PTHREAD_ATTR_T                          = 0                    // _pthread_attr_t.h:29:1:
   343  	X_QUAD_HIGHWORD                           = 1                    // endian.h:56:1:
   344  	X_QUAD_LOWWORD                            = 0                    // endian.h:57:1:
   345  	X_RLIMIT_POSIX_FLAG                       = 0x1000               // resource.h:405:1:
   346  	X_RUNE_T                                  = 0                    // _rune_t.h:29:1:
   347  	X_SIGSET_T                                = 0                    // _sigset_t.h:29:1:
   348  	X_SIZE_T                                  = 0                    // _size_t.h:29:1:
   349  	X_STDLIB_H_                               = 0                    // stdlib.h:59:1:
   350  	X_SYS_RESOURCE_H_                         = 0                    // resource.h:65:1:
   351  	X_SYS_SIGNAL_H_                           = 0                    // signal.h:70:1:
   352  	X_SYS_WAIT_H_                             = 0                    // wait.h:65:1:
   353  	X_SYS__ENDIAN_H_                          = 0                    // _endian.h:91:1:
   354  	X_SYS__PTHREAD_TYPES_H_                   = 0                    // _pthread_types.h:30:1:
   355  	X_SYS__TYPES_H_                           = 0                    // _types.h:30:1:
   356  	X_UID_T                                   = 0                    // _uid_t.h:29:1:
   357  	X_UINT32_T                                = 0                    // _uint32_t.h:30:1:
   358  	X_UINTPTR_T                               = 0                    // _uintptr_t.h:29:1:
   359  	X_U_INT16_T                               = 0                    // _u_int16_t.h:29:1:
   360  	X_U_INT32_T                               = 0                    // _u_int32_t.h:29:1:
   361  	X_U_INT64_T                               = 0                    // _u_int64_t.h:29:1:
   362  	X_U_INT8_T                                = 0                    // _u_int8_t.h:29:1:
   363  	X_WCHAR_T                                 = 0                    // _wchar_t.h:32:1:
   364  	X_WSTOPPED                                = 0177                 // wait.h:137:1:
   365  )
   366  
   367  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
   368  //
   369  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   370  //
   371  // This file contains Original Code and/or Modifications of Original Code
   372  // as defined in and that are subject to the Apple Public Source License
   373  // Version 2.0 (the 'License'). You may not use this file except in
   374  // compliance with the License. The rights granted to you under the License
   375  // may not be used to create, or enable the creation or redistribution of,
   376  // unlawful or unlicensed copies of an Apple operating system, or to
   377  // circumvent, violate, or enable the circumvention or violation of, any
   378  // terms of an Apple operating system software license agreement.
   379  //
   380  // Please obtain a copy of the License at
   381  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   382  //
   383  // The Original Code and all software distributed under the License are
   384  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   385  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   386  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   387  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   388  // Please see the License for the specific language governing rights and
   389  // limitations under the License.
   390  //
   391  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   392  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
   393  // Copyright (c) 1982, 1986, 1989, 1993, 1994
   394  //	The Regents of the University of California.  All rights reserved.
   395  //
   396  // Redistribution and use in source and binary forms, with or without
   397  // modification, are permitted provided that the following conditions
   398  // are met:
   399  // 1. Redistributions of source code must retain the above copyright
   400  //    notice, this list of conditions and the following disclaimer.
   401  // 2. Redistributions in binary form must reproduce the above copyright
   402  //    notice, this list of conditions and the following disclaimer in the
   403  //    documentation and/or other materials provided with the distribution.
   404  // 3. All advertising materials mentioning features or use of this software
   405  //    must display the following acknowledgement:
   406  //	This product includes software developed by the University of
   407  //	California, Berkeley and its contributors.
   408  // 4. 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  //	@(#)wait.h	8.2 (Berkeley) 7/10/94
   425  
   426  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   427  //
   428  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   429  //
   430  // This file contains Original Code and/or Modifications of Original Code
   431  // as defined in and that are subject to the Apple Public Source License
   432  // Version 2.0 (the 'License'). You may not use this file except in
   433  // compliance with the License. The rights granted to you under the License
   434  // may not be used to create, or enable the creation or redistribution of,
   435  // unlawful or unlicensed copies of an Apple operating system, or to
   436  // circumvent, violate, or enable the circumvention or violation of, any
   437  // terms of an Apple operating system software license agreement.
   438  //
   439  // Please obtain a copy of the License at
   440  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   441  //
   442  // The Original Code and all software distributed under the License are
   443  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   444  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   445  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   446  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   447  // Please see the License for the specific language governing rights and
   448  // limitations under the License.
   449  //
   450  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   451  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   452  // Copyright (c) 1991, 1993
   453  //	The Regents of the University of California.  All rights reserved.
   454  //
   455  // This code is derived from software contributed to Berkeley by
   456  // Berkeley Software Design, Inc.
   457  //
   458  // Redistribution and use in source and binary forms, with or without
   459  // modification, are permitted provided that the following conditions
   460  // are met:
   461  // 1. Redistributions of source code must retain the above copyright
   462  //    notice, this list of conditions and the following disclaimer.
   463  // 2. Redistributions in binary form must reproduce the above copyright
   464  //    notice, this list of conditions and the following disclaimer in the
   465  //    documentation and/or other materials provided with the distribution.
   466  // 3. All advertising materials mentioning features or use of this software
   467  //    must display the following acknowledgement:
   468  //	This product includes software developed by the University of
   469  //	California, Berkeley and its contributors.
   470  // 4. Neither the name of the University nor the names of its contributors
   471  //    may be used to endorse or promote products derived from this software
   472  //    without specific prior written permission.
   473  //
   474  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   475  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   476  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   477  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   478  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   479  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   480  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   481  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   482  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   483  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   484  // SUCH DAMAGE.
   485  //
   486  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   487  
   488  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   489  //
   490  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   491  //
   492  // This file contains Original Code and/or Modifications of Original Code
   493  // as defined in and that are subject to the Apple Public Source License
   494  // Version 2.0 (the 'License'). You may not use this file except in
   495  // compliance with the License. The rights granted to you under the License
   496  // may not be used to create, or enable the creation or redistribution of,
   497  // unlawful or unlicensed copies of an Apple operating system, or to
   498  // circumvent, violate, or enable the circumvention or violation of, any
   499  // terms of an Apple operating system software license agreement.
   500  //
   501  // Please obtain a copy of the License at
   502  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   503  //
   504  // The Original Code and all software distributed under the License are
   505  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   506  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   507  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   508  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   509  // Please see the License for the specific language governing rights and
   510  // limitations under the License.
   511  //
   512  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   513  
   514  // This file holds definitions relevent to the wait4 system call
   515  // and the alternate interfaces that use it (wait, wait3, waitpid).
   516  
   517  // [XSI] The type idtype_t shall be defined as an enumeration type whose
   518  // possible values shall include at least P_ALL, P_PID, and P_PGID.
   519  const ( /* wait.h:79:1: */
   520  	P_ALL  = 0
   521  	P_PID  = 1
   522  	P_PGID = 2
   523  )
   524  
   525  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   526  
   527  type Size_t = uint64 /* <builtin>:9:23 */
   528  
   529  type Wchar_t = int32 /* <builtin>:15:24 */
   530  
   531  type X__int128_t = struct {
   532  	Flo int64
   533  	Fhi int64
   534  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   535  type X__uint128_t = struct {
   536  	Flo uint64
   537  	Fhi uint64
   538  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   539  
   540  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   541  type X__float128 = float64        /* <builtin>:47:21 */
   542  
   543  var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
   544  
   545  // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved.
   546  //
   547  // @APPLE_LICENSE_HEADER_START@
   548  //
   549  // This file contains Original Code and/or Modifications of Original Code
   550  // as defined in and that are subject to the Apple Public Source License
   551  // Version 2.0 (the 'License'). You may not use this file except in
   552  // compliance with the License. Please obtain a copy of the License at
   553  // http://www.opensource.apple.com/apsl/ and read it before using this
   554  // file.
   555  //
   556  // The Original Code and all software distributed under the License are
   557  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   558  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   559  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   560  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   561  // Please see the License for the specific language governing rights and
   562  // limitations under the License.
   563  //
   564  // @APPLE_LICENSE_HEADER_END@
   565  // -
   566  // Copyright (c) 1990, 1993
   567  //	The Regents of the University of California.  All rights reserved.
   568  //
   569  // Redistribution and use in source and binary forms, with or without
   570  // modification, are permitted provided that the following conditions
   571  // are met:
   572  // 1. Redistributions of source code must retain the above copyright
   573  //    notice, this list of conditions and the following disclaimer.
   574  // 2. Redistributions in binary form must reproduce the above copyright
   575  //    notice, this list of conditions and the following disclaimer in the
   576  //    documentation and/or other materials provided with the distribution.
   577  // 3. All advertising materials mentioning features or use of this software
   578  //    must display the following acknowledgement:
   579  //	This product includes software developed by the University of
   580  //	California, Berkeley and its contributors.
   581  // 4. Neither the name of the University nor the names of its contributors
   582  //    may be used to endorse or promote products derived from this software
   583  //    without specific prior written permission.
   584  //
   585  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   586  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   587  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   588  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   589  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   590  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   591  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   592  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   593  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   594  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   595  // SUCH DAMAGE.
   596  //
   597  //	@(#)stdlib.h	8.5 (Berkeley) 5/19/95
   598  
   599  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
   600  //
   601  // @APPLE_LICENSE_HEADER_START@
   602  //
   603  // This file contains Original Code and/or Modifications of Original Code
   604  // as defined in and that are subject to the Apple Public Source License
   605  // Version 2.0 (the 'License'). You may not use this file except in
   606  // compliance with the License. Please obtain a copy of the License at
   607  // http://www.opensource.apple.com/apsl/ and read it before using this
   608  // file.
   609  //
   610  // The Original Code and all software distributed under the License are
   611  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   612  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   613  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   614  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   615  // Please see the License for the specific language governing rights and
   616  // limitations under the License.
   617  //
   618  // @APPLE_LICENSE_HEADER_END@
   619  
   620  //
   621  //     These macros are for use in OS header files. They enable function prototypes
   622  //     and Objective-C methods to be tagged with the OS version in which they
   623  //     were first available; and, if applicable, the OS version in which they
   624  //     became deprecated.
   625  //
   626  //     The desktop Mac OS X and iOS each have different version numbers.
   627  //     The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
   628  //     and iOS version numbers.  For instance:
   629  //         __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
   630  //     means the function/method was first available on Mac OS X 10.2 on the desktop
   631  //     and first available in iOS 2.0 on the iPhone.
   632  //
   633  //     If a function is available on one platform, but not the other a _NA (not
   634  //     applicable) parameter is used.  For instance:
   635  //             __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
   636  //     means that the function/method was first available on Mac OS X 10.3, and it
   637  //     currently not implemented on the iPhone.
   638  //
   639  //     At some point, a function/method may be deprecated.  That means Apple
   640  //     recommends applications stop using the function, either because there is a
   641  //     better replacement or the functionality is being phased out.  Deprecated
   642  //     functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
   643  //     macro which specifies the OS version where the function became available
   644  //     as well as the OS version in which it became deprecated.  For instance:
   645  //         __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
   646  //     means that the function/method was introduced in Mac OS X 10.0, then
   647  //     became deprecated beginning in Mac OS X 10.5.  On iOS the function
   648  //     has never been available.
   649  //
   650  //     For these macros to function properly, a program must specify the OS version range
   651  //     it is targeting.  The min OS version is specified as an option to the compiler:
   652  //     -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
   653  //     when building for the iPhone.  The upper bound for the OS version is rarely needed,
   654  //     but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
   655  //     Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
   656  //
   657  //     Examples:
   658  //
   659  //         A function available in Mac OS X 10.5 and later, but not on the phone:
   660  //
   661  //             extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
   662  //
   663  //
   664  //         An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
   665  //
   666  //             @interface MyClass : NSObject
   667  //             -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
   668  //             @end
   669  //
   670  //
   671  //         An enum available on the phone, but not available on Mac OS X:
   672  //
   673  //             #if __IPHONE_OS_VERSION_MIN_REQUIRED
   674  //                 enum { myEnum = 1 };
   675  //             #endif
   676  //            Note: this works when targeting the Mac OS X platform because
   677  //            __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
   678  //
   679  //
   680  //         An enum with values added in different iPhoneOS versions:
   681  //
   682  // 			enum {
   683  // 			    myX  = 1,	// Usable on iPhoneOS 2.1 and later
   684  // 			    myY  = 2,	// Usable on iPhoneOS 3.0 and later
   685  // 			    myZ  = 3,	// Usable on iPhoneOS 3.0 and later
   686  // 				...
   687  // 		      Note: you do not want to use #if with enumeration values
   688  // 			  when a client needs to see all values at compile time
   689  // 			  and use runtime logic to only use the viable values.
   690  //
   691  //
   692  //     It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
   693  //     source base that can be compiled to target a range of OS versions.  It is best
   694  //     to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
   695  //     That is because you might get compiled on an old OS that does not define a later
   696  //     OS version macro, and in the C preprocessor undefined values evaluate to zero
   697  //     in expresssions, which could cause the #if expression to evaluate in an unexpected
   698  //     way.
   699  //
   700  //         #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
   701  //             // code only compiled when targeting Mac OS X and not iPhone
   702  //             // note use of 1050 instead of __MAC_10_5
   703  //             #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
   704  //                 // code in here might run on pre-Leopard OS
   705  //             #else
   706  //                 // code here can assume Leopard or later
   707  //             #endif
   708  //         #endif
   709  //
   710  //
   711  
   712  // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
   713  // in an upcoming release. This soft deprecation is an intermediate step before formal
   714  // deprecation to notify developers about the API before compiler warnings are generated.
   715  // You can find all places in your code that use soft deprecated API by redefining the
   716  // value of this macro to your current minimum deployment target, for example:
   717  // (macOS)
   718  //   clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
   719  // (iOS)
   720  //   clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
   721  
   722  // Copyright (c) 2019 by Apple Inc.. All rights reserved.
   723  //
   724  // @APPLE_LICENSE_HEADER_START@
   725  //
   726  // This file contains Original Code and/or Modifications of Original Code
   727  // as defined in and that are subject to the Apple Public Source License
   728  // Version 2.0 (the 'License'). You may not use this file except in
   729  // compliance with the License. Please obtain a copy of the License at
   730  // http://www.opensource.apple.com/apsl/ and read it before using this
   731  // file.
   732  //
   733  // The Original Code and all software distributed under the License are
   734  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   735  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   736  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   737  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   738  // Please see the License for the specific language governing rights and
   739  // limitations under the License.
   740  //
   741  // @APPLE_LICENSE_HEADER_END@
   742  
   743  // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
   744  
   745  // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
   746  
   747  // Set up standard Mac OS X versions
   748  
   749  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
   750  //
   751  // @APPLE_LICENSE_HEADER_START@
   752  //
   753  // This file contains Original Code and/or Modifications of Original Code
   754  // as defined in and that are subject to the Apple Public Source License
   755  // Version 2.0 (the 'License'). You may not use this file except in
   756  // compliance with the License. Please obtain a copy of the License at
   757  // http://www.opensource.apple.com/apsl/ and read it before using this
   758  // file.
   759  //
   760  // The Original Code and all software distributed under the License are
   761  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   762  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   763  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   764  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   765  // Please see the License for the specific language governing rights and
   766  // limitations under the License.
   767  //
   768  // @APPLE_LICENSE_HEADER_END@
   769  
   770  //
   771  //     File:       AvailabilityInternal.h
   772  //
   773  //     Contains:   implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
   774  //
   775  
   776  // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
   777  
   778  // make sure a default max version is set
   779  
   780  //
   781  //  Macros for defining which versions/platform a given symbol can be used.
   782  //
   783  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
   784  //
   785  
   786  // Evaluate to nothing for compilers that don't support clang language extensions.
   787  
   788  // Swift compiler version
   789  // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
   790  // Example:
   791  //
   792  //  #if __swift_compiler_version_at_least(800, 2, 20)
   793  //  - (nonnull NSString *)description;
   794  //  #else
   795  //  - (NSString *)description;
   796  //  #endif
   797  
   798  // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
   799  
   800  // for use to document app extension usage
   801  
   802  // for use marking APIs available info for Mac OSX
   803  
   804  // for use marking APIs available info for iOS
   805  
   806  // for use marking APIs available info for tvOS
   807  
   808  // for use marking APIs available info for Watch OS
   809  
   810  // for use marking APIs unavailable for swift
   811  
   812  //
   813  //  Macros for defining which versions/platform a given symbol can be used.
   814  //
   815  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
   816  //
   817  //  * Note that these macros are only compatible with clang compilers that
   818  //  * support the following target selection options:
   819  //  *
   820  //  * -mmacosx-version-min
   821  //  * -miphoneos-version-min
   822  //  * -mwatchos-version-min
   823  //  * -mtvos-version-min
   824  //
   825  
   826  // Evaluate to nothing for compilers that don't support clang language extensions.
   827  
   828  // If SPI decorations have not been defined elsewhere, disable them.
   829  
   830  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   831  //
   832  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   833  //
   834  // This file contains Original Code and/or Modifications of Original Code
   835  // as defined in and that are subject to the Apple Public Source License
   836  // Version 2.0 (the 'License'). You may not use this file except in
   837  // compliance with the License. The rights granted to you under the License
   838  // may not be used to create, or enable the creation or redistribution of,
   839  // unlawful or unlicensed copies of an Apple operating system, or to
   840  // circumvent, violate, or enable the circumvention or violation of, any
   841  // terms of an Apple operating system software license agreement.
   842  //
   843  // Please obtain a copy of the License at
   844  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   845  //
   846  // The Original Code and all software distributed under the License are
   847  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   848  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   849  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   850  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   851  // Please see the License for the specific language governing rights and
   852  // limitations under the License.
   853  //
   854  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   855  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   856  // Copyright (c) 1991, 1993
   857  //	The Regents of the University of California.  All rights reserved.
   858  //
   859  // This code is derived from software contributed to Berkeley by
   860  // Berkeley Software Design, Inc.
   861  //
   862  // Redistribution and use in source and binary forms, with or without
   863  // modification, are permitted provided that the following conditions
   864  // are met:
   865  // 1. Redistributions of source code must retain the above copyright
   866  //    notice, this list of conditions and the following disclaimer.
   867  // 2. Redistributions in binary form must reproduce the above copyright
   868  //    notice, this list of conditions and the following disclaimer in the
   869  //    documentation and/or other materials provided with the distribution.
   870  // 3. All advertising materials mentioning features or use of this software
   871  //    must display the following acknowledgement:
   872  //	This product includes software developed by the University of
   873  //	California, Berkeley and its contributors.
   874  // 4. Neither the name of the University nor the names of its contributors
   875  //    may be used to endorse or promote products derived from this software
   876  //    without specific prior written permission.
   877  //
   878  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   879  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   880  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   881  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   882  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   883  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   884  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   885  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   886  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   887  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   888  // SUCH DAMAGE.
   889  //
   890  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   891  
   892  // This SDK is designed to work with clang and specific versions of
   893  // gcc >= 4.0 with Apple's patch sets
   894  
   895  // Compatibility with compilers and environments that don't support compiler
   896  // feature checking function-like macros.
   897  
   898  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
   899  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
   900  // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
   901  // in between its arguments.  __CONCAT can also concatenate double-quoted
   902  // strings produced by the __STRING macro, but this only works with ANSI C.
   903  
   904  // In non-ANSI C environments, new programs will want ANSI-only C keywords
   905  // deleted from the program and old programs will want them left alone.
   906  // When using a compiler other than gcc, programs using the ANSI C keywords
   907  // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
   908  // When using "gcc -traditional", we assume that this is the intent; if
   909  // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
   910  
   911  // __pure2 can be used for functions that are only a function of their scalar
   912  // arguments (meaning they can't dereference pointers).
   913  //
   914  // __stateful_pure can be used for functions that have no side effects,
   915  // but depend on the state of the memory.
   916  
   917  // __unused denotes variables and functions that may not be used, preventing
   918  // the compiler from warning about it if not used.
   919  
   920  // __used forces variables and functions to be included even if it appears
   921  // to the compiler that they are not used (and would thust be discarded).
   922  
   923  // __cold marks code used for debugging or that is rarely taken
   924  // and tells the compiler to optimize for size and outline code.
   925  
   926  // __exported denotes symbols that should be exported even when symbols
   927  // are hidden by default.
   928  // __exported_push/_exported_pop are pragmas used to delimit a range of
   929  //  symbols that should be exported even when symbols are hidden by default.
   930  
   931  // __deprecated causes the compiler to produce a warning when encountering
   932  // code using the deprecated functionality.
   933  // __deprecated_msg() does the same, and compilers that support it will print
   934  // a message along with the deprecation warning.
   935  // This may require turning on such warning with the -Wdeprecated flag.
   936  // __deprecated_enum_msg() should be used on enums, and compilers that support
   937  // it will print the deprecation warning.
   938  // __kpi_deprecated() specifically indicates deprecation of kernel programming
   939  // interfaces in Kernel.framework used by KEXTs.
   940  
   941  // __unavailable causes the compiler to error out when encountering
   942  // code using the tagged function
   943  
   944  // Delete pseudo-keywords wherever they are not available or needed.
   945  
   946  // We use `__restrict' as a way to define the `restrict' type qualifier
   947  // without disturbing older software that is unaware of C99 keywords.
   948  
   949  // Compatibility with compilers and environments that don't support the
   950  // nullability feature.
   951  
   952  // __disable_tail_calls causes the compiler to not perform tail call
   953  // optimization inside the marked function.
   954  
   955  // __not_tail_called causes the compiler to prevent tail call optimization
   956  // on statically bound calls to the function.  It has no effect on indirect
   957  // calls.  Virtual functions, objective-c methods, and functions marked as
   958  // "always_inline" cannot be marked as __not_tail_called.
   959  
   960  // __result_use_check warns callers of a function that not using the function
   961  // return value is a bug, i.e. dismissing malloc() return value results in a
   962  // memory leak.
   963  
   964  // __swift_unavailable causes the compiler to mark a symbol as specifically
   965  // unavailable in Swift, regardless of any other availability in C.
   966  
   967  // __abortlike is the attribute to put on functions like abort() that are
   968  // typically used to mark assertions. These optimize the codegen
   969  // for outlining while still maintaining debugability.
   970  
   971  // Declaring inline functions within headers is error-prone due to differences
   972  // across various versions of the C language and extensions.  __header_inline
   973  // can be used to declare inline functions within system headers.  In cases
   974  // where you want to force inlining instead of letting the compiler make
   975  // the decision, you can use __header_always_inline.
   976  //
   977  // Be aware that using inline for functions which compilers may also provide
   978  // builtins can behave differently under various compilers.  If you intend to
   979  // provide an inline version of such a function, you may want to use a macro
   980  // instead.
   981  //
   982  // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
   983  // support c99 inline in some cases:
   984  // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
   985  
   986  // Compiler-dependent macros that bracket portions of code where the
   987  // "-Wunreachable-code" warning should be ignored. Please use sparingly.
   988  
   989  // Compiler-dependent macros to declare that functions take printf-like
   990  // or scanf-like arguments.  They are null except for versions of gcc
   991  // that are known to support the features properly.  Functions declared
   992  // with these attributes will cause compilation warnings if there is a
   993  // mismatch between the format string and subsequent function parameter
   994  // types.
   995  
   996  // Source compatibility only, ID string not emitted in object file
   997  
   998  // __alloc_size can be used to label function arguments that represent the
   999  // size of memory that the function allocates and returns. The one-argument
  1000  // form labels a single argument that gives the allocation size (where the
  1001  // arguments are numbered from 1):
  1002  //
  1003  // void	*malloc(size_t __size) __alloc_size(1);
  1004  //
  1005  // The two-argument form handles the case where the size is calculated as the
  1006  // product of two arguments:
  1007  //
  1008  // void	*calloc(size_t __count, size_t __size) __alloc_size(1,2);
  1009  
  1010  // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  1011  //
  1012  // DEFAULT	By default newly complied code will get POSIX APIs plus
  1013  //		Apple API extensions in scope.
  1014  //
  1015  //		Most users will use this compilation environment to avoid
  1016  //		behavioral differences between 32 and 64 bit code.
  1017  //
  1018  // LEGACY	Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  1019  //		API extensions in scope.
  1020  //
  1021  //		This is generally equivalent to the Tiger release compilation
  1022  //		environment, except that it cannot be applied to 64 bit code;
  1023  //		its use is discouraged.
  1024  //
  1025  //		We expect this environment to be deprecated in the future.
  1026  //
  1027  // STRICT	Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  1028  //		available APIs to exactly the set of APIs defined by the
  1029  //		corresponding standard, based on the value defined.
  1030  //
  1031  //		A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  1032  //		A correct, portable definition for _XOPEN_SOURCE is 600L.
  1033  //
  1034  //		Apple API extensions are not visible in this environment,
  1035  //		which can cause Apple specific code to fail to compile,
  1036  //		or behave incorrectly if prototypes are not in scope or
  1037  //		warnings about missing prototypes are not enabled or ignored.
  1038  //
  1039  // In any compilation environment, for correct symbol resolution to occur,
  1040  // function prototypes must be in scope.  It is recommended that all Apple
  1041  // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  1042  // compiler flags to their projects to be warned when a function is being
  1043  // used without a prototype in scope.
  1044  
  1045  // These settings are particular to each product.
  1046  // Platform: MacOSX
  1047  
  1048  // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  1049  // legacy code to use the old symbol, thus maintaining binary compatibility
  1050  // while new code can use a standards compliant version of the same function.
  1051  //
  1052  // __DARWIN_ALIAS is used by itself if the function signature has not
  1053  // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  1054  // if the signature has changed.  Because the __LP64__ environment
  1055  // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  1056  // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  1057  //
  1058  // As a special case, when XCode is used to target a specific version of the
  1059  // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  1060  // will be defined by the compiler, with the digits representing major version
  1061  // time 100 + minor version times 10 (e.g. 10.5 := 1050).  If we are targeting
  1062  // pre-10.5, and it is the default compilation environment, revert the
  1063  // compilation environment to pre-__DARWIN_UNIX03.
  1064  
  1065  // symbol suffixes used for symbol versioning
  1066  
  1067  // symbol versioning macros
  1068  
  1069  // symbol release macros
  1070  // Copyright (c) 2010 Apple Inc. All rights reserved.
  1071  //
  1072  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1073  //
  1074  // This file contains Original Code and/or Modifications of Original Code
  1075  // as defined in and that are subject to the Apple Public Source License
  1076  // Version 2.0 (the 'License'). You may not use this file except in
  1077  // compliance with the License. The rights granted to you under the License
  1078  // may not be used to create, or enable the creation or redistribution of,
  1079  // unlawful or unlicensed copies of an Apple operating system, or to
  1080  // circumvent, violate, or enable the circumvention or violation of, any
  1081  // terms of an Apple operating system software license agreement.
  1082  //
  1083  // Please obtain a copy of the License at
  1084  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1085  //
  1086  // The Original Code and all software distributed under the License are
  1087  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1088  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1089  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1090  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1091  // Please see the License for the specific language governing rights and
  1092  // limitations under the License.
  1093  //
  1094  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1095  
  1096  // POSIX.1 requires that the macros we test be defined before any standard
  1097  // header file is included.  This permits us to convert values for feature
  1098  // testing, as necessary, using only _POSIX_C_SOURCE.
  1099  //
  1100  // Here's a quick run-down of the versions:
  1101  //  defined(_POSIX_SOURCE)		1003.1-1988
  1102  //  _POSIX_C_SOURCE == 1L		1003.1-1990
  1103  //  _POSIX_C_SOURCE == 2L		1003.2-1992 C Language Binding Option
  1104  //  _POSIX_C_SOURCE == 199309L		1003.1b-1993
  1105  //  _POSIX_C_SOURCE == 199506L		1003.1c-1995, 1003.1i-1995,
  1106  //					and the omnibus ISO/IEC 9945-1: 1996
  1107  //  _POSIX_C_SOURCE == 200112L		1003.1-2001
  1108  //  _POSIX_C_SOURCE == 200809L		1003.1-2008
  1109  //
  1110  // In addition, the X/Open Portability Guide, which is now the Single UNIX
  1111  // Specification, defines a feature-test macro which indicates the version of
  1112  // that specification, and which subsumes _POSIX_C_SOURCE.
  1113  
  1114  // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  1115  
  1116  // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  1117  
  1118  // Deal with various X/Open Portability Guides and Single UNIX Spec.
  1119  
  1120  // Deal with all versions of POSIX.  The ordering relative to the tests above is
  1121  // important.
  1122  
  1123  // POSIX C deprecation macros
  1124  // Copyright (c) 2010 Apple Inc. All rights reserved.
  1125  //
  1126  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1127  //
  1128  // This file contains Original Code and/or Modifications of Original Code
  1129  // as defined in and that are subject to the Apple Public Source License
  1130  // Version 2.0 (the 'License'). You may not use this file except in
  1131  // compliance with the License. The rights granted to you under the License
  1132  // may not be used to create, or enable the creation or redistribution of,
  1133  // unlawful or unlicensed copies of an Apple operating system, or to
  1134  // circumvent, violate, or enable the circumvention or violation of, any
  1135  // terms of an Apple operating system software license agreement.
  1136  //
  1137  // Please obtain a copy of the License at
  1138  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1139  //
  1140  // The Original Code and all software distributed under the License are
  1141  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1142  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1143  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1144  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1145  // Please see the License for the specific language governing rights and
  1146  // limitations under the License.
  1147  //
  1148  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1149  
  1150  // Set a single macro which will always be defined and can be used to determine
  1151  // the appropriate namespace.  For POSIX, these values will correspond to
  1152  // _POSIX_C_SOURCE value.  Currently there are two additional levels corresponding
  1153  // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  1154  
  1155  // If the developer has neither requested a strict language mode nor a version
  1156  // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  1157  // of __DARWIN_C_FULL.
  1158  
  1159  // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  1160  // c99 still want long longs.  While not perfect, we allow long longs for
  1161  // g++.
  1162  
  1163  // ****************************************
  1164  //
  1165  //  Public darwin-specific feature macros
  1166  //
  1167  
  1168  // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  1169  // structures modified for 64-bit inodes (like struct stat) will be used.
  1170  
  1171  // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  1172  // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  1173  // (and non-zero).  There is no struct stat64 either, as the regular
  1174  // struct stat will already be the 64-bit version.
  1175  
  1176  // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  1177  // in 10.5 exists; no pre-10.5 variants are available.
  1178  
  1179  // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  1180  // are available (the legacy BSD APIs are not available)
  1181  
  1182  // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  1183  // and specifies the conformance level (3 is SUSv3)
  1184  
  1185  // This macro casts away the qualifier from the variable
  1186  //
  1187  // Note: use at your own risk, removing qualifiers can result in
  1188  // catastrophic run-time failures.
  1189  
  1190  // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  1191  // used from other compilation units, but not other libraries or executables.
  1192  
  1193  // We intentionally define to nothing pointer attributes which do not have an
  1194  // impact on the ABI. __indexable and __bidi_indexable are not defined because
  1195  // of the ABI incompatibility that makes the diagnostic preferable.
  1196  
  1197  // Similarly, we intentionally define to nothing the
  1198  // __ptrcheck_abi_assume_single and __ptrcheck_abi_assume_unsafe_indexable
  1199  // macros because they do not lead to an ABI incompatibility. However, we do not
  1200  // define the indexable and unsafe_indexable ones because the diagnostic is
  1201  // better than the silent ABI break.
  1202  
  1203  // __unsafe_forge intrinsics are defined as regular C casts.
  1204  
  1205  // decay operates normally; attribute is meaningless without pointer checks.
  1206  
  1207  // Architecture validation for current SDK
  1208  
  1209  // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  1210  //
  1211  // This provides more advanced type checking on compilers supporting
  1212  // the proper extensions, even in C.
  1213  
  1214  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  1215  //
  1216  // @APPLE_LICENSE_HEADER_START@
  1217  //
  1218  // This file contains Original Code and/or Modifications of Original Code
  1219  // as defined in and that are subject to the Apple Public Source License
  1220  // Version 2.0 (the 'License'). You may not use this file except in
  1221  // compliance with the License. Please obtain a copy of the License at
  1222  // http://www.opensource.apple.com/apsl/ and read it before using this
  1223  // file.
  1224  //
  1225  // The Original Code and all software distributed under the License are
  1226  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1227  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1228  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1229  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1230  // Please see the License for the specific language governing rights and
  1231  // limitations under the License.
  1232  //
  1233  // @APPLE_LICENSE_HEADER_END@
  1234  
  1235  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1236  //
  1237  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1238  //
  1239  // This file contains Original Code and/or Modifications of Original Code
  1240  // as defined in and that are subject to the Apple Public Source License
  1241  // Version 2.0 (the 'License'). You may not use this file except in
  1242  // compliance with the License. The rights granted to you under the License
  1243  // may not be used to create, or enable the creation or redistribution of,
  1244  // unlawful or unlicensed copies of an Apple operating system, or to
  1245  // circumvent, violate, or enable the circumvention or violation of, any
  1246  // terms of an Apple operating system software license agreement.
  1247  //
  1248  // Please obtain a copy of the License at
  1249  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1250  //
  1251  // The Original Code and all software distributed under the License are
  1252  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1253  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1254  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1255  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1256  // Please see the License for the specific language governing rights and
  1257  // limitations under the License.
  1258  //
  1259  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1260  
  1261  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1262  //
  1263  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1264  //
  1265  // This file contains Original Code and/or Modifications of Original Code
  1266  // as defined in and that are subject to the Apple Public Source License
  1267  // Version 2.0 (the 'License'). You may not use this file except in
  1268  // compliance with the License. The rights granted to you under the License
  1269  // may not be used to create, or enable the creation or redistribution of,
  1270  // unlawful or unlicensed copies of an Apple operating system, or to
  1271  // circumvent, violate, or enable the circumvention or violation of, any
  1272  // terms of an Apple operating system software license agreement.
  1273  //
  1274  // Please obtain a copy of the License at
  1275  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1276  //
  1277  // The Original Code and all software distributed under the License are
  1278  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1279  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1280  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1281  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1282  // Please see the License for the specific language governing rights and
  1283  // limitations under the License.
  1284  //
  1285  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1286  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1287  // Copyright (c) 1991, 1993
  1288  //	The Regents of the University of California.  All rights reserved.
  1289  //
  1290  // This code is derived from software contributed to Berkeley by
  1291  // Berkeley Software Design, Inc.
  1292  //
  1293  // Redistribution and use in source and binary forms, with or without
  1294  // modification, are permitted provided that the following conditions
  1295  // are met:
  1296  // 1. Redistributions of source code must retain the above copyright
  1297  //    notice, this list of conditions and the following disclaimer.
  1298  // 2. Redistributions in binary form must reproduce the above copyright
  1299  //    notice, this list of conditions and the following disclaimer in the
  1300  //    documentation and/or other materials provided with the distribution.
  1301  // 3. All advertising materials mentioning features or use of this software
  1302  //    must display the following acknowledgement:
  1303  //	This product includes software developed by the University of
  1304  //	California, Berkeley and its contributors.
  1305  // 4. Neither the name of the University nor the names of its contributors
  1306  //    may be used to endorse or promote products derived from this software
  1307  //    without specific prior written permission.
  1308  //
  1309  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1310  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1311  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1312  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1313  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1314  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1315  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1316  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1317  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1318  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1319  // SUCH DAMAGE.
  1320  //
  1321  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1322  
  1323  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1324  //
  1325  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1326  //
  1327  // This file contains Original Code and/or Modifications of Original Code
  1328  // as defined in and that are subject to the Apple Public Source License
  1329  // Version 2.0 (the 'License'). You may not use this file except in
  1330  // compliance with the License. The rights granted to you under the License
  1331  // may not be used to create, or enable the creation or redistribution of,
  1332  // unlawful or unlicensed copies of an Apple operating system, or to
  1333  // circumvent, violate, or enable the circumvention or violation of, any
  1334  // terms of an Apple operating system software license agreement.
  1335  //
  1336  // Please obtain a copy of the License at
  1337  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1338  //
  1339  // The Original Code and all software distributed under the License are
  1340  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1341  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1342  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1343  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1344  // Please see the License for the specific language governing rights and
  1345  // limitations under the License.
  1346  //
  1347  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1348  
  1349  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1350  
  1351  // This header file contains integer types.  It's intended to also contain
  1352  // flotaing point and other arithmetic types, as needed, later.
  1353  
  1354  type X__int8_t = int8     /* _types.h:15:33 */
  1355  type X__uint8_t = uint8   /* _types.h:19:33 */
  1356  type X__int16_t = int16   /* _types.h:20:33 */
  1357  type X__uint16_t = uint16 /* _types.h:21:33 */
  1358  type X__int32_t = int32   /* _types.h:22:33 */
  1359  type X__uint32_t = uint32 /* _types.h:23:33 */
  1360  type X__int64_t = int64   /* _types.h:24:33 */
  1361  type X__uint64_t = uint64 /* _types.h:25:33 */
  1362  
  1363  type X__darwin_intptr_t = int64   /* _types.h:27:33 */
  1364  type X__darwin_natural_t = uint32 /* _types.h:28:33 */
  1365  
  1366  // The rune type below is declared to be an ``int'' instead of the more natural
  1367  // ``unsigned long'' or ``long''.  Two things are happening here.  It is not
  1368  // unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,
  1369  // it looks like 10646 will be a 31 bit standard.  This means that if your
  1370  // ints cannot hold 32 bits, you will be in trouble.  The reason an int was
  1371  // chosen over a long is that the is*() and to*() routines take ints (says
  1372  // ANSI C), but they use __darwin_ct_rune_t instead of int.  By changing it
  1373  // here, you lose a bit of ANSI conformance, but your programs will still
  1374  // work.
  1375  //
  1376  // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  1377  // be instantiated outside of lib/libc/locale.  Use wchar_t.  wchar_t and
  1378  // rune_t must be the same type.  Also wint_t must be no narrower than
  1379  // wchar_t, and should also be able to hold all members of the largest
  1380  // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  1381  
  1382  type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
  1383  
  1384  // mbstate_t is an opaque object to keep conversion state, during multibyte
  1385  // stream conversions.  The content must not be referenced by user programs.
  1386  type X__mbstate_t = struct {
  1387  	F__ccgo_pad1 [0]uint64
  1388  	F__mbstate8  [128]int8
  1389  } /* _types.h:57:3 */
  1390  
  1391  type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
  1392  
  1393  type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
  1394  
  1395  type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
  1396  
  1397  type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
  1398  
  1399  type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
  1400  
  1401  type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
  1402  
  1403  type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
  1404  
  1405  type X__darwin_clock_t = uint64        /* _types.h:95:33 */ // clock()
  1406  type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
  1407  type X__darwin_ssize_t = int64         /* _types.h:97:33 */ // byte count or error
  1408  type X__darwin_time_t = int64          /* _types.h:98:33 */ // time()
  1409  
  1410  // Type definitions; takes common type definitions that must be used
  1411  // in multiple header files due to [XSI], removes them from the system
  1412  // space, and puts them in the implementation space.
  1413  
  1414  type X__darwin_blkcnt_t = X__int64_t                    /* _types.h:55:25 */ // total blocks
  1415  type X__darwin_blksize_t = X__int32_t                   /* _types.h:56:25 */ // preferred block size
  1416  type X__darwin_dev_t = X__int32_t                       /* _types.h:57:25 */ // dev_t
  1417  type X__darwin_fsblkcnt_t = uint32                      /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  1418  type X__darwin_fsfilcnt_t = uint32                      /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  1419  type X__darwin_gid_t = X__uint32_t                      /* _types.h:60:25 */ // [???] process and group IDs
  1420  type X__darwin_id_t = X__uint32_t                       /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  1421  type X__darwin_ino64_t = X__uint64_t                    /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  1422  type X__darwin_ino_t = X__darwin_ino64_t                /* _types.h:64:26 */ // [???] Used for inodes
  1423  type X__darwin_mach_port_name_t = X__darwin_natural_t   /* _types.h:68:28 */ // Used by mach
  1424  type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  1425  type X__darwin_mode_t = X__uint16_t                     /* _types.h:70:25 */ // [???] Some file attributes
  1426  type X__darwin_off_t = X__int64_t                       /* _types.h:71:25 */ // [???] Used for file sizes
  1427  type X__darwin_pid_t = X__int32_t                       /* _types.h:72:25 */ // [???] process and group IDs
  1428  type X__darwin_sigset_t = X__uint32_t                   /* _types.h:73:25 */ // [???] signal set
  1429  type X__darwin_suseconds_t = X__int32_t                 /* _types.h:74:25 */ // [???] microseconds
  1430  type X__darwin_uid_t = X__uint32_t                      /* _types.h:75:25 */ // [???] user IDs
  1431  type X__darwin_useconds_t = X__uint32_t                 /* _types.h:76:25 */ // [???] microseconds
  1432  type X__darwin_uuid_t = [16]uint8                       /* _types.h:77:25 */
  1433  type X__darwin_uuid_string_t = [37]int8                 /* _types.h:78:17 */
  1434  
  1435  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  1436  //
  1437  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1438  //
  1439  // This file contains Original Code and/or Modifications of Original Code
  1440  // as defined in and that are subject to the Apple Public Source License
  1441  // Version 2.0 (the 'License'). You may not use this file except in
  1442  // compliance with the License. The rights granted to you under the License
  1443  // may not be used to create, or enable the creation or redistribution of,
  1444  // unlawful or unlicensed copies of an Apple operating system, or to
  1445  // circumvent, violate, or enable the circumvention or violation of, any
  1446  // terms of an Apple operating system software license agreement.
  1447  //
  1448  // Please obtain a copy of the License at
  1449  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1450  //
  1451  // The Original Code and all software distributed under the License are
  1452  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1453  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1454  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1455  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1456  // Please see the License for the specific language governing rights and
  1457  // limitations under the License.
  1458  //
  1459  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1460  
  1461  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1462  //
  1463  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1464  //
  1465  // This file contains Original Code and/or Modifications of Original Code
  1466  // as defined in and that are subject to the Apple Public Source License
  1467  // Version 2.0 (the 'License'). You may not use this file except in
  1468  // compliance with the License. The rights granted to you under the License
  1469  // may not be used to create, or enable the creation or redistribution of,
  1470  // unlawful or unlicensed copies of an Apple operating system, or to
  1471  // circumvent, violate, or enable the circumvention or violation of, any
  1472  // terms of an Apple operating system software license agreement.
  1473  //
  1474  // Please obtain a copy of the License at
  1475  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1476  //
  1477  // The Original Code and all software distributed under the License are
  1478  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1479  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1480  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1481  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1482  // Please see the License for the specific language governing rights and
  1483  // limitations under the License.
  1484  //
  1485  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1486  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1487  // Copyright (c) 1991, 1993
  1488  //	The Regents of the University of California.  All rights reserved.
  1489  //
  1490  // This code is derived from software contributed to Berkeley by
  1491  // Berkeley Software Design, Inc.
  1492  //
  1493  // Redistribution and use in source and binary forms, with or without
  1494  // modification, are permitted provided that the following conditions
  1495  // are met:
  1496  // 1. Redistributions of source code must retain the above copyright
  1497  //    notice, this list of conditions and the following disclaimer.
  1498  // 2. Redistributions in binary form must reproduce the above copyright
  1499  //    notice, this list of conditions and the following disclaimer in the
  1500  //    documentation and/or other materials provided with the distribution.
  1501  // 3. All advertising materials mentioning features or use of this software
  1502  //    must display the following acknowledgement:
  1503  //	This product includes software developed by the University of
  1504  //	California, Berkeley and its contributors.
  1505  // 4. Neither the name of the University nor the names of its contributors
  1506  //    may be used to endorse or promote products derived from this software
  1507  //    without specific prior written permission.
  1508  //
  1509  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1510  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1511  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1512  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1513  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1514  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1515  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1516  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1517  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1518  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1519  // SUCH DAMAGE.
  1520  //
  1521  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1522  
  1523  // pthread opaque structures
  1524  
  1525  type X__darwin_pthread_handler_rec = struct {
  1526  	F__routine uintptr
  1527  	F__arg     uintptr
  1528  	F__next    uintptr
  1529  } /* _pthread_types.h:57:1 */
  1530  
  1531  type X_opaque_pthread_attr_t = struct {
  1532  	F__sig    int64
  1533  	F__opaque [56]int8
  1534  } /* _pthread_types.h:63:1 */
  1535  
  1536  type X_opaque_pthread_cond_t = struct {
  1537  	F__sig    int64
  1538  	F__opaque [40]int8
  1539  } /* _pthread_types.h:68:1 */
  1540  
  1541  type X_opaque_pthread_condattr_t = struct {
  1542  	F__sig    int64
  1543  	F__opaque [8]int8
  1544  } /* _pthread_types.h:73:1 */
  1545  
  1546  type X_opaque_pthread_mutex_t = struct {
  1547  	F__sig    int64
  1548  	F__opaque [56]int8
  1549  } /* _pthread_types.h:78:1 */
  1550  
  1551  type X_opaque_pthread_mutexattr_t = struct {
  1552  	F__sig    int64
  1553  	F__opaque [8]int8
  1554  } /* _pthread_types.h:83:1 */
  1555  
  1556  type X_opaque_pthread_once_t = struct {
  1557  	F__sig    int64
  1558  	F__opaque [8]int8
  1559  } /* _pthread_types.h:88:1 */
  1560  
  1561  type X_opaque_pthread_rwlock_t = struct {
  1562  	F__sig    int64
  1563  	F__opaque [192]int8
  1564  } /* _pthread_types.h:93:1 */
  1565  
  1566  type X_opaque_pthread_rwlockattr_t = struct {
  1567  	F__sig    int64
  1568  	F__opaque [16]int8
  1569  } /* _pthread_types.h:98:1 */
  1570  
  1571  type X_opaque_pthread_t = struct {
  1572  	F__sig           int64
  1573  	F__cleanup_stack uintptr
  1574  	F__opaque        [8176]int8
  1575  } /* _pthread_types.h:103:1 */
  1576  
  1577  type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t             /* _pthread_types.h:109:39 */
  1578  type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t             /* _pthread_types.h:110:39 */
  1579  type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t     /* _pthread_types.h:111:43 */
  1580  type X__darwin_pthread_key_t = uint64                               /* _pthread_types.h:112:23 */
  1581  type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t           /* _pthread_types.h:113:40 */
  1582  type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t   /* _pthread_types.h:114:44 */
  1583  type X__darwin_pthread_once_t = X_opaque_pthread_once_t             /* _pthread_types.h:115:39 */
  1584  type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t         /* _pthread_types.h:116:41 */
  1585  type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  1586  type X__darwin_pthread_t = uintptr                                  /* _pthread_types.h:118:34 */
  1587  
  1588  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1589  //
  1590  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1591  //
  1592  // This file contains Original Code and/or Modifications of Original Code
  1593  // as defined in and that are subject to the Apple Public Source License
  1594  // Version 2.0 (the 'License'). You may not use this file except in
  1595  // compliance with the License. The rights granted to you under the License
  1596  // may not be used to create, or enable the creation or redistribution of,
  1597  // unlawful or unlicensed copies of an Apple operating system, or to
  1598  // circumvent, violate, or enable the circumvention or violation of, any
  1599  // terms of an Apple operating system software license agreement.
  1600  //
  1601  // Please obtain a copy of the License at
  1602  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1603  //
  1604  // The Original Code and all software distributed under the License are
  1605  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1606  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1607  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1608  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1609  // Please see the License for the specific language governing rights and
  1610  // limitations under the License.
  1611  //
  1612  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1613  
  1614  type X__darwin_nl_item = int32        /* _types.h:40:14 */
  1615  type X__darwin_wctrans_t = int32      /* _types.h:41:14 */
  1616  type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
  1617  
  1618  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  1619  //
  1620  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1621  //
  1622  // This file contains Original Code and/or Modifications of Original Code
  1623  // as defined in and that are subject to the Apple Public Source License
  1624  // Version 2.0 (the 'License'). You may not use this file except in
  1625  // compliance with the License. The rights granted to you under the License
  1626  // may not be used to create, or enable the creation or redistribution of,
  1627  // unlawful or unlicensed copies of an Apple operating system, or to
  1628  // circumvent, violate, or enable the circumvention or violation of, any
  1629  // terms of an Apple operating system software license agreement.
  1630  //
  1631  // Please obtain a copy of the License at
  1632  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1633  //
  1634  // The Original Code and all software distributed under the License are
  1635  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1636  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1637  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1638  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1639  // Please see the License for the specific language governing rights and
  1640  // limitations under the License.
  1641  //
  1642  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1643  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  1644  // Copyright (c) 1982, 1986, 1989, 1993, 1994
  1645  //	The Regents of the University of California.  All rights reserved.
  1646  //
  1647  // Redistribution and use in source and binary forms, with or without
  1648  // modification, are permitted provided that the following conditions
  1649  // are met:
  1650  // 1. Redistributions of source code must retain the above copyright
  1651  //    notice, this list of conditions and the following disclaimer.
  1652  // 2. Redistributions in binary form must reproduce the above copyright
  1653  //    notice, this list of conditions and the following disclaimer in the
  1654  //    documentation and/or other materials provided with the distribution.
  1655  // 3. All advertising materials mentioning features or use of this software
  1656  //    must display the following acknowledgement:
  1657  //	This product includes software developed by the University of
  1658  //	California, Berkeley and its contributors.
  1659  // 4. Neither the name of the University nor the names of its contributors
  1660  //    may be used to endorse or promote products derived from this software
  1661  //    without specific prior written permission.
  1662  //
  1663  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1664  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1665  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1666  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1667  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1668  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1669  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1670  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1671  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1672  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1673  // SUCH DAMAGE.
  1674  //
  1675  //	@(#)wait.h	8.2 (Berkeley) 7/10/94
  1676  
  1677  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1678  //
  1679  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1680  //
  1681  // This file contains Original Code and/or Modifications of Original Code
  1682  // as defined in and that are subject to the Apple Public Source License
  1683  // Version 2.0 (the 'License'). You may not use this file except in
  1684  // compliance with the License. The rights granted to you under the License
  1685  // may not be used to create, or enable the creation or redistribution of,
  1686  // unlawful or unlicensed copies of an Apple operating system, or to
  1687  // circumvent, violate, or enable the circumvention or violation of, any
  1688  // terms of an Apple operating system software license agreement.
  1689  //
  1690  // Please obtain a copy of the License at
  1691  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1692  //
  1693  // The Original Code and all software distributed under the License are
  1694  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1695  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1696  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1697  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1698  // Please see the License for the specific language governing rights and
  1699  // limitations under the License.
  1700  //
  1701  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1702  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1703  // Copyright (c) 1991, 1993
  1704  //	The Regents of the University of California.  All rights reserved.
  1705  //
  1706  // This code is derived from software contributed to Berkeley by
  1707  // Berkeley Software Design, Inc.
  1708  //
  1709  // Redistribution and use in source and binary forms, with or without
  1710  // modification, are permitted provided that the following conditions
  1711  // are met:
  1712  // 1. Redistributions of source code must retain the above copyright
  1713  //    notice, this list of conditions and the following disclaimer.
  1714  // 2. Redistributions in binary form must reproduce the above copyright
  1715  //    notice, this list of conditions and the following disclaimer in the
  1716  //    documentation and/or other materials provided with the distribution.
  1717  // 3. All advertising materials mentioning features or use of this software
  1718  //    must display the following acknowledgement:
  1719  //	This product includes software developed by the University of
  1720  //	California, Berkeley and its contributors.
  1721  // 4. Neither the name of the University nor the names of its contributors
  1722  //    may be used to endorse or promote products derived from this software
  1723  //    without specific prior written permission.
  1724  //
  1725  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1726  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1727  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1728  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1729  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1730  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1731  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1732  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1733  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1734  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1735  // SUCH DAMAGE.
  1736  //
  1737  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1738  
  1739  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1740  //
  1741  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1742  //
  1743  // This file contains Original Code and/or Modifications of Original Code
  1744  // as defined in and that are subject to the Apple Public Source License
  1745  // Version 2.0 (the 'License'). You may not use this file except in
  1746  // compliance with the License. The rights granted to you under the License
  1747  // may not be used to create, or enable the creation or redistribution of,
  1748  // unlawful or unlicensed copies of an Apple operating system, or to
  1749  // circumvent, violate, or enable the circumvention or violation of, any
  1750  // terms of an Apple operating system software license agreement.
  1751  //
  1752  // Please obtain a copy of the License at
  1753  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1754  //
  1755  // The Original Code and all software distributed under the License are
  1756  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1757  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1758  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1759  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1760  // Please see the License for the specific language governing rights and
  1761  // limitations under the License.
  1762  //
  1763  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1764  
  1765  // This file holds definitions relevent to the wait4 system call
  1766  // and the alternate interfaces that use it (wait, wait3, waitpid).
  1767  
  1768  // [XSI] The type idtype_t shall be defined as an enumeration type whose
  1769  // possible values shall include at least P_ALL, P_PID, and P_PGID.
  1770  type Idtype_t = uint32 /* wait.h:83:3 */
  1771  
  1772  // [XSI] The id_t and pid_t types shall be defined as described
  1773  // in <sys/types.h>
  1774  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1775  //
  1776  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1777  //
  1778  // This file contains Original Code and/or Modifications of Original Code
  1779  // as defined in and that are subject to the Apple Public Source License
  1780  // Version 2.0 (the 'License'). You may not use this file except in
  1781  // compliance with the License. The rights granted to you under the License
  1782  // may not be used to create, or enable the creation or redistribution of,
  1783  // unlawful or unlicensed copies of an Apple operating system, or to
  1784  // circumvent, violate, or enable the circumvention or violation of, any
  1785  // terms of an Apple operating system software license agreement.
  1786  //
  1787  // Please obtain a copy of the License at
  1788  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1789  //
  1790  // The Original Code and all software distributed under the License are
  1791  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1792  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1793  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1794  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1795  // Please see the License for the specific language governing rights and
  1796  // limitations under the License.
  1797  //
  1798  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1799  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1800  //
  1801  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1802  //
  1803  // This file contains Original Code and/or Modifications of Original Code
  1804  // as defined in and that are subject to the Apple Public Source License
  1805  // Version 2.0 (the 'License'). You may not use this file except in
  1806  // compliance with the License. The rights granted to you under the License
  1807  // may not be used to create, or enable the creation or redistribution of,
  1808  // unlawful or unlicensed copies of an Apple operating system, or to
  1809  // circumvent, violate, or enable the circumvention or violation of, any
  1810  // terms of an Apple operating system software license agreement.
  1811  //
  1812  // Please obtain a copy of the License at
  1813  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1814  //
  1815  // The Original Code and all software distributed under the License are
  1816  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1817  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1818  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1819  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1820  // Please see the License for the specific language governing rights and
  1821  // limitations under the License.
  1822  //
  1823  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1824  
  1825  type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */
  1826  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1827  //
  1828  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1829  //
  1830  // This file contains Original Code and/or Modifications of Original Code
  1831  // as defined in and that are subject to the Apple Public Source License
  1832  // Version 2.0 (the 'License'). You may not use this file except in
  1833  // compliance with the License. The rights granted to you under the License
  1834  // may not be used to create, or enable the creation or redistribution of,
  1835  // unlawful or unlicensed copies of an Apple operating system, or to
  1836  // circumvent, violate, or enable the circumvention or violation of, any
  1837  // terms of an Apple operating system software license agreement.
  1838  //
  1839  // Please obtain a copy of the License at
  1840  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1841  //
  1842  // The Original Code and all software distributed under the License are
  1843  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1844  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1845  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1846  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1847  // Please see the License for the specific language governing rights and
  1848  // limitations under the License.
  1849  //
  1850  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1851  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1852  //
  1853  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1854  //
  1855  // This file contains Original Code and/or Modifications of Original Code
  1856  // as defined in and that are subject to the Apple Public Source License
  1857  // Version 2.0 (the 'License'). You may not use this file except in
  1858  // compliance with the License. The rights granted to you under the License
  1859  // may not be used to create, or enable the creation or redistribution of,
  1860  // unlawful or unlicensed copies of an Apple operating system, or to
  1861  // circumvent, violate, or enable the circumvention or violation of, any
  1862  // terms of an Apple operating system software license agreement.
  1863  //
  1864  // Please obtain a copy of the License at
  1865  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1866  //
  1867  // The Original Code and all software distributed under the License are
  1868  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1869  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1870  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1871  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1872  // Please see the License for the specific language governing rights and
  1873  // limitations under the License.
  1874  //
  1875  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1876  
  1877  type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t
  1878  
  1879  // [XSI] The siginfo_t type shall be defined as described in <signal.h>
  1880  // [XSI] The rusage structure shall be defined as described in <sys/resource.h>
  1881  // [XSI] Inclusion of the <sys/wait.h> header may also make visible all
  1882  // symbols from <signal.h> and <sys/resource.h>
  1883  //
  1884  // NOTE:	This requirement is currently being satisfied by the direct
  1885  //		inclusion of <sys/signal.h> and <sys/resource.h>, below.
  1886  //
  1887  //		Software should not depend on the exposure of anything other
  1888  //		than the types siginfo_t and struct rusage as a result of
  1889  //		this inclusion.  If you depend on any types or manifest
  1890  //		values othe than siginfo_t and struct rusage from either of
  1891  //		those files, you should explicitly include them yourself, as
  1892  //		well, or in future releases your stware may not compile
  1893  //		without modification.
  1894  // Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
  1895  //
  1896  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1897  //
  1898  // This file contains Original Code and/or Modifications of Original Code
  1899  // as defined in and that are subject to the Apple Public Source License
  1900  // Version 2.0 (the 'License'). You may not use this file except in
  1901  // compliance with the License. The rights granted to you under the License
  1902  // may not be used to create, or enable the creation or redistribution of,
  1903  // unlawful or unlicensed copies of an Apple operating system, or to
  1904  // circumvent, violate, or enable the circumvention or violation of, any
  1905  // terms of an Apple operating system software license agreement.
  1906  //
  1907  // Please obtain a copy of the License at
  1908  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1909  //
  1910  // The Original Code and all software distributed under the License are
  1911  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1912  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1913  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1914  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1915  // Please see the License for the specific language governing rights and
  1916  // limitations under the License.
  1917  //
  1918  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1919  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  1920  // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1921  //	The Regents of the University of California.  All rights reserved.
  1922  // (c) UNIX System Laboratories, Inc.
  1923  // All or some portions of this file are derived from material licensed
  1924  // to the University of California by American Telephone and Telegraph
  1925  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1926  // the permission of UNIX System Laboratories, Inc.
  1927  //
  1928  // Redistribution and use in source and binary forms, with or without
  1929  // modification, are permitted provided that the following conditions
  1930  // are met:
  1931  // 1. Redistributions of source code must retain the above copyright
  1932  //    notice, this list of conditions and the following disclaimer.
  1933  // 2. Redistributions in binary form must reproduce the above copyright
  1934  //    notice, this list of conditions and the following disclaimer in the
  1935  //    documentation and/or other materials provided with the distribution.
  1936  // 3. All advertising materials mentioning features or use of this software
  1937  //    must display the following acknowledgement:
  1938  //	This product includes software developed by the University of
  1939  //	California, Berkeley and its contributors.
  1940  // 4. Neither the name of the University nor the names of its contributors
  1941  //    may be used to endorse or promote products derived from this software
  1942  //    without specific prior written permission.
  1943  //
  1944  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1945  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1946  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1947  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1948  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1949  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1950  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1951  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1952  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1953  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1954  // SUCH DAMAGE.
  1955  //
  1956  //	@(#)signal.h	8.2 (Berkeley) 1/21/94
  1957  
  1958  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1959  //
  1960  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1961  //
  1962  // This file contains Original Code and/or Modifications of Original Code
  1963  // as defined in and that are subject to the Apple Public Source License
  1964  // Version 2.0 (the 'License'). You may not use this file except in
  1965  // compliance with the License. The rights granted to you under the License
  1966  // may not be used to create, or enable the creation or redistribution of,
  1967  // unlawful or unlicensed copies of an Apple operating system, or to
  1968  // circumvent, violate, or enable the circumvention or violation of, any
  1969  // terms of an Apple operating system software license agreement.
  1970  //
  1971  // Please obtain a copy of the License at
  1972  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1973  //
  1974  // The Original Code and all software distributed under the License are
  1975  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1976  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1977  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1978  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1979  // Please see the License for the specific language governing rights and
  1980  // limitations under the License.
  1981  //
  1982  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1983  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1984  // Copyright (c) 1991, 1993
  1985  //	The Regents of the University of California.  All rights reserved.
  1986  //
  1987  // This code is derived from software contributed to Berkeley by
  1988  // Berkeley Software Design, Inc.
  1989  //
  1990  // Redistribution and use in source and binary forms, with or without
  1991  // modification, are permitted provided that the following conditions
  1992  // are met:
  1993  // 1. Redistributions of source code must retain the above copyright
  1994  //    notice, this list of conditions and the following disclaimer.
  1995  // 2. Redistributions in binary form must reproduce the above copyright
  1996  //    notice, this list of conditions and the following disclaimer in the
  1997  //    documentation and/or other materials provided with the distribution.
  1998  // 3. All advertising materials mentioning features or use of this software
  1999  //    must display the following acknowledgement:
  2000  //	This product includes software developed by the University of
  2001  //	California, Berkeley and its contributors.
  2002  // 4. Neither the name of the University nor the names of its contributors
  2003  //    may be used to endorse or promote products derived from this software
  2004  //    without specific prior written permission.
  2005  //
  2006  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2007  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2008  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2009  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2010  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2011  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2012  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2013  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2014  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2015  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2016  // SUCH DAMAGE.
  2017  //
  2018  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2019  
  2020  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  2021  //
  2022  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2023  //
  2024  // This file contains Original Code and/or Modifications of Original Code
  2025  // as defined in and that are subject to the Apple Public Source License
  2026  // Version 2.0 (the 'License'). You may not use this file except in
  2027  // compliance with the License. The rights granted to you under the License
  2028  // may not be used to create, or enable the creation or redistribution of,
  2029  // unlawful or unlicensed copies of an Apple operating system, or to
  2030  // circumvent, violate, or enable the circumvention or violation of, any
  2031  // terms of an Apple operating system software license agreement.
  2032  //
  2033  // Please obtain a copy of the License at
  2034  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2035  //
  2036  // The Original Code and all software distributed under the License are
  2037  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2038  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2039  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2040  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2041  // Please see the License for the specific language governing rights and
  2042  // limitations under the License.
  2043  //
  2044  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2045  
  2046  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  2047  //
  2048  // @APPLE_LICENSE_HEADER_START@
  2049  //
  2050  // This file contains Original Code and/or Modifications of Original Code
  2051  // as defined in and that are subject to the Apple Public Source License
  2052  // Version 2.0 (the 'License'). You may not use this file except in
  2053  // compliance with the License. Please obtain a copy of the License at
  2054  // http://www.opensource.apple.com/apsl/ and read it before using this
  2055  // file.
  2056  //
  2057  // The Original Code and all software distributed under the License are
  2058  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2059  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2060  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2061  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2062  // Please see the License for the specific language governing rights and
  2063  // limitations under the License.
  2064  //
  2065  // @APPLE_LICENSE_HEADER_END@
  2066  
  2067  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2068  //
  2069  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2070  //
  2071  // This file contains Original Code and/or Modifications of Original Code
  2072  // as defined in and that are subject to the Apple Public Source License
  2073  // Version 2.0 (the 'License'). You may not use this file except in
  2074  // compliance with the License. The rights granted to you under the License
  2075  // may not be used to create, or enable the creation or redistribution of,
  2076  // unlawful or unlicensed copies of an Apple operating system, or to
  2077  // circumvent, violate, or enable the circumvention or violation of, any
  2078  // terms of an Apple operating system software license agreement.
  2079  //
  2080  // Please obtain a copy of the License at
  2081  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2082  //
  2083  // The Original Code and all software distributed under the License are
  2084  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2085  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2086  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2087  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2088  // Please see the License for the specific language governing rights and
  2089  // limitations under the License.
  2090  //
  2091  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2092  
  2093  // Copyright (c) 2000-2009 Apple, Inc. All rights reserved.
  2094  // Copyright (c) 1992 NeXT Computer, Inc.
  2095  //
  2096  
  2097  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2098  //
  2099  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2100  //
  2101  // This file contains Original Code and/or Modifications of Original Code
  2102  // as defined in and that are subject to the Apple Public Source License
  2103  // Version 2.0 (the 'License'). You may not use this file except in
  2104  // compliance with the License. The rights granted to you under the License
  2105  // may not be used to create, or enable the creation or redistribution of,
  2106  // unlawful or unlicensed copies of an Apple operating system, or to
  2107  // circumvent, violate, or enable the circumvention or violation of, any
  2108  // terms of an Apple operating system software license agreement.
  2109  //
  2110  // Please obtain a copy of the License at
  2111  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2112  //
  2113  // The Original Code and all software distributed under the License are
  2114  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2115  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2116  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2117  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2118  // Please see the License for the specific language governing rights and
  2119  // limitations under the License.
  2120  //
  2121  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2122  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2123  // Copyright (c) 1991, 1993
  2124  //	The Regents of the University of California.  All rights reserved.
  2125  //
  2126  // This code is derived from software contributed to Berkeley by
  2127  // Berkeley Software Design, Inc.
  2128  //
  2129  // Redistribution and use in source and binary forms, with or without
  2130  // modification, are permitted provided that the following conditions
  2131  // are met:
  2132  // 1. Redistributions of source code must retain the above copyright
  2133  //    notice, this list of conditions and the following disclaimer.
  2134  // 2. Redistributions in binary form must reproduce the above copyright
  2135  //    notice, this list of conditions and the following disclaimer in the
  2136  //    documentation and/or other materials provided with the distribution.
  2137  // 3. All advertising materials mentioning features or use of this software
  2138  //    must display the following acknowledgement:
  2139  //	This product includes software developed by the University of
  2140  //	California, Berkeley and its contributors.
  2141  // 4. Neither the name of the University nor the names of its contributors
  2142  //    may be used to endorse or promote products derived from this software
  2143  //    without specific prior written permission.
  2144  //
  2145  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2146  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2147  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2148  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2149  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2150  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2151  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2152  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2153  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2154  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2155  // SUCH DAMAGE.
  2156  //
  2157  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2158  
  2159  type Sig_atomic_t = int32 /* signal.h:17:13 */
  2160  
  2161  // Language spec sez we must list exactly one parameter, even though we
  2162  // actually supply three.  Ugh!
  2163  // SIG_HOLD is chosen to avoid KERN_SIG_* values in <sys/signalvar.h>
  2164  
  2165  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2166  //
  2167  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2168  //
  2169  // This file contains Original Code and/or Modifications of Original Code
  2170  // as defined in and that are subject to the Apple Public Source License
  2171  // Version 2.0 (the 'License'). You may not use this file except in
  2172  // compliance with the License. The rights granted to you under the License
  2173  // may not be used to create, or enable the creation or redistribution of,
  2174  // unlawful or unlicensed copies of an Apple operating system, or to
  2175  // circumvent, violate, or enable the circumvention or violation of, any
  2176  // terms of an Apple operating system software license agreement.
  2177  //
  2178  // Please obtain a copy of the License at
  2179  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2180  //
  2181  // The Original Code and all software distributed under the License are
  2182  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2183  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2184  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2185  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2186  // Please see the License for the specific language governing rights and
  2187  // limitations under the License.
  2188  //
  2189  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2190  
  2191  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2192  //
  2193  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2194  //
  2195  // This file contains Original Code and/or Modifications of Original Code
  2196  // as defined in and that are subject to the Apple Public Source License
  2197  // Version 2.0 (the 'License'). You may not use this file except in
  2198  // compliance with the License. The rights granted to you under the License
  2199  // may not be used to create, or enable the creation or redistribution of,
  2200  // unlawful or unlicensed copies of an Apple operating system, or to
  2201  // circumvent, violate, or enable the circumvention or violation of, any
  2202  // terms of an Apple operating system software license agreement.
  2203  //
  2204  // Please obtain a copy of the License at
  2205  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2206  //
  2207  // The Original Code and all software distributed under the License are
  2208  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2209  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2210  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2211  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2212  // Please see the License for the specific language governing rights and
  2213  // limitations under the License.
  2214  //
  2215  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2216  
  2217  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2218  //
  2219  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2220  //
  2221  // This file contains Original Code and/or Modifications of Original Code
  2222  // as defined in and that are subject to the Apple Public Source License
  2223  // Version 2.0 (the 'License'). You may not use this file except in
  2224  // compliance with the License. The rights granted to you under the License
  2225  // may not be used to create, or enable the creation or redistribution of,
  2226  // unlawful or unlicensed copies of an Apple operating system, or to
  2227  // circumvent, violate, or enable the circumvention or violation of, any
  2228  // terms of an Apple operating system software license agreement.
  2229  //
  2230  // Please obtain a copy of the License at
  2231  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2232  //
  2233  // The Original Code and all software distributed under the License are
  2234  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2235  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2236  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2237  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2238  // Please see the License for the specific language governing rights and
  2239  // limitations under the License.
  2240  //
  2241  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2242  
  2243  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2244  //
  2245  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2246  //
  2247  // This file contains Original Code and/or Modifications of Original Code
  2248  // as defined in and that are subject to the Apple Public Source License
  2249  // Version 2.0 (the 'License'). You may not use this file except in
  2250  // compliance with the License. The rights granted to you under the License
  2251  // may not be used to create, or enable the creation or redistribution of,
  2252  // unlawful or unlicensed copies of an Apple operating system, or to
  2253  // circumvent, violate, or enable the circumvention or violation of, any
  2254  // terms of an Apple operating system software license agreement.
  2255  //
  2256  // Please obtain a copy of the License at
  2257  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2258  //
  2259  // The Original Code and all software distributed under the License are
  2260  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2261  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2262  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2263  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2264  // Please see the License for the specific language governing rights and
  2265  // limitations under the License.
  2266  //
  2267  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2268  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2269  // Copyright (c) 1991, 1993
  2270  //	The Regents of the University of California.  All rights reserved.
  2271  //
  2272  // This code is derived from software contributed to Berkeley by
  2273  // Berkeley Software Design, Inc.
  2274  //
  2275  // Redistribution and use in source and binary forms, with or without
  2276  // modification, are permitted provided that the following conditions
  2277  // are met:
  2278  // 1. Redistributions of source code must retain the above copyright
  2279  //    notice, this list of conditions and the following disclaimer.
  2280  // 2. Redistributions in binary form must reproduce the above copyright
  2281  //    notice, this list of conditions and the following disclaimer in the
  2282  //    documentation and/or other materials provided with the distribution.
  2283  // 3. All advertising materials mentioning features or use of this software
  2284  //    must display the following acknowledgement:
  2285  //	This product includes software developed by the University of
  2286  //	California, Berkeley and its contributors.
  2287  // 4. Neither the name of the University nor the names of its contributors
  2288  //    may be used to endorse or promote products derived from this software
  2289  //    without specific prior written permission.
  2290  //
  2291  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2292  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2293  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2294  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2295  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2296  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2297  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2298  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2299  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2300  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2301  // SUCH DAMAGE.
  2302  //
  2303  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2304  
  2305  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  2306  //
  2307  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2308  //
  2309  // This file contains Original Code and/or Modifications of Original Code
  2310  // as defined in and that are subject to the Apple Public Source License
  2311  // Version 2.0 (the 'License'). You may not use this file except in
  2312  // compliance with the License. The rights granted to you under the License
  2313  // may not be used to create, or enable the creation or redistribution of,
  2314  // unlawful or unlicensed copies of an Apple operating system, or to
  2315  // circumvent, violate, or enable the circumvention or violation of, any
  2316  // terms of an Apple operating system software license agreement.
  2317  //
  2318  // Please obtain a copy of the License at
  2319  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2320  //
  2321  // The Original Code and all software distributed under the License are
  2322  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2323  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2324  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2325  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2326  // Please see the License for the specific language governing rights and
  2327  // limitations under the License.
  2328  //
  2329  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2330  
  2331  // Copyright (c) 2017 Apple Inc. All rights reserved.
  2332  //
  2333  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2334  //
  2335  // This file contains Original Code and/or Modifications of Original Code
  2336  // as defined in and that are subject to the Apple Public Source License
  2337  // Version 2.0 (the 'License'). You may not use this file except in
  2338  // compliance with the License. The rights granted to you under the License
  2339  // may not be used to create, or enable the creation or redistribution of,
  2340  // unlawful or unlicensed copies of an Apple operating system, or to
  2341  // circumvent, violate, or enable the circumvention or violation of, any
  2342  // terms of an Apple operating system software license agreement.
  2343  //
  2344  // Please obtain a copy of the License at
  2345  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2346  //
  2347  // The Original Code and all software distributed under the License are
  2348  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2349  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2350  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2351  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2352  // Please see the License for the specific language governing rights and
  2353  // limitations under the License.
  2354  //
  2355  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2356  
  2357  // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
  2358  //
  2359  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2360  //
  2361  // This file contains Original Code and/or Modifications of Original Code
  2362  // as defined in and that are subject to the Apple Public Source License
  2363  // Version 2.0 (the 'License'). You may not use this file except in
  2364  // compliance with the License. The rights granted to you under the License
  2365  // may not be used to create, or enable the creation or redistribution of,
  2366  // unlawful or unlicensed copies of an Apple operating system, or to
  2367  // circumvent, violate, or enable the circumvention or violation of, any
  2368  // terms of an Apple operating system software license agreement.
  2369  //
  2370  // Please obtain a copy of the License at
  2371  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2372  //
  2373  // The Original Code and all software distributed under the License are
  2374  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2375  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2376  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2377  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2378  // Please see the License for the specific language governing rights and
  2379  // limitations under the License.
  2380  //
  2381  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2382  // @OSF_COPYRIGHT@
  2383  
  2384  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2385  //
  2386  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2387  //
  2388  // This file contains Original Code and/or Modifications of Original Code
  2389  // as defined in and that are subject to the Apple Public Source License
  2390  // Version 2.0 (the 'License'). You may not use this file except in
  2391  // compliance with the License. The rights granted to you under the License
  2392  // may not be used to create, or enable the creation or redistribution of,
  2393  // unlawful or unlicensed copies of an Apple operating system, or to
  2394  // circumvent, violate, or enable the circumvention or violation of, any
  2395  // terms of an Apple operating system software license agreement.
  2396  //
  2397  // Please obtain a copy of the License at
  2398  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2399  //
  2400  // The Original Code and all software distributed under the License are
  2401  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2402  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2403  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2404  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2405  // Please see the License for the specific language governing rights and
  2406  // limitations under the License.
  2407  //
  2408  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2409  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2410  // Copyright (c) 1991, 1993
  2411  //	The Regents of the University of California.  All rights reserved.
  2412  //
  2413  // This code is derived from software contributed to Berkeley by
  2414  // Berkeley Software Design, Inc.
  2415  //
  2416  // Redistribution and use in source and binary forms, with or without
  2417  // modification, are permitted provided that the following conditions
  2418  // are met:
  2419  // 1. Redistributions of source code must retain the above copyright
  2420  //    notice, this list of conditions and the following disclaimer.
  2421  // 2. Redistributions in binary form must reproduce the above copyright
  2422  //    notice, this list of conditions and the following disclaimer in the
  2423  //    documentation and/or other materials provided with the distribution.
  2424  // 3. All advertising materials mentioning features or use of this software
  2425  //    must display the following acknowledgement:
  2426  //	This product includes software developed by the University of
  2427  //	California, Berkeley and its contributors.
  2428  // 4. Neither the name of the University nor the names of its contributors
  2429  //    may be used to endorse or promote products derived from this software
  2430  //    without specific prior written permission.
  2431  //
  2432  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2433  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2434  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2435  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2436  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2437  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2438  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2439  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2440  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2441  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2442  // SUCH DAMAGE.
  2443  //
  2444  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2445  
  2446  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2447  //
  2448  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2449  //
  2450  // This file contains Original Code and/or Modifications of Original Code
  2451  // as defined in and that are subject to the Apple Public Source License
  2452  // Version 2.0 (the 'License'). You may not use this file except in
  2453  // compliance with the License. The rights granted to you under the License
  2454  // may not be used to create, or enable the creation or redistribution of,
  2455  // unlawful or unlicensed copies of an Apple operating system, or to
  2456  // circumvent, violate, or enable the circumvention or violation of, any
  2457  // terms of an Apple operating system software license agreement.
  2458  //
  2459  // Please obtain a copy of the License at
  2460  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2461  //
  2462  // The Original Code and all software distributed under the License are
  2463  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2464  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2465  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2466  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2467  // Please see the License for the specific language governing rights and
  2468  // limitations under the License.
  2469  //
  2470  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2471  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2472  
  2473  // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  2474  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2475  // Copyright (c) 1990, 1993
  2476  //	The Regents of the University of California.  All rights reserved.
  2477  //
  2478  // Redistribution and use in source and binary forms, with or without
  2479  // modification, are permitted provided that the following conditions
  2480  // are met:
  2481  // 1. Redistributions of source code must retain the above copyright
  2482  //    notice, this list of conditions and the following disclaimer.
  2483  // 2. Redistributions in binary form must reproduce the above copyright
  2484  //    notice, this list of conditions and the following disclaimer in the
  2485  //    documentation and/or other materials provided with the distribution.
  2486  // 3. All advertising materials mentioning features or use of this software
  2487  //    must display the following acknowledgement:
  2488  //	This product includes software developed by the University of
  2489  //	California, Berkeley and its contributors.
  2490  // 4. Neither the name of the University nor the names of its contributors
  2491  //    may be used to endorse or promote products derived from this software
  2492  //    without specific prior written permission.
  2493  //
  2494  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2495  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2496  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2497  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2498  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2499  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2500  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2501  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2502  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2503  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2504  // SUCH DAMAGE.
  2505  //
  2506  //	@(#)types.h	8.3 (Berkeley) 1/5/94
  2507  
  2508  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2509  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2510  //
  2511  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2512  //
  2513  // This file contains Original Code and/or Modifications of Original Code
  2514  // as defined in and that are subject to the Apple Public Source License
  2515  // Version 2.0 (the 'License'). You may not use this file except in
  2516  // compliance with the License. The rights granted to you under the License
  2517  // may not be used to create, or enable the creation or redistribution of,
  2518  // unlawful or unlicensed copies of an Apple operating system, or to
  2519  // circumvent, violate, or enable the circumvention or violation of, any
  2520  // terms of an Apple operating system software license agreement.
  2521  //
  2522  // Please obtain a copy of the License at
  2523  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2524  //
  2525  // The Original Code and all software distributed under the License are
  2526  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2527  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2528  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2529  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2530  // Please see the License for the specific language governing rights and
  2531  // limitations under the License.
  2532  //
  2533  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2534  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2535  // Copyright (c) 1991, 1993
  2536  //	The Regents of the University of California.  All rights reserved.
  2537  //
  2538  // This code is derived from software contributed to Berkeley by
  2539  // Berkeley Software Design, Inc.
  2540  //
  2541  // Redistribution and use in source and binary forms, with or without
  2542  // modification, are permitted provided that the following conditions
  2543  // are met:
  2544  // 1. Redistributions of source code must retain the above copyright
  2545  //    notice, this list of conditions and the following disclaimer.
  2546  // 2. Redistributions in binary form must reproduce the above copyright
  2547  //    notice, this list of conditions and the following disclaimer in the
  2548  //    documentation and/or other materials provided with the distribution.
  2549  // 3. All advertising materials mentioning features or use of this software
  2550  //    must display the following acknowledgement:
  2551  //	This product includes software developed by the University of
  2552  //	California, Berkeley and its contributors.
  2553  // 4. Neither the name of the University nor the names of its contributors
  2554  //    may be used to endorse or promote products derived from this software
  2555  //    without specific prior written permission.
  2556  //
  2557  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2558  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2559  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2560  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2561  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2562  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2563  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2564  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2565  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2566  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2567  // SUCH DAMAGE.
  2568  //
  2569  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2570  
  2571  // Basic integral types.  Omit the typedef if
  2572  // not possible for a machine/compiler combination.
  2573  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2574  //
  2575  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2576  //
  2577  // This file contains Original Code and/or Modifications of Original Code
  2578  // as defined in and that are subject to the Apple Public Source License
  2579  // Version 2.0 (the 'License'). You may not use this file except in
  2580  // compliance with the License. The rights granted to you under the License
  2581  // may not be used to create, or enable the creation or redistribution of,
  2582  // unlawful or unlicensed copies of an Apple operating system, or to
  2583  // circumvent, violate, or enable the circumvention or violation of, any
  2584  // terms of an Apple operating system software license agreement.
  2585  //
  2586  // Please obtain a copy of the License at
  2587  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2588  //
  2589  // The Original Code and all software distributed under the License are
  2590  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2591  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2592  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2593  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2594  // Please see the License for the specific language governing rights and
  2595  // limitations under the License.
  2596  //
  2597  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2598  type Int8_t = int8 /* _int8_t.h:30:31 */
  2599  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2600  //
  2601  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2602  //
  2603  // This file contains Original Code and/or Modifications of Original Code
  2604  // as defined in and that are subject to the Apple Public Source License
  2605  // Version 2.0 (the 'License'). You may not use this file except in
  2606  // compliance with the License. The rights granted to you under the License
  2607  // may not be used to create, or enable the creation or redistribution of,
  2608  // unlawful or unlicensed copies of an Apple operating system, or to
  2609  // circumvent, violate, or enable the circumvention or violation of, any
  2610  // terms of an Apple operating system software license agreement.
  2611  //
  2612  // Please obtain a copy of the License at
  2613  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2614  //
  2615  // The Original Code and all software distributed under the License are
  2616  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2617  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2618  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2619  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2620  // Please see the License for the specific language governing rights and
  2621  // limitations under the License.
  2622  //
  2623  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2624  type Int16_t = int16 /* _int16_t.h:30:33 */
  2625  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2626  //
  2627  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2628  //
  2629  // This file contains Original Code and/or Modifications of Original Code
  2630  // as defined in and that are subject to the Apple Public Source License
  2631  // Version 2.0 (the 'License'). You may not use this file except in
  2632  // compliance with the License. The rights granted to you under the License
  2633  // may not be used to create, or enable the creation or redistribution of,
  2634  // unlawful or unlicensed copies of an Apple operating system, or to
  2635  // circumvent, violate, or enable the circumvention or violation of, any
  2636  // terms of an Apple operating system software license agreement.
  2637  //
  2638  // Please obtain a copy of the License at
  2639  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2640  //
  2641  // The Original Code and all software distributed under the License are
  2642  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2643  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2644  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2645  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2646  // Please see the License for the specific language governing rights and
  2647  // limitations under the License.
  2648  //
  2649  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2650  type Int32_t = int32 /* _int32_t.h:30:33 */
  2651  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2652  //
  2653  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2654  //
  2655  // This file contains Original Code and/or Modifications of Original Code
  2656  // as defined in and that are subject to the Apple Public Source License
  2657  // Version 2.0 (the 'License'). You may not use this file except in
  2658  // compliance with the License. The rights granted to you under the License
  2659  // may not be used to create, or enable the creation or redistribution of,
  2660  // unlawful or unlicensed copies of an Apple operating system, or to
  2661  // circumvent, violate, or enable the circumvention or violation of, any
  2662  // terms of an Apple operating system software license agreement.
  2663  //
  2664  // Please obtain a copy of the License at
  2665  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2666  //
  2667  // The Original Code and all software distributed under the License are
  2668  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2669  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2670  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2671  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2672  // Please see the License for the specific language governing rights and
  2673  // limitations under the License.
  2674  //
  2675  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2676  type Int64_t = int64 /* _int64_t.h:30:33 */
  2677  
  2678  // Copyright (c) 2016 Apple Inc. All rights reserved.
  2679  //
  2680  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2681  //
  2682  // This file contains Original Code and/or Modifications of Original Code
  2683  // as defined in and that are subject to the Apple Public Source License
  2684  // Version 2.0 (the 'License'). You may not use this file except in
  2685  // compliance with the License. The rights granted to you under the License
  2686  // may not be used to create, or enable the creation or redistribution of,
  2687  // unlawful or unlicensed copies of an Apple operating system, or to
  2688  // circumvent, violate, or enable the circumvention or violation of, any
  2689  // terms of an Apple operating system software license agreement.
  2690  //
  2691  // Please obtain a copy of the License at
  2692  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2693  //
  2694  // The Original Code and all software distributed under the License are
  2695  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2696  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2697  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2698  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2699  // Please see the License for the specific language governing rights and
  2700  // limitations under the License.
  2701  //
  2702  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2703  type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  2704  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2705  //
  2706  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2707  //
  2708  // This file contains Original Code and/or Modifications of Original Code
  2709  // as defined in and that are subject to the Apple Public Source License
  2710  // Version 2.0 (the 'License'). You may not use this file except in
  2711  // compliance with the License. The rights granted to you under the License
  2712  // may not be used to create, or enable the creation or redistribution of,
  2713  // unlawful or unlicensed copies of an Apple operating system, or to
  2714  // circumvent, violate, or enable the circumvention or violation of, any
  2715  // terms of an Apple operating system software license agreement.
  2716  //
  2717  // Please obtain a copy of the License at
  2718  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2719  //
  2720  // The Original Code and all software distributed under the License are
  2721  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2722  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2723  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2724  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2725  // Please see the License for the specific language governing rights and
  2726  // limitations under the License.
  2727  //
  2728  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2729  type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  2730  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2731  //
  2732  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2733  //
  2734  // This file contains Original Code and/or Modifications of Original Code
  2735  // as defined in and that are subject to the Apple Public Source License
  2736  // Version 2.0 (the 'License'). You may not use this file except in
  2737  // compliance with the License. The rights granted to you under the License
  2738  // may not be used to create, or enable the creation or redistribution of,
  2739  // unlawful or unlicensed copies of an Apple operating system, or to
  2740  // circumvent, violate, or enable the circumvention or violation of, any
  2741  // terms of an Apple operating system software license agreement.
  2742  //
  2743  // Please obtain a copy of the License at
  2744  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2745  //
  2746  // The Original Code and all software distributed under the License are
  2747  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2748  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2749  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2750  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2751  // Please see the License for the specific language governing rights and
  2752  // limitations under the License.
  2753  //
  2754  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2755  type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  2756  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2757  //
  2758  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2759  //
  2760  // This file contains Original Code and/or Modifications of Original Code
  2761  // as defined in and that are subject to the Apple Public Source License
  2762  // Version 2.0 (the 'License'). You may not use this file except in
  2763  // compliance with the License. The rights granted to you under the License
  2764  // may not be used to create, or enable the creation or redistribution of,
  2765  // unlawful or unlicensed copies of an Apple operating system, or to
  2766  // circumvent, violate, or enable the circumvention or violation of, any
  2767  // terms of an Apple operating system software license agreement.
  2768  //
  2769  // Please obtain a copy of the License at
  2770  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2771  //
  2772  // The Original Code and all software distributed under the License are
  2773  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2774  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2775  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2776  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2777  // Please see the License for the specific language governing rights and
  2778  // limitations under the License.
  2779  //
  2780  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2781  type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  2782  
  2783  type Register_t = Int64_t /* types.h:66:33 */
  2784  
  2785  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2786  //
  2787  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2788  //
  2789  // This file contains Original Code and/or Modifications of Original Code
  2790  // as defined in and that are subject to the Apple Public Source License
  2791  // Version 2.0 (the 'License'). You may not use this file except in
  2792  // compliance with the License. The rights granted to you under the License
  2793  // may not be used to create, or enable the creation or redistribution of,
  2794  // unlawful or unlicensed copies of an Apple operating system, or to
  2795  // circumvent, violate, or enable the circumvention or violation of, any
  2796  // terms of an Apple operating system software license agreement.
  2797  //
  2798  // Please obtain a copy of the License at
  2799  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2800  //
  2801  // The Original Code and all software distributed under the License are
  2802  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2803  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2804  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2805  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2806  // Please see the License for the specific language governing rights and
  2807  // limitations under the License.
  2808  //
  2809  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2810  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2811  //
  2812  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2813  //
  2814  // This file contains Original Code and/or Modifications of Original Code
  2815  // as defined in and that are subject to the Apple Public Source License
  2816  // Version 2.0 (the 'License'). You may not use this file except in
  2817  // compliance with the License. The rights granted to you under the License
  2818  // may not be used to create, or enable the creation or redistribution of,
  2819  // unlawful or unlicensed copies of an Apple operating system, or to
  2820  // circumvent, violate, or enable the circumvention or violation of, any
  2821  // terms of an Apple operating system software license agreement.
  2822  //
  2823  // Please obtain a copy of the License at
  2824  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2825  //
  2826  // The Original Code and all software distributed under the License are
  2827  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2828  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2829  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2830  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2831  // Please see the License for the specific language governing rights and
  2832  // limitations under the License.
  2833  //
  2834  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2835  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2836  
  2837  type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  2838  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2839  //
  2840  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2841  //
  2842  // This file contains Original Code and/or Modifications of Original Code
  2843  // as defined in and that are subject to the Apple Public Source License
  2844  // Version 2.0 (the 'License'). You may not use this file except in
  2845  // compliance with the License. The rights granted to you under the License
  2846  // may not be used to create, or enable the creation or redistribution of,
  2847  // unlawful or unlicensed copies of an Apple operating system, or to
  2848  // circumvent, violate, or enable the circumvention or violation of, any
  2849  // terms of an Apple operating system software license agreement.
  2850  //
  2851  // Please obtain a copy of the License at
  2852  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2853  //
  2854  // The Original Code and all software distributed under the License are
  2855  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2856  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2857  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2858  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2859  // Please see the License for the specific language governing rights and
  2860  // limitations under the License.
  2861  //
  2862  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2863  
  2864  type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
  2865  
  2866  // These types are used for reserving the largest possible size.
  2867  type User_addr_t = U_int64_t  /* types.h:77:33 */
  2868  type User_size_t = U_int64_t  /* types.h:78:33 */
  2869  type User_ssize_t = Int64_t   /* types.h:79:33 */
  2870  type User_long_t = Int64_t    /* types.h:80:33 */
  2871  type User_ulong_t = U_int64_t /* types.h:81:33 */
  2872  type User_time_t = Int64_t    /* types.h:82:33 */
  2873  type User_off_t = Int64_t     /* types.h:83:33 */
  2874  
  2875  // This defines the size of syscall arguments after copying into the kernel:
  2876  type Syscall_arg_t = U_int64_t /* types.h:104:33 */
  2877  
  2878  type X__darwin_arm_exception_state = struct {
  2879  	F__exception X__uint32_t
  2880  	F__fsr       X__uint32_t
  2881  	F__far       X__uint32_t
  2882  } /* _structs.h:41:1 */
  2883  
  2884  type X__darwin_arm_exception_state64 = struct {
  2885  	F__far       X__uint64_t
  2886  	F__esr       X__uint32_t
  2887  	F__exception X__uint32_t
  2888  } /* _structs.h:59:1 */
  2889  
  2890  type X__darwin_arm_thread_state = struct {
  2891  	F__r    [13]X__uint32_t
  2892  	F__sp   X__uint32_t
  2893  	F__lr   X__uint32_t
  2894  	F__pc   X__uint32_t
  2895  	F__cpsr X__uint32_t
  2896  } /* _structs.h:77:1 */
  2897  
  2898  // By default, the pointer fields in the arm_thread_state64_t structure are
  2899  // opaque on the arm64e architecture and require the use of accessor macros.
  2900  // This mode can also be enabled on the arm64 architecture by building with
  2901  // -D__DARWIN_OPAQUE_ARM_THREAD_STATE64=1.
  2902  
  2903  type X__darwin_arm_thread_state64 = struct {
  2904  	F__x    [29]X__uint64_t
  2905  	F__fp   X__uint64_t
  2906  	F__lr   X__uint64_t
  2907  	F__sp   X__uint64_t
  2908  	F__pc   X__uint64_t
  2909  	F__cpsr X__uint32_t
  2910  	F__pad  X__uint32_t
  2911  } /* _structs.h:136:1 */
  2912  
  2913  // Accessor macros for arm_thread_state64_t pointer fields
  2914  
  2915  // Return pc field of arm_thread_state64_t as a data pointer value
  2916  // Return pc field of arm_thread_state64_t as a function pointer
  2917  // Set pc field of arm_thread_state64_t to a function pointer
  2918  // Return lr field of arm_thread_state64_t as a data pointer value
  2919  // Return lr field of arm_thread_state64_t as a function pointer
  2920  // Set lr field of arm_thread_state64_t to a function pointer
  2921  // Return sp field of arm_thread_state64_t as a data pointer value
  2922  // Set sp field of arm_thread_state64_t to a data pointer value
  2923  // Return fp field of arm_thread_state64_t as a data pointer value
  2924  // Set fp field of arm_thread_state64_t to a data pointer value
  2925  // Strip ptr auth bits from pc, lr, sp and fp field of arm_thread_state64_t
  2926  
  2927  type X__darwin_arm_vfp_state = struct {
  2928  	F__r     [64]X__uint32_t
  2929  	F__fpscr X__uint32_t
  2930  } /* _structs.h:433:1 */
  2931  
  2932  type X__darwin_arm_neon_state64 = struct {
  2933  	F__v    [32]X__uint128_t
  2934  	F__fpsr X__uint32_t
  2935  	F__fpcr X__uint32_t
  2936  } /* _structs.h:452:1 */
  2937  
  2938  type X__darwin_arm_neon_state = struct {
  2939  	F__v    [16]X__uint128_t
  2940  	F__fpsr X__uint32_t
  2941  	F__fpcr X__uint32_t
  2942  } /* _structs.h:459:1 */
  2943  
  2944  type X__arm_pagein_state = struct{ F__pagein_error int32 } /* _structs.h:523:1 */
  2945  
  2946  // Debug State
  2947  
  2948  // ARM's arm_debug_state is ARM64's arm_legacy_debug_state
  2949  
  2950  type X__arm_legacy_debug_state = struct {
  2951  	F__bvr [16]X__uint32_t
  2952  	F__bcr [16]X__uint32_t
  2953  	F__wvr [16]X__uint32_t
  2954  	F__wcr [16]X__uint32_t
  2955  } /* _structs.h:560:1 */
  2956  
  2957  type X__darwin_arm_debug_state32 = struct {
  2958  	F__bvr       [16]X__uint32_t
  2959  	F__bcr       [16]X__uint32_t
  2960  	F__wvr       [16]X__uint32_t
  2961  	F__wcr       [16]X__uint32_t
  2962  	F__mdscr_el1 X__uint64_t
  2963  } /* _structs.h:583:1 */
  2964  
  2965  type X__darwin_arm_debug_state64 = struct {
  2966  	F__bvr       [16]X__uint64_t
  2967  	F__bcr       [16]X__uint64_t
  2968  	F__wvr       [16]X__uint64_t
  2969  	F__wcr       [16]X__uint64_t
  2970  	F__mdscr_el1 X__uint64_t
  2971  } /* _structs.h:593:1 */
  2972  
  2973  type X__darwin_arm_cpmu_state64 = struct{ F__ctrs [16]X__uint64_t } /* _structs.h:625:1 */
  2974  
  2975  type X__darwin_mcontext32 = struct {
  2976  	F__es struct {
  2977  		F__exception X__uint32_t
  2978  		F__fsr       X__uint32_t
  2979  		F__far       X__uint32_t
  2980  	}
  2981  	F__ss struct {
  2982  		F__r    [13]X__uint32_t
  2983  		F__sp   X__uint32_t
  2984  		F__lr   X__uint32_t
  2985  		F__pc   X__uint32_t
  2986  		F__cpsr X__uint32_t
  2987  	}
  2988  	F__fs struct {
  2989  		F__r     [64]X__uint32_t
  2990  		F__fpscr X__uint32_t
  2991  	}
  2992  } /* _mcontext.h:41:1 */
  2993  
  2994  type X__darwin_mcontext64 = struct {
  2995  	F__es struct {
  2996  		F__far       X__uint64_t
  2997  		F__esr       X__uint32_t
  2998  		F__exception X__uint32_t
  2999  	}
  3000  	F__ss struct {
  3001  		F__x    [29]X__uint64_t
  3002  		F__fp   X__uint64_t
  3003  		F__lr   X__uint64_t
  3004  		F__sp   X__uint64_t
  3005  		F__pc   X__uint64_t
  3006  		F__cpsr X__uint32_t
  3007  		F__pad  X__uint32_t
  3008  	}
  3009  	F__ns struct {
  3010  		F__v    [32]X__uint128_t
  3011  		F__fpsr X__uint32_t
  3012  		F__fpcr X__uint32_t
  3013  	}
  3014  } /* _mcontext.h:64:1 */
  3015  
  3016  type Mcontext_t = uintptr /* _mcontext.h:85:33 */
  3017  
  3018  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3019  //
  3020  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3021  //
  3022  // This file contains Original Code and/or Modifications of Original Code
  3023  // as defined in and that are subject to the Apple Public Source License
  3024  // Version 2.0 (the 'License'). You may not use this file except in
  3025  // compliance with the License. The rights granted to you under the License
  3026  // may not be used to create, or enable the creation or redistribution of,
  3027  // unlawful or unlicensed copies of an Apple operating system, or to
  3028  // circumvent, violate, or enable the circumvention or violation of, any
  3029  // terms of an Apple operating system software license agreement.
  3030  //
  3031  // Please obtain a copy of the License at
  3032  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3033  //
  3034  // The Original Code and all software distributed under the License are
  3035  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3036  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3037  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3038  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3039  // Please see the License for the specific language governing rights and
  3040  // limitations under the License.
  3041  //
  3042  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3043  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3044  //
  3045  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3046  //
  3047  // This file contains Original Code and/or Modifications of Original Code
  3048  // as defined in and that are subject to the Apple Public Source License
  3049  // Version 2.0 (the 'License'). You may not use this file except in
  3050  // compliance with the License. The rights granted to you under the License
  3051  // may not be used to create, or enable the creation or redistribution of,
  3052  // unlawful or unlicensed copies of an Apple operating system, or to
  3053  // circumvent, violate, or enable the circumvention or violation of, any
  3054  // terms of an Apple operating system software license agreement.
  3055  //
  3056  // Please obtain a copy of the License at
  3057  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3058  //
  3059  // The Original Code and all software distributed under the License are
  3060  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3061  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3062  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3063  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3064  // Please see the License for the specific language governing rights and
  3065  // limitations under the License.
  3066  //
  3067  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3068  
  3069  type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  3070  
  3071  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3072  //
  3073  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3074  //
  3075  // This file contains Original Code and/or Modifications of Original Code
  3076  // as defined in and that are subject to the Apple Public Source License
  3077  // Version 2.0 (the 'License'). You may not use this file except in
  3078  // compliance with the License. The rights granted to you under the License
  3079  // may not be used to create, or enable the creation or redistribution of,
  3080  // unlawful or unlicensed copies of an Apple operating system, or to
  3081  // circumvent, violate, or enable the circumvention or violation of, any
  3082  // terms of an Apple operating system software license agreement.
  3083  //
  3084  // Please obtain a copy of the License at
  3085  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3086  //
  3087  // The Original Code and all software distributed under the License are
  3088  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3089  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3090  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3091  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3092  // Please see the License for the specific language governing rights and
  3093  // limitations under the License.
  3094  //
  3095  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3096  
  3097  // Structure used in sigaltstack call.
  3098  
  3099  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  3100  //
  3101  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3102  //
  3103  // This file contains Original Code and/or Modifications of Original Code
  3104  // as defined in and that are subject to the Apple Public Source License
  3105  // Version 2.0 (the 'License'). You may not use this file except in
  3106  // compliance with the License. The rights granted to you under the License
  3107  // may not be used to create, or enable the creation or redistribution of,
  3108  // unlawful or unlicensed copies of an Apple operating system, or to
  3109  // circumvent, violate, or enable the circumvention or violation of, any
  3110  // terms of an Apple operating system software license agreement.
  3111  //
  3112  // Please obtain a copy of the License at
  3113  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3114  //
  3115  // The Original Code and all software distributed under the License are
  3116  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3117  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3118  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3119  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3120  // Please see the License for the specific language governing rights and
  3121  // limitations under the License.
  3122  //
  3123  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3124  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3125  // Copyright (c) 1991, 1993
  3126  //	The Regents of the University of California.  All rights reserved.
  3127  //
  3128  // This code is derived from software contributed to Berkeley by
  3129  // Berkeley Software Design, Inc.
  3130  //
  3131  // Redistribution and use in source and binary forms, with or without
  3132  // modification, are permitted provided that the following conditions
  3133  // are met:
  3134  // 1. Redistributions of source code must retain the above copyright
  3135  //    notice, this list of conditions and the following disclaimer.
  3136  // 2. Redistributions in binary form must reproduce the above copyright
  3137  //    notice, this list of conditions and the following disclaimer in the
  3138  //    documentation and/or other materials provided with the distribution.
  3139  // 3. All advertising materials mentioning features or use of this software
  3140  //    must display the following acknowledgement:
  3141  //	This product includes software developed by the University of
  3142  //	California, Berkeley and its contributors.
  3143  // 4. Neither the name of the University nor the names of its contributors
  3144  //    may be used to endorse or promote products derived from this software
  3145  //    without specific prior written permission.
  3146  //
  3147  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3148  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3149  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3150  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3151  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3152  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3153  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3154  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3155  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3156  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3157  // SUCH DAMAGE.
  3158  //
  3159  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  3160  
  3161  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3162  //
  3163  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3164  //
  3165  // This file contains Original Code and/or Modifications of Original Code
  3166  // as defined in and that are subject to the Apple Public Source License
  3167  // Version 2.0 (the 'License'). You may not use this file except in
  3168  // compliance with the License. The rights granted to you under the License
  3169  // may not be used to create, or enable the creation or redistribution of,
  3170  // unlawful or unlicensed copies of an Apple operating system, or to
  3171  // circumvent, violate, or enable the circumvention or violation of, any
  3172  // terms of an Apple operating system software license agreement.
  3173  //
  3174  // Please obtain a copy of the License at
  3175  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3176  //
  3177  // The Original Code and all software distributed under the License are
  3178  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3179  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3180  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3181  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3182  // Please see the License for the specific language governing rights and
  3183  // limitations under the License.
  3184  //
  3185  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3186  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3187  
  3188  type X__darwin_sigaltstack = struct {
  3189  	Fss_sp       uintptr
  3190  	Fss_size     X__darwin_size_t
  3191  	Fss_flags    int32
  3192  	F__ccgo_pad1 [4]byte
  3193  } /* _sigaltstack.h:42:1 */
  3194  
  3195  type Stack_t = X__darwin_sigaltstack /* _sigaltstack.h:48:33 */ // [???] signal stack
  3196  
  3197  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3198  //
  3199  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3200  //
  3201  // This file contains Original Code and/or Modifications of Original Code
  3202  // as defined in and that are subject to the Apple Public Source License
  3203  // Version 2.0 (the 'License'). You may not use this file except in
  3204  // compliance with the License. The rights granted to you under the License
  3205  // may not be used to create, or enable the creation or redistribution of,
  3206  // unlawful or unlicensed copies of an Apple operating system, or to
  3207  // circumvent, violate, or enable the circumvention or violation of, any
  3208  // terms of an Apple operating system software license agreement.
  3209  //
  3210  // Please obtain a copy of the License at
  3211  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3212  //
  3213  // The Original Code and all software distributed under the License are
  3214  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3215  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3216  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3217  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3218  // Please see the License for the specific language governing rights and
  3219  // limitations under the License.
  3220  //
  3221  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3222  
  3223  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  3224  //
  3225  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3226  //
  3227  // This file contains Original Code and/or Modifications of Original Code
  3228  // as defined in and that are subject to the Apple Public Source License
  3229  // Version 2.0 (the 'License'). You may not use this file except in
  3230  // compliance with the License. The rights granted to you under the License
  3231  // may not be used to create, or enable the creation or redistribution of,
  3232  // unlawful or unlicensed copies of an Apple operating system, or to
  3233  // circumvent, violate, or enable the circumvention or violation of, any
  3234  // terms of an Apple operating system software license agreement.
  3235  //
  3236  // Please obtain a copy of the License at
  3237  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3238  //
  3239  // The Original Code and all software distributed under the License are
  3240  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3241  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3242  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3243  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3244  // Please see the License for the specific language governing rights and
  3245  // limitations under the License.
  3246  //
  3247  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3248  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3249  // Copyright (c) 1991, 1993
  3250  //	The Regents of the University of California.  All rights reserved.
  3251  //
  3252  // This code is derived from software contributed to Berkeley by
  3253  // Berkeley Software Design, Inc.
  3254  //
  3255  // Redistribution and use in source and binary forms, with or without
  3256  // modification, are permitted provided that the following conditions
  3257  // are met:
  3258  // 1. Redistributions of source code must retain the above copyright
  3259  //    notice, this list of conditions and the following disclaimer.
  3260  // 2. Redistributions in binary form must reproduce the above copyright
  3261  //    notice, this list of conditions and the following disclaimer in the
  3262  //    documentation and/or other materials provided with the distribution.
  3263  // 3. All advertising materials mentioning features or use of this software
  3264  //    must display the following acknowledgement:
  3265  //	This product includes software developed by the University of
  3266  //	California, Berkeley and its contributors.
  3267  // 4. Neither the name of the University nor the names of its contributors
  3268  //    may be used to endorse or promote products derived from this software
  3269  //    without specific prior written permission.
  3270  //
  3271  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3272  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3273  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3274  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3275  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3276  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3277  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3278  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3279  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3280  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3281  // SUCH DAMAGE.
  3282  //
  3283  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  3284  
  3285  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3286  //
  3287  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3288  //
  3289  // This file contains Original Code and/or Modifications of Original Code
  3290  // as defined in and that are subject to the Apple Public Source License
  3291  // Version 2.0 (the 'License'). You may not use this file except in
  3292  // compliance with the License. The rights granted to you under the License
  3293  // may not be used to create, or enable the creation or redistribution of,
  3294  // unlawful or unlicensed copies of an Apple operating system, or to
  3295  // circumvent, violate, or enable the circumvention or violation of, any
  3296  // terms of an Apple operating system software license agreement.
  3297  //
  3298  // Please obtain a copy of the License at
  3299  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3300  //
  3301  // The Original Code and all software distributed under the License are
  3302  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3303  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3304  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3305  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3306  // Please see the License for the specific language governing rights and
  3307  // limitations under the License.
  3308  //
  3309  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3310  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3311  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3312  //
  3313  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3314  //
  3315  // This file contains Original Code and/or Modifications of Original Code
  3316  // as defined in and that are subject to the Apple Public Source License
  3317  // Version 2.0 (the 'License'). You may not use this file except in
  3318  // compliance with the License. The rights granted to you under the License
  3319  // may not be used to create, or enable the creation or redistribution of,
  3320  // unlawful or unlicensed copies of an Apple operating system, or to
  3321  // circumvent, violate, or enable the circumvention or violation of, any
  3322  // terms of an Apple operating system software license agreement.
  3323  //
  3324  // Please obtain a copy of the License at
  3325  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3326  //
  3327  // The Original Code and all software distributed under the License are
  3328  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3329  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3330  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3331  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3332  // Please see the License for the specific language governing rights and
  3333  // limitations under the License.
  3334  //
  3335  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3336  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3337  //
  3338  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3339  //
  3340  // This file contains Original Code and/or Modifications of Original Code
  3341  // as defined in and that are subject to the Apple Public Source License
  3342  // Version 2.0 (the 'License'). You may not use this file except in
  3343  // compliance with the License. The rights granted to you under the License
  3344  // may not be used to create, or enable the creation or redistribution of,
  3345  // unlawful or unlicensed copies of an Apple operating system, or to
  3346  // circumvent, violate, or enable the circumvention or violation of, any
  3347  // terms of an Apple operating system software license agreement.
  3348  //
  3349  // Please obtain a copy of the License at
  3350  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3351  //
  3352  // The Original Code and all software distributed under the License are
  3353  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3354  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3355  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3356  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3357  // Please see the License for the specific language governing rights and
  3358  // limitations under the License.
  3359  //
  3360  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3361  
  3362  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3363  //
  3364  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3365  //
  3366  // This file contains Original Code and/or Modifications of Original Code
  3367  // as defined in and that are subject to the Apple Public Source License
  3368  // Version 2.0 (the 'License'). You may not use this file except in
  3369  // compliance with the License. The rights granted to you under the License
  3370  // may not be used to create, or enable the creation or redistribution of,
  3371  // unlawful or unlicensed copies of an Apple operating system, or to
  3372  // circumvent, violate, or enable the circumvention or violation of, any
  3373  // terms of an Apple operating system software license agreement.
  3374  //
  3375  // Please obtain a copy of the License at
  3376  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3377  //
  3378  // The Original Code and all software distributed under the License are
  3379  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3380  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3381  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3382  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3383  // Please see the License for the specific language governing rights and
  3384  // limitations under the License.
  3385  //
  3386  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3387  
  3388  // Structure used in sigaltstack call.
  3389  
  3390  type X__darwin_ucontext = struct {
  3391  	Fuc_onstack int32
  3392  	Fuc_sigmask X__darwin_sigset_t
  3393  	Fuc_stack   struct {
  3394  		Fss_sp       uintptr
  3395  		Fss_size     X__darwin_size_t
  3396  		Fss_flags    int32
  3397  		F__ccgo_pad1 [4]byte
  3398  	}
  3399  	Fuc_link     uintptr
  3400  	Fuc_mcsize   X__darwin_size_t
  3401  	Fuc_mcontext uintptr
  3402  } /* _ucontext.h:43:1 */
  3403  
  3404  // user context
  3405  type Ucontext_t = X__darwin_ucontext /* _ucontext.h:57:33 */ // [???] user context
  3406  
  3407  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3408  //
  3409  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3410  //
  3411  // This file contains Original Code and/or Modifications of Original Code
  3412  // as defined in and that are subject to the Apple Public Source License
  3413  // Version 2.0 (the 'License'). You may not use this file except in
  3414  // compliance with the License. The rights granted to you under the License
  3415  // may not be used to create, or enable the creation or redistribution of,
  3416  // unlawful or unlicensed copies of an Apple operating system, or to
  3417  // circumvent, violate, or enable the circumvention or violation of, any
  3418  // terms of an Apple operating system software license agreement.
  3419  //
  3420  // Please obtain a copy of the License at
  3421  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3422  //
  3423  // The Original Code and all software distributed under the License are
  3424  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3425  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3426  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3427  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3428  // Please see the License for the specific language governing rights and
  3429  // limitations under the License.
  3430  //
  3431  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3432  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3433  //
  3434  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3435  //
  3436  // This file contains Original Code and/or Modifications of Original Code
  3437  // as defined in and that are subject to the Apple Public Source License
  3438  // Version 2.0 (the 'License'). You may not use this file except in
  3439  // compliance with the License. The rights granted to you under the License
  3440  // may not be used to create, or enable the creation or redistribution of,
  3441  // unlawful or unlicensed copies of an Apple operating system, or to
  3442  // circumvent, violate, or enable the circumvention or violation of, any
  3443  // terms of an Apple operating system software license agreement.
  3444  //
  3445  // Please obtain a copy of the License at
  3446  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3447  //
  3448  // The Original Code and all software distributed under the License are
  3449  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3450  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3451  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3452  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3453  // Please see the License for the specific language governing rights and
  3454  // limitations under the License.
  3455  //
  3456  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3457  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3458  //
  3459  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3460  //
  3461  // This file contains Original Code and/or Modifications of Original Code
  3462  // as defined in and that are subject to the Apple Public Source License
  3463  // Version 2.0 (the 'License'). You may not use this file except in
  3464  // compliance with the License. The rights granted to you under the License
  3465  // may not be used to create, or enable the creation or redistribution of,
  3466  // unlawful or unlicensed copies of an Apple operating system, or to
  3467  // circumvent, violate, or enable the circumvention or violation of, any
  3468  // terms of an Apple operating system software license agreement.
  3469  //
  3470  // Please obtain a copy of the License at
  3471  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3472  //
  3473  // The Original Code and all software distributed under the License are
  3474  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3475  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3476  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3477  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3478  // Please see the License for the specific language governing rights and
  3479  // limitations under the License.
  3480  //
  3481  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3482  
  3483  type Sigset_t = X__darwin_sigset_t /* _sigset_t.h:31:41 */
  3484  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3485  //
  3486  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3487  //
  3488  // This file contains Original Code and/or Modifications of Original Code
  3489  // as defined in and that are subject to the Apple Public Source License
  3490  // Version 2.0 (the 'License'). You may not use this file except in
  3491  // compliance with the License. The rights granted to you under the License
  3492  // may not be used to create, or enable the creation or redistribution of,
  3493  // unlawful or unlicensed copies of an Apple operating system, or to
  3494  // circumvent, violate, or enable the circumvention or violation of, any
  3495  // terms of an Apple operating system software license agreement.
  3496  //
  3497  // Please obtain a copy of the License at
  3498  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3499  //
  3500  // The Original Code and all software distributed under the License are
  3501  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3502  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3503  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3504  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3505  // Please see the License for the specific language governing rights and
  3506  // limitations under the License.
  3507  //
  3508  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3509  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3510  //
  3511  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3512  //
  3513  // This file contains Original Code and/or Modifications of Original Code
  3514  // as defined in and that are subject to the Apple Public Source License
  3515  // Version 2.0 (the 'License'). You may not use this file except in
  3516  // compliance with the License. The rights granted to you under the License
  3517  // may not be used to create, or enable the creation or redistribution of,
  3518  // unlawful or unlicensed copies of an Apple operating system, or to
  3519  // circumvent, violate, or enable the circumvention or violation of, any
  3520  // terms of an Apple operating system software license agreement.
  3521  //
  3522  // Please obtain a copy of the License at
  3523  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3524  //
  3525  // The Original Code and all software distributed under the License are
  3526  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3527  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3528  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3529  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3530  // Please see the License for the specific language governing rights and
  3531  // limitations under the License.
  3532  //
  3533  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3534  
  3535  type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  3536  
  3537  type Sigval = struct {
  3538  	F__ccgo_pad1 [0]uint64
  3539  	Fsival_int   int32
  3540  	F__ccgo_pad2 [4]byte
  3541  } /* signal.h:158:1 */
  3542  
  3543  type Sigevent = struct {
  3544  	Fsigev_notify int32
  3545  	Fsigev_signo  int32
  3546  	Fsigev_value  struct {
  3547  		F__ccgo_pad1 [0]uint64
  3548  		Fsival_int   int32
  3549  		F__ccgo_pad2 [4]byte
  3550  	}
  3551  	Fsigev_notify_function   uintptr
  3552  	Fsigev_notify_attributes uintptr
  3553  } /* signal.h:168:1 */
  3554  
  3555  type X__siginfo = struct {
  3556  	Fsi_signo  int32
  3557  	Fsi_errno  int32
  3558  	Fsi_code   int32
  3559  	Fsi_pid    Pid_t
  3560  	Fsi_uid    Uid_t
  3561  	Fsi_status int32
  3562  	Fsi_addr   uintptr
  3563  	Fsi_value  struct {
  3564  		F__ccgo_pad1 [0]uint64
  3565  		Fsival_int   int32
  3566  		F__ccgo_pad2 [4]byte
  3567  	}
  3568  	Fsi_band int64
  3569  	F__pad   [7]uint64
  3570  } /* signal.h:177:9 */
  3571  
  3572  type Siginfo_t = X__siginfo /* signal.h:188:3 */
  3573  
  3574  // When the signal is SIGILL or SIGFPE, si_addr contains the address of
  3575  // the faulting instruction.
  3576  // When the signal is SIGSEGV or SIGBUS, si_addr contains the address of
  3577  // the faulting memory reference. Although for x86 there are cases of SIGSEGV
  3578  // for which si_addr cannot be determined and is NULL.
  3579  // If the signal is SIGCHLD, the si_pid field will contain the child process ID,
  3580  //  si_status contains the exit value or signal and
  3581  //  si_uid contains the real user ID of the process that sent the signal.
  3582  
  3583  // Values for si_code
  3584  
  3585  // Codes for SIGILL
  3586  
  3587  // Codes for SIGFPE
  3588  
  3589  // Codes for SIGSEGV
  3590  
  3591  // Codes for SIGBUS
  3592  
  3593  // Codes for SIGTRAP
  3594  
  3595  // Codes for SIGCHLD
  3596  
  3597  // Codes for SIGPOLL
  3598  
  3599  // union for signal handlers
  3600  type X__sigaction_u = struct{ F__sa_handler uintptr } /* signal.h:269:1 */
  3601  
  3602  // Signal vector template for Kernel user boundary
  3603  type X__sigaction = struct {
  3604  	F__sigaction_u struct{ F__sa_handler uintptr }
  3605  	Fsa_tramp      uintptr
  3606  	Fsa_mask       Sigset_t
  3607  	Fsa_flags      int32
  3608  } /* signal.h:276:1 */
  3609  
  3610  // Signal vector "template" used in sigaction call.
  3611  type Sigaction = struct {
  3612  	F__sigaction_u struct{ F__sa_handler uintptr }
  3613  	Fsa_mask       Sigset_t
  3614  	Fsa_flags      int32
  3615  } /* signal.h:286:1 */
  3616  
  3617  // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler.
  3618  
  3619  // This will provide 64bit register set in a 32bit user address space
  3620  
  3621  // the following are the only bits we support from user space, the
  3622  // rest are for kernel use only.
  3623  
  3624  // Flags for sigprocmask:
  3625  
  3626  // POSIX 1003.1b required values.
  3627  
  3628  type Sig_t = uintptr /* signal.h:331:14 */ // type of signal function
  3629  
  3630  // Structure used in sigaltstack call.
  3631  
  3632  // 4.3 compatibility:
  3633  // Signal vector "template" used in sigvec call.
  3634  type Sigvec = struct {
  3635  	Fsv_handler uintptr
  3636  	Fsv_mask    int32
  3637  	Fsv_flags   int32
  3638  } /* signal.h:348:1 */
  3639  
  3640  // Structure used in sigstack call.
  3641  type Sigstack = struct {
  3642  	Fss_sp       uintptr
  3643  	Fss_onstack  int32
  3644  	F__ccgo_pad1 [4]byte
  3645  } /* signal.h:367:1 */
  3646  
  3647  type Uint64_t = uint64 /* stdint.h:98:25 */
  3648  
  3649  type Int_least64_t = Int64_t   /* stdint.h:110:25 */
  3650  type Uint_least64_t = Uint64_t /* stdint.h:111:26 */
  3651  type Int_fast64_t = Int64_t    /* stdint.h:112:25 */
  3652  type Uint_fast64_t = Uint64_t  /* stdint.h:113:26 */
  3653  
  3654  type Uint32_t = uint32 /* stdint.h:172:25 */
  3655  
  3656  type Int_least32_t = Int32_t   /* stdint.h:184:25 */
  3657  type Uint_least32_t = Uint32_t /* stdint.h:185:26 */
  3658  type Int_fast32_t = Int32_t    /* stdint.h:186:25 */
  3659  type Uint_fast32_t = Uint32_t  /* stdint.h:187:26 */
  3660  type Uint16_t = uint16         /* stdint.h:207:25 */
  3661  
  3662  type Int_least16_t = Int16_t   /* stdint.h:215:25 */
  3663  type Uint_least16_t = Uint16_t /* stdint.h:216:26 */
  3664  type Int_fast16_t = Int16_t    /* stdint.h:217:25 */
  3665  type Uint_fast16_t = Uint16_t  /* stdint.h:218:26 */
  3666  type Uint8_t = uint8           /* stdint.h:226:24 */
  3667  
  3668  type Int_least8_t = Int8_t   /* stdint.h:232:24 */
  3669  type Uint_least8_t = Uint8_t /* stdint.h:233:25 */
  3670  type Int_fast8_t = Int8_t    /* stdint.h:234:24 */
  3671  type Uint_fast8_t = Uint8_t  /* stdint.h:235:25 */
  3672  
  3673  // prevent glibc sys/types.h from defining conflicting types
  3674  
  3675  // C99 7.18.1.4 Integer types capable of holding object pointers.
  3676  
  3677  // C99 7.18.1.5 Greatest-width integer types.
  3678  type Intmax_t = int64   /* stdint.h:262:26 */
  3679  type Uintmax_t = uint64 /* stdint.h:263:26 */
  3680  
  3681  // C99 7.18.4 Macros for minimum-width integer constants.
  3682  //
  3683  // The standard requires that integer constant macros be defined for all the
  3684  // minimum-width types defined above. As 8-, 16-, 32-, and 64-bit minimum-width
  3685  // types are required, the corresponding integer constant macros are defined
  3686  // here. This implementation also defines minimum-width types for every other
  3687  // integer width that the target implements, so corresponding macros are
  3688  // defined below, too.
  3689  //
  3690  // These macros are defined using the same successive-shrinking approach as
  3691  // the type definitions above. It is likewise important that macros are defined
  3692  // in order of decending width.
  3693  //
  3694  // Note that C++ should not check __STDC_CONSTANT_MACROS here, contrary to the
  3695  // claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]).
  3696  
  3697  // C99 7.18.2.1 Limits of exact-width integer types.
  3698  // C99 7.18.2.2 Limits of minimum-width integer types.
  3699  // C99 7.18.2.3 Limits of fastest minimum-width integer types.
  3700  //
  3701  // The presence of limit macros are completely optional in C99.  This
  3702  // implementation defines limits for all of the types (exact- and
  3703  // minimum-width) that it defines above, using the limits of the minimum-width
  3704  // type for any types that do not have exact-width representations.
  3705  //
  3706  // As in the type definitions, this section takes an approach of
  3707  // successive-shrinking to determine which limits to use for the standard (8,
  3708  // 16, 32, 64) bit widths when they don't have exact representations. It is
  3709  // therefore important that the definitions be kept in order of decending
  3710  // widths.
  3711  //
  3712  // Note that C++ should not check __STDC_LIMIT_MACROS here, contrary to the
  3713  // claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]).
  3714  
  3715  // Some utility macros
  3716  
  3717  // C99 7.18.2.4 Limits of integer types capable of holding object pointers.
  3718  // C99 7.18.3 Limits of other integer types.
  3719  
  3720  // ISO9899:2011 7.20 (C11 Annex K): Define RSIZE_MAX if __STDC_WANT_LIB_EXT1__
  3721  // is enabled.
  3722  
  3723  // C99 7.18.2.5 Limits of greatest-width integer types.
  3724  
  3725  // C99 7.18.3 Limits of other integer types.
  3726  
  3727  // 7.18.4.2 Macros for greatest-width integer constants.
  3728  
  3729  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3730  //
  3731  // @APPLE_LICENSE_HEADER_START@
  3732  //
  3733  // This file contains Original Code and/or Modifications of Original Code
  3734  // as defined in and that are subject to the Apple Public Source License
  3735  // Version 2.0 (the 'License'). You may not use this file except in
  3736  // compliance with the License. Please obtain a copy of the License at
  3737  // http://www.opensource.apple.com/apsl/ and read it before using this
  3738  // file.
  3739  //
  3740  // The Original Code and all software distributed under the License are
  3741  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3742  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3743  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3744  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3745  // Please see the License for the specific language governing rights and
  3746  // limitations under the License.
  3747  //
  3748  // @APPLE_LICENSE_HEADER_END@
  3749  
  3750  // [XSI] The timeval structure shall be defined as described in
  3751  // <sys/time.h>
  3752  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3753  //
  3754  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3755  //
  3756  // This file contains Original Code and/or Modifications of Original Code
  3757  // as defined in and that are subject to the Apple Public Source License
  3758  // Version 2.0 (the 'License'). You may not use this file except in
  3759  // compliance with the License. The rights granted to you under the License
  3760  // may not be used to create, or enable the creation or redistribution of,
  3761  // unlawful or unlicensed copies of an Apple operating system, or to
  3762  // circumvent, violate, or enable the circumvention or violation of, any
  3763  // terms of an Apple operating system software license agreement.
  3764  //
  3765  // Please obtain a copy of the License at
  3766  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3767  //
  3768  // The Original Code and all software distributed under the License are
  3769  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3770  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3771  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3772  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3773  // Please see the License for the specific language governing rights and
  3774  // limitations under the License.
  3775  //
  3776  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3777  
  3778  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3779  //
  3780  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3781  //
  3782  // This file contains Original Code and/or Modifications of Original Code
  3783  // as defined in and that are subject to the Apple Public Source License
  3784  // Version 2.0 (the 'License'). You may not use this file except in
  3785  // compliance with the License. The rights granted to you under the License
  3786  // may not be used to create, or enable the creation or redistribution of,
  3787  // unlawful or unlicensed copies of an Apple operating system, or to
  3788  // circumvent, violate, or enable the circumvention or violation of, any
  3789  // terms of an Apple operating system software license agreement.
  3790  //
  3791  // Please obtain a copy of the License at
  3792  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3793  //
  3794  // The Original Code and all software distributed under the License are
  3795  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3796  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3797  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3798  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3799  // Please see the License for the specific language governing rights and
  3800  // limitations under the License.
  3801  //
  3802  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3803  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3804  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3805  //
  3806  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3807  //
  3808  // This file contains Original Code and/or Modifications of Original Code
  3809  // as defined in and that are subject to the Apple Public Source License
  3810  // Version 2.0 (the 'License'). You may not use this file except in
  3811  // compliance with the License. The rights granted to you under the License
  3812  // may not be used to create, or enable the creation or redistribution of,
  3813  // unlawful or unlicensed copies of an Apple operating system, or to
  3814  // circumvent, violate, or enable the circumvention or violation of, any
  3815  // terms of an Apple operating system software license agreement.
  3816  //
  3817  // Please obtain a copy of the License at
  3818  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3819  //
  3820  // The Original Code and all software distributed under the License are
  3821  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3822  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3823  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3824  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3825  // Please see the License for the specific language governing rights and
  3826  // limitations under the License.
  3827  //
  3828  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3829  
  3830  type Timeval = struct {
  3831  	Ftv_sec      X__darwin_time_t
  3832  	Ftv_usec     X__darwin_suseconds_t
  3833  	F__ccgo_pad1 [4]byte
  3834  } /* _timeval.h:34:1 */
  3835  
  3836  // The id_t type shall be defined as described in <sys/types.h>
  3837  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3838  //
  3839  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3840  //
  3841  // This file contains Original Code and/or Modifications of Original Code
  3842  // as defined in and that are subject to the Apple Public Source License
  3843  // Version 2.0 (the 'License'). You may not use this file except in
  3844  // compliance with the License. The rights granted to you under the License
  3845  // may not be used to create, or enable the creation or redistribution of,
  3846  // unlawful or unlicensed copies of an Apple operating system, or to
  3847  // circumvent, violate, or enable the circumvention or violation of, any
  3848  // terms of an Apple operating system software license agreement.
  3849  //
  3850  // Please obtain a copy of the License at
  3851  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3852  //
  3853  // The Original Code and all software distributed under the License are
  3854  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3855  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3856  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3857  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3858  // Please see the License for the specific language governing rights and
  3859  // limitations under the License.
  3860  //
  3861  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3862  
  3863  // Resource limit type (low 63 bits, excluding the sign bit)
  3864  type Rlim_t = X__uint64_t /* resource.h:89:25 */
  3865  
  3866  // ****
  3867  //
  3868  // PRIORITY
  3869  
  3870  // Possible values of the first parameter to getpriority()/setpriority(),
  3871  // used to indicate the type of the second parameter.
  3872  
  3873  // Range limitations for the value of the third parameter to setpriority().
  3874  
  3875  // use PRIO_DARWIN_BG to set the current thread into "background" state
  3876  // which lowers CPU, disk IO, and networking priorites until thread terminates
  3877  // or "background" state is revoked
  3878  
  3879  // use PRIO_DARWIN_NONUI to restrict a process's ability to make calls to
  3880  // the GPU. (deprecated)
  3881  
  3882  // ****
  3883  //
  3884  // RESOURCE USAGE
  3885  
  3886  // Possible values of the first parameter to getrusage(), used to indicate
  3887  // the scope of the information to be returned.
  3888  
  3889  // A structure representing an accounting of resource utilization.  The
  3890  // address of an instance of this structure is the second parameter to
  3891  // getrusage().
  3892  //
  3893  // Note: All values other than ru_utime and ru_stime are implementaiton
  3894  //
  3895  //	defined and subject to change in a future release.  Their use
  3896  //	is discouraged for standards compliant programs.
  3897  type Rusage = struct {
  3898  	Fru_utime struct {
  3899  		Ftv_sec      X__darwin_time_t
  3900  		Ftv_usec     X__darwin_suseconds_t
  3901  		F__ccgo_pad1 [4]byte
  3902  	}
  3903  	Fru_stime struct {
  3904  		Ftv_sec      X__darwin_time_t
  3905  		Ftv_usec     X__darwin_suseconds_t
  3906  		F__ccgo_pad1 [4]byte
  3907  	}
  3908  	Fru_maxrss   int64
  3909  	Fru_ixrss    int64
  3910  	Fru_idrss    int64
  3911  	Fru_isrss    int64
  3912  	Fru_minflt   int64
  3913  	Fru_majflt   int64
  3914  	Fru_nswap    int64
  3915  	Fru_inblock  int64
  3916  	Fru_oublock  int64
  3917  	Fru_msgsnd   int64
  3918  	Fru_msgrcv   int64
  3919  	Fru_nsignals int64
  3920  	Fru_nvcsw    int64
  3921  	Fru_nivcsw   int64
  3922  } /* resource.h:152:1 */
  3923  
  3924  // Flavors for proc_pid_rusage().
  3925  
  3926  // Flags for RUSAGE_INFO_V5
  3927  
  3928  type Rusage_info_t = uintptr /* resource.h:199:14 */
  3929  
  3930  type Rusage_info_v0 = struct {
  3931  	Fri_uuid               [16]Uint8_t
  3932  	Fri_user_time          Uint64_t
  3933  	Fri_system_time        Uint64_t
  3934  	Fri_pkg_idle_wkups     Uint64_t
  3935  	Fri_interrupt_wkups    Uint64_t
  3936  	Fri_pageins            Uint64_t
  3937  	Fri_wired_size         Uint64_t
  3938  	Fri_resident_size      Uint64_t
  3939  	Fri_phys_footprint     Uint64_t
  3940  	Fri_proc_start_abstime Uint64_t
  3941  	Fri_proc_exit_abstime  Uint64_t
  3942  } /* resource.h:201:1 */
  3943  
  3944  type Rusage_info_v1 = struct {
  3945  	Fri_uuid                  [16]Uint8_t
  3946  	Fri_user_time             Uint64_t
  3947  	Fri_system_time           Uint64_t
  3948  	Fri_pkg_idle_wkups        Uint64_t
  3949  	Fri_interrupt_wkups       Uint64_t
  3950  	Fri_pageins               Uint64_t
  3951  	Fri_wired_size            Uint64_t
  3952  	Fri_resident_size         Uint64_t
  3953  	Fri_phys_footprint        Uint64_t
  3954  	Fri_proc_start_abstime    Uint64_t
  3955  	Fri_proc_exit_abstime     Uint64_t
  3956  	Fri_child_user_time       Uint64_t
  3957  	Fri_child_system_time     Uint64_t
  3958  	Fri_child_pkg_idle_wkups  Uint64_t
  3959  	Fri_child_interrupt_wkups Uint64_t
  3960  	Fri_child_pageins         Uint64_t
  3961  	Fri_child_elapsed_abstime Uint64_t
  3962  } /* resource.h:215:1 */
  3963  
  3964  type Rusage_info_v2 = struct {
  3965  	Fri_uuid                  [16]Uint8_t
  3966  	Fri_user_time             Uint64_t
  3967  	Fri_system_time           Uint64_t
  3968  	Fri_pkg_idle_wkups        Uint64_t
  3969  	Fri_interrupt_wkups       Uint64_t
  3970  	Fri_pageins               Uint64_t
  3971  	Fri_wired_size            Uint64_t
  3972  	Fri_resident_size         Uint64_t
  3973  	Fri_phys_footprint        Uint64_t
  3974  	Fri_proc_start_abstime    Uint64_t
  3975  	Fri_proc_exit_abstime     Uint64_t
  3976  	Fri_child_user_time       Uint64_t
  3977  	Fri_child_system_time     Uint64_t
  3978  	Fri_child_pkg_idle_wkups  Uint64_t
  3979  	Fri_child_interrupt_wkups Uint64_t
  3980  	Fri_child_pageins         Uint64_t
  3981  	Fri_child_elapsed_abstime Uint64_t
  3982  	Fri_diskio_bytesread      Uint64_t
  3983  	Fri_diskio_byteswritten   Uint64_t
  3984  } /* resource.h:235:1 */
  3985  
  3986  type Rusage_info_v3 = struct {
  3987  	Fri_uuid                          [16]Uint8_t
  3988  	Fri_user_time                     Uint64_t
  3989  	Fri_system_time                   Uint64_t
  3990  	Fri_pkg_idle_wkups                Uint64_t
  3991  	Fri_interrupt_wkups               Uint64_t
  3992  	Fri_pageins                       Uint64_t
  3993  	Fri_wired_size                    Uint64_t
  3994  	Fri_resident_size                 Uint64_t
  3995  	Fri_phys_footprint                Uint64_t
  3996  	Fri_proc_start_abstime            Uint64_t
  3997  	Fri_proc_exit_abstime             Uint64_t
  3998  	Fri_child_user_time               Uint64_t
  3999  	Fri_child_system_time             Uint64_t
  4000  	Fri_child_pkg_idle_wkups          Uint64_t
  4001  	Fri_child_interrupt_wkups         Uint64_t
  4002  	Fri_child_pageins                 Uint64_t
  4003  	Fri_child_elapsed_abstime         Uint64_t
  4004  	Fri_diskio_bytesread              Uint64_t
  4005  	Fri_diskio_byteswritten           Uint64_t
  4006  	Fri_cpu_time_qos_default          Uint64_t
  4007  	Fri_cpu_time_qos_maintenance      Uint64_t
  4008  	Fri_cpu_time_qos_background       Uint64_t
  4009  	Fri_cpu_time_qos_utility          Uint64_t
  4010  	Fri_cpu_time_qos_legacy           Uint64_t
  4011  	Fri_cpu_time_qos_user_initiated   Uint64_t
  4012  	Fri_cpu_time_qos_user_interactive Uint64_t
  4013  	Fri_billed_system_time            Uint64_t
  4014  	Fri_serviced_system_time          Uint64_t
  4015  } /* resource.h:257:1 */
  4016  
  4017  type Rusage_info_v4 = struct {
  4018  	Fri_uuid                          [16]Uint8_t
  4019  	Fri_user_time                     Uint64_t
  4020  	Fri_system_time                   Uint64_t
  4021  	Fri_pkg_idle_wkups                Uint64_t
  4022  	Fri_interrupt_wkups               Uint64_t
  4023  	Fri_pageins                       Uint64_t
  4024  	Fri_wired_size                    Uint64_t
  4025  	Fri_resident_size                 Uint64_t
  4026  	Fri_phys_footprint                Uint64_t
  4027  	Fri_proc_start_abstime            Uint64_t
  4028  	Fri_proc_exit_abstime             Uint64_t
  4029  	Fri_child_user_time               Uint64_t
  4030  	Fri_child_system_time             Uint64_t
  4031  	Fri_child_pkg_idle_wkups          Uint64_t
  4032  	Fri_child_interrupt_wkups         Uint64_t
  4033  	Fri_child_pageins                 Uint64_t
  4034  	Fri_child_elapsed_abstime         Uint64_t
  4035  	Fri_diskio_bytesread              Uint64_t
  4036  	Fri_diskio_byteswritten           Uint64_t
  4037  	Fri_cpu_time_qos_default          Uint64_t
  4038  	Fri_cpu_time_qos_maintenance      Uint64_t
  4039  	Fri_cpu_time_qos_background       Uint64_t
  4040  	Fri_cpu_time_qos_utility          Uint64_t
  4041  	Fri_cpu_time_qos_legacy           Uint64_t
  4042  	Fri_cpu_time_qos_user_initiated   Uint64_t
  4043  	Fri_cpu_time_qos_user_interactive Uint64_t
  4044  	Fri_billed_system_time            Uint64_t
  4045  	Fri_serviced_system_time          Uint64_t
  4046  	Fri_logical_writes                Uint64_t
  4047  	Fri_lifetime_max_phys_footprint   Uint64_t
  4048  	Fri_instructions                  Uint64_t
  4049  	Fri_cycles                        Uint64_t
  4050  	Fri_billed_energy                 Uint64_t
  4051  	Fri_serviced_energy               Uint64_t
  4052  	Fri_interval_max_phys_footprint   Uint64_t
  4053  	Fri_runnable_time                 Uint64_t
  4054  } /* resource.h:288:1 */
  4055  
  4056  type Rusage_info_v5 = struct {
  4057  	Fri_uuid                          [16]Uint8_t
  4058  	Fri_user_time                     Uint64_t
  4059  	Fri_system_time                   Uint64_t
  4060  	Fri_pkg_idle_wkups                Uint64_t
  4061  	Fri_interrupt_wkups               Uint64_t
  4062  	Fri_pageins                       Uint64_t
  4063  	Fri_wired_size                    Uint64_t
  4064  	Fri_resident_size                 Uint64_t
  4065  	Fri_phys_footprint                Uint64_t
  4066  	Fri_proc_start_abstime            Uint64_t
  4067  	Fri_proc_exit_abstime             Uint64_t
  4068  	Fri_child_user_time               Uint64_t
  4069  	Fri_child_system_time             Uint64_t
  4070  	Fri_child_pkg_idle_wkups          Uint64_t
  4071  	Fri_child_interrupt_wkups         Uint64_t
  4072  	Fri_child_pageins                 Uint64_t
  4073  	Fri_child_elapsed_abstime         Uint64_t
  4074  	Fri_diskio_bytesread              Uint64_t
  4075  	Fri_diskio_byteswritten           Uint64_t
  4076  	Fri_cpu_time_qos_default          Uint64_t
  4077  	Fri_cpu_time_qos_maintenance      Uint64_t
  4078  	Fri_cpu_time_qos_background       Uint64_t
  4079  	Fri_cpu_time_qos_utility          Uint64_t
  4080  	Fri_cpu_time_qos_legacy           Uint64_t
  4081  	Fri_cpu_time_qos_user_initiated   Uint64_t
  4082  	Fri_cpu_time_qos_user_interactive Uint64_t
  4083  	Fri_billed_system_time            Uint64_t
  4084  	Fri_serviced_system_time          Uint64_t
  4085  	Fri_logical_writes                Uint64_t
  4086  	Fri_lifetime_max_phys_footprint   Uint64_t
  4087  	Fri_instructions                  Uint64_t
  4088  	Fri_cycles                        Uint64_t
  4089  	Fri_billed_energy                 Uint64_t
  4090  	Fri_serviced_energy               Uint64_t
  4091  	Fri_interval_max_phys_footprint   Uint64_t
  4092  	Fri_runnable_time                 Uint64_t
  4093  	Fri_flags                         Uint64_t
  4094  } /* resource.h:327:1 */
  4095  
  4096  type Rusage_info_current = Rusage_info_v5 /* resource.h:367:31 */
  4097  
  4098  // ****
  4099  //
  4100  // RESOURCE LIMITS
  4101  
  4102  // Symbolic constants for resource limits; since all limits are representable
  4103  // as a type rlim_t, we are permitted to define RLIM_SAVED_* in terms of
  4104  // RLIM_INFINITY.
  4105  
  4106  // Possible values of the first parameter to getrlimit()/setrlimit(), to
  4107  // indicate for which resource the operation is being performed.
  4108  
  4109  // A structure representing a resource limit.  The address of an instance
  4110  // of this structure is the second parameter to getrlimit()/setrlimit().
  4111  type Rlimit = struct {
  4112  	Frlim_cur Rlim_t
  4113  	Frlim_max Rlim_t
  4114  } /* resource.h:411:1 */
  4115  
  4116  // proc_rlimit_control()
  4117  //
  4118  // Resource limit flavors
  4119  
  4120  // Flags for wakeups monitor control.
  4121  
  4122  // Flags for CPU usage monitor control.
  4123  
  4124  // Flags for memory footprint interval tracking.
  4125  
  4126  type Proc_rlimit_control_wakeupmon = struct {
  4127  	Fwm_flags Uint32_t
  4128  	Fwm_rate  Int32_t
  4129  } /* resource.h:446:1 */
  4130  
  4131  // Functions for byte reversed loads.
  4132  
  4133  type X_OSUnalignedU16 = struct{ F__val Uint16_t } /* OSByteOrder.h:64:1 */
  4134  
  4135  type X_OSUnalignedU32 = struct{ F__val Uint32_t } /* OSByteOrder.h:68:1 */
  4136  
  4137  type X_OSUnalignedU64 = struct{ F__val Uint64_t } /* OSByteOrder.h:72:1 */
  4138  
  4139  // Deprecated:
  4140  // Structure of the information in the status word returned by wait4.
  4141  // If w_stopval==_WSTOPPED, then the second structure describes
  4142  // the information returned, else the first.
  4143  type Wait = struct{ Fw_status int32 } /* wait.h:194:1 */
  4144  
  4145  // built-in for gcc
  4146  
  4147  // built-in for gcc 3
  4148  
  4149  // DO NOT REMOVE THIS COMMENT: fixincludes needs to see:
  4150  // _GCC_SIZE_T
  4151  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4152  //
  4153  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4154  //
  4155  // This file contains Original Code and/or Modifications of Original Code
  4156  // as defined in and that are subject to the Apple Public Source License
  4157  // Version 2.0 (the 'License'). You may not use this file except in
  4158  // compliance with the License. The rights granted to you under the License
  4159  // may not be used to create, or enable the creation or redistribution of,
  4160  // unlawful or unlicensed copies of an Apple operating system, or to
  4161  // circumvent, violate, or enable the circumvention or violation of, any
  4162  // terms of an Apple operating system software license agreement.
  4163  //
  4164  // Please obtain a copy of the License at
  4165  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4166  //
  4167  // The Original Code and all software distributed under the License are
  4168  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4169  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4170  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4171  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4172  // Please see the License for the specific language governing rights and
  4173  // limitations under the License.
  4174  //
  4175  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4176  
  4177  // Copyright (c) 2012 Apple Inc. All rights reserved.
  4178  //
  4179  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4180  //
  4181  // This file contains Original Code and/or Modifications of Original Code
  4182  // as defined in and that are subject to the Apple Public Source License
  4183  // Version 2.0 (the 'License'). You may not use this file except in
  4184  // compliance with the License. The rights granted to you under the License
  4185  // may not be used to create, or enable the creation or redistribution of,
  4186  // unlawful or unlicensed copies of an Apple operating system, or to
  4187  // circumvent, violate, or enable the circumvention or violation of, any
  4188  // terms of an Apple operating system software license agreement.
  4189  //
  4190  // Please obtain a copy of the License at
  4191  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4192  //
  4193  // The Original Code and all software distributed under the License are
  4194  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4195  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4196  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4197  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4198  // Please see the License for the specific language governing rights and
  4199  // limitations under the License.
  4200  //
  4201  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4202  
  4203  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4204  //
  4205  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4206  //
  4207  // This file contains Original Code and/or Modifications of Original Code
  4208  // as defined in and that are subject to the Apple Public Source License
  4209  // Version 2.0 (the 'License'). You may not use this file except in
  4210  // compliance with the License. The rights granted to you under the License
  4211  // may not be used to create, or enable the creation or redistribution of,
  4212  // unlawful or unlicensed copies of an Apple operating system, or to
  4213  // circumvent, violate, or enable the circumvention or violation of, any
  4214  // terms of an Apple operating system software license agreement.
  4215  //
  4216  // Please obtain a copy of the License at
  4217  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4218  //
  4219  // The Original Code and all software distributed under the License are
  4220  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4221  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4222  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4223  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4224  // Please see the License for the specific language governing rights and
  4225  // limitations under the License.
  4226  //
  4227  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4228  type Ct_rune_t = X__darwin_ct_rune_t /* _ct_rune_t.h:32:28 */
  4229  // Copyright (c) 2012 Apple Inc. All rights reserved.
  4230  //
  4231  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4232  //
  4233  // This file contains Original Code and/or Modifications of Original Code
  4234  // as defined in and that are subject to the Apple Public Source License
  4235  // Version 2.0 (the 'License'). You may not use this file except in
  4236  // compliance with the License. The rights granted to you under the License
  4237  // may not be used to create, or enable the creation or redistribution of,
  4238  // unlawful or unlicensed copies of an Apple operating system, or to
  4239  // circumvent, violate, or enable the circumvention or violation of, any
  4240  // terms of an Apple operating system software license agreement.
  4241  //
  4242  // Please obtain a copy of the License at
  4243  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4244  //
  4245  // The Original Code and all software distributed under the License are
  4246  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4247  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4248  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4249  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4250  // Please see the License for the specific language governing rights and
  4251  // limitations under the License.
  4252  //
  4253  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4254  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4255  //
  4256  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4257  //
  4258  // This file contains Original Code and/or Modifications of Original Code
  4259  // as defined in and that are subject to the Apple Public Source License
  4260  // Version 2.0 (the 'License'). You may not use this file except in
  4261  // compliance with the License. The rights granted to you under the License
  4262  // may not be used to create, or enable the creation or redistribution of,
  4263  // unlawful or unlicensed copies of an Apple operating system, or to
  4264  // circumvent, violate, or enable the circumvention or violation of, any
  4265  // terms of an Apple operating system software license agreement.
  4266  //
  4267  // Please obtain a copy of the License at
  4268  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4269  //
  4270  // The Original Code and all software distributed under the License are
  4271  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4272  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4273  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4274  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4275  // Please see the License for the specific language governing rights and
  4276  // limitations under the License.
  4277  //
  4278  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4279  type Rune_t = X__darwin_rune_t /* _rune_t.h:31:25 */
  4280  
  4281  type Div_t = struct {
  4282  	Fquot int32
  4283  	Frem  int32
  4284  } /* stdlib.h:86:3 */
  4285  
  4286  type Ldiv_t = struct {
  4287  	Fquot int64
  4288  	Frem  int64
  4289  } /* stdlib.h:91:3 */
  4290  
  4291  type Lldiv_t = struct {
  4292  	Fquot int64
  4293  	Frem  int64
  4294  } /* stdlib.h:97:3 */
  4295  
  4296  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4297  //
  4298  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4299  //
  4300  // This file contains Original Code and/or Modifications of Original Code
  4301  // as defined in and that are subject to the Apple Public Source License
  4302  // Version 2.0 (the 'License'). You may not use this file except in
  4303  // compliance with the License. The rights granted to you under the License
  4304  // may not be used to create, or enable the creation or redistribution of,
  4305  // unlawful or unlicensed copies of an Apple operating system, or to
  4306  // circumvent, violate, or enable the circumvention or violation of, any
  4307  // terms of an Apple operating system software license agreement.
  4308  //
  4309  // Please obtain a copy of the License at
  4310  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4311  //
  4312  // The Original Code and all software distributed under the License are
  4313  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4314  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4315  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4316  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4317  // Please see the License for the specific language governing rights and
  4318  // limitations under the License.
  4319  //
  4320  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4321  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4322  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4323  //
  4324  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4325  //
  4326  // This file contains Original Code and/or Modifications of Original Code
  4327  // as defined in and that are subject to the Apple Public Source License
  4328  // Version 2.0 (the 'License'). You may not use this file except in
  4329  // compliance with the License. The rights granted to you under the License
  4330  // may not be used to create, or enable the creation or redistribution of,
  4331  // unlawful or unlicensed copies of an Apple operating system, or to
  4332  // circumvent, violate, or enable the circumvention or violation of, any
  4333  // terms of an Apple operating system software license agreement.
  4334  //
  4335  // Please obtain a copy of the License at
  4336  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4337  //
  4338  // The Original Code and all software distributed under the License are
  4339  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4340  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4341  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4342  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4343  // Please see the License for the specific language governing rights and
  4344  // limitations under the License.
  4345  //
  4346  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4347  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4348  //
  4349  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4350  //
  4351  // This file contains Original Code and/or Modifications of Original Code
  4352  // as defined in and that are subject to the Apple Public Source License
  4353  // Version 2.0 (the 'License'). You may not use this file except in
  4354  // compliance with the License. The rights granted to you under the License
  4355  // may not be used to create, or enable the creation or redistribution of,
  4356  // unlawful or unlicensed copies of an Apple operating system, or to
  4357  // circumvent, violate, or enable the circumvention or violation of, any
  4358  // terms of an Apple operating system software license agreement.
  4359  //
  4360  // Please obtain a copy of the License at
  4361  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4362  //
  4363  // The Original Code and all software distributed under the License are
  4364  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4365  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4366  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4367  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4368  // Please see the License for the specific language governing rights and
  4369  // limitations under the License.
  4370  //
  4371  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4372  
  4373  type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number
  4374  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4375  //
  4376  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4377  //
  4378  // This file contains Original Code and/or Modifications of Original Code
  4379  // as defined in and that are subject to the Apple Public Source License
  4380  // Version 2.0 (the 'License'). You may not use this file except in
  4381  // compliance with the License. The rights granted to you under the License
  4382  // may not be used to create, or enable the creation or redistribution of,
  4383  // unlawful or unlicensed copies of an Apple operating system, or to
  4384  // circumvent, violate, or enable the circumvention or violation of, any
  4385  // terms of an Apple operating system software license agreement.
  4386  //
  4387  // Please obtain a copy of the License at
  4388  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4389  //
  4390  // The Original Code and all software distributed under the License are
  4391  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4392  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4393  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4394  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4395  // Please see the License for the specific language governing rights and
  4396  // limitations under the License.
  4397  //
  4398  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4399  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4400  //
  4401  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4402  //
  4403  // This file contains Original Code and/or Modifications of Original Code
  4404  // as defined in and that are subject to the Apple Public Source License
  4405  // Version 2.0 (the 'License'). You may not use this file except in
  4406  // compliance with the License. The rights granted to you under the License
  4407  // may not be used to create, or enable the creation or redistribution of,
  4408  // unlawful or unlicensed copies of an Apple operating system, or to
  4409  // circumvent, violate, or enable the circumvention or violation of, any
  4410  // terms of an Apple operating system software license agreement.
  4411  //
  4412  // Please obtain a copy of the License at
  4413  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4414  //
  4415  // The Original Code and all software distributed under the License are
  4416  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4417  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4418  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4419  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4420  // Please see the License for the specific language governing rights and
  4421  // limitations under the License.
  4422  //
  4423  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4424  
  4425  type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */ // getsubopt(3) external variable
  4426  // valloc is now declared in _malloc.h
  4427  
  4428  // Poison the following routines if -fshort-wchar is set
  4429  
  4430  var _ int8 /* gen.c:2:13: */