modernc.org/xau@v1.0.16/lib/xau_darwin_arm64.go (about)

     1  // Code generated by 'ccgo -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -o lib/xau_darwin_arm64.go -pkgname xau -trace-translation-units /var/folders/4f/mc8mts295pqf7gmnfcwh6g8w0000gn/T/go-generate-2901277256/cdb.json libXau.a', DO NOT EDIT.
     2  
     3  package xau
     4  
     5  import (
     6  	"math"
     7  	"reflect"
     8  	"sync/atomic"
     9  	"unsafe"
    10  
    11  	"modernc.org/libc"
    12  	"modernc.org/libc/sys/types"
    13  )
    14  
    15  var _ = math.Pi
    16  var _ reflect.Kind
    17  var _ atomic.Value
    18  var _ unsafe.Pointer
    19  var _ *libc.TLS
    20  var _ types.Size_t
    21  
    22  const (
    23  	BIG_ENDIAN                                = 4321
    24  	BUFSIZ                                    = 1024
    25  	BUS_ADRALN                                = 1
    26  	BUS_ADRERR                                = 2
    27  	BUS_NOOP                                  = 0
    28  	BUS_OBJERR                                = 3
    29  	BYTE_ORDER                                = 1234
    30  	CLD_CONTINUED                             = 6
    31  	CLD_DUMPED                                = 3
    32  	CLD_EXITED                                = 1
    33  	CLD_KILLED                                = 2
    34  	CLD_NOOP                                  = 0
    35  	CLD_STOPPED                               = 5
    36  	CLD_TRAPPED                               = 4
    37  	CPUMON_MAKE_FATAL                         = 0x1000
    38  	CSRG_BASED                                = 0
    39  	EOF                                       = -1
    40  	EXIT_FAILURE                              = 1
    41  	EXIT_SUCCESS                              = 0
    42  	FILENAME_MAX                              = 1024
    43  	FIXINC_WRAP_STDIO_H_STDIO_STDARG_H        = 1
    44  	FOOTPRINT_INTERVAL_RESET                  = 0x1
    45  	FOPEN_MAX                                 = 20
    46  	FPE_FLTDIV                                = 1
    47  	FPE_FLTINV                                = 5
    48  	FPE_FLTOVF                                = 2
    49  	FPE_FLTRES                                = 4
    50  	FPE_FLTSUB                                = 6
    51  	FPE_FLTUND                                = 3
    52  	FPE_INTDIV                                = 7
    53  	FPE_INTOVF                                = 8
    54  	FPE_NOOP                                  = 0
    55  	FUNCPROTO                                 = 15
    56  	FamilyKrb5Principal                       = 253
    57  	FamilyLocal                               = 256
    58  	FamilyLocalHost                           = 252
    59  	FamilyNetname                             = 254
    60  	FamilyWild                                = 65535
    61  	HAVE_CONFIG_H                             = 1
    62  	HAVE_DLFCN_H                              = 1
    63  	HAVE_INTTYPES_H                           = 1
    64  	HAVE_MEMORY_H                             = 1
    65  	HAVE_PATHCONF                             = 1
    66  	HAVE_STDINT_H                             = 1
    67  	HAVE_STDLIB_H                             = 1
    68  	HAVE_STRINGS_H                            = 1
    69  	HAVE_STRING_H                             = 1
    70  	HAVE_SYS_STAT_H                           = 1
    71  	HAVE_SYS_TYPES_H                          = 1
    72  	HAVE_UNISTD_H                             = 1
    73  	ILL_BADSTK                                = 8
    74  	ILL_COPROC                                = 7
    75  	ILL_ILLADR                                = 5
    76  	ILL_ILLOPC                                = 1
    77  	ILL_ILLOPN                                = 4
    78  	ILL_ILLTRP                                = 2
    79  	ILL_NOOP                                  = 0
    80  	ILL_PRVOPC                                = 3
    81  	ILL_PRVREG                                = 6
    82  	INT16_MAX                                 = 32767
    83  	INT16_MIN                                 = -32768
    84  	INT32_MAX                                 = 2147483647
    85  	INT32_MIN                                 = -2147483648
    86  	INT64_MAX                                 = 9223372036854775807
    87  	INT64_MIN                                 = -9223372036854775808
    88  	INT8_MAX                                  = 127
    89  	INT8_MIN                                  = -128
    90  	INTMAX_MAX                                = 9223372036854775807
    91  	INTMAX_MIN                                = -9223372036854775808
    92  	INTPTR_MAX                                = 9223372036854775807
    93  	INTPTR_MIN                                = -9223372036854775808
    94  	INT_FAST16_MAX                            = 32767
    95  	INT_FAST16_MIN                            = -32768
    96  	INT_FAST32_MAX                            = 2147483647
    97  	INT_FAST32_MIN                            = -2147483648
    98  	INT_FAST64_MAX                            = 9223372036854775807
    99  	INT_FAST64_MIN                            = -9223372036854775808
   100  	INT_FAST8_MAX                             = 127
   101  	INT_FAST8_MIN                             = -128
   102  	INT_LEAST16_MAX                           = 32767
   103  	INT_LEAST16_MIN                           = -32768
   104  	INT_LEAST32_MAX                           = 2147483647
   105  	INT_LEAST32_MIN                           = -2147483648
   106  	INT_LEAST64_MAX                           = 9223372036854775807
   107  	INT_LEAST64_MIN                           = -9223372036854775808
   108  	INT_LEAST8_MAX                            = 127
   109  	INT_LEAST8_MIN                            = -128
   110  	IOPOL_APPLICATION                         = 5
   111  	IOPOL_ATIME_UPDATES_DEFAULT               = 0
   112  	IOPOL_ATIME_UPDATES_OFF                   = 1
   113  	IOPOL_DEFAULT                             = 0
   114  	IOPOL_IMPORTANT                           = 1
   115  	IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT  = 0
   116  	IOPOL_MATERIALIZE_DATALESS_FILES_OFF      = 1
   117  	IOPOL_MATERIALIZE_DATALESS_FILES_ON       = 2
   118  	IOPOL_NORMAL                              = 1
   119  	IOPOL_PASSIVE                             = 2
   120  	IOPOL_SCOPE_DARWIN_BG                     = 2
   121  	IOPOL_SCOPE_PROCESS                       = 0
   122  	IOPOL_SCOPE_THREAD                        = 1
   123  	IOPOL_STANDARD                            = 5
   124  	IOPOL_THROTTLE                            = 3
   125  	IOPOL_TYPE_DISK                           = 0
   126  	IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES     = 9
   127  	IOPOL_TYPE_VFS_ATIME_UPDATES              = 2
   128  	IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION  = 6
   129  	IOPOL_TYPE_VFS_IGNORE_PERMISSIONS         = 7
   130  	IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES = 3
   131  	IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE          = 8
   132  	IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME      = 4
   133  	IOPOL_TYPE_VFS_TRIGGER_RESOLVE            = 5
   134  	IOPOL_UTILITY                             = 4
   135  	IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF      = 0
   136  	IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON       = 1
   137  	IOPOL_VFS_CONTENT_PROTECTION_DEFAULT      = 0
   138  	IOPOL_VFS_CONTENT_PROTECTION_IGNORE       = 1
   139  	IOPOL_VFS_IGNORE_PERMISSIONS_OFF          = 0
   140  	IOPOL_VFS_IGNORE_PERMISSIONS_ON           = 1
   141  	IOPOL_VFS_SKIP_MTIME_UPDATE_OFF           = 0
   142  	IOPOL_VFS_SKIP_MTIME_UPDATE_ON            = 1
   143  	IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME     = 1
   144  	IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT   = 0
   145  	IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT         = 0
   146  	IOPOL_VFS_TRIGGER_RESOLVE_OFF             = 1
   147  	LITTLE_ENDIAN                             = 1234
   148  	LOCK_ERROR                                = 1
   149  	LOCK_SUCCESS                              = 0
   150  	LOCK_TIMEOUT                              = 2
   151  	LT_OBJDIR                                 = ".libs/"
   152  	L_ctermid                                 = 1024
   153  	L_tmpnam                                  = 1024
   154  	MAC_OS_VERSION_11_0                       = 110000
   155  	MAC_OS_VERSION_12_0                       = 120000
   156  	MAC_OS_X_VERSION_10_0                     = 1000
   157  	MAC_OS_X_VERSION_10_1                     = 1010
   158  	MAC_OS_X_VERSION_10_10                    = 101000
   159  	MAC_OS_X_VERSION_10_10_2                  = 101002
   160  	MAC_OS_X_VERSION_10_10_3                  = 101003
   161  	MAC_OS_X_VERSION_10_11                    = 101100
   162  	MAC_OS_X_VERSION_10_11_2                  = 101102
   163  	MAC_OS_X_VERSION_10_11_3                  = 101103
   164  	MAC_OS_X_VERSION_10_11_4                  = 101104
   165  	MAC_OS_X_VERSION_10_12                    = 101200
   166  	MAC_OS_X_VERSION_10_12_1                  = 101201
   167  	MAC_OS_X_VERSION_10_12_2                  = 101202
   168  	MAC_OS_X_VERSION_10_12_4                  = 101204
   169  	MAC_OS_X_VERSION_10_13                    = 101300
   170  	MAC_OS_X_VERSION_10_13_1                  = 101301
   171  	MAC_OS_X_VERSION_10_13_2                  = 101302
   172  	MAC_OS_X_VERSION_10_13_4                  = 101304
   173  	MAC_OS_X_VERSION_10_14                    = 101400
   174  	MAC_OS_X_VERSION_10_14_1                  = 101401
   175  	MAC_OS_X_VERSION_10_14_4                  = 101404
   176  	MAC_OS_X_VERSION_10_14_6                  = 101406
   177  	MAC_OS_X_VERSION_10_15                    = 101500
   178  	MAC_OS_X_VERSION_10_15_1                  = 101501
   179  	MAC_OS_X_VERSION_10_16                    = 101600
   180  	MAC_OS_X_VERSION_10_2                     = 1020
   181  	MAC_OS_X_VERSION_10_3                     = 1030
   182  	MAC_OS_X_VERSION_10_4                     = 1040
   183  	MAC_OS_X_VERSION_10_5                     = 1050
   184  	MAC_OS_X_VERSION_10_6                     = 1060
   185  	MAC_OS_X_VERSION_10_7                     = 1070
   186  	MAC_OS_X_VERSION_10_8                     = 1080
   187  	MAC_OS_X_VERSION_10_9                     = 1090
   188  	MINSIGSTKSZ                               = 32768
   189  	NSIG                                      = 32
   190  	NULL_NOT_ZERO                             = 0
   191  	NeedFunctionPrototypes                    = 1
   192  	NeedNestedPrototypes                      = 1
   193  	NeedVarargsPrototypes                     = 1
   194  	NeedWidePrototypes                        = 1
   195  	PACKAGE                                   = "libXau"
   196  	PACKAGE_BUGREPORT                         = "https://gitlab.freedesktop.org/xorg/lib/libXau/issues"
   197  	PACKAGE_NAME                              = "libXau"
   198  	PACKAGE_STRING                            = "libXau 1.0.9"
   199  	PACKAGE_TARNAME                           = "libXau"
   200  	PACKAGE_URL                               = ""
   201  	PACKAGE_VERSION                           = "1.0.9"
   202  	PACKAGE_VERSION_MAJOR                     = 1
   203  	PACKAGE_VERSION_MINOR                     = 0
   204  	PACKAGE_VERSION_PATCHLEVEL                = 9
   205  	PDP_ENDIAN                                = 3412
   206  	POLL_ERR                                  = 4
   207  	POLL_HUP                                  = 6
   208  	POLL_IN                                   = 1
   209  	POLL_MSG                                  = 3
   210  	POLL_OUT                                  = 2
   211  	POLL_PRI                                  = 5
   212  	PRIO_DARWIN_BG                            = 0x1000
   213  	PRIO_DARWIN_NONUI                         = 0x1001
   214  	PRIO_DARWIN_PROCESS                       = 4
   215  	PRIO_DARWIN_THREAD                        = 3
   216  	PRIO_MAX                                  = 20
   217  	PRIO_MIN                                  = -20
   218  	PRIO_PGRP                                 = 1
   219  	PRIO_PROCESS                              = 0
   220  	PRIO_USER                                 = 2
   221  	PTRDIFF_MAX                               = 9223372036854775807
   222  	PTRDIFF_MIN                               = -9223372036854775808
   223  	P_tmpdir                                  = "/var/tmp/"
   224  	RAND_MAX                                  = 0x7fffffff
   225  	RENAME_EXCL                               = 0x00000004
   226  	RENAME_SECLUDE                            = 0x00000001
   227  	RENAME_SWAP                               = 0x00000002
   228  	RLIMIT_AS                                 = 5
   229  	RLIMIT_CORE                               = 4
   230  	RLIMIT_CPU                                = 0
   231  	RLIMIT_CPU_USAGE_MONITOR                  = 0x2
   232  	RLIMIT_DATA                               = 2
   233  	RLIMIT_FOOTPRINT_INTERVAL                 = 0x4
   234  	RLIMIT_FSIZE                              = 1
   235  	RLIMIT_MEMLOCK                            = 6
   236  	RLIMIT_NOFILE                             = 8
   237  	RLIMIT_NPROC                              = 7
   238  	RLIMIT_RSS                                = 5
   239  	RLIMIT_STACK                              = 3
   240  	RLIMIT_THREAD_CPULIMITS                   = 0x3
   241  	RLIMIT_WAKEUPS_MONITOR                    = 0x1
   242  	RLIM_NLIMITS                              = 9
   243  	RSIZE_MAX                                 = 9223372036854775807
   244  	RUSAGE_CHILDREN                           = -1
   245  	RUSAGE_INFO_CURRENT                       = 5
   246  	RUSAGE_INFO_V0                            = 0
   247  	RUSAGE_INFO_V1                            = 1
   248  	RUSAGE_INFO_V2                            = 2
   249  	RUSAGE_INFO_V3                            = 3
   250  	RUSAGE_INFO_V4                            = 4
   251  	RUSAGE_INFO_V5                            = 5
   252  	RUSAGE_SELF                               = 0
   253  	RU_PROC_RUNS_RESLIDE                      = 0x00000001
   254  	SA_64REGSET                               = 0x0200
   255  	SA_NOCLDSTOP                              = 0x0008
   256  	SA_NOCLDWAIT                              = 0x0020
   257  	SA_NODEFER                                = 0x0010
   258  	SA_ONSTACK                                = 0x0001
   259  	SA_RESETHAND                              = 0x0004
   260  	SA_RESTART                                = 0x0002
   261  	SA_SIGINFO                                = 0x0040
   262  	SA_USERSPACE_MASK                         = 127
   263  	SA_USERTRAMP                              = 0x0100
   264  	SEEK_CUR                                  = 1
   265  	SEEK_END                                  = 2
   266  	SEEK_SET                                  = 0
   267  	SEGV_ACCERR                               = 2
   268  	SEGV_MAPERR                               = 1
   269  	SEGV_NOOP                                 = 0
   270  	SIGABRT                                   = 6
   271  	SIGALRM                                   = 14
   272  	SIGBUS                                    = 10
   273  	SIGCHLD                                   = 20
   274  	SIGCONT                                   = 19
   275  	SIGEMT                                    = 7
   276  	SIGEV_NONE                                = 0
   277  	SIGEV_SIGNAL                              = 1
   278  	SIGEV_THREAD                              = 3
   279  	SIGFPE                                    = 8
   280  	SIGHUP                                    = 1
   281  	SIGILL                                    = 4
   282  	SIGINFO                                   = 29
   283  	SIGINT                                    = 2
   284  	SIGIO                                     = 23
   285  	SIGIOT                                    = 6
   286  	SIGKILL                                   = 9
   287  	SIGPIPE                                   = 13
   288  	SIGPROF                                   = 27
   289  	SIGQUIT                                   = 3
   290  	SIGSEGV                                   = 11
   291  	SIGSTKSZ                                  = 131072
   292  	SIGSTOP                                   = 17
   293  	SIGSYS                                    = 12
   294  	SIGTERM                                   = 15
   295  	SIGTRAP                                   = 5
   296  	SIGTSTP                                   = 18
   297  	SIGTTIN                                   = 21
   298  	SIGTTOU                                   = 22
   299  	SIGURG                                    = 16
   300  	SIGUSR1                                   = 30
   301  	SIGUSR2                                   = 31
   302  	SIGVTALRM                                 = 26
   303  	SIGWINCH                                  = 28
   304  	SIGXCPU                                   = 24
   305  	SIGXFSZ                                   = 25
   306  	SIG_ATOMIC_MAX                            = 2147483647
   307  	SIG_ATOMIC_MIN                            = -2147483648
   308  	SIG_BLOCK                                 = 1
   309  	SIG_SETMASK                               = 3
   310  	SIG_UNBLOCK                               = 2
   311  	SIZE_MAX                                  = 18446744073709551615
   312  	SI_ASYNCIO                                = 0x10004
   313  	SI_MESGQ                                  = 0x10005
   314  	SI_QUEUE                                  = 0x10002
   315  	SI_TIMER                                  = 0x10003
   316  	SI_USER                                   = 0x10001
   317  	SS_DISABLE                                = 0x0004
   318  	SS_ONSTACK                                = 0x0001
   319  	STDC_HEADERS                              = 1
   320  	SV_INTERRUPT                              = 2
   321  	SV_NOCLDSTOP                              = 8
   322  	SV_NODEFER                                = 16
   323  	SV_ONSTACK                                = 1
   324  	SV_RESETHAND                              = 4
   325  	SV_SIGINFO                                = 64
   326  	TMP_MAX                                   = 308915776
   327  	TRAP_BRKPT                                = 1
   328  	TRAP_TRACE                                = 2
   329  	UINT16_MAX                                = 65535
   330  	UINT32_MAX                                = 4294967295
   331  	UINT64_MAX                                = 18446744073709551615
   332  	UINT8_MAX                                 = 255
   333  	UINTMAX_MAX                               = 18446744073709551615
   334  	UINTPTR_MAX                               = 18446744073709551615
   335  	UINT_FAST16_MAX                           = 65535
   336  	UINT_FAST32_MAX                           = 4294967295
   337  	UINT_FAST64_MAX                           = 18446744073709551615
   338  	UINT_FAST8_MAX                            = 255
   339  	UINT_LEAST16_MAX                          = 65535
   340  	UINT_LEAST32_MAX                          = 4294967295
   341  	UINT_LEAST64_MAX                          = 18446744073709551615
   342  	UINT_LEAST8_MAX                           = 255
   343  	VERSION                                   = "1.0.9"
   344  	WAIT_ANY                                  = -1
   345  	WAIT_MYPGRP                               = 0
   346  	WAKEMON_DISABLE                           = 0x02
   347  	WAKEMON_ENABLE                            = 0x01
   348  	WAKEMON_GET_PARAMS                        = 0x04
   349  	WAKEMON_MAKE_FATAL                        = 0x10
   350  	WAKEMON_SET_DEFAULTS                      = 0x08
   351  	WCHAR_MAX                                 = 2147483647
   352  	WCHAR_MIN                                 = -2147483648
   353  	WCONTINUED                                = 0x00000010
   354  	WCOREFLAG                                 = 0200
   355  	WEXITED                                   = 0x00000004
   356  	WINT_MAX                                  = 2147483647
   357  	WINT_MIN                                  = -2147483648
   358  	WNOHANG                                   = 0x00000001
   359  	WNOWAIT                                   = 0x00000020
   360  	WSTOPPED                                  = 0x00000008
   361  	WUNTRACED                                 = 0x00000002
   362  	X_ALLOCA_H_                               = 0
   363  	X_ALL_SOURCE                              = 1
   364  	X_ARM_ARCH_H                              = 0
   365  	X_ARM_MACHTYPES_H_                        = 0
   366  	X_ARM_SIGNAL_                             = 1
   367  	X_ARM__ENDIAN_H_                          = 0
   368  	X_BSD_ARM__TYPES_H_                       = 0
   369  	X_BSD_MACHINE_ENDIAN_H_                   = 0
   370  	X_BSD_MACHINE_SIGNAL_H_                   = 0
   371  	X_BSD_MACHINE_TYPES_H_                    = 0
   372  	X_BSD_MACHINE__MCONTEXT_H_                = 0
   373  	X_BSD_MACHINE__TYPES_H_                   = 0
   374  	X_CDEFS_H_                                = 0
   375  	X_CTERMID_H_                              = 0
   376  	X_CT_RUNE_T                               = 0
   377  	X_DARWIN_FEATURE_64_BIT_INODE             = 1
   378  	X_DARWIN_FEATURE_ONLY_64_BIT_INODE        = 1
   379  	X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE    = 1
   380  	X_DARWIN_FEATURE_ONLY_VERS_1050           = 1
   381  	X_DARWIN_FEATURE_UNIX_CONFORMANCE         = 3
   382  	X_DEV_T                                   = 0
   383  	X_ERRNO_T                                 = 0
   384  	X_FILE_OFFSET_BITS                        = 64
   385  	X_FORTIFY_SOURCE                          = 2
   386  	X_FSTDIO                                  = 0
   387  	X_GCC_WRAP_STDINT_H                       = 0
   388  	X_GNU_SOURCE                              = 1
   389  	X_ID_T                                    = 0
   390  	X_INT16_T                                 = 0
   391  	X_INT32_T                                 = 0
   392  	X_INT64_T                                 = 0
   393  	X_INT8_T                                  = 0
   394  	X_INTMAX_T                                = 0
   395  	X_INTPTR_T                                = 0
   396  	X_IOFBF                                   = 0
   397  	X_IOLBF                                   = 1
   398  	X_IONBF                                   = 2
   399  	X_LP64                                    = 1
   400  	X_MACHTYPES_H_                            = 0
   401  	X_MACH_ARM__STRUCTS_H_                    = 0
   402  	X_MACH_MACHINE__STRUCTS_H_                = 0
   403  	X_MALLOC_UNDERSCORE_MALLOC_H_             = 0
   404  	X_MCONTEXT_T                              = 0
   405  	X_MODE_T                                  = 0
   406  	X_Nonnull                                 = 0
   407  	X_Null_unspecified                        = 0
   408  	X_Nullable                                = 0
   409  	X_OFF_T                                   = 0
   410  	X_OS_OSBYTEORDERARM_H                     = 0
   411  	X_OS__OSBYTEORDER_H                       = 0
   412  	X_PID_T                                   = 0
   413  	X_POSIX_PTHREAD_SEMANTICS                 = 1
   414  	X_PTHREAD_ATTR_T                          = 0
   415  	X_QUAD_HIGHWORD                           = 1
   416  	X_QUAD_LOWWORD                            = 0
   417  	X_RLIMIT_POSIX_FLAG                       = 0x1000
   418  	X_RSIZE_T                                 = 0
   419  	X_RUNE_T                                  = 0
   420  	X_SECURE__COMMON_H_                       = 0
   421  	X_SECURE__STDIO_H_                        = 0
   422  	X_SECURE__STRINGS_H_                      = 0
   423  	X_SECURE__STRING_H_                       = 0
   424  	X_SIGSET_T                                = 0
   425  	X_SIZE_T                                  = 0
   426  	X_SSIZE_T                                 = 0
   427  	X_STDINT_H_                               = 0
   428  	X_STDIO_H_                                = 0
   429  	X_STDLIB_H_                               = 0
   430  	X_STRINGS_H_                              = 0
   431  	X_STRING_H_                               = 0
   432  	X_SYS_RESOURCE_H_                         = 0
   433  	X_SYS_SIGNAL_H_                           = 0
   434  	X_SYS_STDIO_H_                            = 0
   435  	X_SYS_WAIT_H_                             = 0
   436  	X_SYS__ENDIAN_H_                          = 0
   437  	X_SYS__PTHREAD_TYPES_H_                   = 0
   438  	X_SYS__TYPES_H_                           = 0
   439  	X_TANDEM_SOURCE                           = 1
   440  	X_UID_T                                   = 0
   441  	X_UINT16_T                                = 0
   442  	X_UINT32_T                                = 0
   443  	X_UINT64_T                                = 0
   444  	X_UINT8_T                                 = 0
   445  	X_UINTMAX_T                               = 0
   446  	X_UINTPTR_T                               = 0
   447  	X_USE_FORTIFY_LEVEL                       = 2
   448  	X_U_INT16_T                               = 0
   449  	X_U_INT32_T                               = 0
   450  	X_U_INT64_T                               = 0
   451  	X_U_INT8_T                                = 0
   452  	X_VA_LIST_T                               = 0
   453  	X_WCHAR_T                                 = 0
   454  	X_WSTOPPED                                = 0177
   455  	X_XFUNCPROTOBEGIN                         = 0
   456  	X_XFUNCPROTOEND                           = 0
   457  	X_XFUNCPROTO_H_                           = 0
   458  	X_XFUNCS_H_                               = 0
   459  	X_XFUNCS_H_INCLUDED_STRING_H              = 0
   460  	X_XOSDEFS_H_                              = 0
   461  	X_X_NONSTRING                             = 0
   462  	X_X_NOTSAN                                = 0
   463  	X_Xauth_h                                 = 0
   464  	ACCESSX_MAX_DESCRIPTORS                   = 100
   465  	ACCESSX_MAX_TABLESIZE                     = 16384
   466  	AT_EACCESS                                = 0x0010
   467  	AT_FDCWD                                  = -2
   468  	AT_FDONLY                                 = 0x0400
   469  	AT_REALDEV                                = 0x0200
   470  	AT_REMOVEDIR                              = 0x0080
   471  	AT_SYMLINK_FOLLOW                         = 0x0040
   472  	AT_SYMLINK_NOFOLLOW                       = 0x0020
   473  	CLOCKS_PER_SEC                            = 1000000
   474  	CPF_IGNORE_MODE                           = 0x0002
   475  	CPF_MASK                                  = 3
   476  	CPF_OVERWRITE                             = 0x0001
   477  	DST_AUST                                  = 2
   478  	DST_CAN                                   = 6
   479  	DST_EET                                   = 5
   480  	DST_MET                                   = 4
   481  	DST_NONE                                  = 0
   482  	DST_USA                                   = 1
   483  	DST_WET                                   = 3
   484  	FAPPEND                                   = 8
   485  	FASYNC                                    = 64
   486  	FCNTL_FS_SPECIFIC_BASE                    = 0x00010000
   487  	FD_CLOEXEC                                = 1
   488  	FD_SETSIZE                                = 1024
   489  	FFDSYNC                                   = 4194304
   490  	FFSYNC                                    = 128
   491  	FNDELAY                                   = 4
   492  	FNONBLOCK                                 = 4
   493  	FREAD                                     = 0x00000001
   494  	FWRITE                                    = 0x00000002
   495  	F_ADDFILESIGS                             = 61
   496  	F_ADDFILESIGS_FOR_DYLD_SIM                = 83
   497  	F_ADDFILESIGS_INFO                        = 103
   498  	F_ADDFILESIGS_RETURN                      = 97
   499  	F_ADDFILESUPPL                            = 104
   500  	F_ADDSIGS                                 = 59
   501  	F_ALLOCATEALL                             = 0x00000004
   502  	F_ALLOCATECONTIG                          = 0x00000002
   503  	F_BARRIERFSYNC                            = 85
   504  	F_CHECK_LV                                = 98
   505  	F_CHKCLEAN                                = 41
   506  	F_DUPFD                                   = 0
   507  	F_DUPFD_CLOEXEC                           = 67
   508  	F_FINDSIGS                                = 78
   509  	F_FLUSH_DATA                              = 40
   510  	F_FREEZE_FS                               = 53
   511  	F_FULLFSYNC                               = 51
   512  	F_GETCODEDIR                              = 72
   513  	F_GETFD                                   = 1
   514  	F_GETFL                                   = 3
   515  	F_GETLK                                   = 7
   516  	F_GETLKPID                                = 66
   517  	F_GETNOSIGPIPE                            = 74
   518  	F_GETOWN                                  = 5
   519  	F_GETPATH                                 = 50
   520  	F_GETPATH_MTMINFO                         = 71
   521  	F_GETPATH_NOFIRMLINK                      = 102
   522  	F_GETPROTECTIONCLASS                      = 63
   523  	F_GETPROTECTIONLEVEL                      = 77
   524  	F_GETSIGSINFO                             = 105
   525  	F_GLOBAL_NOCACHE                          = 55
   526  	F_LOCK                                    = 1
   527  	F_LOG2PHYS                                = 49
   528  	F_LOG2PHYS_EXT                            = 65
   529  	F_NOCACHE                                 = 48
   530  	F_NODIRECT                                = 62
   531  	F_OK                                      = 0
   532  	F_PATHPKG_CHECK                           = 52
   533  	F_PEOFPOSMODE                             = 3
   534  	F_PREALLOCATE                             = 42
   535  	F_PUNCHHOLE                               = 99
   536  	F_RDADVISE                                = 44
   537  	F_RDAHEAD                                 = 45
   538  	F_RDLCK                                   = 1
   539  	F_SETBACKINGSTORE                         = 70
   540  	F_SETFD                                   = 2
   541  	F_SETFL                                   = 4
   542  	F_SETLK                                   = 8
   543  	F_SETLKW                                  = 9
   544  	F_SETLKWTIMEOUT                           = 10
   545  	F_SETNOSIGPIPE                            = 73
   546  	F_SETOWN                                  = 6
   547  	F_SETPROTECTIONCLASS                      = 64
   548  	F_SETSIZE                                 = 43
   549  	F_SINGLE_WRITER                           = 76
   550  	F_SPECULATIVE_READ                        = 101
   551  	F_TEST                                    = 3
   552  	F_THAW_FS                                 = 54
   553  	F_TLOCK                                   = 2
   554  	F_TRANSCODEKEY                            = 75
   555  	F_TRIM_ACTIVE_FILE                        = 100
   556  	F_ULOCK                                   = 0
   557  	F_UNLCK                                   = 2
   558  	F_VOLPOSMODE                              = 4
   559  	F_WRLCK                                   = 3
   560  	GETSIGSINFO_PLATFORM_BINARY               = 1
   561  	ITIMER_PROF                               = 2
   562  	ITIMER_REAL                               = 0
   563  	ITIMER_VIRTUAL                            = 1
   564  	LOCK_EX                                   = 0x02
   565  	LOCK_NB                                   = 0x04
   566  	LOCK_SH                                   = 0x01
   567  	LOCK_UN                                   = 0x08
   568  	L_INCR                                    = 1
   569  	L_SET                                     = 0
   570  	L_XTND                                    = 2
   571  	NBBY                                      = 8
   572  	O_ACCMODE                                 = 0x0003
   573  	O_ALERT                                   = 0x20000000
   574  	O_APPEND                                  = 0x00000008
   575  	O_ASYNC                                   = 0x00000040
   576  	O_CLOEXEC                                 = 0x01000000
   577  	O_CREAT                                   = 0x00000200
   578  	O_DIRECTORY                               = 0x00100000
   579  	O_DP_GETRAWENCRYPTED                      = 0x0001
   580  	O_DP_GETRAWUNENCRYPTED                    = 0x0002
   581  	O_DSYNC                                   = 0x400000
   582  	O_EVTONLY                                 = 0x00008000
   583  	O_EXCL                                    = 0x00000800
   584  	O_EXLOCK                                  = 0x00000020
   585  	O_FSYNC                                   = 128
   586  	O_NDELAY                                  = 4
   587  	O_NOCTTY                                  = 0x00020000
   588  	O_NOFOLLOW                                = 0x00000100
   589  	O_NOFOLLOW_ANY                            = 0x20000000
   590  	O_NONBLOCK                                = 0x00000004
   591  	O_POPUP                                   = 0x80000000
   592  	O_RDONLY                                  = 0x0000
   593  	O_RDWR                                    = 0x0002
   594  	O_SHLOCK                                  = 0x00000010
   595  	O_SYMLINK                                 = 0x00200000
   596  	O_SYNC                                    = 0x0080
   597  	O_TRUNC                                   = 0x00000400
   598  	O_WRONLY                                  = 0x0001
   599  	R_OK                                      = 4
   600  	SEEK_DATA                                 = 4
   601  	SEEK_HOLE                                 = 3
   602  	STDERR_FILENO                             = 2
   603  	STDIN_FILENO                              = 0
   604  	STDOUT_FILENO                             = 1
   605  	SYNC_VOLUME_FULLSYNC                      = 0x01
   606  	SYNC_VOLUME_WAIT                          = 0x02
   607  	S_IEXEC                                   = 64
   608  	S_IFBLK                                   = 0060000
   609  	S_IFCHR                                   = 0020000
   610  	S_IFDIR                                   = 0040000
   611  	S_IFIFO                                   = 0010000
   612  	S_IFLNK                                   = 0120000
   613  	S_IFMT                                    = 0170000
   614  	S_IFREG                                   = 0100000
   615  	S_IFSOCK                                  = 0140000
   616  	S_IFWHT                                   = 0160000
   617  	S_IREAD                                   = 256
   618  	S_IRGRP                                   = 0000040
   619  	S_IROTH                                   = 0000004
   620  	S_IRUSR                                   = 0000400
   621  	S_IRWXG                                   = 0000070
   622  	S_IRWXO                                   = 0000007
   623  	S_IRWXU                                   = 0000700
   624  	S_ISGID                                   = 0002000
   625  	S_ISTXT                                   = 512
   626  	S_ISUID                                   = 0004000
   627  	S_ISVTX                                   = 0001000
   628  	S_IWGRP                                   = 0000020
   629  	S_IWOTH                                   = 0000002
   630  	S_IWRITE                                  = 128
   631  	S_IWUSR                                   = 0000200
   632  	S_IXGRP                                   = 0000010
   633  	S_IXOTH                                   = 0000001
   634  	S_IXUSR                                   = 0000100
   635  	TIME_UTC                                  = 1
   636  	USER_FSIGNATURES_CDHASH_LEN               = 20
   637  	W_OK                                      = 2
   638  	X_BIG_ENDIAN                              = 4321
   639  	X_BYTE_ORDER                              = 1234
   640  	X_LITTLE_ENDIAN                           = 1234
   641  	X_OK                                      = 1
   642  	X_ACCESS_EXTENDED_MASK                    = 4193792
   643  	X_APPEND_OK                               = 8192
   644  	X_ASSERT_H_                               = 0
   645  	X_BLKCNT_T                                = 0
   646  	X_BLKSIZE_T                               = 0
   647  	X_CADDR_T                                 = 0
   648  	X_CHOWN_OK                                = 2097152
   649  	X_CLOCK_T                                 = 0
   650  	X_CS_DARWIN_USER_CACHE_DIR                = 65538
   651  	X_CS_DARWIN_USER_DIR                      = 65536
   652  	X_CS_DARWIN_USER_TEMP_DIR                 = 65537
   653  	X_CS_PATH                                 = 1
   654  	X_CS_POSIX_V6_ILP32_OFF32_CFLAGS          = 2
   655  	X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS         = 3
   656  	X_CS_POSIX_V6_ILP32_OFF32_LIBS            = 4
   657  	X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS         = 5
   658  	X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS        = 6
   659  	X_CS_POSIX_V6_ILP32_OFFBIG_LIBS           = 7
   660  	X_CS_POSIX_V6_LP64_OFF64_CFLAGS           = 8
   661  	X_CS_POSIX_V6_LP64_OFF64_LDFLAGS          = 9
   662  	X_CS_POSIX_V6_LP64_OFF64_LIBS             = 10
   663  	X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS         = 11
   664  	X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS        = 12
   665  	X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS           = 13
   666  	X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS       = 14
   667  	X_CS_XBS5_ILP32_OFF32_CFLAGS              = 20
   668  	X_CS_XBS5_ILP32_OFF32_LDFLAGS             = 21
   669  	X_CS_XBS5_ILP32_OFF32_LIBS                = 22
   670  	X_CS_XBS5_ILP32_OFF32_LINTFLAGS           = 23
   671  	X_CS_XBS5_ILP32_OFFBIG_CFLAGS             = 24
   672  	X_CS_XBS5_ILP32_OFFBIG_LDFLAGS            = 25
   673  	X_CS_XBS5_ILP32_OFFBIG_LIBS               = 26
   674  	X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS          = 27
   675  	X_CS_XBS5_LP64_OFF64_CFLAGS               = 28
   676  	X_CS_XBS5_LP64_OFF64_LDFLAGS              = 29
   677  	X_CS_XBS5_LP64_OFF64_LIBS                 = 30
   678  	X_CS_XBS5_LP64_OFF64_LINTFLAGS            = 31
   679  	X_CS_XBS5_LPBIG_OFFBIG_CFLAGS             = 32
   680  	X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS            = 33
   681  	X_CS_XBS5_LPBIG_OFFBIG_LIBS               = 34
   682  	X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS          = 35
   683  	X_DELETE_OK                               = 4096
   684  	X_EXECUTE_OK                              = 2048
   685  	X_FD_SET                                  = 0
   686  	X_FILESEC_T                               = 0
   687  	X_FSBLKCNT_T                              = 0
   688  	X_FSFILCNT_T                              = 0
   689  	X_GID_T                                   = 0
   690  	X_INO64_T                                 = 0
   691  	X_INO_T                                   = 0
   692  	X_IN_ADDR_T                               = 0
   693  	X_IN_PORT_T                               = 0
   694  	X_KEY_T                                   = 0
   695  	X_NLINK_T                                 = 0
   696  	X_PC_2_SYMLINKS                           = 15
   697  	X_PC_ALLOC_SIZE_MIN                       = 16
   698  	X_PC_ASYNC_IO                             = 17
   699  	X_PC_AUTH_OPAQUE_NP                       = 14
   700  	X_PC_CASE_PRESERVING                      = 12
   701  	X_PC_CASE_SENSITIVE                       = 11
   702  	X_PC_CHOWN_RESTRICTED                     = 7
   703  	X_PC_EXTENDED_SECURITY_NP                 = 13
   704  	X_PC_FILESIZEBITS                         = 18
   705  	X_PC_LINK_MAX                             = 1
   706  	X_PC_MAX_CANON                            = 2
   707  	X_PC_MAX_INPUT                            = 3
   708  	X_PC_MIN_HOLE_SIZE                        = 27
   709  	X_PC_NAME_CHARS_MAX                       = 10
   710  	X_PC_NAME_MAX                             = 4
   711  	X_PC_NO_TRUNC                             = 8
   712  	X_PC_PATH_MAX                             = 5
   713  	X_PC_PIPE_BUF                             = 6
   714  	X_PC_PRIO_IO                              = 19
   715  	X_PC_REC_INCR_XFER_SIZE                   = 20
   716  	X_PC_REC_MAX_XFER_SIZE                    = 21
   717  	X_PC_REC_MIN_XFER_SIZE                    = 22
   718  	X_PC_REC_XFER_ALIGN                       = 23
   719  	X_PC_SYMLINK_MAX                          = 24
   720  	X_PC_SYNC_IO                              = 25
   721  	X_PC_VDISABLE                             = 9
   722  	X_PC_XATTR_SIZE_BITS                      = 26
   723  	X_POSIX2_CHAR_TERM                        = 200112
   724  	X_POSIX2_C_BIND                           = 200112
   725  	X_POSIX2_C_DEV                            = 200112
   726  	X_POSIX2_FORT_DEV                         = -1
   727  	X_POSIX2_FORT_RUN                         = 200112
   728  	X_POSIX2_LOCALEDEF                        = 200112
   729  	X_POSIX2_PBS                              = -1
   730  	X_POSIX2_PBS_ACCOUNTING                   = -1
   731  	X_POSIX2_PBS_CHECKPOINT                   = -1
   732  	X_POSIX2_PBS_LOCATE                       = -1
   733  	X_POSIX2_PBS_MESSAGE                      = -1
   734  	X_POSIX2_PBS_TRACK                        = -1
   735  	X_POSIX2_SW_DEV                           = 200112
   736  	X_POSIX2_UPE                              = 200112
   737  	X_POSIX2_VERSION                          = 200112
   738  	X_POSIX_ADVISORY_INFO                     = -1
   739  	X_POSIX_ASYNCHRONOUS_IO                   = -1
   740  	X_POSIX_BARRIERS                          = -1
   741  	X_POSIX_CHOWN_RESTRICTED                  = 200112
   742  	X_POSIX_CLOCK_SELECTION                   = -1
   743  	X_POSIX_CPUTIME                           = -1
   744  	X_POSIX_FSYNC                             = 200112
   745  	X_POSIX_IPV6                              = 200112
   746  	X_POSIX_JOB_CONTROL                       = 200112
   747  	X_POSIX_MAPPED_FILES                      = 200112
   748  	X_POSIX_MEMLOCK                           = -1
   749  	X_POSIX_MEMLOCK_RANGE                     = -1
   750  	X_POSIX_MEMORY_PROTECTION                 = 200112
   751  	X_POSIX_MESSAGE_PASSING                   = -1
   752  	X_POSIX_MONOTONIC_CLOCK                   = -1
   753  	X_POSIX_NO_TRUNC                          = 200112
   754  	X_POSIX_PRIORITIZED_IO                    = -1
   755  	X_POSIX_PRIORITY_SCHEDULING               = -1
   756  	X_POSIX_RAW_SOCKETS                       = -1
   757  	X_POSIX_READER_WRITER_LOCKS               = 200112
   758  	X_POSIX_REALTIME_SIGNALS                  = -1
   759  	X_POSIX_REGEXP                            = 200112
   760  	X_POSIX_SAVED_IDS                         = 200112
   761  	X_POSIX_SEMAPHORES                        = -1
   762  	X_POSIX_SHARED_MEMORY_OBJECTS             = -1
   763  	X_POSIX_SHELL                             = 200112
   764  	X_POSIX_SPAWN                             = -1
   765  	X_POSIX_SPIN_LOCKS                        = -1
   766  	X_POSIX_SPORADIC_SERVER                   = -1
   767  	X_POSIX_SYNCHRONIZED_IO                   = -1
   768  	X_POSIX_THREADS                           = 200112
   769  	X_POSIX_THREAD_ATTR_STACKADDR             = 200112
   770  	X_POSIX_THREAD_ATTR_STACKSIZE             = 200112
   771  	X_POSIX_THREAD_CPUTIME                    = -1
   772  	X_POSIX_THREAD_KEYS_MAX                   = 128
   773  	X_POSIX_THREAD_PRIORITY_SCHEDULING        = -1
   774  	X_POSIX_THREAD_PRIO_INHERIT               = -1
   775  	X_POSIX_THREAD_PRIO_PROTECT               = -1
   776  	X_POSIX_THREAD_PROCESS_SHARED             = 200112
   777  	X_POSIX_THREAD_SAFE_FUNCTIONS             = 200112
   778  	X_POSIX_THREAD_SPORADIC_SERVER            = -1
   779  	X_POSIX_TIMEOUTS                          = -1
   780  	X_POSIX_TIMERS                            = -1
   781  	X_POSIX_TRACE                             = -1
   782  	X_POSIX_TRACE_EVENT_FILTER                = -1
   783  	X_POSIX_TRACE_INHERIT                     = -1
   784  	X_POSIX_TRACE_LOG                         = -1
   785  	X_POSIX_TYPED_MEMORY_OBJECTS              = -1
   786  	X_POSIX_V6_ILP32_OFF32                    = -1
   787  	X_POSIX_V6_ILP32_OFFBIG                   = -1
   788  	X_POSIX_V6_LP64_OFF64                     = 1
   789  	X_POSIX_V6_LPBIG_OFFBIG                   = 1
   790  	X_POSIX_V7_ILP32_OFF32                    = -1
   791  	X_POSIX_V7_ILP32_OFFBIG                   = -1
   792  	X_POSIX_V7_LP64_OFF64                     = 1
   793  	X_POSIX_V7_LPBIG_OFFBIG                   = 1
   794  	X_POSIX_VERSION                           = 200112
   795  	X_PTHREAD_CONDATTR_T                      = 0
   796  	X_PTHREAD_COND_T                          = 0
   797  	X_PTHREAD_KEY_T                           = 0
   798  	X_PTHREAD_MUTEXATTR_T                     = 0
   799  	X_PTHREAD_MUTEX_T                         = 0
   800  	X_PTHREAD_ONCE_T                          = 0
   801  	X_PTHREAD_RWLOCKATTR_T                    = 0
   802  	X_PTHREAD_RWLOCK_T                        = 0
   803  	X_PTHREAD_T                               = 0
   804  	X_RATTR_OK                                = 32768
   805  	X_READ_OK                                 = 512
   806  	X_REXT_OK                                 = 131072
   807  	X_RMFILE_OK                               = 16384
   808  	X_RPERM_OK                                = 524288
   809  	X_SC_2_CHAR_TERM                          = 20
   810  	X_SC_2_C_BIND                             = 18
   811  	X_SC_2_C_DEV                              = 19
   812  	X_SC_2_FORT_DEV                           = 21
   813  	X_SC_2_FORT_RUN                           = 22
   814  	X_SC_2_LOCALEDEF                          = 23
   815  	X_SC_2_PBS                                = 59
   816  	X_SC_2_PBS_ACCOUNTING                     = 60
   817  	X_SC_2_PBS_CHECKPOINT                     = 61
   818  	X_SC_2_PBS_LOCATE                         = 62
   819  	X_SC_2_PBS_MESSAGE                        = 63
   820  	X_SC_2_PBS_TRACK                          = 64
   821  	X_SC_2_SW_DEV                             = 24
   822  	X_SC_2_UPE                                = 25
   823  	X_SC_2_VERSION                            = 17
   824  	X_SC_ADVISORY_INFO                        = 65
   825  	X_SC_AIO_LISTIO_MAX                       = 42
   826  	X_SC_AIO_MAX                              = 43
   827  	X_SC_AIO_PRIO_DELTA_MAX                   = 44
   828  	X_SC_ARG_MAX                              = 1
   829  	X_SC_ASYNCHRONOUS_IO                      = 28
   830  	X_SC_ATEXIT_MAX                           = 107
   831  	X_SC_BARRIERS                             = 66
   832  	X_SC_BC_BASE_MAX                          = 9
   833  	X_SC_BC_DIM_MAX                           = 10
   834  	X_SC_BC_SCALE_MAX                         = 11
   835  	X_SC_BC_STRING_MAX                        = 12
   836  	X_SC_CHILD_MAX                            = 2
   837  	X_SC_CLK_TCK                              = 3
   838  	X_SC_CLOCK_SELECTION                      = 67
   839  	X_SC_COLL_WEIGHTS_MAX                     = 13
   840  	X_SC_CPUTIME                              = 68
   841  	X_SC_DELAYTIMER_MAX                       = 45
   842  	X_SC_EXPR_NEST_MAX                        = 14
   843  	X_SC_FILE_LOCKING                         = 69
   844  	X_SC_FSYNC                                = 38
   845  	X_SC_GETGR_R_SIZE_MAX                     = 70
   846  	X_SC_GETPW_R_SIZE_MAX                     = 71
   847  	X_SC_HOST_NAME_MAX                        = 72
   848  	X_SC_IOV_MAX                              = 56
   849  	X_SC_IPV6                                 = 118
   850  	X_SC_JOB_CONTROL                          = 6
   851  	X_SC_LINE_MAX                             = 15
   852  	X_SC_LOGIN_NAME_MAX                       = 73
   853  	X_SC_MAPPED_FILES                         = 47
   854  	X_SC_MEMLOCK                              = 30
   855  	X_SC_MEMLOCK_RANGE                        = 31
   856  	X_SC_MEMORY_PROTECTION                    = 32
   857  	X_SC_MESSAGE_PASSING                      = 33
   858  	X_SC_MONOTONIC_CLOCK                      = 74
   859  	X_SC_MQ_OPEN_MAX                          = 46
   860  	X_SC_MQ_PRIO_MAX                          = 75
   861  	X_SC_NGROUPS_MAX                          = 4
   862  	X_SC_NPROCESSORS_CONF                     = 57
   863  	X_SC_NPROCESSORS_ONLN                     = 58
   864  	X_SC_OPEN_MAX                             = 5
   865  	X_SC_PAGESIZE                             = 29
   866  	X_SC_PAGE_SIZE                            = 29
   867  	X_SC_PASS_MAX                             = 131
   868  	X_SC_PHYS_PAGES                           = 200
   869  	X_SC_PRIORITIZED_IO                       = 34
   870  	X_SC_PRIORITY_SCHEDULING                  = 35
   871  	X_SC_RAW_SOCKETS                          = 119
   872  	X_SC_READER_WRITER_LOCKS                  = 76
   873  	X_SC_REALTIME_SIGNALS                     = 36
   874  	X_SC_REGEXP                               = 77
   875  	X_SC_RE_DUP_MAX                           = 16
   876  	X_SC_RTSIG_MAX                            = 48
   877  	X_SC_SAVED_IDS                            = 7
   878  	X_SC_SEMAPHORES                           = 37
   879  	X_SC_SEM_NSEMS_MAX                        = 49
   880  	X_SC_SEM_VALUE_MAX                        = 50
   881  	X_SC_SHARED_MEMORY_OBJECTS                = 39
   882  	X_SC_SHELL                                = 78
   883  	X_SC_SIGQUEUE_MAX                         = 51
   884  	X_SC_SPAWN                                = 79
   885  	X_SC_SPIN_LOCKS                           = 80
   886  	X_SC_SPORADIC_SERVER                      = 81
   887  	X_SC_SS_REPL_MAX                          = 126
   888  	X_SC_STREAM_MAX                           = 26
   889  	X_SC_SYMLOOP_MAX                          = 120
   890  	X_SC_SYNCHRONIZED_IO                      = 40
   891  	X_SC_THREADS                              = 96
   892  	X_SC_THREAD_ATTR_STACKADDR                = 82
   893  	X_SC_THREAD_ATTR_STACKSIZE                = 83
   894  	X_SC_THREAD_CPUTIME                       = 84
   895  	X_SC_THREAD_DESTRUCTOR_ITERATIONS         = 85
   896  	X_SC_THREAD_KEYS_MAX                      = 86
   897  	X_SC_THREAD_PRIORITY_SCHEDULING           = 89
   898  	X_SC_THREAD_PRIO_INHERIT                  = 87
   899  	X_SC_THREAD_PRIO_PROTECT                  = 88
   900  	X_SC_THREAD_PROCESS_SHARED                = 90
   901  	X_SC_THREAD_SAFE_FUNCTIONS                = 91
   902  	X_SC_THREAD_SPORADIC_SERVER               = 92
   903  	X_SC_THREAD_STACK_MIN                     = 93
   904  	X_SC_THREAD_THREADS_MAX                   = 94
   905  	X_SC_TIMEOUTS                             = 95
   906  	X_SC_TIMERS                               = 41
   907  	X_SC_TIMER_MAX                            = 52
   908  	X_SC_TRACE                                = 97
   909  	X_SC_TRACE_EVENT_FILTER                   = 98
   910  	X_SC_TRACE_EVENT_NAME_MAX                 = 127
   911  	X_SC_TRACE_INHERIT                        = 99
   912  	X_SC_TRACE_LOG                            = 100
   913  	X_SC_TRACE_NAME_MAX                       = 128
   914  	X_SC_TRACE_SYS_MAX                        = 129
   915  	X_SC_TRACE_USER_EVENT_MAX                 = 130
   916  	X_SC_TTY_NAME_MAX                         = 101
   917  	X_SC_TYPED_MEMORY_OBJECTS                 = 102
   918  	X_SC_TZNAME_MAX                           = 27
   919  	X_SC_V6_ILP32_OFF32                       = 103
   920  	X_SC_V6_ILP32_OFFBIG                      = 104
   921  	X_SC_V6_LP64_OFF64                        = 105
   922  	X_SC_V6_LPBIG_OFFBIG                      = 106
   923  	X_SC_VERSION                              = 8
   924  	X_SC_XBS5_ILP32_OFF32                     = 122
   925  	X_SC_XBS5_ILP32_OFFBIG                    = 123
   926  	X_SC_XBS5_LP64_OFF64                      = 124
   927  	X_SC_XBS5_LPBIG_OFFBIG                    = 125
   928  	X_SC_XOPEN_CRYPT                          = 108
   929  	X_SC_XOPEN_ENH_I18N                       = 109
   930  	X_SC_XOPEN_LEGACY                         = 110
   931  	X_SC_XOPEN_REALTIME                       = 111
   932  	X_SC_XOPEN_REALTIME_THREADS               = 112
   933  	X_SC_XOPEN_SHM                            = 113
   934  	X_SC_XOPEN_STREAMS                        = 114
   935  	X_SC_XOPEN_UNIX                           = 115
   936  	X_SC_XOPEN_VERSION                        = 116
   937  	X_SC_XOPEN_XCU_VERSION                    = 121
   938  	X_STRUCT_TIMEVAL64                        = 0
   939  	X_SUSECONDS_T                             = 0
   940  	X_SYS_FCNTL_H_                            = 0
   941  	X_SYS_SELECT_H_                           = 0
   942  	X_SYS_TIME_H_                             = 0
   943  	X_SYS_TYPES_H_                            = 0
   944  	X_SYS_UNISTD_H_                           = 0
   945  	X_SYS__SELECT_H_                          = 0
   946  	X_TIME_H_                                 = 0
   947  	X_TIME_T                                  = 0
   948  	X_UNISTD_H_                               = 0
   949  	X_USECONDS_T                              = 0
   950  	X_UUID_T                                  = 0
   951  	X_U_CHAR                                  = 0
   952  	X_U_INT                                   = 0
   953  	X_U_LONG                                  = 0
   954  	X_U_SHORT                                 = 0
   955  	X_V6_ILP32_OFF32                          = -1
   956  	X_V6_ILP32_OFFBIG                         = -1
   957  	X_V6_LP64_OFF64                           = 1
   958  	X_V6_LPBIG_OFFBIG                         = 1
   959  	X_WATTR_OK                                = 65536
   960  	X_WEXT_OK                                 = 262144
   961  	X_WPERM_OK                                = 1048576
   962  	X_WRITE_OK                                = 1024
   963  	X_XARCH_H_                                = 0
   964  	X_XBS5_ILP32_OFF32                        = -1
   965  	X_XBS5_ILP32_OFFBIG                       = -1
   966  	X_XBS5_LP64_OFF64                         = 1
   967  	X_XBS5_LPBIG_OFFBIG                       = 1
   968  	X_XOPEN_CRYPT                             = 1
   969  	X_XOPEN_ENH_I18N                          = 1
   970  	X_XOPEN_LEGACY                            = -1
   971  	X_XOPEN_REALTIME                          = -1
   972  	X_XOPEN_REALTIME_THREADS                  = -1
   973  	X_XOPEN_SHM                               = 1
   974  	X_XOPEN_STREAMS                           = -1
   975  	X_XOPEN_UNIX                              = 1
   976  	X_XOPEN_VERSION                           = 600
   977  	X_XOPEN_XCU_VERSION                       = 4
   978  	X_XOS_H_                                  = 0
   979  	ACCESSPERMS                               = 511
   980  	ALLPERMS                                  = 4095
   981  	DEFFILEMODE                               = 438
   982  	E2BIG                                     = 7
   983  	EACCES                                    = 13
   984  	EADDRINUSE                                = 48
   985  	EADDRNOTAVAIL                             = 49
   986  	EAFNOSUPPORT                              = 47
   987  	EAGAIN                                    = 35
   988  	EALREADY                                  = 37
   989  	EAUTH                                     = 80
   990  	EBADARCH                                  = 86
   991  	EBADEXEC                                  = 85
   992  	EBADF                                     = 9
   993  	EBADMACHO                                 = 88
   994  	EBADMSG                                   = 94
   995  	EBADRPC                                   = 72
   996  	EBUSY                                     = 16
   997  	ECANCELED                                 = 89
   998  	ECHILD                                    = 10
   999  	ECONNABORTED                              = 53
  1000  	ECONNREFUSED                              = 61
  1001  	ECONNRESET                                = 54
  1002  	EDEADLK                                   = 11
  1003  	EDESTADDRREQ                              = 39
  1004  	EDEVERR                                   = 83
  1005  	EDOM                                      = 33
  1006  	EDQUOT                                    = 69
  1007  	EEXIST                                    = 17
  1008  	EFAULT                                    = 14
  1009  	EFBIG                                     = 27
  1010  	EFTYPE                                    = 79
  1011  	EF_IS_PURGEABLE                           = 0x00000008
  1012  	EF_IS_SPARSE                              = 0x00000010
  1013  	EF_IS_SYNC_ROOT                           = 0x00000004
  1014  	EF_IS_SYNTHETIC                           = 0x00000020
  1015  	EF_MAY_SHARE_BLOCKS                       = 0x00000001
  1016  	EF_NO_XATTRS                              = 0x00000002
  1017  	EHOSTDOWN                                 = 64
  1018  	EHOSTUNREACH                              = 65
  1019  	EIDRM                                     = 90
  1020  	EILSEQ                                    = 92
  1021  	EINPROGRESS                               = 36
  1022  	EINTR                                     = 4
  1023  	EINVAL                                    = 22
  1024  	EIO                                       = 5
  1025  	EISCONN                                   = 56
  1026  	EISDIR                                    = 21
  1027  	ELAST                                     = 106
  1028  	ELOOP                                     = 62
  1029  	EMFILE                                    = 24
  1030  	EMLINK                                    = 31
  1031  	EMSGSIZE                                  = 40
  1032  	EMULTIHOP                                 = 95
  1033  	ENAMETOOLONG                              = 63
  1034  	ENEEDAUTH                                 = 81
  1035  	ENETDOWN                                  = 50
  1036  	ENETRESET                                 = 52
  1037  	ENETUNREACH                               = 51
  1038  	ENFILE                                    = 23
  1039  	ENOATTR                                   = 93
  1040  	ENOBUFS                                   = 55
  1041  	ENODATA                                   = 96
  1042  	ENODEV                                    = 19
  1043  	ENOENT                                    = 2
  1044  	ENOEXEC                                   = 8
  1045  	ENOLCK                                    = 77
  1046  	ENOLINK                                   = 97
  1047  	ENOMEM                                    = 12
  1048  	ENOMSG                                    = 91
  1049  	ENOPOLICY                                 = 103
  1050  	ENOPROTOOPT                               = 42
  1051  	ENOSPC                                    = 28
  1052  	ENOSR                                     = 98
  1053  	ENOSTR                                    = 99
  1054  	ENOSYS                                    = 78
  1055  	ENOTBLK                                   = 15
  1056  	ENOTCONN                                  = 57
  1057  	ENOTDIR                                   = 20
  1058  	ENOTEMPTY                                 = 66
  1059  	ENOTRECOVERABLE                           = 104
  1060  	ENOTSOCK                                  = 38
  1061  	ENOTSUP                                   = 45
  1062  	ENOTTY                                    = 25
  1063  	ENXIO                                     = 6
  1064  	EOPNOTSUPP                                = 102
  1065  	EOVERFLOW                                 = 84
  1066  	EOWNERDEAD                                = 105
  1067  	EPERM                                     = 1
  1068  	EPFNOSUPPORT                              = 46
  1069  	EPIPE                                     = 32
  1070  	EPROCLIM                                  = 67
  1071  	EPROCUNAVAIL                              = 76
  1072  	EPROGMISMATCH                             = 75
  1073  	EPROGUNAVAIL                              = 74
  1074  	EPROTO                                    = 100
  1075  	EPROTONOSUPPORT                           = 43
  1076  	EPROTOTYPE                                = 41
  1077  	EPWROFF                                   = 82
  1078  	EQFULL                                    = 106
  1079  	ERANGE                                    = 34
  1080  	EREMOTE                                   = 71
  1081  	EROFS                                     = 30
  1082  	ERPCMISMATCH                              = 73
  1083  	ESHLIBVERS                                = 87
  1084  	ESHUTDOWN                                 = 58
  1085  	ESOCKTNOSUPPORT                           = 44
  1086  	ESPIPE                                    = 29
  1087  	ESRCH                                     = 3
  1088  	ESTALE                                    = 70
  1089  	ETIME                                     = 101
  1090  	ETIMEDOUT                                 = 60
  1091  	ETOOMANYREFS                              = 59
  1092  	ETXTBSY                                   = 26
  1093  	EUSERS                                    = 68
  1094  	EWOULDBLOCK                               = 35
  1095  	EXDEV                                     = 18
  1096  	SF_APPEND                                 = 0x00040000
  1097  	SF_ARCHIVED                               = 0x00010000
  1098  	SF_DATALESS                               = 0x40000000
  1099  	SF_FIRMLINK                               = 0x00800000
  1100  	SF_IMMUTABLE                              = 0x00020000
  1101  	SF_NOUNLINK                               = 0x00100000
  1102  	SF_RESTRICTED                             = 0x00080000
  1103  	SF_SETTABLE                               = 0x3fff0000
  1104  	SF_SUPPORTED                              = 0x009f0000
  1105  	SF_SYNTHETIC                              = 0xc0000000
  1106  	S_BLKSIZE                                 = 512
  1107  	UF_APPEND                                 = 0x00000004
  1108  	UF_COMPRESSED                             = 0x00000020
  1109  	UF_DATAVAULT                              = 0x00000080
  1110  	UF_HIDDEN                                 = 0x00008000
  1111  	UF_IMMUTABLE                              = 0x00000002
  1112  	UF_NODUMP                                 = 0x00000001
  1113  	UF_OPAQUE                                 = 0x00000008
  1114  	UF_SETTABLE                               = 0x0000ffff
  1115  	UF_TRACKED                                = 0x00000040
  1116  	UTIME_NOW                                 = -1
  1117  	UTIME_OMIT                                = -2
  1118  	X_SYS_ERRNO_H_                            = 0
  1119  	X_SYS_STAT_H_                             = 0
  1120  )
  1121  
  1122  const ( /* fcntl.h:545:1: */
  1123  	FILESEC_OWNER   = 1
  1124  	FILESEC_GROUP   = 2
  1125  	FILESEC_UUID    = 3
  1126  	FILESEC_MODE    = 4
  1127  	FILESEC_ACL     = 5
  1128  	FILESEC_GRPUUID = 6
  1129  
  1130  	// XXX these are private to the implementation
  1131  	FILESEC_ACL_RAW       = 100
  1132  	FILESEC_ACL_ALLOCSIZE = 101
  1133  )
  1134  
  1135  // Return values from XauLockAuth
  1136  
  1137  // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved.
  1138  //
  1139  // @APPLE_LICENSE_HEADER_START@
  1140  //
  1141  // This file contains Original Code and/or Modifications of Original Code
  1142  // as defined in and that are subject to the Apple Public Source License
  1143  // Version 2.0 (the 'License'). You may not use this file except in
  1144  // compliance with the License. Please obtain a copy of the License at
  1145  // http://www.opensource.apple.com/apsl/ and read it before using this
  1146  // file.
  1147  //
  1148  // The Original Code and all software distributed under the License are
  1149  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1150  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1151  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1152  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1153  // Please see the License for the specific language governing rights and
  1154  // limitations under the License.
  1155  //
  1156  // @APPLE_LICENSE_HEADER_END@
  1157  // -
  1158  // Copyright (c) 1990, 1993
  1159  //	The Regents of the University of California.  All rights reserved.
  1160  //
  1161  // Redistribution and use in source and binary forms, with or without
  1162  // modification, are permitted provided that the following conditions
  1163  // are met:
  1164  // 1. Redistributions of source code must retain the above copyright
  1165  //    notice, this list of conditions and the following disclaimer.
  1166  // 2. Redistributions in binary form must reproduce the above copyright
  1167  //    notice, this list of conditions and the following disclaimer in the
  1168  //    documentation and/or other materials provided with the distribution.
  1169  // 3. All advertising materials mentioning features or use of this software
  1170  //    must display the following acknowledgement:
  1171  //	This product includes software developed by the University of
  1172  //	California, Berkeley and its contributors.
  1173  // 4. Neither the name of the University nor the names of its contributors
  1174  //    may be used to endorse or promote products derived from this software
  1175  //    without specific prior written permission.
  1176  //
  1177  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1178  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1179  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1180  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1181  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1182  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1183  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1184  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1185  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1186  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1187  // SUCH DAMAGE.
  1188  //
  1189  //	@(#)stdlib.h	8.5 (Berkeley) 5/19/95
  1190  
  1191  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  1192  //
  1193  // @APPLE_LICENSE_HEADER_START@
  1194  //
  1195  // This file contains Original Code and/or Modifications of Original Code
  1196  // as defined in and that are subject to the Apple Public Source License
  1197  // Version 2.0 (the 'License'). You may not use this file except in
  1198  // compliance with the License. Please obtain a copy of the License at
  1199  // http://www.opensource.apple.com/apsl/ and read it before using this
  1200  // file.
  1201  //
  1202  // The Original Code and all software distributed under the License are
  1203  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1204  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1205  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1206  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1207  // Please see the License for the specific language governing rights and
  1208  // limitations under the License.
  1209  //
  1210  // @APPLE_LICENSE_HEADER_END@
  1211  
  1212  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1213  //
  1214  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1215  //
  1216  // This file contains Original Code and/or Modifications of Original Code
  1217  // as defined in and that are subject to the Apple Public Source License
  1218  // Version 2.0 (the 'License'). You may not use this file except in
  1219  // compliance with the License. The rights granted to you under the License
  1220  // may not be used to create, or enable the creation or redistribution of,
  1221  // unlawful or unlicensed copies of an Apple operating system, or to
  1222  // circumvent, violate, or enable the circumvention or violation of, any
  1223  // terms of an Apple operating system software license agreement.
  1224  //
  1225  // Please obtain a copy of the License at
  1226  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1227  //
  1228  // The Original Code and all software distributed under the License are
  1229  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1230  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1231  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1232  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1233  // Please see the License for the specific language governing rights and
  1234  // limitations under the License.
  1235  //
  1236  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1237  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1238  // Copyright (c) 1991, 1993
  1239  //	The Regents of the University of California.  All rights reserved.
  1240  //
  1241  // This code is derived from software contributed to Berkeley by
  1242  // Berkeley Software Design, Inc.
  1243  //
  1244  // Redistribution and use in source and binary forms, with or without
  1245  // modification, are permitted provided that the following conditions
  1246  // are met:
  1247  // 1. Redistributions of source code must retain the above copyright
  1248  //    notice, this list of conditions and the following disclaimer.
  1249  // 2. Redistributions in binary form must reproduce the above copyright
  1250  //    notice, this list of conditions and the following disclaimer in the
  1251  //    documentation and/or other materials provided with the distribution.
  1252  // 3. All advertising materials mentioning features or use of this software
  1253  //    must display the following acknowledgement:
  1254  //	This product includes software developed by the University of
  1255  //	California, Berkeley and its contributors.
  1256  // 4. Neither the name of the University nor the names of its contributors
  1257  //    may be used to endorse or promote products derived from this software
  1258  //    without specific prior written permission.
  1259  //
  1260  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1261  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1262  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1263  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1264  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1265  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1266  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1267  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1268  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1269  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1270  // SUCH DAMAGE.
  1271  //
  1272  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1273  
  1274  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  1275  //
  1276  // @APPLE_LICENSE_HEADER_START@
  1277  //
  1278  // This file contains Original Code and/or Modifications of Original Code
  1279  // as defined in and that are subject to the Apple Public Source License
  1280  // Version 2.0 (the 'License'). You may not use this file except in
  1281  // compliance with the License. Please obtain a copy of the License at
  1282  // http://www.opensource.apple.com/apsl/ and read it before using this
  1283  // file.
  1284  //
  1285  // The Original Code and all software distributed under the License are
  1286  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1287  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1288  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1289  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1290  // Please see the License for the specific language governing rights and
  1291  // limitations under the License.
  1292  //
  1293  // @APPLE_LICENSE_HEADER_END@
  1294  
  1295  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  1296  //
  1297  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1298  //
  1299  // This file contains Original Code and/or Modifications of Original Code
  1300  // as defined in and that are subject to the Apple Public Source License
  1301  // Version 2.0 (the 'License'). You may not use this file except in
  1302  // compliance with the License. The rights granted to you under the License
  1303  // may not be used to create, or enable the creation or redistribution of,
  1304  // unlawful or unlicensed copies of an Apple operating system, or to
  1305  // circumvent, violate, or enable the circumvention or violation of, any
  1306  // terms of an Apple operating system software license agreement.
  1307  //
  1308  // Please obtain a copy of the License at
  1309  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1310  //
  1311  // The Original Code and all software distributed under the License are
  1312  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1313  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1314  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1315  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1316  // Please see the License for the specific language governing rights and
  1317  // limitations under the License.
  1318  //
  1319  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1320  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  1321  // Copyright (c) 1982, 1986, 1989, 1993, 1994
  1322  //	The Regents of the University of California.  All rights reserved.
  1323  //
  1324  // Redistribution and use in source and binary forms, with or without
  1325  // modification, are permitted provided that the following conditions
  1326  // are met:
  1327  // 1. Redistributions of source code must retain the above copyright
  1328  //    notice, this list of conditions and the following disclaimer.
  1329  // 2. Redistributions in binary form must reproduce the above copyright
  1330  //    notice, this list of conditions and the following disclaimer in the
  1331  //    documentation and/or other materials provided with the distribution.
  1332  // 3. All advertising materials mentioning features or use of this software
  1333  //    must display the following acknowledgement:
  1334  //	This product includes software developed by the University of
  1335  //	California, Berkeley and its contributors.
  1336  // 4. Neither the name of the University nor the names of its contributors
  1337  //    may be used to endorse or promote products derived from this software
  1338  //    without specific prior written permission.
  1339  //
  1340  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1341  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1342  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1343  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1344  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1345  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1346  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1347  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1348  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1349  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1350  // SUCH DAMAGE.
  1351  //
  1352  //	@(#)wait.h	8.2 (Berkeley) 7/10/94
  1353  
  1354  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1355  //
  1356  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1357  //
  1358  // This file contains Original Code and/or Modifications of Original Code
  1359  // as defined in and that are subject to the Apple Public Source License
  1360  // Version 2.0 (the 'License'). You may not use this file except in
  1361  // compliance with the License. The rights granted to you under the License
  1362  // may not be used to create, or enable the creation or redistribution of,
  1363  // unlawful or unlicensed copies of an Apple operating system, or to
  1364  // circumvent, violate, or enable the circumvention or violation of, any
  1365  // terms of an Apple operating system software license agreement.
  1366  //
  1367  // Please obtain a copy of the License at
  1368  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1369  //
  1370  // The Original Code and all software distributed under the License are
  1371  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1372  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1373  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1374  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1375  // Please see the License for the specific language governing rights and
  1376  // limitations under the License.
  1377  //
  1378  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1379  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1380  // Copyright (c) 1991, 1993
  1381  //	The Regents of the University of California.  All rights reserved.
  1382  //
  1383  // This code is derived from software contributed to Berkeley by
  1384  // Berkeley Software Design, Inc.
  1385  //
  1386  // Redistribution and use in source and binary forms, with or without
  1387  // modification, are permitted provided that the following conditions
  1388  // are met:
  1389  // 1. Redistributions of source code must retain the above copyright
  1390  //    notice, this list of conditions and the following disclaimer.
  1391  // 2. Redistributions in binary form must reproduce the above copyright
  1392  //    notice, this list of conditions and the following disclaimer in the
  1393  //    documentation and/or other materials provided with the distribution.
  1394  // 3. All advertising materials mentioning features or use of this software
  1395  //    must display the following acknowledgement:
  1396  //	This product includes software developed by the University of
  1397  //	California, Berkeley and its contributors.
  1398  // 4. Neither the name of the University nor the names of its contributors
  1399  //    may be used to endorse or promote products derived from this software
  1400  //    without specific prior written permission.
  1401  //
  1402  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1403  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1404  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1405  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1406  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1407  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1408  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1409  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1410  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1411  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1412  // SUCH DAMAGE.
  1413  //
  1414  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1415  
  1416  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1417  //
  1418  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1419  //
  1420  // This file contains Original Code and/or Modifications of Original Code
  1421  // as defined in and that are subject to the Apple Public Source License
  1422  // Version 2.0 (the 'License'). You may not use this file except in
  1423  // compliance with the License. The rights granted to you under the License
  1424  // may not be used to create, or enable the creation or redistribution of,
  1425  // unlawful or unlicensed copies of an Apple operating system, or to
  1426  // circumvent, violate, or enable the circumvention or violation of, any
  1427  // terms of an Apple operating system software license agreement.
  1428  //
  1429  // Please obtain a copy of the License at
  1430  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1431  //
  1432  // The Original Code and all software distributed under the License are
  1433  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1434  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1435  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1436  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1437  // Please see the License for the specific language governing rights and
  1438  // limitations under the License.
  1439  //
  1440  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1441  
  1442  // This file holds definitions relevent to the wait4 system call
  1443  // and the alternate interfaces that use it (wait, wait3, waitpid).
  1444  
  1445  // [XSI] The type idtype_t shall be defined as an enumeration type whose
  1446  // possible values shall include at least P_ALL, P_PID, and P_PGID.
  1447  const ( /* wait.h:79:1: */
  1448  	P_ALL  = 0
  1449  	P_PID  = 1
  1450  	P_PGID = 2
  1451  )
  1452  
  1453  const ( /* time.h:153:1: */
  1454  	X_CLOCK_REALTIME             = 0
  1455  	X_CLOCK_MONOTONIC            = 6
  1456  	X_CLOCK_MONOTONIC_RAW        = 4
  1457  	X_CLOCK_MONOTONIC_RAW_APPROX = 5
  1458  	X_CLOCK_UPTIME_RAW           = 8
  1459  	X_CLOCK_UPTIME_RAW_APPROX    = 9
  1460  	X_CLOCK_PROCESS_CPUTIME_ID   = 12
  1461  	X_CLOCK_THREAD_CPUTIME_ID    = 16
  1462  )
  1463  
  1464  type Ptrdiff_t = int64 /* <builtin>:3:26 */
  1465  
  1466  type Size_t = uint64 /* <builtin>:9:23 */
  1467  
  1468  type Wchar_t = int32 /* <builtin>:15:24 */
  1469  
  1470  type X__int128_t = struct {
  1471  	Flo int64
  1472  	Fhi int64
  1473  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  1474  type X__uint128_t = struct {
  1475  	Flo uint64
  1476  	Fhi uint64
  1477  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  1478  
  1479  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  1480  type X__float128 = float64        /* <builtin>:47:21 */
  1481  
  1482  //
  1483  //
  1484  // Copyright 1988, 1998  The Open Group
  1485  //
  1486  // Permission to use, copy, modify, distribute, and sell this software and its
  1487  // documentation for any purpose is hereby granted without fee, provided that
  1488  // the above copyright notice appear in all copies and that both that
  1489  // copyright notice and this permission notice appear in supporting
  1490  // documentation.
  1491  //
  1492  // The above copyright notice and this permission notice shall be included in
  1493  // all copies or substantial portions of the Software.
  1494  //
  1495  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1496  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1497  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  1498  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  1499  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  1500  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  1501  //
  1502  // Except as contained in this notice, the name of The Open Group shall not be
  1503  // used in advertising or otherwise to promote the sale, use or other dealings
  1504  // in this Software without prior written authorization from The Open Group.
  1505  //
  1506  
  1507  // config.h.  Generated from config.h.in by configure.
  1508  // config.h.in.  Generated from configure.ac by autoheader.
  1509  
  1510  // Define to 1 if you have the <dlfcn.h> header file.
  1511  
  1512  // Define to 1 if you have the <inttypes.h> header file.
  1513  
  1514  // Define to 1 if you have the <memory.h> header file.
  1515  
  1516  // Define to 1 if you have the `pathconf' function.
  1517  
  1518  // Define to 1 if you have the <stdint.h> header file.
  1519  
  1520  // Define to 1 if you have the <stdlib.h> header file.
  1521  
  1522  // Define to 1 if you have the <strings.h> header file.
  1523  
  1524  // Define to 1 if you have the <string.h> header file.
  1525  
  1526  // Define to 1 if you have the <sys/stat.h> header file.
  1527  
  1528  // Define to 1 if you have the <sys/types.h> header file.
  1529  
  1530  // Define to 1 if you have the <unistd.h> header file.
  1531  
  1532  // Define to the sub-directory where libtool stores uninstalled libraries.
  1533  
  1534  // Name of package
  1535  
  1536  // Define to the address where bug reports for this package should be sent.
  1537  
  1538  // Define to the full name of this package.
  1539  
  1540  // Define to the full name and version of this package.
  1541  
  1542  // Define to the one symbol short name of this package.
  1543  
  1544  // Define to the home page for this package.
  1545  
  1546  // Define to the version of this package.
  1547  
  1548  // Major version of this package
  1549  
  1550  // Minor version of this package
  1551  
  1552  // Patch version of this package
  1553  
  1554  // Define to 1 if you have the ANSI C header files.
  1555  
  1556  // Enable extensions on AIX 3, Interix.
  1557  // Enable GNU extensions on systems that have them.
  1558  // Enable threading extensions on Solaris.
  1559  // Enable extensions on HP NonStop.
  1560  // Enable general extensions on Solaris.
  1561  
  1562  // Version number of package
  1563  
  1564  // Whether libXau is compiled with thread support
  1565  // #undef XTHREADS
  1566  
  1567  // Whether libXau needs to use MT safe API's
  1568  // #undef XUSE_MTSAFE_API
  1569  
  1570  // Define to 1 if on MINIX.
  1571  // #undef _MINIX
  1572  
  1573  // Define to 2 if the system does not provide POSIX.1 features except with
  1574  //    this defined.
  1575  // #undef _POSIX_1_SOURCE
  1576  
  1577  // Define to 1 if you need to in order for `stat' and other things to work.
  1578  // #undef _POSIX_SOURCE
  1579  //
  1580  //
  1581  // Copyright 1988, 1998  The Open Group
  1582  //
  1583  // Permission to use, copy, modify, distribute, and sell this software and its
  1584  // documentation for any purpose is hereby granted without fee, provided that
  1585  // the above copyright notice appear in all copies and that both that
  1586  // copyright notice and this permission notice appear in supporting
  1587  // documentation.
  1588  //
  1589  // The above copyright notice and this permission notice shall be included in
  1590  // all copies or substantial portions of the Software.
  1591  //
  1592  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1593  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1594  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  1595  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  1596  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  1597  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  1598  //
  1599  // Except as contained in this notice, the name of The Open Group shall not be
  1600  // used in advertising or otherwise to promote the sale, use or other dealings
  1601  // in this Software without prior written authorization from The Open Group.
  1602  //
  1603  
  1604  // struct xauth is full of implicit padding to properly align the pointers
  1605  //    after the length fields.   We can't clean that up without breaking ABI,
  1606  //    so tell clang not to bother complaining about it.
  1607  
  1608  type Xauth1 = struct {
  1609  	Ffamily         uint16
  1610  	Faddress_length uint16
  1611  	F__ccgo_pad1    [4]byte
  1612  	Faddress        uintptr
  1613  	Fnumber_length  uint16
  1614  	F__ccgo_pad2    [6]byte
  1615  	Fnumber         uintptr
  1616  	Fname_length    uint16
  1617  	F__ccgo_pad3    [6]byte
  1618  	Fname           uintptr
  1619  	Fdata_length    uint16
  1620  	F__ccgo_pad4    [6]byte
  1621  	Fdata           uintptr
  1622  } /* Xauth.h:38:9 */
  1623  
  1624  //
  1625  //
  1626  // Copyright 1988, 1998  The Open Group
  1627  //
  1628  // Permission to use, copy, modify, distribute, and sell this software and its
  1629  // documentation for any purpose is hereby granted without fee, provided that
  1630  // the above copyright notice appear in all copies and that both that
  1631  // copyright notice and this permission notice appear in supporting
  1632  // documentation.
  1633  //
  1634  // The above copyright notice and this permission notice shall be included in
  1635  // all copies or substantial portions of the Software.
  1636  //
  1637  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1638  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1639  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  1640  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  1641  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  1642  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  1643  //
  1644  // Except as contained in this notice, the name of The Open Group shall not be
  1645  // used in advertising or otherwise to promote the sale, use or other dealings
  1646  // in this Software without prior written authorization from The Open Group.
  1647  //
  1648  
  1649  // config.h.  Generated from config.h.in by configure.
  1650  // config.h.in.  Generated from configure.ac by autoheader.
  1651  
  1652  // Define to 1 if you have the <dlfcn.h> header file.
  1653  
  1654  // Define to 1 if you have the <inttypes.h> header file.
  1655  
  1656  // Define to 1 if you have the <memory.h> header file.
  1657  
  1658  // Define to 1 if you have the `pathconf' function.
  1659  
  1660  // Define to 1 if you have the <stdint.h> header file.
  1661  
  1662  // Define to 1 if you have the <stdlib.h> header file.
  1663  
  1664  // Define to 1 if you have the <strings.h> header file.
  1665  
  1666  // Define to 1 if you have the <string.h> header file.
  1667  
  1668  // Define to 1 if you have the <sys/stat.h> header file.
  1669  
  1670  // Define to 1 if you have the <sys/types.h> header file.
  1671  
  1672  // Define to 1 if you have the <unistd.h> header file.
  1673  
  1674  // Define to the sub-directory where libtool stores uninstalled libraries.
  1675  
  1676  // Name of package
  1677  
  1678  // Define to the address where bug reports for this package should be sent.
  1679  
  1680  // Define to the full name of this package.
  1681  
  1682  // Define to the full name and version of this package.
  1683  
  1684  // Define to the one symbol short name of this package.
  1685  
  1686  // Define to the home page for this package.
  1687  
  1688  // Define to the version of this package.
  1689  
  1690  // Major version of this package
  1691  
  1692  // Minor version of this package
  1693  
  1694  // Patch version of this package
  1695  
  1696  // Define to 1 if you have the ANSI C header files.
  1697  
  1698  // Enable extensions on AIX 3, Interix.
  1699  // Enable GNU extensions on systems that have them.
  1700  // Enable threading extensions on Solaris.
  1701  // Enable extensions on HP NonStop.
  1702  // Enable general extensions on Solaris.
  1703  
  1704  // Version number of package
  1705  
  1706  // Whether libXau is compiled with thread support
  1707  // #undef XTHREADS
  1708  
  1709  // Whether libXau needs to use MT safe API's
  1710  // #undef XUSE_MTSAFE_API
  1711  
  1712  // Define to 1 if on MINIX.
  1713  // #undef _MINIX
  1714  
  1715  // Define to 2 if the system does not provide POSIX.1 features except with
  1716  //    this defined.
  1717  // #undef _POSIX_1_SOURCE
  1718  
  1719  // Define to 1 if you need to in order for `stat' and other things to work.
  1720  // #undef _POSIX_SOURCE
  1721  //
  1722  //
  1723  // Copyright 1988, 1998  The Open Group
  1724  //
  1725  // Permission to use, copy, modify, distribute, and sell this software and its
  1726  // documentation for any purpose is hereby granted without fee, provided that
  1727  // the above copyright notice appear in all copies and that both that
  1728  // copyright notice and this permission notice appear in supporting
  1729  // documentation.
  1730  //
  1731  // The above copyright notice and this permission notice shall be included in
  1732  // all copies or substantial portions of the Software.
  1733  //
  1734  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1735  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1736  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  1737  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  1738  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  1739  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  1740  //
  1741  // Except as contained in this notice, the name of The Open Group shall not be
  1742  // used in advertising or otherwise to promote the sale, use or other dealings
  1743  // in this Software without prior written authorization from The Open Group.
  1744  //
  1745  
  1746  // struct xauth is full of implicit padding to properly align the pointers
  1747  //    after the length fields.   We can't clean that up without breaking ABI,
  1748  //    so tell clang not to bother complaining about it.
  1749  
  1750  type Xauth = Xauth1 /* Xauth.h:48:3 */
  1751  
  1752  //
  1753  //
  1754  // Copyright 1989, 1991, 1998  The Open Group
  1755  //
  1756  // Permission to use, copy, modify, distribute, and sell this software and its
  1757  // documentation for any purpose is hereby granted without fee, provided that
  1758  // the above copyright notice appear in all copies and that both that
  1759  // copyright notice and this permission notice appear in supporting
  1760  // documentation.
  1761  //
  1762  // The above copyright notice and this permission notice shall be included in
  1763  // all copies or substantial portions of the Software.
  1764  //
  1765  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1766  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1767  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  1768  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  1769  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  1770  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  1771  //
  1772  // Except as contained in this notice, the name of The Open Group shall not be
  1773  // used in advertising or otherwise to promote the sale, use or other dealings
  1774  // in this Software without prior written authorization from The Open Group.
  1775  //  *
  1776  //
  1777  
  1778  // Definitions to make function prototypes manageable
  1779  
  1780  // Function prototype configuration (see configure for more info)
  1781  
  1782  // http://clang.llvm.org/docs/LanguageExtensions.html#has-attribute
  1783  
  1784  // Added in X11R6.9, so available in any version of modular xproto
  1785  
  1786  // Added in X11R6.9, so available in any version of modular xproto
  1787  
  1788  // Branch prediction hints for individual conditionals
  1789  // requires xproto >= 7.0.9
  1790  
  1791  // Bulk branch prediction hints via marking error path functions as "cold"
  1792  // requires xproto >= 7.0.25
  1793  
  1794  // Added in X11R6.9, so available in any version of modular xproto
  1795  
  1796  // requires xproto >= 7.0.30
  1797  
  1798  // requires xproto >= 7.0.17
  1799  
  1800  // Added in X11R6.9, so available in any version of modular xproto
  1801  
  1802  // requires xproto >= 7.0.22 - since this uses either gcc or C99 variable
  1803  //    argument macros, must be only used inside #ifdef _X_NONNULL guards, as
  1804  //    many legacy X clients are compiled in C89 mode still.
  1805  
  1806  // requires xproto >= 7.0.22
  1807  
  1808  // C99 keyword "inline" or equivalent extensions in pre-C99 compilers
  1809  // requires xproto >= 7.0.9
  1810  //    (introduced in 7.0.8 but didn't support all compilers until 7.0.9)
  1811  
  1812  // C99 keyword "restrict" or equivalent extensions in pre-C99 compilers
  1813  // requires xproto >= 7.0.21
  1814  
  1815  // requires xproto >= 7.0.30
  1816  
  1817  // Mark a char array/pointer as not containing a NUL-terminated string
  1818  // requires xproto >= 7.0.33
  1819  
  1820  //
  1821  //
  1822  // Copyright 1990, 1998  The Open Group
  1823  //
  1824  // Permission to use, copy, modify, distribute, and sell this software and its
  1825  // documentation for any purpose is hereby granted without fee, provided that
  1826  // the above copyright notice appear in all copies and that both that
  1827  // copyright notice and this permission notice appear in supporting
  1828  // documentation.
  1829  //
  1830  // The above copyright notice and this permission notice shall be included in
  1831  // all copies or substantial portions of the Software.
  1832  //
  1833  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1834  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1835  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  1836  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  1837  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  1838  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  1839  //
  1840  // Except as contained in this notice, the name of The Open Group shall not be
  1841  // used in advertising or otherwise to promote the sale, use or other dealings
  1842  // in this Software without prior written authorization from The Open Group.
  1843  //  *
  1844  //
  1845  
  1846  //
  1847  //  O/S-dependent (mis)feature macro definitions
  1848  //
  1849  // Copyright 1991, 1998  The Open Group
  1850  //
  1851  // Permission to use, copy, modify, distribute, and sell this software and its
  1852  // documentation for any purpose is hereby granted without fee, provided that
  1853  // the above copyright notice appear in all copies and that both that
  1854  // copyright notice and this permission notice appear in supporting
  1855  // documentation.
  1856  //
  1857  // The above copyright notice and this permission notice shall be included in
  1858  // all copies or substantial portions of the Software.
  1859  //
  1860  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1861  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1862  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  1863  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  1864  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  1865  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  1866  //
  1867  // Except as contained in this notice, the name of The Open Group shall not be
  1868  // used in advertising or otherwise to promote the sale, use or other dealings
  1869  // in this Software without prior written authorization from The Open Group.
  1870  //
  1871  
  1872  // X_NOT_POSIX means does not have POSIX header files.  Lack of this
  1873  // symbol does NOT mean that the POSIX environment is the default.
  1874  // You may still have to define _POSIX_SOURCE to get it.
  1875  
  1876  // Defining any of these will sanitize the namespace to JUST want is defined by
  1877  // that particular standard.  If that happens, we don't get some expected
  1878  // prototypes, typedefs, etc (like fd_mask).  We can define _DARWIN_C_SOURCE to
  1879  // loosen our belts a tad.
  1880  
  1881  // the old Xfuncs.h, for pre-R6
  1882  
  1883  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
  1884  //
  1885  // @APPLE_LICENSE_HEADER_START@
  1886  //
  1887  // This file contains Original Code and/or Modifications of Original Code
  1888  // as defined in and that are subject to the Apple Public Source License
  1889  // Version 2.0 (the 'License'). You may not use this file except in
  1890  // compliance with the License. Please obtain a copy of the License at
  1891  // http://www.opensource.apple.com/apsl/ and read it before using this
  1892  // file.
  1893  //
  1894  // The Original Code and all software distributed under the License are
  1895  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1896  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1897  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1898  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1899  // Please see the License for the specific language governing rights and
  1900  // limitations under the License.
  1901  //
  1902  // @APPLE_LICENSE_HEADER_END@
  1903  // -
  1904  // Copyright (c) 1990, 1993
  1905  //	The Regents of the University of California.  All rights reserved.
  1906  //
  1907  // Redistribution and use in source and binary forms, with or without
  1908  // modification, are permitted provided that the following conditions
  1909  // are met:
  1910  // 1. Redistributions of source code must retain the above copyright
  1911  //    notice, this list of conditions and the following disclaimer.
  1912  // 2. Redistributions in binary form must reproduce the above copyright
  1913  //    notice, this list of conditions and the following disclaimer in the
  1914  //    documentation and/or other materials provided with the distribution.
  1915  // 3. All advertising materials mentioning features or use of this software
  1916  //    must display the following acknowledgement:
  1917  //	This product includes software developed by the University of
  1918  //	California, Berkeley and its contributors.
  1919  // 4. Neither the name of the University nor the names of its contributors
  1920  //    may be used to endorse or promote products derived from this software
  1921  //    without specific prior written permission.
  1922  //
  1923  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1924  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1925  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1926  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1927  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1928  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1929  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1930  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1931  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1932  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1933  // SUCH DAMAGE.
  1934  //
  1935  //	@(#)string.h	8.1 (Berkeley) 6/2/93
  1936  
  1937  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  1938  //
  1939  // @APPLE_LICENSE_HEADER_START@
  1940  //
  1941  // This file contains Original Code and/or Modifications of Original Code
  1942  // as defined in and that are subject to the Apple Public Source License
  1943  // Version 2.0 (the 'License'). You may not use this file except in
  1944  // compliance with the License. Please obtain a copy of the License at
  1945  // http://www.opensource.apple.com/apsl/ and read it before using this
  1946  // file.
  1947  //
  1948  // The Original Code and all software distributed under the License are
  1949  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1950  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1951  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1952  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1953  // Please see the License for the specific language governing rights and
  1954  // limitations under the License.
  1955  //
  1956  // @APPLE_LICENSE_HEADER_END@
  1957  
  1958  // Copyright (c) 2003-2007 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  
  1984  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1985  //
  1986  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1987  //
  1988  // This file contains Original Code and/or Modifications of Original Code
  1989  // as defined in and that are subject to the Apple Public Source License
  1990  // Version 2.0 (the 'License'). You may not use this file except in
  1991  // compliance with the License. The rights granted to you under the License
  1992  // may not be used to create, or enable the creation or redistribution of,
  1993  // unlawful or unlicensed copies of an Apple operating system, or to
  1994  // circumvent, violate, or enable the circumvention or violation of, any
  1995  // terms of an Apple operating system software license agreement.
  1996  //
  1997  // Please obtain a copy of the License at
  1998  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1999  //
  2000  // The Original Code and all software distributed under the License are
  2001  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2002  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2003  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2004  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2005  // Please see the License for the specific language governing rights and
  2006  // limitations under the License.
  2007  //
  2008  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2009  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2010  // Copyright (c) 1991, 1993
  2011  //	The Regents of the University of California.  All rights reserved.
  2012  //
  2013  // This code is derived from software contributed to Berkeley by
  2014  // Berkeley Software Design, Inc.
  2015  //
  2016  // Redistribution and use in source and binary forms, with or without
  2017  // modification, are permitted provided that the following conditions
  2018  // are met:
  2019  // 1. Redistributions of source code must retain the above copyright
  2020  //    notice, this list of conditions and the following disclaimer.
  2021  // 2. Redistributions in binary form must reproduce the above copyright
  2022  //    notice, this list of conditions and the following disclaimer in the
  2023  //    documentation and/or other materials provided with the distribution.
  2024  // 3. All advertising materials mentioning features or use of this software
  2025  //    must display the following acknowledgement:
  2026  //	This product includes software developed by the University of
  2027  //	California, Berkeley and its contributors.
  2028  // 4. Neither the name of the University nor the names of its contributors
  2029  //    may be used to endorse or promote products derived from this software
  2030  //    without specific prior written permission.
  2031  //
  2032  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2033  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2034  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2035  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2036  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2037  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2038  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2039  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2040  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2041  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2042  // SUCH DAMAGE.
  2043  //
  2044  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2045  
  2046  // This SDK is designed to work with clang and specific versions of
  2047  // gcc >= 4.0 with Apple's patch sets
  2048  
  2049  // Compatibility with compilers and environments that don't support compiler
  2050  // feature checking function-like macros.
  2051  
  2052  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  2053  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  2054  // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  2055  // in between its arguments.  __CONCAT can also concatenate double-quoted
  2056  // strings produced by the __STRING macro, but this only works with ANSI C.
  2057  
  2058  // __pure2 can be used for functions that are only a function of their scalar
  2059  // arguments (meaning they can't dereference pointers).
  2060  //
  2061  // __stateful_pure can be used for functions that have no side effects,
  2062  // but depend on the state of the memory.
  2063  
  2064  // __unused denotes variables and functions that may not be used, preventing
  2065  // the compiler from warning about it if not used.
  2066  
  2067  // __used forces variables and functions to be included even if it appears
  2068  // to the compiler that they are not used (and would thust be discarded).
  2069  
  2070  // __cold marks code used for debugging or that is rarely taken
  2071  // and tells the compiler to optimize for size and outline code.
  2072  
  2073  // __exported denotes symbols that should be exported even when symbols
  2074  // are hidden by default.
  2075  // __exported_push/_exported_pop are pragmas used to delimit a range of
  2076  //  symbols that should be exported even when symbols are hidden by default.
  2077  
  2078  // __deprecated causes the compiler to produce a warning when encountering
  2079  // code using the deprecated functionality.
  2080  // __deprecated_msg() does the same, and compilers that support it will print
  2081  // a message along with the deprecation warning.
  2082  // This may require turning on such warning with the -Wdeprecated flag.
  2083  // __deprecated_enum_msg() should be used on enums, and compilers that support
  2084  // it will print the deprecation warning.
  2085  // __kpi_deprecated() specifically indicates deprecation of kernel programming
  2086  // interfaces in Kernel.framework used by KEXTs.
  2087  
  2088  // __unavailable causes the compiler to error out when encountering
  2089  // code using the tagged function
  2090  
  2091  // Delete pseudo-keywords wherever they are not available or needed.
  2092  
  2093  // We use `__restrict' as a way to define the `restrict' type qualifier
  2094  // without disturbing older software that is unaware of C99 keywords.
  2095  
  2096  // Compatibility with compilers and environments that don't support the
  2097  // nullability feature.
  2098  
  2099  // __disable_tail_calls causes the compiler to not perform tail call
  2100  // optimization inside the marked function.
  2101  
  2102  // __not_tail_called causes the compiler to prevent tail call optimization
  2103  // on statically bound calls to the function.  It has no effect on indirect
  2104  // calls.  Virtual functions, objective-c methods, and functions marked as
  2105  // "always_inline" cannot be marked as __not_tail_called.
  2106  
  2107  // __result_use_check warns callers of a function that not using the function
  2108  // return value is a bug, i.e. dismissing malloc() return value results in a
  2109  // memory leak.
  2110  
  2111  // __swift_unavailable causes the compiler to mark a symbol as specifically
  2112  // unavailable in Swift, regardless of any other availability in C.
  2113  
  2114  // __abortlike is the attribute to put on functions like abort() that are
  2115  // typically used to mark assertions. These optimize the codegen
  2116  // for outlining while still maintaining debugability.
  2117  
  2118  // Declaring inline functions within headers is error-prone due to differences
  2119  // across various versions of the C language and extensions.  __header_inline
  2120  // can be used to declare inline functions within system headers.  In cases
  2121  // where you want to force inlining instead of letting the compiler make
  2122  // the decision, you can use __header_always_inline.
  2123  //
  2124  // Be aware that using inline for functions which compilers may also provide
  2125  // builtins can behave differently under various compilers.  If you intend to
  2126  // provide an inline version of such a function, you may want to use a macro
  2127  // instead.
  2128  //
  2129  // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  2130  // support c99 inline in some cases:
  2131  // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  2132  
  2133  // Compiler-dependent macros that bracket portions of code where the
  2134  // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  2135  
  2136  // Compiler-dependent macros to declare that functions take printf-like
  2137  // or scanf-like arguments.  They are null except for versions of gcc
  2138  // that are known to support the features properly.  Functions declared
  2139  // with these attributes will cause compilation warnings if there is a
  2140  // mismatch between the format string and subsequent function parameter
  2141  // types.
  2142  
  2143  // Source compatibility only, ID string not emitted in object file
  2144  
  2145  // __alloc_size can be used to label function arguments that represent the
  2146  // size of memory that the function allocates and returns. The one-argument
  2147  // form labels a single argument that gives the allocation size (where the
  2148  // arguments are numbered from 1):
  2149  //
  2150  // void	*malloc(size_t __size) __alloc_size(1);
  2151  //
  2152  // The two-argument form handles the case where the size is calculated as the
  2153  // product of two arguments:
  2154  //
  2155  // void	*calloc(size_t __count, size_t __size) __alloc_size(1,2);
  2156  
  2157  // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  2158  //
  2159  // DEFAULT	By default newly complied code will get POSIX APIs plus
  2160  //		Apple API extensions in scope.
  2161  //
  2162  //		Most users will use this compilation environment to avoid
  2163  //		behavioral differences between 32 and 64 bit code.
  2164  //
  2165  // LEGACY	Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  2166  //		API extensions in scope.
  2167  //
  2168  //		This is generally equivalent to the Tiger release compilation
  2169  //		environment, except that it cannot be applied to 64 bit code;
  2170  //		its use is discouraged.
  2171  //
  2172  //		We expect this environment to be deprecated in the future.
  2173  //
  2174  // STRICT	Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  2175  //		available APIs to exactly the set of APIs defined by the
  2176  //		corresponding standard, based on the value defined.
  2177  //
  2178  //		A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  2179  //		A correct, portable definition for _XOPEN_SOURCE is 600L.
  2180  //
  2181  //		Apple API extensions are not visible in this environment,
  2182  //		which can cause Apple specific code to fail to compile,
  2183  //		or behave incorrectly if prototypes are not in scope or
  2184  //		warnings about missing prototypes are not enabled or ignored.
  2185  //
  2186  // In any compilation environment, for correct symbol resolution to occur,
  2187  // function prototypes must be in scope.  It is recommended that all Apple
  2188  // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  2189  // compiler flags to their projects to be warned when a function is being
  2190  // used without a prototype in scope.
  2191  
  2192  // These settings are particular to each product.
  2193  // Platform: MacOSX
  2194  
  2195  // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  2196  // legacy code to use the old symbol, thus maintaining binary compatibility
  2197  // while new code can use a standards compliant version of the same function.
  2198  //
  2199  // __DARWIN_ALIAS is used by itself if the function signature has not
  2200  // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  2201  // if the signature has changed.  Because the __LP64__ environment
  2202  // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  2203  // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  2204  //
  2205  // As a special case, when XCode is used to target a specific version of the
  2206  // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  2207  // will be defined by the compiler, with the digits representing major version
  2208  // time 100 + minor version times 10 (e.g. 10.5 := 1050).  If we are targeting
  2209  // pre-10.5, and it is the default compilation environment, revert the
  2210  // compilation environment to pre-__DARWIN_UNIX03.
  2211  
  2212  // symbol suffixes used for symbol versioning
  2213  
  2214  // symbol versioning macros
  2215  
  2216  // symbol release macros
  2217  // Copyright (c) 2010 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  // POSIX.1 requires that the macros we test be defined before any standard
  2244  // header file is included.  This permits us to convert values for feature
  2245  // testing, as necessary, using only _POSIX_C_SOURCE.
  2246  //
  2247  // Here's a quick run-down of the versions:
  2248  //  defined(_POSIX_SOURCE)		1003.1-1988
  2249  //  _POSIX_C_SOURCE == 1L		1003.1-1990
  2250  //  _POSIX_C_SOURCE == 2L		1003.2-1992 C Language Binding Option
  2251  //  _POSIX_C_SOURCE == 199309L		1003.1b-1993
  2252  //  _POSIX_C_SOURCE == 199506L		1003.1c-1995, 1003.1i-1995,
  2253  //					and the omnibus ISO/IEC 9945-1: 1996
  2254  //  _POSIX_C_SOURCE == 200112L		1003.1-2001
  2255  //  _POSIX_C_SOURCE == 200809L		1003.1-2008
  2256  //
  2257  // In addition, the X/Open Portability Guide, which is now the Single UNIX
  2258  // Specification, defines a feature-test macro which indicates the version of
  2259  // that specification, and which subsumes _POSIX_C_SOURCE.
  2260  
  2261  // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  2262  
  2263  // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  2264  
  2265  // Deal with various X/Open Portability Guides and Single UNIX Spec.
  2266  
  2267  // Deal with all versions of POSIX.  The ordering relative to the tests above is
  2268  // important.
  2269  
  2270  // POSIX C deprecation macros
  2271  // Copyright (c) 2010 Apple Inc. All rights reserved.
  2272  //
  2273  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2274  //
  2275  // This file contains Original Code and/or Modifications of Original Code
  2276  // as defined in and that are subject to the Apple Public Source License
  2277  // Version 2.0 (the 'License'). You may not use this file except in
  2278  // compliance with the License. The rights granted to you under the License
  2279  // may not be used to create, or enable the creation or redistribution of,
  2280  // unlawful or unlicensed copies of an Apple operating system, or to
  2281  // circumvent, violate, or enable the circumvention or violation of, any
  2282  // terms of an Apple operating system software license agreement.
  2283  //
  2284  // Please obtain a copy of the License at
  2285  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2286  //
  2287  // The Original Code and all software distributed under the License are
  2288  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2289  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2290  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2291  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2292  // Please see the License for the specific language governing rights and
  2293  // limitations under the License.
  2294  //
  2295  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2296  
  2297  // Set a single macro which will always be defined and can be used to determine
  2298  // the appropriate namespace.  For POSIX, these values will correspond to
  2299  // _POSIX_C_SOURCE value.  Currently there are two additional levels corresponding
  2300  // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  2301  
  2302  // If the developer has neither requested a strict language mode nor a version
  2303  // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  2304  // of __DARWIN_C_FULL.
  2305  
  2306  // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  2307  // c99 still want long longs.  While not perfect, we allow long longs for
  2308  // g++.
  2309  
  2310  // ****************************************
  2311  //
  2312  //  Public darwin-specific feature macros
  2313  //
  2314  
  2315  // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  2316  // structures modified for 64-bit inodes (like struct stat) will be used.
  2317  
  2318  // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  2319  // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  2320  // (and non-zero).  There is no struct stat64 either, as the regular
  2321  // struct stat will already be the 64-bit version.
  2322  
  2323  // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  2324  // in 10.5 exists; no pre-10.5 variants are available.
  2325  
  2326  // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  2327  // are available (the legacy BSD APIs are not available)
  2328  
  2329  // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  2330  // and specifies the conformance level (3 is SUSv3)
  2331  
  2332  // This macro casts away the qualifier from the variable
  2333  //
  2334  // Note: use at your own risk, removing qualifiers can result in
  2335  // catastrophic run-time failures.
  2336  
  2337  // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  2338  // used from other compilation units, but not other libraries or executables.
  2339  
  2340  // Architecture validation for current SDK
  2341  
  2342  // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  2343  //
  2344  // This provides more advanced type checking on compilers supporting
  2345  // the proper extensions, even in C.
  2346  
  2347  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2348  //
  2349  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2350  //
  2351  // This file contains Original Code and/or Modifications of Original Code
  2352  // as defined in and that are subject to the Apple Public Source License
  2353  // Version 2.0 (the 'License'). You may not use this file except in
  2354  // compliance with the License. The rights granted to you under the License
  2355  // may not be used to create, or enable the creation or redistribution of,
  2356  // unlawful or unlicensed copies of an Apple operating system, or to
  2357  // circumvent, violate, or enable the circumvention or violation of, any
  2358  // terms of an Apple operating system software license agreement.
  2359  //
  2360  // Please obtain a copy of the License at
  2361  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2362  //
  2363  // The Original Code and all software distributed under the License are
  2364  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2365  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2366  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2367  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2368  // Please see the License for the specific language governing rights and
  2369  // limitations under the License.
  2370  //
  2371  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2372  
  2373  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2374  
  2375  // This header file contains integer types.  It's intended to also contain
  2376  // flotaing point and other arithmetic types, as needed, later.
  2377  
  2378  type X__int8_t = int8     /* _types.h:15:33 */
  2379  type X__uint8_t = uint8   /* _types.h:19:33 */
  2380  type X__int16_t = int16   /* _types.h:20:33 */
  2381  type X__uint16_t = uint16 /* _types.h:21:33 */
  2382  type X__int32_t = int32   /* _types.h:22:33 */
  2383  type X__uint32_t = uint32 /* _types.h:23:33 */
  2384  type X__int64_t = int64   /* _types.h:24:33 */
  2385  type X__uint64_t = uint64 /* _types.h:25:33 */
  2386  
  2387  type X__darwin_intptr_t = int64   /* _types.h:27:33 */
  2388  type X__darwin_natural_t = uint32 /* _types.h:28:33 */
  2389  
  2390  // The rune type below is declared to be an ``int'' instead of the more natural
  2391  // ``unsigned long'' or ``long''.  Two things are happening here.  It is not
  2392  // unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,
  2393  // it looks like 10646 will be a 31 bit standard.  This means that if your
  2394  // ints cannot hold 32 bits, you will be in trouble.  The reason an int was
  2395  // chosen over a long is that the is*() and to*() routines take ints (says
  2396  // ANSI C), but they use __darwin_ct_rune_t instead of int.  By changing it
  2397  // here, you lose a bit of ANSI conformance, but your programs will still
  2398  // work.
  2399  //
  2400  // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  2401  // be instantiated outside of lib/libc/locale.  Use wchar_t.  wchar_t and
  2402  // rune_t must be the same type.  Also wint_t must be no narrower than
  2403  // wchar_t, and should also be able to hold all members of the largest
  2404  // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  2405  
  2406  type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
  2407  
  2408  // mbstate_t is an opaque object to keep conversion state, during multibyte
  2409  // stream conversions.  The content must not be referenced by user programs.
  2410  type X__mbstate_t = struct {
  2411  	F__ccgo_pad1 [0]uint64
  2412  	F__mbstate8  [128]int8
  2413  } /* _types.h:57:3 */
  2414  
  2415  type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
  2416  
  2417  type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
  2418  
  2419  type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
  2420  
  2421  type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
  2422  
  2423  type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
  2424  
  2425  type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
  2426  
  2427  type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
  2428  
  2429  type X__darwin_clock_t = uint64        /* _types.h:95:33 */ // clock()
  2430  type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
  2431  type X__darwin_ssize_t = int64         /* _types.h:97:33 */ // byte count or error
  2432  type X__darwin_time_t = int64          /* _types.h:98:33 */ // time()
  2433  
  2434  // Type definitions; takes common type definitions that must be used
  2435  // in multiple header files due to [XSI], removes them from the system
  2436  // space, and puts them in the implementation space.
  2437  
  2438  type X__darwin_blkcnt_t = X__int64_t                    /* _types.h:55:25 */ // total blocks
  2439  type X__darwin_blksize_t = X__int32_t                   /* _types.h:56:25 */ // preferred block size
  2440  type X__darwin_dev_t = X__int32_t                       /* _types.h:57:25 */ // dev_t
  2441  type X__darwin_fsblkcnt_t = uint32                      /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  2442  type X__darwin_fsfilcnt_t = uint32                      /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  2443  type X__darwin_gid_t = X__uint32_t                      /* _types.h:60:25 */ // [???] process and group IDs
  2444  type X__darwin_id_t = X__uint32_t                       /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  2445  type X__darwin_ino64_t = X__uint64_t                    /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  2446  type X__darwin_ino_t = X__darwin_ino64_t                /* _types.h:64:26 */ // [???] Used for inodes
  2447  type X__darwin_mach_port_name_t = X__darwin_natural_t   /* _types.h:68:28 */ // Used by mach
  2448  type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  2449  type X__darwin_mode_t = X__uint16_t                     /* _types.h:70:25 */ // [???] Some file attributes
  2450  type X__darwin_off_t = X__int64_t                       /* _types.h:71:25 */ // [???] Used for file sizes
  2451  type X__darwin_pid_t = X__int32_t                       /* _types.h:72:25 */ // [???] process and group IDs
  2452  type X__darwin_sigset_t = X__uint32_t                   /* _types.h:73:25 */ // [???] signal set
  2453  type X__darwin_suseconds_t = X__int32_t                 /* _types.h:74:25 */ // [???] microseconds
  2454  type X__darwin_uid_t = X__uint32_t                      /* _types.h:75:25 */ // [???] user IDs
  2455  type X__darwin_useconds_t = X__uint32_t                 /* _types.h:76:25 */ // [???] microseconds
  2456  type X__darwin_uuid_t = [16]uint8                       /* _types.h:77:25 */
  2457  type X__darwin_uuid_string_t = [37]int8                 /* _types.h:78:17 */
  2458  
  2459  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  2460  //
  2461  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2462  //
  2463  // This file contains Original Code and/or Modifications of Original Code
  2464  // as defined in and that are subject to the Apple Public Source License
  2465  // Version 2.0 (the 'License'). You may not use this file except in
  2466  // compliance with the License. The rights granted to you under the License
  2467  // may not be used to create, or enable the creation or redistribution of,
  2468  // unlawful or unlicensed copies of an Apple operating system, or to
  2469  // circumvent, violate, or enable the circumvention or violation of, any
  2470  // terms of an Apple operating system software license agreement.
  2471  //
  2472  // Please obtain a copy of the License at
  2473  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2474  //
  2475  // The Original Code and all software distributed under the License are
  2476  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2477  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2478  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2479  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2480  // Please see the License for the specific language governing rights and
  2481  // limitations under the License.
  2482  //
  2483  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2484  
  2485  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2486  //
  2487  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2488  //
  2489  // This file contains Original Code and/or Modifications of Original Code
  2490  // as defined in and that are subject to the Apple Public Source License
  2491  // Version 2.0 (the 'License'). You may not use this file except in
  2492  // compliance with the License. The rights granted to you under the License
  2493  // may not be used to create, or enable the creation or redistribution of,
  2494  // unlawful or unlicensed copies of an Apple operating system, or to
  2495  // circumvent, violate, or enable the circumvention or violation of, any
  2496  // terms of an Apple operating system software license agreement.
  2497  //
  2498  // Please obtain a copy of the License at
  2499  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2500  //
  2501  // The Original Code and all software distributed under the License are
  2502  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2503  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2504  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2505  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2506  // Please see the License for the specific language governing rights and
  2507  // limitations under the License.
  2508  //
  2509  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2510  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2511  // Copyright (c) 1991, 1993
  2512  //	The Regents of the University of California.  All rights reserved.
  2513  //
  2514  // This code is derived from software contributed to Berkeley by
  2515  // Berkeley Software Design, Inc.
  2516  //
  2517  // Redistribution and use in source and binary forms, with or without
  2518  // modification, are permitted provided that the following conditions
  2519  // are met:
  2520  // 1. Redistributions of source code must retain the above copyright
  2521  //    notice, this list of conditions and the following disclaimer.
  2522  // 2. Redistributions in binary form must reproduce the above copyright
  2523  //    notice, this list of conditions and the following disclaimer in the
  2524  //    documentation and/or other materials provided with the distribution.
  2525  // 3. All advertising materials mentioning features or use of this software
  2526  //    must display the following acknowledgement:
  2527  //	This product includes software developed by the University of
  2528  //	California, Berkeley and its contributors.
  2529  // 4. Neither the name of the University nor the names of its contributors
  2530  //    may be used to endorse or promote products derived from this software
  2531  //    without specific prior written permission.
  2532  //
  2533  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2534  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2535  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2536  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2537  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2538  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2539  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2540  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2541  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2542  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2543  // SUCH DAMAGE.
  2544  //
  2545  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2546  
  2547  // pthread opaque structures
  2548  
  2549  type X__darwin_pthread_handler_rec = struct {
  2550  	F__routine uintptr
  2551  	F__arg     uintptr
  2552  	F__next    uintptr
  2553  } /* _pthread_types.h:57:1 */
  2554  
  2555  type X_opaque_pthread_attr_t = struct {
  2556  	F__sig    int64
  2557  	F__opaque [56]int8
  2558  } /* _pthread_types.h:63:1 */
  2559  
  2560  type X_opaque_pthread_cond_t = struct {
  2561  	F__sig    int64
  2562  	F__opaque [40]int8
  2563  } /* _pthread_types.h:68:1 */
  2564  
  2565  type X_opaque_pthread_condattr_t = struct {
  2566  	F__sig    int64
  2567  	F__opaque [8]int8
  2568  } /* _pthread_types.h:73:1 */
  2569  
  2570  type X_opaque_pthread_mutex_t = struct {
  2571  	F__sig    int64
  2572  	F__opaque [56]int8
  2573  } /* _pthread_types.h:78:1 */
  2574  
  2575  type X_opaque_pthread_mutexattr_t = struct {
  2576  	F__sig    int64
  2577  	F__opaque [8]int8
  2578  } /* _pthread_types.h:83:1 */
  2579  
  2580  type X_opaque_pthread_once_t = struct {
  2581  	F__sig    int64
  2582  	F__opaque [8]int8
  2583  } /* _pthread_types.h:88:1 */
  2584  
  2585  type X_opaque_pthread_rwlock_t = struct {
  2586  	F__sig    int64
  2587  	F__opaque [192]int8
  2588  } /* _pthread_types.h:93:1 */
  2589  
  2590  type X_opaque_pthread_rwlockattr_t = struct {
  2591  	F__sig    int64
  2592  	F__opaque [16]int8
  2593  } /* _pthread_types.h:98:1 */
  2594  
  2595  type X_opaque_pthread_t = struct {
  2596  	F__sig           int64
  2597  	F__cleanup_stack uintptr
  2598  	F__opaque        [8176]int8
  2599  } /* _pthread_types.h:103:1 */
  2600  
  2601  type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t             /* _pthread_types.h:109:39 */
  2602  type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t             /* _pthread_types.h:110:39 */
  2603  type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t     /* _pthread_types.h:111:43 */
  2604  type X__darwin_pthread_key_t = uint64                               /* _pthread_types.h:112:23 */
  2605  type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t           /* _pthread_types.h:113:40 */
  2606  type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t   /* _pthread_types.h:114:44 */
  2607  type X__darwin_pthread_once_t = X_opaque_pthread_once_t             /* _pthread_types.h:115:39 */
  2608  type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t         /* _pthread_types.h:116:41 */
  2609  type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  2610  type X__darwin_pthread_t = uintptr                                  /* _pthread_types.h:118:34 */
  2611  
  2612  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2613  //
  2614  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2615  //
  2616  // This file contains Original Code and/or Modifications of Original Code
  2617  // as defined in and that are subject to the Apple Public Source License
  2618  // Version 2.0 (the 'License'). You may not use this file except in
  2619  // compliance with the License. The rights granted to you under the License
  2620  // may not be used to create, or enable the creation or redistribution of,
  2621  // unlawful or unlicensed copies of an Apple operating system, or to
  2622  // circumvent, violate, or enable the circumvention or violation of, any
  2623  // terms of an Apple operating system software license agreement.
  2624  //
  2625  // Please obtain a copy of the License at
  2626  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2627  //
  2628  // The Original Code and all software distributed under the License are
  2629  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2630  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2631  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2632  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2633  // Please see the License for the specific language governing rights and
  2634  // limitations under the License.
  2635  //
  2636  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2637  
  2638  type X__darwin_nl_item = int32        /* _types.h:40:14 */
  2639  type X__darwin_wctrans_t = int32      /* _types.h:41:14 */
  2640  type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
  2641  
  2642  // C11 Annex K
  2643  
  2644  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2645  //
  2646  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2647  //
  2648  // This file contains Original Code and/or Modifications of Original Code
  2649  // as defined in and that are subject to the Apple Public Source License
  2650  // Version 2.0 (the 'License'). You may not use this file except in
  2651  // compliance with the License. The rights granted to you under the License
  2652  // may not be used to create, or enable the creation or redistribution of,
  2653  // unlawful or unlicensed copies of an Apple operating system, or to
  2654  // circumvent, violate, or enable the circumvention or violation of, any
  2655  // terms of an Apple operating system software license agreement.
  2656  //
  2657  // Please obtain a copy of the License at
  2658  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2659  //
  2660  // The Original Code and all software distributed under the License are
  2661  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2662  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2663  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2664  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2665  // Please see the License for the specific language governing rights and
  2666  // limitations under the License.
  2667  //
  2668  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2669  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2670  //
  2671  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2672  //
  2673  // This file contains Original Code and/or Modifications of Original Code
  2674  // as defined in and that are subject to the Apple Public Source License
  2675  // Version 2.0 (the 'License'). You may not use this file except in
  2676  // compliance with the License. The rights granted to you under the License
  2677  // may not be used to create, or enable the creation or redistribution of,
  2678  // unlawful or unlicensed copies of an Apple operating system, or to
  2679  // circumvent, violate, or enable the circumvention or violation of, any
  2680  // terms of an Apple operating system software license agreement.
  2681  //
  2682  // Please obtain a copy of the License at
  2683  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2684  //
  2685  // The Original Code and all software distributed under the License are
  2686  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2687  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2688  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2689  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2690  // Please see the License for the specific language governing rights and
  2691  // limitations under the License.
  2692  //
  2693  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2694  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2695  
  2696  // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  2697  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2698  // Copyright (c) 1990, 1993
  2699  //	The Regents of the University of California.  All rights reserved.
  2700  //
  2701  // Redistribution and use in source and binary forms, with or without
  2702  // modification, are permitted provided that the following conditions
  2703  // are met:
  2704  // 1. Redistributions of source code must retain the above copyright
  2705  //    notice, this list of conditions and the following disclaimer.
  2706  // 2. Redistributions in binary form must reproduce the above copyright
  2707  //    notice, this list of conditions and the following disclaimer in the
  2708  //    documentation and/or other materials provided with the distribution.
  2709  // 3. All advertising materials mentioning features or use of this software
  2710  //    must display the following acknowledgement:
  2711  //	This product includes software developed by the University of
  2712  //	California, Berkeley and its contributors.
  2713  // 4. Neither the name of the University nor the names of its contributors
  2714  //    may be used to endorse or promote products derived from this software
  2715  //    without specific prior written permission.
  2716  //
  2717  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2718  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2719  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2720  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2721  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2722  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2723  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2724  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2725  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2726  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2727  // SUCH DAMAGE.
  2728  //
  2729  //	@(#)types.h	8.3 (Berkeley) 1/5/94
  2730  
  2731  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2732  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2733  //
  2734  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2735  //
  2736  // This file contains Original Code and/or Modifications of Original Code
  2737  // as defined in and that are subject to the Apple Public Source License
  2738  // Version 2.0 (the 'License'). You may not use this file except in
  2739  // compliance with the License. The rights granted to you under the License
  2740  // may not be used to create, or enable the creation or redistribution of,
  2741  // unlawful or unlicensed copies of an Apple operating system, or to
  2742  // circumvent, violate, or enable the circumvention or violation of, any
  2743  // terms of an Apple operating system software license agreement.
  2744  //
  2745  // Please obtain a copy of the License at
  2746  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2747  //
  2748  // The Original Code and all software distributed under the License are
  2749  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2750  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2751  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2752  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2753  // Please see the License for the specific language governing rights and
  2754  // limitations under the License.
  2755  //
  2756  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2757  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2758  // Copyright (c) 1991, 1993
  2759  //	The Regents of the University of California.  All rights reserved.
  2760  //
  2761  // This code is derived from software contributed to Berkeley by
  2762  // Berkeley Software Design, Inc.
  2763  //
  2764  // Redistribution and use in source and binary forms, with or without
  2765  // modification, are permitted provided that the following conditions
  2766  // are met:
  2767  // 1. Redistributions of source code must retain the above copyright
  2768  //    notice, this list of conditions and the following disclaimer.
  2769  // 2. Redistributions in binary form must reproduce the above copyright
  2770  //    notice, this list of conditions and the following disclaimer in the
  2771  //    documentation and/or other materials provided with the distribution.
  2772  // 3. All advertising materials mentioning features or use of this software
  2773  //    must display the following acknowledgement:
  2774  //	This product includes software developed by the University of
  2775  //	California, Berkeley and its contributors.
  2776  // 4. Neither the name of the University nor the names of its contributors
  2777  //    may be used to endorse or promote products derived from this software
  2778  //    without specific prior written permission.
  2779  //
  2780  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2781  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2782  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2783  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2784  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2785  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2786  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2787  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2788  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2789  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2790  // SUCH DAMAGE.
  2791  //
  2792  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2793  
  2794  // Basic integral types.  Omit the typedef if
  2795  // not possible for a machine/compiler combination.
  2796  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2797  //
  2798  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2799  //
  2800  // This file contains Original Code and/or Modifications of Original Code
  2801  // as defined in and that are subject to the Apple Public Source License
  2802  // Version 2.0 (the 'License'). You may not use this file except in
  2803  // compliance with the License. The rights granted to you under the License
  2804  // may not be used to create, or enable the creation or redistribution of,
  2805  // unlawful or unlicensed copies of an Apple operating system, or to
  2806  // circumvent, violate, or enable the circumvention or violation of, any
  2807  // terms of an Apple operating system software license agreement.
  2808  //
  2809  // Please obtain a copy of the License at
  2810  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2811  //
  2812  // The Original Code and all software distributed under the License are
  2813  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2814  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2815  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2816  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2817  // Please see the License for the specific language governing rights and
  2818  // limitations under the License.
  2819  //
  2820  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2821  type Int8_t = int8 /* _int8_t.h:30:31 */
  2822  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2823  //
  2824  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2825  //
  2826  // This file contains Original Code and/or Modifications of Original Code
  2827  // as defined in and that are subject to the Apple Public Source License
  2828  // Version 2.0 (the 'License'). You may not use this file except in
  2829  // compliance with the License. The rights granted to you under the License
  2830  // may not be used to create, or enable the creation or redistribution of,
  2831  // unlawful or unlicensed copies of an Apple operating system, or to
  2832  // circumvent, violate, or enable the circumvention or violation of, any
  2833  // terms of an Apple operating system software license agreement.
  2834  //
  2835  // Please obtain a copy of the License at
  2836  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2837  //
  2838  // The Original Code and all software distributed under the License are
  2839  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2840  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2841  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2842  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2843  // Please see the License for the specific language governing rights and
  2844  // limitations under the License.
  2845  //
  2846  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2847  type Int16_t = int16 /* _int16_t.h:30:33 */
  2848  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2849  //
  2850  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2851  //
  2852  // This file contains Original Code and/or Modifications of Original Code
  2853  // as defined in and that are subject to the Apple Public Source License
  2854  // Version 2.0 (the 'License'). You may not use this file except in
  2855  // compliance with the License. The rights granted to you under the License
  2856  // may not be used to create, or enable the creation or redistribution of,
  2857  // unlawful or unlicensed copies of an Apple operating system, or to
  2858  // circumvent, violate, or enable the circumvention or violation of, any
  2859  // terms of an Apple operating system software license agreement.
  2860  //
  2861  // Please obtain a copy of the License at
  2862  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2863  //
  2864  // The Original Code and all software distributed under the License are
  2865  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2866  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2867  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2868  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2869  // Please see the License for the specific language governing rights and
  2870  // limitations under the License.
  2871  //
  2872  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2873  type Int32_t = int32 /* _int32_t.h:30:33 */
  2874  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2875  //
  2876  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2877  //
  2878  // This file contains Original Code and/or Modifications of Original Code
  2879  // as defined in and that are subject to the Apple Public Source License
  2880  // Version 2.0 (the 'License'). You may not use this file except in
  2881  // compliance with the License. The rights granted to you under the License
  2882  // may not be used to create, or enable the creation or redistribution of,
  2883  // unlawful or unlicensed copies of an Apple operating system, or to
  2884  // circumvent, violate, or enable the circumvention or violation of, any
  2885  // terms of an Apple operating system software license agreement.
  2886  //
  2887  // Please obtain a copy of the License at
  2888  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2889  //
  2890  // The Original Code and all software distributed under the License are
  2891  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2892  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2893  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2894  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2895  // Please see the License for the specific language governing rights and
  2896  // limitations under the License.
  2897  //
  2898  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2899  type Int64_t = int64 /* _int64_t.h:30:33 */
  2900  
  2901  // Copyright (c) 2016 Apple Inc. All rights reserved.
  2902  //
  2903  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2904  //
  2905  // This file contains Original Code and/or Modifications of Original Code
  2906  // as defined in and that are subject to the Apple Public Source License
  2907  // Version 2.0 (the 'License'). You may not use this file except in
  2908  // compliance with the License. The rights granted to you under the License
  2909  // may not be used to create, or enable the creation or redistribution of,
  2910  // unlawful or unlicensed copies of an Apple operating system, or to
  2911  // circumvent, violate, or enable the circumvention or violation of, any
  2912  // terms of an Apple operating system software license agreement.
  2913  //
  2914  // Please obtain a copy of the License at
  2915  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2916  //
  2917  // The Original Code and all software distributed under the License are
  2918  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2919  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2920  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2921  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2922  // Please see the License for the specific language governing rights and
  2923  // limitations under the License.
  2924  //
  2925  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2926  type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  2927  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2928  //
  2929  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2930  //
  2931  // This file contains Original Code and/or Modifications of Original Code
  2932  // as defined in and that are subject to the Apple Public Source License
  2933  // Version 2.0 (the 'License'). You may not use this file except in
  2934  // compliance with the License. The rights granted to you under the License
  2935  // may not be used to create, or enable the creation or redistribution of,
  2936  // unlawful or unlicensed copies of an Apple operating system, or to
  2937  // circumvent, violate, or enable the circumvention or violation of, any
  2938  // terms of an Apple operating system software license agreement.
  2939  //
  2940  // Please obtain a copy of the License at
  2941  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2942  //
  2943  // The Original Code and all software distributed under the License are
  2944  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2945  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2946  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2947  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2948  // Please see the License for the specific language governing rights and
  2949  // limitations under the License.
  2950  //
  2951  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2952  type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  2953  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2954  //
  2955  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2956  //
  2957  // This file contains Original Code and/or Modifications of Original Code
  2958  // as defined in and that are subject to the Apple Public Source License
  2959  // Version 2.0 (the 'License'). You may not use this file except in
  2960  // compliance with the License. The rights granted to you under the License
  2961  // may not be used to create, or enable the creation or redistribution of,
  2962  // unlawful or unlicensed copies of an Apple operating system, or to
  2963  // circumvent, violate, or enable the circumvention or violation of, any
  2964  // terms of an Apple operating system software license agreement.
  2965  //
  2966  // Please obtain a copy of the License at
  2967  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2968  //
  2969  // The Original Code and all software distributed under the License are
  2970  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2971  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2972  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2973  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2974  // Please see the License for the specific language governing rights and
  2975  // limitations under the License.
  2976  //
  2977  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2978  type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  2979  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2980  //
  2981  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2982  //
  2983  // This file contains Original Code and/or Modifications of Original Code
  2984  // as defined in and that are subject to the Apple Public Source License
  2985  // Version 2.0 (the 'License'). You may not use this file except in
  2986  // compliance with the License. The rights granted to you under the License
  2987  // may not be used to create, or enable the creation or redistribution of,
  2988  // unlawful or unlicensed copies of an Apple operating system, or to
  2989  // circumvent, violate, or enable the circumvention or violation of, any
  2990  // terms of an Apple operating system software license agreement.
  2991  //
  2992  // Please obtain a copy of the License at
  2993  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2994  //
  2995  // The Original Code and all software distributed under the License are
  2996  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2997  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2998  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2999  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3000  // Please see the License for the specific language governing rights and
  3001  // limitations under the License.
  3002  //
  3003  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3004  type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  3005  
  3006  type Register_t = Int64_t /* types.h:66:33 */
  3007  
  3008  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3009  //
  3010  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3011  //
  3012  // This file contains Original Code and/or Modifications of Original Code
  3013  // as defined in and that are subject to the Apple Public Source License
  3014  // Version 2.0 (the 'License'). You may not use this file except in
  3015  // compliance with the License. The rights granted to you under the License
  3016  // may not be used to create, or enable the creation or redistribution of,
  3017  // unlawful or unlicensed copies of an Apple operating system, or to
  3018  // circumvent, violate, or enable the circumvention or violation of, any
  3019  // terms of an Apple operating system software license agreement.
  3020  //
  3021  // Please obtain a copy of the License at
  3022  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3023  //
  3024  // The Original Code and all software distributed under the License are
  3025  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3026  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3027  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3028  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3029  // Please see the License for the specific language governing rights and
  3030  // limitations under the License.
  3031  //
  3032  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3033  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3034  //
  3035  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3036  //
  3037  // This file contains Original Code and/or Modifications of Original Code
  3038  // as defined in and that are subject to the Apple Public Source License
  3039  // Version 2.0 (the 'License'). You may not use this file except in
  3040  // compliance with the License. The rights granted to you under the License
  3041  // may not be used to create, or enable the creation or redistribution of,
  3042  // unlawful or unlicensed copies of an Apple operating system, or to
  3043  // circumvent, violate, or enable the circumvention or violation of, any
  3044  // terms of an Apple operating system software license agreement.
  3045  //
  3046  // Please obtain a copy of the License at
  3047  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3048  //
  3049  // The Original Code and all software distributed under the License are
  3050  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3051  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3052  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3053  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3054  // Please see the License for the specific language governing rights and
  3055  // limitations under the License.
  3056  //
  3057  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3058  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3059  
  3060  type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  3061  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3062  //
  3063  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3064  //
  3065  // This file contains Original Code and/or Modifications of Original Code
  3066  // as defined in and that are subject to the Apple Public Source License
  3067  // Version 2.0 (the 'License'). You may not use this file except in
  3068  // compliance with the License. The rights granted to you under the License
  3069  // may not be used to create, or enable the creation or redistribution of,
  3070  // unlawful or unlicensed copies of an Apple operating system, or to
  3071  // circumvent, violate, or enable the circumvention or violation of, any
  3072  // terms of an Apple operating system software license agreement.
  3073  //
  3074  // Please obtain a copy of the License at
  3075  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3076  //
  3077  // The Original Code and all software distributed under the License are
  3078  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3079  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3080  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3081  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3082  // Please see the License for the specific language governing rights and
  3083  // limitations under the License.
  3084  //
  3085  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3086  
  3087  type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
  3088  
  3089  // These types are used for reserving the largest possible size.
  3090  type User_addr_t = U_int64_t  /* types.h:77:33 */
  3091  type User_size_t = U_int64_t  /* types.h:78:33 */
  3092  type User_ssize_t = Int64_t   /* types.h:79:33 */
  3093  type User_long_t = Int64_t    /* types.h:80:33 */
  3094  type User_ulong_t = U_int64_t /* types.h:81:33 */
  3095  type User_time_t = Int64_t    /* types.h:82:33 */
  3096  type User_off_t = Int64_t     /* types.h:83:33 */
  3097  
  3098  // This defines the size of syscall arguments after copying into the kernel:
  3099  type Syscall_arg_t = U_int64_t /* types.h:104:33 */
  3100  
  3101  type Rsize_t = X__darwin_size_t /* _rsize_t.h:31:32 */
  3102  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3103  //
  3104  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3105  //
  3106  // This file contains Original Code and/or Modifications of Original Code
  3107  // as defined in and that are subject to the Apple Public Source License
  3108  // Version 2.0 (the 'License'). You may not use this file except in
  3109  // compliance with the License. The rights granted to you under the License
  3110  // may not be used to create, or enable the creation or redistribution of,
  3111  // unlawful or unlicensed copies of an Apple operating system, or to
  3112  // circumvent, violate, or enable the circumvention or violation of, any
  3113  // terms of an Apple operating system software license agreement.
  3114  //
  3115  // Please obtain a copy of the License at
  3116  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3117  //
  3118  // The Original Code and all software distributed under the License are
  3119  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3120  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3121  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3122  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3123  // Please see the License for the specific language governing rights and
  3124  // limitations under the License.
  3125  //
  3126  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3127  type Errno_t = int32 /* _errno_t.h:30:32 */
  3128  
  3129  // Darwin extensions
  3130  
  3131  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3132  //
  3133  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3134  //
  3135  // This file contains Original Code and/or Modifications of Original Code
  3136  // as defined in and that are subject to the Apple Public Source License
  3137  // Version 2.0 (the 'License'). You may not use this file except in
  3138  // compliance with the License. The rights granted to you under the License
  3139  // may not be used to create, or enable the creation or redistribution of,
  3140  // unlawful or unlicensed copies of an Apple operating system, or to
  3141  // circumvent, violate, or enable the circumvention or violation of, any
  3142  // terms of an Apple operating system software license agreement.
  3143  //
  3144  // Please obtain a copy of the License at
  3145  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3146  //
  3147  // The Original Code and all software distributed under the License are
  3148  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3149  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3150  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3151  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3152  // Please see the License for the specific language governing rights and
  3153  // limitations under the License.
  3154  //
  3155  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3156  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3157  //
  3158  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3159  //
  3160  // This file contains Original Code and/or Modifications of Original Code
  3161  // as defined in and that are subject to the Apple Public Source License
  3162  // Version 2.0 (the 'License'). You may not use this file except in
  3163  // compliance with the License. The rights granted to you under the License
  3164  // may not be used to create, or enable the creation or redistribution of,
  3165  // unlawful or unlicensed copies of an Apple operating system, or to
  3166  // circumvent, violate, or enable the circumvention or violation of, any
  3167  // terms of an Apple operating system software license agreement.
  3168  //
  3169  // Please obtain a copy of the License at
  3170  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3171  //
  3172  // The Original Code and all software distributed under the License are
  3173  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3174  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3175  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3176  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3177  // Please see the License for the specific language governing rights and
  3178  // limitations under the License.
  3179  //
  3180  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3181  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3182  type Ssize_t = X__darwin_ssize_t /* _ssize_t.h:31:33 */
  3183  
  3184  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
  3185  //
  3186  // @APPLE_LICENSE_HEADER_START@
  3187  //
  3188  // This file contains Original Code and/or Modifications of Original Code
  3189  // as defined in and that are subject to the Apple Public Source License
  3190  // Version 2.0 (the 'License'). You may not use this file except in
  3191  // compliance with the License. Please obtain a copy of the License at
  3192  // http://www.opensource.apple.com/apsl/ and read it before using this
  3193  // file.
  3194  //
  3195  // The Original Code and all software distributed under the License are
  3196  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3197  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3198  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3199  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3200  // Please see the License for the specific language governing rights and
  3201  // limitations under the License.
  3202  //
  3203  // @APPLE_LICENSE_HEADER_END@
  3204  // -
  3205  // Copyright (c) 1990, 1993
  3206  //	The Regents of the University of California.  All rights reserved.
  3207  //
  3208  // Redistribution and use in source and binary forms, with or without
  3209  // modification, are permitted provided that the following conditions
  3210  // are met:
  3211  // 1. Redistributions of source code must retain the above copyright
  3212  //    notice, this list of conditions and the following disclaimer.
  3213  // 2. Redistributions in binary form must reproduce the above copyright
  3214  //    notice, this list of conditions and the following disclaimer in the
  3215  //    documentation and/or other materials provided with the distribution.
  3216  // 3. All advertising materials mentioning features or use of this software
  3217  //    must display the following acknowledgement:
  3218  //	This product includes software developed by the University of
  3219  //	California, Berkeley and its contributors.
  3220  // 4. Neither the name of the University nor the names of its contributors
  3221  //    may be used to endorse or promote products derived from this software
  3222  //    without specific prior written permission.
  3223  //
  3224  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3225  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3226  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3227  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3228  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3229  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3230  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3231  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3232  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3233  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3234  // SUCH DAMAGE.
  3235  //
  3236  //	@(#)string.h	8.1 (Berkeley) 6/2/93
  3237  
  3238  // Security checking functions.
  3239  // Copyright (c) 2017 Apple Inc. All rights reserved.
  3240  //
  3241  // @APPLE_LICENSE_HEADER_START@
  3242  //
  3243  // This file contains Original Code and/or Modifications of Original Code
  3244  // as defined in and that are subject to the Apple Public Source License
  3245  // Version 2.0 (the 'License'). You may not use this file except in
  3246  // compliance with the License. Please obtain a copy of the License at
  3247  // http://www.opensource.apple.com/apsl/ and read it before using this
  3248  // file.
  3249  //
  3250  // The Original Code and all software distributed under the License are
  3251  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3252  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3253  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3254  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3255  // Please see the License for the specific language governing rights and
  3256  // limitations under the License.
  3257  //
  3258  // @APPLE_LICENSE_HEADER_END@
  3259  
  3260  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  3261  //
  3262  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3263  //
  3264  // This file contains Original Code and/or Modifications of Original Code
  3265  // as defined in and that are subject to the Apple Public Source License
  3266  // Version 2.0 (the 'License'). You may not use this file except in
  3267  // compliance with the License. The rights granted to you under the License
  3268  // may not be used to create, or enable the creation or redistribution of,
  3269  // unlawful or unlicensed copies of an Apple operating system, or to
  3270  // circumvent, violate, or enable the circumvention or violation of, any
  3271  // terms of an Apple operating system software license agreement.
  3272  //
  3273  // Please obtain a copy of the License at
  3274  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3275  //
  3276  // The Original Code and all software distributed under the License are
  3277  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3278  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3279  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3280  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3281  // Please see the License for the specific language governing rights and
  3282  // limitations under the License.
  3283  //
  3284  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3285  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3286  // Copyright (c) 1991, 1993
  3287  //	The Regents of the University of California.  All rights reserved.
  3288  //
  3289  // This code is derived from software contributed to Berkeley by
  3290  // Berkeley Software Design, Inc.
  3291  //
  3292  // Redistribution and use in source and binary forms, with or without
  3293  // modification, are permitted provided that the following conditions
  3294  // are met:
  3295  // 1. Redistributions of source code must retain the above copyright
  3296  //    notice, this list of conditions and the following disclaimer.
  3297  // 2. Redistributions in binary form must reproduce the above copyright
  3298  //    notice, this list of conditions and the following disclaimer in the
  3299  //    documentation and/or other materials provided with the distribution.
  3300  // 3. All advertising materials mentioning features or use of this software
  3301  //    must display the following acknowledgement:
  3302  //	This product includes software developed by the University of
  3303  //	California, Berkeley and its contributors.
  3304  // 4. Neither the name of the University nor the names of its contributors
  3305  //    may be used to endorse or promote products derived from this software
  3306  //    without specific prior written permission.
  3307  //
  3308  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3309  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3310  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3311  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3312  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3313  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3314  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3315  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3316  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3317  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3318  // SUCH DAMAGE.
  3319  //
  3320  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  3321  
  3322  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3323  //
  3324  // @APPLE_LICENSE_HEADER_START@
  3325  //
  3326  // This file contains Original Code and/or Modifications of Original Code
  3327  // as defined in and that are subject to the Apple Public Source License
  3328  // Version 2.0 (the 'License'). You may not use this file except in
  3329  // compliance with the License. Please obtain a copy of the License at
  3330  // http://www.opensource.apple.com/apsl/ and read it before using this
  3331  // file.
  3332  //
  3333  // The Original Code and all software distributed under the License are
  3334  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3335  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3336  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3337  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3338  // Please see the License for the specific language governing rights and
  3339  // limitations under the License.
  3340  //
  3341  // @APPLE_LICENSE_HEADER_END@
  3342  
  3343  // Copyright (c) 2007, 2008 Apple Inc. All rights reserved.
  3344  //
  3345  // @APPLE_LICENSE_HEADER_START@
  3346  //
  3347  // This file contains Original Code and/or Modifications of Original Code
  3348  // as defined in and that are subject to the Apple Public Source License
  3349  // Version 2.0 (the 'License'). You may not use this file except in
  3350  // compliance with the License. Please obtain a copy of the License at
  3351  // http://www.opensource.apple.com/apsl/ and read it before using this
  3352  // file.
  3353  //
  3354  // The Original Code and all software distributed under the License are
  3355  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3356  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3357  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3358  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3359  // Please see the License for the specific language governing rights and
  3360  // limitations under the License.
  3361  //
  3362  // @APPLE_LICENSE_HEADER_END@
  3363  
  3364  // bcopy and bzero
  3365  
  3366  // Removed in Issue 7
  3367  
  3368  // void	bcopy(const void *src, void *dst, size_t len)
  3369  
  3370  // void	bzero(void *s, size_t n)
  3371  
  3372  // Security checking functions.
  3373  // Copyright (c) 2007,2017 Apple Inc. All rights reserved.
  3374  //
  3375  // @APPLE_LICENSE_HEADER_START@
  3376  //
  3377  // This file contains Original Code and/or Modifications of Original Code
  3378  // as defined in and that are subject to the Apple Public Source License
  3379  // Version 2.0 (the 'License'). You may not use this file except in
  3380  // compliance with the License. Please obtain a copy of the License at
  3381  // http://www.opensource.apple.com/apsl/ and read it before using this
  3382  // file.
  3383  //
  3384  // The Original Code and all software distributed under the License are
  3385  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3386  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3387  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3388  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3389  // Please see the License for the specific language governing rights and
  3390  // limitations under the License.
  3391  //
  3392  // @APPLE_LICENSE_HEADER_END@
  3393  
  3394  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  3395  //
  3396  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3397  //
  3398  // This file contains Original Code and/or Modifications of Original Code
  3399  // as defined in and that are subject to the Apple Public Source License
  3400  // Version 2.0 (the 'License'). You may not use this file except in
  3401  // compliance with the License. The rights granted to you under the License
  3402  // may not be used to create, or enable the creation or redistribution of,
  3403  // unlawful or unlicensed copies of an Apple operating system, or to
  3404  // circumvent, violate, or enable the circumvention or violation of, any
  3405  // terms of an Apple operating system software license agreement.
  3406  //
  3407  // Please obtain a copy of the License at
  3408  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3409  //
  3410  // The Original Code and all software distributed under the License are
  3411  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3412  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3413  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3414  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3415  // Please see the License for the specific language governing rights and
  3416  // limitations under the License.
  3417  //
  3418  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3419  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3420  // Copyright (c) 1991, 1993
  3421  //	The Regents of the University of California.  All rights reserved.
  3422  //
  3423  // This code is derived from software contributed to Berkeley by
  3424  // Berkeley Software Design, Inc.
  3425  //
  3426  // Redistribution and use in source and binary forms, with or without
  3427  // modification, are permitted provided that the following conditions
  3428  // are met:
  3429  // 1. Redistributions of source code must retain the above copyright
  3430  //    notice, this list of conditions and the following disclaimer.
  3431  // 2. Redistributions in binary form must reproduce the above copyright
  3432  //    notice, this list of conditions and the following disclaimer in the
  3433  //    documentation and/or other materials provided with the distribution.
  3434  // 3. All advertising materials mentioning features or use of this software
  3435  //    must display the following acknowledgement:
  3436  //	This product includes software developed by the University of
  3437  //	California, Berkeley and its contributors.
  3438  // 4. Neither the name of the University nor the names of its contributors
  3439  //    may be used to endorse or promote products derived from this software
  3440  //    without specific prior written permission.
  3441  //
  3442  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3443  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3444  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3445  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3446  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3447  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3448  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3449  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3450  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3451  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3452  // SUCH DAMAGE.
  3453  //
  3454  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  3455  
  3456  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3457  //
  3458  // @APPLE_LICENSE_HEADER_START@
  3459  //
  3460  // This file contains Original Code and/or Modifications of Original Code
  3461  // as defined in and that are subject to the Apple Public Source License
  3462  // Version 2.0 (the 'License'). You may not use this file except in
  3463  // compliance with the License. Please obtain a copy of the License at
  3464  // http://www.opensource.apple.com/apsl/ and read it before using this
  3465  // file.
  3466  //
  3467  // The Original Code and all software distributed under the License are
  3468  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3469  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3470  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3471  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3472  // Please see the License for the specific language governing rights and
  3473  // limitations under the License.
  3474  //
  3475  // @APPLE_LICENSE_HEADER_END@
  3476  
  3477  // Copyright (c) 2007, 2008 Apple Inc. All rights reserved.
  3478  //
  3479  // @APPLE_LICENSE_HEADER_START@
  3480  //
  3481  // This file contains Original Code and/or Modifications of Original Code
  3482  // as defined in and that are subject to the Apple Public Source License
  3483  // Version 2.0 (the 'License'). You may not use this file except in
  3484  // compliance with the License. Please obtain a copy of the License at
  3485  // http://www.opensource.apple.com/apsl/ and read it before using this
  3486  // file.
  3487  //
  3488  // The Original Code and all software distributed under the License are
  3489  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3490  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3491  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3492  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3493  // Please see the License for the specific language governing rights and
  3494  // limitations under the License.
  3495  //
  3496  // @APPLE_LICENSE_HEADER_END@
  3497  
  3498  // <rdar://problem/12622659>
  3499  
  3500  // memccpy, memcpy, mempcpy, memmove, memset, strcpy, strlcpy, stpcpy,
  3501  //    strncpy, stpncpy, strcat, strlcat, and strncat
  3502  
  3503  // void *memcpy(void *dst, const void *src, size_t n)
  3504  
  3505  // void *memmove(void *dst, const void *src, size_t len)
  3506  
  3507  // void *memset(void *b, int c, size_t len)
  3508  
  3509  // char *strcpy(char *dst, const char *src)
  3510  
  3511  // char *stpcpy(char *dst, const char *src)
  3512  
  3513  // char *stpncpy(char *dst, const char *src, size_t n)
  3514  
  3515  // char *strncpy(char *dst, const char *src, size_t n)
  3516  
  3517  // char *strcat(char *s1, const char *s2)
  3518  
  3519  // char *strncat(char *s1, const char *s2, size_t n)
  3520  
  3521  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
  3522  //
  3523  // @APPLE_LICENSE_HEADER_START@
  3524  //
  3525  // This file contains Original Code and/or Modifications of Original Code
  3526  // as defined in and that are subject to the Apple Public Source License
  3527  // Version 2.0 (the 'License'). You may not use this file except in
  3528  // compliance with the License. Please obtain a copy of the License at
  3529  // http://www.opensource.apple.com/apsl/ and read it before using this
  3530  // file.
  3531  //
  3532  // The Original Code and all software distributed under the License are
  3533  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3534  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3535  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3536  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3537  // Please see the License for the specific language governing rights and
  3538  // limitations under the License.
  3539  //
  3540  // @APPLE_LICENSE_HEADER_END@
  3541  // -
  3542  // Copyright (c) 1990, 1993
  3543  //	The Regents of the University of California.  All rights reserved.
  3544  //
  3545  // Redistribution and use in source and binary forms, with or without
  3546  // modification, are permitted provided that the following conditions
  3547  // are met:
  3548  // 1. Redistributions of source code must retain the above copyright
  3549  //    notice, this list of conditions and the following disclaimer.
  3550  // 2. Redistributions in binary form must reproduce the above copyright
  3551  //    notice, this list of conditions and the following disclaimer in the
  3552  //    documentation and/or other materials provided with the distribution.
  3553  // 3. All advertising materials mentioning features or use of this software
  3554  //    must display the following acknowledgement:
  3555  //	This product includes software developed by the University of
  3556  //	California, Berkeley and its contributors.
  3557  // 4. Neither the name of the University nor the names of its contributors
  3558  //    may be used to endorse or promote products derived from this software
  3559  //    without specific prior written permission.
  3560  //
  3561  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3562  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3563  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3564  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3565  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3566  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3567  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3568  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3569  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3570  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3571  // SUCH DAMAGE.
  3572  //
  3573  //	@(#)strings.h	8.1 (Berkeley) 6/2/93
  3574  
  3575  // the new Xfuncs.h
  3576  
  3577  // the ANSI C way
  3578  
  3579  //  DO NOT EDIT THIS FILE.
  3580  //
  3581  //     It has been auto-edited by fixincludes from:
  3582  //
  3583  // 	"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/stdio.h"
  3584  //
  3585  //     This had to be done to correct non-standard usages in the
  3586  //     original, manufacturer supplied header file.
  3587  
  3588  // Copyright (C) 1989-2021 Free Software Foundation, Inc.
  3589  //
  3590  // This file is part of GCC.
  3591  //
  3592  // GCC is free software; you can redistribute it and/or modify
  3593  // it under the terms of the GNU General Public License as published by
  3594  // the Free Software Foundation; either version 3, or (at your option)
  3595  // any later version.
  3596  //
  3597  // GCC is distributed in the hope that it will be useful,
  3598  // but WITHOUT ANY WARRANTY; without even the implied warranty of
  3599  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  3600  // GNU General Public License for more details.
  3601  //
  3602  // Under Section 7 of GPL version 3, you are granted additional
  3603  // permissions described in the GCC Runtime Library Exception, version
  3604  // 3.1, as published by the Free Software Foundation.
  3605  //
  3606  // You should have received a copy of the GNU General Public License and
  3607  // a copy of the GCC Runtime Library Exception along with this program;
  3608  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
  3609  // <http://www.gnu.org/licenses/>.
  3610  
  3611  // ISO C Standard:  7.15  Variable arguments  <stdarg.h>
  3612  
  3613  // Define __gnuc_va_list.
  3614  
  3615  type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
  3616  
  3617  // Define the standard macros for the user,
  3618  //    if this invocation was from the user program.
  3619  
  3620  // Copyright (c) 2000, 2005, 2007, 2009, 2010 Apple Inc. All rights reserved.
  3621  //
  3622  // @APPLE_LICENSE_HEADER_START@
  3623  //
  3624  // This file contains Original Code and/or Modifications of Original Code
  3625  // as defined in and that are subject to the Apple Public Source License
  3626  // Version 2.0 (the 'License'). You may not use this file except in
  3627  // compliance with the License. Please obtain a copy of the License at
  3628  // http://www.opensource.apple.com/apsl/ and read it before using this
  3629  // file.
  3630  //
  3631  // The Original Code and all software distributed under the License are
  3632  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3633  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3634  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3635  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3636  // Please see the License for the specific language governing rights and
  3637  // limitations under the License.
  3638  //
  3639  // @APPLE_LICENSE_HEADER_END@
  3640  // -
  3641  // Copyright (c) 1990, 1993
  3642  //	The Regents of the University of California.  All rights reserved.
  3643  //
  3644  // This code is derived from software contributed to Berkeley by
  3645  // Chris Torek.
  3646  //
  3647  // Redistribution and use in source and binary forms, with or without
  3648  // modification, are permitted provided that the following conditions
  3649  // are met:
  3650  // 1. Redistributions of source code must retain the above copyright
  3651  //    notice, this list of conditions and the following disclaimer.
  3652  // 2. Redistributions in binary form must reproduce the above copyright
  3653  //    notice, this list of conditions and the following disclaimer in the
  3654  //    documentation and/or other materials provided with the distribution.
  3655  // 3. All advertising materials mentioning features or use of this software
  3656  //    must display the following acknowledgement:
  3657  //	This product includes software developed by the University of
  3658  //	California, Berkeley and its contributors.
  3659  // 4. Neither the name of the University nor the names of its contributors
  3660  //    may be used to endorse or promote products derived from this software
  3661  //    without specific prior written permission.
  3662  //
  3663  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3664  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3665  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3666  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3667  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3668  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3669  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3670  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3671  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3672  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3673  // SUCH DAMAGE.
  3674  //
  3675  //	@(#)stdio.h	8.5 (Berkeley) 4/29/95
  3676  
  3677  // Copyright (c) 2000, 2005, 2007, 2009, 2010 Apple Inc. All rights reserved.
  3678  //
  3679  // @APPLE_LICENSE_HEADER_START@
  3680  //
  3681  // This file contains Original Code and/or Modifications of Original Code
  3682  // as defined in and that are subject to the Apple Public Source License
  3683  // Version 2.0 (the 'License'). You may not use this file except in
  3684  // compliance with the License. Please obtain a copy of the License at
  3685  // http://www.opensource.apple.com/apsl/ and read it before using this
  3686  // file.
  3687  //
  3688  // The Original Code and all software distributed under the License are
  3689  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3690  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3691  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3692  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3693  // Please see the License for the specific language governing rights and
  3694  // limitations under the License.
  3695  //
  3696  // @APPLE_LICENSE_HEADER_END@
  3697  // -
  3698  // Copyright (c) 1990, 1993
  3699  //	The Regents of the University of California.  All rights reserved.
  3700  //
  3701  // This code is derived from software contributed to Berkeley by
  3702  // Chris Torek.
  3703  //
  3704  // Redistribution and use in source and binary forms, with or without
  3705  // modification, are permitted provided that the following conditions
  3706  // are met:
  3707  // 1. Redistributions of source code must retain the above copyright
  3708  //    notice, this list of conditions and the following disclaimer.
  3709  // 2. Redistributions in binary form must reproduce the above copyright
  3710  //    notice, this list of conditions and the following disclaimer in the
  3711  //    documentation and/or other materials provided with the distribution.
  3712  // 3. All advertising materials mentioning features or use of this software
  3713  //    must display the following acknowledgement:
  3714  //	This product includes software developed by the University of
  3715  //	California, Berkeley and its contributors.
  3716  // 4. Neither the name of the University nor the names of its contributors
  3717  //    may be used to endorse or promote products derived from this software
  3718  //    without specific prior written permission.
  3719  //
  3720  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3721  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3722  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3723  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3724  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3725  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3726  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3727  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3728  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3729  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3730  // SUCH DAMAGE.
  3731  //
  3732  //	@(#)stdio.h	8.5 (Berkeley) 4/29/95
  3733  
  3734  // Common header for stdio.h and xlocale/_stdio.h
  3735  
  3736  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  3737  //
  3738  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3739  //
  3740  // This file contains Original Code and/or Modifications of Original Code
  3741  // as defined in and that are subject to the Apple Public Source License
  3742  // Version 2.0 (the 'License'). You may not use this file except in
  3743  // compliance with the License. The rights granted to you under the License
  3744  // may not be used to create, or enable the creation or redistribution of,
  3745  // unlawful or unlicensed copies of an Apple operating system, or to
  3746  // circumvent, violate, or enable the circumvention or violation of, any
  3747  // terms of an Apple operating system software license agreement.
  3748  //
  3749  // Please obtain a copy of the License at
  3750  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3751  //
  3752  // The Original Code and all software distributed under the License are
  3753  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3754  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3755  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3756  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3757  // Please see the License for the specific language governing rights and
  3758  // limitations under the License.
  3759  //
  3760  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3761  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3762  // Copyright (c) 1991, 1993
  3763  //	The Regents of the University of California.  All rights reserved.
  3764  //
  3765  // This code is derived from software contributed to Berkeley by
  3766  // Berkeley Software Design, Inc.
  3767  //
  3768  // Redistribution and use in source and binary forms, with or without
  3769  // modification, are permitted provided that the following conditions
  3770  // are met:
  3771  // 1. Redistributions of source code must retain the above copyright
  3772  //    notice, this list of conditions and the following disclaimer.
  3773  // 2. Redistributions in binary form must reproduce the above copyright
  3774  //    notice, this list of conditions and the following disclaimer in the
  3775  //    documentation and/or other materials provided with the distribution.
  3776  // 3. All advertising materials mentioning features or use of this software
  3777  //    must display the following acknowledgement:
  3778  //	This product includes software developed by the University of
  3779  //	California, Berkeley and its contributors.
  3780  // 4. Neither the name of the University nor the names of its contributors
  3781  //    may be used to endorse or promote products derived from this software
  3782  //    without specific prior written permission.
  3783  //
  3784  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3785  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3786  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3787  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3788  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3789  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3790  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3791  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3792  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3793  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3794  // SUCH DAMAGE.
  3795  //
  3796  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  3797  
  3798  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3799  //
  3800  // @APPLE_LICENSE_HEADER_START@
  3801  //
  3802  // This file contains Original Code and/or Modifications of Original Code
  3803  // as defined in and that are subject to the Apple Public Source License
  3804  // Version 2.0 (the 'License'). You may not use this file except in
  3805  // compliance with the License. Please obtain a copy of the License at
  3806  // http://www.opensource.apple.com/apsl/ and read it before using this
  3807  // file.
  3808  //
  3809  // The Original Code and all software distributed under the License are
  3810  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3811  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3812  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3813  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3814  // Please see the License for the specific language governing rights and
  3815  // limitations under the License.
  3816  //
  3817  // @APPLE_LICENSE_HEADER_END@
  3818  
  3819  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  3820  //
  3821  // @APPLE_LICENSE_HEADER_START@
  3822  //
  3823  // This file contains Original Code and/or Modifications of Original Code
  3824  // as defined in and that are subject to the Apple Public Source License
  3825  // Version 2.0 (the 'License'). You may not use this file except in
  3826  // compliance with the License. Please obtain a copy of the License at
  3827  // http://www.opensource.apple.com/apsl/ and read it before using this
  3828  // file.
  3829  //
  3830  // The Original Code and all software distributed under the License are
  3831  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3832  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3833  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3834  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3835  // Please see the License for the specific language governing rights and
  3836  // limitations under the License.
  3837  //
  3838  // @APPLE_LICENSE_HEADER_END@
  3839  
  3840  // DO NOT REMOVE THIS COMMENT: fixincludes needs to see:
  3841  // __gnuc_va_list and include <stdarg.h>
  3842  // Copyright (c) 2012 Apple Inc. All rights reserved.
  3843  //
  3844  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3845  //
  3846  // This file contains Original Code and/or Modifications of Original Code
  3847  // as defined in and that are subject to the Apple Public Source License
  3848  // Version 2.0 (the 'License'). You may not use this file except in
  3849  // compliance with the License. The rights granted to you under the License
  3850  // may not be used to create, or enable the creation or redistribution of,
  3851  // unlawful or unlicensed copies of an Apple operating system, or to
  3852  // circumvent, violate, or enable the circumvention or violation of, any
  3853  // terms of an Apple operating system software license agreement.
  3854  //
  3855  // Please obtain a copy of the License at
  3856  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3857  //
  3858  // The Original Code and all software distributed under the License are
  3859  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3860  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3861  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3862  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3863  // Please see the License for the specific language governing rights and
  3864  // limitations under the License.
  3865  //
  3866  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3867  
  3868  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3869  //
  3870  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3871  //
  3872  // This file contains Original Code and/or Modifications of Original Code
  3873  // as defined in and that are subject to the Apple Public Source License
  3874  // Version 2.0 (the 'License'). You may not use this file except in
  3875  // compliance with the License. The rights granted to you under the License
  3876  // may not be used to create, or enable the creation or redistribution of,
  3877  // unlawful or unlicensed copies of an Apple operating system, or to
  3878  // circumvent, violate, or enable the circumvention or violation of, any
  3879  // terms of an Apple operating system software license agreement.
  3880  //
  3881  // Please obtain a copy of the License at
  3882  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3883  //
  3884  // The Original Code and all software distributed under the License are
  3885  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3886  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3887  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3888  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3889  // Please see the License for the specific language governing rights and
  3890  // limitations under the License.
  3891  //
  3892  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3893  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3894  type Va_list = X__darwin_va_list /* _va_list.h:32:26 */
  3895  
  3896  type Fpos_t = X__darwin_off_t /* _stdio.h:81:25 */
  3897  
  3898  // NB: to fit things in six character monocase externals, the stdio
  3899  // code uses the prefix `__s' for stdio objects, typically followed
  3900  // by a three-character attempt at a mnemonic.
  3901  
  3902  // stdio buffers
  3903  type X__sbuf = struct {
  3904  	F_base       uintptr
  3905  	F_size       int32
  3906  	F__ccgo_pad1 [4]byte
  3907  } /* _stdio.h:92:1 */
  3908  
  3909  // stdio state variables.
  3910  //
  3911  // The following always hold:
  3912  //
  3913  //	if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR),
  3914  //		_lbfsize is -_bf._size, else _lbfsize is 0
  3915  //	if _flags&__SRD, _w is 0
  3916  //	if _flags&__SWR, _r is 0
  3917  //
  3918  // This ensures that the getc and putc macros (or inline functions) never
  3919  // try to write or read from a file that is in `read' or `write' mode.
  3920  // (Moreover, they can, and do, automatically switch from read mode to
  3921  // write mode, and back, on "r+" and "w+" files.)
  3922  //
  3923  // _lbfsize is used only to make the inline line-buffered output stream
  3924  // code as compact as possible.
  3925  //
  3926  // _ub, _up, and _ur are used when ungetc() pushes back more characters
  3927  // than fit in the current _bf, or when ungetc() pushes back a character
  3928  // that does not match the previous one in _bf.  When this happens,
  3929  // _ub._base becomes non-nil (i.e., a stream has ungetc() data iff
  3930  // _ub._base!=NULL) and _up and _ur save the current values of _p and _r.
  3931  //
  3932  // NB: see WARNING above before changing the layout of this structure!
  3933  type X__sFILE = struct {
  3934  	F_p          uintptr
  3935  	F_r          int32
  3936  	F_w          int32
  3937  	F_flags      int16
  3938  	F_file       int16
  3939  	F__ccgo_pad1 [4]byte
  3940  	F_bf         struct {
  3941  		F_base       uintptr
  3942  		F_size       int32
  3943  		F__ccgo_pad1 [4]byte
  3944  	}
  3945  	F_lbfsize    int32
  3946  	F__ccgo_pad2 [4]byte
  3947  	F_cookie     uintptr
  3948  	F_close      uintptr
  3949  	F_read       uintptr
  3950  	F_seek       uintptr
  3951  	F_write      uintptr
  3952  	F_ub         struct {
  3953  		F_base       uintptr
  3954  		F_size       int32
  3955  		F__ccgo_pad1 [4]byte
  3956  	}
  3957  	F_extra uintptr
  3958  	F_ur    int32
  3959  	F_ubuf  [3]uint8
  3960  	F_nbuf  [1]uint8
  3961  	F_lb    struct {
  3962  		F_base       uintptr
  3963  		F_size       int32
  3964  		F__ccgo_pad1 [4]byte
  3965  	}
  3966  	F_blksize    int32
  3967  	F__ccgo_pad3 [4]byte
  3968  	F_offset     Fpos_t
  3969  } /* _stdio.h:126:9 */
  3970  
  3971  // stdio state variables.
  3972  //
  3973  // The following always hold:
  3974  //
  3975  //	if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR),
  3976  //		_lbfsize is -_bf._size, else _lbfsize is 0
  3977  //	if _flags&__SRD, _w is 0
  3978  //	if _flags&__SWR, _r is 0
  3979  //
  3980  // This ensures that the getc and putc macros (or inline functions) never
  3981  // try to write or read from a file that is in `read' or `write' mode.
  3982  // (Moreover, they can, and do, automatically switch from read mode to
  3983  // write mode, and back, on "r+" and "w+" files.)
  3984  //
  3985  // _lbfsize is used only to make the inline line-buffered output stream
  3986  // code as compact as possible.
  3987  //
  3988  // _ub, _up, and _ur are used when ungetc() pushes back more characters
  3989  // than fit in the current _bf, or when ungetc() pushes back a character
  3990  // that does not match the previous one in _bf.  When this happens,
  3991  // _ub._base becomes non-nil (i.e., a stream has ungetc() data iff
  3992  // _ub._base!=NULL) and _up and _ur save the current values of _p and _r.
  3993  //
  3994  // NB: see WARNING above before changing the layout of this structure!
  3995  type FILE = X__sFILE /* _stdio.h:157:3 */
  3996  
  3997  // Additional functionality provided by:
  3998  // POSIX.1-2001
  3999  // ISO C99
  4000  
  4001  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4002  //
  4003  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4004  //
  4005  // This file contains Original Code and/or Modifications of Original Code
  4006  // as defined in and that are subject to the Apple Public Source License
  4007  // Version 2.0 (the 'License'). You may not use this file except in
  4008  // compliance with the License. The rights granted to you under the License
  4009  // may not be used to create, or enable the creation or redistribution of,
  4010  // unlawful or unlicensed copies of an Apple operating system, or to
  4011  // circumvent, violate, or enable the circumvention or violation of, any
  4012  // terms of an Apple operating system software license agreement.
  4013  //
  4014  // Please obtain a copy of the License at
  4015  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4016  //
  4017  // The Original Code and all software distributed under the License are
  4018  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4019  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4020  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4021  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4022  // Please see the License for the specific language governing rights and
  4023  // limitations under the License.
  4024  //
  4025  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4026  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4027  //
  4028  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4029  //
  4030  // This file contains Original Code and/or Modifications of Original Code
  4031  // as defined in and that are subject to the Apple Public Source License
  4032  // Version 2.0 (the 'License'). You may not use this file except in
  4033  // compliance with the License. The rights granted to you under the License
  4034  // may not be used to create, or enable the creation or redistribution of,
  4035  // unlawful or unlicensed copies of an Apple operating system, or to
  4036  // circumvent, violate, or enable the circumvention or violation of, any
  4037  // terms of an Apple operating system software license agreement.
  4038  //
  4039  // Please obtain a copy of the License at
  4040  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4041  //
  4042  // The Original Code and all software distributed under the License are
  4043  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4044  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4045  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4046  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4047  // Please see the License for the specific language governing rights and
  4048  // limitations under the License.
  4049  //
  4050  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4051  
  4052  type Off_t = X__darwin_off_t /* _off_t.h:31:33 */
  4053  
  4054  // Return values from XauLockAuth
  4055  
  4056  // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved.
  4057  //
  4058  // @APPLE_LICENSE_HEADER_START@
  4059  //
  4060  // This file contains Original Code and/or Modifications of Original Code
  4061  // as defined in and that are subject to the Apple Public Source License
  4062  // Version 2.0 (the 'License'). You may not use this file except in
  4063  // compliance with the License. Please obtain a copy of the License at
  4064  // http://www.opensource.apple.com/apsl/ and read it before using this
  4065  // file.
  4066  //
  4067  // The Original Code and all software distributed under the License are
  4068  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4069  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4070  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4071  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4072  // Please see the License for the specific language governing rights and
  4073  // limitations under the License.
  4074  //
  4075  // @APPLE_LICENSE_HEADER_END@
  4076  // -
  4077  // Copyright (c) 1990, 1993
  4078  //	The Regents of the University of California.  All rights reserved.
  4079  //
  4080  // Redistribution and use in source and binary forms, with or without
  4081  // modification, are permitted provided that the following conditions
  4082  // are met:
  4083  // 1. Redistributions of source code must retain the above copyright
  4084  //    notice, this list of conditions and the following disclaimer.
  4085  // 2. Redistributions in binary form must reproduce the above copyright
  4086  //    notice, this list of conditions and the following disclaimer in the
  4087  //    documentation and/or other materials provided with the distribution.
  4088  // 3. All advertising materials mentioning features or use of this software
  4089  //    must display the following acknowledgement:
  4090  //	This product includes software developed by the University of
  4091  //	California, Berkeley and its contributors.
  4092  // 4. Neither the name of the University nor the names of its contributors
  4093  //    may be used to endorse or promote products derived from this software
  4094  //    without specific prior written permission.
  4095  //
  4096  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4097  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4098  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4099  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4100  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4101  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4102  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4103  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4104  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4105  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4106  // SUCH DAMAGE.
  4107  //
  4108  //	@(#)stdlib.h	8.5 (Berkeley) 5/19/95
  4109  
  4110  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  4111  //
  4112  // @APPLE_LICENSE_HEADER_START@
  4113  //
  4114  // This file contains Original Code and/or Modifications of Original Code
  4115  // as defined in and that are subject to the Apple Public Source License
  4116  // Version 2.0 (the 'License'). You may not use this file except in
  4117  // compliance with the License. Please obtain a copy of the License at
  4118  // http://www.opensource.apple.com/apsl/ and read it before using this
  4119  // file.
  4120  //
  4121  // The Original Code and all software distributed under the License are
  4122  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4123  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4124  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4125  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4126  // Please see the License for the specific language governing rights and
  4127  // limitations under the License.
  4128  //
  4129  // @APPLE_LICENSE_HEADER_END@
  4130  
  4131  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4132  //
  4133  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4134  //
  4135  // This file contains Original Code and/or Modifications of Original Code
  4136  // as defined in and that are subject to the Apple Public Source License
  4137  // Version 2.0 (the 'License'). You may not use this file except in
  4138  // compliance with the License. The rights granted to you under the License
  4139  // may not be used to create, or enable the creation or redistribution of,
  4140  // unlawful or unlicensed copies of an Apple operating system, or to
  4141  // circumvent, violate, or enable the circumvention or violation of, any
  4142  // terms of an Apple operating system software license agreement.
  4143  //
  4144  // Please obtain a copy of the License at
  4145  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4146  //
  4147  // The Original Code and all software distributed under the License are
  4148  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4149  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4150  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4151  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4152  // Please see the License for the specific language governing rights and
  4153  // limitations under the License.
  4154  //
  4155  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4156  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4157  // Copyright (c) 1991, 1993
  4158  //	The Regents of the University of California.  All rights reserved.
  4159  //
  4160  // This code is derived from software contributed to Berkeley by
  4161  // Berkeley Software Design, Inc.
  4162  //
  4163  // Redistribution and use in source and binary forms, with or without
  4164  // modification, are permitted provided that the following conditions
  4165  // are met:
  4166  // 1. Redistributions of source code must retain the above copyright
  4167  //    notice, this list of conditions and the following disclaimer.
  4168  // 2. Redistributions in binary form must reproduce the above copyright
  4169  //    notice, this list of conditions and the following disclaimer in the
  4170  //    documentation and/or other materials provided with the distribution.
  4171  // 3. All advertising materials mentioning features or use of this software
  4172  //    must display the following acknowledgement:
  4173  //	This product includes software developed by the University of
  4174  //	California, Berkeley and its contributors.
  4175  // 4. Neither the name of the University nor the names of its contributors
  4176  //    may be used to endorse or promote products derived from this software
  4177  //    without specific prior written permission.
  4178  //
  4179  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4180  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4181  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4182  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4183  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4184  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4185  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4186  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4187  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4188  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4189  // SUCH DAMAGE.
  4190  //
  4191  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  4192  
  4193  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  4194  //
  4195  // @APPLE_LICENSE_HEADER_START@
  4196  //
  4197  // This file contains Original Code and/or Modifications of Original Code
  4198  // as defined in and that are subject to the Apple Public Source License
  4199  // Version 2.0 (the 'License'). You may not use this file except in
  4200  // compliance with the License. Please obtain a copy of the License at
  4201  // http://www.opensource.apple.com/apsl/ and read it before using this
  4202  // file.
  4203  //
  4204  // The Original Code and all software distributed under the License are
  4205  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4206  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4207  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4208  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4209  // Please see the License for the specific language governing rights and
  4210  // limitations under the License.
  4211  //
  4212  // @APPLE_LICENSE_HEADER_END@
  4213  
  4214  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  4215  //
  4216  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4217  //
  4218  // This file contains Original Code and/or Modifications of Original Code
  4219  // as defined in and that are subject to the Apple Public Source License
  4220  // Version 2.0 (the 'License'). You may not use this file except in
  4221  // compliance with the License. The rights granted to you under the License
  4222  // may not be used to create, or enable the creation or redistribution of,
  4223  // unlawful or unlicensed copies of an Apple operating system, or to
  4224  // circumvent, violate, or enable the circumvention or violation of, any
  4225  // terms of an Apple operating system software license agreement.
  4226  //
  4227  // Please obtain a copy of the License at
  4228  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4229  //
  4230  // The Original Code and all software distributed under the License are
  4231  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4232  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4233  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4234  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4235  // Please see the License for the specific language governing rights and
  4236  // limitations under the License.
  4237  //
  4238  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4239  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  4240  // Copyright (c) 1982, 1986, 1989, 1993, 1994
  4241  //	The Regents of the University of California.  All rights reserved.
  4242  //
  4243  // Redistribution and use in source and binary forms, with or without
  4244  // modification, are permitted provided that the following conditions
  4245  // are met:
  4246  // 1. Redistributions of source code must retain the above copyright
  4247  //    notice, this list of conditions and the following disclaimer.
  4248  // 2. Redistributions in binary form must reproduce the above copyright
  4249  //    notice, this list of conditions and the following disclaimer in the
  4250  //    documentation and/or other materials provided with the distribution.
  4251  // 3. All advertising materials mentioning features or use of this software
  4252  //    must display the following acknowledgement:
  4253  //	This product includes software developed by the University of
  4254  //	California, Berkeley and its contributors.
  4255  // 4. Neither the name of the University nor the names of its contributors
  4256  //    may be used to endorse or promote products derived from this software
  4257  //    without specific prior written permission.
  4258  //
  4259  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4260  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4261  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4262  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4263  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4264  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4265  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4266  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4267  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4268  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4269  // SUCH DAMAGE.
  4270  //
  4271  //	@(#)wait.h	8.2 (Berkeley) 7/10/94
  4272  
  4273  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4274  //
  4275  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4276  //
  4277  // This file contains Original Code and/or Modifications of Original Code
  4278  // as defined in and that are subject to the Apple Public Source License
  4279  // Version 2.0 (the 'License'). You may not use this file except in
  4280  // compliance with the License. The rights granted to you under the License
  4281  // may not be used to create, or enable the creation or redistribution of,
  4282  // unlawful or unlicensed copies of an Apple operating system, or to
  4283  // circumvent, violate, or enable the circumvention or violation of, any
  4284  // terms of an Apple operating system software license agreement.
  4285  //
  4286  // Please obtain a copy of the License at
  4287  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4288  //
  4289  // The Original Code and all software distributed under the License are
  4290  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4291  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4292  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4293  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4294  // Please see the License for the specific language governing rights and
  4295  // limitations under the License.
  4296  //
  4297  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4298  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4299  // Copyright (c) 1991, 1993
  4300  //	The Regents of the University of California.  All rights reserved.
  4301  //
  4302  // This code is derived from software contributed to Berkeley by
  4303  // Berkeley Software Design, Inc.
  4304  //
  4305  // Redistribution and use in source and binary forms, with or without
  4306  // modification, are permitted provided that the following conditions
  4307  // are met:
  4308  // 1. Redistributions of source code must retain the above copyright
  4309  //    notice, this list of conditions and the following disclaimer.
  4310  // 2. Redistributions in binary form must reproduce the above copyright
  4311  //    notice, this list of conditions and the following disclaimer in the
  4312  //    documentation and/or other materials provided with the distribution.
  4313  // 3. All advertising materials mentioning features or use of this software
  4314  //    must display the following acknowledgement:
  4315  //	This product includes software developed by the University of
  4316  //	California, Berkeley and its contributors.
  4317  // 4. Neither the name of the University nor the names of its contributors
  4318  //    may be used to endorse or promote products derived from this software
  4319  //    without specific prior written permission.
  4320  //
  4321  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4322  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4323  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4324  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4325  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4326  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4327  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4328  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4329  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4330  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4331  // SUCH DAMAGE.
  4332  //
  4333  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  4334  
  4335  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4336  //
  4337  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4338  //
  4339  // This file contains Original Code and/or Modifications of Original Code
  4340  // as defined in and that are subject to the Apple Public Source License
  4341  // Version 2.0 (the 'License'). You may not use this file except in
  4342  // compliance with the License. The rights granted to you under the License
  4343  // may not be used to create, or enable the creation or redistribution of,
  4344  // unlawful or unlicensed copies of an Apple operating system, or to
  4345  // circumvent, violate, or enable the circumvention or violation of, any
  4346  // terms of an Apple operating system software license agreement.
  4347  //
  4348  // Please obtain a copy of the License at
  4349  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4350  //
  4351  // The Original Code and all software distributed under the License are
  4352  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4353  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4354  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4355  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4356  // Please see the License for the specific language governing rights and
  4357  // limitations under the License.
  4358  //
  4359  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4360  
  4361  // This file holds definitions relevent to the wait4 system call
  4362  // and the alternate interfaces that use it (wait, wait3, waitpid).
  4363  
  4364  // [XSI] The type idtype_t shall be defined as an enumeration type whose
  4365  // possible values shall include at least P_ALL, P_PID, and P_PGID.
  4366  type Idtype_t = uint32 /* wait.h:83:3 */
  4367  
  4368  // [XSI] The id_t and pid_t types shall be defined as described
  4369  // in <sys/types.h>
  4370  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4371  //
  4372  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4373  //
  4374  // This file contains Original Code and/or Modifications of Original Code
  4375  // as defined in and that are subject to the Apple Public Source License
  4376  // Version 2.0 (the 'License'). You may not use this file except in
  4377  // compliance with the License. The rights granted to you under the License
  4378  // may not be used to create, or enable the creation or redistribution of,
  4379  // unlawful or unlicensed copies of an Apple operating system, or to
  4380  // circumvent, violate, or enable the circumvention or violation of, any
  4381  // terms of an Apple operating system software license agreement.
  4382  //
  4383  // Please obtain a copy of the License at
  4384  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4385  //
  4386  // The Original Code and all software distributed under the License are
  4387  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4388  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4389  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4390  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4391  // Please see the License for the specific language governing rights and
  4392  // limitations under the License.
  4393  //
  4394  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4395  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4396  //
  4397  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4398  //
  4399  // This file contains Original Code and/or Modifications of Original Code
  4400  // as defined in and that are subject to the Apple Public Source License
  4401  // Version 2.0 (the 'License'). You may not use this file except in
  4402  // compliance with the License. The rights granted to you under the License
  4403  // may not be used to create, or enable the creation or redistribution of,
  4404  // unlawful or unlicensed copies of an Apple operating system, or to
  4405  // circumvent, violate, or enable the circumvention or violation of, any
  4406  // terms of an Apple operating system software license agreement.
  4407  //
  4408  // Please obtain a copy of the License at
  4409  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4410  //
  4411  // The Original Code and all software distributed under the License are
  4412  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4413  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4414  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4415  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4416  // Please see the License for the specific language governing rights and
  4417  // limitations under the License.
  4418  //
  4419  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4420  
  4421  type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */
  4422  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4423  //
  4424  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4425  //
  4426  // This file contains Original Code and/or Modifications of Original Code
  4427  // as defined in and that are subject to the Apple Public Source License
  4428  // Version 2.0 (the 'License'). You may not use this file except in
  4429  // compliance with the License. The rights granted to you under the License
  4430  // may not be used to create, or enable the creation or redistribution of,
  4431  // unlawful or unlicensed copies of an Apple operating system, or to
  4432  // circumvent, violate, or enable the circumvention or violation of, any
  4433  // terms of an Apple operating system software license agreement.
  4434  //
  4435  // Please obtain a copy of the License at
  4436  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4437  //
  4438  // The Original Code and all software distributed under the License are
  4439  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4440  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4441  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4442  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4443  // Please see the License for the specific language governing rights and
  4444  // limitations under the License.
  4445  //
  4446  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4447  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4448  //
  4449  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4450  //
  4451  // This file contains Original Code and/or Modifications of Original Code
  4452  // as defined in and that are subject to the Apple Public Source License
  4453  // Version 2.0 (the 'License'). You may not use this file except in
  4454  // compliance with the License. The rights granted to you under the License
  4455  // may not be used to create, or enable the creation or redistribution of,
  4456  // unlawful or unlicensed copies of an Apple operating system, or to
  4457  // circumvent, violate, or enable the circumvention or violation of, any
  4458  // terms of an Apple operating system software license agreement.
  4459  //
  4460  // Please obtain a copy of the License at
  4461  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4462  //
  4463  // The Original Code and all software distributed under the License are
  4464  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4465  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4466  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4467  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4468  // Please see the License for the specific language governing rights and
  4469  // limitations under the License.
  4470  //
  4471  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4472  
  4473  type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t
  4474  
  4475  // [XSI] The siginfo_t type shall be defined as described in <signal.h>
  4476  // [XSI] The rusage structure shall be defined as described in <sys/resource.h>
  4477  // [XSI] Inclusion of the <sys/wait.h> header may also make visible all
  4478  // symbols from <signal.h> and <sys/resource.h>
  4479  //
  4480  // NOTE:	This requirement is currently being satisfied by the direct
  4481  //		inclusion of <sys/signal.h> and <sys/resource.h>, below.
  4482  //
  4483  //		Software should not depend on the exposure of anything other
  4484  //		than the types siginfo_t and struct rusage as a result of
  4485  //		this inclusion.  If you depend on any types or manifest
  4486  //		values othe than siginfo_t and struct rusage from either of
  4487  //		those files, you should explicitly include them yourself, as
  4488  //		well, or in future releases your stware may not compile
  4489  //		without modification.
  4490  // Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
  4491  //
  4492  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4493  //
  4494  // This file contains Original Code and/or Modifications of Original Code
  4495  // as defined in and that are subject to the Apple Public Source License
  4496  // Version 2.0 (the 'License'). You may not use this file except in
  4497  // compliance with the License. The rights granted to you under the License
  4498  // may not be used to create, or enable the creation or redistribution of,
  4499  // unlawful or unlicensed copies of an Apple operating system, or to
  4500  // circumvent, violate, or enable the circumvention or violation of, any
  4501  // terms of an Apple operating system software license agreement.
  4502  //
  4503  // Please obtain a copy of the License at
  4504  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4505  //
  4506  // The Original Code and all software distributed under the License are
  4507  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4508  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4509  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4510  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4511  // Please see the License for the specific language governing rights and
  4512  // limitations under the License.
  4513  //
  4514  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4515  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  4516  // Copyright (c) 1982, 1986, 1989, 1991, 1993
  4517  //	The Regents of the University of California.  All rights reserved.
  4518  // (c) UNIX System Laboratories, Inc.
  4519  // All or some portions of this file are derived from material licensed
  4520  // to the University of California by American Telephone and Telegraph
  4521  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  4522  // the permission of UNIX System Laboratories, Inc.
  4523  //
  4524  // Redistribution and use in source and binary forms, with or without
  4525  // modification, are permitted provided that the following conditions
  4526  // are met:
  4527  // 1. Redistributions of source code must retain the above copyright
  4528  //    notice, this list of conditions and the following disclaimer.
  4529  // 2. Redistributions in binary form must reproduce the above copyright
  4530  //    notice, this list of conditions and the following disclaimer in the
  4531  //    documentation and/or other materials provided with the distribution.
  4532  // 3. All advertising materials mentioning features or use of this software
  4533  //    must display the following acknowledgement:
  4534  //	This product includes software developed by the University of
  4535  //	California, Berkeley and its contributors.
  4536  // 4. Neither the name of the University nor the names of its contributors
  4537  //    may be used to endorse or promote products derived from this software
  4538  //    without specific prior written permission.
  4539  //
  4540  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4541  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4542  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4543  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4544  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4545  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4546  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4547  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4548  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4549  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4550  // SUCH DAMAGE.
  4551  //
  4552  //	@(#)signal.h	8.2 (Berkeley) 1/21/94
  4553  
  4554  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4555  //
  4556  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4557  //
  4558  // This file contains Original Code and/or Modifications of Original Code
  4559  // as defined in and that are subject to the Apple Public Source License
  4560  // Version 2.0 (the 'License'). You may not use this file except in
  4561  // compliance with the License. The rights granted to you under the License
  4562  // may not be used to create, or enable the creation or redistribution of,
  4563  // unlawful or unlicensed copies of an Apple operating system, or to
  4564  // circumvent, violate, or enable the circumvention or violation of, any
  4565  // terms of an Apple operating system software license agreement.
  4566  //
  4567  // Please obtain a copy of the License at
  4568  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4569  //
  4570  // The Original Code and all software distributed under the License are
  4571  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4572  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4573  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4574  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4575  // Please see the License for the specific language governing rights and
  4576  // limitations under the License.
  4577  //
  4578  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4579  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4580  // Copyright (c) 1991, 1993
  4581  //	The Regents of the University of California.  All rights reserved.
  4582  //
  4583  // This code is derived from software contributed to Berkeley by
  4584  // Berkeley Software Design, Inc.
  4585  //
  4586  // Redistribution and use in source and binary forms, with or without
  4587  // modification, are permitted provided that the following conditions
  4588  // are met:
  4589  // 1. Redistributions of source code must retain the above copyright
  4590  //    notice, this list of conditions and the following disclaimer.
  4591  // 2. Redistributions in binary form must reproduce the above copyright
  4592  //    notice, this list of conditions and the following disclaimer in the
  4593  //    documentation and/or other materials provided with the distribution.
  4594  // 3. All advertising materials mentioning features or use of this software
  4595  //    must display the following acknowledgement:
  4596  //	This product includes software developed by the University of
  4597  //	California, Berkeley and its contributors.
  4598  // 4. Neither the name of the University nor the names of its contributors
  4599  //    may be used to endorse or promote products derived from this software
  4600  //    without specific prior written permission.
  4601  //
  4602  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4603  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4604  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4605  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4606  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4607  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4608  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4609  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4610  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4611  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4612  // SUCH DAMAGE.
  4613  //
  4614  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  4615  
  4616  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  4617  //
  4618  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4619  //
  4620  // This file contains Original Code and/or Modifications of Original Code
  4621  // as defined in and that are subject to the Apple Public Source License
  4622  // Version 2.0 (the 'License'). You may not use this file except in
  4623  // compliance with the License. The rights granted to you under the License
  4624  // may not be used to create, or enable the creation or redistribution of,
  4625  // unlawful or unlicensed copies of an Apple operating system, or to
  4626  // circumvent, violate, or enable the circumvention or violation of, any
  4627  // terms of an Apple operating system software license agreement.
  4628  //
  4629  // Please obtain a copy of the License at
  4630  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4631  //
  4632  // The Original Code and all software distributed under the License are
  4633  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4634  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4635  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4636  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4637  // Please see the License for the specific language governing rights and
  4638  // limitations under the License.
  4639  //
  4640  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4641  
  4642  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  4643  //
  4644  // @APPLE_LICENSE_HEADER_START@
  4645  //
  4646  // This file contains Original Code and/or Modifications of Original Code
  4647  // as defined in and that are subject to the Apple Public Source License
  4648  // Version 2.0 (the 'License'). You may not use this file except in
  4649  // compliance with the License. Please obtain a copy of the License at
  4650  // http://www.opensource.apple.com/apsl/ and read it before using this
  4651  // file.
  4652  //
  4653  // The Original Code and all software distributed under the License are
  4654  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4655  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4656  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4657  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4658  // Please see the License for the specific language governing rights and
  4659  // limitations under the License.
  4660  //
  4661  // @APPLE_LICENSE_HEADER_END@
  4662  
  4663  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4664  //
  4665  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4666  //
  4667  // This file contains Original Code and/or Modifications of Original Code
  4668  // as defined in and that are subject to the Apple Public Source License
  4669  // Version 2.0 (the 'License'). You may not use this file except in
  4670  // compliance with the License. The rights granted to you under the License
  4671  // may not be used to create, or enable the creation or redistribution of,
  4672  // unlawful or unlicensed copies of an Apple operating system, or to
  4673  // circumvent, violate, or enable the circumvention or violation of, any
  4674  // terms of an Apple operating system software license agreement.
  4675  //
  4676  // Please obtain a copy of the License at
  4677  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4678  //
  4679  // The Original Code and all software distributed under the License are
  4680  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4681  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4682  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4683  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4684  // Please see the License for the specific language governing rights and
  4685  // limitations under the License.
  4686  //
  4687  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4688  
  4689  // Copyright (c) 2000-2009 Apple, Inc. All rights reserved.
  4690  // Copyright (c) 1992 NeXT Computer, Inc.
  4691  //
  4692  
  4693  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4694  //
  4695  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4696  //
  4697  // This file contains Original Code and/or Modifications of Original Code
  4698  // as defined in and that are subject to the Apple Public Source License
  4699  // Version 2.0 (the 'License'). You may not use this file except in
  4700  // compliance with the License. The rights granted to you under the License
  4701  // may not be used to create, or enable the creation or redistribution of,
  4702  // unlawful or unlicensed copies of an Apple operating system, or to
  4703  // circumvent, violate, or enable the circumvention or violation of, any
  4704  // terms of an Apple operating system software license agreement.
  4705  //
  4706  // Please obtain a copy of the License at
  4707  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4708  //
  4709  // The Original Code and all software distributed under the License are
  4710  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4711  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4712  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4713  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4714  // Please see the License for the specific language governing rights and
  4715  // limitations under the License.
  4716  //
  4717  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4718  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4719  // Copyright (c) 1991, 1993
  4720  //	The Regents of the University of California.  All rights reserved.
  4721  //
  4722  // This code is derived from software contributed to Berkeley by
  4723  // Berkeley Software Design, Inc.
  4724  //
  4725  // Redistribution and use in source and binary forms, with or without
  4726  // modification, are permitted provided that the following conditions
  4727  // are met:
  4728  // 1. Redistributions of source code must retain the above copyright
  4729  //    notice, this list of conditions and the following disclaimer.
  4730  // 2. Redistributions in binary form must reproduce the above copyright
  4731  //    notice, this list of conditions and the following disclaimer in the
  4732  //    documentation and/or other materials provided with the distribution.
  4733  // 3. All advertising materials mentioning features or use of this software
  4734  //    must display the following acknowledgement:
  4735  //	This product includes software developed by the University of
  4736  //	California, Berkeley and its contributors.
  4737  // 4. Neither the name of the University nor the names of its contributors
  4738  //    may be used to endorse or promote products derived from this software
  4739  //    without specific prior written permission.
  4740  //
  4741  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4742  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4743  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4744  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4745  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4746  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4747  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4748  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4749  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4750  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4751  // SUCH DAMAGE.
  4752  //
  4753  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  4754  
  4755  type Sig_atomic_t = int32 /* signal.h:17:13 */
  4756  
  4757  // Language spec sez we must list exactly one parameter, even though we
  4758  // actually supply three.  Ugh!
  4759  // SIG_HOLD is chosen to avoid KERN_SIG_* values in <sys/signalvar.h>
  4760  
  4761  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4762  //
  4763  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4764  //
  4765  // This file contains Original Code and/or Modifications of Original Code
  4766  // as defined in and that are subject to the Apple Public Source License
  4767  // Version 2.0 (the 'License'). You may not use this file except in
  4768  // compliance with the License. The rights granted to you under the License
  4769  // may not be used to create, or enable the creation or redistribution of,
  4770  // unlawful or unlicensed copies of an Apple operating system, or to
  4771  // circumvent, violate, or enable the circumvention or violation of, any
  4772  // terms of an Apple operating system software license agreement.
  4773  //
  4774  // Please obtain a copy of the License at
  4775  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4776  //
  4777  // The Original Code and all software distributed under the License are
  4778  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4779  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4780  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4781  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4782  // Please see the License for the specific language governing rights and
  4783  // limitations under the License.
  4784  //
  4785  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4786  
  4787  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4788  //
  4789  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4790  //
  4791  // This file contains Original Code and/or Modifications of Original Code
  4792  // as defined in and that are subject to the Apple Public Source License
  4793  // Version 2.0 (the 'License'). You may not use this file except in
  4794  // compliance with the License. The rights granted to you under the License
  4795  // may not be used to create, or enable the creation or redistribution of,
  4796  // unlawful or unlicensed copies of an Apple operating system, or to
  4797  // circumvent, violate, or enable the circumvention or violation of, any
  4798  // terms of an Apple operating system software license agreement.
  4799  //
  4800  // Please obtain a copy of the License at
  4801  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4802  //
  4803  // The Original Code and all software distributed under the License are
  4804  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4805  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4806  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4807  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4808  // Please see the License for the specific language governing rights and
  4809  // limitations under the License.
  4810  //
  4811  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4812  
  4813  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4814  //
  4815  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4816  //
  4817  // This file contains Original Code and/or Modifications of Original Code
  4818  // as defined in and that are subject to the Apple Public Source License
  4819  // Version 2.0 (the 'License'). You may not use this file except in
  4820  // compliance with the License. The rights granted to you under the License
  4821  // may not be used to create, or enable the creation or redistribution of,
  4822  // unlawful or unlicensed copies of an Apple operating system, or to
  4823  // circumvent, violate, or enable the circumvention or violation of, any
  4824  // terms of an Apple operating system software license agreement.
  4825  //
  4826  // Please obtain a copy of the License at
  4827  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4828  //
  4829  // The Original Code and all software distributed under the License are
  4830  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4831  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4832  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4833  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4834  // Please see the License for the specific language governing rights and
  4835  // limitations under the License.
  4836  //
  4837  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4838  
  4839  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4840  //
  4841  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4842  //
  4843  // This file contains Original Code and/or Modifications of Original Code
  4844  // as defined in and that are subject to the Apple Public Source License
  4845  // Version 2.0 (the 'License'). You may not use this file except in
  4846  // compliance with the License. The rights granted to you under the License
  4847  // may not be used to create, or enable the creation or redistribution of,
  4848  // unlawful or unlicensed copies of an Apple operating system, or to
  4849  // circumvent, violate, or enable the circumvention or violation of, any
  4850  // terms of an Apple operating system software license agreement.
  4851  //
  4852  // Please obtain a copy of the License at
  4853  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4854  //
  4855  // The Original Code and all software distributed under the License are
  4856  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4857  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4858  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4859  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4860  // Please see the License for the specific language governing rights and
  4861  // limitations under the License.
  4862  //
  4863  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4864  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4865  // Copyright (c) 1991, 1993
  4866  //	The Regents of the University of California.  All rights reserved.
  4867  //
  4868  // This code is derived from software contributed to Berkeley by
  4869  // Berkeley Software Design, Inc.
  4870  //
  4871  // Redistribution and use in source and binary forms, with or without
  4872  // modification, are permitted provided that the following conditions
  4873  // are met:
  4874  // 1. Redistributions of source code must retain the above copyright
  4875  //    notice, this list of conditions and the following disclaimer.
  4876  // 2. Redistributions in binary form must reproduce the above copyright
  4877  //    notice, this list of conditions and the following disclaimer in the
  4878  //    documentation and/or other materials provided with the distribution.
  4879  // 3. All advertising materials mentioning features or use of this software
  4880  //    must display the following acknowledgement:
  4881  //	This product includes software developed by the University of
  4882  //	California, Berkeley and its contributors.
  4883  // 4. Neither the name of the University nor the names of its contributors
  4884  //    may be used to endorse or promote products derived from this software
  4885  //    without specific prior written permission.
  4886  //
  4887  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4888  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4889  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4890  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4891  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4892  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4893  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4894  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4895  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4896  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4897  // SUCH DAMAGE.
  4898  //
  4899  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  4900  
  4901  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  4902  //
  4903  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4904  //
  4905  // This file contains Original Code and/or Modifications of Original Code
  4906  // as defined in and that are subject to the Apple Public Source License
  4907  // Version 2.0 (the 'License'). You may not use this file except in
  4908  // compliance with the License. The rights granted to you under the License
  4909  // may not be used to create, or enable the creation or redistribution of,
  4910  // unlawful or unlicensed copies of an Apple operating system, or to
  4911  // circumvent, violate, or enable the circumvention or violation of, any
  4912  // terms of an Apple operating system software license agreement.
  4913  //
  4914  // Please obtain a copy of the License at
  4915  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4916  //
  4917  // The Original Code and all software distributed under the License are
  4918  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4919  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4920  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4921  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4922  // Please see the License for the specific language governing rights and
  4923  // limitations under the License.
  4924  //
  4925  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4926  
  4927  // Copyright (c) 2017 Apple Inc. All rights reserved.
  4928  //
  4929  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4930  //
  4931  // This file contains Original Code and/or Modifications of Original Code
  4932  // as defined in and that are subject to the Apple Public Source License
  4933  // Version 2.0 (the 'License'). You may not use this file except in
  4934  // compliance with the License. The rights granted to you under the License
  4935  // may not be used to create, or enable the creation or redistribution of,
  4936  // unlawful or unlicensed copies of an Apple operating system, or to
  4937  // circumvent, violate, or enable the circumvention or violation of, any
  4938  // terms of an Apple operating system software license agreement.
  4939  //
  4940  // Please obtain a copy of the License at
  4941  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4942  //
  4943  // The Original Code and all software distributed under the License are
  4944  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4945  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4946  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4947  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4948  // Please see the License for the specific language governing rights and
  4949  // limitations under the License.
  4950  //
  4951  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4952  
  4953  // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
  4954  //
  4955  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4956  //
  4957  // This file contains Original Code and/or Modifications of Original Code
  4958  // as defined in and that are subject to the Apple Public Source License
  4959  // Version 2.0 (the 'License'). You may not use this file except in
  4960  // compliance with the License. The rights granted to you under the License
  4961  // may not be used to create, or enable the creation or redistribution of,
  4962  // unlawful or unlicensed copies of an Apple operating system, or to
  4963  // circumvent, violate, or enable the circumvention or violation of, any
  4964  // terms of an Apple operating system software license agreement.
  4965  //
  4966  // Please obtain a copy of the License at
  4967  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4968  //
  4969  // The Original Code and all software distributed under the License are
  4970  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4971  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4972  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4973  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4974  // Please see the License for the specific language governing rights and
  4975  // limitations under the License.
  4976  //
  4977  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4978  // @OSF_COPYRIGHT@
  4979  
  4980  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4981  //
  4982  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4983  //
  4984  // This file contains Original Code and/or Modifications of Original Code
  4985  // as defined in and that are subject to the Apple Public Source License
  4986  // Version 2.0 (the 'License'). You may not use this file except in
  4987  // compliance with the License. The rights granted to you under the License
  4988  // may not be used to create, or enable the creation or redistribution of,
  4989  // unlawful or unlicensed copies of an Apple operating system, or to
  4990  // circumvent, violate, or enable the circumvention or violation of, any
  4991  // terms of an Apple operating system software license agreement.
  4992  //
  4993  // Please obtain a copy of the License at
  4994  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4995  //
  4996  // The Original Code and all software distributed under the License are
  4997  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4998  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4999  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5000  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5001  // Please see the License for the specific language governing rights and
  5002  // limitations under the License.
  5003  //
  5004  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5005  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5006  // Copyright (c) 1991, 1993
  5007  //	The Regents of the University of California.  All rights reserved.
  5008  //
  5009  // This code is derived from software contributed to Berkeley by
  5010  // Berkeley Software Design, Inc.
  5011  //
  5012  // Redistribution and use in source and binary forms, with or without
  5013  // modification, are permitted provided that the following conditions
  5014  // are met:
  5015  // 1. Redistributions of source code must retain the above copyright
  5016  //    notice, this list of conditions and the following disclaimer.
  5017  // 2. Redistributions in binary form must reproduce the above copyright
  5018  //    notice, this list of conditions and the following disclaimer in the
  5019  //    documentation and/or other materials provided with the distribution.
  5020  // 3. All advertising materials mentioning features or use of this software
  5021  //    must display the following acknowledgement:
  5022  //	This product includes software developed by the University of
  5023  //	California, Berkeley and its contributors.
  5024  // 4. Neither the name of the University nor the names of its contributors
  5025  //    may be used to endorse or promote products derived from this software
  5026  //    without specific prior written permission.
  5027  //
  5028  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5029  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5030  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5031  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5032  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5033  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5034  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5035  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5036  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5037  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5038  // SUCH DAMAGE.
  5039  //
  5040  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  5041  
  5042  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5043  //
  5044  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5045  //
  5046  // This file contains Original Code and/or Modifications of Original Code
  5047  // as defined in and that are subject to the Apple Public Source License
  5048  // Version 2.0 (the 'License'). You may not use this file except in
  5049  // compliance with the License. The rights granted to you under the License
  5050  // may not be used to create, or enable the creation or redistribution of,
  5051  // unlawful or unlicensed copies of an Apple operating system, or to
  5052  // circumvent, violate, or enable the circumvention or violation of, any
  5053  // terms of an Apple operating system software license agreement.
  5054  //
  5055  // Please obtain a copy of the License at
  5056  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5057  //
  5058  // The Original Code and all software distributed under the License are
  5059  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5060  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5061  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5062  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5063  // Please see the License for the specific language governing rights and
  5064  // limitations under the License.
  5065  //
  5066  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5067  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5068  
  5069  type X__darwin_arm_exception_state = struct {
  5070  	F__exception X__uint32_t
  5071  	F__fsr       X__uint32_t
  5072  	F__far       X__uint32_t
  5073  } /* _structs.h:41:1 */
  5074  
  5075  type X__darwin_arm_exception_state64 = struct {
  5076  	F__far       X__uint64_t
  5077  	F__esr       X__uint32_t
  5078  	F__exception X__uint32_t
  5079  } /* _structs.h:59:1 */
  5080  
  5081  type X__darwin_arm_thread_state = struct {
  5082  	F__r    [13]X__uint32_t
  5083  	F__sp   X__uint32_t
  5084  	F__lr   X__uint32_t
  5085  	F__pc   X__uint32_t
  5086  	F__cpsr X__uint32_t
  5087  } /* _structs.h:77:1 */
  5088  
  5089  // By default, the pointer fields in the arm_thread_state64_t structure are
  5090  // opaque on the arm64e architecture and require the use of accessor macros.
  5091  // This mode can also be enabled on the arm64 architecture by building with
  5092  // -D__DARWIN_OPAQUE_ARM_THREAD_STATE64=1.
  5093  
  5094  type X__darwin_arm_thread_state64 = struct {
  5095  	F__x    [29]X__uint64_t
  5096  	F__fp   X__uint64_t
  5097  	F__lr   X__uint64_t
  5098  	F__sp   X__uint64_t
  5099  	F__pc   X__uint64_t
  5100  	F__cpsr X__uint32_t
  5101  	F__pad  X__uint32_t
  5102  } /* _structs.h:136:1 */
  5103  
  5104  // Accessor macros for arm_thread_state64_t pointer fields
  5105  
  5106  // Return pc field of arm_thread_state64_t as a data pointer value
  5107  // Return pc field of arm_thread_state64_t as a function pointer
  5108  // Set pc field of arm_thread_state64_t to a function pointer
  5109  // Return lr field of arm_thread_state64_t as a data pointer value
  5110  // Return lr field of arm_thread_state64_t as a function pointer
  5111  // Set lr field of arm_thread_state64_t to a function pointer
  5112  // Return sp field of arm_thread_state64_t as a data pointer value
  5113  // Set sp field of arm_thread_state64_t to a data pointer value
  5114  // Return fp field of arm_thread_state64_t as a data pointer value
  5115  // Set fp field of arm_thread_state64_t to a data pointer value
  5116  // Strip ptr auth bits from pc, lr, sp and fp field of arm_thread_state64_t
  5117  
  5118  type X__darwin_arm_vfp_state = struct {
  5119  	F__r     [64]X__uint32_t
  5120  	F__fpscr X__uint32_t
  5121  } /* _structs.h:424:1 */
  5122  
  5123  type X__darwin_arm_neon_state64 = struct {
  5124  	F__v    [32]X__uint128_t
  5125  	F__fpsr X__uint32_t
  5126  	F__fpcr X__uint32_t
  5127  } /* _structs.h:443:1 */
  5128  
  5129  type X__darwin_arm_neon_state = struct {
  5130  	F__v    [16]X__uint128_t
  5131  	F__fpsr X__uint32_t
  5132  	F__fpcr X__uint32_t
  5133  } /* _structs.h:450:1 */
  5134  
  5135  type X__arm_pagein_state = struct{ F__pagein_error int32 } /* _structs.h:514:1 */
  5136  
  5137  // Debug State
  5138  
  5139  // ARM's arm_debug_state is ARM64's arm_legacy_debug_state
  5140  
  5141  type X__arm_legacy_debug_state = struct {
  5142  	F__bvr [16]X__uint32_t
  5143  	F__bcr [16]X__uint32_t
  5144  	F__wvr [16]X__uint32_t
  5145  	F__wcr [16]X__uint32_t
  5146  } /* _structs.h:551:1 */
  5147  
  5148  type X__darwin_arm_debug_state32 = struct {
  5149  	F__bvr       [16]X__uint32_t
  5150  	F__bcr       [16]X__uint32_t
  5151  	F__wvr       [16]X__uint32_t
  5152  	F__wcr       [16]X__uint32_t
  5153  	F__mdscr_el1 X__uint64_t
  5154  } /* _structs.h:574:1 */
  5155  
  5156  type X__darwin_arm_debug_state64 = struct {
  5157  	F__bvr       [16]X__uint64_t
  5158  	F__bcr       [16]X__uint64_t
  5159  	F__wvr       [16]X__uint64_t
  5160  	F__wcr       [16]X__uint64_t
  5161  	F__mdscr_el1 X__uint64_t
  5162  } /* _structs.h:584:1 */
  5163  
  5164  type X__darwin_arm_cpmu_state64 = struct{ F__ctrs [16]X__uint64_t } /* _structs.h:616:1 */
  5165  
  5166  type X__darwin_mcontext32 = struct {
  5167  	F__es struct {
  5168  		F__exception X__uint32_t
  5169  		F__fsr       X__uint32_t
  5170  		F__far       X__uint32_t
  5171  	}
  5172  	F__ss struct {
  5173  		F__r    [13]X__uint32_t
  5174  		F__sp   X__uint32_t
  5175  		F__lr   X__uint32_t
  5176  		F__pc   X__uint32_t
  5177  		F__cpsr X__uint32_t
  5178  	}
  5179  	F__fs struct {
  5180  		F__r     [64]X__uint32_t
  5181  		F__fpscr X__uint32_t
  5182  	}
  5183  } /* _mcontext.h:41:1 */
  5184  
  5185  type X__darwin_mcontext64 = struct {
  5186  	F__es struct {
  5187  		F__far       X__uint64_t
  5188  		F__esr       X__uint32_t
  5189  		F__exception X__uint32_t
  5190  	}
  5191  	F__ss struct {
  5192  		F__x    [29]X__uint64_t
  5193  		F__fp   X__uint64_t
  5194  		F__lr   X__uint64_t
  5195  		F__sp   X__uint64_t
  5196  		F__pc   X__uint64_t
  5197  		F__cpsr X__uint32_t
  5198  		F__pad  X__uint32_t
  5199  	}
  5200  	F__ns struct {
  5201  		F__v    [32]X__uint128_t
  5202  		F__fpsr X__uint32_t
  5203  		F__fpcr X__uint32_t
  5204  	}
  5205  } /* _mcontext.h:64:1 */
  5206  
  5207  type Mcontext_t = uintptr /* _mcontext.h:85:33 */
  5208  
  5209  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5210  //
  5211  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5212  //
  5213  // This file contains Original Code and/or Modifications of Original Code
  5214  // as defined in and that are subject to the Apple Public Source License
  5215  // Version 2.0 (the 'License'). You may not use this file except in
  5216  // compliance with the License. The rights granted to you under the License
  5217  // may not be used to create, or enable the creation or redistribution of,
  5218  // unlawful or unlicensed copies of an Apple operating system, or to
  5219  // circumvent, violate, or enable the circumvention or violation of, any
  5220  // terms of an Apple operating system software license agreement.
  5221  //
  5222  // Please obtain a copy of the License at
  5223  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5224  //
  5225  // The Original Code and all software distributed under the License are
  5226  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5227  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5228  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5229  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5230  // Please see the License for the specific language governing rights and
  5231  // limitations under the License.
  5232  //
  5233  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5234  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  5235  //
  5236  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5237  //
  5238  // This file contains Original Code and/or Modifications of Original Code
  5239  // as defined in and that are subject to the Apple Public Source License
  5240  // Version 2.0 (the 'License'). You may not use this file except in
  5241  // compliance with the License. The rights granted to you under the License
  5242  // may not be used to create, or enable the creation or redistribution of,
  5243  // unlawful or unlicensed copies of an Apple operating system, or to
  5244  // circumvent, violate, or enable the circumvention or violation of, any
  5245  // terms of an Apple operating system software license agreement.
  5246  //
  5247  // Please obtain a copy of the License at
  5248  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5249  //
  5250  // The Original Code and all software distributed under the License are
  5251  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5252  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5253  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5254  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5255  // Please see the License for the specific language governing rights and
  5256  // limitations under the License.
  5257  //
  5258  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5259  
  5260  type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  5261  
  5262  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5263  //
  5264  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5265  //
  5266  // This file contains Original Code and/or Modifications of Original Code
  5267  // as defined in and that are subject to the Apple Public Source License
  5268  // Version 2.0 (the 'License'). You may not use this file except in
  5269  // compliance with the License. The rights granted to you under the License
  5270  // may not be used to create, or enable the creation or redistribution of,
  5271  // unlawful or unlicensed copies of an Apple operating system, or to
  5272  // circumvent, violate, or enable the circumvention or violation of, any
  5273  // terms of an Apple operating system software license agreement.
  5274  //
  5275  // Please obtain a copy of the License at
  5276  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5277  //
  5278  // The Original Code and all software distributed under the License are
  5279  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5280  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5281  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5282  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5283  // Please see the License for the specific language governing rights and
  5284  // limitations under the License.
  5285  //
  5286  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5287  
  5288  // Structure used in sigaltstack call.
  5289  
  5290  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  5291  //
  5292  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5293  //
  5294  // This file contains Original Code and/or Modifications of Original Code
  5295  // as defined in and that are subject to the Apple Public Source License
  5296  // Version 2.0 (the 'License'). You may not use this file except in
  5297  // compliance with the License. The rights granted to you under the License
  5298  // may not be used to create, or enable the creation or redistribution of,
  5299  // unlawful or unlicensed copies of an Apple operating system, or to
  5300  // circumvent, violate, or enable the circumvention or violation of, any
  5301  // terms of an Apple operating system software license agreement.
  5302  //
  5303  // Please obtain a copy of the License at
  5304  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5305  //
  5306  // The Original Code and all software distributed under the License are
  5307  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5308  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5309  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5310  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5311  // Please see the License for the specific language governing rights and
  5312  // limitations under the License.
  5313  //
  5314  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5315  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5316  // Copyright (c) 1991, 1993
  5317  //	The Regents of the University of California.  All rights reserved.
  5318  //
  5319  // This code is derived from software contributed to Berkeley by
  5320  // Berkeley Software Design, Inc.
  5321  //
  5322  // Redistribution and use in source and binary forms, with or without
  5323  // modification, are permitted provided that the following conditions
  5324  // are met:
  5325  // 1. Redistributions of source code must retain the above copyright
  5326  //    notice, this list of conditions and the following disclaimer.
  5327  // 2. Redistributions in binary form must reproduce the above copyright
  5328  //    notice, this list of conditions and the following disclaimer in the
  5329  //    documentation and/or other materials provided with the distribution.
  5330  // 3. All advertising materials mentioning features or use of this software
  5331  //    must display the following acknowledgement:
  5332  //	This product includes software developed by the University of
  5333  //	California, Berkeley and its contributors.
  5334  // 4. Neither the name of the University nor the names of its contributors
  5335  //    may be used to endorse or promote products derived from this software
  5336  //    without specific prior written permission.
  5337  //
  5338  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5339  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5340  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5341  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5342  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5343  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5344  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5345  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5346  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5347  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5348  // SUCH DAMAGE.
  5349  //
  5350  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  5351  
  5352  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5353  //
  5354  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5355  //
  5356  // This file contains Original Code and/or Modifications of Original Code
  5357  // as defined in and that are subject to the Apple Public Source License
  5358  // Version 2.0 (the 'License'). You may not use this file except in
  5359  // compliance with the License. The rights granted to you under the License
  5360  // may not be used to create, or enable the creation or redistribution of,
  5361  // unlawful or unlicensed copies of an Apple operating system, or to
  5362  // circumvent, violate, or enable the circumvention or violation of, any
  5363  // terms of an Apple operating system software license agreement.
  5364  //
  5365  // Please obtain a copy of the License at
  5366  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5367  //
  5368  // The Original Code and all software distributed under the License are
  5369  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5370  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5371  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5372  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5373  // Please see the License for the specific language governing rights and
  5374  // limitations under the License.
  5375  //
  5376  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5377  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5378  
  5379  type X__darwin_sigaltstack = struct {
  5380  	Fss_sp       uintptr
  5381  	Fss_size     X__darwin_size_t
  5382  	Fss_flags    int32
  5383  	F__ccgo_pad1 [4]byte
  5384  } /* _sigaltstack.h:42:1 */
  5385  
  5386  type Stack_t = X__darwin_sigaltstack /* _sigaltstack.h:48:33 */ // [???] signal stack
  5387  
  5388  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5389  //
  5390  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5391  //
  5392  // This file contains Original Code and/or Modifications of Original Code
  5393  // as defined in and that are subject to the Apple Public Source License
  5394  // Version 2.0 (the 'License'). You may not use this file except in
  5395  // compliance with the License. The rights granted to you under the License
  5396  // may not be used to create, or enable the creation or redistribution of,
  5397  // unlawful or unlicensed copies of an Apple operating system, or to
  5398  // circumvent, violate, or enable the circumvention or violation of, any
  5399  // terms of an Apple operating system software license agreement.
  5400  //
  5401  // Please obtain a copy of the License at
  5402  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5403  //
  5404  // The Original Code and all software distributed under the License are
  5405  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5406  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5407  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5408  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5409  // Please see the License for the specific language governing rights and
  5410  // limitations under the License.
  5411  //
  5412  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5413  
  5414  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  5415  //
  5416  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5417  //
  5418  // This file contains Original Code and/or Modifications of Original Code
  5419  // as defined in and that are subject to the Apple Public Source License
  5420  // Version 2.0 (the 'License'). You may not use this file except in
  5421  // compliance with the License. The rights granted to you under the License
  5422  // may not be used to create, or enable the creation or redistribution of,
  5423  // unlawful or unlicensed copies of an Apple operating system, or to
  5424  // circumvent, violate, or enable the circumvention or violation of, any
  5425  // terms of an Apple operating system software license agreement.
  5426  //
  5427  // Please obtain a copy of the License at
  5428  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5429  //
  5430  // The Original Code and all software distributed under the License are
  5431  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5432  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5433  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5434  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5435  // Please see the License for the specific language governing rights and
  5436  // limitations under the License.
  5437  //
  5438  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5439  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5440  // Copyright (c) 1991, 1993
  5441  //	The Regents of the University of California.  All rights reserved.
  5442  //
  5443  // This code is derived from software contributed to Berkeley by
  5444  // Berkeley Software Design, Inc.
  5445  //
  5446  // Redistribution and use in source and binary forms, with or without
  5447  // modification, are permitted provided that the following conditions
  5448  // are met:
  5449  // 1. Redistributions of source code must retain the above copyright
  5450  //    notice, this list of conditions and the following disclaimer.
  5451  // 2. Redistributions in binary form must reproduce the above copyright
  5452  //    notice, this list of conditions and the following disclaimer in the
  5453  //    documentation and/or other materials provided with the distribution.
  5454  // 3. All advertising materials mentioning features or use of this software
  5455  //    must display the following acknowledgement:
  5456  //	This product includes software developed by the University of
  5457  //	California, Berkeley and its contributors.
  5458  // 4. Neither the name of the University nor the names of its contributors
  5459  //    may be used to endorse or promote products derived from this software
  5460  //    without specific prior written permission.
  5461  //
  5462  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5463  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5464  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5465  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5466  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5467  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5468  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5469  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5470  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5471  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5472  // SUCH DAMAGE.
  5473  //
  5474  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  5475  
  5476  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5477  //
  5478  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5479  //
  5480  // This file contains Original Code and/or Modifications of Original Code
  5481  // as defined in and that are subject to the Apple Public Source License
  5482  // Version 2.0 (the 'License'). You may not use this file except in
  5483  // compliance with the License. The rights granted to you under the License
  5484  // may not be used to create, or enable the creation or redistribution of,
  5485  // unlawful or unlicensed copies of an Apple operating system, or to
  5486  // circumvent, violate, or enable the circumvention or violation of, any
  5487  // terms of an Apple operating system software license agreement.
  5488  //
  5489  // Please obtain a copy of the License at
  5490  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5491  //
  5492  // The Original Code and all software distributed under the License are
  5493  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5494  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5495  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5496  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5497  // Please see the License for the specific language governing rights and
  5498  // limitations under the License.
  5499  //
  5500  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5501  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5502  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5503  //
  5504  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5505  //
  5506  // This file contains Original Code and/or Modifications of Original Code
  5507  // as defined in and that are subject to the Apple Public Source License
  5508  // Version 2.0 (the 'License'). You may not use this file except in
  5509  // compliance with the License. The rights granted to you under the License
  5510  // may not be used to create, or enable the creation or redistribution of,
  5511  // unlawful or unlicensed copies of an Apple operating system, or to
  5512  // circumvent, violate, or enable the circumvention or violation of, any
  5513  // terms of an Apple operating system software license agreement.
  5514  //
  5515  // Please obtain a copy of the License at
  5516  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5517  //
  5518  // The Original Code and all software distributed under the License are
  5519  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5520  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5521  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5522  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5523  // Please see the License for the specific language governing rights and
  5524  // limitations under the License.
  5525  //
  5526  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5527  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5528  //
  5529  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5530  //
  5531  // This file contains Original Code and/or Modifications of Original Code
  5532  // as defined in and that are subject to the Apple Public Source License
  5533  // Version 2.0 (the 'License'). You may not use this file except in
  5534  // compliance with the License. The rights granted to you under the License
  5535  // may not be used to create, or enable the creation or redistribution of,
  5536  // unlawful or unlicensed copies of an Apple operating system, or to
  5537  // circumvent, violate, or enable the circumvention or violation of, any
  5538  // terms of an Apple operating system software license agreement.
  5539  //
  5540  // Please obtain a copy of the License at
  5541  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5542  //
  5543  // The Original Code and all software distributed under the License are
  5544  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5545  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5546  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5547  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5548  // Please see the License for the specific language governing rights and
  5549  // limitations under the License.
  5550  //
  5551  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5552  
  5553  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5554  //
  5555  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5556  //
  5557  // This file contains Original Code and/or Modifications of Original Code
  5558  // as defined in and that are subject to the Apple Public Source License
  5559  // Version 2.0 (the 'License'). You may not use this file except in
  5560  // compliance with the License. The rights granted to you under the License
  5561  // may not be used to create, or enable the creation or redistribution of,
  5562  // unlawful or unlicensed copies of an Apple operating system, or to
  5563  // circumvent, violate, or enable the circumvention or violation of, any
  5564  // terms of an Apple operating system software license agreement.
  5565  //
  5566  // Please obtain a copy of the License at
  5567  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5568  //
  5569  // The Original Code and all software distributed under the License are
  5570  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5571  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5572  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5573  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5574  // Please see the License for the specific language governing rights and
  5575  // limitations under the License.
  5576  //
  5577  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5578  
  5579  // Structure used in sigaltstack call.
  5580  
  5581  type X__darwin_ucontext = struct {
  5582  	Fuc_onstack int32
  5583  	Fuc_sigmask X__darwin_sigset_t
  5584  	Fuc_stack   struct {
  5585  		Fss_sp       uintptr
  5586  		Fss_size     X__darwin_size_t
  5587  		Fss_flags    int32
  5588  		F__ccgo_pad1 [4]byte
  5589  	}
  5590  	Fuc_link     uintptr
  5591  	Fuc_mcsize   X__darwin_size_t
  5592  	Fuc_mcontext uintptr
  5593  } /* _ucontext.h:43:1 */
  5594  
  5595  // user context
  5596  type Ucontext_t = X__darwin_ucontext /* _ucontext.h:57:33 */ // [???] user context
  5597  
  5598  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5599  //
  5600  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5601  //
  5602  // This file contains Original Code and/or Modifications of Original Code
  5603  // as defined in and that are subject to the Apple Public Source License
  5604  // Version 2.0 (the 'License'). You may not use this file except in
  5605  // compliance with the License. The rights granted to you under the License
  5606  // may not be used to create, or enable the creation or redistribution of,
  5607  // unlawful or unlicensed copies of an Apple operating system, or to
  5608  // circumvent, violate, or enable the circumvention or violation of, any
  5609  // terms of an Apple operating system software license agreement.
  5610  //
  5611  // Please obtain a copy of the License at
  5612  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5613  //
  5614  // The Original Code and all software distributed under the License are
  5615  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5616  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5617  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5618  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5619  // Please see the License for the specific language governing rights and
  5620  // limitations under the License.
  5621  //
  5622  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5623  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5624  //
  5625  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5626  //
  5627  // This file contains Original Code and/or Modifications of Original Code
  5628  // as defined in and that are subject to the Apple Public Source License
  5629  // Version 2.0 (the 'License'). You may not use this file except in
  5630  // compliance with the License. The rights granted to you under the License
  5631  // may not be used to create, or enable the creation or redistribution of,
  5632  // unlawful or unlicensed copies of an Apple operating system, or to
  5633  // circumvent, violate, or enable the circumvention or violation of, any
  5634  // terms of an Apple operating system software license agreement.
  5635  //
  5636  // Please obtain a copy of the License at
  5637  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5638  //
  5639  // The Original Code and all software distributed under the License are
  5640  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5641  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5642  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5643  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5644  // Please see the License for the specific language governing rights and
  5645  // limitations under the License.
  5646  //
  5647  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5648  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5649  //
  5650  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5651  //
  5652  // This file contains Original Code and/or Modifications of Original Code
  5653  // as defined in and that are subject to the Apple Public Source License
  5654  // Version 2.0 (the 'License'). You may not use this file except in
  5655  // compliance with the License. The rights granted to you under the License
  5656  // may not be used to create, or enable the creation or redistribution of,
  5657  // unlawful or unlicensed copies of an Apple operating system, or to
  5658  // circumvent, violate, or enable the circumvention or violation of, any
  5659  // terms of an Apple operating system software license agreement.
  5660  //
  5661  // Please obtain a copy of the License at
  5662  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5663  //
  5664  // The Original Code and all software distributed under the License are
  5665  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5666  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5667  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5668  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5669  // Please see the License for the specific language governing rights and
  5670  // limitations under the License.
  5671  //
  5672  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5673  
  5674  type Sigset_t = X__darwin_sigset_t /* _sigset_t.h:31:41 */
  5675  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5676  //
  5677  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5678  //
  5679  // This file contains Original Code and/or Modifications of Original Code
  5680  // as defined in and that are subject to the Apple Public Source License
  5681  // Version 2.0 (the 'License'). You may not use this file except in
  5682  // compliance with the License. The rights granted to you under the License
  5683  // may not be used to create, or enable the creation or redistribution of,
  5684  // unlawful or unlicensed copies of an Apple operating system, or to
  5685  // circumvent, violate, or enable the circumvention or violation of, any
  5686  // terms of an Apple operating system software license agreement.
  5687  //
  5688  // Please obtain a copy of the License at
  5689  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5690  //
  5691  // The Original Code and all software distributed under the License are
  5692  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5693  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5694  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5695  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5696  // Please see the License for the specific language governing rights and
  5697  // limitations under the License.
  5698  //
  5699  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5700  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5701  //
  5702  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5703  //
  5704  // This file contains Original Code and/or Modifications of Original Code
  5705  // as defined in and that are subject to the Apple Public Source License
  5706  // Version 2.0 (the 'License'). You may not use this file except in
  5707  // compliance with the License. The rights granted to you under the License
  5708  // may not be used to create, or enable the creation or redistribution of,
  5709  // unlawful or unlicensed copies of an Apple operating system, or to
  5710  // circumvent, violate, or enable the circumvention or violation of, any
  5711  // terms of an Apple operating system software license agreement.
  5712  //
  5713  // Please obtain a copy of the License at
  5714  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5715  //
  5716  // The Original Code and all software distributed under the License are
  5717  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5718  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5719  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5720  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5721  // Please see the License for the specific language governing rights and
  5722  // limitations under the License.
  5723  //
  5724  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5725  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5726  //
  5727  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5728  //
  5729  // This file contains Original Code and/or Modifications of Original Code
  5730  // as defined in and that are subject to the Apple Public Source License
  5731  // Version 2.0 (the 'License'). You may not use this file except in
  5732  // compliance with the License. The rights granted to you under the License
  5733  // may not be used to create, or enable the creation or redistribution of,
  5734  // unlawful or unlicensed copies of an Apple operating system, or to
  5735  // circumvent, violate, or enable the circumvention or violation of, any
  5736  // terms of an Apple operating system software license agreement.
  5737  //
  5738  // Please obtain a copy of the License at
  5739  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5740  //
  5741  // The Original Code and all software distributed under the License are
  5742  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5743  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5744  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5745  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5746  // Please see the License for the specific language governing rights and
  5747  // limitations under the License.
  5748  //
  5749  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5750  
  5751  type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  5752  
  5753  type Sigval = struct {
  5754  	F__ccgo_pad1 [0]uint64
  5755  	Fsival_int   int32
  5756  	F__ccgo_pad2 [4]byte
  5757  } /* signal.h:158:1 */
  5758  
  5759  type Sigevent = struct {
  5760  	Fsigev_notify int32
  5761  	Fsigev_signo  int32
  5762  	Fsigev_value  struct {
  5763  		F__ccgo_pad1 [0]uint64
  5764  		Fsival_int   int32
  5765  		F__ccgo_pad2 [4]byte
  5766  	}
  5767  	Fsigev_notify_function   uintptr
  5768  	Fsigev_notify_attributes uintptr
  5769  } /* signal.h:168:1 */
  5770  
  5771  type X__siginfo = struct {
  5772  	Fsi_signo  int32
  5773  	Fsi_errno  int32
  5774  	Fsi_code   int32
  5775  	Fsi_pid    Pid_t
  5776  	Fsi_uid    Uid_t
  5777  	Fsi_status int32
  5778  	Fsi_addr   uintptr
  5779  	Fsi_value  struct {
  5780  		F__ccgo_pad1 [0]uint64
  5781  		Fsival_int   int32
  5782  		F__ccgo_pad2 [4]byte
  5783  	}
  5784  	Fsi_band int64
  5785  	F__pad   [7]uint64
  5786  } /* signal.h:177:9 */
  5787  
  5788  type Siginfo_t = X__siginfo /* signal.h:188:3 */
  5789  
  5790  // When the signal is SIGILL or SIGFPE, si_addr contains the address of
  5791  // the faulting instruction.
  5792  // When the signal is SIGSEGV or SIGBUS, si_addr contains the address of
  5793  // the faulting memory reference. Although for x86 there are cases of SIGSEGV
  5794  // for which si_addr cannot be determined and is NULL.
  5795  // If the signal is SIGCHLD, the si_pid field will contain the child process ID,
  5796  //  si_status contains the exit value or signal and
  5797  //  si_uid contains the real user ID of the process that sent the signal.
  5798  
  5799  // Values for si_code
  5800  
  5801  // Codes for SIGILL
  5802  
  5803  // Codes for SIGFPE
  5804  
  5805  // Codes for SIGSEGV
  5806  
  5807  // Codes for SIGBUS
  5808  
  5809  // Codes for SIGTRAP
  5810  
  5811  // Codes for SIGCHLD
  5812  
  5813  // Codes for SIGPOLL
  5814  
  5815  // union for signal handlers
  5816  type X__sigaction_u = struct{ F__sa_handler uintptr } /* signal.h:269:1 */
  5817  
  5818  // Signal vector template for Kernel user boundary
  5819  type X__sigaction = struct {
  5820  	F__sigaction_u struct{ F__sa_handler uintptr }
  5821  	Fsa_tramp      uintptr
  5822  	Fsa_mask       Sigset_t
  5823  	Fsa_flags      int32
  5824  } /* signal.h:276:1 */
  5825  
  5826  // Signal vector "template" used in sigaction call.
  5827  type Sigaction = struct {
  5828  	F__sigaction_u struct{ F__sa_handler uintptr }
  5829  	Fsa_mask       Sigset_t
  5830  	Fsa_flags      int32
  5831  } /* signal.h:286:1 */
  5832  
  5833  // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler.
  5834  
  5835  // This will provide 64bit register set in a 32bit user address space
  5836  
  5837  // the following are the only bits we support from user space, the
  5838  // rest are for kernel use only.
  5839  
  5840  // Flags for sigprocmask:
  5841  
  5842  // POSIX 1003.1b required values.
  5843  
  5844  type Sig_t = uintptr /* signal.h:331:14 */ // type of signal function
  5845  
  5846  // Structure used in sigaltstack call.
  5847  
  5848  // 4.3 compatibility:
  5849  // Signal vector "template" used in sigvec call.
  5850  type Sigvec = struct {
  5851  	Fsv_handler uintptr
  5852  	Fsv_mask    int32
  5853  	Fsv_flags   int32
  5854  } /* signal.h:348:1 */
  5855  
  5856  // Structure used in sigstack call.
  5857  type Sigstack = struct {
  5858  	Fss_sp       uintptr
  5859  	Fss_onstack  int32
  5860  	F__ccgo_pad1 [4]byte
  5861  } /* signal.h:367:1 */
  5862  
  5863  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  5864  //
  5865  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5866  //
  5867  // This file contains Original Code and/or Modifications of Original Code
  5868  // as defined in and that are subject to the Apple Public Source License
  5869  // Version 2.0 (the 'License'). You may not use this file except in
  5870  // compliance with the License. The rights granted to you under the License
  5871  // may not be used to create, or enable the creation or redistribution of,
  5872  // unlawful or unlicensed copies of an Apple operating system, or to
  5873  // circumvent, violate, or enable the circumvention or violation of, any
  5874  // terms of an Apple operating system software license agreement.
  5875  //
  5876  // Please obtain a copy of the License at
  5877  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5878  //
  5879  // The Original Code and all software distributed under the License are
  5880  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5881  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5882  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5883  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5884  // Please see the License for the specific language governing rights and
  5885  // limitations under the License.
  5886  //
  5887  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5888  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  5889  // Copyright (c) 1982, 1986, 1993
  5890  //	The Regents of the University of California.  All rights reserved.
  5891  //
  5892  // Redistribution and use in source and binary forms, with or without
  5893  // modification, are permitted provided that the following conditions
  5894  // are met:
  5895  // 1. Redistributions of source code must retain the above copyright
  5896  //    notice, this list of conditions and the following disclaimer.
  5897  // 2. Redistributions in binary form must reproduce the above copyright
  5898  //    notice, this list of conditions and the following disclaimer in the
  5899  //    documentation and/or other materials provided with the distribution.
  5900  // 3. All advertising materials mentioning features or use of this software
  5901  //    must display the following acknowledgement:
  5902  //	This product includes software developed by the University of
  5903  //	California, Berkeley and its contributors.
  5904  // 4. Neither the name of the University nor the names of its contributors
  5905  //    may be used to endorse or promote products derived from this software
  5906  //    without specific prior written permission.
  5907  //
  5908  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5909  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5910  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5911  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5912  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5913  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5914  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5915  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5916  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5917  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5918  // SUCH DAMAGE.
  5919  //
  5920  //	@(#)resource.h	8.2 (Berkeley) 1/4/94
  5921  
  5922  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  5923  //
  5924  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5925  //
  5926  // This file contains Original Code and/or Modifications of Original Code
  5927  // as defined in and that are subject to the Apple Public Source License
  5928  // Version 2.0 (the 'License'). You may not use this file except in
  5929  // compliance with the License. The rights granted to you under the License
  5930  // may not be used to create, or enable the creation or redistribution of,
  5931  // unlawful or unlicensed copies of an Apple operating system, or to
  5932  // circumvent, violate, or enable the circumvention or violation of, any
  5933  // terms of an Apple operating system software license agreement.
  5934  //
  5935  // Please obtain a copy of the License at
  5936  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5937  //
  5938  // The Original Code and all software distributed under the License are
  5939  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5940  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5941  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5942  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5943  // Please see the License for the specific language governing rights and
  5944  // limitations under the License.
  5945  //
  5946  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5947  
  5948  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  5949  //
  5950  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5951  //
  5952  // This file contains Original Code and/or Modifications of Original Code
  5953  // as defined in and that are subject to the Apple Public Source License
  5954  // Version 2.0 (the 'License'). You may not use this file except in
  5955  // compliance with the License. The rights granted to you under the License
  5956  // may not be used to create, or enable the creation or redistribution of,
  5957  // unlawful or unlicensed copies of an Apple operating system, or to
  5958  // circumvent, violate, or enable the circumvention or violation of, any
  5959  // terms of an Apple operating system software license agreement.
  5960  //
  5961  // Please obtain a copy of the License at
  5962  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5963  //
  5964  // The Original Code and all software distributed under the License are
  5965  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5966  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5967  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5968  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5969  // Please see the License for the specific language governing rights and
  5970  // limitations under the License.
  5971  //
  5972  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5973  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5974  // Copyright (c) 1991, 1993
  5975  //	The Regents of the University of California.  All rights reserved.
  5976  //
  5977  // This code is derived from software contributed to Berkeley by
  5978  // Berkeley Software Design, Inc.
  5979  //
  5980  // Redistribution and use in source and binary forms, with or without
  5981  // modification, are permitted provided that the following conditions
  5982  // are met:
  5983  // 1. Redistributions of source code must retain the above copyright
  5984  //    notice, this list of conditions and the following disclaimer.
  5985  // 2. Redistributions in binary form must reproduce the above copyright
  5986  //    notice, this list of conditions and the following disclaimer in the
  5987  //    documentation and/or other materials provided with the distribution.
  5988  // 3. All advertising materials mentioning features or use of this software
  5989  //    must display the following acknowledgement:
  5990  //	This product includes software developed by the University of
  5991  //	California, Berkeley and its contributors.
  5992  // 4. Neither the name of the University nor the names of its contributors
  5993  //    may be used to endorse or promote products derived from this software
  5994  //    without specific prior written permission.
  5995  //
  5996  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5997  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5998  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5999  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6000  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6001  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6002  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6003  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6004  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6005  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6006  // SUCH DAMAGE.
  6007  //
  6008  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  6009  
  6010  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6011  //
  6012  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6013  //
  6014  // This file contains Original Code and/or Modifications of Original Code
  6015  // as defined in and that are subject to the Apple Public Source License
  6016  // Version 2.0 (the 'License'). You may not use this file except in
  6017  // compliance with the License. The rights granted to you under the License
  6018  // may not be used to create, or enable the creation or redistribution of,
  6019  // unlawful or unlicensed copies of an Apple operating system, or to
  6020  // circumvent, violate, or enable the circumvention or violation of, any
  6021  // terms of an Apple operating system software license agreement.
  6022  //
  6023  // Please obtain a copy of the License at
  6024  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6025  //
  6026  // The Original Code and all software distributed under the License are
  6027  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6028  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6029  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6030  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6031  // Please see the License for the specific language governing rights and
  6032  // limitations under the License.
  6033  //
  6034  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6035  
  6036  //  DO NOT EDIT THIS FILE.
  6037  //
  6038  //     It has been auto-edited by fixincludes from:
  6039  //
  6040  // 	"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/stdint.h"
  6041  //
  6042  //     This had to be done to correct non-standard usages in the
  6043  //     original, manufacturer supplied header file.
  6044  
  6045  // Copyright (c) 2000-2010 Apple Inc.
  6046  // All rights reserved.
  6047  
  6048  // from ISO/IEC 988:1999 spec
  6049  
  6050  // 7.18.1.1 Exact-width integer types
  6051  // Copyright (c) 2012 Apple Inc. All rights reserved.
  6052  //
  6053  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6054  //
  6055  // This file contains Original Code and/or Modifications of Original Code
  6056  // as defined in and that are subject to the Apple Public Source License
  6057  // Version 2.0 (the 'License'). You may not use this file except in
  6058  // compliance with the License. The rights granted to you under the License
  6059  // may not be used to create, or enable the creation or redistribution of,
  6060  // unlawful or unlicensed copies of an Apple operating system, or to
  6061  // circumvent, violate, or enable the circumvention or violation of, any
  6062  // terms of an Apple operating system software license agreement.
  6063  //
  6064  // Please obtain a copy of the License at
  6065  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6066  //
  6067  // The Original Code and all software distributed under the License are
  6068  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6069  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6070  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6071  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6072  // Please see the License for the specific language governing rights and
  6073  // limitations under the License.
  6074  //
  6075  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6076  // Copyright (c) 2012 Apple Inc. All rights reserved.
  6077  //
  6078  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6079  //
  6080  // This file contains Original Code and/or Modifications of Original Code
  6081  // as defined in and that are subject to the Apple Public Source License
  6082  // Version 2.0 (the 'License'). You may not use this file except in
  6083  // compliance with the License. The rights granted to you under the License
  6084  // may not be used to create, or enable the creation or redistribution of,
  6085  // unlawful or unlicensed copies of an Apple operating system, or to
  6086  // circumvent, violate, or enable the circumvention or violation of, any
  6087  // terms of an Apple operating system software license agreement.
  6088  //
  6089  // Please obtain a copy of the License at
  6090  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6091  //
  6092  // The Original Code and all software distributed under the License are
  6093  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6094  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6095  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6096  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6097  // Please see the License for the specific language governing rights and
  6098  // limitations under the License.
  6099  //
  6100  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6101  // Copyright (c) 2012 Apple Inc. All rights reserved.
  6102  //
  6103  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6104  //
  6105  // This file contains Original Code and/or Modifications of Original Code
  6106  // as defined in and that are subject to the Apple Public Source License
  6107  // Version 2.0 (the 'License'). You may not use this file except in
  6108  // compliance with the License. The rights granted to you under the License
  6109  // may not be used to create, or enable the creation or redistribution of,
  6110  // unlawful or unlicensed copies of an Apple operating system, or to
  6111  // circumvent, violate, or enable the circumvention or violation of, any
  6112  // terms of an Apple operating system software license agreement.
  6113  //
  6114  // Please obtain a copy of the License at
  6115  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6116  //
  6117  // The Original Code and all software distributed under the License are
  6118  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6119  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6120  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6121  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6122  // Please see the License for the specific language governing rights and
  6123  // limitations under the License.
  6124  //
  6125  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6126  // Copyright (c) 2012 Apple Inc. All rights reserved.
  6127  //
  6128  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6129  //
  6130  // This file contains Original Code and/or Modifications of Original Code
  6131  // as defined in and that are subject to the Apple Public Source License
  6132  // Version 2.0 (the 'License'). You may not use this file except in
  6133  // compliance with the License. The rights granted to you under the License
  6134  // may not be used to create, or enable the creation or redistribution of,
  6135  // unlawful or unlicensed copies of an Apple operating system, or to
  6136  // circumvent, violate, or enable the circumvention or violation of, any
  6137  // terms of an Apple operating system software license agreement.
  6138  //
  6139  // Please obtain a copy of the License at
  6140  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6141  //
  6142  // The Original Code and all software distributed under the License are
  6143  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6144  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6145  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6146  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6147  // Please see the License for the specific language governing rights and
  6148  // limitations under the License.
  6149  //
  6150  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6151  
  6152  // Copyright (c) 2012 Apple Inc. All rights reserved.
  6153  //
  6154  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6155  //
  6156  // This file contains Original Code and/or Modifications of Original Code
  6157  // as defined in and that are subject to the Apple Public Source License
  6158  // Version 2.0 (the 'License'). You may not use this file except in
  6159  // compliance with the License. The rights granted to you under the License
  6160  // may not be used to create, or enable the creation or redistribution of,
  6161  // unlawful or unlicensed copies of an Apple operating system, or to
  6162  // circumvent, violate, or enable the circumvention or violation of, any
  6163  // terms of an Apple operating system software license agreement.
  6164  //
  6165  // Please obtain a copy of the License at
  6166  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6167  //
  6168  // The Original Code and all software distributed under the License are
  6169  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6170  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6171  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6172  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6173  // Please see the License for the specific language governing rights and
  6174  // limitations under the License.
  6175  //
  6176  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6177  
  6178  type Uint8_t = uint8 /* _uint8_t.h:31:23 */
  6179  // Copyright (c) 2012 Apple Inc. All rights reserved.
  6180  //
  6181  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6182  //
  6183  // This file contains Original Code and/or Modifications of Original Code
  6184  // as defined in and that are subject to the Apple Public Source License
  6185  // Version 2.0 (the 'License'). You may not use this file except in
  6186  // compliance with the License. The rights granted to you under the License
  6187  // may not be used to create, or enable the creation or redistribution of,
  6188  // unlawful or unlicensed copies of an Apple operating system, or to
  6189  // circumvent, violate, or enable the circumvention or violation of, any
  6190  // terms of an Apple operating system software license agreement.
  6191  //
  6192  // Please obtain a copy of the License at
  6193  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6194  //
  6195  // The Original Code and all software distributed under the License are
  6196  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6197  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6198  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6199  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6200  // Please see the License for the specific language governing rights and
  6201  // limitations under the License.
  6202  //
  6203  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6204  
  6205  type Uint16_t = uint16 /* _uint16_t.h:31:24 */
  6206  // Copyright (c) 2012 Apple Inc. All rights reserved.
  6207  //
  6208  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6209  //
  6210  // This file contains Original Code and/or Modifications of Original Code
  6211  // as defined in and that are subject to the Apple Public Source License
  6212  // Version 2.0 (the 'License'). You may not use this file except in
  6213  // compliance with the License. The rights granted to you under the License
  6214  // may not be used to create, or enable the creation or redistribution of,
  6215  // unlawful or unlicensed copies of an Apple operating system, or to
  6216  // circumvent, violate, or enable the circumvention or violation of, any
  6217  // terms of an Apple operating system software license agreement.
  6218  //
  6219  // Please obtain a copy of the License at
  6220  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6221  //
  6222  // The Original Code and all software distributed under the License are
  6223  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6224  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6225  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6226  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6227  // Please see the License for the specific language governing rights and
  6228  // limitations under the License.
  6229  //
  6230  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6231  
  6232  type Uint32_t = uint32 /* _uint32_t.h:31:22 */
  6233  // Copyright (c) 2012 Apple Inc. All rights reserved.
  6234  //
  6235  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6236  //
  6237  // This file contains Original Code and/or Modifications of Original Code
  6238  // as defined in and that are subject to the Apple Public Source License
  6239  // Version 2.0 (the 'License'). You may not use this file except in
  6240  // compliance with the License. The rights granted to you under the License
  6241  // may not be used to create, or enable the creation or redistribution of,
  6242  // unlawful or unlicensed copies of an Apple operating system, or to
  6243  // circumvent, violate, or enable the circumvention or violation of, any
  6244  // terms of an Apple operating system software license agreement.
  6245  //
  6246  // Please obtain a copy of the License at
  6247  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6248  //
  6249  // The Original Code and all software distributed under the License are
  6250  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6251  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6252  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6253  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6254  // Please see the License for the specific language governing rights and
  6255  // limitations under the License.
  6256  //
  6257  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6258  
  6259  type Uint64_t = uint64 /* _uint64_t.h:31:28 */
  6260  
  6261  // 7.18.1.2 Minimum-width integer types
  6262  type Int_least8_t = Int8_t     /* stdint.h:38:26 */
  6263  type Int_least16_t = Int16_t   /* stdint.h:39:25 */
  6264  type Int_least32_t = Int32_t   /* stdint.h:40:25 */
  6265  type Int_least64_t = Int64_t   /* stdint.h:41:25 */
  6266  type Uint_least8_t = Uint8_t   /* stdint.h:42:25 */
  6267  type Uint_least16_t = Uint16_t /* stdint.h:43:24 */
  6268  type Uint_least32_t = Uint32_t /* stdint.h:44:24 */
  6269  type Uint_least64_t = Uint64_t /* stdint.h:45:24 */
  6270  
  6271  // 7.18.1.3 Fastest-width integer types
  6272  type Int_fast8_t = Int8_t     /* stdint.h:49:27 */
  6273  type Int_fast16_t = Int16_t   /* stdint.h:50:26 */
  6274  type Int_fast32_t = Int32_t   /* stdint.h:51:26 */
  6275  type Int_fast64_t = Int64_t   /* stdint.h:52:26 */
  6276  type Uint_fast8_t = Uint8_t   /* stdint.h:53:26 */
  6277  type Uint_fast16_t = Uint16_t /* stdint.h:54:25 */
  6278  type Uint_fast32_t = Uint32_t /* stdint.h:55:25 */
  6279  type Uint_fast64_t = Uint64_t /* stdint.h:56:25 */
  6280  
  6281  // 7.18.1.4 Integer types capable of holding object pointers
  6282  
  6283  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6284  //
  6285  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6286  //
  6287  // This file contains Original Code and/or Modifications of Original Code
  6288  // as defined in and that are subject to the Apple Public Source License
  6289  // Version 2.0 (the 'License'). You may not use this file except in
  6290  // compliance with the License. The rights granted to you under the License
  6291  // may not be used to create, or enable the creation or redistribution of,
  6292  // unlawful or unlicensed copies of an Apple operating system, or to
  6293  // circumvent, violate, or enable the circumvention or violation of, any
  6294  // terms of an Apple operating system software license agreement.
  6295  //
  6296  // Please obtain a copy of the License at
  6297  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6298  //
  6299  // The Original Code and all software distributed under the License are
  6300  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6301  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6302  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6303  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6304  // Please see the License for the specific language governing rights and
  6305  // limitations under the License.
  6306  //
  6307  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6308  
  6309  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6310  //
  6311  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6312  //
  6313  // This file contains Original Code and/or Modifications of Original Code
  6314  // as defined in and that are subject to the Apple Public Source License
  6315  // Version 2.0 (the 'License'). You may not use this file except in
  6316  // compliance with the License. The rights granted to you under the License
  6317  // may not be used to create, or enable the creation or redistribution of,
  6318  // unlawful or unlicensed copies of an Apple operating system, or to
  6319  // circumvent, violate, or enable the circumvention or violation of, any
  6320  // terms of an Apple operating system software license agreement.
  6321  //
  6322  // Please obtain a copy of the License at
  6323  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6324  //
  6325  // The Original Code and all software distributed under the License are
  6326  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6327  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6328  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6329  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6330  // Please see the License for the specific language governing rights and
  6331  // limitations under the License.
  6332  //
  6333  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6334  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6335  //
  6336  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6337  //
  6338  // This file contains Original Code and/or Modifications of Original Code
  6339  // as defined in and that are subject to the Apple Public Source License
  6340  // Version 2.0 (the 'License'). You may not use this file except in
  6341  // compliance with the License. The rights granted to you under the License
  6342  // may not be used to create, or enable the creation or redistribution of,
  6343  // unlawful or unlicensed copies of an Apple operating system, or to
  6344  // circumvent, violate, or enable the circumvention or violation of, any
  6345  // terms of an Apple operating system software license agreement.
  6346  //
  6347  // Please obtain a copy of the License at
  6348  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6349  //
  6350  // The Original Code and all software distributed under the License are
  6351  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6352  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6353  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6354  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6355  // Please see the License for the specific language governing rights and
  6356  // limitations under the License.
  6357  //
  6358  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6359  
  6360  // 7.18.1.5 Greatest-width integer types
  6361  // Copyright (c) 2012 Apple Inc. All rights reserved.
  6362  //
  6363  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6364  //
  6365  // This file contains Original Code and/or Modifications of Original Code
  6366  // as defined in and that are subject to the Apple Public Source License
  6367  // Version 2.0 (the 'License'). You may not use this file except in
  6368  // compliance with the License. The rights granted to you under the License
  6369  // may not be used to create, or enable the creation or redistribution of,
  6370  // unlawful or unlicensed copies of an Apple operating system, or to
  6371  // circumvent, violate, or enable the circumvention or violation of, any
  6372  // terms of an Apple operating system software license agreement.
  6373  //
  6374  // Please obtain a copy of the License at
  6375  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6376  //
  6377  // The Original Code and all software distributed under the License are
  6378  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6379  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6380  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6381  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6382  // Please see the License for the specific language governing rights and
  6383  // limitations under the License.
  6384  //
  6385  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6386  
  6387  type Intmax_t = int64 /* _intmax_t.h:32:25 */
  6388  // Copyright (c) 2012 Apple Inc. All rights reserved.
  6389  //
  6390  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6391  //
  6392  // This file contains Original Code and/or Modifications of Original Code
  6393  // as defined in and that are subject to the Apple Public Source License
  6394  // Version 2.0 (the 'License'). You may not use this file except in
  6395  // compliance with the License. The rights granted to you under the License
  6396  // may not be used to create, or enable the creation or redistribution of,
  6397  // unlawful or unlicensed copies of an Apple operating system, or to
  6398  // circumvent, violate, or enable the circumvention or violation of, any
  6399  // terms of an Apple operating system software license agreement.
  6400  //
  6401  // Please obtain a copy of the License at
  6402  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6403  //
  6404  // The Original Code and all software distributed under the License are
  6405  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6406  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6407  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6408  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6409  // Please see the License for the specific language governing rights and
  6410  // limitations under the License.
  6411  //
  6412  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6413  
  6414  type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */
  6415  
  6416  // 7.18.4 Macros for integer constants
  6417  
  6418  // 7.18.2 Limits of specified-width integer types:
  6419  //   These #defines specify the minimum and maximum limits
  6420  //   of each of the types declared above.
  6421  //
  6422  //   They must have "the same type as would an expression that is an
  6423  //   object of the corresponding type converted according to the integer
  6424  //   promotion".
  6425  
  6426  // 7.18.2.1 Limits of exact-width integer types
  6427  
  6428  //
  6429  //       Note:  the literal "most negative int" cannot be written in C --
  6430  //       the rules in the standard (section 6.4.4.1 in C99) will give it
  6431  //       an unsigned type, so INT32_MIN (and the most negative member of
  6432  //       any larger signed type) must be written via a constant expression.
  6433  //
  6434  
  6435  // 7.18.2.2 Limits of minimum-width integer types
  6436  
  6437  // 7.18.2.3 Limits of fastest minimum-width integer types
  6438  
  6439  // 7.18.2.4 Limits of integer types capable of holding object pointers
  6440  
  6441  // 7.18.2.5 Limits of greatest-width integer types
  6442  
  6443  // 7.18.3 "Other"
  6444  
  6445  // WCHAR_MIN should be 0 if wchar_t is an unsigned type and
  6446  //    (-WCHAR_MAX-1) if wchar_t is a signed type.  Unfortunately,
  6447  //    it turns out that -fshort-wchar changes the signedness of
  6448  //    the type.
  6449  
  6450  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  6451  //
  6452  // @APPLE_LICENSE_HEADER_START@
  6453  //
  6454  // This file contains Original Code and/or Modifications of Original Code
  6455  // as defined in and that are subject to the Apple Public Source License
  6456  // Version 2.0 (the 'License'). You may not use this file except in
  6457  // compliance with the License. Please obtain a copy of the License at
  6458  // http://www.opensource.apple.com/apsl/ and read it before using this
  6459  // file.
  6460  //
  6461  // The Original Code and all software distributed under the License are
  6462  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6463  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6464  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6465  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6466  // Please see the License for the specific language governing rights and
  6467  // limitations under the License.
  6468  //
  6469  // @APPLE_LICENSE_HEADER_END@
  6470  
  6471  // [XSI] The timeval structure shall be defined as described in
  6472  // <sys/time.h>
  6473  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6474  //
  6475  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6476  //
  6477  // This file contains Original Code and/or Modifications of Original Code
  6478  // as defined in and that are subject to the Apple Public Source License
  6479  // Version 2.0 (the 'License'). You may not use this file except in
  6480  // compliance with the License. The rights granted to you under the License
  6481  // may not be used to create, or enable the creation or redistribution of,
  6482  // unlawful or unlicensed copies of an Apple operating system, or to
  6483  // circumvent, violate, or enable the circumvention or violation of, any
  6484  // terms of an Apple operating system software license agreement.
  6485  //
  6486  // Please obtain a copy of the License at
  6487  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6488  //
  6489  // The Original Code and all software distributed under the License are
  6490  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6491  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6492  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6493  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6494  // Please see the License for the specific language governing rights and
  6495  // limitations under the License.
  6496  //
  6497  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6498  
  6499  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  6500  //
  6501  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6502  //
  6503  // This file contains Original Code and/or Modifications of Original Code
  6504  // as defined in and that are subject to the Apple Public Source License
  6505  // Version 2.0 (the 'License'). You may not use this file except in
  6506  // compliance with the License. The rights granted to you under the License
  6507  // may not be used to create, or enable the creation or redistribution of,
  6508  // unlawful or unlicensed copies of an Apple operating system, or to
  6509  // circumvent, violate, or enable the circumvention or violation of, any
  6510  // terms of an Apple operating system software license agreement.
  6511  //
  6512  // Please obtain a copy of the License at
  6513  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6514  //
  6515  // The Original Code and all software distributed under the License are
  6516  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6517  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6518  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6519  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6520  // Please see the License for the specific language governing rights and
  6521  // limitations under the License.
  6522  //
  6523  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6524  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6525  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6526  //
  6527  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6528  //
  6529  // This file contains Original Code and/or Modifications of Original Code
  6530  // as defined in and that are subject to the Apple Public Source License
  6531  // Version 2.0 (the 'License'). You may not use this file except in
  6532  // compliance with the License. The rights granted to you under the License
  6533  // may not be used to create, or enable the creation or redistribution of,
  6534  // unlawful or unlicensed copies of an Apple operating system, or to
  6535  // circumvent, violate, or enable the circumvention or violation of, any
  6536  // terms of an Apple operating system software license agreement.
  6537  //
  6538  // Please obtain a copy of the License at
  6539  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6540  //
  6541  // The Original Code and all software distributed under the License are
  6542  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6543  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6544  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6545  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6546  // Please see the License for the specific language governing rights and
  6547  // limitations under the License.
  6548  //
  6549  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6550  
  6551  type Timeval = struct {
  6552  	Ftv_sec      X__darwin_time_t
  6553  	Ftv_usec     X__darwin_suseconds_t
  6554  	F__ccgo_pad1 [4]byte
  6555  } /* _timeval.h:34:1 */
  6556  
  6557  // The id_t type shall be defined as described in <sys/types.h>
  6558  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6559  //
  6560  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6561  //
  6562  // This file contains Original Code and/or Modifications of Original Code
  6563  // as defined in and that are subject to the Apple Public Source License
  6564  // Version 2.0 (the 'License'). You may not use this file except in
  6565  // compliance with the License. The rights granted to you under the License
  6566  // may not be used to create, or enable the creation or redistribution of,
  6567  // unlawful or unlicensed copies of an Apple operating system, or to
  6568  // circumvent, violate, or enable the circumvention or violation of, any
  6569  // terms of an Apple operating system software license agreement.
  6570  //
  6571  // Please obtain a copy of the License at
  6572  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6573  //
  6574  // The Original Code and all software distributed under the License are
  6575  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6576  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6577  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6578  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6579  // Please see the License for the specific language governing rights and
  6580  // limitations under the License.
  6581  //
  6582  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6583  
  6584  // Resource limit type (low 63 bits, excluding the sign bit)
  6585  type Rlim_t = X__uint64_t /* resource.h:89:25 */
  6586  
  6587  // ****
  6588  //
  6589  // PRIORITY
  6590  
  6591  // Possible values of the first parameter to getpriority()/setpriority(),
  6592  // used to indicate the type of the second parameter.
  6593  
  6594  // Range limitations for the value of the third parameter to setpriority().
  6595  
  6596  // use PRIO_DARWIN_BG to set the current thread into "background" state
  6597  // which lowers CPU, disk IO, and networking priorites until thread terminates
  6598  // or "background" state is revoked
  6599  
  6600  // use PRIO_DARWIN_NONUI to restrict a process's ability to make calls to
  6601  // the GPU. (deprecated)
  6602  
  6603  // ****
  6604  //
  6605  // RESOURCE USAGE
  6606  
  6607  // Possible values of the first parameter to getrusage(), used to indicate
  6608  // the scope of the information to be returned.
  6609  
  6610  // A structure representing an accounting of resource utilization.  The
  6611  // address of an instance of this structure is the second parameter to
  6612  // getrusage().
  6613  //
  6614  // Note: All values other than ru_utime and ru_stime are implementaiton
  6615  //       defined and subject to change in a future release.  Their use
  6616  //       is discouraged for standards compliant programs.
  6617  type Rusage = struct {
  6618  	Fru_utime struct {
  6619  		Ftv_sec      X__darwin_time_t
  6620  		Ftv_usec     X__darwin_suseconds_t
  6621  		F__ccgo_pad1 [4]byte
  6622  	}
  6623  	Fru_stime struct {
  6624  		Ftv_sec      X__darwin_time_t
  6625  		Ftv_usec     X__darwin_suseconds_t
  6626  		F__ccgo_pad1 [4]byte
  6627  	}
  6628  	Fru_maxrss   int64
  6629  	Fru_ixrss    int64
  6630  	Fru_idrss    int64
  6631  	Fru_isrss    int64
  6632  	Fru_minflt   int64
  6633  	Fru_majflt   int64
  6634  	Fru_nswap    int64
  6635  	Fru_inblock  int64
  6636  	Fru_oublock  int64
  6637  	Fru_msgsnd   int64
  6638  	Fru_msgrcv   int64
  6639  	Fru_nsignals int64
  6640  	Fru_nvcsw    int64
  6641  	Fru_nivcsw   int64
  6642  } /* resource.h:152:1 */
  6643  
  6644  // Flavors for proc_pid_rusage().
  6645  
  6646  // Flags for RUSAGE_INFO_V5
  6647  
  6648  type Rusage_info_t = uintptr /* resource.h:199:14 */
  6649  
  6650  type Rusage_info_v0 = struct {
  6651  	Fri_uuid               [16]Uint8_t
  6652  	Fri_user_time          Uint64_t
  6653  	Fri_system_time        Uint64_t
  6654  	Fri_pkg_idle_wkups     Uint64_t
  6655  	Fri_interrupt_wkups    Uint64_t
  6656  	Fri_pageins            Uint64_t
  6657  	Fri_wired_size         Uint64_t
  6658  	Fri_resident_size      Uint64_t
  6659  	Fri_phys_footprint     Uint64_t
  6660  	Fri_proc_start_abstime Uint64_t
  6661  	Fri_proc_exit_abstime  Uint64_t
  6662  } /* resource.h:201:1 */
  6663  
  6664  type Rusage_info_v1 = struct {
  6665  	Fri_uuid                  [16]Uint8_t
  6666  	Fri_user_time             Uint64_t
  6667  	Fri_system_time           Uint64_t
  6668  	Fri_pkg_idle_wkups        Uint64_t
  6669  	Fri_interrupt_wkups       Uint64_t
  6670  	Fri_pageins               Uint64_t
  6671  	Fri_wired_size            Uint64_t
  6672  	Fri_resident_size         Uint64_t
  6673  	Fri_phys_footprint        Uint64_t
  6674  	Fri_proc_start_abstime    Uint64_t
  6675  	Fri_proc_exit_abstime     Uint64_t
  6676  	Fri_child_user_time       Uint64_t
  6677  	Fri_child_system_time     Uint64_t
  6678  	Fri_child_pkg_idle_wkups  Uint64_t
  6679  	Fri_child_interrupt_wkups Uint64_t
  6680  	Fri_child_pageins         Uint64_t
  6681  	Fri_child_elapsed_abstime Uint64_t
  6682  } /* resource.h:215:1 */
  6683  
  6684  type Rusage_info_v2 = struct {
  6685  	Fri_uuid                  [16]Uint8_t
  6686  	Fri_user_time             Uint64_t
  6687  	Fri_system_time           Uint64_t
  6688  	Fri_pkg_idle_wkups        Uint64_t
  6689  	Fri_interrupt_wkups       Uint64_t
  6690  	Fri_pageins               Uint64_t
  6691  	Fri_wired_size            Uint64_t
  6692  	Fri_resident_size         Uint64_t
  6693  	Fri_phys_footprint        Uint64_t
  6694  	Fri_proc_start_abstime    Uint64_t
  6695  	Fri_proc_exit_abstime     Uint64_t
  6696  	Fri_child_user_time       Uint64_t
  6697  	Fri_child_system_time     Uint64_t
  6698  	Fri_child_pkg_idle_wkups  Uint64_t
  6699  	Fri_child_interrupt_wkups Uint64_t
  6700  	Fri_child_pageins         Uint64_t
  6701  	Fri_child_elapsed_abstime Uint64_t
  6702  	Fri_diskio_bytesread      Uint64_t
  6703  	Fri_diskio_byteswritten   Uint64_t
  6704  } /* resource.h:235:1 */
  6705  
  6706  type Rusage_info_v3 = struct {
  6707  	Fri_uuid                          [16]Uint8_t
  6708  	Fri_user_time                     Uint64_t
  6709  	Fri_system_time                   Uint64_t
  6710  	Fri_pkg_idle_wkups                Uint64_t
  6711  	Fri_interrupt_wkups               Uint64_t
  6712  	Fri_pageins                       Uint64_t
  6713  	Fri_wired_size                    Uint64_t
  6714  	Fri_resident_size                 Uint64_t
  6715  	Fri_phys_footprint                Uint64_t
  6716  	Fri_proc_start_abstime            Uint64_t
  6717  	Fri_proc_exit_abstime             Uint64_t
  6718  	Fri_child_user_time               Uint64_t
  6719  	Fri_child_system_time             Uint64_t
  6720  	Fri_child_pkg_idle_wkups          Uint64_t
  6721  	Fri_child_interrupt_wkups         Uint64_t
  6722  	Fri_child_pageins                 Uint64_t
  6723  	Fri_child_elapsed_abstime         Uint64_t
  6724  	Fri_diskio_bytesread              Uint64_t
  6725  	Fri_diskio_byteswritten           Uint64_t
  6726  	Fri_cpu_time_qos_default          Uint64_t
  6727  	Fri_cpu_time_qos_maintenance      Uint64_t
  6728  	Fri_cpu_time_qos_background       Uint64_t
  6729  	Fri_cpu_time_qos_utility          Uint64_t
  6730  	Fri_cpu_time_qos_legacy           Uint64_t
  6731  	Fri_cpu_time_qos_user_initiated   Uint64_t
  6732  	Fri_cpu_time_qos_user_interactive Uint64_t
  6733  	Fri_billed_system_time            Uint64_t
  6734  	Fri_serviced_system_time          Uint64_t
  6735  } /* resource.h:257:1 */
  6736  
  6737  type Rusage_info_v4 = struct {
  6738  	Fri_uuid                          [16]Uint8_t
  6739  	Fri_user_time                     Uint64_t
  6740  	Fri_system_time                   Uint64_t
  6741  	Fri_pkg_idle_wkups                Uint64_t
  6742  	Fri_interrupt_wkups               Uint64_t
  6743  	Fri_pageins                       Uint64_t
  6744  	Fri_wired_size                    Uint64_t
  6745  	Fri_resident_size                 Uint64_t
  6746  	Fri_phys_footprint                Uint64_t
  6747  	Fri_proc_start_abstime            Uint64_t
  6748  	Fri_proc_exit_abstime             Uint64_t
  6749  	Fri_child_user_time               Uint64_t
  6750  	Fri_child_system_time             Uint64_t
  6751  	Fri_child_pkg_idle_wkups          Uint64_t
  6752  	Fri_child_interrupt_wkups         Uint64_t
  6753  	Fri_child_pageins                 Uint64_t
  6754  	Fri_child_elapsed_abstime         Uint64_t
  6755  	Fri_diskio_bytesread              Uint64_t
  6756  	Fri_diskio_byteswritten           Uint64_t
  6757  	Fri_cpu_time_qos_default          Uint64_t
  6758  	Fri_cpu_time_qos_maintenance      Uint64_t
  6759  	Fri_cpu_time_qos_background       Uint64_t
  6760  	Fri_cpu_time_qos_utility          Uint64_t
  6761  	Fri_cpu_time_qos_legacy           Uint64_t
  6762  	Fri_cpu_time_qos_user_initiated   Uint64_t
  6763  	Fri_cpu_time_qos_user_interactive Uint64_t
  6764  	Fri_billed_system_time            Uint64_t
  6765  	Fri_serviced_system_time          Uint64_t
  6766  	Fri_logical_writes                Uint64_t
  6767  	Fri_lifetime_max_phys_footprint   Uint64_t
  6768  	Fri_instructions                  Uint64_t
  6769  	Fri_cycles                        Uint64_t
  6770  	Fri_billed_energy                 Uint64_t
  6771  	Fri_serviced_energy               Uint64_t
  6772  	Fri_interval_max_phys_footprint   Uint64_t
  6773  	Fri_runnable_time                 Uint64_t
  6774  } /* resource.h:288:1 */
  6775  
  6776  type Rusage_info_v5 = struct {
  6777  	Fri_uuid                          [16]Uint8_t
  6778  	Fri_user_time                     Uint64_t
  6779  	Fri_system_time                   Uint64_t
  6780  	Fri_pkg_idle_wkups                Uint64_t
  6781  	Fri_interrupt_wkups               Uint64_t
  6782  	Fri_pageins                       Uint64_t
  6783  	Fri_wired_size                    Uint64_t
  6784  	Fri_resident_size                 Uint64_t
  6785  	Fri_phys_footprint                Uint64_t
  6786  	Fri_proc_start_abstime            Uint64_t
  6787  	Fri_proc_exit_abstime             Uint64_t
  6788  	Fri_child_user_time               Uint64_t
  6789  	Fri_child_system_time             Uint64_t
  6790  	Fri_child_pkg_idle_wkups          Uint64_t
  6791  	Fri_child_interrupt_wkups         Uint64_t
  6792  	Fri_child_pageins                 Uint64_t
  6793  	Fri_child_elapsed_abstime         Uint64_t
  6794  	Fri_diskio_bytesread              Uint64_t
  6795  	Fri_diskio_byteswritten           Uint64_t
  6796  	Fri_cpu_time_qos_default          Uint64_t
  6797  	Fri_cpu_time_qos_maintenance      Uint64_t
  6798  	Fri_cpu_time_qos_background       Uint64_t
  6799  	Fri_cpu_time_qos_utility          Uint64_t
  6800  	Fri_cpu_time_qos_legacy           Uint64_t
  6801  	Fri_cpu_time_qos_user_initiated   Uint64_t
  6802  	Fri_cpu_time_qos_user_interactive Uint64_t
  6803  	Fri_billed_system_time            Uint64_t
  6804  	Fri_serviced_system_time          Uint64_t
  6805  	Fri_logical_writes                Uint64_t
  6806  	Fri_lifetime_max_phys_footprint   Uint64_t
  6807  	Fri_instructions                  Uint64_t
  6808  	Fri_cycles                        Uint64_t
  6809  	Fri_billed_energy                 Uint64_t
  6810  	Fri_serviced_energy               Uint64_t
  6811  	Fri_interval_max_phys_footprint   Uint64_t
  6812  	Fri_runnable_time                 Uint64_t
  6813  	Fri_flags                         Uint64_t
  6814  } /* resource.h:327:1 */
  6815  
  6816  type Rusage_info_current = Rusage_info_v5 /* resource.h:367:31 */
  6817  
  6818  // ****
  6819  //
  6820  // RESOURCE LIMITS
  6821  
  6822  // Symbolic constants for resource limits; since all limits are representable
  6823  // as a type rlim_t, we are permitted to define RLIM_SAVED_* in terms of
  6824  // RLIM_INFINITY.
  6825  
  6826  // Possible values of the first parameter to getrlimit()/setrlimit(), to
  6827  // indicate for which resource the operation is being performed.
  6828  
  6829  // A structure representing a resource limit.  The address of an instance
  6830  // of this structure is the second parameter to getrlimit()/setrlimit().
  6831  type Rlimit = struct {
  6832  	Frlim_cur Rlim_t
  6833  	Frlim_max Rlim_t
  6834  } /* resource.h:411:1 */
  6835  
  6836  // proc_rlimit_control()
  6837  //
  6838  // Resource limit flavors
  6839  
  6840  // Flags for wakeups monitor control.
  6841  
  6842  // Flags for CPU usage monitor control.
  6843  
  6844  // Flags for memory footprint interval tracking.
  6845  
  6846  type Proc_rlimit_control_wakeupmon = struct {
  6847  	Fwm_flags Uint32_t
  6848  	Fwm_rate  Int32_t
  6849  } /* resource.h:446:1 */
  6850  
  6851  // Option bits for the third argument of wait4.  WNOHANG causes the
  6852  // wait to not hang if there are no stopped or terminated processes, rather
  6853  // returning an error indication in this case (pid==0).  WUNTRACED
  6854  // indicates that the caller should receive status about untraced children
  6855  // which stop due to signals.  If children are stopped and a wait without
  6856  // this option is done, it is as though they were still running... nothing
  6857  // about them is returned.
  6858  
  6859  // Macros to test the exit status returned by wait
  6860  // and extract the relevant values.
  6861  
  6862  // These macros are permited, as they are in the implementation namespace
  6863  
  6864  // [XSI] The <sys/wait.h> header shall define the following macros for
  6865  // analysis of process status values
  6866  // 0x13 == SIGCONT
  6867  
  6868  // [XSI] The following symbolic constants shall be defined as possible
  6869  // values for the fourth argument to waitid().
  6870  // WNOHANG already defined for wait4()
  6871  // WUNTRACED defined for wait4() but not for waitid()
  6872  // waitid() parameter
  6873  
  6874  // POSIX extensions and 4.2/4.3 compatability:
  6875  
  6876  // Tokens for special values of the "pid" parameter to wait4.
  6877  
  6878  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  6879  //
  6880  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6881  //
  6882  // This file contains Original Code and/or Modifications of Original Code
  6883  // as defined in and that are subject to the Apple Public Source License
  6884  // Version 2.0 (the 'License'). You may not use this file except in
  6885  // compliance with the License. The rights granted to you under the License
  6886  // may not be used to create, or enable the creation or redistribution of,
  6887  // unlawful or unlicensed copies of an Apple operating system, or to
  6888  // circumvent, violate, or enable the circumvention or violation of, any
  6889  // terms of an Apple operating system software license agreement.
  6890  //
  6891  // Please obtain a copy of the License at
  6892  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6893  //
  6894  // The Original Code and all software distributed under the License are
  6895  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6896  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6897  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6898  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6899  // Please see the License for the specific language governing rights and
  6900  // limitations under the License.
  6901  //
  6902  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6903  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6904  
  6905  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  6906  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6907  // Copyright (c) 1987, 1991, 1993
  6908  //	The Regents of the University of California.  All rights reserved.
  6909  //
  6910  // Redistribution and use in source and binary forms, with or without
  6911  // modification, are permitted provided that the following conditions
  6912  // are met:
  6913  // 1. Redistributions of source code must retain the above copyright
  6914  //    notice, this list of conditions and the following disclaimer.
  6915  // 2. Redistributions in binary form must reproduce the above copyright
  6916  //    notice, this list of conditions and the following disclaimer in the
  6917  //    documentation and/or other materials provided with the distribution.
  6918  // 3. All advertising materials mentioning features or use of this software
  6919  //    must display the following acknowledgement:
  6920  //	This product includes software developed by the University of
  6921  //	California, Berkeley and its contributors.
  6922  // 4. Neither the name of the University nor the names of its contributors
  6923  //    may be used to endorse or promote products derived from this software
  6924  //    without specific prior written permission.
  6925  //
  6926  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6927  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6928  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6929  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6930  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6931  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6932  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6933  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6934  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6935  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6936  // SUCH DAMAGE.
  6937  //
  6938  //	@(#)endian.h	8.1 (Berkeley) 6/11/93
  6939  
  6940  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  6941  //
  6942  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6943  //
  6944  // This file contains Original Code and/or Modifications of Original Code
  6945  // as defined in and that are subject to the Apple Public Source License
  6946  // Version 2.0 (the 'License'). You may not use this file except in
  6947  // compliance with the License. The rights granted to you under the License
  6948  // may not be used to create, or enable the creation or redistribution of,
  6949  // unlawful or unlicensed copies of an Apple operating system, or to
  6950  // circumvent, violate, or enable the circumvention or violation of, any
  6951  // terms of an Apple operating system software license agreement.
  6952  //
  6953  // Please obtain a copy of the License at
  6954  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6955  //
  6956  // The Original Code and all software distributed under the License are
  6957  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6958  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6959  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6960  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6961  // Please see the License for the specific language governing rights and
  6962  // limitations under the License.
  6963  //
  6964  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6965  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6966  // Copyright (c) 1991, 1993
  6967  //	The Regents of the University of California.  All rights reserved.
  6968  //
  6969  // This code is derived from software contributed to Berkeley by
  6970  // Berkeley Software Design, Inc.
  6971  //
  6972  // Redistribution and use in source and binary forms, with or without
  6973  // modification, are permitted provided that the following conditions
  6974  // are met:
  6975  // 1. Redistributions of source code must retain the above copyright
  6976  //    notice, this list of conditions and the following disclaimer.
  6977  // 2. Redistributions in binary form must reproduce the above copyright
  6978  //    notice, this list of conditions and the following disclaimer in the
  6979  //    documentation and/or other materials provided with the distribution.
  6980  // 3. All advertising materials mentioning features or use of this software
  6981  //    must display the following acknowledgement:
  6982  //	This product includes software developed by the University of
  6983  //	California, Berkeley and its contributors.
  6984  // 4. Neither the name of the University nor the names of its contributors
  6985  //    may be used to endorse or promote products derived from this software
  6986  //    without specific prior written permission.
  6987  //
  6988  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6989  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6990  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6991  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6992  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6993  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6994  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6995  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6996  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6997  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6998  // SUCH DAMAGE.
  6999  //
  7000  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  7001  
  7002  // Define _NOQUAD if the compiler does NOT support 64-bit integers.
  7003  // #define _NOQUAD
  7004  
  7005  // Define the order of 32-bit words in 64-bit words.
  7006  
  7007  // Definitions for byte order, according to byte significance from low
  7008  // address to high.
  7009  
  7010  // Copyright (c) 2004, 2006 Apple Computer, Inc. All rights reserved.
  7011  //
  7012  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7013  //
  7014  // This file contains Original Code and/or Modifications of Original Code
  7015  // as defined in and that are subject to the Apple Public Source License
  7016  // Version 2.0 (the 'License'). You may not use this file except in
  7017  // compliance with the License. The rights granted to you under the License
  7018  // may not be used to create, or enable the creation or redistribution of,
  7019  // unlawful or unlicensed copies of an Apple operating system, or to
  7020  // circumvent, violate, or enable the circumvention or violation of, any
  7021  // terms of an Apple operating system software license agreement.
  7022  //
  7023  // Please obtain a copy of the License at
  7024  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7025  //
  7026  // The Original Code and all software distributed under the License are
  7027  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7028  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7029  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7030  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7031  // Please see the License for the specific language governing rights and
  7032  // limitations under the License.
  7033  //
  7034  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7035  
  7036  // Copyright (c) 1995 NeXT Computer, Inc. All rights reserved.
  7037  // Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
  7038  //
  7039  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7040  //
  7041  // This file contains Original Code and/or Modifications of Original Code
  7042  // as defined in and that are subject to the Apple Public Source License
  7043  // Version 2.0 (the 'License'). You may not use this file except in
  7044  // compliance with the License. The rights granted to you under the License
  7045  // may not be used to create, or enable the creation or redistribution of,
  7046  // unlawful or unlicensed copies of an Apple operating system, or to
  7047  // circumvent, violate, or enable the circumvention or violation of, any
  7048  // terms of an Apple operating system software license agreement.
  7049  //
  7050  // Please obtain a copy of the License at
  7051  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7052  //
  7053  // The Original Code and all software distributed under the License are
  7054  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7055  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7056  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7057  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7058  // Please see the License for the specific language governing rights and
  7059  // limitations under the License.
  7060  //
  7061  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7062  // Copyright (c) 1987, 1991, 1993
  7063  //	The Regents of the University of California.  All rights reserved.
  7064  //
  7065  // Redistribution and use in source and binary forms, with or without
  7066  // modification, are permitted provided that the following conditions
  7067  // are met:
  7068  // 1. Redistributions of source code must retain the above copyright
  7069  //    notice, this list of conditions and the following disclaimer.
  7070  // 2. Redistributions in binary form must reproduce the above copyright
  7071  //    notice, this list of conditions and the following disclaimer in the
  7072  //    documentation and/or other materials provided with the distribution.
  7073  // 3. All advertising materials mentioning features or use of this software
  7074  //    must display the following acknowledgement:
  7075  //	This product includes software developed by the University of
  7076  //	California, Berkeley and its contributors.
  7077  // 4. Neither the name of the University nor the names of its contributors
  7078  //    may be used to endorse or promote products derived from this software
  7079  //    without specific prior written permission.
  7080  //
  7081  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7082  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7083  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7084  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7085  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7086  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7087  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7088  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7089  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7090  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7091  // SUCH DAMAGE.
  7092  
  7093  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  7094  //
  7095  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7096  //
  7097  // This file contains Original Code and/or Modifications of Original Code
  7098  // as defined in and that are subject to the Apple Public Source License
  7099  // Version 2.0 (the 'License'). You may not use this file except in
  7100  // compliance with the License. The rights granted to you under the License
  7101  // may not be used to create, or enable the creation or redistribution of,
  7102  // unlawful or unlicensed copies of an Apple operating system, or to
  7103  // circumvent, violate, or enable the circumvention or violation of, any
  7104  // terms of an Apple operating system software license agreement.
  7105  //
  7106  // Please obtain a copy of the License at
  7107  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7108  //
  7109  // The Original Code and all software distributed under the License are
  7110  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7111  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7112  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7113  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7114  // Please see the License for the specific language governing rights and
  7115  // limitations under the License.
  7116  //
  7117  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7118  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7119  // Copyright (c) 1991, 1993
  7120  //	The Regents of the University of California.  All rights reserved.
  7121  //
  7122  // This code is derived from software contributed to Berkeley by
  7123  // Berkeley Software Design, Inc.
  7124  //
  7125  // Redistribution and use in source and binary forms, with or without
  7126  // modification, are permitted provided that the following conditions
  7127  // are met:
  7128  // 1. Redistributions of source code must retain the above copyright
  7129  //    notice, this list of conditions and the following disclaimer.
  7130  // 2. Redistributions in binary form must reproduce the above copyright
  7131  //    notice, this list of conditions and the following disclaimer in the
  7132  //    documentation and/or other materials provided with the distribution.
  7133  // 3. All advertising materials mentioning features or use of this software
  7134  //    must display the following acknowledgement:
  7135  //	This product includes software developed by the University of
  7136  //	California, Berkeley and its contributors.
  7137  // 4. Neither the name of the University nor the names of its contributors
  7138  //    may be used to endorse or promote products derived from this software
  7139  //    without specific prior written permission.
  7140  //
  7141  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7142  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7143  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7144  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7145  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7146  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7147  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7148  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7149  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7150  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7151  // SUCH DAMAGE.
  7152  //
  7153  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  7154  
  7155  // Macros for network/external number representation conversion.
  7156  
  7157  // Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
  7158  //
  7159  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7160  //
  7161  // This file contains Original Code and/or Modifications of Original Code
  7162  // as defined in and that are subject to the Apple Public Source License
  7163  // Version 2.0 (the 'License'). You may not use this file except in
  7164  // compliance with the License. The rights granted to you under the License
  7165  // may not be used to create, or enable the creation or redistribution of,
  7166  // unlawful or unlicensed copies of an Apple operating system, or to
  7167  // circumvent, violate, or enable the circumvention or violation of, any
  7168  // terms of an Apple operating system software license agreement.
  7169  //
  7170  // Please obtain a copy of the License at
  7171  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7172  //
  7173  // The Original Code and all software distributed under the License are
  7174  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7175  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7176  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7177  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7178  // Please see the License for the specific language governing rights and
  7179  // limitations under the License.
  7180  //
  7181  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7182  
  7183  // This header is normally included from <libkern/OSByteOrder.h>.  However,
  7184  // <sys/_endian.h> also includes this in the case of little-endian
  7185  // architectures, so that we can map OSByteOrder routines to the hton* and ntoh*
  7186  // macros.  This results in the asymmetry below; we only include
  7187  // <libkern/arch/_OSByteOrder.h> for little-endian architectures.
  7188  
  7189  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7190  //
  7191  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7192  //
  7193  // This file contains Original Code and/or Modifications of Original Code
  7194  // as defined in and that are subject to the Apple Public Source License
  7195  // Version 2.0 (the 'License'). You may not use this file except in
  7196  // compliance with the License. The rights granted to you under the License
  7197  // may not be used to create, or enable the creation or redistribution of,
  7198  // unlawful or unlicensed copies of an Apple operating system, or to
  7199  // circumvent, violate, or enable the circumvention or violation of, any
  7200  // terms of an Apple operating system software license agreement.
  7201  //
  7202  // Please obtain a copy of the License at
  7203  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7204  //
  7205  // The Original Code and all software distributed under the License are
  7206  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7207  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7208  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7209  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7210  // Please see the License for the specific language governing rights and
  7211  // limitations under the License.
  7212  //
  7213  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7214  
  7215  // Macros for swapping constant values in the preprocessing stage.
  7216  
  7217  // Copyright (c) 1999-2007 Apple Inc. All rights reserved.
  7218  
  7219  // Copyright (c) 2007 Apple Inc. All rights reserved.
  7220  //
  7221  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7222  //
  7223  // This file contains Original Code and/or Modifications of Original Code
  7224  // as defined in and that are subject to the Apple Public Source License
  7225  // Version 2.0 (the 'License'). You may not use this file except in
  7226  // compliance with the License. The rights granted to you under the License
  7227  // may not be used to create, or enable the creation or redistribution of,
  7228  // unlawful or unlicensed copies of an Apple operating system, or to
  7229  // circumvent, violate, or enable the circumvention or violation of, any
  7230  // terms of an Apple operating system software license agreement.
  7231  //
  7232  // Please obtain a copy of the License at
  7233  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7234  //
  7235  // The Original Code and all software distributed under the License are
  7236  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7237  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7238  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7239  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7240  // Please see the License for the specific language governing rights and
  7241  // limitations under the License.
  7242  //
  7243  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7244  
  7245  // Collect the __ARM_ARCH_*__ compiler flags into something easier to use.
  7246  
  7247  // Generic byte swapping functions.
  7248  
  7249  func _OSSwapInt16(tls *libc.TLS, _data Uint16_t) Uint16_t { /* OSByteOrder.h:15:1: */
  7250  	// Reduces to 'rev16' with clang
  7251  	return Uint16_t(int32(_data)<<8 | int32(_data)>>8)
  7252  }
  7253  
  7254  func _OSSwapInt32(tls *libc.TLS, _data Uint32_t) Uint32_t { /* OSByteOrder.h:25:1: */
  7255  	// This actually generates the best code
  7256  	_data = (_data^(_data>>16|_data<<16))&0xFF00FFFF>>8 ^ (_data>>8 | _data<<24)
  7257  
  7258  	return _data
  7259  }
  7260  
  7261  func _OSSwapInt64(tls *libc.TLS, _data Uint64_t) Uint64_t { /* OSByteOrder.h:41:1: */
  7262  	bp := tls.Alloc(8)
  7263  	defer tls.Free(8)
  7264  
  7265  	// var _u struct {F_ull Uint64_t;} at bp, 8
  7266  
  7267  	// This actually generates the best code
  7268  	*(*Uint32_t)(unsafe.Pointer(bp)) = Uint32_t(_data >> 32)
  7269  	*(*Uint32_t)(unsafe.Pointer(bp + 1*4)) = Uint32_t(_data & uint64(0xffffffff))
  7270  	*(*Uint32_t)(unsafe.Pointer(bp)) = _OSSwapInt32(tls, *(*Uint32_t)(unsafe.Pointer(bp)))
  7271  	*(*Uint32_t)(unsafe.Pointer(bp + 1*4)) = _OSSwapInt32(tls, *(*Uint32_t)(unsafe.Pointer(bp + 1*4)))
  7272  	return *(*Uint64_t)(unsafe.Pointer(bp))
  7273  }
  7274  
  7275  // Functions for byte reversed loads.
  7276  
  7277  type X_OSUnalignedU16 = struct{ F__val Uint16_t } /* OSByteOrder.h:64:1 */
  7278  
  7279  type X_OSUnalignedU32 = struct{ F__val Uint32_t } /* OSByteOrder.h:68:1 */
  7280  
  7281  type X_OSUnalignedU64 = struct{ F__val Uint64_t } /* OSByteOrder.h:72:1 */
  7282  
  7283  // Deprecated:
  7284  // Structure of the information in the status word returned by wait4.
  7285  // If w_stopval==_WSTOPPED, then the second structure describes
  7286  // the information returned, else the first.
  7287  type Wait = struct{ Fw_status int32 } /* wait.h:194:1 */
  7288  
  7289  // built-in for gcc
  7290  
  7291  // built-in for gcc 3
  7292  
  7293  // DO NOT REMOVE THIS COMMENT: fixincludes needs to see:
  7294  // _GCC_SIZE_T
  7295  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7296  //
  7297  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7298  //
  7299  // This file contains Original Code and/or Modifications of Original Code
  7300  // as defined in and that are subject to the Apple Public Source License
  7301  // Version 2.0 (the 'License'). You may not use this file except in
  7302  // compliance with the License. The rights granted to you under the License
  7303  // may not be used to create, or enable the creation or redistribution of,
  7304  // unlawful or unlicensed copies of an Apple operating system, or to
  7305  // circumvent, violate, or enable the circumvention or violation of, any
  7306  // terms of an Apple operating system software license agreement.
  7307  //
  7308  // Please obtain a copy of the License at
  7309  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7310  //
  7311  // The Original Code and all software distributed under the License are
  7312  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7313  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7314  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7315  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7316  // Please see the License for the specific language governing rights and
  7317  // limitations under the License.
  7318  //
  7319  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7320  
  7321  // Copyright (c) 2012 Apple Inc. All rights reserved.
  7322  //
  7323  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7324  //
  7325  // This file contains Original Code and/or Modifications of Original Code
  7326  // as defined in and that are subject to the Apple Public Source License
  7327  // Version 2.0 (the 'License'). You may not use this file except in
  7328  // compliance with the License. The rights granted to you under the License
  7329  // may not be used to create, or enable the creation or redistribution of,
  7330  // unlawful or unlicensed copies of an Apple operating system, or to
  7331  // circumvent, violate, or enable the circumvention or violation of, any
  7332  // terms of an Apple operating system software license agreement.
  7333  //
  7334  // Please obtain a copy of the License at
  7335  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7336  //
  7337  // The Original Code and all software distributed under the License are
  7338  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7339  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7340  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7341  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7342  // Please see the License for the specific language governing rights and
  7343  // limitations under the License.
  7344  //
  7345  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7346  
  7347  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7348  //
  7349  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7350  //
  7351  // This file contains Original Code and/or Modifications of Original Code
  7352  // as defined in and that are subject to the Apple Public Source License
  7353  // Version 2.0 (the 'License'). You may not use this file except in
  7354  // compliance with the License. The rights granted to you under the License
  7355  // may not be used to create, or enable the creation or redistribution of,
  7356  // unlawful or unlicensed copies of an Apple operating system, or to
  7357  // circumvent, violate, or enable the circumvention or violation of, any
  7358  // terms of an Apple operating system software license agreement.
  7359  //
  7360  // Please obtain a copy of the License at
  7361  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7362  //
  7363  // The Original Code and all software distributed under the License are
  7364  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7365  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7366  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7367  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7368  // Please see the License for the specific language governing rights and
  7369  // limitations under the License.
  7370  //
  7371  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7372  type Ct_rune_t = X__darwin_ct_rune_t /* _ct_rune_t.h:32:28 */
  7373  // Copyright (c) 2012 Apple Inc. All rights reserved.
  7374  //
  7375  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7376  //
  7377  // This file contains Original Code and/or Modifications of Original Code
  7378  // as defined in and that are subject to the Apple Public Source License
  7379  // Version 2.0 (the 'License'). You may not use this file except in
  7380  // compliance with the License. The rights granted to you under the License
  7381  // may not be used to create, or enable the creation or redistribution of,
  7382  // unlawful or unlicensed copies of an Apple operating system, or to
  7383  // circumvent, violate, or enable the circumvention or violation of, any
  7384  // terms of an Apple operating system software license agreement.
  7385  //
  7386  // Please obtain a copy of the License at
  7387  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7388  //
  7389  // The Original Code and all software distributed under the License are
  7390  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7391  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7392  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7393  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7394  // Please see the License for the specific language governing rights and
  7395  // limitations under the License.
  7396  //
  7397  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7398  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7399  //
  7400  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7401  //
  7402  // This file contains Original Code and/or Modifications of Original Code
  7403  // as defined in and that are subject to the Apple Public Source License
  7404  // Version 2.0 (the 'License'). You may not use this file except in
  7405  // compliance with the License. The rights granted to you under the License
  7406  // may not be used to create, or enable the creation or redistribution of,
  7407  // unlawful or unlicensed copies of an Apple operating system, or to
  7408  // circumvent, violate, or enable the circumvention or violation of, any
  7409  // terms of an Apple operating system software license agreement.
  7410  //
  7411  // Please obtain a copy of the License at
  7412  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7413  //
  7414  // The Original Code and all software distributed under the License are
  7415  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7416  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7417  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7418  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7419  // Please see the License for the specific language governing rights and
  7420  // limitations under the License.
  7421  //
  7422  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7423  type Rune_t = X__darwin_rune_t /* _rune_t.h:31:25 */
  7424  
  7425  type Div_t = struct {
  7426  	Fquot int32
  7427  	Frem  int32
  7428  } /* stdlib.h:86:3 */
  7429  
  7430  type Ldiv_t = struct {
  7431  	Fquot int64
  7432  	Frem  int64
  7433  } /* stdlib.h:91:3 */
  7434  
  7435  type Lldiv_t = struct {
  7436  	Fquot int64
  7437  	Frem  int64
  7438  } /* stdlib.h:97:3 */
  7439  
  7440  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7441  //
  7442  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7443  //
  7444  // This file contains Original Code and/or Modifications of Original Code
  7445  // as defined in and that are subject to the Apple Public Source License
  7446  // Version 2.0 (the 'License'). You may not use this file except in
  7447  // compliance with the License. The rights granted to you under the License
  7448  // may not be used to create, or enable the creation or redistribution of,
  7449  // unlawful or unlicensed copies of an Apple operating system, or to
  7450  // circumvent, violate, or enable the circumvention or violation of, any
  7451  // terms of an Apple operating system software license agreement.
  7452  //
  7453  // Please obtain a copy of the License at
  7454  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7455  //
  7456  // The Original Code and all software distributed under the License are
  7457  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7458  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7459  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7460  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7461  // Please see the License for the specific language governing rights and
  7462  // limitations under the License.
  7463  //
  7464  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7465  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7466  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7467  //
  7468  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7469  //
  7470  // This file contains Original Code and/or Modifications of Original Code
  7471  // as defined in and that are subject to the Apple Public Source License
  7472  // Version 2.0 (the 'License'). You may not use this file except in
  7473  // compliance with the License. The rights granted to you under the License
  7474  // may not be used to create, or enable the creation or redistribution of,
  7475  // unlawful or unlicensed copies of an Apple operating system, or to
  7476  // circumvent, violate, or enable the circumvention or violation of, any
  7477  // terms of an Apple operating system software license agreement.
  7478  //
  7479  // Please obtain a copy of the License at
  7480  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7481  //
  7482  // The Original Code and all software distributed under the License are
  7483  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7484  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7485  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7486  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7487  // Please see the License for the specific language governing rights and
  7488  // limitations under the License.
  7489  //
  7490  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7491  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7492  //
  7493  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7494  //
  7495  // This file contains Original Code and/or Modifications of Original Code
  7496  // as defined in and that are subject to the Apple Public Source License
  7497  // Version 2.0 (the 'License'). You may not use this file except in
  7498  // compliance with the License. The rights granted to you under the License
  7499  // may not be used to create, or enable the creation or redistribution of,
  7500  // unlawful or unlicensed copies of an Apple operating system, or to
  7501  // circumvent, violate, or enable the circumvention or violation of, any
  7502  // terms of an Apple operating system software license agreement.
  7503  //
  7504  // Please obtain a copy of the License at
  7505  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7506  //
  7507  // The Original Code and all software distributed under the License are
  7508  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7509  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7510  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7511  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7512  // Please see the License for the specific language governing rights and
  7513  // limitations under the License.
  7514  //
  7515  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7516  
  7517  type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number
  7518  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7519  //
  7520  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7521  //
  7522  // This file contains Original Code and/or Modifications of Original Code
  7523  // as defined in and that are subject to the Apple Public Source License
  7524  // Version 2.0 (the 'License'). You may not use this file except in
  7525  // compliance with the License. The rights granted to you under the License
  7526  // may not be used to create, or enable the creation or redistribution of,
  7527  // unlawful or unlicensed copies of an Apple operating system, or to
  7528  // circumvent, violate, or enable the circumvention or violation of, any
  7529  // terms of an Apple operating system software license agreement.
  7530  //
  7531  // Please obtain a copy of the License at
  7532  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7533  //
  7534  // The Original Code and all software distributed under the License are
  7535  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7536  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7537  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7538  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7539  // Please see the License for the specific language governing rights and
  7540  // limitations under the License.
  7541  //
  7542  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7543  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7544  //
  7545  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7546  //
  7547  // This file contains Original Code and/or Modifications of Original Code
  7548  // as defined in and that are subject to the Apple Public Source License
  7549  // Version 2.0 (the 'License'). You may not use this file except in
  7550  // compliance with the License. The rights granted to you under the License
  7551  // may not be used to create, or enable the creation or redistribution of,
  7552  // unlawful or unlicensed copies of an Apple operating system, or to
  7553  // circumvent, violate, or enable the circumvention or violation of, any
  7554  // terms of an Apple operating system software license agreement.
  7555  //
  7556  // Please obtain a copy of the License at
  7557  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7558  //
  7559  // The Original Code and all software distributed under the License are
  7560  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7561  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7562  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7563  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7564  // Please see the License for the specific language governing rights and
  7565  // limitations under the License.
  7566  //
  7567  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7568  
  7569  type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */
  7570  
  7571  // getsubopt(3) external variable
  7572  // valloc is now declared in _malloc.h
  7573  
  7574  // Poison the following routines if -fshort-wchar is set
  7575  
  7576  func XXauDisposeAuth(tls *libc.TLS, auth uintptr) { /* AuDispose.c:34:1: */
  7577  	if auth != 0 {
  7578  		libc.Xfree(tls, (*Xauth)(unsafe.Pointer(auth)).Faddress)
  7579  		libc.Xfree(tls, (*Xauth)(unsafe.Pointer(auth)).Fnumber)
  7580  		libc.Xfree(tls, (*Xauth)(unsafe.Pointer(auth)).Fname)
  7581  		if (*Xauth)(unsafe.Pointer(auth)).Fdata != 0 {
  7582  			libc.X__builtin___memset_chk(tls, (*Xauth)(unsafe.Pointer(auth)).Fdata, 0, uint64((*Xauth)(unsafe.Pointer(auth)).Fdata_length), libc.X__builtin_object_size(tls, (*Xauth)(unsafe.Pointer(auth)).Fdata, 0))
  7583  			libc.Xfree(tls, (*Xauth)(unsafe.Pointer(auth)).Fdata)
  7584  		}
  7585  		libc.Xfree(tls, auth)
  7586  	}
  7587  	return
  7588  }
  7589  
  7590  // Copyright (c) 2017 Apple Inc. All rights reserved.
  7591  //
  7592  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7593  //
  7594  // This file contains Original Code and/or Modifications of Original Code
  7595  // as defined in and that are subject to the Apple Public Source License
  7596  // Version 2.0 (the 'License'). You may not use this file except in
  7597  // compliance with the License. The rights granted to you under the License
  7598  // may not be used to create, or enable the creation or redistribution of,
  7599  // unlawful or unlicensed copies of an Apple operating system, or to
  7600  // circumvent, violate, or enable the circumvention or violation of, any
  7601  // terms of an Apple operating system software license agreement.
  7602  //
  7603  // Please obtain a copy of the License at
  7604  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7605  //
  7606  // The Original Code and all software distributed under the License are
  7607  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7608  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7609  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7610  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7611  // Please see the License for the specific language governing rights and
  7612  // limitations under the License.
  7613  //
  7614  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7615  type U_char = uint8 /* _u_char.h:30:25 */
  7616  // Copyright (c) 2017 Apple Inc. All rights reserved.
  7617  //
  7618  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7619  //
  7620  // This file contains Original Code and/or Modifications of Original Code
  7621  // as defined in and that are subject to the Apple Public Source License
  7622  // Version 2.0 (the 'License'). You may not use this file except in
  7623  // compliance with the License. The rights granted to you under the License
  7624  // may not be used to create, or enable the creation or redistribution of,
  7625  // unlawful or unlicensed copies of an Apple operating system, or to
  7626  // circumvent, violate, or enable the circumvention or violation of, any
  7627  // terms of an Apple operating system software license agreement.
  7628  //
  7629  // Please obtain a copy of the License at
  7630  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7631  //
  7632  // The Original Code and all software distributed under the License are
  7633  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7634  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7635  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7636  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7637  // Please see the License for the specific language governing rights and
  7638  // limitations under the License.
  7639  //
  7640  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7641  type U_short = uint16 /* _u_short.h:30:25 */
  7642  // Copyright (c) 2017 Apple Inc. All rights reserved.
  7643  //
  7644  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7645  //
  7646  // This file contains Original Code and/or Modifications of Original Code
  7647  // as defined in and that are subject to the Apple Public Source License
  7648  // Version 2.0 (the 'License'). You may not use this file except in
  7649  // compliance with the License. The rights granted to you under the License
  7650  // may not be used to create, or enable the creation or redistribution of,
  7651  // unlawful or unlicensed copies of an Apple operating system, or to
  7652  // circumvent, violate, or enable the circumvention or violation of, any
  7653  // terms of an Apple operating system software license agreement.
  7654  //
  7655  // Please obtain a copy of the License at
  7656  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7657  //
  7658  // The Original Code and all software distributed under the License are
  7659  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7660  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7661  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7662  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7663  // Please see the License for the specific language governing rights and
  7664  // limitations under the License.
  7665  //
  7666  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7667  type U_int = uint32  /* _u_int.h:30:25 */
  7668  type U_long = uint64 /* types.h:88:33 */
  7669  type Ushort = uint16 /* types.h:91:33 */ // Sys V compatibility
  7670  type Uint = uint32   /* types.h:92:33 */ // Sys V compatibility
  7671  
  7672  type U_quad_t = U_int64_t /* types.h:95:33 */ // quads
  7673  type Quad_t = Int64_t     /* types.h:96:33 */
  7674  type Qaddr_t = uintptr    /* types.h:97:16 */
  7675  
  7676  // Copyright (c) 2017 Apple Inc. All rights reserved.
  7677  //
  7678  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7679  //
  7680  // This file contains Original Code and/or Modifications of Original Code
  7681  // as defined in and that are subject to the Apple Public Source License
  7682  // Version 2.0 (the 'License'). You may not use this file except in
  7683  // compliance with the License. The rights granted to you under the License
  7684  // may not be used to create, or enable the creation or redistribution of,
  7685  // unlawful or unlicensed copies of an Apple operating system, or to
  7686  // circumvent, violate, or enable the circumvention or violation of, any
  7687  // terms of an Apple operating system software license agreement.
  7688  //
  7689  // Please obtain a copy of the License at
  7690  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7691  //
  7692  // The Original Code and all software distributed under the License are
  7693  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7694  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7695  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7696  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7697  // Please see the License for the specific language governing rights and
  7698  // limitations under the License.
  7699  //
  7700  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7701  type Caddr_t = uintptr /* _caddr_t.h:30:14 */
  7702  
  7703  type Daddr_t = Int32_t /* types.h:101:33 */ // device number
  7704  
  7705  type Fixpt_t = U_int32_t /* types.h:105:33 */ // fixed point number
  7706  
  7707  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7708  //
  7709  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7710  //
  7711  // This file contains Original Code and/or Modifications of Original Code
  7712  // as defined in and that are subject to the Apple Public Source License
  7713  // Version 2.0 (the 'License'). You may not use this file except in
  7714  // compliance with the License. The rights granted to you under the License
  7715  // may not be used to create, or enable the creation or redistribution of,
  7716  // unlawful or unlicensed copies of an Apple operating system, or to
  7717  // circumvent, violate, or enable the circumvention or violation of, any
  7718  // terms of an Apple operating system software license agreement.
  7719  //
  7720  // Please obtain a copy of the License at
  7721  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7722  //
  7723  // The Original Code and all software distributed under the License are
  7724  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7725  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7726  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7727  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7728  // Please see the License for the specific language governing rights and
  7729  // limitations under the License.
  7730  //
  7731  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7732  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7733  //
  7734  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7735  //
  7736  // This file contains Original Code and/or Modifications of Original Code
  7737  // as defined in and that are subject to the Apple Public Source License
  7738  // Version 2.0 (the 'License'). You may not use this file except in
  7739  // compliance with the License. The rights granted to you under the License
  7740  // may not be used to create, or enable the creation or redistribution of,
  7741  // unlawful or unlicensed copies of an Apple operating system, or to
  7742  // circumvent, violate, or enable the circumvention or violation of, any
  7743  // terms of an Apple operating system software license agreement.
  7744  //
  7745  // Please obtain a copy of the License at
  7746  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7747  //
  7748  // The Original Code and all software distributed under the License are
  7749  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7750  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7751  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7752  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7753  // Please see the License for the specific language governing rights and
  7754  // limitations under the License.
  7755  //
  7756  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7757  
  7758  type Blkcnt_t = X__darwin_blkcnt_t /* _blkcnt_t.h:31:34 */
  7759  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7760  //
  7761  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7762  //
  7763  // This file contains Original Code and/or Modifications of Original Code
  7764  // as defined in and that are subject to the Apple Public Source License
  7765  // Version 2.0 (the 'License'). You may not use this file except in
  7766  // compliance with the License. The rights granted to you under the License
  7767  // may not be used to create, or enable the creation or redistribution of,
  7768  // unlawful or unlicensed copies of an Apple operating system, or to
  7769  // circumvent, violate, or enable the circumvention or violation of, any
  7770  // terms of an Apple operating system software license agreement.
  7771  //
  7772  // Please obtain a copy of the License at
  7773  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7774  //
  7775  // The Original Code and all software distributed under the License are
  7776  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7777  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7778  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7779  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7780  // Please see the License for the specific language governing rights and
  7781  // limitations under the License.
  7782  //
  7783  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7784  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7785  //
  7786  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7787  //
  7788  // This file contains Original Code and/or Modifications of Original Code
  7789  // as defined in and that are subject to the Apple Public Source License
  7790  // Version 2.0 (the 'License'). You may not use this file except in
  7791  // compliance with the License. The rights granted to you under the License
  7792  // may not be used to create, or enable the creation or redistribution of,
  7793  // unlawful or unlicensed copies of an Apple operating system, or to
  7794  // circumvent, violate, or enable the circumvention or violation of, any
  7795  // terms of an Apple operating system software license agreement.
  7796  //
  7797  // Please obtain a copy of the License at
  7798  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7799  //
  7800  // The Original Code and all software distributed under the License are
  7801  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7802  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7803  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7804  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7805  // Please see the License for the specific language governing rights and
  7806  // limitations under the License.
  7807  //
  7808  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7809  
  7810  type Blksize_t = X__darwin_blksize_t /* _blksize_t.h:31:35 */
  7811  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7812  //
  7813  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7814  //
  7815  // This file contains Original Code and/or Modifications of Original Code
  7816  // as defined in and that are subject to the Apple Public Source License
  7817  // Version 2.0 (the 'License'). You may not use this file except in
  7818  // compliance with the License. The rights granted to you under the License
  7819  // may not be used to create, or enable the creation or redistribution of,
  7820  // unlawful or unlicensed copies of an Apple operating system, or to
  7821  // circumvent, violate, or enable the circumvention or violation of, any
  7822  // terms of an Apple operating system software license agreement.
  7823  //
  7824  // Please obtain a copy of the License at
  7825  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7826  //
  7827  // The Original Code and all software distributed under the License are
  7828  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7829  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7830  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7831  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7832  // Please see the License for the specific language governing rights and
  7833  // limitations under the License.
  7834  //
  7835  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7836  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7837  //
  7838  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7839  //
  7840  // This file contains Original Code and/or Modifications of Original Code
  7841  // as defined in and that are subject to the Apple Public Source License
  7842  // Version 2.0 (the 'License'). You may not use this file except in
  7843  // compliance with the License. The rights granted to you under the License
  7844  // may not be used to create, or enable the creation or redistribution of,
  7845  // unlawful or unlicensed copies of an Apple operating system, or to
  7846  // circumvent, violate, or enable the circumvention or violation of, any
  7847  // terms of an Apple operating system software license agreement.
  7848  //
  7849  // Please obtain a copy of the License at
  7850  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7851  //
  7852  // The Original Code and all software distributed under the License are
  7853  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7854  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7855  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7856  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7857  // Please see the License for the specific language governing rights and
  7858  // limitations under the License.
  7859  //
  7860  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7861  
  7862  type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
  7863  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7864  //
  7865  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7866  //
  7867  // This file contains Original Code and/or Modifications of Original Code
  7868  // as defined in and that are subject to the Apple Public Source License
  7869  // Version 2.0 (the 'License'). You may not use this file except in
  7870  // compliance with the License. The rights granted to you under the License
  7871  // may not be used to create, or enable the creation or redistribution of,
  7872  // unlawful or unlicensed copies of an Apple operating system, or to
  7873  // circumvent, violate, or enable the circumvention or violation of, any
  7874  // terms of an Apple operating system software license agreement.
  7875  //
  7876  // Please obtain a copy of the License at
  7877  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7878  //
  7879  // The Original Code and all software distributed under the License are
  7880  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7881  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7882  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7883  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7884  // Please see the License for the specific language governing rights and
  7885  // limitations under the License.
  7886  //
  7887  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7888  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7889  //
  7890  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7891  //
  7892  // This file contains Original Code and/or Modifications of Original Code
  7893  // as defined in and that are subject to the Apple Public Source License
  7894  // Version 2.0 (the 'License'). You may not use this file except in
  7895  // compliance with the License. The rights granted to you under the License
  7896  // may not be used to create, or enable the creation or redistribution of,
  7897  // unlawful or unlicensed copies of an Apple operating system, or to
  7898  // circumvent, violate, or enable the circumvention or violation of, any
  7899  // terms of an Apple operating system software license agreement.
  7900  //
  7901  // Please obtain a copy of the License at
  7902  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7903  //
  7904  // The Original Code and all software distributed under the License are
  7905  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7906  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7907  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7908  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7909  // Please see the License for the specific language governing rights and
  7910  // limitations under the License.
  7911  //
  7912  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7913  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7914  type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address
  7915  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7916  //
  7917  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7918  //
  7919  // This file contains Original Code and/or Modifications of Original Code
  7920  // as defined in and that are subject to the Apple Public Source License
  7921  // Version 2.0 (the 'License'). You may not use this file except in
  7922  // compliance with the License. The rights granted to you under the License
  7923  // may not be used to create, or enable the creation or redistribution of,
  7924  // unlawful or unlicensed copies of an Apple operating system, or to
  7925  // circumvent, violate, or enable the circumvention or violation of, any
  7926  // terms of an Apple operating system software license agreement.
  7927  //
  7928  // Please obtain a copy of the License at
  7929  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7930  //
  7931  // The Original Code and all software distributed under the License are
  7932  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7933  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7934  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7935  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7936  // Please see the License for the specific language governing rights and
  7937  // limitations under the License.
  7938  //
  7939  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7940  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7941  //
  7942  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7943  //
  7944  // This file contains Original Code and/or Modifications of Original Code
  7945  // as defined in and that are subject to the Apple Public Source License
  7946  // Version 2.0 (the 'License'). You may not use this file except in
  7947  // compliance with the License. The rights granted to you under the License
  7948  // may not be used to create, or enable the creation or redistribution of,
  7949  // unlawful or unlicensed copies of an Apple operating system, or to
  7950  // circumvent, violate, or enable the circumvention or violation of, any
  7951  // terms of an Apple operating system software license agreement.
  7952  //
  7953  // Please obtain a copy of the License at
  7954  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7955  //
  7956  // The Original Code and all software distributed under the License are
  7957  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7958  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7959  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7960  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7961  // Please see the License for the specific language governing rights and
  7962  // limitations under the License.
  7963  //
  7964  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7965  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7966  type In_port_t = X__uint16_t /* _in_port_t.h:31:33 */
  7967  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7968  //
  7969  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7970  //
  7971  // This file contains Original Code and/or Modifications of Original Code
  7972  // as defined in and that are subject to the Apple Public Source License
  7973  // Version 2.0 (the 'License'). You may not use this file except in
  7974  // compliance with the License. The rights granted to you under the License
  7975  // may not be used to create, or enable the creation or redistribution of,
  7976  // unlawful or unlicensed copies of an Apple operating system, or to
  7977  // circumvent, violate, or enable the circumvention or violation of, any
  7978  // terms of an Apple operating system software license agreement.
  7979  //
  7980  // Please obtain a copy of the License at
  7981  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7982  //
  7983  // The Original Code and all software distributed under the License are
  7984  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7985  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7986  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7987  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7988  // Please see the License for the specific language governing rights and
  7989  // limitations under the License.
  7990  //
  7991  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7992  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7993  //
  7994  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7995  //
  7996  // This file contains Original Code and/or Modifications of Original Code
  7997  // as defined in and that are subject to the Apple Public Source License
  7998  // Version 2.0 (the 'License'). You may not use this file except in
  7999  // compliance with the License. The rights granted to you under the License
  8000  // may not be used to create, or enable the creation or redistribution of,
  8001  // unlawful or unlicensed copies of an Apple operating system, or to
  8002  // circumvent, violate, or enable the circumvention or violation of, any
  8003  // terms of an Apple operating system software license agreement.
  8004  //
  8005  // Please obtain a copy of the License at
  8006  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8007  //
  8008  // The Original Code and all software distributed under the License are
  8009  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8010  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8011  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8012  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8013  // Please see the License for the specific language governing rights and
  8014  // limitations under the License.
  8015  //
  8016  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8017  
  8018  type Ino_t = X__darwin_ino_t /* _ino_t.h:31:33 */ // inode number
  8019  
  8020  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8021  //
  8022  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8023  //
  8024  // This file contains Original Code and/or Modifications of Original Code
  8025  // as defined in and that are subject to the Apple Public Source License
  8026  // Version 2.0 (the 'License'). You may not use this file except in
  8027  // compliance with the License. The rights granted to you under the License
  8028  // may not be used to create, or enable the creation or redistribution of,
  8029  // unlawful or unlicensed copies of an Apple operating system, or to
  8030  // circumvent, violate, or enable the circumvention or violation of, any
  8031  // terms of an Apple operating system software license agreement.
  8032  //
  8033  // Please obtain a copy of the License at
  8034  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8035  //
  8036  // The Original Code and all software distributed under the License are
  8037  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8038  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8039  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8040  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8041  // Please see the License for the specific language governing rights and
  8042  // limitations under the License.
  8043  //
  8044  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8045  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  8046  //
  8047  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8048  //
  8049  // This file contains Original Code and/or Modifications of Original Code
  8050  // as defined in and that are subject to the Apple Public Source License
  8051  // Version 2.0 (the 'License'). You may not use this file except in
  8052  // compliance with the License. The rights granted to you under the License
  8053  // may not be used to create, or enable the creation or redistribution of,
  8054  // unlawful or unlicensed copies of an Apple operating system, or to
  8055  // circumvent, violate, or enable the circumvention or violation of, any
  8056  // terms of an Apple operating system software license agreement.
  8057  //
  8058  // Please obtain a copy of the License at
  8059  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8060  //
  8061  // The Original Code and all software distributed under the License are
  8062  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8063  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8064  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8065  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8066  // Please see the License for the specific language governing rights and
  8067  // limitations under the License.
  8068  //
  8069  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8070  
  8071  type Ino64_t = X__darwin_ino64_t /* _ino64_t.h:31:33 */ // 64bit inode number
  8072  
  8073  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8074  //
  8075  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8076  //
  8077  // This file contains Original Code and/or Modifications of Original Code
  8078  // as defined in and that are subject to the Apple Public Source License
  8079  // Version 2.0 (the 'License'). You may not use this file except in
  8080  // compliance with the License. The rights granted to you under the License
  8081  // may not be used to create, or enable the creation or redistribution of,
  8082  // unlawful or unlicensed copies of an Apple operating system, or to
  8083  // circumvent, violate, or enable the circumvention or violation of, any
  8084  // terms of an Apple operating system software license agreement.
  8085  //
  8086  // Please obtain a copy of the License at
  8087  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8088  //
  8089  // The Original Code and all software distributed under the License are
  8090  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8091  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8092  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8093  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8094  // Please see the License for the specific language governing rights and
  8095  // limitations under the License.
  8096  //
  8097  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8098  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  8099  //
  8100  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8101  //
  8102  // This file contains Original Code and/or Modifications of Original Code
  8103  // as defined in and that are subject to the Apple Public Source License
  8104  // Version 2.0 (the 'License'). You may not use this file except in
  8105  // compliance with the License. The rights granted to you under the License
  8106  // may not be used to create, or enable the creation or redistribution of,
  8107  // unlawful or unlicensed copies of an Apple operating system, or to
  8108  // circumvent, violate, or enable the circumvention or violation of, any
  8109  // terms of an Apple operating system software license agreement.
  8110  //
  8111  // Please obtain a copy of the License at
  8112  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8113  //
  8114  // The Original Code and all software distributed under the License are
  8115  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8116  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8117  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8118  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8119  // Please see the License for the specific language governing rights and
  8120  // limitations under the License.
  8121  //
  8122  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8123  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8124  type Key_t = X__int32_t /* _key_t.h:31:26 */
  8125  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8126  //
  8127  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8128  //
  8129  // This file contains Original Code and/or Modifications of Original Code
  8130  // as defined in and that are subject to the Apple Public Source License
  8131  // Version 2.0 (the 'License'). You may not use this file except in
  8132  // compliance with the License. The rights granted to you under the License
  8133  // may not be used to create, or enable the creation or redistribution of,
  8134  // unlawful or unlicensed copies of an Apple operating system, or to
  8135  // circumvent, violate, or enable the circumvention or violation of, any
  8136  // terms of an Apple operating system software license agreement.
  8137  //
  8138  // Please obtain a copy of the License at
  8139  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8140  //
  8141  // The Original Code and all software distributed under the License are
  8142  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8143  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8144  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8145  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8146  // Please see the License for the specific language governing rights and
  8147  // limitations under the License.
  8148  //
  8149  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8150  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  8151  //
  8152  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8153  //
  8154  // This file contains Original Code and/or Modifications of Original Code
  8155  // as defined in and that are subject to the Apple Public Source License
  8156  // Version 2.0 (the 'License'). You may not use this file except in
  8157  // compliance with the License. The rights granted to you under the License
  8158  // may not be used to create, or enable the creation or redistribution of,
  8159  // unlawful or unlicensed copies of an Apple operating system, or to
  8160  // circumvent, violate, or enable the circumvention or violation of, any
  8161  // terms of an Apple operating system software license agreement.
  8162  //
  8163  // Please obtain a copy of the License at
  8164  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8165  //
  8166  // The Original Code and all software distributed under the License are
  8167  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8168  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8169  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8170  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8171  // Please see the License for the specific language governing rights and
  8172  // limitations under the License.
  8173  //
  8174  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8175  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8176  type Nlink_t = X__uint16_t /* _nlink_t.h:31:27 */
  8177  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8178  //
  8179  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8180  //
  8181  // This file contains Original Code and/or Modifications of Original Code
  8182  // as defined in and that are subject to the Apple Public Source License
  8183  // Version 2.0 (the 'License'). You may not use this file except in
  8184  // compliance with the License. The rights granted to you under the License
  8185  // may not be used to create, or enable the creation or redistribution of,
  8186  // unlawful or unlicensed copies of an Apple operating system, or to
  8187  // circumvent, violate, or enable the circumvention or violation of, any
  8188  // terms of an Apple operating system software license agreement.
  8189  //
  8190  // Please obtain a copy of the License at
  8191  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8192  //
  8193  // The Original Code and all software distributed under the License are
  8194  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8195  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8196  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8197  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8198  // Please see the License for the specific language governing rights and
  8199  // limitations under the License.
  8200  //
  8201  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8202  
  8203  type Segsz_t = Int32_t /* types.h:125:33 */ // segment size
  8204  type Swblk_t = Int32_t /* types.h:126:33 */
  8205  
  8206  // Major, minor numbers, dev_t's.
  8207  
  8208  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8209  //
  8210  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8211  //
  8212  // This file contains Original Code and/or Modifications of Original Code
  8213  // as defined in and that are subject to the Apple Public Source License
  8214  // Version 2.0 (the 'License'). You may not use this file except in
  8215  // compliance with the License. The rights granted to you under the License
  8216  // may not be used to create, or enable the creation or redistribution of,
  8217  // unlawful or unlicensed copies of an Apple operating system, or to
  8218  // circumvent, violate, or enable the circumvention or violation of, any
  8219  // terms of an Apple operating system software license agreement.
  8220  //
  8221  // Please obtain a copy of the License at
  8222  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8223  //
  8224  // The Original Code and all software distributed under the License are
  8225  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8226  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8227  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8228  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8229  // Please see the License for the specific language governing rights and
  8230  // limitations under the License.
  8231  //
  8232  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8233  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  8234  //
  8235  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8236  //
  8237  // This file contains Original Code and/or Modifications of Original Code
  8238  // as defined in and that are subject to the Apple Public Source License
  8239  // Version 2.0 (the 'License'). You may not use this file except in
  8240  // compliance with the License. The rights granted to you under the License
  8241  // may not be used to create, or enable the creation or redistribution of,
  8242  // unlawful or unlicensed copies of an Apple operating system, or to
  8243  // circumvent, violate, or enable the circumvention or violation of, any
  8244  // terms of an Apple operating system software license agreement.
  8245  //
  8246  // Please obtain a copy of the License at
  8247  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8248  //
  8249  // The Original Code and all software distributed under the License are
  8250  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8251  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8252  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8253  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8254  // Please see the License for the specific language governing rights and
  8255  // limitations under the License.
  8256  //
  8257  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8258  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8259  type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */
  8260  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8261  //
  8262  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8263  //
  8264  // This file contains Original Code and/or Modifications of Original Code
  8265  // as defined in and that are subject to the Apple Public Source License
  8266  // Version 2.0 (the 'License'). You may not use this file except in
  8267  // compliance with the License. The rights granted to you under the License
  8268  // may not be used to create, or enable the creation or redistribution of,
  8269  // unlawful or unlicensed copies of an Apple operating system, or to
  8270  // circumvent, violate, or enable the circumvention or violation of, any
  8271  // terms of an Apple operating system software license agreement.
  8272  //
  8273  // Please obtain a copy of the License at
  8274  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8275  //
  8276  // The Original Code and all software distributed under the License are
  8277  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8278  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8279  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8280  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8281  // Please see the License for the specific language governing rights and
  8282  // limitations under the License.
  8283  //
  8284  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8285  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8286  //
  8287  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8288  //
  8289  // This file contains Original Code and/or Modifications of Original Code
  8290  // as defined in and that are subject to the Apple Public Source License
  8291  // Version 2.0 (the 'License'). You may not use this file except in
  8292  // compliance with the License. The rights granted to you under the License
  8293  // may not be used to create, or enable the creation or redistribution of,
  8294  // unlawful or unlicensed copies of an Apple operating system, or to
  8295  // circumvent, violate, or enable the circumvention or violation of, any
  8296  // terms of an Apple operating system software license agreement.
  8297  //
  8298  // Please obtain a copy of the License at
  8299  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8300  //
  8301  // The Original Code and all software distributed under the License are
  8302  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8303  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8304  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8305  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8306  // Please see the License for the specific language governing rights and
  8307  // limitations under the License.
  8308  //
  8309  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8310  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8311  //
  8312  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8313  //
  8314  // This file contains Original Code and/or Modifications of Original Code
  8315  // as defined in and that are subject to the Apple Public Source License
  8316  // Version 2.0 (the 'License'). You may not use this file except in
  8317  // compliance with the License. The rights granted to you under the License
  8318  // may not be used to create, or enable the creation or redistribution of,
  8319  // unlawful or unlicensed copies of an Apple operating system, or to
  8320  // circumvent, violate, or enable the circumvention or violation of, any
  8321  // terms of an Apple operating system software license agreement.
  8322  //
  8323  // Please obtain a copy of the License at
  8324  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8325  //
  8326  // The Original Code and all software distributed under the License are
  8327  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8328  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8329  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8330  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8331  // Please see the License for the specific language governing rights and
  8332  // limitations under the License.
  8333  //
  8334  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8335  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  8336  //
  8337  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8338  //
  8339  // This file contains Original Code and/or Modifications of Original Code
  8340  // as defined in and that are subject to the Apple Public Source License
  8341  // Version 2.0 (the 'License'). You may not use this file except in
  8342  // compliance with the License. The rights granted to you under the License
  8343  // may not be used to create, or enable the creation or redistribution of,
  8344  // unlawful or unlicensed copies of an Apple operating system, or to
  8345  // circumvent, violate, or enable the circumvention or violation of, any
  8346  // terms of an Apple operating system software license agreement.
  8347  //
  8348  // Please obtain a copy of the License at
  8349  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8350  //
  8351  // The Original Code and all software distributed under the License are
  8352  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8353  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8354  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8355  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8356  // Please see the License for the specific language governing rights and
  8357  // limitations under the License.
  8358  //
  8359  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8360  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8361  type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
  8362  
  8363  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8364  //
  8365  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8366  //
  8367  // This file contains Original Code and/or Modifications of Original Code
  8368  // as defined in and that are subject to the Apple Public Source License
  8369  // Version 2.0 (the 'License'). You may not use this file except in
  8370  // compliance with the License. The rights granted to you under the License
  8371  // may not be used to create, or enable the creation or redistribution of,
  8372  // unlawful or unlicensed copies of an Apple operating system, or to
  8373  // circumvent, violate, or enable the circumvention or violation of, any
  8374  // terms of an Apple operating system software license agreement.
  8375  //
  8376  // Please obtain a copy of the License at
  8377  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8378  //
  8379  // The Original Code and all software distributed under the License are
  8380  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8381  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8382  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8383  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8384  // Please see the License for the specific language governing rights and
  8385  // limitations under the License.
  8386  //
  8387  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8388  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  8389  //
  8390  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8391  //
  8392  // This file contains Original Code and/or Modifications of Original Code
  8393  // as defined in and that are subject to the Apple Public Source License
  8394  // Version 2.0 (the 'License'). You may not use this file except in
  8395  // compliance with the License. The rights granted to you under the License
  8396  // may not be used to create, or enable the creation or redistribution of,
  8397  // unlawful or unlicensed copies of an Apple operating system, or to
  8398  // circumvent, violate, or enable the circumvention or violation of, any
  8399  // terms of an Apple operating system software license agreement.
  8400  //
  8401  // Please obtain a copy of the License at
  8402  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8403  //
  8404  // The Original Code and all software distributed under the License are
  8405  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8406  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8407  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8408  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8409  // Please see the License for the specific language governing rights and
  8410  // limitations under the License.
  8411  //
  8412  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8413  
  8414  type Useconds_t = X__darwin_useconds_t /* _useconds_t.h:31:33 */
  8415  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8416  //
  8417  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8418  //
  8419  // This file contains Original Code and/or Modifications of Original Code
  8420  // as defined in and that are subject to the Apple Public Source License
  8421  // Version 2.0 (the 'License'). You may not use this file except in
  8422  // compliance with the License. The rights granted to you under the License
  8423  // may not be used to create, or enable the creation or redistribution of,
  8424  // unlawful or unlicensed copies of an Apple operating system, or to
  8425  // circumvent, violate, or enable the circumvention or violation of, any
  8426  // terms of an Apple operating system software license agreement.
  8427  //
  8428  // Please obtain a copy of the License at
  8429  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8430  //
  8431  // The Original Code and all software distributed under the License are
  8432  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8433  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8434  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8435  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8436  // Please see the License for the specific language governing rights and
  8437  // limitations under the License.
  8438  //
  8439  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8440  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  8441  //
  8442  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8443  //
  8444  // This file contains Original Code and/or Modifications of Original Code
  8445  // as defined in and that are subject to the Apple Public Source License
  8446  // Version 2.0 (the 'License'). You may not use this file except in
  8447  // compliance with the License. The rights granted to you under the License
  8448  // may not be used to create, or enable the creation or redistribution of,
  8449  // unlawful or unlicensed copies of an Apple operating system, or to
  8450  // circumvent, violate, or enable the circumvention or violation of, any
  8451  // terms of an Apple operating system software license agreement.
  8452  //
  8453  // Please obtain a copy of the License at
  8454  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8455  //
  8456  // The Original Code and all software distributed under the License are
  8457  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8458  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8459  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8460  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8461  // Please see the License for the specific language governing rights and
  8462  // limitations under the License.
  8463  //
  8464  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8465  
  8466  type Suseconds_t = X__darwin_suseconds_t /* _suseconds_t.h:31:33 */
  8467  
  8468  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8469  //
  8470  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8471  //
  8472  // This file contains Original Code and/or Modifications of Original Code
  8473  // as defined in and that are subject to the Apple Public Source License
  8474  // Version 2.0 (the 'License'). You may not use this file except in
  8475  // compliance with the License. The rights granted to you under the License
  8476  // may not be used to create, or enable the creation or redistribution of,
  8477  // unlawful or unlicensed copies of an Apple operating system, or to
  8478  // circumvent, violate, or enable the circumvention or violation of, any
  8479  // terms of an Apple operating system software license agreement.
  8480  //
  8481  // Please obtain a copy of the License at
  8482  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8483  //
  8484  // The Original Code and all software distributed under the License are
  8485  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8486  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8487  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8488  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8489  // Please see the License for the specific language governing rights and
  8490  // limitations under the License.
  8491  //
  8492  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8493  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8494  //
  8495  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8496  //
  8497  // This file contains Original Code and/or Modifications of Original Code
  8498  // as defined in and that are subject to the Apple Public Source License
  8499  // Version 2.0 (the 'License'). You may not use this file except in
  8500  // compliance with the License. The rights granted to you under the License
  8501  // may not be used to create, or enable the creation or redistribution of,
  8502  // unlawful or unlicensed copies of an Apple operating system, or to
  8503  // circumvent, violate, or enable the circumvention or violation of, any
  8504  // terms of an Apple operating system software license agreement.
  8505  //
  8506  // Please obtain a copy of the License at
  8507  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8508  //
  8509  // The Original Code and all software distributed under the License are
  8510  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8511  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8512  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8513  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8514  // Please see the License for the specific language governing rights and
  8515  // limitations under the License.
  8516  //
  8517  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8518  
  8519  // This code is present here in order to maintain historical backward
  8520  // compatability, and is intended to be removed at some point in the
  8521  // future; please include <sys/select.h> instead.
  8522  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8523  //
  8524  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8525  //
  8526  // This file contains Original Code and/or Modifications of Original Code
  8527  // as defined in and that are subject to the Apple Public Source License
  8528  // Version 2.0 (the 'License'). You may not use this file except in
  8529  // compliance with the License. The rights granted to you under the License
  8530  // may not be used to create, or enable the creation or redistribution of,
  8531  // unlawful or unlicensed copies of an Apple operating system, or to
  8532  // circumvent, violate, or enable the circumvention or violation of, any
  8533  // terms of an Apple operating system software license agreement.
  8534  //
  8535  // Please obtain a copy of the License at
  8536  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8537  //
  8538  // The Original Code and all software distributed under the License are
  8539  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8540  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8541  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8542  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8543  // Please see the License for the specific language governing rights and
  8544  // limitations under the License.
  8545  //
  8546  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8547  
  8548  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  8549  //
  8550  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8551  //
  8552  // This file contains Original Code and/or Modifications of Original Code
  8553  // as defined in and that are subject to the Apple Public Source License
  8554  // Version 2.0 (the 'License'). You may not use this file except in
  8555  // compliance with the License. The rights granted to you under the License
  8556  // may not be used to create, or enable the creation or redistribution of,
  8557  // unlawful or unlicensed copies of an Apple operating system, or to
  8558  // circumvent, violate, or enable the circumvention or violation of, any
  8559  // terms of an Apple operating system software license agreement.
  8560  //
  8561  // Please obtain a copy of the License at
  8562  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8563  //
  8564  // The Original Code and all software distributed under the License are
  8565  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8566  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8567  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8568  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8569  // Please see the License for the specific language governing rights and
  8570  // limitations under the License.
  8571  //
  8572  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8573  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8574  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  8575  //
  8576  // @APPLE_LICENSE_HEADER_START@
  8577  //
  8578  // This file contains Original Code and/or Modifications of Original Code
  8579  // as defined in and that are subject to the Apple Public Source License
  8580  // Version 2.0 (the 'License'). You may not use this file except in
  8581  // compliance with the License. Please obtain a copy of the License at
  8582  // http://www.opensource.apple.com/apsl/ and read it before using this
  8583  // file.
  8584  //
  8585  // The Original Code and all software distributed under the License are
  8586  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8587  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8588  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8589  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8590  // Please see the License for the specific language governing rights and
  8591  // limitations under the License.
  8592  //
  8593  // @APPLE_LICENSE_HEADER_END@
  8594  
  8595  // Select uses bit masks of file descriptors in longs.  These macros
  8596  // manipulate such bit fields (the filesystem macros use chars).  The
  8597  // extra protection here is to permit application redefinition above
  8598  // the default size.
  8599  
  8600  type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
  8601  
  8602  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8603  //
  8604  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8605  //
  8606  // This file contains Original Code and/or Modifications of Original Code
  8607  // as defined in and that are subject to the Apple Public Source License
  8608  // Version 2.0 (the 'License'). You may not use this file except in
  8609  // compliance with the License. The rights granted to you under the License
  8610  // may not be used to create, or enable the creation or redistribution of,
  8611  // unlawful or unlicensed copies of an Apple operating system, or to
  8612  // circumvent, violate, or enable the circumvention or violation of, any
  8613  // terms of an Apple operating system software license agreement.
  8614  //
  8615  // Please obtain a copy of the License at
  8616  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8617  //
  8618  // The Original Code and all software distributed under the License are
  8619  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8620  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8621  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8622  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8623  // Please see the License for the specific language governing rights and
  8624  // limitations under the License.
  8625  //
  8626  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8627  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8628  //
  8629  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8630  //
  8631  // This file contains Original Code and/or Modifications of Original Code
  8632  // as defined in and that are subject to the Apple Public Source License
  8633  // Version 2.0 (the 'License'). You may not use this file except in
  8634  // compliance with the License. The rights granted to you under the License
  8635  // may not be used to create, or enable the creation or redistribution of,
  8636  // unlawful or unlicensed copies of an Apple operating system, or to
  8637  // circumvent, violate, or enable the circumvention or violation of, any
  8638  // terms of an Apple operating system software license agreement.
  8639  //
  8640  // Please obtain a copy of the License at
  8641  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8642  //
  8643  // The Original Code and all software distributed under the License are
  8644  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8645  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8646  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8647  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8648  // Please see the License for the specific language governing rights and
  8649  // limitations under the License.
  8650  //
  8651  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8652  
  8653  // This code is present here in order to maintain historical backward
  8654  // compatability, and is intended to be removed at some point in the
  8655  // future; please include <sys/select.h> instead.
  8656  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8657  //
  8658  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8659  //
  8660  // This file contains Original Code and/or Modifications of Original Code
  8661  // as defined in and that are subject to the Apple Public Source License
  8662  // Version 2.0 (the 'License'). You may not use this file except in
  8663  // compliance with the License. The rights granted to you under the License
  8664  // may not be used to create, or enable the creation or redistribution of,
  8665  // unlawful or unlicensed copies of an Apple operating system, or to
  8666  // circumvent, violate, or enable the circumvention or violation of, any
  8667  // terms of an Apple operating system software license agreement.
  8668  //
  8669  // Please obtain a copy of the License at
  8670  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8671  //
  8672  // The Original Code and all software distributed under the License are
  8673  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8674  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8675  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8676  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8677  // Please see the License for the specific language governing rights and
  8678  // limitations under the License.
  8679  //
  8680  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8681  
  8682  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  8683  //
  8684  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8685  //
  8686  // This file contains Original Code and/or Modifications of Original Code
  8687  // as defined in and that are subject to the Apple Public Source License
  8688  // Version 2.0 (the 'License'). You may not use this file except in
  8689  // compliance with the License. The rights granted to you under the License
  8690  // may not be used to create, or enable the creation or redistribution of,
  8691  // unlawful or unlicensed copies of an Apple operating system, or to
  8692  // circumvent, violate, or enable the circumvention or violation of, any
  8693  // terms of an Apple operating system software license agreement.
  8694  //
  8695  // Please obtain a copy of the License at
  8696  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8697  //
  8698  // The Original Code and all software distributed under the License are
  8699  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8700  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8701  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8702  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8703  // Please see the License for the specific language governing rights and
  8704  // limitations under the License.
  8705  //
  8706  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8707  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8708  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  8709  //
  8710  // @APPLE_LICENSE_HEADER_START@
  8711  //
  8712  // This file contains Original Code and/or Modifications of Original Code
  8713  // as defined in and that are subject to the Apple Public Source License
  8714  // Version 2.0 (the 'License'). You may not use this file except in
  8715  // compliance with the License. Please obtain a copy of the License at
  8716  // http://www.opensource.apple.com/apsl/ and read it before using this
  8717  // file.
  8718  //
  8719  // The Original Code and all software distributed under the License are
  8720  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8721  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8722  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8723  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8724  // Please see the License for the specific language governing rights and
  8725  // limitations under the License.
  8726  //
  8727  // @APPLE_LICENSE_HEADER_END@
  8728  
  8729  // Select uses bit masks of file descriptors in longs.  These macros
  8730  // manipulate such bit fields (the filesystem macros use chars).  The
  8731  // extra protection here is to permit application redefinition above
  8732  // the default size.
  8733  
  8734  type Fd_set = Fd_set1 /* _fd_def.h:52:3 */
  8735  
  8736  // Use the built-in bzero function instead of the library version so that
  8737  // we do not pollute the namespace or introduce prototype warnings.
  8738  
  8739  type Fd_mask = X__int32_t /* types.h:189:25 */
  8740  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8741  //
  8742  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8743  //
  8744  // This file contains Original Code and/or Modifications of Original Code
  8745  // as defined in and that are subject to the Apple Public Source License
  8746  // Version 2.0 (the 'License'). You may not use this file except in
  8747  // compliance with the License. The rights granted to you under the License
  8748  // may not be used to create, or enable the creation or redistribution of,
  8749  // unlawful or unlicensed copies of an Apple operating system, or to
  8750  // circumvent, violate, or enable the circumvention or violation of, any
  8751  // terms of an Apple operating system software license agreement.
  8752  //
  8753  // Please obtain a copy of the License at
  8754  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8755  //
  8756  // The Original Code and all software distributed under the License are
  8757  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8758  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8759  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8760  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8761  // Please see the License for the specific language governing rights and
  8762  // limitations under the License.
  8763  //
  8764  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8765  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  8766  //
  8767  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8768  //
  8769  // This file contains Original Code and/or Modifications of Original Code
  8770  // as defined in and that are subject to the Apple Public Source License
  8771  // Version 2.0 (the 'License'). You may not use this file except in
  8772  // compliance with the License. The rights granted to you under the License
  8773  // may not be used to create, or enable the creation or redistribution of,
  8774  // unlawful or unlicensed copies of an Apple operating system, or to
  8775  // circumvent, violate, or enable the circumvention or violation of, any
  8776  // terms of an Apple operating system software license agreement.
  8777  //
  8778  // Please obtain a copy of the License at
  8779  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8780  //
  8781  // The Original Code and all software distributed under the License are
  8782  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8783  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8784  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8785  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8786  // Please see the License for the specific language governing rights and
  8787  // limitations under the License.
  8788  //
  8789  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8790  
  8791  type Pthread_cond_t = X__darwin_pthread_cond_t /* _pthread_cond_t.h:31:33 */
  8792  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8793  //
  8794  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8795  //
  8796  // This file contains Original Code and/or Modifications of Original Code
  8797  // as defined in and that are subject to the Apple Public Source License
  8798  // Version 2.0 (the 'License'). You may not use this file except in
  8799  // compliance with the License. The rights granted to you under the License
  8800  // may not be used to create, or enable the creation or redistribution of,
  8801  // unlawful or unlicensed copies of an Apple operating system, or to
  8802  // circumvent, violate, or enable the circumvention or violation of, any
  8803  // terms of an Apple operating system software license agreement.
  8804  //
  8805  // Please obtain a copy of the License at
  8806  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8807  //
  8808  // The Original Code and all software distributed under the License are
  8809  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8810  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8811  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8812  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8813  // Please see the License for the specific language governing rights and
  8814  // limitations under the License.
  8815  //
  8816  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8817  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  8818  //
  8819  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8820  //
  8821  // This file contains Original Code and/or Modifications of Original Code
  8822  // as defined in and that are subject to the Apple Public Source License
  8823  // Version 2.0 (the 'License'). You may not use this file except in
  8824  // compliance with the License. The rights granted to you under the License
  8825  // may not be used to create, or enable the creation or redistribution of,
  8826  // unlawful or unlicensed copies of an Apple operating system, or to
  8827  // circumvent, violate, or enable the circumvention or violation of, any
  8828  // terms of an Apple operating system software license agreement.
  8829  //
  8830  // Please obtain a copy of the License at
  8831  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8832  //
  8833  // The Original Code and all software distributed under the License are
  8834  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8835  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8836  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8837  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8838  // Please see the License for the specific language governing rights and
  8839  // limitations under the License.
  8840  //
  8841  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8842  
  8843  type Pthread_condattr_t = X__darwin_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */
  8844  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8845  //
  8846  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8847  //
  8848  // This file contains Original Code and/or Modifications of Original Code
  8849  // as defined in and that are subject to the Apple Public Source License
  8850  // Version 2.0 (the 'License'). You may not use this file except in
  8851  // compliance with the License. The rights granted to you under the License
  8852  // may not be used to create, or enable the creation or redistribution of,
  8853  // unlawful or unlicensed copies of an Apple operating system, or to
  8854  // circumvent, violate, or enable the circumvention or violation of, any
  8855  // terms of an Apple operating system software license agreement.
  8856  //
  8857  // Please obtain a copy of the License at
  8858  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8859  //
  8860  // The Original Code and all software distributed under the License are
  8861  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8862  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8863  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8864  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8865  // Please see the License for the specific language governing rights and
  8866  // limitations under the License.
  8867  //
  8868  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8869  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  8870  //
  8871  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8872  //
  8873  // This file contains Original Code and/or Modifications of Original Code
  8874  // as defined in and that are subject to the Apple Public Source License
  8875  // Version 2.0 (the 'License'). You may not use this file except in
  8876  // compliance with the License. The rights granted to you under the License
  8877  // may not be used to create, or enable the creation or redistribution of,
  8878  // unlawful or unlicensed copies of an Apple operating system, or to
  8879  // circumvent, violate, or enable the circumvention or violation of, any
  8880  // terms of an Apple operating system software license agreement.
  8881  //
  8882  // Please obtain a copy of the License at
  8883  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8884  //
  8885  // The Original Code and all software distributed under the License are
  8886  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8887  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8888  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8889  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8890  // Please see the License for the specific language governing rights and
  8891  // limitations under the License.
  8892  //
  8893  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8894  
  8895  type Pthread_mutex_t = X__darwin_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */
  8896  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8897  //
  8898  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8899  //
  8900  // This file contains Original Code and/or Modifications of Original Code
  8901  // as defined in and that are subject to the Apple Public Source License
  8902  // Version 2.0 (the 'License'). You may not use this file except in
  8903  // compliance with the License. The rights granted to you under the License
  8904  // may not be used to create, or enable the creation or redistribution of,
  8905  // unlawful or unlicensed copies of an Apple operating system, or to
  8906  // circumvent, violate, or enable the circumvention or violation of, any
  8907  // terms of an Apple operating system software license agreement.
  8908  //
  8909  // Please obtain a copy of the License at
  8910  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8911  //
  8912  // The Original Code and all software distributed under the License are
  8913  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8914  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8915  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8916  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8917  // Please see the License for the specific language governing rights and
  8918  // limitations under the License.
  8919  //
  8920  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8921  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  8922  //
  8923  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8924  //
  8925  // This file contains Original Code and/or Modifications of Original Code
  8926  // as defined in and that are subject to the Apple Public Source License
  8927  // Version 2.0 (the 'License'). You may not use this file except in
  8928  // compliance with the License. The rights granted to you under the License
  8929  // may not be used to create, or enable the creation or redistribution of,
  8930  // unlawful or unlicensed copies of an Apple operating system, or to
  8931  // circumvent, violate, or enable the circumvention or violation of, any
  8932  // terms of an Apple operating system software license agreement.
  8933  //
  8934  // Please obtain a copy of the License at
  8935  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8936  //
  8937  // The Original Code and all software distributed under the License are
  8938  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8939  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8940  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8941  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8942  // Please see the License for the specific language governing rights and
  8943  // limitations under the License.
  8944  //
  8945  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8946  
  8947  type Pthread_mutexattr_t = X__darwin_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */
  8948  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8949  //
  8950  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8951  //
  8952  // This file contains Original Code and/or Modifications of Original Code
  8953  // as defined in and that are subject to the Apple Public Source License
  8954  // Version 2.0 (the 'License'). You may not use this file except in
  8955  // compliance with the License. The rights granted to you under the License
  8956  // may not be used to create, or enable the creation or redistribution of,
  8957  // unlawful or unlicensed copies of an Apple operating system, or to
  8958  // circumvent, violate, or enable the circumvention or violation of, any
  8959  // terms of an Apple operating system software license agreement.
  8960  //
  8961  // Please obtain a copy of the License at
  8962  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8963  //
  8964  // The Original Code and all software distributed under the License are
  8965  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8966  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8967  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8968  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8969  // Please see the License for the specific language governing rights and
  8970  // limitations under the License.
  8971  //
  8972  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8973  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  8974  //
  8975  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8976  //
  8977  // This file contains Original Code and/or Modifications of Original Code
  8978  // as defined in and that are subject to the Apple Public Source License
  8979  // Version 2.0 (the 'License'). You may not use this file except in
  8980  // compliance with the License. The rights granted to you under the License
  8981  // may not be used to create, or enable the creation or redistribution of,
  8982  // unlawful or unlicensed copies of an Apple operating system, or to
  8983  // circumvent, violate, or enable the circumvention or violation of, any
  8984  // terms of an Apple operating system software license agreement.
  8985  //
  8986  // Please obtain a copy of the License at
  8987  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8988  //
  8989  // The Original Code and all software distributed under the License are
  8990  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8991  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8992  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8993  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8994  // Please see the License for the specific language governing rights and
  8995  // limitations under the License.
  8996  //
  8997  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8998  
  8999  type Pthread_once_t = X__darwin_pthread_once_t /* _pthread_once_t.h:31:33 */
  9000  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9001  //
  9002  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9003  //
  9004  // This file contains Original Code and/or Modifications of Original Code
  9005  // as defined in and that are subject to the Apple Public Source License
  9006  // Version 2.0 (the 'License'). You may not use this file except in
  9007  // compliance with the License. The rights granted to you under the License
  9008  // may not be used to create, or enable the creation or redistribution of,
  9009  // unlawful or unlicensed copies of an Apple operating system, or to
  9010  // circumvent, violate, or enable the circumvention or violation of, any
  9011  // terms of an Apple operating system software license agreement.
  9012  //
  9013  // Please obtain a copy of the License at
  9014  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9015  //
  9016  // The Original Code and all software distributed under the License are
  9017  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9018  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9019  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9020  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9021  // Please see the License for the specific language governing rights and
  9022  // limitations under the License.
  9023  //
  9024  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9025  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  9026  //
  9027  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9028  //
  9029  // This file contains Original Code and/or Modifications of Original Code
  9030  // as defined in and that are subject to the Apple Public Source License
  9031  // Version 2.0 (the 'License'). You may not use this file except in
  9032  // compliance with the License. The rights granted to you under the License
  9033  // may not be used to create, or enable the creation or redistribution of,
  9034  // unlawful or unlicensed copies of an Apple operating system, or to
  9035  // circumvent, violate, or enable the circumvention or violation of, any
  9036  // terms of an Apple operating system software license agreement.
  9037  //
  9038  // Please obtain a copy of the License at
  9039  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9040  //
  9041  // The Original Code and all software distributed under the License are
  9042  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9043  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9044  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9045  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9046  // Please see the License for the specific language governing rights and
  9047  // limitations under the License.
  9048  //
  9049  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9050  
  9051  type Pthread_rwlock_t = X__darwin_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */
  9052  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9053  //
  9054  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9055  //
  9056  // This file contains Original Code and/or Modifications of Original Code
  9057  // as defined in and that are subject to the Apple Public Source License
  9058  // Version 2.0 (the 'License'). You may not use this file except in
  9059  // compliance with the License. The rights granted to you under the License
  9060  // may not be used to create, or enable the creation or redistribution of,
  9061  // unlawful or unlicensed copies of an Apple operating system, or to
  9062  // circumvent, violate, or enable the circumvention or violation of, any
  9063  // terms of an Apple operating system software license agreement.
  9064  //
  9065  // Please obtain a copy of the License at
  9066  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9067  //
  9068  // The Original Code and all software distributed under the License are
  9069  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9070  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9071  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9072  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9073  // Please see the License for the specific language governing rights and
  9074  // limitations under the License.
  9075  //
  9076  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9077  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  9078  //
  9079  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9080  //
  9081  // This file contains Original Code and/or Modifications of Original Code
  9082  // as defined in and that are subject to the Apple Public Source License
  9083  // Version 2.0 (the 'License'). You may not use this file except in
  9084  // compliance with the License. The rights granted to you under the License
  9085  // may not be used to create, or enable the creation or redistribution of,
  9086  // unlawful or unlicensed copies of an Apple operating system, or to
  9087  // circumvent, violate, or enable the circumvention or violation of, any
  9088  // terms of an Apple operating system software license agreement.
  9089  //
  9090  // Please obtain a copy of the License at
  9091  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9092  //
  9093  // The Original Code and all software distributed under the License are
  9094  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9095  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9096  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9097  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9098  // Please see the License for the specific language governing rights and
  9099  // limitations under the License.
  9100  //
  9101  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9102  
  9103  type Pthread_rwlockattr_t = X__darwin_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */
  9104  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9105  //
  9106  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9107  //
  9108  // This file contains Original Code and/or Modifications of Original Code
  9109  // as defined in and that are subject to the Apple Public Source License
  9110  // Version 2.0 (the 'License'). You may not use this file except in
  9111  // compliance with the License. The rights granted to you under the License
  9112  // may not be used to create, or enable the creation or redistribution of,
  9113  // unlawful or unlicensed copies of an Apple operating system, or to
  9114  // circumvent, violate, or enable the circumvention or violation of, any
  9115  // terms of an Apple operating system software license agreement.
  9116  //
  9117  // Please obtain a copy of the License at
  9118  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9119  //
  9120  // The Original Code and all software distributed under the License are
  9121  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9122  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9123  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9124  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9125  // Please see the License for the specific language governing rights and
  9126  // limitations under the License.
  9127  //
  9128  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9129  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  9130  //
  9131  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9132  //
  9133  // This file contains Original Code and/or Modifications of Original Code
  9134  // as defined in and that are subject to the Apple Public Source License
  9135  // Version 2.0 (the 'License'). You may not use this file except in
  9136  // compliance with the License. The rights granted to you under the License
  9137  // may not be used to create, or enable the creation or redistribution of,
  9138  // unlawful or unlicensed copies of an Apple operating system, or to
  9139  // circumvent, violate, or enable the circumvention or violation of, any
  9140  // terms of an Apple operating system software license agreement.
  9141  //
  9142  // Please obtain a copy of the License at
  9143  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9144  //
  9145  // The Original Code and all software distributed under the License are
  9146  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9147  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9148  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9149  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9150  // Please see the License for the specific language governing rights and
  9151  // limitations under the License.
  9152  //
  9153  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9154  
  9155  type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */
  9156  
  9157  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9158  //
  9159  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9160  //
  9161  // This file contains Original Code and/or Modifications of Original Code
  9162  // as defined in and that are subject to the Apple Public Source License
  9163  // Version 2.0 (the 'License'). You may not use this file except in
  9164  // compliance with the License. The rights granted to you under the License
  9165  // may not be used to create, or enable the creation or redistribution of,
  9166  // unlawful or unlicensed copies of an Apple operating system, or to
  9167  // circumvent, violate, or enable the circumvention or violation of, any
  9168  // terms of an Apple operating system software license agreement.
  9169  //
  9170  // Please obtain a copy of the License at
  9171  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9172  //
  9173  // The Original Code and all software distributed under the License are
  9174  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9175  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9176  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9177  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9178  // Please see the License for the specific language governing rights and
  9179  // limitations under the License.
  9180  //
  9181  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9182  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  9183  //
  9184  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9185  //
  9186  // This file contains Original Code and/or Modifications of Original Code
  9187  // as defined in and that are subject to the Apple Public Source License
  9188  // Version 2.0 (the 'License'). You may not use this file except in
  9189  // compliance with the License. The rights granted to you under the License
  9190  // may not be used to create, or enable the creation or redistribution of,
  9191  // unlawful or unlicensed copies of an Apple operating system, or to
  9192  // circumvent, violate, or enable the circumvention or violation of, any
  9193  // terms of an Apple operating system software license agreement.
  9194  //
  9195  // Please obtain a copy of the License at
  9196  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9197  //
  9198  // The Original Code and all software distributed under the License are
  9199  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9200  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9201  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9202  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9203  // Please see the License for the specific language governing rights and
  9204  // limitations under the License.
  9205  //
  9206  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9207  
  9208  type Pthread_key_t = X__darwin_pthread_key_t /* _pthread_key_t.h:31:32 */
  9209  
  9210  // statvfs and fstatvfs
  9211  
  9212  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9213  //
  9214  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9215  //
  9216  // This file contains Original Code and/or Modifications of Original Code
  9217  // as defined in and that are subject to the Apple Public Source License
  9218  // Version 2.0 (the 'License'). You may not use this file except in
  9219  // compliance with the License. The rights granted to you under the License
  9220  // may not be used to create, or enable the creation or redistribution of,
  9221  // unlawful or unlicensed copies of an Apple operating system, or to
  9222  // circumvent, violate, or enable the circumvention or violation of, any
  9223  // terms of an Apple operating system software license agreement.
  9224  //
  9225  // Please obtain a copy of the License at
  9226  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9227  //
  9228  // The Original Code and all software distributed under the License are
  9229  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9230  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9231  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9232  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9233  // Please see the License for the specific language governing rights and
  9234  // limitations under the License.
  9235  //
  9236  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9237  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  9238  //
  9239  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9240  //
  9241  // This file contains Original Code and/or Modifications of Original Code
  9242  // as defined in and that are subject to the Apple Public Source License
  9243  // Version 2.0 (the 'License'). You may not use this file except in
  9244  // compliance with the License. The rights granted to you under the License
  9245  // may not be used to create, or enable the creation or redistribution of,
  9246  // unlawful or unlicensed copies of an Apple operating system, or to
  9247  // circumvent, violate, or enable the circumvention or violation of, any
  9248  // terms of an Apple operating system software license agreement.
  9249  //
  9250  // Please obtain a copy of the License at
  9251  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9252  //
  9253  // The Original Code and all software distributed under the License are
  9254  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9255  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9256  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9257  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9258  // Please see the License for the specific language governing rights and
  9259  // limitations under the License.
  9260  //
  9261  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9262  
  9263  type Fsblkcnt_t = X__darwin_fsblkcnt_t /* _fsblkcnt_t.h:31:41 */
  9264  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9265  //
  9266  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9267  //
  9268  // This file contains Original Code and/or Modifications of Original Code
  9269  // as defined in and that are subject to the Apple Public Source License
  9270  // Version 2.0 (the 'License'). You may not use this file except in
  9271  // compliance with the License. The rights granted to you under the License
  9272  // may not be used to create, or enable the creation or redistribution of,
  9273  // unlawful or unlicensed copies of an Apple operating system, or to
  9274  // circumvent, violate, or enable the circumvention or violation of, any
  9275  // terms of an Apple operating system software license agreement.
  9276  //
  9277  // Please obtain a copy of the License at
  9278  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9279  //
  9280  // The Original Code and all software distributed under the License are
  9281  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9282  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9283  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9284  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9285  // Please see the License for the specific language governing rights and
  9286  // limitations under the License.
  9287  //
  9288  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9289  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  9290  //
  9291  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9292  //
  9293  // This file contains Original Code and/or Modifications of Original Code
  9294  // as defined in and that are subject to the Apple Public Source License
  9295  // Version 2.0 (the 'License'). You may not use this file except in
  9296  // compliance with the License. The rights granted to you under the License
  9297  // may not be used to create, or enable the creation or redistribution of,
  9298  // unlawful or unlicensed copies of an Apple operating system, or to
  9299  // circumvent, violate, or enable the circumvention or violation of, any
  9300  // terms of an Apple operating system software license agreement.
  9301  //
  9302  // Please obtain a copy of the License at
  9303  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9304  //
  9305  // The Original Code and all software distributed under the License are
  9306  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9307  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9308  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9309  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9310  // Please see the License for the specific language governing rights and
  9311  // limitations under the License.
  9312  //
  9313  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9314  
  9315  type Fsfilcnt_t = X__darwin_fsfilcnt_t /* _fsfilcnt_t.h:31:41 */
  9316  
  9317  // Just about everyone needs the strings routines.  We provide both forms here,
  9318  // index/rindex and strchr/strrchr, so any systems that don't provide them all
  9319  // need to have #defines here.
  9320  //
  9321  // These macros are defined this way, rather than, e.g.:
  9322  //    #defined index(s,c) strchr(s,c)
  9323  // because someone might be using them as function pointers, and such
  9324  // a change would break compatibility for anyone who's relying on them
  9325  // being the way they currently are. So we're stuck with them this way,
  9326  // which can be really inconvenient. :-(
  9327  
  9328  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
  9329  //
  9330  // @APPLE_LICENSE_HEADER_START@
  9331  //
  9332  // This file contains Original Code and/or Modifications of Original Code
  9333  // as defined in and that are subject to the Apple Public Source License
  9334  // Version 2.0 (the 'License'). You may not use this file except in
  9335  // compliance with the License. Please obtain a copy of the License at
  9336  // http://www.opensource.apple.com/apsl/ and read it before using this
  9337  // file.
  9338  //
  9339  // The Original Code and all software distributed under the License are
  9340  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9341  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9342  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9343  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9344  // Please see the License for the specific language governing rights and
  9345  // limitations under the License.
  9346  //
  9347  // @APPLE_LICENSE_HEADER_END@
  9348  // -
  9349  // Copyright (c) 1990, 1993
  9350  //	The Regents of the University of California.  All rights reserved.
  9351  //
  9352  // Redistribution and use in source and binary forms, with or without
  9353  // modification, are permitted provided that the following conditions
  9354  // are met:
  9355  // 1. Redistributions of source code must retain the above copyright
  9356  //    notice, this list of conditions and the following disclaimer.
  9357  // 2. Redistributions in binary form must reproduce the above copyright
  9358  //    notice, this list of conditions and the following disclaimer in the
  9359  //    documentation and/or other materials provided with the distribution.
  9360  // 3. All advertising materials mentioning features or use of this software
  9361  //    must display the following acknowledgement:
  9362  //	This product includes software developed by the University of
  9363  //	California, Berkeley and its contributors.
  9364  // 4. Neither the name of the University nor the names of its contributors
  9365  //    may be used to endorse or promote products derived from this software
  9366  //    without specific prior written permission.
  9367  //
  9368  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  9369  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  9370  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  9371  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  9372  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  9373  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  9374  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  9375  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  9376  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  9377  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  9378  // SUCH DAMAGE.
  9379  //
  9380  //	@(#)string.h	8.1 (Berkeley) 6/2/93
  9381  
  9382  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
  9383  //
  9384  // @APPLE_LICENSE_HEADER_START@
  9385  //
  9386  // This file contains Original Code and/or Modifications of Original Code
  9387  // as defined in and that are subject to the Apple Public Source License
  9388  // Version 2.0 (the 'License'). You may not use this file except in
  9389  // compliance with the License. Please obtain a copy of the License at
  9390  // http://www.opensource.apple.com/apsl/ and read it before using this
  9391  // file.
  9392  //
  9393  // The Original Code and all software distributed under the License are
  9394  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9395  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9396  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9397  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9398  // Please see the License for the specific language governing rights and
  9399  // limitations under the License.
  9400  //
  9401  // @APPLE_LICENSE_HEADER_END@
  9402  // -
  9403  // Copyright (c) 1990, 1993
  9404  //	The Regents of the University of California.  All rights reserved.
  9405  //
  9406  // Redistribution and use in source and binary forms, with or without
  9407  // modification, are permitted provided that the following conditions
  9408  // are met:
  9409  // 1. Redistributions of source code must retain the above copyright
  9410  //    notice, this list of conditions and the following disclaimer.
  9411  // 2. Redistributions in binary form must reproduce the above copyright
  9412  //    notice, this list of conditions and the following disclaimer in the
  9413  //    documentation and/or other materials provided with the distribution.
  9414  // 3. All advertising materials mentioning features or use of this software
  9415  //    must display the following acknowledgement:
  9416  //	This product includes software developed by the University of
  9417  //	California, Berkeley and its contributors.
  9418  // 4. Neither the name of the University nor the names of its contributors
  9419  //    may be used to endorse or promote products derived from this software
  9420  //    without specific prior written permission.
  9421  //
  9422  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  9423  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  9424  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  9425  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  9426  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  9427  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  9428  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  9429  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  9430  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  9431  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  9432  // SUCH DAMAGE.
  9433  //
  9434  //	@(#)strings.h	8.1 (Berkeley) 6/2/93
  9435  
  9436  // Get open(2) constants
  9437  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  9438  //
  9439  // @APPLE_LICENSE_HEADER_START@
  9440  //
  9441  // This file contains Original Code and/or Modifications of Original Code
  9442  // as defined in and that are subject to the Apple Public Source License
  9443  // Version 2.0 (the 'License'). You may not use this file except in
  9444  // compliance with the License. Please obtain a copy of the License at
  9445  // http://www.opensource.apple.com/apsl/ and read it before using this
  9446  // file.
  9447  //
  9448  // The Original Code and all software distributed under the License are
  9449  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9450  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9451  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9452  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9453  // Please see the License for the specific language governing rights and
  9454  // limitations under the License.
  9455  //
  9456  // @APPLE_LICENSE_HEADER_END@
  9457  // Copyright (c) 2000-2013 Apple Inc. All rights reserved.
  9458  //
  9459  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9460  //
  9461  // This file contains Original Code and/or Modifications of Original Code
  9462  // as defined in and that are subject to the Apple Public Source License
  9463  // Version 2.0 (the 'License'). You may not use this file except in
  9464  // compliance with the License. The rights granted to you under the License
  9465  // may not be used to create, or enable the creation or redistribution of,
  9466  // unlawful or unlicensed copies of an Apple operating system, or to
  9467  // circumvent, violate, or enable the circumvention or violation of, any
  9468  // terms of an Apple operating system software license agreement.
  9469  //
  9470  // Please obtain a copy of the License at
  9471  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9472  //
  9473  // The Original Code and all software distributed under the License are
  9474  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9475  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9476  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9477  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9478  // Please see the License for the specific language governing rights and
  9479  // limitations under the License.
  9480  //
  9481  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9482  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  9483  // -
  9484  // Copyright (c) 1983, 1990, 1993
  9485  //	The Regents of the University of California.  All rights reserved.
  9486  // (c) UNIX System Laboratories, Inc.
  9487  // All or some portions of this file are derived from material licensed
  9488  // to the University of California by American Telephone and Telegraph
  9489  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  9490  // the permission of UNIX System Laboratories, Inc.
  9491  //
  9492  // Redistribution and use in source and binary forms, with or without
  9493  // modification, are permitted provided that the following conditions
  9494  // are met:
  9495  // 1. Redistributions of source code must retain the above copyright
  9496  //    notice, this list of conditions and the following disclaimer.
  9497  // 2. Redistributions in binary form must reproduce the above copyright
  9498  //    notice, this list of conditions and the following disclaimer in the
  9499  //    documentation and/or other materials provided with the distribution.
  9500  // 3. All advertising materials mentioning features or use of this software
  9501  //    must display the following acknowledgement:
  9502  //	This product includes software developed by the University of
  9503  //	California, Berkeley and its contributors.
  9504  // 4. Neither the name of the University nor the names of its contributors
  9505  //    may be used to endorse or promote products derived from this software
  9506  //    without specific prior written permission.
  9507  //
  9508  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  9509  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  9510  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  9511  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  9512  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  9513  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  9514  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  9515  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  9516  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  9517  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  9518  // SUCH DAMAGE.
  9519  //
  9520  //	@(#)fcntl.h	8.3 (Berkeley) 1/21/94
  9521  
  9522  // This file includes the definitions for open and fcntl
  9523  // described by POSIX for <fcntl.h>; it also includes
  9524  // related kernel definitions.
  9525  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  9526  //
  9527  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9528  //
  9529  // This file contains Original Code and/or Modifications of Original Code
  9530  // as defined in and that are subject to the Apple Public Source License
  9531  // Version 2.0 (the 'License'). You may not use this file except in
  9532  // compliance with the License. The rights granted to you under the License
  9533  // may not be used to create, or enable the creation or redistribution of,
  9534  // unlawful or unlicensed copies of an Apple operating system, or to
  9535  // circumvent, violate, or enable the circumvention or violation of, any
  9536  // terms of an Apple operating system software license agreement.
  9537  //
  9538  // Please obtain a copy of the License at
  9539  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9540  //
  9541  // The Original Code and all software distributed under the License are
  9542  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9543  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9544  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9545  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9546  // Please see the License for the specific language governing rights and
  9547  // limitations under the License.
  9548  //
  9549  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9550  
  9551  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  9552  //
  9553  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9554  //
  9555  // This file contains Original Code and/or Modifications of Original Code
  9556  // as defined in and that are subject to the Apple Public Source License
  9557  // Version 2.0 (the 'License'). You may not use this file except in
  9558  // compliance with the License. The rights granted to you under the License
  9559  // may not be used to create, or enable the creation or redistribution of,
  9560  // unlawful or unlicensed copies of an Apple operating system, or to
  9561  // circumvent, violate, or enable the circumvention or violation of, any
  9562  // terms of an Apple operating system software license agreement.
  9563  //
  9564  // Please obtain a copy of the License at
  9565  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9566  //
  9567  // The Original Code and all software distributed under the License are
  9568  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9569  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9570  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9571  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9572  // Please see the License for the specific language governing rights and
  9573  // limitations under the License.
  9574  //
  9575  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9576  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  9577  // Copyright (c) 1991, 1993
  9578  //	The Regents of the University of California.  All rights reserved.
  9579  //
  9580  // This code is derived from software contributed to Berkeley by
  9581  // Berkeley Software Design, Inc.
  9582  //
  9583  // Redistribution and use in source and binary forms, with or without
  9584  // modification, are permitted provided that the following conditions
  9585  // are met:
  9586  // 1. Redistributions of source code must retain the above copyright
  9587  //    notice, this list of conditions and the following disclaimer.
  9588  // 2. Redistributions in binary form must reproduce the above copyright
  9589  //    notice, this list of conditions and the following disclaimer in the
  9590  //    documentation and/or other materials provided with the distribution.
  9591  // 3. All advertising materials mentioning features or use of this software
  9592  //    must display the following acknowledgement:
  9593  //	This product includes software developed by the University of
  9594  //	California, Berkeley and its contributors.
  9595  // 4. Neither the name of the University nor the names of its contributors
  9596  //    may be used to endorse or promote products derived from this software
  9597  //    without specific prior written permission.
  9598  //
  9599  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  9600  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  9601  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  9602  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  9603  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  9604  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  9605  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  9606  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  9607  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  9608  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  9609  // SUCH DAMAGE.
  9610  //
  9611  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  9612  
  9613  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  9614  //
  9615  // @APPLE_LICENSE_HEADER_START@
  9616  //
  9617  // This file contains Original Code and/or Modifications of Original Code
  9618  // as defined in and that are subject to the Apple Public Source License
  9619  // Version 2.0 (the 'License'). You may not use this file except in
  9620  // compliance with the License. Please obtain a copy of the License at
  9621  // http://www.opensource.apple.com/apsl/ and read it before using this
  9622  // file.
  9623  //
  9624  // The Original Code and all software distributed under the License are
  9625  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9626  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9627  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9628  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9629  // Please see the License for the specific language governing rights and
  9630  // limitations under the License.
  9631  //
  9632  // @APPLE_LICENSE_HEADER_END@
  9633  
  9634  // We should not be exporting size_t here.  Temporary for gcc bootstrapping.
  9635  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9636  //
  9637  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9638  //
  9639  // This file contains Original Code and/or Modifications of Original Code
  9640  // as defined in and that are subject to the Apple Public Source License
  9641  // Version 2.0 (the 'License'). You may not use this file except in
  9642  // compliance with the License. The rights granted to you under the License
  9643  // may not be used to create, or enable the creation or redistribution of,
  9644  // unlawful or unlicensed copies of an Apple operating system, or to
  9645  // circumvent, violate, or enable the circumvention or violation of, any
  9646  // terms of an Apple operating system software license agreement.
  9647  //
  9648  // Please obtain a copy of the License at
  9649  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9650  //
  9651  // The Original Code and all software distributed under the License are
  9652  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9653  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9654  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9655  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9656  // Please see the License for the specific language governing rights and
  9657  // limitations under the License.
  9658  //
  9659  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9660  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9661  //
  9662  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9663  //
  9664  // This file contains Original Code and/or Modifications of Original Code
  9665  // as defined in and that are subject to the Apple Public Source License
  9666  // Version 2.0 (the 'License'). You may not use this file except in
  9667  // compliance with the License. The rights granted to you under the License
  9668  // may not be used to create, or enable the creation or redistribution of,
  9669  // unlawful or unlicensed copies of an Apple operating system, or to
  9670  // circumvent, violate, or enable the circumvention or violation of, any
  9671  // terms of an Apple operating system software license agreement.
  9672  //
  9673  // Please obtain a copy of the License at
  9674  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9675  //
  9676  // The Original Code and all software distributed under the License are
  9677  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9678  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9679  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9680  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9681  // Please see the License for the specific language governing rights and
  9682  // limitations under the License.
  9683  //
  9684  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9685  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9686  //
  9687  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9688  //
  9689  // This file contains Original Code and/or Modifications of Original Code
  9690  // as defined in and that are subject to the Apple Public Source License
  9691  // Version 2.0 (the 'License'). You may not use this file except in
  9692  // compliance with the License. The rights granted to you under the License
  9693  // may not be used to create, or enable the creation or redistribution of,
  9694  // unlawful or unlicensed copies of an Apple operating system, or to
  9695  // circumvent, violate, or enable the circumvention or violation of, any
  9696  // terms of an Apple operating system software license agreement.
  9697  //
  9698  // Please obtain a copy of the License at
  9699  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9700  //
  9701  // The Original Code and all software distributed under the License are
  9702  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9703  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9704  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9705  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9706  // Please see the License for the specific language governing rights and
  9707  // limitations under the License.
  9708  //
  9709  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9710  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9711  //
  9712  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9713  //
  9714  // This file contains Original Code and/or Modifications of Original Code
  9715  // as defined in and that are subject to the Apple Public Source License
  9716  // Version 2.0 (the 'License'). You may not use this file except in
  9717  // compliance with the License. The rights granted to you under the License
  9718  // may not be used to create, or enable the creation or redistribution of,
  9719  // unlawful or unlicensed copies of an Apple operating system, or to
  9720  // circumvent, violate, or enable the circumvention or violation of, any
  9721  // terms of an Apple operating system software license agreement.
  9722  //
  9723  // Please obtain a copy of the License at
  9724  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9725  //
  9726  // The Original Code and all software distributed under the License are
  9727  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9728  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9729  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9730  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9731  // Please see the License for the specific language governing rights and
  9732  // limitations under the License.
  9733  //
  9734  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9735  
  9736  // File status flags: these are used by open(2), fcntl(2).
  9737  // They are also used (indirectly) in the kernel file structure f_flags,
  9738  // which is a superset of the open/fcntl flags.  Open flags and f_flags
  9739  // are inter-convertible using OFLAGS(fflags) and FFLAGS(oflags).
  9740  // Open/fcntl flags begin with O_; kernel-internal flags begin with F.
  9741  // open-only flags
  9742  
  9743  // Kernel encoding of open mode; separate read and write bits that are
  9744  // independently testable: 1 greater than the above.
  9745  //
  9746  // XXX
  9747  // FREAD and FWRITE are excluded from the #ifdef KERNEL so that TIOCFLUSH,
  9748  // which was documented to use FREAD/FWRITE, continues to work.
  9749  
  9750  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9751  //
  9752  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9753  //
  9754  // This file contains Original Code and/or Modifications of Original Code
  9755  // as defined in and that are subject to the Apple Public Source License
  9756  // Version 2.0 (the 'License'). You may not use this file except in
  9757  // compliance with the License. The rights granted to you under the License
  9758  // may not be used to create, or enable the creation or redistribution of,
  9759  // unlawful or unlicensed copies of an Apple operating system, or to
  9760  // circumvent, violate, or enable the circumvention or violation of, any
  9761  // terms of an Apple operating system software license agreement.
  9762  //
  9763  // Please obtain a copy of the License at
  9764  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9765  //
  9766  // The Original Code and all software distributed under the License are
  9767  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9768  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9769  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9770  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9771  // Please see the License for the specific language governing rights and
  9772  // limitations under the License.
  9773  //
  9774  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9775  
  9776  //      O_DSYNC         0x00400000      /* synch I/O data integrity */
  9777  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9778  //
  9779  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9780  //
  9781  // This file contains Original Code and/or Modifications of Original Code
  9782  // as defined in and that are subject to the Apple Public Source License
  9783  // Version 2.0 (the 'License'). You may not use this file except in
  9784  // compliance with the License. The rights granted to you under the License
  9785  // may not be used to create, or enable the creation or redistribution of,
  9786  // unlawful or unlicensed copies of an Apple operating system, or to
  9787  // circumvent, violate, or enable the circumvention or violation of, any
  9788  // terms of an Apple operating system software license agreement.
  9789  //
  9790  // Please obtain a copy of the License at
  9791  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9792  //
  9793  // The Original Code and all software distributed under the License are
  9794  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9795  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9796  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9797  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9798  // Please see the License for the specific language governing rights and
  9799  // limitations under the License.
  9800  //
  9801  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9802  
  9803  // Descriptor value for the current working directory
  9804  
  9805  // Flags for the at functions
  9806  
  9807  // Data Protection Flags
  9808  
  9809  // The O_* flags used to have only F* names, which were used in the kernel
  9810  // and by fcntl.  We retain the F* names for the kernel f_flags field
  9811  // and for backward compatibility for fcntl.
  9812  
  9813  // Flags used for copyfile(2)
  9814  
  9815  // Constants used for fcntl(2)
  9816  
  9817  // command values
  9818  // 46,47 used to be F_READBOOTSTRAP and F_WRITEBOOTSTRAP
  9819  
  9820  // should not be used (i.e. its ok to temporaily create cached pages)
  9821  
  9822  // See F_DUPFD_CLOEXEC below for 67
  9823  
  9824  // may be broken into smaller chunks with throttling in between
  9825  
  9826  // FS-specific fcntl()'s numbers begin at 0x00010000 and go up
  9827  
  9828  // file descriptor flags (F_GETFD, F_SETFD)
  9829  
  9830  // record locking flags (F_GETLK, F_SETLK, F_SETLKW)
  9831  
  9832  // [XSI] The values used for l_whence shall be defined as described
  9833  // in <unistd.h>
  9834  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9835  //
  9836  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9837  //
  9838  // This file contains Original Code and/or Modifications of Original Code
  9839  // as defined in and that are subject to the Apple Public Source License
  9840  // Version 2.0 (the 'License'). You may not use this file except in
  9841  // compliance with the License. The rights granted to you under the License
  9842  // may not be used to create, or enable the creation or redistribution of,
  9843  // unlawful or unlicensed copies of an Apple operating system, or to
  9844  // circumvent, violate, or enable the circumvention or violation of, any
  9845  // terms of an Apple operating system software license agreement.
  9846  //
  9847  // Please obtain a copy of the License at
  9848  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9849  //
  9850  // The Original Code and all software distributed under the License are
  9851  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9852  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9853  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9854  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9855  // Please see the License for the specific language governing rights and
  9856  // limitations under the License.
  9857  //
  9858  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9859  
  9860  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  9861  //
  9862  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9863  //
  9864  // This file contains Original Code and/or Modifications of Original Code
  9865  // as defined in and that are subject to the Apple Public Source License
  9866  // Version 2.0 (the 'License'). You may not use this file except in
  9867  // compliance with the License. The rights granted to you under the License
  9868  // may not be used to create, or enable the creation or redistribution of,
  9869  // unlawful or unlicensed copies of an Apple operating system, or to
  9870  // circumvent, violate, or enable the circumvention or violation of, any
  9871  // terms of an Apple operating system software license agreement.
  9872  //
  9873  // Please obtain a copy of the License at
  9874  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9875  //
  9876  // The Original Code and all software distributed under the License are
  9877  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9878  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9879  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9880  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9881  // Please see the License for the specific language governing rights and
  9882  // limitations under the License.
  9883  //
  9884  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9885  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  9886  // Copyright (c) 1991, 1993
  9887  //	The Regents of the University of California.  All rights reserved.
  9888  //
  9889  // This code is derived from software contributed to Berkeley by
  9890  // Berkeley Software Design, Inc.
  9891  //
  9892  // Redistribution and use in source and binary forms, with or without
  9893  // modification, are permitted provided that the following conditions
  9894  // are met:
  9895  // 1. Redistributions of source code must retain the above copyright
  9896  //    notice, this list of conditions and the following disclaimer.
  9897  // 2. Redistributions in binary form must reproduce the above copyright
  9898  //    notice, this list of conditions and the following disclaimer in the
  9899  //    documentation and/or other materials provided with the distribution.
  9900  // 3. All advertising materials mentioning features or use of this software
  9901  //    must display the following acknowledgement:
  9902  //	This product includes software developed by the University of
  9903  //	California, Berkeley and its contributors.
  9904  // 4. Neither the name of the University nor the names of its contributors
  9905  //    may be used to endorse or promote products derived from this software
  9906  //    without specific prior written permission.
  9907  //
  9908  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  9909  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  9910  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  9911  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  9912  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  9913  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  9914  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  9915  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  9916  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  9917  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  9918  // SUCH DAMAGE.
  9919  //
  9920  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  9921  
  9922  // whence values for lseek(2)
  9923  
  9924  // [XSI] The symbolic names for file modes for use as values of mode_t
  9925  // shall be defined as described in <sys/stat.h>
  9926  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9927  //
  9928  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9929  //
  9930  // This file contains Original Code and/or Modifications of Original Code
  9931  // as defined in and that are subject to the Apple Public Source License
  9932  // Version 2.0 (the 'License'). You may not use this file except in
  9933  // compliance with the License. The rights granted to you under the License
  9934  // may not be used to create, or enable the creation or redistribution of,
  9935  // unlawful or unlicensed copies of an Apple operating system, or to
  9936  // circumvent, violate, or enable the circumvention or violation of, any
  9937  // terms of an Apple operating system software license agreement.
  9938  //
  9939  // Please obtain a copy of the License at
  9940  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9941  //
  9942  // The Original Code and all software distributed under the License are
  9943  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9944  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9945  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9946  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9947  // Please see the License for the specific language governing rights and
  9948  // limitations under the License.
  9949  //
  9950  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9951  
  9952  // [XSI] The symbolic names for file modes for use as values of mode_t
  9953  // shall be defined as described in <sys/stat.h>
  9954  // File type
  9955  
  9956  // File mode
  9957  // Read, write, execute/search by owner
  9958  // Read, write, execute/search by group
  9959  // Read, write, execute/search by others
  9960  
  9961  // allocate flags (F_PREALLOCATE)
  9962  
  9963  // Position Modes (fst_posmode) for F_PREALLOCATE
  9964  
  9965  // we can keep them in sync should we desire
  9966  
  9967  // Advisory file segment locking data type -
  9968  // information passed to system by user
  9969  type Flock = struct {
  9970  	Fl_start  Off_t
  9971  	Fl_len    Off_t
  9972  	Fl_pid    Pid_t
  9973  	Fl_type   int16
  9974  	Fl_whence int16
  9975  } /* fcntl.h:359:1 */
  9976  
  9977  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9978  //
  9979  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9980  //
  9981  // This file contains Original Code and/or Modifications of Original Code
  9982  // as defined in and that are subject to the Apple Public Source License
  9983  // Version 2.0 (the 'License'). You may not use this file except in
  9984  // compliance with the License. The rights granted to you under the License
  9985  // may not be used to create, or enable the creation or redistribution of,
  9986  // unlawful or unlicensed copies of an Apple operating system, or to
  9987  // circumvent, violate, or enable the circumvention or violation of, any
  9988  // terms of an Apple operating system software license agreement.
  9989  //
  9990  // Please obtain a copy of the License at
  9991  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9992  //
  9993  // The Original Code and all software distributed under the License are
  9994  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9995  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9996  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9997  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9998  // Please see the License for the specific language governing rights and
  9999  // limitations under the License.
 10000  //
 10001  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10002  
 10003  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 10004  //
 10005  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10006  //
 10007  // This file contains Original Code and/or Modifications of Original Code
 10008  // as defined in and that are subject to the Apple Public Source License
 10009  // Version 2.0 (the 'License'). You may not use this file except in
 10010  // compliance with the License. The rights granted to you under the License
 10011  // may not be used to create, or enable the creation or redistribution of,
 10012  // unlawful or unlicensed copies of an Apple operating system, or to
 10013  // circumvent, violate, or enable the circumvention or violation of, any
 10014  // terms of an Apple operating system software license agreement.
 10015  //
 10016  // Please obtain a copy of the License at
 10017  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10018  //
 10019  // The Original Code and all software distributed under the License are
 10020  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10021  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10022  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10023  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10024  // Please see the License for the specific language governing rights and
 10025  // limitations under the License.
 10026  //
 10027  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10028  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 10029  
 10030  type Timespec = struct {
 10031  	Ftv_sec  X__darwin_time_t
 10032  	Ftv_nsec int64
 10033  } /* _timespec.h:33:1 */
 10034  
 10035  // Advisory file segment locking with time out -
 10036  // Information passed to system by user for F_SETLKWTIMEOUT
 10037  type Flocktimeout = struct {
 10038  	Ffl struct {
 10039  		Fl_start  Off_t
 10040  		Fl_len    Off_t
 10041  		Fl_pid    Pid_t
 10042  		Fl_type   int16
 10043  		Fl_whence int16
 10044  	}
 10045  	Ftimeout struct {
 10046  		Ftv_sec  X__darwin_time_t
 10047  		Ftv_nsec int64
 10048  	}
 10049  } /* fcntl.h:374:1 */
 10050  
 10051  // advisory file read data type -
 10052  // information passed by user to system
 10053  
 10054  type Radvisory = struct {
 10055  	Fra_offset   Off_t
 10056  	Fra_count    int32
 10057  	F__ccgo_pad1 [4]byte
 10058  } /* fcntl.h:387:1 */
 10059  
 10060  // detached code signatures data type -
 10061  // information passed by user to system used by F_ADDSIGS and F_ADDFILESIGS.
 10062  // F_ADDFILESIGS is a shortcut for files that contain their own signature and
 10063  // doesn't require mapping of the file in order to load the signature.
 10064  type Fsignatures = struct {
 10065  	Ffs_file_start       Off_t
 10066  	Ffs_blob_start       uintptr
 10067  	Ffs_blob_size        Size_t
 10068  	Ffs_fsignatures_size Size_t
 10069  	Ffs_cdhash           [20]int8
 10070  	Ffs_hash_type        int32
 10071  } /* fcntl.h:400:9 */
 10072  
 10073  // detached code signatures data type -
 10074  // information passed by user to system used by F_ADDSIGS and F_ADDFILESIGS.
 10075  // F_ADDFILESIGS is a shortcut for files that contain their own signature and
 10076  // doesn't require mapping of the file in order to load the signature.
 10077  type Fsignatures_t = Fsignatures /* fcntl.h:410:3 */
 10078  
 10079  type Fsupplement = struct {
 10080  	Ffs_file_start Off_t
 10081  	Ffs_blob_start Off_t
 10082  	Ffs_blob_size  Size_t
 10083  	Ffs_orig_fd    int32
 10084  	F__ccgo_pad1   [4]byte
 10085  } /* fcntl.h:412:9 */
 10086  
 10087  type Fsupplement_t = Fsupplement /* fcntl.h:417:3 */
 10088  
 10089  // DYLD needs to check if the object is allowed to be combined
 10090  // into the main binary. This is done between the code signature
 10091  // is loaded and dyld is doing all the work to process the LOAD commands.
 10092  //
 10093  // While this could be done in F_ADDFILESIGS.* family the hook into
 10094  // the MAC module doesn't say no when LV isn't enabled and then that
 10095  // is cached on the vnode, and the MAC module never gets change once
 10096  // a process that library validation enabled.
 10097  type Fchecklv = struct {
 10098  	Flv_file_start         Off_t
 10099  	Flv_error_message_size Size_t
 10100  	Flv_error_message      uintptr
 10101  } /* fcntl.h:431:9 */
 10102  
 10103  // DYLD needs to check if the object is allowed to be combined
 10104  // into the main binary. This is done between the code signature
 10105  // is loaded and dyld is doing all the work to process the LOAD commands.
 10106  //
 10107  // While this could be done in F_ADDFILESIGS.* family the hook into
 10108  // the MAC module doesn't say no when LV isn't enabled and then that
 10109  // is cached on the vnode, and the MAC module never gets change once
 10110  // a process that library validation enabled.
 10111  type Fchecklv_t = Fchecklv /* fcntl.h:435:3 */
 10112  
 10113  // At this time F_GETSIGSINFO can only indicate platformness.
 10114  //  As additional requestable information is defined, new keys will be added and the
 10115  //  fgetsigsinfo_t structure will be lengthened to add space for the additional information
 10116  
 10117  // fgetsigsinfo_t used by F_GETSIGSINFO command
 10118  type Fgetsigsinfo = struct {
 10119  	Ffg_file_start      Off_t
 10120  	Ffg_info_request    int32
 10121  	Ffg_sig_is_platform int32
 10122  } /* fcntl.h:445:9 */
 10123  
 10124  // At this time F_GETSIGSINFO can only indicate platformness.
 10125  //  As additional requestable information is defined, new keys will be added and the
 10126  //  fgetsigsinfo_t structure will be lengthened to add space for the additional information
 10127  
 10128  // fgetsigsinfo_t used by F_GETSIGSINFO command
 10129  type Fgetsigsinfo_t = Fgetsigsinfo /* fcntl.h:449:3 */
 10130  
 10131  // lock operations for flock(2)
 10132  
 10133  // fstore_t type used by F_PREALLOCATE command
 10134  
 10135  type Fstore = struct {
 10136  	Ffst_flags      uint32
 10137  	Ffst_posmode    int32
 10138  	Ffst_offset     Off_t
 10139  	Ffst_length     Off_t
 10140  	Ffst_bytesalloc Off_t
 10141  } /* fcntl.h:460:9 */
 10142  
 10143  // lock operations for flock(2)
 10144  
 10145  // fstore_t type used by F_PREALLOCATE command
 10146  
 10147  type Fstore_t = Fstore /* fcntl.h:466:3 */
 10148  
 10149  // fpunchhole_t used by F_PUNCHHOLE
 10150  type Fpunchhole = struct {
 10151  	Ffp_flags  uint32
 10152  	Freserved  uint32
 10153  	Ffp_offset Off_t
 10154  	Ffp_length Off_t
 10155  } /* fcntl.h:469:9 */
 10156  
 10157  // fpunchhole_t used by F_PUNCHHOLE
 10158  type Fpunchhole_t = Fpunchhole /* fcntl.h:474:3 */
 10159  
 10160  // factive_file_trim_t used by F_TRIM_ACTIVE_FILE
 10161  type Ftrimactivefile = struct {
 10162  	Ffta_offset Off_t
 10163  	Ffta_length Off_t
 10164  } /* fcntl.h:477:9 */
 10165  
 10166  // factive_file_trim_t used by F_TRIM_ACTIVE_FILE
 10167  type Ftrimactivefile_t = Ftrimactivefile /* fcntl.h:480:3 */
 10168  
 10169  // fspecread_t used by F_SPECULATIVE_READ
 10170  type Fspecread = struct {
 10171  	Ffsr_flags  uint32
 10172  	Freserved   uint32
 10173  	Ffsr_offset Off_t
 10174  	Ffsr_length Off_t
 10175  } /* fcntl.h:483:9 */
 10176  
 10177  // fspecread_t used by F_SPECULATIVE_READ
 10178  type Fspecread_t = Fspecread /* fcntl.h:488:3 */
 10179  
 10180  // fbootstraptransfer_t used by F_READBOOTSTRAP and F_WRITEBOOTSTRAP commands
 10181  
 10182  type Fbootstraptransfer = struct {
 10183  	Ffbt_offset Off_t
 10184  	Ffbt_length Size_t
 10185  	Ffbt_buffer uintptr
 10186  } /* fcntl.h:492:9 */
 10187  
 10188  // fbootstraptransfer_t used by F_READBOOTSTRAP and F_WRITEBOOTSTRAP commands
 10189  
 10190  type Fbootstraptransfer_t = Fbootstraptransfer /* fcntl.h:496:3 */
 10191  
 10192  // For F_LOG2PHYS this information is passed back to user
 10193  // Currently only devoffset is returned - that is the VOP_BMAP
 10194  // result - the disk device address corresponding to the
 10195  // current file offset (likely set with an lseek).
 10196  //
 10197  // The flags could hold an indication of whether the # of
 10198  // contiguous bytes reflects the true extent length on disk,
 10199  // or is an advisory value that indicates there is at least that
 10200  // many bytes contiguous.  For some filesystems it might be too
 10201  // inefficient to provide anything beyond the advisory value.
 10202  // Flags and contiguous bytes return values are not yet implemented.
 10203  // For them the fcntl will nedd to switch from using BMAP to CMAP
 10204  // and a per filesystem type flag will be needed to interpret the
 10205  // contiguous bytes count result from CMAP.
 10206  //
 10207  // F_LOG2PHYS_EXT is a variant of F_LOG2PHYS that uses a passed in
 10208  // file offset and length instead of the current file offset.
 10209  // F_LOG2PHYS_EXT operates on the same structure as F_LOG2PHYS, but
 10210  // treats it as an in/out.
 10211  
 10212  type Log2phys = struct {
 10213  	Fl2p_flags       uint32
 10214  	F__ccgo_pad1     [4]byte
 10215  	Fl2p_contigbytes Off_t
 10216  	Fl2p_devoffset   Off_t
 10217  } /* fcntl.h:522:1 */
 10218  
 10219  type Filesec_t = uintptr /* _filesec_t.h:31:25 */
 10220  
 10221  type Filesec_property_t = uint32 /* fcntl.h:556:3 */
 10222  
 10223  // Copyright (c) 2000, 2002-2006, 2008-2010, 2012 Apple Inc. All rights reserved.
 10224  //
 10225  // @APPLE_LICENSE_HEADER_START@
 10226  //
 10227  // This file contains Original Code and/or Modifications of Original Code
 10228  // as defined in and that are subject to the Apple Public Source License
 10229  // Version 2.0 (the 'License'). You may not use this file except in
 10230  // compliance with the License. Please obtain a copy of the License at
 10231  // http://www.opensource.apple.com/apsl/ and read it before using this
 10232  // file.
 10233  //
 10234  // The Original Code and all software distributed under the License are
 10235  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10236  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10237  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10238  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10239  // Please see the License for the specific language governing rights and
 10240  // limitations under the License.
 10241  //
 10242  // @APPLE_LICENSE_HEADER_END@
 10243  // -
 10244  // Copyright (c) 1998-1999 Apple Computer, Inc. All Rights Reserved
 10245  // Copyright (c) 1991, 1993, 1994
 10246  //	The Regents of the University of California.  All rights reserved.
 10247  //
 10248  // Redistribution and use in source and binary forms, with or without
 10249  // modification, are permitted provided that the following conditions
 10250  // are met:
 10251  // 1. Redistributions of source code must retain the above copyright
 10252  //    notice, this list of conditions and the following disclaimer.
 10253  // 2. Redistributions in binary form must reproduce the above copyright
 10254  //    notice, this list of conditions and the following disclaimer in the
 10255  //    documentation and/or other materials provided with the distribution.
 10256  // 3. All advertising materials mentioning features or use of this software
 10257  //    must display the following acknowledgement:
 10258  //	This product includes software developed by the University of
 10259  //	California, Berkeley and its contributors.
 10260  // 4. Neither the name of the University nor the names of its contributors
 10261  //    may be used to endorse or promote products derived from this software
 10262  //    without specific prior written permission.
 10263  //
 10264  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 10265  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 10266  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 10267  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 10268  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 10269  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 10270  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 10271  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 10272  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 10273  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 10274  // SUCH DAMAGE.
 10275  //
 10276  //	@(#)unistd.h	8.12 (Berkeley) 4/27/95
 10277  //
 10278  //  Copyright (c)  1998 Apple Compter, Inc.
 10279  //  All Rights Reserved
 10280  
 10281  // History:
 10282  //         7/14/99 EKN at Apple fixed getdirentriesattr from getdirentryattr
 10283  //         3/26/98 CHW at Apple added real interface to searchfs call
 10284  //   	3/5/98  CHW at Apple added hfs semantic system calls headers
 10285  
 10286  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
 10287  //
 10288  // @APPLE_LICENSE_HEADER_START@
 10289  //
 10290  // This file contains Original Code and/or Modifications of Original Code
 10291  // as defined in and that are subject to the Apple Public Source License
 10292  // Version 2.0 (the 'License'). You may not use this file except in
 10293  // compliance with the License. Please obtain a copy of the License at
 10294  // http://www.opensource.apple.com/apsl/ and read it before using this
 10295  // file.
 10296  //
 10297  // The Original Code and all software distributed under the License are
 10298  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10299  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10300  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10301  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10302  // Please see the License for the specific language governing rights and
 10303  // limitations under the License.
 10304  //
 10305  // @APPLE_LICENSE_HEADER_END@
 10306  
 10307  // Copyright (c) 2000-2013 Apple Inc. All rights reserved.
 10308  //
 10309  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10310  //
 10311  // This file contains Original Code and/or Modifications of Original Code
 10312  // as defined in and that are subject to the Apple Public Source License
 10313  // Version 2.0 (the 'License'). You may not use this file except in
 10314  // compliance with the License. The rights granted to you under the License
 10315  // may not be used to create, or enable the creation or redistribution of,
 10316  // unlawful or unlicensed copies of an Apple operating system, or to
 10317  // circumvent, violate, or enable the circumvention or violation of, any
 10318  // terms of an Apple operating system software license agreement.
 10319  //
 10320  // Please obtain a copy of the License at
 10321  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10322  //
 10323  // The Original Code and all software distributed under the License are
 10324  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10325  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10326  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10327  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10328  // Please see the License for the specific language governing rights and
 10329  // limitations under the License.
 10330  //
 10331  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10332  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
 10333  // Copyright (c) 1989, 1993
 10334  //	The Regents of the University of California.  All rights reserved.
 10335  //
 10336  // Redistribution and use in source and binary forms, with or without
 10337  // modification, are permitted provided that the following conditions
 10338  // are met:
 10339  // 1. Redistributions of source code must retain the above copyright
 10340  //    notice, this list of conditions and the following disclaimer.
 10341  // 2. Redistributions in binary form must reproduce the above copyright
 10342  //    notice, this list of conditions and the following disclaimer in the
 10343  //    documentation and/or other materials provided with the distribution.
 10344  // 3. All advertising materials mentioning features or use of this software
 10345  //    must display the following acknowledgement:
 10346  //	This product includes software developed by the University of
 10347  //	California, Berkeley and its contributors.
 10348  // 4. Neither the name of the University nor the names of its contributors
 10349  //    may be used to endorse or promote products derived from this software
 10350  //    without specific prior written permission.
 10351  //
 10352  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 10353  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 10354  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 10355  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 10356  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 10357  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 10358  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 10359  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 10360  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 10361  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 10362  // SUCH DAMAGE.
 10363  //
 10364  //	@(#)unistd.h	8.2 (Berkeley) 1/7/94
 10365  
 10366  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 10367  //
 10368  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10369  //
 10370  // This file contains Original Code and/or Modifications of Original Code
 10371  // as defined in and that are subject to the Apple Public Source License
 10372  // Version 2.0 (the 'License'). You may not use this file except in
 10373  // compliance with the License. The rights granted to you under the License
 10374  // may not be used to create, or enable the creation or redistribution of,
 10375  // unlawful or unlicensed copies of an Apple operating system, or to
 10376  // circumvent, violate, or enable the circumvention or violation of, any
 10377  // terms of an Apple operating system software license agreement.
 10378  //
 10379  // Please obtain a copy of the License at
 10380  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10381  //
 10382  // The Original Code and all software distributed under the License are
 10383  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10384  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10385  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10386  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10387  // Please see the License for the specific language governing rights and
 10388  // limitations under the License.
 10389  //
 10390  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10391  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 10392  // Copyright (c) 1991, 1993
 10393  //	The Regents of the University of California.  All rights reserved.
 10394  //
 10395  // This code is derived from software contributed to Berkeley by
 10396  // Berkeley Software Design, Inc.
 10397  //
 10398  // Redistribution and use in source and binary forms, with or without
 10399  // modification, are permitted provided that the following conditions
 10400  // are met:
 10401  // 1. Redistributions of source code must retain the above copyright
 10402  //    notice, this list of conditions and the following disclaimer.
 10403  // 2. Redistributions in binary form must reproduce the above copyright
 10404  //    notice, this list of conditions and the following disclaimer in the
 10405  //    documentation and/or other materials provided with the distribution.
 10406  // 3. All advertising materials mentioning features or use of this software
 10407  //    must display the following acknowledgement:
 10408  //	This product includes software developed by the University of
 10409  //	California, Berkeley and its contributors.
 10410  // 4. Neither the name of the University nor the names of its contributors
 10411  //    may be used to endorse or promote products derived from this software
 10412  //    without specific prior written permission.
 10413  //
 10414  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 10415  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 10416  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 10417  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 10418  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 10419  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 10420  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 10421  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 10422  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 10423  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 10424  // SUCH DAMAGE.
 10425  //
 10426  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 10427  
 10428  // Although we have saved user/group IDs, we do not use them in setuid
 10429  // as described in POSIX 1003.1, because the feature does not work for
 10430  // root.  We use the saved IDs in seteuid/setegid, which are not currently
 10431  // part of the POSIX 1003.1 specification.
 10432  
 10433  // execution-time symbolic constants
 10434  // may disable terminal special characters
 10435  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 10436  //
 10437  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10438  //
 10439  // This file contains Original Code and/or Modifications of Original Code
 10440  // as defined in and that are subject to the Apple Public Source License
 10441  // Version 2.0 (the 'License'). You may not use this file except in
 10442  // compliance with the License. The rights granted to you under the License
 10443  // may not be used to create, or enable the creation or redistribution of,
 10444  // unlawful or unlicensed copies of an Apple operating system, or to
 10445  // circumvent, violate, or enable the circumvention or violation of, any
 10446  // terms of an Apple operating system software license agreement.
 10447  //
 10448  // Please obtain a copy of the License at
 10449  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10450  //
 10451  // The Original Code and all software distributed under the License are
 10452  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10453  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10454  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10455  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10456  // Please see the License for the specific language governing rights and
 10457  // limitations under the License.
 10458  //
 10459  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10460  
 10461  // access function
 10462  
 10463  // Extended access functions.
 10464  // Note that we depend on these matching the definitions in sys/kauth.h,
 10465  // but with the bits shifted left by 8.
 10466  
 10467  // whence values for lseek(2)
 10468  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 10469  //
 10470  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10471  //
 10472  // This file contains Original Code and/or Modifications of Original Code
 10473  // as defined in and that are subject to the Apple Public Source License
 10474  // Version 2.0 (the 'License'). You may not use this file except in
 10475  // compliance with the License. The rights granted to you under the License
 10476  // may not be used to create, or enable the creation or redistribution of,
 10477  // unlawful or unlicensed copies of an Apple operating system, or to
 10478  // circumvent, violate, or enable the circumvention or violation of, any
 10479  // terms of an Apple operating system software license agreement.
 10480  //
 10481  // Please obtain a copy of the License at
 10482  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10483  //
 10484  // The Original Code and all software distributed under the License are
 10485  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10486  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10487  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10488  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10489  // Please see the License for the specific language governing rights and
 10490  // limitations under the License.
 10491  //
 10492  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10493  
 10494  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 10495  //
 10496  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10497  //
 10498  // This file contains Original Code and/or Modifications of Original Code
 10499  // as defined in and that are subject to the Apple Public Source License
 10500  // Version 2.0 (the 'License'). You may not use this file except in
 10501  // compliance with the License. The rights granted to you under the License
 10502  // may not be used to create, or enable the creation or redistribution of,
 10503  // unlawful or unlicensed copies of an Apple operating system, or to
 10504  // circumvent, violate, or enable the circumvention or violation of, any
 10505  // terms of an Apple operating system software license agreement.
 10506  //
 10507  // Please obtain a copy of the License at
 10508  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10509  //
 10510  // The Original Code and all software distributed under the License are
 10511  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10512  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10513  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10514  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10515  // Please see the License for the specific language governing rights and
 10516  // limitations under the License.
 10517  //
 10518  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10519  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 10520  // Copyright (c) 1991, 1993
 10521  //	The Regents of the University of California.  All rights reserved.
 10522  //
 10523  // This code is derived from software contributed to Berkeley by
 10524  // Berkeley Software Design, Inc.
 10525  //
 10526  // Redistribution and use in source and binary forms, with or without
 10527  // modification, are permitted provided that the following conditions
 10528  // are met:
 10529  // 1. Redistributions of source code must retain the above copyright
 10530  //    notice, this list of conditions and the following disclaimer.
 10531  // 2. Redistributions in binary form must reproduce the above copyright
 10532  //    notice, this list of conditions and the following disclaimer in the
 10533  //    documentation and/or other materials provided with the distribution.
 10534  // 3. All advertising materials mentioning features or use of this software
 10535  //    must display the following acknowledgement:
 10536  //	This product includes software developed by the University of
 10537  //	California, Berkeley and its contributors.
 10538  // 4. Neither the name of the University nor the names of its contributors
 10539  //    may be used to endorse or promote products derived from this software
 10540  //    without specific prior written permission.
 10541  //
 10542  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 10543  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 10544  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 10545  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 10546  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 10547  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 10548  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 10549  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 10550  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 10551  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 10552  // SUCH DAMAGE.
 10553  //
 10554  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 10555  
 10556  // whence values for lseek(2)
 10557  
 10558  // whence values for lseek(2); renamed by POSIX 1003.1
 10559  
 10560  type Accessx_descriptor = struct {
 10561  	Fad_name_offset uint32
 10562  	Fad_flags       int32
 10563  	Fad_pad         [2]int32
 10564  } /* unistd.h:132:1 */
 10565  
 10566  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 10567  //
 10568  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10569  //
 10570  // This file contains Original Code and/or Modifications of Original Code
 10571  // as defined in and that are subject to the Apple Public Source License
 10572  // Version 2.0 (the 'License'). You may not use this file except in
 10573  // compliance with the License. The rights granted to you under the License
 10574  // may not be used to create, or enable the creation or redistribution of,
 10575  // unlawful or unlicensed copies of an Apple operating system, or to
 10576  // circumvent, violate, or enable the circumvention or violation of, any
 10577  // terms of an Apple operating system software license agreement.
 10578  //
 10579  // Please obtain a copy of the License at
 10580  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10581  //
 10582  // The Original Code and all software distributed under the License are
 10583  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10584  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10585  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10586  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10587  // Please see the License for the specific language governing rights and
 10588  // limitations under the License.
 10589  //
 10590  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10591  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 10592  //
 10593  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10594  //
 10595  // This file contains Original Code and/or Modifications of Original Code
 10596  // as defined in and that are subject to the Apple Public Source License
 10597  // Version 2.0 (the 'License'). You may not use this file except in
 10598  // compliance with the License. The rights granted to you under the License
 10599  // may not be used to create, or enable the creation or redistribution of,
 10600  // unlawful or unlicensed copies of an Apple operating system, or to
 10601  // circumvent, violate, or enable the circumvention or violation of, any
 10602  // terms of an Apple operating system software license agreement.
 10603  //
 10604  // Please obtain a copy of the License at
 10605  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10606  //
 10607  // The Original Code and all software distributed under the License are
 10608  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10609  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10610  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10611  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10612  // Please see the License for the specific language governing rights and
 10613  // limitations under the License.
 10614  //
 10615  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10616  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 10617  //
 10618  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10619  //
 10620  // This file contains Original Code and/or Modifications of Original Code
 10621  // as defined in and that are subject to the Apple Public Source License
 10622  // Version 2.0 (the 'License'). You may not use this file except in
 10623  // compliance with the License. The rights granted to you under the License
 10624  // may not be used to create, or enable the creation or redistribution of,
 10625  // unlawful or unlicensed copies of an Apple operating system, or to
 10626  // circumvent, violate, or enable the circumvention or violation of, any
 10627  // terms of an Apple operating system software license agreement.
 10628  //
 10629  // Please obtain a copy of the License at
 10630  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10631  //
 10632  // The Original Code and all software distributed under the License are
 10633  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10634  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10635  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10636  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10637  // Please see the License for the specific language governing rights and
 10638  // limitations under the License.
 10639  //
 10640  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10641  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 10642  //
 10643  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10644  //
 10645  // This file contains Original Code and/or Modifications of Original Code
 10646  // as defined in and that are subject to the Apple Public Source License
 10647  // Version 2.0 (the 'License'). You may not use this file except in
 10648  // compliance with the License. The rights granted to you under the License
 10649  // may not be used to create, or enable the creation or redistribution of,
 10650  // unlawful or unlicensed copies of an Apple operating system, or to
 10651  // circumvent, violate, or enable the circumvention or violation of, any
 10652  // terms of an Apple operating system software license agreement.
 10653  //
 10654  // Please obtain a copy of the License at
 10655  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10656  //
 10657  // The Original Code and all software distributed under the License are
 10658  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10659  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10660  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10661  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10662  // Please see the License for the specific language governing rights and
 10663  // limitations under the License.
 10664  //
 10665  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10666  
 10667  type Uuid_t = X__darwin_uuid_t /* _uuid_t.h:31:25 */
 10668  
 10669  // Get struct timeval and struct tm
 10670  
 10671  // Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
 10672  //
 10673  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10674  //
 10675  // This file contains Original Code and/or Modifications of Original Code
 10676  // as defined in and that are subject to the Apple Public Source License
 10677  // Version 2.0 (the 'License'). You may not use this file except in
 10678  // compliance with the License. The rights granted to you under the License
 10679  // may not be used to create, or enable the creation or redistribution of,
 10680  // unlawful or unlicensed copies of an Apple operating system, or to
 10681  // circumvent, violate, or enable the circumvention or violation of, any
 10682  // terms of an Apple operating system software license agreement.
 10683  //
 10684  // Please obtain a copy of the License at
 10685  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10686  //
 10687  // The Original Code and all software distributed under the License are
 10688  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10689  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10690  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10691  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10692  // Please see the License for the specific language governing rights and
 10693  // limitations under the License.
 10694  //
 10695  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10696  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
 10697  // Copyright (c) 1982, 1986, 1993
 10698  //	The Regents of the University of California.  All rights reserved.
 10699  //
 10700  // Redistribution and use in source and binary forms, with or without
 10701  // modification, are permitted provided that the following conditions
 10702  // are met:
 10703  // 1. Redistributions of source code must retain the above copyright
 10704  //    notice, this list of conditions and the following disclaimer.
 10705  // 2. Redistributions in binary form must reproduce the above copyright
 10706  //    notice, this list of conditions and the following disclaimer in the
 10707  //    documentation and/or other materials provided with the distribution.
 10708  // 3. All advertising materials mentioning features or use of this software
 10709  //    must display the following acknowledgement:
 10710  //	This product includes software developed by the University of
 10711  //	California, Berkeley and its contributors.
 10712  // 4. Neither the name of the University nor the names of its contributors
 10713  //    may be used to endorse or promote products derived from this software
 10714  //    without specific prior written permission.
 10715  //
 10716  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 10717  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 10718  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 10719  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 10720  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 10721  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 10722  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 10723  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 10724  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 10725  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 10726  // SUCH DAMAGE.
 10727  //
 10728  //	@(#)time.h	8.2 (Berkeley) 7/10/94
 10729  
 10730  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 10731  //
 10732  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10733  //
 10734  // This file contains Original Code and/or Modifications of Original Code
 10735  // as defined in and that are subject to the Apple Public Source License
 10736  // Version 2.0 (the 'License'). You may not use this file except in
 10737  // compliance with the License. The rights granted to you under the License
 10738  // may not be used to create, or enable the creation or redistribution of,
 10739  // unlawful or unlicensed copies of an Apple operating system, or to
 10740  // circumvent, violate, or enable the circumvention or violation of, any
 10741  // terms of an Apple operating system software license agreement.
 10742  //
 10743  // Please obtain a copy of the License at
 10744  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10745  //
 10746  // The Original Code and all software distributed under the License are
 10747  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10748  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10749  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10750  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10751  // Please see the License for the specific language governing rights and
 10752  // limitations under the License.
 10753  //
 10754  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10755  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 10756  // Copyright (c) 1991, 1993
 10757  //	The Regents of the University of California.  All rights reserved.
 10758  //
 10759  // This code is derived from software contributed to Berkeley by
 10760  // Berkeley Software Design, Inc.
 10761  //
 10762  // Redistribution and use in source and binary forms, with or without
 10763  // modification, are permitted provided that the following conditions
 10764  // are met:
 10765  // 1. Redistributions of source code must retain the above copyright
 10766  //    notice, this list of conditions and the following disclaimer.
 10767  // 2. Redistributions in binary form must reproduce the above copyright
 10768  //    notice, this list of conditions and the following disclaimer in the
 10769  //    documentation and/or other materials provided with the distribution.
 10770  // 3. All advertising materials mentioning features or use of this software
 10771  //    must display the following acknowledgement:
 10772  //	This product includes software developed by the University of
 10773  //	California, Berkeley and its contributors.
 10774  // 4. Neither the name of the University nor the names of its contributors
 10775  //    may be used to endorse or promote products derived from this software
 10776  //    without specific prior written permission.
 10777  //
 10778  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 10779  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 10780  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 10781  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 10782  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 10783  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 10784  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 10785  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 10786  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 10787  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 10788  // SUCH DAMAGE.
 10789  //
 10790  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 10791  
 10792  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 10793  //
 10794  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10795  //
 10796  // This file contains Original Code and/or Modifications of Original Code
 10797  // as defined in and that are subject to the Apple Public Source License
 10798  // Version 2.0 (the 'License'). You may not use this file except in
 10799  // compliance with the License. The rights granted to you under the License
 10800  // may not be used to create, or enable the creation or redistribution of,
 10801  // unlawful or unlicensed copies of an Apple operating system, or to
 10802  // circumvent, violate, or enable the circumvention or violation of, any
 10803  // terms of an Apple operating system software license agreement.
 10804  //
 10805  // Please obtain a copy of the License at
 10806  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10807  //
 10808  // The Original Code and all software distributed under the License are
 10809  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10810  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10811  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10812  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10813  // Please see the License for the specific language governing rights and
 10814  // limitations under the License.
 10815  //
 10816  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10817  
 10818  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
 10819  //
 10820  // @APPLE_LICENSE_HEADER_START@
 10821  //
 10822  // This file contains Original Code and/or Modifications of Original Code
 10823  // as defined in and that are subject to the Apple Public Source License
 10824  // Version 2.0 (the 'License'). You may not use this file except in
 10825  // compliance with the License. Please obtain a copy of the License at
 10826  // http://www.opensource.apple.com/apsl/ and read it before using this
 10827  // file.
 10828  //
 10829  // The Original Code and all software distributed under the License are
 10830  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10831  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10832  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10833  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10834  // Please see the License for the specific language governing rights and
 10835  // limitations under the License.
 10836  //
 10837  // @APPLE_LICENSE_HEADER_END@
 10838  
 10839  // [XSI] The fd_set type shall be defined as described in <sys/select.h>.
 10840  // The timespec structure shall be defined as described in <time.h>
 10841  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 10842  //
 10843  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10844  //
 10845  // This file contains Original Code and/or Modifications of Original Code
 10846  // as defined in and that are subject to the Apple Public Source License
 10847  // Version 2.0 (the 'License'). You may not use this file except in
 10848  // compliance with the License. The rights granted to you under the License
 10849  // may not be used to create, or enable the creation or redistribution of,
 10850  // unlawful or unlicensed copies of an Apple operating system, or to
 10851  // circumvent, violate, or enable the circumvention or violation of, any
 10852  // terms of an Apple operating system software license agreement.
 10853  //
 10854  // Please obtain a copy of the License at
 10855  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10856  //
 10857  // The Original Code and all software distributed under the License are
 10858  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10859  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10860  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10861  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10862  // Please see the License for the specific language governing rights and
 10863  // limitations under the License.
 10864  //
 10865  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10866  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 10867  //
 10868  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10869  //
 10870  // This file contains Original Code and/or Modifications of Original Code
 10871  // as defined in and that are subject to the Apple Public Source License
 10872  // Version 2.0 (the 'License'). You may not use this file except in
 10873  // compliance with the License. The rights granted to you under the License
 10874  // may not be used to create, or enable the creation or redistribution of,
 10875  // unlawful or unlicensed copies of an Apple operating system, or to
 10876  // circumvent, violate, or enable the circumvention or violation of, any
 10877  // terms of an Apple operating system software license agreement.
 10878  //
 10879  // Please obtain a copy of the License at
 10880  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10881  //
 10882  // The Original Code and all software distributed under the License are
 10883  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10884  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10885  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10886  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10887  // Please see the License for the specific language governing rights and
 10888  // limitations under the License.
 10889  //
 10890  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10891  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 10892  //
 10893  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10894  //
 10895  // This file contains Original Code and/or Modifications of Original Code
 10896  // as defined in and that are subject to the Apple Public Source License
 10897  // Version 2.0 (the 'License'). You may not use this file except in
 10898  // compliance with the License. The rights granted to you under the License
 10899  // may not be used to create, or enable the creation or redistribution of,
 10900  // unlawful or unlicensed copies of an Apple operating system, or to
 10901  // circumvent, violate, or enable the circumvention or violation of, any
 10902  // terms of an Apple operating system software license agreement.
 10903  //
 10904  // Please obtain a copy of the License at
 10905  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10906  //
 10907  // The Original Code and all software distributed under the License are
 10908  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10909  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10910  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10911  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10912  // Please see the License for the specific language governing rights and
 10913  // limitations under the License.
 10914  //
 10915  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10916  
 10917  // Copyright (c) 2015 Apple Inc. All rights reserved.
 10918  //
 10919  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10920  //
 10921  // This file contains Original Code and/or Modifications of Original Code
 10922  // as defined in and that are subject to the Apple Public Source License
 10923  // Version 2.0 (the 'License'). You may not use this file except in
 10924  // compliance with the License. The rights granted to you under the License
 10925  // may not be used to create, or enable the creation or redistribution of,
 10926  // unlawful or unlicensed copies of an Apple operating system, or to
 10927  // circumvent, violate, or enable the circumvention or violation of, any
 10928  // terms of an Apple operating system software license agreement.
 10929  //
 10930  // Please obtain a copy of the License at
 10931  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10932  //
 10933  // The Original Code and all software distributed under the License are
 10934  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10935  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10936  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10937  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10938  // Please see the License for the specific language governing rights and
 10939  // limitations under the License.
 10940  //
 10941  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10942  
 10943  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 10944  //
 10945  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10946  //
 10947  // This file contains Original Code and/or Modifications of Original Code
 10948  // as defined in and that are subject to the Apple Public Source License
 10949  // Version 2.0 (the 'License'). You may not use this file except in
 10950  // compliance with the License. The rights granted to you under the License
 10951  // may not be used to create, or enable the creation or redistribution of,
 10952  // unlawful or unlicensed copies of an Apple operating system, or to
 10953  // circumvent, violate, or enable the circumvention or violation of, any
 10954  // terms of an Apple operating system software license agreement.
 10955  //
 10956  // Please obtain a copy of the License at
 10957  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10958  //
 10959  // The Original Code and all software distributed under the License are
 10960  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10961  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10962  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10963  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10964  // Please see the License for the specific language governing rights and
 10965  // limitations under the License.
 10966  //
 10967  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10968  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 10969  
 10970  type Timeval64 = struct {
 10971  	Ftv_sec  X__int64_t
 10972  	Ftv_usec X__int64_t
 10973  } /* _timeval64.h:34:1 */
 10974  
 10975  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 10976  //
 10977  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10978  //
 10979  // This file contains Original Code and/or Modifications of Original Code
 10980  // as defined in and that are subject to the Apple Public Source License
 10981  // Version 2.0 (the 'License'). You may not use this file except in
 10982  // compliance with the License. The rights granted to you under the License
 10983  // may not be used to create, or enable the creation or redistribution of,
 10984  // unlawful or unlicensed copies of an Apple operating system, or to
 10985  // circumvent, violate, or enable the circumvention or violation of, any
 10986  // terms of an Apple operating system software license agreement.
 10987  //
 10988  // Please obtain a copy of the License at
 10989  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10990  //
 10991  // The Original Code and all software distributed under the License are
 10992  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10993  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10994  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10995  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10996  // Please see the License for the specific language governing rights and
 10997  // limitations under the License.
 10998  //
 10999  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11000  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11001  //
 11002  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11003  //
 11004  // This file contains Original Code and/or Modifications of Original Code
 11005  // as defined in and that are subject to the Apple Public Source License
 11006  // Version 2.0 (the 'License'). You may not use this file except in
 11007  // compliance with the License. The rights granted to you under the License
 11008  // may not be used to create, or enable the creation or redistribution of,
 11009  // unlawful or unlicensed copies of an Apple operating system, or to
 11010  // circumvent, violate, or enable the circumvention or violation of, any
 11011  // terms of an Apple operating system software license agreement.
 11012  //
 11013  // Please obtain a copy of the License at
 11014  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11015  //
 11016  // The Original Code and all software distributed under the License are
 11017  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11018  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11019  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11020  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11021  // Please see the License for the specific language governing rights and
 11022  // limitations under the License.
 11023  //
 11024  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11025  
 11026  // Structure used as a parameter by getitimer(2) and setitimer(2) system
 11027  // calls.
 11028  type Itimerval = struct {
 11029  	Fit_interval struct {
 11030  		Ftv_sec      X__darwin_time_t
 11031  		Ftv_usec     X__darwin_suseconds_t
 11032  		F__ccgo_pad1 [4]byte
 11033  	}
 11034  	Fit_value struct {
 11035  		Ftv_sec      X__darwin_time_t
 11036  		Ftv_usec     X__darwin_suseconds_t
 11037  		F__ccgo_pad1 [4]byte
 11038  	}
 11039  } /* time.h:91:1 */
 11040  
 11041  // Names of the interval timers, and structure
 11042  // defining a timer setting.
 11043  
 11044  // Select uses bit masks of file descriptors in longs.  These macros
 11045  // manipulate such bit fields (the filesystem macros use chars).  The
 11046  // extra protection here is to permit application redefinition above
 11047  // the default size.
 11048  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11049  //
 11050  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11051  //
 11052  // This file contains Original Code and/or Modifications of Original Code
 11053  // as defined in and that are subject to the Apple Public Source License
 11054  // Version 2.0 (the 'License'). You may not use this file except in
 11055  // compliance with the License. The rights granted to you under the License
 11056  // may not be used to create, or enable the creation or redistribution of,
 11057  // unlawful or unlicensed copies of an Apple operating system, or to
 11058  // circumvent, violate, or enable the circumvention or violation of, any
 11059  // terms of an Apple operating system software license agreement.
 11060  //
 11061  // Please obtain a copy of the License at
 11062  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11063  //
 11064  // The Original Code and all software distributed under the License are
 11065  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11066  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11067  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11068  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11069  // Please see the License for the specific language governing rights and
 11070  // limitations under the License.
 11071  //
 11072  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11073  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11074  //
 11075  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11076  //
 11077  // This file contains Original Code and/or Modifications of Original Code
 11078  // as defined in and that are subject to the Apple Public Source License
 11079  // Version 2.0 (the 'License'). You may not use this file except in
 11080  // compliance with the License. The rights granted to you under the License
 11081  // may not be used to create, or enable the creation or redistribution of,
 11082  // unlawful or unlicensed copies of an Apple operating system, or to
 11083  // circumvent, violate, or enable the circumvention or violation of, any
 11084  // terms of an Apple operating system software license agreement.
 11085  //
 11086  // Please obtain a copy of the License at
 11087  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11088  //
 11089  // The Original Code and all software distributed under the License are
 11090  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11091  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11092  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11093  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11094  // Please see the License for the specific language governing rights and
 11095  // limitations under the License.
 11096  //
 11097  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11098  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11099  //
 11100  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11101  //
 11102  // This file contains Original Code and/or Modifications of Original Code
 11103  // as defined in and that are subject to the Apple Public Source License
 11104  // Version 2.0 (the 'License'). You may not use this file except in
 11105  // compliance with the License. The rights granted to you under the License
 11106  // may not be used to create, or enable the creation or redistribution of,
 11107  // unlawful or unlicensed copies of an Apple operating system, or to
 11108  // circumvent, violate, or enable the circumvention or violation of, any
 11109  // terms of an Apple operating system software license agreement.
 11110  //
 11111  // Please obtain a copy of the License at
 11112  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11113  //
 11114  // The Original Code and all software distributed under the License are
 11115  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11116  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11117  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11118  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11119  // Please see the License for the specific language governing rights and
 11120  // limitations under the License.
 11121  //
 11122  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11123  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11124  //
 11125  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11126  //
 11127  // This file contains Original Code and/or Modifications of Original Code
 11128  // as defined in and that are subject to the Apple Public Source License
 11129  // Version 2.0 (the 'License'). You may not use this file except in
 11130  // compliance with the License. The rights granted to you under the License
 11131  // may not be used to create, or enable the creation or redistribution of,
 11132  // unlawful or unlicensed copies of an Apple operating system, or to
 11133  // circumvent, violate, or enable the circumvention or violation of, any
 11134  // terms of an Apple operating system software license agreement.
 11135  //
 11136  // Please obtain a copy of the License at
 11137  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11138  //
 11139  // The Original Code and all software distributed under the License are
 11140  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11141  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11142  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11143  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11144  // Please see the License for the specific language governing rights and
 11145  // limitations under the License.
 11146  //
 11147  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11148  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11149  //
 11150  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11151  //
 11152  // This file contains Original Code and/or Modifications of Original Code
 11153  // as defined in and that are subject to the Apple Public Source License
 11154  // Version 2.0 (the 'License'). You may not use this file except in
 11155  // compliance with the License. The rights granted to you under the License
 11156  // may not be used to create, or enable the creation or redistribution of,
 11157  // unlawful or unlicensed copies of an Apple operating system, or to
 11158  // circumvent, violate, or enable the circumvention or violation of, any
 11159  // terms of an Apple operating system software license agreement.
 11160  //
 11161  // Please obtain a copy of the License at
 11162  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11163  //
 11164  // The Original Code and all software distributed under the License are
 11165  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11166  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11167  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11168  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11169  // Please see the License for the specific language governing rights and
 11170  // limitations under the License.
 11171  //
 11172  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11173  
 11174  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11175  //
 11176  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11177  //
 11178  // This file contains Original Code and/or Modifications of Original Code
 11179  // as defined in and that are subject to the Apple Public Source License
 11180  // Version 2.0 (the 'License'). You may not use this file except in
 11181  // compliance with the License. The rights granted to you under the License
 11182  // may not be used to create, or enable the creation or redistribution of,
 11183  // unlawful or unlicensed copies of an Apple operating system, or to
 11184  // circumvent, violate, or enable the circumvention or violation of, any
 11185  // terms of an Apple operating system software license agreement.
 11186  //
 11187  // Please obtain a copy of the License at
 11188  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11189  //
 11190  // The Original Code and all software distributed under the License are
 11191  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11192  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11193  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11194  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11195  // Please see the License for the specific language governing rights and
 11196  // limitations under the License.
 11197  //
 11198  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11199  
 11200  type Timezone = struct {
 11201  	Ftz_minuteswest int32
 11202  	Ftz_dsttime     int32
 11203  } /* time.h:129:1 */
 11204  
 11205  // Operations on timevals.
 11206  
 11207  // Getkerninfo clock information structure
 11208  type Clockinfo = struct {
 11209  	Fhz      int32
 11210  	Ftick    int32
 11211  	Ftickadj int32
 11212  	Fstathz  int32
 11213  	Fprofhz  int32
 11214  } /* time.h:172:1 */
 11215  
 11216  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
 11217  //
 11218  // @APPLE_LICENSE_HEADER_START@
 11219  //
 11220  // This file contains Original Code and/or Modifications of Original Code
 11221  // as defined in and that are subject to the Apple Public Source License
 11222  // Version 2.0 (the 'License'). You may not use this file except in
 11223  // compliance with the License. Please obtain a copy of the License at
 11224  // http://www.opensource.apple.com/apsl/ and read it before using this
 11225  // file.
 11226  //
 11227  // The Original Code and all software distributed under the License are
 11228  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11229  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11230  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11231  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11232  // Please see the License for the specific language governing rights and
 11233  // limitations under the License.
 11234  //
 11235  // @APPLE_LICENSE_HEADER_END@
 11236  // Copyright (c) 1989, 1993
 11237  //	The Regents of the University of California.  All rights reserved.
 11238  // (c) UNIX System Laboratories, Inc.
 11239  // All or some portions of this file are derived from material licensed
 11240  // to the University of California by American Telephone and Telegraph
 11241  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
 11242  // the permission of UNIX System Laboratories, Inc.
 11243  //
 11244  // Redistribution and use in source and binary forms, with or without
 11245  // modification, are permitted provided that the following conditions
 11246  // are met:
 11247  // 1. Redistributions of source code must retain the above copyright
 11248  //    notice, this list of conditions and the following disclaimer.
 11249  // 2. Redistributions in binary form must reproduce the above copyright
 11250  //    notice, this list of conditions and the following disclaimer in the
 11251  //    documentation and/or other materials provided with the distribution.
 11252  // 3. All advertising materials mentioning features or use of this software
 11253  //    must display the following acknowledgement:
 11254  //	This product includes software developed by the University of
 11255  //	California, Berkeley and its contributors.
 11256  // 4. Neither the name of the University nor the names of its contributors
 11257  //    may be used to endorse or promote products derived from this software
 11258  //    without specific prior written permission.
 11259  //
 11260  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 11261  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 11262  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 11263  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 11264  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 11265  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 11266  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 11267  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 11268  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 11269  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 11270  // SUCH DAMAGE.
 11271  //
 11272  //	@(#)time.h	8.3 (Berkeley) 1/21/94
 11273  
 11274  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
 11275  //
 11276  // @APPLE_LICENSE_HEADER_START@
 11277  //
 11278  // This file contains Original Code and/or Modifications of Original Code
 11279  // as defined in and that are subject to the Apple Public Source License
 11280  // Version 2.0 (the 'License'). You may not use this file except in
 11281  // compliance with the License. Please obtain a copy of the License at
 11282  // http://www.opensource.apple.com/apsl/ and read it before using this
 11283  // file.
 11284  //
 11285  // The Original Code and all software distributed under the License are
 11286  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11287  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11288  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11289  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11290  // Please see the License for the specific language governing rights and
 11291  // limitations under the License.
 11292  //
 11293  // @APPLE_LICENSE_HEADER_END@
 11294  
 11295  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 11296  //
 11297  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11298  //
 11299  // This file contains Original Code and/or Modifications of Original Code
 11300  // as defined in and that are subject to the Apple Public Source License
 11301  // Version 2.0 (the 'License'). You may not use this file except in
 11302  // compliance with the License. The rights granted to you under the License
 11303  // may not be used to create, or enable the creation or redistribution of,
 11304  // unlawful or unlicensed copies of an Apple operating system, or to
 11305  // circumvent, violate, or enable the circumvention or violation of, any
 11306  // terms of an Apple operating system software license agreement.
 11307  //
 11308  // Please obtain a copy of the License at
 11309  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11310  //
 11311  // The Original Code and all software distributed under the License are
 11312  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11313  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11314  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11315  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11316  // Please see the License for the specific language governing rights and
 11317  // limitations under the License.
 11318  //
 11319  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11320  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 11321  // Copyright (c) 1991, 1993
 11322  //	The Regents of the University of California.  All rights reserved.
 11323  //
 11324  // This code is derived from software contributed to Berkeley by
 11325  // Berkeley Software Design, Inc.
 11326  //
 11327  // Redistribution and use in source and binary forms, with or without
 11328  // modification, are permitted provided that the following conditions
 11329  // are met:
 11330  // 1. Redistributions of source code must retain the above copyright
 11331  //    notice, this list of conditions and the following disclaimer.
 11332  // 2. Redistributions in binary form must reproduce the above copyright
 11333  //    notice, this list of conditions and the following disclaimer in the
 11334  //    documentation and/or other materials provided with the distribution.
 11335  // 3. All advertising materials mentioning features or use of this software
 11336  //    must display the following acknowledgement:
 11337  //	This product includes software developed by the University of
 11338  //	California, Berkeley and its contributors.
 11339  // 4. Neither the name of the University nor the names of its contributors
 11340  //    may be used to endorse or promote products derived from this software
 11341  //    without specific prior written permission.
 11342  //
 11343  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 11344  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 11345  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 11346  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 11347  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 11348  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 11349  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 11350  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 11351  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 11352  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 11353  // SUCH DAMAGE.
 11354  //
 11355  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 11356  
 11357  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
 11358  //
 11359  // @APPLE_LICENSE_HEADER_START@
 11360  //
 11361  // This file contains Original Code and/or Modifications of Original Code
 11362  // as defined in and that are subject to the Apple Public Source License
 11363  // Version 2.0 (the 'License'). You may not use this file except in
 11364  // compliance with the License. Please obtain a copy of the License at
 11365  // http://www.opensource.apple.com/apsl/ and read it before using this
 11366  // file.
 11367  //
 11368  // The Original Code and all software distributed under the License are
 11369  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11370  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11371  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11372  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11373  // Please see the License for the specific language governing rights and
 11374  // limitations under the License.
 11375  //
 11376  // @APPLE_LICENSE_HEADER_END@
 11377  
 11378  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11379  //
 11380  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11381  //
 11382  // This file contains Original Code and/or Modifications of Original Code
 11383  // as defined in and that are subject to the Apple Public Source License
 11384  // Version 2.0 (the 'License'). You may not use this file except in
 11385  // compliance with the License. The rights granted to you under the License
 11386  // may not be used to create, or enable the creation or redistribution of,
 11387  // unlawful or unlicensed copies of an Apple operating system, or to
 11388  // circumvent, violate, or enable the circumvention or violation of, any
 11389  // terms of an Apple operating system software license agreement.
 11390  //
 11391  // Please obtain a copy of the License at
 11392  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11393  //
 11394  // The Original Code and all software distributed under the License are
 11395  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11396  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11397  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11398  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11399  // Please see the License for the specific language governing rights and
 11400  // limitations under the License.
 11401  //
 11402  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11403  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11404  //
 11405  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11406  //
 11407  // This file contains Original Code and/or Modifications of Original Code
 11408  // as defined in and that are subject to the Apple Public Source License
 11409  // Version 2.0 (the 'License'). You may not use this file except in
 11410  // compliance with the License. The rights granted to you under the License
 11411  // may not be used to create, or enable the creation or redistribution of,
 11412  // unlawful or unlicensed copies of an Apple operating system, or to
 11413  // circumvent, violate, or enable the circumvention or violation of, any
 11414  // terms of an Apple operating system software license agreement.
 11415  //
 11416  // Please obtain a copy of the License at
 11417  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11418  //
 11419  // The Original Code and all software distributed under the License are
 11420  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11421  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11422  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11423  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11424  // Please see the License for the specific language governing rights and
 11425  // limitations under the License.
 11426  //
 11427  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11428  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11429  //
 11430  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11431  //
 11432  // This file contains Original Code and/or Modifications of Original Code
 11433  // as defined in and that are subject to the Apple Public Source License
 11434  // Version 2.0 (the 'License'). You may not use this file except in
 11435  // compliance with the License. The rights granted to you under the License
 11436  // may not be used to create, or enable the creation or redistribution of,
 11437  // unlawful or unlicensed copies of an Apple operating system, or to
 11438  // circumvent, violate, or enable the circumvention or violation of, any
 11439  // terms of an Apple operating system software license agreement.
 11440  //
 11441  // Please obtain a copy of the License at
 11442  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11443  //
 11444  // The Original Code and all software distributed under the License are
 11445  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11446  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11447  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11448  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11449  // Please see the License for the specific language governing rights and
 11450  // limitations under the License.
 11451  //
 11452  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11453  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11454  //
 11455  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11456  //
 11457  // This file contains Original Code and/or Modifications of Original Code
 11458  // as defined in and that are subject to the Apple Public Source License
 11459  // Version 2.0 (the 'License'). You may not use this file except in
 11460  // compliance with the License. The rights granted to you under the License
 11461  // may not be used to create, or enable the creation or redistribution of,
 11462  // unlawful or unlicensed copies of an Apple operating system, or to
 11463  // circumvent, violate, or enable the circumvention or violation of, any
 11464  // terms of an Apple operating system software license agreement.
 11465  //
 11466  // Please obtain a copy of the License at
 11467  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11468  //
 11469  // The Original Code and all software distributed under the License are
 11470  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11471  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11472  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11473  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11474  // Please see the License for the specific language governing rights and
 11475  // limitations under the License.
 11476  //
 11477  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11478  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11479  //
 11480  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11481  //
 11482  // This file contains Original Code and/or Modifications of Original Code
 11483  // as defined in and that are subject to the Apple Public Source License
 11484  // Version 2.0 (the 'License'). You may not use this file except in
 11485  // compliance with the License. The rights granted to you under the License
 11486  // may not be used to create, or enable the creation or redistribution of,
 11487  // unlawful or unlicensed copies of an Apple operating system, or to
 11488  // circumvent, violate, or enable the circumvention or violation of, any
 11489  // terms of an Apple operating system software license agreement.
 11490  //
 11491  // Please obtain a copy of the License at
 11492  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11493  //
 11494  // The Original Code and all software distributed under the License are
 11495  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11496  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11497  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11498  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11499  // Please see the License for the specific language governing rights and
 11500  // limitations under the License.
 11501  //
 11502  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11503  
 11504  type Tm = struct {
 11505  	Ftm_sec      int32
 11506  	Ftm_min      int32
 11507  	Ftm_hour     int32
 11508  	Ftm_mday     int32
 11509  	Ftm_mon      int32
 11510  	Ftm_year     int32
 11511  	Ftm_wday     int32
 11512  	Ftm_yday     int32
 11513  	Ftm_isdst    int32
 11514  	F__ccgo_pad1 [4]byte
 11515  	Ftm_gmtoff   int64
 11516  	Ftm_zone     uintptr
 11517  } /* time.h:75:1 */
 11518  
 11519  type Clockid_t = uint32 /* time.h:172:3 */ // getsubopt(3) external variable
 11520  // valloc is now declared in _malloc.h
 11521  
 11522  // Poison the following routines if -fshort-wchar is set
 11523  
 11524  var buf uintptr = uintptr(0) /* AuFileName.c:35:13 */
 11525  
 11526  func free_filename_buffer(tls *libc.TLS) { /* AuFileName.c:38:1: */
 11527  	libc.Xfree(tls, buf)
 11528  	buf = uintptr(0)
 11529  }
 11530  
 11531  func XXauFileName(tls *libc.TLS) uintptr { /* AuFileName.c:44:6: */
 11532  	bp := tls.Alloc(16)
 11533  	defer tls.Free(16)
 11534  
 11535  	var slashDotXauthority uintptr = ts /* "/.Xauthority" */
 11536  	var name uintptr
 11537  	var size Size_t
 11538  
 11539  	if libc.AssignUintptr(&name, libc.Xgetenv(tls, ts+13)) != 0 {
 11540  		return name
 11541  	}
 11542  	name = libc.Xgetenv(tls, ts+24)
 11543  	if !(name != 0) {
 11544  		return uintptr(0)
 11545  	}
 11546  	size = libc.Xstrlen(tls, name) + libc.Xstrlen(tls, slashDotXauthority+1) + uint64(2)
 11547  	if size > bsize || buf == uintptr(0) {
 11548  		libc.Xfree(tls, buf)
 11549  		if libc.X__builtin_expect(tls, libc.BoolInt64(!(size > uint64(0))), int64(0)) != 0 {
 11550  			libc.X__assert_rtn(tls, uintptr(unsafe.Pointer(&__func__)), ts+29, 72, ts+42)
 11551  		} else {
 11552  		}
 11553  		buf = libc.Xmalloc(tls, size)
 11554  		if !(buf != 0) {
 11555  			bsize = uint64(0)
 11556  			return uintptr(0)
 11557  		}
 11558  
 11559  		if !(atexit_registered != 0) {
 11560  			libc.Xatexit(tls, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) }{free_filename_buffer})))
 11561  			atexit_registered = 1
 11562  		}
 11563  
 11564  		bsize = size
 11565  	}
 11566  	libc.X__builtin___snprintf_chk(tls, buf, bsize, 0, libc.X__builtin_object_size(tls, buf, func() int32 {
 11567  		if X_USE_FORTIFY_LEVEL > 1 {
 11568  			return 1
 11569  		}
 11570  		return 0
 11571  	}()), ts+51 /* "%s%s" */, libc.VaList(bp, name, slashDotXauthority+uintptr(func() int32 {
 11572  		if int32(*(*int8)(unsafe.Pointer(name))) == '/' && int32(*(*int8)(unsafe.Pointer(name + 1))) == 0 {
 11573  			return 1
 11574  		}
 11575  		return 0
 11576  	}())))
 11577  	return buf
 11578  }
 11579  
 11580  var __func__ = *(*[12]int8)(unsafe.Pointer(ts + 56)) /* AuFileName.c:46:1 */
 11581  var bsize Size_t                                     /* AuFileName.c:49:19: */
 11582  var atexit_registered int32 = 0                      /* AuFileName.c:50:16 */
 11583  
 11584  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
 11585  //
 11586  // @APPLE_LICENSE_HEADER_START@
 11587  //
 11588  // This file contains Original Code and/or Modifications of Original Code
 11589  // as defined in and that are subject to the Apple Public Source License
 11590  // Version 2.0 (the 'License'). You may not use this file except in
 11591  // compliance with the License. Please obtain a copy of the License at
 11592  // http://www.opensource.apple.com/apsl/ and read it before using this
 11593  // file.
 11594  //
 11595  // The Original Code and all software distributed under the License are
 11596  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11597  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11598  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11599  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11600  // Please see the License for the specific language governing rights and
 11601  // limitations under the License.
 11602  //
 11603  // @APPLE_LICENSE_HEADER_END@
 11604  // Copyright (c) 1989, 1993
 11605  //	The Regents of the University of California.  All rights reserved.
 11606  // (c) UNIX System Laboratories, Inc.
 11607  // All or some portions of this file are derived from material licensed
 11608  // to the University of California by American Telephone and Telegraph
 11609  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
 11610  // the permission of UNIX System Laboratories, Inc.
 11611  //
 11612  // Redistribution and use in source and binary forms, with or without
 11613  // modification, are permitted provided that the following conditions
 11614  // are met:
 11615  // 1. Redistributions of source code must retain the above copyright
 11616  //    notice, this list of conditions and the following disclaimer.
 11617  // 2. Redistributions in binary form must reproduce the above copyright
 11618  //    notice, this list of conditions and the following disclaimer in the
 11619  //    documentation and/or other materials provided with the distribution.
 11620  // 3. All advertising materials mentioning features or use of this software
 11621  //    must display the following acknowledgement:
 11622  //	This product includes software developed by the University of
 11623  //	California, Berkeley and its contributors.
 11624  // 4. Neither the name of the University nor the names of its contributors
 11625  //    may be used to endorse or promote products derived from this software
 11626  //    without specific prior written permission.
 11627  //
 11628  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 11629  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 11630  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 11631  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 11632  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 11633  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 11634  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 11635  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 11636  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 11637  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 11638  // SUCH DAMAGE.
 11639  //
 11640  //	@(#)time.h	8.3 (Berkeley) 1/21/94
 11641  
 11642  // define X_GETTIMEOFDAY macro, a portable gettimeofday()
 11643  
 11644  // use POSIX name for signal
 11645  
 11646  // Copyright 1997 Metro Link Incorporated
 11647  //
 11648  //                           All Rights Reserved
 11649  //
 11650  // Permission to use, copy, modify, distribute, and sell this software and its
 11651  // documentation for any purpose is hereby granted without fee, provided that
 11652  // the above copyright notice appear in all copies and that both that
 11653  // copyright notice and this permission notice appear in supporting
 11654  // documentation, and that the names of the above listed copyright holder(s)
 11655  // not be used in advertising or publicity pertaining to distribution of
 11656  // the software without specific, written prior permission.  The above listed
 11657  // copyright holder(s) make(s) no representations about the suitability of
 11658  // this software for any purpose.  It is provided "as is" without express or
 11659  // implied warranty.
 11660  //
 11661  // THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM(S) ALL WARRANTIES WITH REGARD
 11662  // TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 11663  // AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
 11664  // LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
 11665  // DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
 11666  // IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
 11667  // OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 11668  
 11669  // Determine the machine's byte order.
 11670  
 11671  // See if it is set in the imake config first
 11672  
 11673  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 11674  //
 11675  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11676  //
 11677  // This file contains Original Code and/or Modifications of Original Code
 11678  // as defined in and that are subject to the Apple Public Source License
 11679  // Version 2.0 (the 'License'). You may not use this file except in
 11680  // compliance with the License. The rights granted to you under the License
 11681  // may not be used to create, or enable the creation or redistribution of,
 11682  // unlawful or unlicensed copies of an Apple operating system, or to
 11683  // circumvent, violate, or enable the circumvention or violation of, any
 11684  // terms of an Apple operating system software license agreement.
 11685  //
 11686  // Please obtain a copy of the License at
 11687  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11688  //
 11689  // The Original Code and all software distributed under the License are
 11690  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11691  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11692  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11693  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11694  // Please see the License for the specific language governing rights and
 11695  // limitations under the License.
 11696  //
 11697  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11698  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 11699  
 11700  func XXauGetAuthByAddr(tls *libc.TLS, family uint32, address_length uint32, address uintptr, number_length uint32, number uintptr, name_length uint32, name uintptr) uintptr { /* AuGetAddr.c:35:7: */
 11701  	var auth_file uintptr
 11702  	var auth_name uintptr
 11703  	var entry uintptr
 11704  
 11705  	auth_name = XXauFileName(tls)
 11706  	if !(auth_name != 0) {
 11707  		return uintptr(0)
 11708  	}
 11709  	if libc.Xaccess(tls, auth_name, int32(1)<<2) != 0 { // checks REAL id
 11710  		return uintptr(0)
 11711  	}
 11712  	auth_file = libc.Xfopen(tls, auth_name, ts+68)
 11713  	if !(auth_file != 0) {
 11714  		return uintptr(0)
 11715  	}
 11716  	for {
 11717  		entry = XXauReadAuth(tls, auth_file)
 11718  		if !(entry != 0) {
 11719  			break
 11720  		}
 11721  		// Match when:
 11722  		//   either family or entry->family are FamilyWild or
 11723  		//    family and entry->family are the same and
 11724  		//     address and entry->address are the same
 11725  		//  and
 11726  		//   either number or entry->number are empty or
 11727  		//    number and entry->number are the same
 11728  		//  and
 11729  		//   either name or entry->name are empty or
 11730  		//    name and entry->name are the same
 11731  
 11732  		if (family == uint32(65535) || int32((*Xauth)(unsafe.Pointer(entry)).Ffamily) == 65535 || uint32((*Xauth)(unsafe.Pointer(entry)).Ffamily) == family && address_length == uint32((*Xauth)(unsafe.Pointer(entry)).Faddress_length) && libc.Xmemcmp(tls, (*Xauth)(unsafe.Pointer(entry)).Faddress, address, uint64(address_length)) == 0) && (number_length == uint32(0) || int32((*Xauth)(unsafe.Pointer(entry)).Fnumber_length) == 0 || number_length == uint32((*Xauth)(unsafe.Pointer(entry)).Fnumber_length) && libc.Xmemcmp(tls, (*Xauth)(unsafe.Pointer(entry)).Fnumber, number, uint64(number_length)) == 0) && (name_length == uint32(0) || int32((*Xauth)(unsafe.Pointer(entry)).Fname_length) == 0 || uint32((*Xauth)(unsafe.Pointer(entry)).Fname_length) == name_length && libc.Xmemcmp(tls, (*Xauth)(unsafe.Pointer(entry)).Fname, name, uint64(name_length)) == 0) {
 11733  			break
 11734  		}
 11735  		XXauDisposeAuth(tls, entry)
 11736  	}
 11737  	libc.Xfclose(tls, auth_file)
 11738  	return entry
 11739  }
 11740  
 11741  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
 11742  //
 11743  // @APPLE_LICENSE_HEADER_START@
 11744  //
 11745  // This file contains Original Code and/or Modifications of Original Code
 11746  // as defined in and that are subject to the Apple Public Source License
 11747  // Version 2.0 (the 'License'). You may not use this file except in
 11748  // compliance with the License. Please obtain a copy of the License at
 11749  // http://www.opensource.apple.com/apsl/ and read it before using this
 11750  // file.
 11751  //
 11752  // The Original Code and all software distributed under the License are
 11753  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11754  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11755  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11756  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11757  // Please see the License for the specific language governing rights and
 11758  // limitations under the License.
 11759  //
 11760  // @APPLE_LICENSE_HEADER_END@
 11761  // Copyright (c) 1989, 1993
 11762  //	The Regents of the University of California.  All rights reserved.
 11763  // (c) UNIX System Laboratories, Inc.
 11764  // All or some portions of this file are derived from material licensed
 11765  // to the University of California by American Telephone and Telegraph
 11766  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
 11767  // the permission of UNIX System Laboratories, Inc.
 11768  //
 11769  // Redistribution and use in source and binary forms, with or without
 11770  // modification, are permitted provided that the following conditions
 11771  // are met:
 11772  // 1. Redistributions of source code must retain the above copyright
 11773  //    notice, this list of conditions and the following disclaimer.
 11774  // 2. Redistributions in binary form must reproduce the above copyright
 11775  //    notice, this list of conditions and the following disclaimer in the
 11776  //    documentation and/or other materials provided with the distribution.
 11777  // 3. All advertising materials mentioning features or use of this software
 11778  //    must display the following acknowledgement:
 11779  //	This product includes software developed by the University of
 11780  //	California, Berkeley and its contributors.
 11781  // 4. Neither the name of the University nor the names of its contributors
 11782  //    may be used to endorse or promote products derived from this software
 11783  //    without specific prior written permission.
 11784  //
 11785  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 11786  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 11787  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 11788  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 11789  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 11790  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 11791  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 11792  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 11793  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 11794  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 11795  // SUCH DAMAGE.
 11796  //
 11797  //	@(#)time.h	8.3 (Berkeley) 1/21/94
 11798  
 11799  // define X_GETTIMEOFDAY macro, a portable gettimeofday()
 11800  
 11801  // use POSIX name for signal
 11802  
 11803  // Copyright 1997 Metro Link Incorporated
 11804  //
 11805  //                           All Rights Reserved
 11806  //
 11807  // Permission to use, copy, modify, distribute, and sell this software and its
 11808  // documentation for any purpose is hereby granted without fee, provided that
 11809  // the above copyright notice appear in all copies and that both that
 11810  // copyright notice and this permission notice appear in supporting
 11811  // documentation, and that the names of the above listed copyright holder(s)
 11812  // not be used in advertising or publicity pertaining to distribution of
 11813  // the software without specific, written prior permission.  The above listed
 11814  // copyright holder(s) make(s) no representations about the suitability of
 11815  // this software for any purpose.  It is provided "as is" without express or
 11816  // implied warranty.
 11817  //
 11818  // THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM(S) ALL WARRANTIES WITH REGARD
 11819  // TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 11820  // AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
 11821  // LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
 11822  // DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
 11823  // IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
 11824  // OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 11825  
 11826  // Determine the machine's byte order.
 11827  
 11828  // See if it is set in the imake config first
 11829  
 11830  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 11831  //
 11832  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11833  //
 11834  // This file contains Original Code and/or Modifications of Original Code
 11835  // as defined in and that are subject to the Apple Public Source License
 11836  // Version 2.0 (the 'License'). You may not use this file except in
 11837  // compliance with the License. The rights granted to you under the License
 11838  // may not be used to create, or enable the creation or redistribution of,
 11839  // unlawful or unlicensed copies of an Apple operating system, or to
 11840  // circumvent, violate, or enable the circumvention or violation of, any
 11841  // terms of an Apple operating system software license agreement.
 11842  //
 11843  // Please obtain a copy of the License at
 11844  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11845  //
 11846  // The Original Code and all software distributed under the License are
 11847  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11848  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11849  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11850  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11851  // Please see the License for the specific language governing rights and
 11852  // limitations under the License.
 11853  //
 11854  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11855  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 11856  
 11857  func XXauGetBestAuthByAddr(tls *libc.TLS, family uint32, address_length uint32, address uintptr, number_length uint32, number uintptr, types_length int32, types1 uintptr, type_lengths uintptr) uintptr { /* AuGetBest.c:43:7: */
 11858  	var auth_file uintptr
 11859  	var auth_name uintptr
 11860  	var entry uintptr
 11861  	var best uintptr
 11862  	var best_type int32
 11863  	var type1 int32
 11864  
 11865  	auth_name = XXauFileName(tls)
 11866  	if !(auth_name != 0) {
 11867  		return uintptr(0)
 11868  	}
 11869  	if libc.Xaccess(tls, auth_name, int32(1)<<2) != 0 { // checks REAL id
 11870  		return uintptr(0)
 11871  	}
 11872  	auth_file = libc.Xfopen(tls, auth_name, ts+68)
 11873  	if !(auth_file != 0) {
 11874  		return uintptr(0)
 11875  	}
 11876  
 11877  	best = uintptr(0)
 11878  	best_type = types_length
 11879  	for {
 11880  		entry = XXauReadAuth(tls, auth_file)
 11881  		if !(entry != 0) {
 11882  			break
 11883  		}
 11884  		// Match when:
 11885  		//   either family or entry->family are FamilyWild or
 11886  		//    family and entry->family are the same and
 11887  		//     address and entry->address are the same
 11888  		//  and
 11889  		//   either number or entry->number are empty or
 11890  		//    number and entry->number are the same
 11891  		//  and
 11892  		//   either name or entry->name are empty or
 11893  		//    name and entry->name are the same
 11894  
 11895  		if (family == uint32(65535) || int32((*Xauth)(unsafe.Pointer(entry)).Ffamily) == 65535 || uint32((*Xauth)(unsafe.Pointer(entry)).Ffamily) == family && (address_length == uint32((*Xauth)(unsafe.Pointer(entry)).Faddress_length) && libc.Xmemcmp(tls, (*Xauth)(unsafe.Pointer(entry)).Faddress, address, uint64(address_length)) == 0)) && (number_length == uint32(0) || int32((*Xauth)(unsafe.Pointer(entry)).Fnumber_length) == 0 || number_length == uint32((*Xauth)(unsafe.Pointer(entry)).Fnumber_length) && libc.Xmemcmp(tls, (*Xauth)(unsafe.Pointer(entry)).Fnumber, number, uint64(number_length)) == 0) {
 11896  			if best_type == 0 {
 11897  				best = entry
 11898  				break
 11899  			}
 11900  			for type1 = 0; type1 < best_type; type1++ {
 11901  				if *(*int32)(unsafe.Pointer(type_lengths + uintptr(type1)*4)) == int32((*Xauth)(unsafe.Pointer(entry)).Fname_length) && !(libc.Xstrncmp(tls, *(*uintptr)(unsafe.Pointer(types1 + uintptr(type1)*8)), (*Xauth)(unsafe.Pointer(entry)).Fname, uint64((*Xauth)(unsafe.Pointer(entry)).Fname_length)) != 0) {
 11902  					break
 11903  				}
 11904  			}
 11905  			if type1 < best_type {
 11906  				if best != 0 {
 11907  					XXauDisposeAuth(tls, best)
 11908  				}
 11909  				best = entry
 11910  				best_type = type1
 11911  				if type1 == 0 {
 11912  					break
 11913  				}
 11914  				continue
 11915  			}
 11916  		}
 11917  		XXauDisposeAuth(tls, entry)
 11918  	}
 11919  	libc.Xfclose(tls, auth_file)
 11920  	return best
 11921  }
 11922  
 11923  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
 11924  //
 11925  // @APPLE_LICENSE_HEADER_START@
 11926  //
 11927  // This file contains Original Code and/or Modifications of Original Code
 11928  // as defined in and that are subject to the Apple Public Source License
 11929  // Version 2.0 (the 'License'). You may not use this file except in
 11930  // compliance with the License. Please obtain a copy of the License at
 11931  // http://www.opensource.apple.com/apsl/ and read it before using this
 11932  // file.
 11933  //
 11934  // The Original Code and all software distributed under the License are
 11935  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11936  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11937  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11938  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11939  // Please see the License for the specific language governing rights and
 11940  // limitations under the License.
 11941  //
 11942  // @APPLE_LICENSE_HEADER_END@
 11943  // Copyright (c) 1989, 1993
 11944  //	The Regents of the University of California.  All rights reserved.
 11945  // (c) UNIX System Laboratories, Inc.
 11946  // All or some portions of this file are derived from material licensed
 11947  // to the University of California by American Telephone and Telegraph
 11948  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
 11949  // the permission of UNIX System Laboratories, Inc.
 11950  //
 11951  // Redistribution and use in source and binary forms, with or without
 11952  // modification, are permitted provided that the following conditions
 11953  // are met:
 11954  // 1. Redistributions of source code must retain the above copyright
 11955  //    notice, this list of conditions and the following disclaimer.
 11956  // 2. Redistributions in binary form must reproduce the above copyright
 11957  //    notice, this list of conditions and the following disclaimer in the
 11958  //    documentation and/or other materials provided with the distribution.
 11959  // 3. All advertising materials mentioning features or use of this software
 11960  //    must display the following acknowledgement:
 11961  //	This product includes software developed by the University of
 11962  //	California, Berkeley and its contributors.
 11963  // 4. Neither the name of the University nor the names of its contributors
 11964  //    may be used to endorse or promote products derived from this software
 11965  //    without specific prior written permission.
 11966  //
 11967  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 11968  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 11969  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 11970  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 11971  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 11972  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 11973  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 11974  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 11975  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 11976  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 11977  // SUCH DAMAGE.
 11978  //
 11979  //	@(#)time.h	8.3 (Berkeley) 1/21/94
 11980  
 11981  // define X_GETTIMEOFDAY macro, a portable gettimeofday()
 11982  
 11983  // use POSIX name for signal
 11984  
 11985  // Copyright 1997 Metro Link Incorporated
 11986  //
 11987  //                           All Rights Reserved
 11988  //
 11989  // Permission to use, copy, modify, distribute, and sell this software and its
 11990  // documentation for any purpose is hereby granted without fee, provided that
 11991  // the above copyright notice appear in all copies and that both that
 11992  // copyright notice and this permission notice appear in supporting
 11993  // documentation, and that the names of the above listed copyright holder(s)
 11994  // not be used in advertising or publicity pertaining to distribution of
 11995  // the software without specific, written prior permission.  The above listed
 11996  // copyright holder(s) make(s) no representations about the suitability of
 11997  // this software for any purpose.  It is provided "as is" without express or
 11998  // implied warranty.
 11999  //
 12000  // THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM(S) ALL WARRANTIES WITH REGARD
 12001  // TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 12002  // AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
 12003  // LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
 12004  // DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
 12005  // IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
 12006  // OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 12007  
 12008  // Determine the machine's byte order.
 12009  
 12010  // See if it is set in the imake config first
 12011  
 12012  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 12013  //
 12014  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12015  //
 12016  // This file contains Original Code and/or Modifications of Original Code
 12017  // as defined in and that are subject to the Apple Public Source License
 12018  // Version 2.0 (the 'License'). You may not use this file except in
 12019  // compliance with the License. The rights granted to you under the License
 12020  // may not be used to create, or enable the creation or redistribution of,
 12021  // unlawful or unlicensed copies of an Apple operating system, or to
 12022  // circumvent, violate, or enable the circumvention or violation of, any
 12023  // terms of an Apple operating system software license agreement.
 12024  //
 12025  // Please obtain a copy of the License at
 12026  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12027  //
 12028  // The Original Code and all software distributed under the License are
 12029  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12030  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12031  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12032  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12033  // Please see the License for the specific language governing rights and
 12034  // limitations under the License.
 12035  //
 12036  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12037  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 12038  
 12039  // Copyright (c) 2000-2014 Apple Inc. All rights reserved.
 12040  //
 12041  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12042  //
 12043  // This file contains Original Code and/or Modifications of Original Code
 12044  // as defined in and that are subject to the Apple Public Source License
 12045  // Version 2.0 (the 'License'). You may not use this file except in
 12046  // compliance with the License. The rights granted to you under the License
 12047  // may not be used to create, or enable the creation or redistribution of,
 12048  // unlawful or unlicensed copies of an Apple operating system, or to
 12049  // circumvent, violate, or enable the circumvention or violation of, any
 12050  // terms of an Apple operating system software license agreement.
 12051  //
 12052  // Please obtain a copy of the License at
 12053  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12054  //
 12055  // The Original Code and all software distributed under the License are
 12056  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12057  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12058  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12059  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12060  // Please see the License for the specific language governing rights and
 12061  // limitations under the License.
 12062  //
 12063  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12064  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
 12065  // -
 12066  // Copyright (c) 1982, 1986, 1989, 1993
 12067  //	The Regents of the University of California.  All rights reserved.
 12068  // (c) UNIX System Laboratories, Inc.
 12069  // All or some portions of this file are derived from material licensed
 12070  // to the University of California by American Telephone and Telegraph
 12071  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
 12072  // the permission of UNIX System Laboratories, Inc.
 12073  //
 12074  // Redistribution and use in source and binary forms, with or without
 12075  // modification, are permitted provided that the following conditions
 12076  // are met:
 12077  // 1. Redistributions of source code must retain the above copyright
 12078  //    notice, this list of conditions and the following disclaimer.
 12079  // 2. Redistributions in binary form must reproduce the above copyright
 12080  //    notice, this list of conditions and the following disclaimer in the
 12081  //    documentation and/or other materials provided with the distribution.
 12082  // 3. All advertising materials mentioning features or use of this software
 12083  //    must display the following acknowledgement:
 12084  //	This product includes software developed by the University of
 12085  //	California, Berkeley and its contributors.
 12086  // 4. Neither the name of the University nor the names of its contributors
 12087  //    may be used to endorse or promote products derived from this software
 12088  //    without specific prior written permission.
 12089  //
 12090  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 12091  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 12092  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 12093  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 12094  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 12095  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 12096  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 12097  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 12098  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 12099  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 12100  // SUCH DAMAGE.
 12101  //
 12102  //	@(#)stat.h	8.9 (Berkeley) 8/17/94
 12103  
 12104  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 12105  //
 12106  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12107  //
 12108  // This file contains Original Code and/or Modifications of Original Code
 12109  // as defined in and that are subject to the Apple Public Source License
 12110  // Version 2.0 (the 'License'). You may not use this file except in
 12111  // compliance with the License. The rights granted to you under the License
 12112  // may not be used to create, or enable the creation or redistribution of,
 12113  // unlawful or unlicensed copies of an Apple operating system, or to
 12114  // circumvent, violate, or enable the circumvention or violation of, any
 12115  // terms of an Apple operating system software license agreement.
 12116  //
 12117  // Please obtain a copy of the License at
 12118  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12119  //
 12120  // The Original Code and all software distributed under the License are
 12121  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12122  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12123  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12124  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12125  // Please see the License for the specific language governing rights and
 12126  // limitations under the License.
 12127  //
 12128  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12129  
 12130  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 12131  //
 12132  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12133  //
 12134  // This file contains Original Code and/or Modifications of Original Code
 12135  // as defined in and that are subject to the Apple Public Source License
 12136  // Version 2.0 (the 'License'). You may not use this file except in
 12137  // compliance with the License. The rights granted to you under the License
 12138  // may not be used to create, or enable the creation or redistribution of,
 12139  // unlawful or unlicensed copies of an Apple operating system, or to
 12140  // circumvent, violate, or enable the circumvention or violation of, any
 12141  // terms of an Apple operating system software license agreement.
 12142  //
 12143  // Please obtain a copy of the License at
 12144  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12145  //
 12146  // The Original Code and all software distributed under the License are
 12147  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12148  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12149  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12150  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12151  // Please see the License for the specific language governing rights and
 12152  // limitations under the License.
 12153  //
 12154  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12155  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 12156  // Copyright (c) 1991, 1993
 12157  //	The Regents of the University of California.  All rights reserved.
 12158  //
 12159  // This code is derived from software contributed to Berkeley by
 12160  // Berkeley Software Design, Inc.
 12161  //
 12162  // Redistribution and use in source and binary forms, with or without
 12163  // modification, are permitted provided that the following conditions
 12164  // are met:
 12165  // 1. Redistributions of source code must retain the above copyright
 12166  //    notice, this list of conditions and the following disclaimer.
 12167  // 2. Redistributions in binary form must reproduce the above copyright
 12168  //    notice, this list of conditions and the following disclaimer in the
 12169  //    documentation and/or other materials provided with the distribution.
 12170  // 3. All advertising materials mentioning features or use of this software
 12171  //    must display the following acknowledgement:
 12172  //	This product includes software developed by the University of
 12173  //	California, Berkeley and its contributors.
 12174  // 4. Neither the name of the University nor the names of its contributors
 12175  //    may be used to endorse or promote products derived from this software
 12176  //    without specific prior written permission.
 12177  //
 12178  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 12179  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 12180  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 12181  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 12182  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 12183  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 12184  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 12185  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 12186  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 12187  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 12188  // SUCH DAMAGE.
 12189  //
 12190  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 12191  
 12192  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
 12193  //
 12194  // @APPLE_LICENSE_HEADER_START@
 12195  //
 12196  // This file contains Original Code and/or Modifications of Original Code
 12197  // as defined in and that are subject to the Apple Public Source License
 12198  // Version 2.0 (the 'License'). You may not use this file except in
 12199  // compliance with the License. Please obtain a copy of the License at
 12200  // http://www.opensource.apple.com/apsl/ and read it before using this
 12201  // file.
 12202  //
 12203  // The Original Code and all software distributed under the License are
 12204  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12205  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12206  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12207  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12208  // Please see the License for the specific language governing rights and
 12209  // limitations under the License.
 12210  //
 12211  // @APPLE_LICENSE_HEADER_END@
 12212  
 12213  // [XSI] The timespec structure may be defined as described in <time.h>
 12214  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12215  //
 12216  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12217  //
 12218  // This file contains Original Code and/or Modifications of Original Code
 12219  // as defined in and that are subject to the Apple Public Source License
 12220  // Version 2.0 (the 'License'). You may not use this file except in
 12221  // compliance with the License. The rights granted to you under the License
 12222  // may not be used to create, or enable the creation or redistribution of,
 12223  // unlawful or unlicensed copies of an Apple operating system, or to
 12224  // circumvent, violate, or enable the circumvention or violation of, any
 12225  // terms of an Apple operating system software license agreement.
 12226  //
 12227  // Please obtain a copy of the License at
 12228  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12229  //
 12230  // The Original Code and all software distributed under the License are
 12231  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12232  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12233  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12234  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12235  // Please see the License for the specific language governing rights and
 12236  // limitations under the License.
 12237  //
 12238  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12239  
 12240  // [XSI] The blkcnt_t, blksize_t, dev_t, ino_t, mode_t, nlink_t, uid_t,
 12241  // gid_t, off_t, and time_t types shall be defined as described in
 12242  // <sys/types.h>.
 12243  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12244  //
 12245  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12246  //
 12247  // This file contains Original Code and/or Modifications of Original Code
 12248  // as defined in and that are subject to the Apple Public Source License
 12249  // Version 2.0 (the 'License'). You may not use this file except in
 12250  // compliance with the License. The rights granted to you under the License
 12251  // may not be used to create, or enable the creation or redistribution of,
 12252  // unlawful or unlicensed copies of an Apple operating system, or to
 12253  // circumvent, violate, or enable the circumvention or violation of, any
 12254  // terms of an Apple operating system software license agreement.
 12255  //
 12256  // Please obtain a copy of the License at
 12257  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12258  //
 12259  // The Original Code and all software distributed under the License are
 12260  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12261  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12262  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12263  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12264  // Please see the License for the specific language governing rights and
 12265  // limitations under the License.
 12266  //
 12267  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12268  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12269  //
 12270  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12271  //
 12272  // This file contains Original Code and/or Modifications of Original Code
 12273  // as defined in and that are subject to the Apple Public Source License
 12274  // Version 2.0 (the 'License'). You may not use this file except in
 12275  // compliance with the License. The rights granted to you under the License
 12276  // may not be used to create, or enable the creation or redistribution of,
 12277  // unlawful or unlicensed copies of an Apple operating system, or to
 12278  // circumvent, violate, or enable the circumvention or violation of, any
 12279  // terms of an Apple operating system software license agreement.
 12280  //
 12281  // Please obtain a copy of the License at
 12282  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12283  //
 12284  // The Original Code and all software distributed under the License are
 12285  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12286  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12287  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12288  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12289  // Please see the License for the specific language governing rights and
 12290  // limitations under the License.
 12291  //
 12292  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12293  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12294  //
 12295  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12296  //
 12297  // This file contains Original Code and/or Modifications of Original Code
 12298  // as defined in and that are subject to the Apple Public Source License
 12299  // Version 2.0 (the 'License'). You may not use this file except in
 12300  // compliance with the License. The rights granted to you under the License
 12301  // may not be used to create, or enable the creation or redistribution of,
 12302  // unlawful or unlicensed copies of an Apple operating system, or to
 12303  // circumvent, violate, or enable the circumvention or violation of, any
 12304  // terms of an Apple operating system software license agreement.
 12305  //
 12306  // Please obtain a copy of the License at
 12307  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12308  //
 12309  // The Original Code and all software distributed under the License are
 12310  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12311  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12312  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12313  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12314  // Please see the License for the specific language governing rights and
 12315  // limitations under the License.
 12316  //
 12317  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12318  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12319  //
 12320  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12321  //
 12322  // This file contains Original Code and/or Modifications of Original Code
 12323  // as defined in and that are subject to the Apple Public Source License
 12324  // Version 2.0 (the 'License'). You may not use this file except in
 12325  // compliance with the License. The rights granted to you under the License
 12326  // may not be used to create, or enable the creation or redistribution of,
 12327  // unlawful or unlicensed copies of an Apple operating system, or to
 12328  // circumvent, violate, or enable the circumvention or violation of, any
 12329  // terms of an Apple operating system software license agreement.
 12330  //
 12331  // Please obtain a copy of the License at
 12332  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12333  //
 12334  // The Original Code and all software distributed under the License are
 12335  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12336  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12337  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12338  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12339  // Please see the License for the specific language governing rights and
 12340  // limitations under the License.
 12341  //
 12342  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12343  
 12344  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12345  //
 12346  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12347  //
 12348  // This file contains Original Code and/or Modifications of Original Code
 12349  // as defined in and that are subject to the Apple Public Source License
 12350  // Version 2.0 (the 'License'). You may not use this file except in
 12351  // compliance with the License. The rights granted to you under the License
 12352  // may not be used to create, or enable the creation or redistribution of,
 12353  // unlawful or unlicensed copies of an Apple operating system, or to
 12354  // circumvent, violate, or enable the circumvention or violation of, any
 12355  // terms of an Apple operating system software license agreement.
 12356  //
 12357  // Please obtain a copy of the License at
 12358  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12359  //
 12360  // The Original Code and all software distributed under the License are
 12361  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12362  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12363  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12364  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12365  // Please see the License for the specific language governing rights and
 12366  // limitations under the License.
 12367  //
 12368  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12369  
 12370  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12371  //
 12372  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12373  //
 12374  // This file contains Original Code and/or Modifications of Original Code
 12375  // as defined in and that are subject to the Apple Public Source License
 12376  // Version 2.0 (the 'License'). You may not use this file except in
 12377  // compliance with the License. The rights granted to you under the License
 12378  // may not be used to create, or enable the creation or redistribution of,
 12379  // unlawful or unlicensed copies of an Apple operating system, or to
 12380  // circumvent, violate, or enable the circumvention or violation of, any
 12381  // terms of an Apple operating system software license agreement.
 12382  //
 12383  // Please obtain a copy of the License at
 12384  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12385  //
 12386  // The Original Code and all software distributed under the License are
 12387  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12388  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12389  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12390  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12391  // Please see the License for the specific language governing rights and
 12392  // limitations under the License.
 12393  //
 12394  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12395  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12396  //
 12397  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12398  //
 12399  // This file contains Original Code and/or Modifications of Original Code
 12400  // as defined in and that are subject to the Apple Public Source License
 12401  // Version 2.0 (the 'License'). You may not use this file except in
 12402  // compliance with the License. The rights granted to you under the License
 12403  // may not be used to create, or enable the creation or redistribution of,
 12404  // unlawful or unlicensed copies of an Apple operating system, or to
 12405  // circumvent, violate, or enable the circumvention or violation of, any
 12406  // terms of an Apple operating system software license agreement.
 12407  //
 12408  // Please obtain a copy of the License at
 12409  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12410  //
 12411  // The Original Code and all software distributed under the License are
 12412  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12413  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12414  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12415  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12416  // Please see the License for the specific language governing rights and
 12417  // limitations under the License.
 12418  //
 12419  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12420  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12421  //
 12422  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12423  //
 12424  // This file contains Original Code and/or Modifications of Original Code
 12425  // as defined in and that are subject to the Apple Public Source License
 12426  // Version 2.0 (the 'License'). You may not use this file except in
 12427  // compliance with the License. The rights granted to you under the License
 12428  // may not be used to create, or enable the creation or redistribution of,
 12429  // unlawful or unlicensed copies of an Apple operating system, or to
 12430  // circumvent, violate, or enable the circumvention or violation of, any
 12431  // terms of an Apple operating system software license agreement.
 12432  //
 12433  // Please obtain a copy of the License at
 12434  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12435  //
 12436  // The Original Code and all software distributed under the License are
 12437  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12438  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12439  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12440  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12441  // Please see the License for the specific language governing rights and
 12442  // limitations under the License.
 12443  //
 12444  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12445  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12446  //
 12447  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12448  //
 12449  // This file contains Original Code and/or Modifications of Original Code
 12450  // as defined in and that are subject to the Apple Public Source License
 12451  // Version 2.0 (the 'License'). You may not use this file except in
 12452  // compliance with the License. The rights granted to you under the License
 12453  // may not be used to create, or enable the creation or redistribution of,
 12454  // unlawful or unlicensed copies of an Apple operating system, or to
 12455  // circumvent, violate, or enable the circumvention or violation of, any
 12456  // terms of an Apple operating system software license agreement.
 12457  //
 12458  // Please obtain a copy of the License at
 12459  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12460  //
 12461  // The Original Code and all software distributed under the License are
 12462  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12463  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12464  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12465  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12466  // Please see the License for the specific language governing rights and
 12467  // limitations under the License.
 12468  //
 12469  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12470  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12471  //
 12472  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12473  //
 12474  // This file contains Original Code and/or Modifications of Original Code
 12475  // as defined in and that are subject to the Apple Public Source License
 12476  // Version 2.0 (the 'License'). You may not use this file except in
 12477  // compliance with the License. The rights granted to you under the License
 12478  // may not be used to create, or enable the creation or redistribution of,
 12479  // unlawful or unlicensed copies of an Apple operating system, or to
 12480  // circumvent, violate, or enable the circumvention or violation of, any
 12481  // terms of an Apple operating system software license agreement.
 12482  //
 12483  // Please obtain a copy of the License at
 12484  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12485  //
 12486  // The Original Code and all software distributed under the License are
 12487  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12488  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12489  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12490  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12491  // Please see the License for the specific language governing rights and
 12492  // limitations under the License.
 12493  //
 12494  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12495  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12496  //
 12497  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12498  //
 12499  // This file contains Original Code and/or Modifications of Original Code
 12500  // as defined in and that are subject to the Apple Public Source License
 12501  // Version 2.0 (the 'License'). You may not use this file except in
 12502  // compliance with the License. The rights granted to you under the License
 12503  // may not be used to create, or enable the creation or redistribution of,
 12504  // unlawful or unlicensed copies of an Apple operating system, or to
 12505  // circumvent, violate, or enable the circumvention or violation of, any
 12506  // terms of an Apple operating system software license agreement.
 12507  //
 12508  // Please obtain a copy of the License at
 12509  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12510  //
 12511  // The Original Code and all software distributed under the License are
 12512  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12513  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12514  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12515  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12516  // Please see the License for the specific language governing rights and
 12517  // limitations under the License.
 12518  //
 12519  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12520  
 12521  // XXX So deprecated, it would make your head spin
 12522  //
 12523  // The old stat structure.  In fact, this is not used by the kernel at all,
 12524  // and should not be used by user space, and should be removed from this
 12525  // header file entirely (along with the unused cvtstat() prototype in
 12526  // vnode_internal.h).
 12527  type Ostat = struct {
 12528  	Fst_dev       X__uint16_t
 12529  	F__ccgo_pad1  [6]byte
 12530  	Fst_ino       Ino_t
 12531  	Fst_mode      Mode_t
 12532  	Fst_nlink     Nlink_t
 12533  	Fst_uid       X__uint16_t
 12534  	Fst_gid       X__uint16_t
 12535  	Fst_rdev      X__uint16_t
 12536  	F__ccgo_pad2  [2]byte
 12537  	Fst_size      X__int32_t
 12538  	Fst_atimespec struct {
 12539  		Ftv_sec  X__darwin_time_t
 12540  		Ftv_nsec int64
 12541  	}
 12542  	Fst_mtimespec struct {
 12543  		Ftv_sec  X__darwin_time_t
 12544  		Ftv_nsec int64
 12545  	}
 12546  	Fst_ctimespec struct {
 12547  		Ftv_sec  X__darwin_time_t
 12548  		Ftv_nsec int64
 12549  	}
 12550  	Fst_blksize X__int32_t
 12551  	Fst_blocks  X__int32_t
 12552  	Fst_flags   X__uint32_t
 12553  	Fst_gen     X__uint32_t
 12554  } /* stat.h:110:1 */
 12555  
 12556  // This structure is used as the second parameter to the fstat64(),
 12557  // lstat64(), and stat64() functions, and for struct stat when
 12558  // __DARWIN_64_BIT_INO_T is set. __DARWIN_STRUCT_STAT64 is defined
 12559  // above, depending on whether we use struct timespec or the direct
 12560  // components.
 12561  //
 12562  // This is simillar to stat except for 64bit inode number
 12563  // number instead of 32bit ino_t and the addition of create(birth) time.
 12564  
 12565  // [XSI] This structure is used as the second parameter to the fstat(),
 12566  // lstat(), and stat() functions.
 12567  
 12568  type Stat = struct {
 12569  	Fst_dev       Dev_t
 12570  	Fst_mode      Mode_t
 12571  	Fst_nlink     Nlink_t
 12572  	Fst_ino       X__darwin_ino64_t
 12573  	Fst_uid       Uid_t
 12574  	Fst_gid       Gid_t
 12575  	Fst_rdev      Dev_t
 12576  	F__ccgo_pad1  [4]byte
 12577  	Fst_atimespec struct {
 12578  		Ftv_sec  X__darwin_time_t
 12579  		Ftv_nsec int64
 12580  	}
 12581  	Fst_mtimespec struct {
 12582  		Ftv_sec  X__darwin_time_t
 12583  		Ftv_nsec int64
 12584  	}
 12585  	Fst_ctimespec struct {
 12586  		Ftv_sec  X__darwin_time_t
 12587  		Ftv_nsec int64
 12588  	}
 12589  	Fst_birthtimespec struct {
 12590  		Ftv_sec  X__darwin_time_t
 12591  		Ftv_nsec int64
 12592  	}
 12593  	Fst_size    Off_t
 12594  	Fst_blocks  Blkcnt_t
 12595  	Fst_blksize Blksize_t
 12596  	Fst_flags   X__uint32_t
 12597  	Fst_gen     X__uint32_t
 12598  	Fst_lspare  X__int32_t
 12599  	Fst_qspare  [2]X__int64_t
 12600  } /* stat.h:182:1 */
 12601  
 12602  // Error codes
 12603  
 12604  // 11 was EAGAIN
 12605  
 12606  // math software
 12607  
 12608  // non-blocking and interrupt i/o
 12609  
 12610  // ipc/network software -- argument errors
 12611  
 12612  // ipc/network software -- operational errors
 12613  
 12614  // should be rearranged
 12615  
 12616  // quotas & mush
 12617  
 12618  // Network File System
 12619  
 12620  // Intelligent device errors
 12621  
 12622  // Program loading errors
 12623  
 12624  // This value is only discrete when compiling __DARWIN_UNIX03, or KERNEL
 12625  
 12626  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
 12627  //
 12628  // @APPLE_LICENSE_HEADER_START@
 12629  //
 12630  // This file contains Original Code and/or Modifications of Original Code
 12631  // as defined in and that are subject to the Apple Public Source License
 12632  // Version 2.0 (the 'License'). You may not use this file except in
 12633  // compliance with the License. Please obtain a copy of the License at
 12634  // http://www.opensource.apple.com/apsl/ and read it before using this
 12635  // file.
 12636  //
 12637  // The Original Code and all software distributed under the License are
 12638  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12639  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12640  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12641  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12642  // Please see the License for the specific language governing rights and
 12643  // limitations under the License.
 12644  //
 12645  // @APPLE_LICENSE_HEADER_END@
 12646  // Copyright (c) 1989, 1993
 12647  //	The Regents of the University of California.  All rights reserved.
 12648  // (c) UNIX System Laboratories, Inc.
 12649  // All or some portions of this file are derived from material licensed
 12650  // to the University of California by American Telephone and Telegraph
 12651  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
 12652  // the permission of UNIX System Laboratories, Inc.
 12653  //
 12654  // Redistribution and use in source and binary forms, with or without
 12655  // modification, are permitted provided that the following conditions
 12656  // are met:
 12657  // 1. Redistributions of source code must retain the above copyright
 12658  //    notice, this list of conditions and the following disclaimer.
 12659  // 2. Redistributions in binary form must reproduce the above copyright
 12660  //    notice, this list of conditions and the following disclaimer in the
 12661  //    documentation and/or other materials provided with the distribution.
 12662  // 3. All advertising materials mentioning features or use of this software
 12663  //    must display the following acknowledgement:
 12664  //	This product includes software developed by the University of
 12665  //	California, Berkeley and its contributors.
 12666  // 4. Neither the name of the University nor the names of its contributors
 12667  //    may be used to endorse or promote products derived from this software
 12668  //    without specific prior written permission.
 12669  //
 12670  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 12671  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 12672  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 12673  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 12674  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 12675  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 12676  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 12677  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 12678  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 12679  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 12680  // SUCH DAMAGE.
 12681  //
 12682  //	@(#)time.h	8.3 (Berkeley) 1/21/94
 12683  
 12684  // Copyright (c) 2000, 2002-2006, 2008-2010, 2012 Apple Inc. All rights reserved.
 12685  //
 12686  // @APPLE_LICENSE_HEADER_START@
 12687  //
 12688  // This file contains Original Code and/or Modifications of Original Code
 12689  // as defined in and that are subject to the Apple Public Source License
 12690  // Version 2.0 (the 'License'). You may not use this file except in
 12691  // compliance with the License. Please obtain a copy of the License at
 12692  // http://www.opensource.apple.com/apsl/ and read it before using this
 12693  // file.
 12694  //
 12695  // The Original Code and all software distributed under the License are
 12696  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12697  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12698  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12699  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12700  // Please see the License for the specific language governing rights and
 12701  // limitations under the License.
 12702  //
 12703  // @APPLE_LICENSE_HEADER_END@
 12704  // -
 12705  // Copyright (c) 1998-1999 Apple Computer, Inc. All Rights Reserved
 12706  // Copyright (c) 1991, 1993, 1994
 12707  //	The Regents of the University of California.  All rights reserved.
 12708  //
 12709  // Redistribution and use in source and binary forms, with or without
 12710  // modification, are permitted provided that the following conditions
 12711  // are met:
 12712  // 1. Redistributions of source code must retain the above copyright
 12713  //    notice, this list of conditions and the following disclaimer.
 12714  // 2. Redistributions in binary form must reproduce the above copyright
 12715  //    notice, this list of conditions and the following disclaimer in the
 12716  //    documentation and/or other materials provided with the distribution.
 12717  // 3. All advertising materials mentioning features or use of this software
 12718  //    must display the following acknowledgement:
 12719  //	This product includes software developed by the University of
 12720  //	California, Berkeley and its contributors.
 12721  // 4. Neither the name of the University nor the names of its contributors
 12722  //    may be used to endorse or promote products derived from this software
 12723  //    without specific prior written permission.
 12724  //
 12725  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 12726  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 12727  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 12728  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 12729  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 12730  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 12731  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 12732  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 12733  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 12734  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 12735  // SUCH DAMAGE.
 12736  //
 12737  //	@(#)unistd.h	8.12 (Berkeley) 4/27/95
 12738  //
 12739  //  Copyright (c)  1998 Apple Compter, Inc.
 12740  //  All Rights Reserved
 12741  
 12742  // History:
 12743  //         7/14/99 EKN at Apple fixed getdirentriesattr from getdirentryattr
 12744  //         3/26/98 CHW at Apple added real interface to searchfs call
 12745  //   	3/5/98  CHW at Apple added hfs semantic system calls headers
 12746  
 12747  func XXauLockAuth(tls *libc.TLS, file_name uintptr, retries int32, timeout int32, dead int64) int32 { /* AuLock.c:45:1: */
 12748  	bp := tls.Alloc(2224)
 12749  	defer tls.Free(2224)
 12750  
 12751  	// var creat_name [1025]int8 at bp+24, 1025
 12752  
 12753  	// var link_name [1025]int8 at bp+1049, 1025
 12754  
 12755  	// var statb Stat at bp+2080, 144
 12756  
 12757  	var now Time_t
 12758  	var creat_fd int32 = -1
 12759  
 12760  	if libc.Xstrlen(tls, file_name) > uint64(1022) {
 12761  		return LOCK_ERROR
 12762  	}
 12763  	libc.X__builtin___snprintf_chk(tls, bp+24, uint64(unsafe.Sizeof([1025]int8{})), 0, libc.X__builtin_object_size(tls, bp+24, func() int32 {
 12764  		if X_USE_FORTIFY_LEVEL > 1 {
 12765  			return 1
 12766  		}
 12767  		return 0
 12768  	}()), ts+71 /* "%s-c" */, libc.VaList(bp, file_name))
 12769  	libc.X__builtin___snprintf_chk(tls, bp+1049, uint64(unsafe.Sizeof([1025]int8{})), 0, libc.X__builtin_object_size(tls, bp+1049, func() int32 {
 12770  		if X_USE_FORTIFY_LEVEL > 1 {
 12771  			return 1
 12772  		}
 12773  		return 0
 12774  	}()), ts+76 /* "%s-l" */, libc.VaList(bp+8, file_name))
 12775  	if libc.Xstat(tls, bp+24, bp+2080) != -1 {
 12776  		now = libc.Xtime(tls, uintptr(0))
 12777  		// NFS may cause ctime to be before now, special
 12778  		// case a 0 deadtime to force lock removal
 12779  		if dead == int64(0) || now-(*Stat)(unsafe.Pointer(bp+2080)).Fst_ctimespec.Ftv_sec > dead {
 12780  			libc.Xremove(tls, bp+24)
 12781  			libc.Xremove(tls, bp+1049)
 12782  		}
 12783  	}
 12784  
 12785  	for retries > 0 {
 12786  		if creat_fd == -1 {
 12787  			creat_fd = libc.Xopen(tls, bp+24, O_WRONLY|O_CREAT|O_EXCL, libc.VaList(bp+16, 0600))
 12788  			if creat_fd == -1 {
 12789  				if *(*int32)(unsafe.Pointer(libc.X__error(tls))) != EACCES && *(*int32)(unsafe.Pointer(libc.X__error(tls))) != EEXIST {
 12790  					return LOCK_ERROR
 12791  				}
 12792  			} else {
 12793  				libc.Xclose(tls, creat_fd)
 12794  			}
 12795  		}
 12796  		if creat_fd != -1 {
 12797  			// The file system may not support hard links, and pathconf should tell us that.
 12798  			if int64(1) == libc.Xpathconf(tls, bp+24, X_PC_LINK_MAX) {
 12799  				if -1 == libc.Xrename(tls, bp+24, bp+1049) {
 12800  					// Is this good enough?  Perhaps we should retry.  TEST
 12801  					return LOCK_ERROR
 12802  				} else {
 12803  					return LOCK_SUCCESS
 12804  				}
 12805  			} else {
 12806  				if libc.Xlink(tls, bp+24, bp+1049) != -1 {
 12807  					return LOCK_SUCCESS
 12808  				}
 12809  				if *(*int32)(unsafe.Pointer(libc.X__error(tls))) == ENOENT {
 12810  					creat_fd = -1 // force re-creat next time around
 12811  					continue
 12812  				}
 12813  				if *(*int32)(unsafe.Pointer(libc.X__error(tls))) != EEXIST {
 12814  					return LOCK_ERROR
 12815  				}
 12816  			}
 12817  		}
 12818  		libc.Xsleep(tls, uint32(timeout))
 12819  		retries--
 12820  	}
 12821  	return LOCK_TIMEOUT
 12822  }
 12823  
 12824  // getsubopt(3) external variable
 12825  // valloc is now declared in _malloc.h
 12826  
 12827  // Poison the following routines if -fshort-wchar is set
 12828  
 12829  func read_short(tls *libc.TLS, shortp uintptr, file uintptr) int32 { /* AuRead.c:34:1: */
 12830  	bp := tls.Alloc(2)
 12831  	defer tls.Free(2)
 12832  
 12833  	// var file_short [2]uint8 at bp, 2
 12834  
 12835  	if libc.Xfread(tls, bp, uint64(unsafe.Sizeof([2]uint8{})), uint64(1), file) != uint64(1) {
 12836  		return 0
 12837  	}
 12838  	*(*uint16)(unsafe.Pointer(shortp)) = uint16(int32(*(*uint8)(unsafe.Pointer(bp)))*256 + int32(*(*uint8)(unsafe.Pointer(bp + 1))))
 12839  	return 1
 12840  }
 12841  
 12842  func read_counted_string(tls *libc.TLS, countp uintptr, stringp uintptr, file uintptr) int32 { /* AuRead.c:45:1: */
 12843  	bp := tls.Alloc(2)
 12844  	defer tls.Free(2)
 12845  
 12846  	// var len uint16 at bp, 2
 12847  
 12848  	var data uintptr
 12849  
 12850  	if read_short(tls, bp, file) == 0 {
 12851  		return 0
 12852  	}
 12853  	if int32(*(*uint16)(unsafe.Pointer(bp))) == 0 {
 12854  		data = uintptr(0)
 12855  	} else {
 12856  		data = libc.Xmalloc(tls, uint64(uint32(*(*uint16)(unsafe.Pointer(bp /* len */)))))
 12857  		if !(data != 0) {
 12858  			return 0
 12859  		}
 12860  		if libc.Xfread(tls, data, uint64(unsafe.Sizeof(int8(0))), uint64(*(*uint16)(unsafe.Pointer(bp))), file) != Size_t(*(*uint16)(unsafe.Pointer(bp))) {
 12861  			libc.X__builtin___memset_chk(tls, data, 0, uint64(*(*uint16)(unsafe.Pointer(bp /* len */))), libc.X__builtin_object_size(tls, data, 0))
 12862  			libc.Xfree(tls, data)
 12863  			return 0
 12864  		}
 12865  	}
 12866  	*(*uintptr)(unsafe.Pointer(stringp)) = data
 12867  	*(*uint16)(unsafe.Pointer(countp)) = *(*uint16)(unsafe.Pointer(bp /* len */))
 12868  	return 1
 12869  }
 12870  
 12871  func XXauReadAuth(tls *libc.TLS, auth_file uintptr) uintptr { /* AuRead.c:69:7: */
 12872  	bp := tls.Alloc(64)
 12873  	defer tls.Free(64)
 12874  
 12875  	// var local Xauth at bp, 64
 12876  
 12877  	var ret uintptr
 12878  
 12879  	if read_short(tls, bp, auth_file) == 0 {
 12880  		return uintptr(0)
 12881  	}
 12882  	if read_counted_string(tls, bp+2, bp+8, auth_file) == 0 {
 12883  		return uintptr(0)
 12884  	}
 12885  	if read_counted_string(tls, bp+16, bp+24, auth_file) == 0 {
 12886  		libc.Xfree(tls, (*Xauth)(unsafe.Pointer(bp /* &local */)).Faddress)
 12887  		return uintptr(0)
 12888  	}
 12889  	if read_counted_string(tls, bp+32, bp+40, auth_file) == 0 {
 12890  		libc.Xfree(tls, (*Xauth)(unsafe.Pointer(bp /* &local */)).Faddress)
 12891  		libc.Xfree(tls, (*Xauth)(unsafe.Pointer(bp /* &local */)).Fnumber)
 12892  		return uintptr(0)
 12893  	}
 12894  	if read_counted_string(tls, bp+48, bp+56, auth_file) == 0 {
 12895  		libc.Xfree(tls, (*Xauth)(unsafe.Pointer(bp /* &local */)).Faddress)
 12896  		libc.Xfree(tls, (*Xauth)(unsafe.Pointer(bp /* &local */)).Fnumber)
 12897  		libc.Xfree(tls, (*Xauth)(unsafe.Pointer(bp /* &local */)).Fname)
 12898  		return uintptr(0)
 12899  	}
 12900  	ret = libc.Xmalloc(tls, uint64(unsafe.Sizeof(Xauth{})))
 12901  	if !(ret != 0) {
 12902  		libc.Xfree(tls, (*Xauth)(unsafe.Pointer(bp /* &local */)).Faddress)
 12903  		libc.Xfree(tls, (*Xauth)(unsafe.Pointer(bp /* &local */)).Fnumber)
 12904  		libc.Xfree(tls, (*Xauth)(unsafe.Pointer(bp /* &local */)).Fname)
 12905  		if (*Xauth)(unsafe.Pointer(bp)).Fdata != 0 {
 12906  			libc.X__builtin___memset_chk(tls, (*Xauth)(unsafe.Pointer(bp /* &local */)).Fdata, 0, uint64((*Xauth)(unsafe.Pointer(bp /* &local */)).Fdata_length), libc.X__builtin_object_size(tls, (*Xauth)(unsafe.Pointer(bp /* &local */)).Fdata, 0))
 12907  			libc.Xfree(tls, (*Xauth)(unsafe.Pointer(bp /* &local */)).Fdata)
 12908  		}
 12909  		return uintptr(0)
 12910  	}
 12911  	*(*Xauth)(unsafe.Pointer(ret)) = *(*Xauth)(unsafe.Pointer(bp /* local */))
 12912  	return ret
 12913  }
 12914  
 12915  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
 12916  //
 12917  // @APPLE_LICENSE_HEADER_START@
 12918  //
 12919  // This file contains Original Code and/or Modifications of Original Code
 12920  // as defined in and that are subject to the Apple Public Source License
 12921  // Version 2.0 (the 'License'). You may not use this file except in
 12922  // compliance with the License. Please obtain a copy of the License at
 12923  // http://www.opensource.apple.com/apsl/ and read it before using this
 12924  // file.
 12925  //
 12926  // The Original Code and all software distributed under the License are
 12927  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12928  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12929  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12930  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12931  // Please see the License for the specific language governing rights and
 12932  // limitations under the License.
 12933  //
 12934  // @APPLE_LICENSE_HEADER_END@
 12935  // Copyright (c) 1989, 1993
 12936  //	The Regents of the University of California.  All rights reserved.
 12937  // (c) UNIX System Laboratories, Inc.
 12938  // All or some portions of this file are derived from material licensed
 12939  // to the University of California by American Telephone and Telegraph
 12940  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
 12941  // the permission of UNIX System Laboratories, Inc.
 12942  //
 12943  // Redistribution and use in source and binary forms, with or without
 12944  // modification, are permitted provided that the following conditions
 12945  // are met:
 12946  // 1. Redistributions of source code must retain the above copyright
 12947  //    notice, this list of conditions and the following disclaimer.
 12948  // 2. Redistributions in binary form must reproduce the above copyright
 12949  //    notice, this list of conditions and the following disclaimer in the
 12950  //    documentation and/or other materials provided with the distribution.
 12951  // 3. All advertising materials mentioning features or use of this software
 12952  //    must display the following acknowledgement:
 12953  //	This product includes software developed by the University of
 12954  //	California, Berkeley and its contributors.
 12955  // 4. Neither the name of the University nor the names of its contributors
 12956  //    may be used to endorse or promote products derived from this software
 12957  //    without specific prior written permission.
 12958  //
 12959  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 12960  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 12961  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 12962  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 12963  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 12964  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 12965  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 12966  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 12967  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 12968  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 12969  // SUCH DAMAGE.
 12970  //
 12971  //	@(#)time.h	8.3 (Berkeley) 1/21/94
 12972  
 12973  // define X_GETTIMEOFDAY macro, a portable gettimeofday()
 12974  
 12975  // use POSIX name for signal
 12976  
 12977  // Copyright 1997 Metro Link Incorporated
 12978  //
 12979  //                           All Rights Reserved
 12980  //
 12981  // Permission to use, copy, modify, distribute, and sell this software and its
 12982  // documentation for any purpose is hereby granted without fee, provided that
 12983  // the above copyright notice appear in all copies and that both that
 12984  // copyright notice and this permission notice appear in supporting
 12985  // documentation, and that the names of the above listed copyright holder(s)
 12986  // not be used in advertising or publicity pertaining to distribution of
 12987  // the software without specific, written prior permission.  The above listed
 12988  // copyright holder(s) make(s) no representations about the suitability of
 12989  // this software for any purpose.  It is provided "as is" without express or
 12990  // implied warranty.
 12991  //
 12992  // THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM(S) ALL WARRANTIES WITH REGARD
 12993  // TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 12994  // AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
 12995  // LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
 12996  // DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
 12997  // IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
 12998  // OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 12999  
 13000  // Determine the machine's byte order.
 13001  
 13002  // See if it is set in the imake config first
 13003  
 13004  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 13005  //
 13006  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13007  //
 13008  // This file contains Original Code and/or Modifications of Original Code
 13009  // as defined in and that are subject to the Apple Public Source License
 13010  // Version 2.0 (the 'License'). You may not use this file except in
 13011  // compliance with the License. The rights granted to you under the License
 13012  // may not be used to create, or enable the creation or redistribution of,
 13013  // unlawful or unlicensed copies of an Apple operating system, or to
 13014  // circumvent, violate, or enable the circumvention or violation of, any
 13015  // terms of an Apple operating system software license agreement.
 13016  //
 13017  // Please obtain a copy of the License at
 13018  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13019  //
 13020  // The Original Code and all software distributed under the License are
 13021  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13022  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13023  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13024  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13025  // Please see the License for the specific language governing rights and
 13026  // limitations under the License.
 13027  //
 13028  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13029  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 13030  
 13031  func XXauUnlockAuth(tls *libc.TLS, file_name uintptr) int32 { /* AuUnlock.c:34:1: */
 13032  	bp := tls.Alloc(2066)
 13033  	defer tls.Free(2066)
 13034  
 13035  	// var creat_name [1025]int8 at bp+16, 1025
 13036  
 13037  	// var link_name [1025]int8 at bp+1041, 1025
 13038  
 13039  	if libc.Xstrlen(tls, file_name) > uint64(1022) {
 13040  		return 0
 13041  	}
 13042  	libc.X__builtin___snprintf_chk(tls, bp+16, uint64(unsafe.Sizeof([1025]int8{})), 0, libc.X__builtin_object_size(tls, bp+16, func() int32 {
 13043  		if X_USE_FORTIFY_LEVEL > 1 {
 13044  			return 1
 13045  		}
 13046  		return 0
 13047  	}()), ts+71 /* "%s-c" */, libc.VaList(bp, file_name))
 13048  	libc.X__builtin___snprintf_chk(tls, bp+1041, uint64(unsafe.Sizeof([1025]int8{})), 0, libc.X__builtin_object_size(tls, bp+1041, func() int32 {
 13049  		if X_USE_FORTIFY_LEVEL > 1 {
 13050  			return 1
 13051  		}
 13052  		return 0
 13053  	}()), ts+76 /* "%s-l" */, libc.VaList(bp+8, file_name))
 13054  	// I think this is the correct order
 13055  	libc.Xremove(tls, bp+16)
 13056  	libc.Xremove(tls, bp+1041)
 13057  
 13058  	return 1
 13059  }
 13060  
 13061  // Return values from XauLockAuth
 13062  
 13063  func write_short(tls *libc.TLS, s uint16, file uintptr) int32 { /* AuWrite.c:33:1: */
 13064  	bp := tls.Alloc(2)
 13065  	defer tls.Free(2)
 13066  
 13067  	// var file_short [2]uint8 at bp, 2
 13068  
 13069  	*(*uint8)(unsafe.Pointer(bp)) = uint8(uint32(s) & uint32(0xff00) >> 8)
 13070  	*(*uint8)(unsafe.Pointer(bp + 1)) = uint8(int32(s) & 0xff)
 13071  	if libc.Xfwrite(tls, bp, uint64(unsafe.Sizeof([2]uint8{})), uint64(1), file) != uint64(1) {
 13072  		return 0
 13073  	}
 13074  	return 1
 13075  }
 13076  
 13077  func write_counted_string(tls *libc.TLS, count uint16, string uintptr, file uintptr) int32 { /* AuWrite.c:45:1: */
 13078  	if write_short(tls, count, file) == 0 {
 13079  		return 0
 13080  	}
 13081  	if libc.Xfwrite(tls, string, uint64(unsafe.Sizeof(int8(0))), uint64(count), file) != Size_t(count) {
 13082  		return 0
 13083  	}
 13084  	return 1
 13085  }
 13086  
 13087  func XXauWriteAuth(tls *libc.TLS, auth_file uintptr, auth uintptr) int32 { /* AuWrite.c:55:1: */
 13088  	if write_short(tls, (*Xauth)(unsafe.Pointer(auth)).Ffamily, auth_file) == 0 {
 13089  		return 0
 13090  	}
 13091  	if write_counted_string(tls, (*Xauth)(unsafe.Pointer(auth)).Faddress_length, (*Xauth)(unsafe.Pointer(auth)).Faddress, auth_file) == 0 {
 13092  		return 0
 13093  	}
 13094  	if write_counted_string(tls, (*Xauth)(unsafe.Pointer(auth)).Fnumber_length, (*Xauth)(unsafe.Pointer(auth)).Fnumber, auth_file) == 0 {
 13095  		return 0
 13096  	}
 13097  	if write_counted_string(tls, (*Xauth)(unsafe.Pointer(auth)).Fname_length, (*Xauth)(unsafe.Pointer(auth)).Fname, auth_file) == 0 {
 13098  		return 0
 13099  	}
 13100  	if write_counted_string(tls, (*Xauth)(unsafe.Pointer(auth)).Fdata_length, (*Xauth)(unsafe.Pointer(auth)).Fdata, auth_file) == 0 {
 13101  		return 0
 13102  	}
 13103  	return 1
 13104  }
 13105  
 13106  var ts1 = "/.Xauthority\x00XAUTHORITY\x00HOME\x00AuFileName.c\x00size > 0\x00%s%s\x00XauFileName\x00rb\x00%s-c\x00%s-l\x00"
 13107  var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data