modernc.org/xdmcp@v1.0.17/lib/xdmcp_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/xdmcp_darwin_arm64.go -pkgname xdmcp -trace-translation-units /var/folders/4f/mc8mts295pqf7gmnfcwh6g8w0000gn/T/go-generate-3897809385/cdb.json .libs/libXdmcp.a', DO NOT EDIT.
     2  
     3  package xdmcp
     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  	ACCESSX_MAX_DESCRIPTORS                   = 100
    24  	ACCESSX_MAX_TABLESIZE                     = 16384
    25  	AT_EACCESS                                = 0x0010
    26  	AT_FDCWD                                  = -2
    27  	AT_FDONLY                                 = 0x0400
    28  	AT_REALDEV                                = 0x0200
    29  	AT_REMOVEDIR                              = 0x0080
    30  	AT_SYMLINK_FOLLOW                         = 0x0040
    31  	AT_SYMLINK_NOFOLLOW                       = 0x0020
    32  	Above                                     = 0
    33  	AllTemporary                              = 0
    34  	AllocAll                                  = 1
    35  	AllocNone                                 = 0
    36  	AllowExposures                            = 1
    37  	AlreadyGrabbed                            = 1
    38  	Always                                    = 2
    39  	AnyButton                                 = 0
    40  	AnyKey                                    = 0
    41  	AnyModifier                               = 32768
    42  	AnyPropertyType                           = 0
    43  	ArcChord                                  = 0
    44  	ArcPieSlice                               = 1
    45  	AsyncBoth                                 = 6
    46  	AsyncKeyboard                             = 3
    47  	AsyncPointer                              = 0
    48  	AutoRepeatModeDefault                     = 2
    49  	AutoRepeatModeOff                         = 0
    50  	AutoRepeatModeOn                          = 1
    51  	B16                                       = 0
    52  	B32                                       = 0
    53  	BIG_ENDIAN                                = 4321
    54  	BUS_ADRALN                                = 1
    55  	BUS_ADRERR                                = 2
    56  	BUS_NOOP                                  = 0
    57  	BUS_OBJERR                                = 3
    58  	BYTE_ORDER                                = 1234
    59  	BadAccess                                 = 10
    60  	BadAlloc                                  = 11
    61  	BadAtom                                   = 5
    62  	BadColor                                  = 12
    63  	BadCursor                                 = 6
    64  	BadDrawable                               = 9
    65  	BadFont                                   = 7
    66  	BadGC                                     = 13
    67  	BadIDChoice                               = 14
    68  	BadImplementation                         = 17
    69  	BadLength                                 = 16
    70  	BadMatch                                  = 8
    71  	BadName                                   = 15
    72  	BadPixmap                                 = 4
    73  	BadRequest                                = 1
    74  	BadValue                                  = 2
    75  	BadWindow                                 = 3
    76  	Below                                     = 1
    77  	BottomIf                                  = 3
    78  	Button1                                   = 1
    79  	Button1Mask                               = 256
    80  	Button1MotionMask                         = 256
    81  	Button2                                   = 2
    82  	Button2Mask                               = 512
    83  	Button2MotionMask                         = 512
    84  	Button3                                   = 3
    85  	Button3Mask                               = 1024
    86  	Button3MotionMask                         = 1024
    87  	Button4                                   = 4
    88  	Button4Mask                               = 2048
    89  	Button4MotionMask                         = 2048
    90  	Button5                                   = 5
    91  	Button5Mask                               = 4096
    92  	Button5MotionMask                         = 4096
    93  	ButtonMotionMask                          = 8192
    94  	ButtonPress                               = 4
    95  	ButtonPressMask                           = 4
    96  	ButtonRelease                             = 5
    97  	ButtonReleaseMask                         = 8
    98  	CLD_CONTINUED                             = 6
    99  	CLD_DUMPED                                = 3
   100  	CLD_EXITED                                = 1
   101  	CLD_KILLED                                = 2
   102  	CLD_NOOP                                  = 0
   103  	CLD_STOPPED                               = 5
   104  	CLD_TRAPPED                               = 4
   105  	CLOCKS_PER_SEC                            = 1000000
   106  	CPF_IGNORE_MODE                           = 0x0002
   107  	CPF_MASK                                  = 3
   108  	CPF_OVERWRITE                             = 0x0001
   109  	CPUMON_MAKE_FATAL                         = 0x1000
   110  	CSRG_BASED                                = 0
   111  	CWBackPixel                               = 2
   112  	CWBackPixmap                              = 1
   113  	CWBackingPixel                            = 256
   114  	CWBackingPlanes                           = 128
   115  	CWBackingStore                            = 64
   116  	CWBitGravity                              = 16
   117  	CWBorderPixel                             = 8
   118  	CWBorderPixmap                            = 4
   119  	CWBorderWidth                             = 16
   120  	CWColormap                                = 8192
   121  	CWCursor                                  = 16384
   122  	CWDontPropagate                           = 4096
   123  	CWEventMask                               = 2048
   124  	CWHeight                                  = 8
   125  	CWOverrideRedirect                        = 512
   126  	CWSaveUnder                               = 1024
   127  	CWSibling                                 = 32
   128  	CWStackMode                               = 64
   129  	CWWidth                                   = 4
   130  	CWWinGravity                              = 32
   131  	CWX                                       = 1
   132  	CWY                                       = 2
   133  	CapButt                                   = 1
   134  	CapNotLast                                = 0
   135  	CapProjecting                             = 3
   136  	CapRound                                  = 2
   137  	CenterGravity                             = 5
   138  	CirculateNotify                           = 26
   139  	CirculateRequest                          = 27
   140  	ClientMessage                             = 33
   141  	ClipByChildren                            = 0
   142  	ColormapChangeMask                        = 8388608
   143  	ColormapInstalled                         = 1
   144  	ColormapNotify                            = 32
   145  	ColormapUninstalled                       = 0
   146  	Complex                                   = 0
   147  	ConfigureNotify                           = 22
   148  	ConfigureRequest                          = 23
   149  	ControlMapIndex                           = 2
   150  	ControlMask                               = 4
   151  	Convex                                    = 2
   152  	CoordModeOrigin                           = 0
   153  	CoordModePrevious                         = 1
   154  	CopyFromParent                            = 0
   155  	CreateNotify                              = 16
   156  	CurrentTime                               = 0
   157  	CursorShape                               = 0
   158  	DST_AUST                                  = 2
   159  	DST_CAN                                   = 6
   160  	DST_EET                                   = 5
   161  	DST_MET                                   = 4
   162  	DST_NONE                                  = 0
   163  	DST_USA                                   = 1
   164  	DST_WET                                   = 3
   165  	DefaultBlanking                           = 2
   166  	DefaultExposures                          = 2
   167  	DestroyAll                                = 0
   168  	DestroyNotify                             = 17
   169  	DirectColor                               = 5
   170  	DisableAccess                             = 0
   171  	DisableScreenInterval                     = 0
   172  	DisableScreenSaver                        = 0
   173  	DoBlue                                    = 4
   174  	DoGreen                                   = 2
   175  	DoRed                                     = 1
   176  	DontAllowExposures                        = 0
   177  	DontPreferBlanking                        = 0
   178  	EXIT_FAILURE                              = 1
   179  	EXIT_SUCCESS                              = 0
   180  	EastGravity                               = 6
   181  	EnableAccess                              = 1
   182  	EnterNotify                               = 7
   183  	EnterWindowMask                           = 16
   184  	EvenOddRule                               = 0
   185  	Expose                                    = 12
   186  	ExposureMask                              = 32768
   187  	FALSE                                     = 0
   188  	FAPPEND                                   = 8
   189  	FASYNC                                    = 64
   190  	FCNTL_FS_SPECIFIC_BASE                    = 0x00010000
   191  	FD_CLOEXEC                                = 1
   192  	FD_SETSIZE                                = 1024
   193  	FFDSYNC                                   = 4194304
   194  	FFSYNC                                    = 128
   195  	FNDELAY                                   = 4
   196  	FNONBLOCK                                 = 4
   197  	FOOTPRINT_INTERVAL_RESET                  = 0x1
   198  	FPE_FLTDIV                                = 1
   199  	FPE_FLTINV                                = 5
   200  	FPE_FLTOVF                                = 2
   201  	FPE_FLTRES                                = 4
   202  	FPE_FLTSUB                                = 6
   203  	FPE_FLTUND                                = 3
   204  	FPE_INTDIV                                = 7
   205  	FPE_INTOVF                                = 8
   206  	FPE_NOOP                                  = 0
   207  	FREAD                                     = 0x00000001
   208  	FUNCPROTO                                 = 15
   209  	FWRITE                                    = 0x00000002
   210  	F_ADDFILESIGS                             = 61
   211  	F_ADDFILESIGS_FOR_DYLD_SIM                = 83
   212  	F_ADDFILESIGS_INFO                        = 103
   213  	F_ADDFILESIGS_RETURN                      = 97
   214  	F_ADDFILESUPPL                            = 104
   215  	F_ADDSIGS                                 = 59
   216  	F_ALLOCATEALL                             = 0x00000004
   217  	F_ALLOCATECONTIG                          = 0x00000002
   218  	F_BARRIERFSYNC                            = 85
   219  	F_CHECK_LV                                = 98
   220  	F_CHKCLEAN                                = 41
   221  	F_DUPFD                                   = 0
   222  	F_DUPFD_CLOEXEC                           = 67
   223  	F_FINDSIGS                                = 78
   224  	F_FLUSH_DATA                              = 40
   225  	F_FREEZE_FS                               = 53
   226  	F_FULLFSYNC                               = 51
   227  	F_GETCODEDIR                              = 72
   228  	F_GETFD                                   = 1
   229  	F_GETFL                                   = 3
   230  	F_GETLK                                   = 7
   231  	F_GETLKPID                                = 66
   232  	F_GETNOSIGPIPE                            = 74
   233  	F_GETOWN                                  = 5
   234  	F_GETPATH                                 = 50
   235  	F_GETPATH_MTMINFO                         = 71
   236  	F_GETPATH_NOFIRMLINK                      = 102
   237  	F_GETPROTECTIONCLASS                      = 63
   238  	F_GETPROTECTIONLEVEL                      = 77
   239  	F_GETSIGSINFO                             = 105
   240  	F_GLOBAL_NOCACHE                          = 55
   241  	F_LOCK                                    = 1
   242  	F_LOG2PHYS                                = 49
   243  	F_LOG2PHYS_EXT                            = 65
   244  	F_NOCACHE                                 = 48
   245  	F_NODIRECT                                = 62
   246  	F_OK                                      = 0
   247  	F_PATHPKG_CHECK                           = 52
   248  	F_PEOFPOSMODE                             = 3
   249  	F_PREALLOCATE                             = 42
   250  	F_PUNCHHOLE                               = 99
   251  	F_RDADVISE                                = 44
   252  	F_RDAHEAD                                 = 45
   253  	F_RDLCK                                   = 1
   254  	F_SETBACKINGSTORE                         = 70
   255  	F_SETFD                                   = 2
   256  	F_SETFL                                   = 4
   257  	F_SETLK                                   = 8
   258  	F_SETLKW                                  = 9
   259  	F_SETLKWTIMEOUT                           = 10
   260  	F_SETNOSIGPIPE                            = 73
   261  	F_SETOWN                                  = 6
   262  	F_SETPROTECTIONCLASS                      = 64
   263  	F_SETSIZE                                 = 43
   264  	F_SINGLE_WRITER                           = 76
   265  	F_SPECULATIVE_READ                        = 101
   266  	F_TEST                                    = 3
   267  	F_THAW_FS                                 = 54
   268  	F_TLOCK                                   = 2
   269  	F_TRANSCODEKEY                            = 75
   270  	F_TRIM_ACTIVE_FILE                        = 100
   271  	F_ULOCK                                   = 0
   272  	F_UNLCK                                   = 2
   273  	F_VOLPOSMODE                              = 4
   274  	F_WRLCK                                   = 3
   275  	FamilyChaos                               = 2
   276  	FamilyDECnet                              = 1
   277  	FamilyInternet                            = 0
   278  	FamilyInternet6                           = 6
   279  	FamilyServerInterpreted                   = 5
   280  	FillOpaqueStippled                        = 3
   281  	FillSolid                                 = 0
   282  	FillStippled                              = 2
   283  	FillTiled                                 = 1
   284  	FirstExtensionError                       = 128
   285  	FocusChangeMask                           = 2097152
   286  	FocusIn                                   = 9
   287  	FocusOut                                  = 10
   288  	FontChange                                = 255
   289  	FontLeftToRight                           = 0
   290  	FontRightToLeft                           = 1
   291  	ForgetGravity                             = 0
   292  	GCArcMode                                 = 4194304
   293  	GCBackground                              = 8
   294  	GCCapStyle                                = 64
   295  	GCClipMask                                = 524288
   296  	GCClipXOrigin                             = 131072
   297  	GCClipYOrigin                             = 262144
   298  	GCDashList                                = 2097152
   299  	GCDashOffset                              = 1048576
   300  	GCFillRule                                = 512
   301  	GCFillStyle                               = 256
   302  	GCFont                                    = 16384
   303  	GCForeground                              = 4
   304  	GCFunction                                = 1
   305  	GCGraphicsExposures                       = 65536
   306  	GCJoinStyle                               = 128
   307  	GCLastBit                                 = 22
   308  	GCLineStyle                               = 32
   309  	GCLineWidth                               = 16
   310  	GCPlaneMask                               = 2
   311  	GCStipple                                 = 2048
   312  	GCSubwindowMode                           = 32768
   313  	GCTile                                    = 1024
   314  	GCTileStipXOrigin                         = 4096
   315  	GCTileStipYOrigin                         = 8192
   316  	GETSIGSINFO_PLATFORM_BINARY               = 1
   317  	GXand                                     = 0x1
   318  	GXandInverted                             = 0x4
   319  	GXandReverse                              = 0x2
   320  	GXclear                                   = 0x0
   321  	GXcopy                                    = 0x3
   322  	GXcopyInverted                            = 0xc
   323  	GXequiv                                   = 0x9
   324  	GXinvert                                  = 0xa
   325  	GXnand                                    = 0xe
   326  	GXnoop                                    = 0x5
   327  	GXnor                                     = 0x8
   328  	GXor                                      = 0x7
   329  	GXorInverted                              = 0xd
   330  	GXorReverse                               = 0xb
   331  	GXset                                     = 0xf
   332  	GXxor                                     = 0x6
   333  	GenericEvent                              = 35
   334  	GrabFrozen                                = 4
   335  	GrabInvalidTime                           = 2
   336  	GrabModeAsync                             = 1
   337  	GrabModeSync                              = 0
   338  	GrabNotViewable                           = 3
   339  	GrabSuccess                               = 0
   340  	GraphicsExpose                            = 13
   341  	GravityNotify                             = 24
   342  	GrayScale                                 = 1
   343  	HASXDMAUTH                                = 1
   344  	HAVE_ARC4RANDOM_BUF                       = 1
   345  	HAVE_CONFIG_H                             = 1
   346  	HAVE_DLFCN_H                              = 1
   347  	HAVE_INTTYPES_H                           = 1
   348  	HAVE_LRAND48                              = 1
   349  	HAVE_MEMORY_H                             = 1
   350  	HAVE_SRAND48                              = 1
   351  	HAVE_STDINT_H                             = 1
   352  	HAVE_STDLIB_H                             = 1
   353  	HAVE_STRINGS_H                            = 1
   354  	HAVE_STRING_H                             = 1
   355  	HAVE_SYS_STAT_H                           = 1
   356  	HAVE_SYS_TYPES_H                          = 1
   357  	HAVE_UNISTD_H                             = 1
   358  	HostDelete                                = 1
   359  	HostInsert                                = 0
   360  	ILL_BADSTK                                = 8
   361  	ILL_COPROC                                = 7
   362  	ILL_ILLADR                                = 5
   363  	ILL_ILLOPC                                = 1
   364  	ILL_ILLOPN                                = 4
   365  	ILL_ILLTRP                                = 2
   366  	ILL_NOOP                                  = 0
   367  	ILL_PRVOPC                                = 3
   368  	ILL_PRVREG                                = 6
   369  	INT16_MAX                                 = 32767
   370  	INT16_MIN                                 = -32768
   371  	INT32_MAX                                 = 2147483647
   372  	INT32_MIN                                 = -2147483648
   373  	INT64_MAX                                 = 9223372036854775807
   374  	INT64_MIN                                 = -9223372036854775808
   375  	INT8_MAX                                  = 127
   376  	INT8_MIN                                  = -128
   377  	INTMAX_MAX                                = 9223372036854775807
   378  	INTMAX_MIN                                = -9223372036854775808
   379  	INTPTR_MAX                                = 9223372036854775807
   380  	INTPTR_MIN                                = -9223372036854775808
   381  	INT_FAST16_MAX                            = 32767
   382  	INT_FAST16_MIN                            = -32768
   383  	INT_FAST32_MAX                            = 2147483647
   384  	INT_FAST32_MIN                            = -2147483648
   385  	INT_FAST64_MAX                            = 9223372036854775807
   386  	INT_FAST64_MIN                            = -9223372036854775808
   387  	INT_FAST8_MAX                             = 127
   388  	INT_FAST8_MIN                             = -128
   389  	INT_LEAST16_MAX                           = 32767
   390  	INT_LEAST16_MIN                           = -32768
   391  	INT_LEAST32_MAX                           = 2147483647
   392  	INT_LEAST32_MIN                           = -2147483648
   393  	INT_LEAST64_MAX                           = 9223372036854775807
   394  	INT_LEAST64_MIN                           = -9223372036854775808
   395  	INT_LEAST8_MAX                            = 127
   396  	INT_LEAST8_MIN                            = -128
   397  	IOPOL_APPLICATION                         = 5
   398  	IOPOL_ATIME_UPDATES_DEFAULT               = 0
   399  	IOPOL_ATIME_UPDATES_OFF                   = 1
   400  	IOPOL_DEFAULT                             = 0
   401  	IOPOL_IMPORTANT                           = 1
   402  	IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT  = 0
   403  	IOPOL_MATERIALIZE_DATALESS_FILES_OFF      = 1
   404  	IOPOL_MATERIALIZE_DATALESS_FILES_ON       = 2
   405  	IOPOL_NORMAL                              = 1
   406  	IOPOL_PASSIVE                             = 2
   407  	IOPOL_SCOPE_DARWIN_BG                     = 2
   408  	IOPOL_SCOPE_PROCESS                       = 0
   409  	IOPOL_SCOPE_THREAD                        = 1
   410  	IOPOL_STANDARD                            = 5
   411  	IOPOL_THROTTLE                            = 3
   412  	IOPOL_TYPE_DISK                           = 0
   413  	IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES     = 9
   414  	IOPOL_TYPE_VFS_ATIME_UPDATES              = 2
   415  	IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION  = 6
   416  	IOPOL_TYPE_VFS_IGNORE_PERMISSIONS         = 7
   417  	IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES = 3
   418  	IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE          = 8
   419  	IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME      = 4
   420  	IOPOL_TYPE_VFS_TRIGGER_RESOLVE            = 5
   421  	IOPOL_UTILITY                             = 4
   422  	IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF      = 0
   423  	IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON       = 1
   424  	IOPOL_VFS_CONTENT_PROTECTION_DEFAULT      = 0
   425  	IOPOL_VFS_CONTENT_PROTECTION_IGNORE       = 1
   426  	IOPOL_VFS_IGNORE_PERMISSIONS_OFF          = 0
   427  	IOPOL_VFS_IGNORE_PERMISSIONS_ON           = 1
   428  	IOPOL_VFS_SKIP_MTIME_UPDATE_OFF           = 0
   429  	IOPOL_VFS_SKIP_MTIME_UPDATE_ON            = 1
   430  	IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME     = 1
   431  	IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT   = 0
   432  	IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT         = 0
   433  	IOPOL_VFS_TRIGGER_RESOLVE_OFF             = 1
   434  	ITIMER_PROF                               = 2
   435  	ITIMER_REAL                               = 0
   436  	ITIMER_VIRTUAL                            = 1
   437  	IncludeInferiors                          = 1
   438  	InputFocus                                = 1
   439  	InputOnly                                 = 2
   440  	InputOutput                               = 1
   441  	IsUnmapped                                = 0
   442  	IsUnviewable                              = 1
   443  	IsViewable                                = 2
   444  	JoinBevel                                 = 2
   445  	JoinMiter                                 = 0
   446  	JoinRound                                 = 1
   447  	KBAutoRepeatMode                          = 128
   448  	KBBellDuration                            = 8
   449  	KBBellPercent                             = 2
   450  	KBBellPitch                               = 4
   451  	KBKey                                     = 64
   452  	KBKeyClickPercent                         = 1
   453  	KBLed                                     = 16
   454  	KBLedMode                                 = 32
   455  	KeyPress                                  = 2
   456  	KeyPressMask                              = 1
   457  	KeyRelease                                = 3
   458  	KeyReleaseMask                            = 2
   459  	KeymapNotify                              = 11
   460  	KeymapStateMask                           = 16384
   461  	LASTEvent                                 = 36
   462  	LITTLE_ENDIAN                             = 1234
   463  	LOCK_EX                                   = 0x02
   464  	LOCK_NB                                   = 0x04
   465  	LOCK_SH                                   = 0x01
   466  	LOCK_UN                                   = 0x08
   467  	LONG64                                    = 0
   468  	LSBFirst                                  = 0
   469  	LT_OBJDIR                                 = ".libs/"
   470  	L_INCR                                    = 1
   471  	L_SET                                     = 0
   472  	L_XTND                                    = 2
   473  	LastExtensionError                        = 255
   474  	LeaveNotify                               = 8
   475  	LeaveWindowMask                           = 32
   476  	LedModeOff                                = 0
   477  	LedModeOn                                 = 1
   478  	LineDoubleDash                            = 2
   479  	LineOnOffDash                             = 1
   480  	LineSolid                                 = 0
   481  	LockMapIndex                              = 1
   482  	LockMask                                  = 2
   483  	LowerHighest                              = 1
   484  	MAC_OS_VERSION_11_0                       = 110000
   485  	MAC_OS_VERSION_12_0                       = 120000
   486  	MAC_OS_X_VERSION_10_0                     = 1000
   487  	MAC_OS_X_VERSION_10_1                     = 1010
   488  	MAC_OS_X_VERSION_10_10                    = 101000
   489  	MAC_OS_X_VERSION_10_10_2                  = 101002
   490  	MAC_OS_X_VERSION_10_10_3                  = 101003
   491  	MAC_OS_X_VERSION_10_11                    = 101100
   492  	MAC_OS_X_VERSION_10_11_2                  = 101102
   493  	MAC_OS_X_VERSION_10_11_3                  = 101103
   494  	MAC_OS_X_VERSION_10_11_4                  = 101104
   495  	MAC_OS_X_VERSION_10_12                    = 101200
   496  	MAC_OS_X_VERSION_10_12_1                  = 101201
   497  	MAC_OS_X_VERSION_10_12_2                  = 101202
   498  	MAC_OS_X_VERSION_10_12_4                  = 101204
   499  	MAC_OS_X_VERSION_10_13                    = 101300
   500  	MAC_OS_X_VERSION_10_13_1                  = 101301
   501  	MAC_OS_X_VERSION_10_13_2                  = 101302
   502  	MAC_OS_X_VERSION_10_13_4                  = 101304
   503  	MAC_OS_X_VERSION_10_14                    = 101400
   504  	MAC_OS_X_VERSION_10_14_1                  = 101401
   505  	MAC_OS_X_VERSION_10_14_4                  = 101404
   506  	MAC_OS_X_VERSION_10_14_6                  = 101406
   507  	MAC_OS_X_VERSION_10_15                    = 101500
   508  	MAC_OS_X_VERSION_10_15_1                  = 101501
   509  	MAC_OS_X_VERSION_10_16                    = 101600
   510  	MAC_OS_X_VERSION_10_2                     = 1020
   511  	MAC_OS_X_VERSION_10_3                     = 1030
   512  	MAC_OS_X_VERSION_10_4                     = 1040
   513  	MAC_OS_X_VERSION_10_5                     = 1050
   514  	MAC_OS_X_VERSION_10_6                     = 1060
   515  	MAC_OS_X_VERSION_10_7                     = 1070
   516  	MAC_OS_X_VERSION_10_8                     = 1080
   517  	MAC_OS_X_VERSION_10_9                     = 1090
   518  	MINSIGSTKSZ                               = 32768
   519  	MSBFirst                                  = 1
   520  	MapNotify                                 = 19
   521  	MapRequest                                = 20
   522  	MappingBusy                               = 1
   523  	MappingFailed                             = 2
   524  	MappingKeyboard                           = 1
   525  	MappingModifier                           = 0
   526  	MappingNotify                             = 34
   527  	MappingPointer                            = 2
   528  	MappingSuccess                            = 0
   529  	Mod1MapIndex                              = 3
   530  	Mod1Mask                                  = 8
   531  	Mod2MapIndex                              = 4
   532  	Mod2Mask                                  = 16
   533  	Mod3MapIndex                              = 5
   534  	Mod3Mask                                  = 32
   535  	Mod4MapIndex                              = 6
   536  	Mod4Mask                                  = 64
   537  	Mod5MapIndex                              = 7
   538  	Mod5Mask                                  = 128
   539  	MotionNotify                              = 6
   540  	NBBY                                      = 8
   541  	NSIG                                      = 32
   542  	NULL_NOT_ZERO                             = 0
   543  	NeedFunctionPrototypes                    = 1
   544  	NeedNestedPrototypes                      = 1
   545  	NeedVarargsPrototypes                     = 1
   546  	NeedWidePrototypes                        = 1
   547  	NoEventMask                               = 0
   548  	NoExpose                                  = 14
   549  	NoSymbol                                  = 0
   550  	Nonconvex                                 = 1
   551  	None                                      = 0
   552  	NorthEastGravity                          = 3
   553  	NorthGravity                              = 2
   554  	NorthWestGravity                          = 1
   555  	NotUseful                                 = 0
   556  	NotifyAncestor                            = 0
   557  	NotifyDetailNone                          = 7
   558  	NotifyGrab                                = 1
   559  	NotifyHint                                = 1
   560  	NotifyInferior                            = 2
   561  	NotifyNonlinear                           = 3
   562  	NotifyNonlinearVirtual                    = 4
   563  	NotifyNormal                              = 0
   564  	NotifyPointer                             = 5
   565  	NotifyPointerRoot                         = 6
   566  	NotifyUngrab                              = 2
   567  	NotifyVirtual                             = 1
   568  	NotifyWhileGrabbed                        = 3
   569  	O_ACCMODE                                 = 0x0003
   570  	O_ALERT                                   = 0x20000000
   571  	O_APPEND                                  = 0x00000008
   572  	O_ASYNC                                   = 0x00000040
   573  	O_CLOEXEC                                 = 0x01000000
   574  	O_CREAT                                   = 0x00000200
   575  	O_DIRECTORY                               = 0x00100000
   576  	O_DP_GETRAWENCRYPTED                      = 0x0001
   577  	O_DP_GETRAWUNENCRYPTED                    = 0x0002
   578  	O_DSYNC                                   = 0x400000
   579  	O_EVTONLY                                 = 0x00008000
   580  	O_EXCL                                    = 0x00000800
   581  	O_EXLOCK                                  = 0x00000020
   582  	O_FSYNC                                   = 128
   583  	O_NDELAY                                  = 4
   584  	O_NOCTTY                                  = 0x00020000
   585  	O_NOFOLLOW                                = 0x00000100
   586  	O_NOFOLLOW_ANY                            = 0x20000000
   587  	O_NONBLOCK                                = 0x00000004
   588  	O_POPUP                                   = 0x80000000
   589  	O_RDONLY                                  = 0x0000
   590  	O_RDWR                                    = 0x0002
   591  	O_SHLOCK                                  = 0x00000010
   592  	O_SYMLINK                                 = 0x00200000
   593  	O_SYNC                                    = 0x0080
   594  	O_TRUNC                                   = 0x00000400
   595  	O_WRONLY                                  = 0x0001
   596  	Opposite                                  = 4
   597  	OwnerGrabButtonMask                       = 16777216
   598  	PACKAGE                                   = "libXdmcp"
   599  	PACKAGE_BUGREPORT                         = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
   600  	PACKAGE_NAME                              = "libXdmcp"
   601  	PACKAGE_STRING                            = "libXdmcp 1.1.2"
   602  	PACKAGE_TARNAME                           = "libXdmcp"
   603  	PACKAGE_URL                               = ""
   604  	PACKAGE_VERSION                           = "1.1.2"
   605  	PACKAGE_VERSION_MAJOR                     = 1
   606  	PACKAGE_VERSION_MINOR                     = 1
   607  	PACKAGE_VERSION_PATCHLEVEL                = 2
   608  	PDP_ENDIAN                                = 3412
   609  	POLL_ERR                                  = 4
   610  	POLL_HUP                                  = 6
   611  	POLL_IN                                   = 1
   612  	POLL_MSG                                  = 3
   613  	POLL_OUT                                  = 2
   614  	POLL_PRI                                  = 5
   615  	PRIO_DARWIN_BG                            = 0x1000
   616  	PRIO_DARWIN_NONUI                         = 0x1001
   617  	PRIO_DARWIN_PROCESS                       = 4
   618  	PRIO_DARWIN_THREAD                        = 3
   619  	PRIO_MAX                                  = 20
   620  	PRIO_MIN                                  = -20
   621  	PRIO_PGRP                                 = 1
   622  	PRIO_PROCESS                              = 0
   623  	PRIO_USER                                 = 2
   624  	PTRDIFF_MAX                               = 9223372036854775807
   625  	PTRDIFF_MIN                               = -9223372036854775808
   626  	ParentRelative                            = 1
   627  	PlaceOnBottom                             = 1
   628  	PlaceOnTop                                = 0
   629  	PointerMotionHintMask                     = 128
   630  	PointerMotionMask                         = 64
   631  	PointerRoot                               = 1
   632  	PointerWindow                             = 0
   633  	PreferBlanking                            = 1
   634  	PropModeAppend                            = 2
   635  	PropModePrepend                           = 1
   636  	PropModeReplace                           = 0
   637  	PropertyChangeMask                        = 4194304
   638  	PropertyDelete                            = 1
   639  	PropertyNewValue                          = 0
   640  	PropertyNotify                            = 28
   641  	PseudoColor                               = 3
   642  	RAND_MAX                                  = 0x7fffffff
   643  	RLIMIT_AS                                 = 5
   644  	RLIMIT_CORE                               = 4
   645  	RLIMIT_CPU                                = 0
   646  	RLIMIT_CPU_USAGE_MONITOR                  = 0x2
   647  	RLIMIT_DATA                               = 2
   648  	RLIMIT_FOOTPRINT_INTERVAL                 = 0x4
   649  	RLIMIT_FSIZE                              = 1
   650  	RLIMIT_MEMLOCK                            = 6
   651  	RLIMIT_NOFILE                             = 8
   652  	RLIMIT_NPROC                              = 7
   653  	RLIMIT_RSS                                = 5
   654  	RLIMIT_STACK                              = 3
   655  	RLIMIT_THREAD_CPULIMITS                   = 0x3
   656  	RLIMIT_WAKEUPS_MONITOR                    = 0x1
   657  	RLIM_NLIMITS                              = 9
   658  	RSIZE_MAX                                 = 9223372036854775807
   659  	RUSAGE_CHILDREN                           = -1
   660  	RUSAGE_INFO_CURRENT                       = 5
   661  	RUSAGE_INFO_V0                            = 0
   662  	RUSAGE_INFO_V1                            = 1
   663  	RUSAGE_INFO_V2                            = 2
   664  	RUSAGE_INFO_V3                            = 3
   665  	RUSAGE_INFO_V4                            = 4
   666  	RUSAGE_INFO_V5                            = 5
   667  	RUSAGE_SELF                               = 0
   668  	RU_PROC_RUNS_RESLIDE                      = 0x00000001
   669  	R_OK                                      = 4
   670  	RaiseLowest                               = 0
   671  	ReparentNotify                            = 21
   672  	ReplayKeyboard                            = 5
   673  	ReplayPointer                             = 2
   674  	ResizeRedirectMask                        = 262144
   675  	ResizeRequest                             = 25
   676  	RetainPermanent                           = 1
   677  	RetainTemporary                           = 2
   678  	RevertToParent                            = 2
   679  	SA_64REGSET                               = 0x0200
   680  	SA_NOCLDSTOP                              = 0x0008
   681  	SA_NOCLDWAIT                              = 0x0020
   682  	SA_NODEFER                                = 0x0010
   683  	SA_ONSTACK                                = 0x0001
   684  	SA_RESETHAND                              = 0x0004
   685  	SA_RESTART                                = 0x0002
   686  	SA_SIGINFO                                = 0x0040
   687  	SA_USERSPACE_MASK                         = 127
   688  	SA_USERTRAMP                              = 0x0100
   689  	SEEK_CUR                                  = 1
   690  	SEEK_DATA                                 = 4
   691  	SEEK_END                                  = 2
   692  	SEEK_HOLE                                 = 3
   693  	SEEK_SET                                  = 0
   694  	SEGV_ACCERR                               = 2
   695  	SEGV_MAPERR                               = 1
   696  	SEGV_NOOP                                 = 0
   697  	SIGABRT                                   = 6
   698  	SIGALRM                                   = 14
   699  	SIGBUS                                    = 10
   700  	SIGCHLD                                   = 20
   701  	SIGCONT                                   = 19
   702  	SIGEMT                                    = 7
   703  	SIGEV_NONE                                = 0
   704  	SIGEV_SIGNAL                              = 1
   705  	SIGEV_THREAD                              = 3
   706  	SIGFPE                                    = 8
   707  	SIGHUP                                    = 1
   708  	SIGILL                                    = 4
   709  	SIGINFO                                   = 29
   710  	SIGINT                                    = 2
   711  	SIGIO                                     = 23
   712  	SIGIOT                                    = 6
   713  	SIGKILL                                   = 9
   714  	SIGPIPE                                   = 13
   715  	SIGPROF                                   = 27
   716  	SIGQUIT                                   = 3
   717  	SIGSEGV                                   = 11
   718  	SIGSTKSZ                                  = 131072
   719  	SIGSTOP                                   = 17
   720  	SIGSYS                                    = 12
   721  	SIGTERM                                   = 15
   722  	SIGTRAP                                   = 5
   723  	SIGTSTP                                   = 18
   724  	SIGTTIN                                   = 21
   725  	SIGTTOU                                   = 22
   726  	SIGURG                                    = 16
   727  	SIGUSR1                                   = 30
   728  	SIGUSR2                                   = 31
   729  	SIGVTALRM                                 = 26
   730  	SIGWINCH                                  = 28
   731  	SIGXCPU                                   = 24
   732  	SIGXFSZ                                   = 25
   733  	SIG_ATOMIC_MAX                            = 2147483647
   734  	SIG_ATOMIC_MIN                            = -2147483648
   735  	SIG_BLOCK                                 = 1
   736  	SIG_SETMASK                               = 3
   737  	SIG_UNBLOCK                               = 2
   738  	SIZE_MAX                                  = 18446744073709551615
   739  	SI_ASYNCIO                                = 0x10004
   740  	SI_MESGQ                                  = 0x10005
   741  	SI_QUEUE                                  = 0x10002
   742  	SI_TIMER                                  = 0x10003
   743  	SI_USER                                   = 0x10001
   744  	SS_DISABLE                                = 0x0004
   745  	SS_ONSTACK                                = 0x0001
   746  	STDC_HEADERS                              = 1
   747  	STDERR_FILENO                             = 2
   748  	STDIN_FILENO                              = 0
   749  	STDOUT_FILENO                             = 1
   750  	SV_INTERRUPT                              = 2
   751  	SV_NOCLDSTOP                              = 8
   752  	SV_NODEFER                                = 16
   753  	SV_ONSTACK                                = 1
   754  	SV_RESETHAND                              = 4
   755  	SV_SIGINFO                                = 64
   756  	SYNC_VOLUME_FULLSYNC                      = 0x01
   757  	SYNC_VOLUME_WAIT                          = 0x02
   758  	S_IEXEC                                   = 64
   759  	S_IFBLK                                   = 0060000
   760  	S_IFCHR                                   = 0020000
   761  	S_IFDIR                                   = 0040000
   762  	S_IFIFO                                   = 0010000
   763  	S_IFLNK                                   = 0120000
   764  	S_IFMT                                    = 0170000
   765  	S_IFREG                                   = 0100000
   766  	S_IFSOCK                                  = 0140000
   767  	S_IFWHT                                   = 0160000
   768  	S_IREAD                                   = 256
   769  	S_IRGRP                                   = 0000040
   770  	S_IROTH                                   = 0000004
   771  	S_IRUSR                                   = 0000400
   772  	S_IRWXG                                   = 0000070
   773  	S_IRWXO                                   = 0000007
   774  	S_IRWXU                                   = 0000700
   775  	S_ISGID                                   = 0002000
   776  	S_ISTXT                                   = 512
   777  	S_ISUID                                   = 0004000
   778  	S_ISVTX                                   = 0001000
   779  	S_IWGRP                                   = 0000020
   780  	S_IWOTH                                   = 0000002
   781  	S_IWRITE                                  = 128
   782  	S_IWUSR                                   = 0000200
   783  	S_IXGRP                                   = 0000010
   784  	S_IXOTH                                   = 0000001
   785  	S_IXUSR                                   = 0000100
   786  	ScreenSaverActive                         = 1
   787  	ScreenSaverReset                          = 0
   788  	SelectionClear                            = 29
   789  	SelectionNotify                           = 31
   790  	SelectionRequest                          = 30
   791  	SetModeDelete                             = 1
   792  	SetModeInsert                             = 0
   793  	ShiftMapIndex                             = 0
   794  	ShiftMask                                 = 1
   795  	SouthEastGravity                          = 9
   796  	SouthGravity                              = 8
   797  	SouthWestGravity                          = 7
   798  	StaticColor                               = 2
   799  	StaticGravity                             = 10
   800  	StaticGray                                = 0
   801  	StippleShape                              = 2
   802  	StructureNotifyMask                       = 131072
   803  	SubstructureNotifyMask                    = 524288
   804  	SubstructureRedirectMask                  = 1048576
   805  	Success                                   = 0
   806  	SyncBoth                                  = 7
   807  	SyncKeyboard                              = 4
   808  	SyncPointer                               = 1
   809  	TIME_UTC                                  = 1
   810  	TRAP_BRKPT                                = 1
   811  	TRAP_TRACE                                = 2
   812  	TRUE                                      = 1
   813  	TileShape                                 = 1
   814  	TopIf                                     = 2
   815  	TrueColor                                 = 4
   816  	UINT16_MAX                                = 65535
   817  	UINT32_MAX                                = 4294967295
   818  	UINT64_MAX                                = 18446744073709551615
   819  	UINT8_MAX                                 = 255
   820  	UINTMAX_MAX                               = 18446744073709551615
   821  	UINTPTR_MAX                               = 18446744073709551615
   822  	UINT_FAST16_MAX                           = 65535
   823  	UINT_FAST32_MAX                           = 4294967295
   824  	UINT_FAST64_MAX                           = 18446744073709551615
   825  	UINT_FAST8_MAX                            = 255
   826  	UINT_LEAST16_MAX                          = 65535
   827  	UINT_LEAST32_MAX                          = 4294967295
   828  	UINT_LEAST64_MAX                          = 18446744073709551615
   829  	UINT_LEAST8_MAX                           = 255
   830  	USER_FSIGNATURES_CDHASH_LEN               = 20
   831  	UnmapGravity                              = 0
   832  	UnmapNotify                               = 18
   833  	Unsorted                                  = 0
   834  	VERSION                                   = "1.1.2"
   835  	VisibilityChangeMask                      = 65536
   836  	VisibilityFullyObscured                   = 2
   837  	VisibilityNotify                          = 15
   838  	VisibilityPartiallyObscured               = 1
   839  	VisibilityUnobscured                      = 0
   840  	WAIT_ANY                                  = -1
   841  	WAIT_MYPGRP                               = 0
   842  	WAKEMON_DISABLE                           = 0x02
   843  	WAKEMON_ENABLE                            = 0x01
   844  	WAKEMON_GET_PARAMS                        = 0x04
   845  	WAKEMON_MAKE_FATAL                        = 0x10
   846  	WAKEMON_SET_DEFAULTS                      = 0x08
   847  	WCHAR_MAX                                 = 2147483647
   848  	WCHAR_MIN                                 = -2147483648
   849  	WCONTINUED                                = 0x00000010
   850  	WCOREFLAG                                 = 0200
   851  	WEXITED                                   = 0x00000004
   852  	WINT_MAX                                  = 2147483647
   853  	WINT_MIN                                  = -2147483648
   854  	WNOHANG                                   = 0x00000001
   855  	WNOWAIT                                   = 0x00000020
   856  	WSTOPPED                                  = 0x00000008
   857  	WUNTRACED                                 = 0x00000002
   858  	W_OK                                      = 2
   859  	WestGravity                               = 4
   860  	WhenMapped                                = 1
   861  	WindingRule                               = 1
   862  	XDM_DEFAULT_MCAST_ADDR6                   = "ff02:0:0:0:0:0:0:12b"
   863  	XDM_DEF_DORMANCY                          = 180
   864  	XDM_KA_RTX_LIMIT                          = 4
   865  	XDM_MAX_DORMANCY                          = 86400
   866  	XDM_MAX_MSGLEN                            = 8192
   867  	XDM_MAX_RTX                               = 32
   868  	XDM_MIN_RTX                               = 2
   869  	XDM_PROTOCOL_VERSION                      = 1
   870  	XDM_RTX_LIMIT                             = 7
   871  	XDM_UDP_PORT                              = 177
   872  	XMD_H                                     = 1
   873  	XYBitmap                                  = 0
   874  	XYPixmap                                  = 1
   875  	X_BIG_ENDIAN                              = 4321
   876  	X_BYTE_ORDER                              = 1234
   877  	X_H                                       = 0
   878  	X_LITTLE_ENDIAN                           = 1234
   879  	X_OK                                      = 1
   880  	X_PROTOCOL                                = 11
   881  	X_PROTOCOL_REVISION                       = 0
   882  	YSorted                                   = 1
   883  	YXBanded                                  = 3
   884  	YXSorted                                  = 2
   885  	ZPixmap                                   = 2
   886  	X_ACCESS_EXTENDED_MASK                    = 4193792
   887  	X_ALLOCA_H_                               = 0
   888  	X_ALL_SOURCE                              = 1
   889  	X_APPEND_OK                               = 8192
   890  	X_ARM_ARCH_H                              = 0
   891  	X_ARM_MACHTYPES_H_                        = 0
   892  	X_ARM_SIGNAL_                             = 1
   893  	X_ARM__ENDIAN_H_                          = 0
   894  	X_BLKCNT_T                                = 0
   895  	X_BLKSIZE_T                               = 0
   896  	X_BSD_ARM__TYPES_H_                       = 0
   897  	X_BSD_MACHINE_ENDIAN_H_                   = 0
   898  	X_BSD_MACHINE_SIGNAL_H_                   = 0
   899  	X_BSD_MACHINE_TYPES_H_                    = 0
   900  	X_BSD_MACHINE__MCONTEXT_H_                = 0
   901  	X_BSD_MACHINE__TYPES_H_                   = 0
   902  	X_CADDR_T                                 = 0
   903  	X_CDEFS_H_                                = 0
   904  	X_CHOWN_OK                                = 2097152
   905  	X_CLOCK_T                                 = 0
   906  	X_CS_DARWIN_USER_CACHE_DIR                = 65538
   907  	X_CS_DARWIN_USER_DIR                      = 65536
   908  	X_CS_DARWIN_USER_TEMP_DIR                 = 65537
   909  	X_CS_PATH                                 = 1
   910  	X_CS_POSIX_V6_ILP32_OFF32_CFLAGS          = 2
   911  	X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS         = 3
   912  	X_CS_POSIX_V6_ILP32_OFF32_LIBS            = 4
   913  	X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS         = 5
   914  	X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS        = 6
   915  	X_CS_POSIX_V6_ILP32_OFFBIG_LIBS           = 7
   916  	X_CS_POSIX_V6_LP64_OFF64_CFLAGS           = 8
   917  	X_CS_POSIX_V6_LP64_OFF64_LDFLAGS          = 9
   918  	X_CS_POSIX_V6_LP64_OFF64_LIBS             = 10
   919  	X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS         = 11
   920  	X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS        = 12
   921  	X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS           = 13
   922  	X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS       = 14
   923  	X_CS_XBS5_ILP32_OFF32_CFLAGS              = 20
   924  	X_CS_XBS5_ILP32_OFF32_LDFLAGS             = 21
   925  	X_CS_XBS5_ILP32_OFF32_LIBS                = 22
   926  	X_CS_XBS5_ILP32_OFF32_LINTFLAGS           = 23
   927  	X_CS_XBS5_ILP32_OFFBIG_CFLAGS             = 24
   928  	X_CS_XBS5_ILP32_OFFBIG_LDFLAGS            = 25
   929  	X_CS_XBS5_ILP32_OFFBIG_LIBS               = 26
   930  	X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS          = 27
   931  	X_CS_XBS5_LP64_OFF64_CFLAGS               = 28
   932  	X_CS_XBS5_LP64_OFF64_LDFLAGS              = 29
   933  	X_CS_XBS5_LP64_OFF64_LIBS                 = 30
   934  	X_CS_XBS5_LP64_OFF64_LINTFLAGS            = 31
   935  	X_CS_XBS5_LPBIG_OFFBIG_CFLAGS             = 32
   936  	X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS            = 33
   937  	X_CS_XBS5_LPBIG_OFFBIG_LIBS               = 34
   938  	X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS          = 35
   939  	X_CTERMID_H_                              = 0
   940  	X_CT_RUNE_T                               = 0
   941  	X_DARWIN_FEATURE_64_BIT_INODE             = 1
   942  	X_DARWIN_FEATURE_ONLY_64_BIT_INODE        = 1
   943  	X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE    = 1
   944  	X_DARWIN_FEATURE_ONLY_VERS_1050           = 1
   945  	X_DARWIN_FEATURE_UNIX_CONFORMANCE         = 3
   946  	X_DELETE_OK                               = 4096
   947  	X_DEV_T                                   = 0
   948  	X_ERRNO_T                                 = 0
   949  	X_EXECUTE_OK                              = 2048
   950  	X_FD_SET                                  = 0
   951  	X_FILESEC_T                               = 0
   952  	X_FILE_OFFSET_BITS                        = 64
   953  	X_FORTIFY_SOURCE                          = 2
   954  	X_FSBLKCNT_T                              = 0
   955  	X_FSFILCNT_T                              = 0
   956  	X_GCC_WRAP_STDINT_H                       = 0
   957  	X_GID_T                                   = 0
   958  	X_GNU_SOURCE                              = 1
   959  	X_ID_T                                    = 0
   960  	X_INO64_T                                 = 0
   961  	X_INO_T                                   = 0
   962  	X_INT16_T                                 = 0
   963  	X_INT32_T                                 = 0
   964  	X_INT64_T                                 = 0
   965  	X_INT8_T                                  = 0
   966  	X_INTMAX_T                                = 0
   967  	X_INTPTR_T                                = 0
   968  	X_IN_ADDR_T                               = 0
   969  	X_IN_PORT_T                               = 0
   970  	X_KEY_T                                   = 0
   971  	X_LP64                                    = 1
   972  	X_MACHTYPES_H_                            = 0
   973  	X_MACH_ARM__STRUCTS_H_                    = 0
   974  	X_MACH_MACHINE__STRUCTS_H_                = 0
   975  	X_MALLOC_UNDERSCORE_MALLOC_H_             = 0
   976  	X_MCONTEXT_T                              = 0
   977  	X_MODE_T                                  = 0
   978  	X_NLINK_T                                 = 0
   979  	X_Nonnull                                 = 0
   980  	X_Null_unspecified                        = 0
   981  	X_Nullable                                = 0
   982  	X_OFF_T                                   = 0
   983  	X_OS_OSBYTEORDERARM_H                     = 0
   984  	X_OS__OSBYTEORDER_H                       = 0
   985  	X_PC_2_SYMLINKS                           = 15
   986  	X_PC_ALLOC_SIZE_MIN                       = 16
   987  	X_PC_ASYNC_IO                             = 17
   988  	X_PC_AUTH_OPAQUE_NP                       = 14
   989  	X_PC_CASE_PRESERVING                      = 12
   990  	X_PC_CASE_SENSITIVE                       = 11
   991  	X_PC_CHOWN_RESTRICTED                     = 7
   992  	X_PC_EXTENDED_SECURITY_NP                 = 13
   993  	X_PC_FILESIZEBITS                         = 18
   994  	X_PC_LINK_MAX                             = 1
   995  	X_PC_MAX_CANON                            = 2
   996  	X_PC_MAX_INPUT                            = 3
   997  	X_PC_MIN_HOLE_SIZE                        = 27
   998  	X_PC_NAME_CHARS_MAX                       = 10
   999  	X_PC_NAME_MAX                             = 4
  1000  	X_PC_NO_TRUNC                             = 8
  1001  	X_PC_PATH_MAX                             = 5
  1002  	X_PC_PIPE_BUF                             = 6
  1003  	X_PC_PRIO_IO                              = 19
  1004  	X_PC_REC_INCR_XFER_SIZE                   = 20
  1005  	X_PC_REC_MAX_XFER_SIZE                    = 21
  1006  	X_PC_REC_MIN_XFER_SIZE                    = 22
  1007  	X_PC_REC_XFER_ALIGN                       = 23
  1008  	X_PC_SYMLINK_MAX                          = 24
  1009  	X_PC_SYNC_IO                              = 25
  1010  	X_PC_VDISABLE                             = 9
  1011  	X_PC_XATTR_SIZE_BITS                      = 26
  1012  	X_PID_T                                   = 0
  1013  	X_POSIX2_CHAR_TERM                        = 200112
  1014  	X_POSIX2_C_BIND                           = 200112
  1015  	X_POSIX2_C_DEV                            = 200112
  1016  	X_POSIX2_FORT_DEV                         = -1
  1017  	X_POSIX2_FORT_RUN                         = 200112
  1018  	X_POSIX2_LOCALEDEF                        = 200112
  1019  	X_POSIX2_PBS                              = -1
  1020  	X_POSIX2_PBS_ACCOUNTING                   = -1
  1021  	X_POSIX2_PBS_CHECKPOINT                   = -1
  1022  	X_POSIX2_PBS_LOCATE                       = -1
  1023  	X_POSIX2_PBS_MESSAGE                      = -1
  1024  	X_POSIX2_PBS_TRACK                        = -1
  1025  	X_POSIX2_SW_DEV                           = 200112
  1026  	X_POSIX2_UPE                              = 200112
  1027  	X_POSIX2_VERSION                          = 200112
  1028  	X_POSIX_ADVISORY_INFO                     = -1
  1029  	X_POSIX_ASYNCHRONOUS_IO                   = -1
  1030  	X_POSIX_BARRIERS                          = -1
  1031  	X_POSIX_CHOWN_RESTRICTED                  = 200112
  1032  	X_POSIX_CLOCK_SELECTION                   = -1
  1033  	X_POSIX_CPUTIME                           = -1
  1034  	X_POSIX_FSYNC                             = 200112
  1035  	X_POSIX_IPV6                              = 200112
  1036  	X_POSIX_JOB_CONTROL                       = 200112
  1037  	X_POSIX_MAPPED_FILES                      = 200112
  1038  	X_POSIX_MEMLOCK                           = -1
  1039  	X_POSIX_MEMLOCK_RANGE                     = -1
  1040  	X_POSIX_MEMORY_PROTECTION                 = 200112
  1041  	X_POSIX_MESSAGE_PASSING                   = -1
  1042  	X_POSIX_MONOTONIC_CLOCK                   = -1
  1043  	X_POSIX_NO_TRUNC                          = 200112
  1044  	X_POSIX_PRIORITIZED_IO                    = -1
  1045  	X_POSIX_PRIORITY_SCHEDULING               = -1
  1046  	X_POSIX_PTHREAD_SEMANTICS                 = 1
  1047  	X_POSIX_RAW_SOCKETS                       = -1
  1048  	X_POSIX_READER_WRITER_LOCKS               = 200112
  1049  	X_POSIX_REALTIME_SIGNALS                  = -1
  1050  	X_POSIX_REGEXP                            = 200112
  1051  	X_POSIX_SAVED_IDS                         = 200112
  1052  	X_POSIX_SEMAPHORES                        = -1
  1053  	X_POSIX_SHARED_MEMORY_OBJECTS             = -1
  1054  	X_POSIX_SHELL                             = 200112
  1055  	X_POSIX_SPAWN                             = -1
  1056  	X_POSIX_SPIN_LOCKS                        = -1
  1057  	X_POSIX_SPORADIC_SERVER                   = -1
  1058  	X_POSIX_SYNCHRONIZED_IO                   = -1
  1059  	X_POSIX_THREADS                           = 200112
  1060  	X_POSIX_THREAD_ATTR_STACKADDR             = 200112
  1061  	X_POSIX_THREAD_ATTR_STACKSIZE             = 200112
  1062  	X_POSIX_THREAD_CPUTIME                    = -1
  1063  	X_POSIX_THREAD_KEYS_MAX                   = 128
  1064  	X_POSIX_THREAD_PRIORITY_SCHEDULING        = -1
  1065  	X_POSIX_THREAD_PRIO_INHERIT               = -1
  1066  	X_POSIX_THREAD_PRIO_PROTECT               = -1
  1067  	X_POSIX_THREAD_PROCESS_SHARED             = 200112
  1068  	X_POSIX_THREAD_SAFE_FUNCTIONS             = 200112
  1069  	X_POSIX_THREAD_SPORADIC_SERVER            = -1
  1070  	X_POSIX_TIMEOUTS                          = -1
  1071  	X_POSIX_TIMERS                            = -1
  1072  	X_POSIX_TRACE                             = -1
  1073  	X_POSIX_TRACE_EVENT_FILTER                = -1
  1074  	X_POSIX_TRACE_INHERIT                     = -1
  1075  	X_POSIX_TRACE_LOG                         = -1
  1076  	X_POSIX_TYPED_MEMORY_OBJECTS              = -1
  1077  	X_POSIX_V6_ILP32_OFF32                    = -1
  1078  	X_POSIX_V6_ILP32_OFFBIG                   = -1
  1079  	X_POSIX_V6_LP64_OFF64                     = 1
  1080  	X_POSIX_V6_LPBIG_OFFBIG                   = 1
  1081  	X_POSIX_V7_ILP32_OFF32                    = -1
  1082  	X_POSIX_V7_ILP32_OFFBIG                   = -1
  1083  	X_POSIX_V7_LP64_OFF64                     = 1
  1084  	X_POSIX_V7_LPBIG_OFFBIG                   = 1
  1085  	X_POSIX_VERSION                           = 200112
  1086  	X_PTHREAD_ATTR_T                          = 0
  1087  	X_PTHREAD_CONDATTR_T                      = 0
  1088  	X_PTHREAD_COND_T                          = 0
  1089  	X_PTHREAD_KEY_T                           = 0
  1090  	X_PTHREAD_MUTEXATTR_T                     = 0
  1091  	X_PTHREAD_MUTEX_T                         = 0
  1092  	X_PTHREAD_ONCE_T                          = 0
  1093  	X_PTHREAD_RWLOCKATTR_T                    = 0
  1094  	X_PTHREAD_RWLOCK_T                        = 0
  1095  	X_PTHREAD_T                               = 0
  1096  	X_QUAD_HIGHWORD                           = 1
  1097  	X_QUAD_LOWWORD                            = 0
  1098  	X_RATTR_OK                                = 32768
  1099  	X_READ_OK                                 = 512
  1100  	X_REXT_OK                                 = 131072
  1101  	X_RLIMIT_POSIX_FLAG                       = 0x1000
  1102  	X_RMFILE_OK                               = 16384
  1103  	X_RPERM_OK                                = 524288
  1104  	X_RSIZE_T                                 = 0
  1105  	X_RUNE_T                                  = 0
  1106  	X_SC_2_CHAR_TERM                          = 20
  1107  	X_SC_2_C_BIND                             = 18
  1108  	X_SC_2_C_DEV                              = 19
  1109  	X_SC_2_FORT_DEV                           = 21
  1110  	X_SC_2_FORT_RUN                           = 22
  1111  	X_SC_2_LOCALEDEF                          = 23
  1112  	X_SC_2_PBS                                = 59
  1113  	X_SC_2_PBS_ACCOUNTING                     = 60
  1114  	X_SC_2_PBS_CHECKPOINT                     = 61
  1115  	X_SC_2_PBS_LOCATE                         = 62
  1116  	X_SC_2_PBS_MESSAGE                        = 63
  1117  	X_SC_2_PBS_TRACK                          = 64
  1118  	X_SC_2_SW_DEV                             = 24
  1119  	X_SC_2_UPE                                = 25
  1120  	X_SC_2_VERSION                            = 17
  1121  	X_SC_ADVISORY_INFO                        = 65
  1122  	X_SC_AIO_LISTIO_MAX                       = 42
  1123  	X_SC_AIO_MAX                              = 43
  1124  	X_SC_AIO_PRIO_DELTA_MAX                   = 44
  1125  	X_SC_ARG_MAX                              = 1
  1126  	X_SC_ASYNCHRONOUS_IO                      = 28
  1127  	X_SC_ATEXIT_MAX                           = 107
  1128  	X_SC_BARRIERS                             = 66
  1129  	X_SC_BC_BASE_MAX                          = 9
  1130  	X_SC_BC_DIM_MAX                           = 10
  1131  	X_SC_BC_SCALE_MAX                         = 11
  1132  	X_SC_BC_STRING_MAX                        = 12
  1133  	X_SC_CHILD_MAX                            = 2
  1134  	X_SC_CLK_TCK                              = 3
  1135  	X_SC_CLOCK_SELECTION                      = 67
  1136  	X_SC_COLL_WEIGHTS_MAX                     = 13
  1137  	X_SC_CPUTIME                              = 68
  1138  	X_SC_DELAYTIMER_MAX                       = 45
  1139  	X_SC_EXPR_NEST_MAX                        = 14
  1140  	X_SC_FILE_LOCKING                         = 69
  1141  	X_SC_FSYNC                                = 38
  1142  	X_SC_GETGR_R_SIZE_MAX                     = 70
  1143  	X_SC_GETPW_R_SIZE_MAX                     = 71
  1144  	X_SC_HOST_NAME_MAX                        = 72
  1145  	X_SC_IOV_MAX                              = 56
  1146  	X_SC_IPV6                                 = 118
  1147  	X_SC_JOB_CONTROL                          = 6
  1148  	X_SC_LINE_MAX                             = 15
  1149  	X_SC_LOGIN_NAME_MAX                       = 73
  1150  	X_SC_MAPPED_FILES                         = 47
  1151  	X_SC_MEMLOCK                              = 30
  1152  	X_SC_MEMLOCK_RANGE                        = 31
  1153  	X_SC_MEMORY_PROTECTION                    = 32
  1154  	X_SC_MESSAGE_PASSING                      = 33
  1155  	X_SC_MONOTONIC_CLOCK                      = 74
  1156  	X_SC_MQ_OPEN_MAX                          = 46
  1157  	X_SC_MQ_PRIO_MAX                          = 75
  1158  	X_SC_NGROUPS_MAX                          = 4
  1159  	X_SC_NPROCESSORS_CONF                     = 57
  1160  	X_SC_NPROCESSORS_ONLN                     = 58
  1161  	X_SC_OPEN_MAX                             = 5
  1162  	X_SC_PAGESIZE                             = 29
  1163  	X_SC_PAGE_SIZE                            = 29
  1164  	X_SC_PASS_MAX                             = 131
  1165  	X_SC_PHYS_PAGES                           = 200
  1166  	X_SC_PRIORITIZED_IO                       = 34
  1167  	X_SC_PRIORITY_SCHEDULING                  = 35
  1168  	X_SC_RAW_SOCKETS                          = 119
  1169  	X_SC_READER_WRITER_LOCKS                  = 76
  1170  	X_SC_REALTIME_SIGNALS                     = 36
  1171  	X_SC_REGEXP                               = 77
  1172  	X_SC_RE_DUP_MAX                           = 16
  1173  	X_SC_RTSIG_MAX                            = 48
  1174  	X_SC_SAVED_IDS                            = 7
  1175  	X_SC_SEMAPHORES                           = 37
  1176  	X_SC_SEM_NSEMS_MAX                        = 49
  1177  	X_SC_SEM_VALUE_MAX                        = 50
  1178  	X_SC_SHARED_MEMORY_OBJECTS                = 39
  1179  	X_SC_SHELL                                = 78
  1180  	X_SC_SIGQUEUE_MAX                         = 51
  1181  	X_SC_SPAWN                                = 79
  1182  	X_SC_SPIN_LOCKS                           = 80
  1183  	X_SC_SPORADIC_SERVER                      = 81
  1184  	X_SC_SS_REPL_MAX                          = 126
  1185  	X_SC_STREAM_MAX                           = 26
  1186  	X_SC_SYMLOOP_MAX                          = 120
  1187  	X_SC_SYNCHRONIZED_IO                      = 40
  1188  	X_SC_THREADS                              = 96
  1189  	X_SC_THREAD_ATTR_STACKADDR                = 82
  1190  	X_SC_THREAD_ATTR_STACKSIZE                = 83
  1191  	X_SC_THREAD_CPUTIME                       = 84
  1192  	X_SC_THREAD_DESTRUCTOR_ITERATIONS         = 85
  1193  	X_SC_THREAD_KEYS_MAX                      = 86
  1194  	X_SC_THREAD_PRIORITY_SCHEDULING           = 89
  1195  	X_SC_THREAD_PRIO_INHERIT                  = 87
  1196  	X_SC_THREAD_PRIO_PROTECT                  = 88
  1197  	X_SC_THREAD_PROCESS_SHARED                = 90
  1198  	X_SC_THREAD_SAFE_FUNCTIONS                = 91
  1199  	X_SC_THREAD_SPORADIC_SERVER               = 92
  1200  	X_SC_THREAD_STACK_MIN                     = 93
  1201  	X_SC_THREAD_THREADS_MAX                   = 94
  1202  	X_SC_TIMEOUTS                             = 95
  1203  	X_SC_TIMERS                               = 41
  1204  	X_SC_TIMER_MAX                            = 52
  1205  	X_SC_TRACE                                = 97
  1206  	X_SC_TRACE_EVENT_FILTER                   = 98
  1207  	X_SC_TRACE_EVENT_NAME_MAX                 = 127
  1208  	X_SC_TRACE_INHERIT                        = 99
  1209  	X_SC_TRACE_LOG                            = 100
  1210  	X_SC_TRACE_NAME_MAX                       = 128
  1211  	X_SC_TRACE_SYS_MAX                        = 129
  1212  	X_SC_TRACE_USER_EVENT_MAX                 = 130
  1213  	X_SC_TTY_NAME_MAX                         = 101
  1214  	X_SC_TYPED_MEMORY_OBJECTS                 = 102
  1215  	X_SC_TZNAME_MAX                           = 27
  1216  	X_SC_V6_ILP32_OFF32                       = 103
  1217  	X_SC_V6_ILP32_OFFBIG                      = 104
  1218  	X_SC_V6_LP64_OFF64                        = 105
  1219  	X_SC_V6_LPBIG_OFFBIG                      = 106
  1220  	X_SC_VERSION                              = 8
  1221  	X_SC_XBS5_ILP32_OFF32                     = 122
  1222  	X_SC_XBS5_ILP32_OFFBIG                    = 123
  1223  	X_SC_XBS5_LP64_OFF64                      = 124
  1224  	X_SC_XBS5_LPBIG_OFFBIG                    = 125
  1225  	X_SC_XOPEN_CRYPT                          = 108
  1226  	X_SC_XOPEN_ENH_I18N                       = 109
  1227  	X_SC_XOPEN_LEGACY                         = 110
  1228  	X_SC_XOPEN_REALTIME                       = 111
  1229  	X_SC_XOPEN_REALTIME_THREADS               = 112
  1230  	X_SC_XOPEN_SHM                            = 113
  1231  	X_SC_XOPEN_STREAMS                        = 114
  1232  	X_SC_XOPEN_UNIX                           = 115
  1233  	X_SC_XOPEN_VERSION                        = 116
  1234  	X_SC_XOPEN_XCU_VERSION                    = 121
  1235  	X_SECURE__COMMON_H_                       = 0
  1236  	X_SECURE__STRINGS_H_                      = 0
  1237  	X_SECURE__STRING_H_                       = 0
  1238  	X_SIGSET_T                                = 0
  1239  	X_SIZE_T                                  = 0
  1240  	X_SSIZE_T                                 = 0
  1241  	X_STDINT_H_                               = 0
  1242  	X_STDLIB_H_                               = 0
  1243  	X_STRINGS_H_                              = 0
  1244  	X_STRING_H_                               = 0
  1245  	X_STRUCT_TIMEVAL64                        = 0
  1246  	X_SUSECONDS_T                             = 0
  1247  	X_SYS_FCNTL_H_                            = 0
  1248  	X_SYS_RESOURCE_H_                         = 0
  1249  	X_SYS_SELECT_H_                           = 0
  1250  	X_SYS_SIGNAL_H_                           = 0
  1251  	X_SYS_TIME_H_                             = 0
  1252  	X_SYS_TYPES_H_                            = 0
  1253  	X_SYS_UNISTD_H_                           = 0
  1254  	X_SYS_WAIT_H_                             = 0
  1255  	X_SYS__ENDIAN_H_                          = 0
  1256  	X_SYS__PTHREAD_TYPES_H_                   = 0
  1257  	X_SYS__SELECT_H_                          = 0
  1258  	X_SYS__TYPES_H_                           = 0
  1259  	X_TANDEM_SOURCE                           = 1
  1260  	X_TIME_H_                                 = 0
  1261  	X_TIME_T                                  = 0
  1262  	X_UID_T                                   = 0
  1263  	X_UINT16_T                                = 0
  1264  	X_UINT32_T                                = 0
  1265  	X_UINT64_T                                = 0
  1266  	X_UINT8_T                                 = 0
  1267  	X_UINTMAX_T                               = 0
  1268  	X_UINTPTR_T                               = 0
  1269  	X_UNISTD_H_                               = 0
  1270  	X_USECONDS_T                              = 0
  1271  	X_USE_FORTIFY_LEVEL                       = 2
  1272  	X_UUID_T                                  = 0
  1273  	X_U_CHAR                                  = 0
  1274  	X_U_INT                                   = 0
  1275  	X_U_INT16_T                               = 0
  1276  	X_U_INT32_T                               = 0
  1277  	X_U_INT64_T                               = 0
  1278  	X_U_INT8_T                                = 0
  1279  	X_U_LONG                                  = 0
  1280  	X_U_SHORT                                 = 0
  1281  	X_V6_ILP32_OFF32                          = -1
  1282  	X_V6_ILP32_OFFBIG                         = -1
  1283  	X_V6_LP64_OFF64                           = 1
  1284  	X_V6_LPBIG_OFFBIG                         = 1
  1285  	X_WATTR_OK                                = 65536
  1286  	X_WCHAR_T                                 = 0
  1287  	X_WEXT_OK                                 = 262144
  1288  	X_WPERM_OK                                = 1048576
  1289  	X_WRITE_OK                                = 1024
  1290  	X_WSTOPPED                                = 0177
  1291  	X_XARCH_H_                                = 0
  1292  	X_XBS5_ILP32_OFF32                        = -1
  1293  	X_XBS5_ILP32_OFFBIG                       = -1
  1294  	X_XBS5_LP64_OFF64                         = 1
  1295  	X_XBS5_LPBIG_OFFBIG                       = 1
  1296  	X_XDMCP_H_                                = 0
  1297  	X_XFUNCPROTOBEGIN                         = 0
  1298  	X_XFUNCPROTOEND                           = 0
  1299  	X_XFUNCPROTO_H_                           = 0
  1300  	X_XOPEN_CRYPT                             = 1
  1301  	X_XOPEN_ENH_I18N                          = 1
  1302  	X_XOPEN_LEGACY                            = -1
  1303  	X_XOPEN_REALTIME                          = -1
  1304  	X_XOPEN_REALTIME_THREADS                  = -1
  1305  	X_XOPEN_SHM                               = 1
  1306  	X_XOPEN_STREAMS                           = -1
  1307  	X_XOPEN_UNIX                              = 1
  1308  	X_XOPEN_VERSION                           = 600
  1309  	X_XOPEN_XCU_VERSION                       = 4
  1310  	X_XOSDEFS_H_                              = 0
  1311  	X_XOS_H_                                  = 0
  1312  	X_XTYPEDEF_ATOM                           = 0
  1313  	X_XTYPEDEF_FONT                           = 0
  1314  	X_XTYPEDEF_MASK                           = 0
  1315  	X_XTYPEDEF_XID                            = 0
  1316  	X_X_NONSTRING                             = 0
  1317  	X_X_NOTSAN                                = 0
  1318  	AF_APPLETALK                              = 16
  1319  	AF_CCITT                                  = 10
  1320  	AF_CHAOS                                  = 5
  1321  	AF_CNT                                    = 21
  1322  	AF_COIP                                   = 20
  1323  	AF_DATAKIT                                = 9
  1324  	AF_DECnet                                 = 12
  1325  	AF_DLI                                    = 13
  1326  	AF_E164                                   = 28
  1327  	AF_ECMA                                   = 8
  1328  	AF_HYLINK                                 = 15
  1329  	AF_IEEE80211                              = 37
  1330  	AF_IMPLINK                                = 3
  1331  	AF_INET                                   = 2
  1332  	AF_INET6                                  = 30
  1333  	AF_IPX                                    = 23
  1334  	AF_ISDN                                   = 28
  1335  	AF_ISO                                    = 7
  1336  	AF_LAT                                    = 14
  1337  	AF_LINK                                   = 18
  1338  	AF_LOCAL                                  = 1
  1339  	AF_MAX                                    = 41
  1340  	AF_NATM                                   = 31
  1341  	AF_NDRV                                   = 27
  1342  	AF_NETBIOS                                = 33
  1343  	AF_NS                                     = 6
  1344  	AF_OSI                                    = 7
  1345  	AF_PPP                                    = 34
  1346  	AF_PUP                                    = 4
  1347  	AF_RESERVED_36                            = 36
  1348  	AF_ROUTE                                  = 17
  1349  	AF_SIP                                    = 24
  1350  	AF_SNA                                    = 11
  1351  	AF_SYSTEM                                 = 32
  1352  	AF_UNIX                                   = 1
  1353  	AF_UNSPEC                                 = 0
  1354  	AF_UTUN                                   = 38
  1355  	AF_VSOCK                                  = 40
  1356  	CONNECT_DATA_AUTHENTICATED                = 0x4
  1357  	CONNECT_DATA_IDEMPOTENT                   = 0x2
  1358  	CONNECT_RESUME_ON_READ_WRITE              = 0x1
  1359  	KEV_DL_ADDMULTI                           = 7
  1360  	KEV_DL_AWDL_RESTRICTED                    = 26
  1361  	KEV_DL_AWDL_UNRESTRICTED                  = 27
  1362  	KEV_DL_DELMULTI                           = 8
  1363  	KEV_DL_IFCAP_CHANGED                      = 19
  1364  	KEV_DL_IFDELEGATE_CHANGED                 = 25
  1365  	KEV_DL_IF_ATTACHED                        = 9
  1366  	KEV_DL_IF_DETACHED                        = 11
  1367  	KEV_DL_IF_DETACHING                       = 10
  1368  	KEV_DL_IF_IDLE_ROUTE_REFCNT               = 18
  1369  	KEV_DL_ISSUES                             = 24
  1370  	KEV_DL_LINK_ADDRESS_CHANGED               = 16
  1371  	KEV_DL_LINK_OFF                           = 12
  1372  	KEV_DL_LINK_ON                            = 13
  1373  	KEV_DL_LINK_QUALITY_METRIC_CHANGED        = 20
  1374  	KEV_DL_LOW_POWER_MODE_CHANGED             = 30
  1375  	KEV_DL_NODE_ABSENCE                       = 22
  1376  	KEV_DL_NODE_PRESENCE                      = 21
  1377  	KEV_DL_PRIMARY_ELECTED                    = 23
  1378  	KEV_DL_PROTO_ATTACHED                     = 14
  1379  	KEV_DL_PROTO_DETACHED                     = 15
  1380  	KEV_DL_QOS_MODE_CHANGED                   = 29
  1381  	KEV_DL_RRC_STATE_CHANGED                  = 28
  1382  	KEV_DL_SIFFLAGS                           = 1
  1383  	KEV_DL_SIFGENERIC                         = 6
  1384  	KEV_DL_SIFMEDIA                           = 5
  1385  	KEV_DL_SIFMETRICS                         = 2
  1386  	KEV_DL_SIFMTU                             = 3
  1387  	KEV_DL_SIFPHYS                            = 4
  1388  	KEV_DL_SUBCLASS                           = 2
  1389  	KEV_DL_WAKEFLAGS_CHANGED                  = 17
  1390  	KEV_INET6_ADDR_DELETED                    = 3
  1391  	KEV_INET6_CHANGED_ADDR                    = 2
  1392  	KEV_INET6_DEFROUTER                       = 6
  1393  	KEV_INET6_NEW_LL_ADDR                     = 4
  1394  	KEV_INET6_NEW_RTADV_ADDR                  = 5
  1395  	KEV_INET6_NEW_USER_ADDR                   = 1
  1396  	KEV_INET6_REQUEST_NAT64_PREFIX            = 7
  1397  	KEV_INET6_SUBCLASS                        = 6
  1398  	KEV_INET_ADDR_DELETED                     = 3
  1399  	KEV_INET_ARPCOLLISION                     = 7
  1400  	KEV_INET_ARPRTRALIVE                      = 10
  1401  	KEV_INET_ARPRTRFAILURE                    = 9
  1402  	KEV_INET_CHANGED_ADDR                     = 2
  1403  	KEV_INET_NEW_ADDR                         = 1
  1404  	KEV_INET_PORTINUSE                        = 8
  1405  	KEV_INET_SIFBRDADDR                       = 5
  1406  	KEV_INET_SIFDSTADDR                       = 4
  1407  	KEV_INET_SIFNETMASK                       = 6
  1408  	KEV_INET_SUBCLASS                         = 1
  1409  	MSG_CTRUNC                                = 0x20
  1410  	MSG_DONTROUTE                             = 0x4
  1411  	MSG_DONTWAIT                              = 0x80
  1412  	MSG_EOF                                   = 0x100
  1413  	MSG_EOR                                   = 0x8
  1414  	MSG_FLUSH                                 = 0x400
  1415  	MSG_HAVEMORE                              = 0x2000
  1416  	MSG_HOLD                                  = 0x800
  1417  	MSG_NEEDSA                                = 0x10000
  1418  	MSG_NOSIGNAL                              = 0x80000
  1419  	MSG_OOB                                   = 0x1
  1420  	MSG_PEEK                                  = 0x2
  1421  	MSG_RCVMORE                               = 0x4000
  1422  	MSG_SEND                                  = 0x1000
  1423  	MSG_TRUNC                                 = 0x10
  1424  	MSG_WAITALL                               = 0x40
  1425  	MSG_WAITSTREAM                            = 0x200
  1426  	NETSVC_MRKNG_LVL_L2                       = 1
  1427  	NETSVC_MRKNG_LVL_L3L2_ALL                 = 2
  1428  	NETSVC_MRKNG_LVL_L3L2_BK                  = 3
  1429  	NETSVC_MRKNG_UNKNOWN                      = 0
  1430  	NET_MAXID                                 = 41
  1431  	NET_RT_DUMP                               = 1
  1432  	NET_RT_DUMP2                              = 7
  1433  	NET_RT_FLAGS                              = 2
  1434  	NET_RT_FLAGS_PRIV                         = 10
  1435  	NET_RT_IFLIST                             = 3
  1436  	NET_RT_IFLIST2                            = 6
  1437  	NET_RT_MAXID                              = 11
  1438  	NET_RT_STAT                               = 4
  1439  	NET_RT_TRASH                              = 5
  1440  	NET_SERVICE_TYPE_AV                       = 6
  1441  	NET_SERVICE_TYPE_BE                       = 0
  1442  	NET_SERVICE_TYPE_BK                       = 1
  1443  	NET_SERVICE_TYPE_OAM                      = 7
  1444  	NET_SERVICE_TYPE_RD                       = 8
  1445  	NET_SERVICE_TYPE_RV                       = 5
  1446  	NET_SERVICE_TYPE_SIG                      = 2
  1447  	NET_SERVICE_TYPE_VI                       = 3
  1448  	NET_SERVICE_TYPE_VO                       = 4
  1449  	PF_APPLETALK                              = 16
  1450  	PF_CCITT                                  = 10
  1451  	PF_CHAOS                                  = 5
  1452  	PF_CNT                                    = 21
  1453  	PF_COIP                                   = 20
  1454  	PF_DATAKIT                                = 9
  1455  	PF_DECnet                                 = 12
  1456  	PF_DLI                                    = 13
  1457  	PF_ECMA                                   = 8
  1458  	PF_HYLINK                                 = 15
  1459  	PF_IMPLINK                                = 3
  1460  	PF_INET                                   = 2
  1461  	PF_INET6                                  = 30
  1462  	PF_IPX                                    = 23
  1463  	PF_ISDN                                   = 28
  1464  	PF_ISO                                    = 7
  1465  	PF_KEY                                    = 29
  1466  	PF_LAT                                    = 14
  1467  	PF_LINK                                   = 18
  1468  	PF_LOCAL                                  = 1
  1469  	PF_MAX                                    = 41
  1470  	PF_NATM                                   = 31
  1471  	PF_NDRV                                   = 27
  1472  	PF_NETBIOS                                = 33
  1473  	PF_NS                                     = 6
  1474  	PF_OSI                                    = 7
  1475  	PF_PIP                                    = 25
  1476  	PF_PPP                                    = 34
  1477  	PF_PUP                                    = 4
  1478  	PF_RESERVED_36                            = 36
  1479  	PF_ROUTE                                  = 17
  1480  	PF_RTIP                                   = 22
  1481  	PF_SIP                                    = 24
  1482  	PF_SNA                                    = 11
  1483  	PF_SYSTEM                                 = 32
  1484  	PF_UNIX                                   = 1
  1485  	PF_UNSPEC                                 = 0
  1486  	PF_UTUN                                   = 38
  1487  	PF_VSOCK                                  = 40
  1488  	PF_XTP                                    = 19
  1489  	SAE_ASSOCID_ANY                           = 0
  1490  	SAE_CONNID_ANY                            = 0
  1491  	SCM_CREDS                                 = 0x03
  1492  	SCM_RIGHTS                                = 0x01
  1493  	SCM_TIMESTAMP                             = 0x02
  1494  	SCM_TIMESTAMP_MONOTONIC                   = 0x04
  1495  	SHUT_RD                                   = 0
  1496  	SHUT_RDWR                                 = 2
  1497  	SHUT_WR                                   = 1
  1498  	SOCK_DGRAM                                = 2
  1499  	SOCK_MAXADDRLEN                           = 255
  1500  	SOCK_RAW                                  = 3
  1501  	SOCK_RDM                                  = 4
  1502  	SOCK_SEQPACKET                            = 5
  1503  	SOCK_STREAM                               = 1
  1504  	SOL_SOCKET                                = 0xffff
  1505  	SOMAXCONN                                 = 128
  1506  	SONPX_SETOPTSHUT                          = 0x000000001
  1507  	SO_ACCEPTCONN                             = 0x0002
  1508  	SO_BROADCAST                              = 0x0020
  1509  	SO_DEBUG                                  = 0x0001
  1510  	SO_DONTROUTE                              = 0x0010
  1511  	SO_DONTTRUNC                              = 0x2000
  1512  	SO_ERROR                                  = 0x1007
  1513  	SO_KEEPALIVE                              = 0x0008
  1514  	SO_LABEL                                  = 0x1010
  1515  	SO_LINGER                                 = 0x0080
  1516  	SO_LINGER_SEC                             = 0x1080
  1517  	SO_NETSVC_MARKING_LEVEL                   = 0x1119
  1518  	SO_NET_SERVICE_TYPE                       = 0x1116
  1519  	SO_NKE                                    = 0x1021
  1520  	SO_NOADDRERR                              = 0x1023
  1521  	SO_NOSIGPIPE                              = 0x1022
  1522  	SO_NOTIFYCONFLICT                         = 0x1026
  1523  	SO_NP_EXTENSIONS                          = 0x1083
  1524  	SO_NREAD                                  = 0x1020
  1525  	SO_NUMRCVPKT                              = 0x1112
  1526  	SO_NWRITE                                 = 0x1024
  1527  	SO_OOBINLINE                              = 0x0100
  1528  	SO_PEERLABEL                              = 0x1011
  1529  	SO_RANDOMPORT                             = 0x1082
  1530  	SO_RCVBUF                                 = 0x1002
  1531  	SO_RCVLOWAT                               = 0x1004
  1532  	SO_RCVTIMEO                               = 0x1006
  1533  	SO_REUSEADDR                              = 0x0004
  1534  	SO_REUSEPORT                              = 0x0200
  1535  	SO_REUSESHAREUID                          = 0x1025
  1536  	SO_SNDBUF                                 = 0x1001
  1537  	SO_SNDLOWAT                               = 0x1003
  1538  	SO_SNDTIMEO                               = 0x1005
  1539  	SO_TIMESTAMP                              = 0x0400
  1540  	SO_TIMESTAMP_MONOTONIC                    = 0x0800
  1541  	SO_TYPE                                   = 0x1008
  1542  	SO_UPCALLCLOSEWAIT                        = 0x1027
  1543  	SO_USELOOPBACK                            = 0x0040
  1544  	SO_WANTMORE                               = 0x4000
  1545  	SO_WANTOOBFLAG                            = 0x8000
  1546  	X_ARM__PARAM_H_                           = 0
  1547  	X_BSD_MACHINE__PARAM_H_                   = 0
  1548  	X_NET_NETKEV_H_                           = 0
  1549  	X_SA_FAMILY_T                             = 0
  1550  	X_SOCKLEN_T                               = 0
  1551  	X_SS_MAXSIZE                              = 128
  1552  	X_STRUCT_IOVEC                            = 0
  1553  	X_SYS_SOCKET_H_                           = 0
  1554  	Pseudo_AF_HDRCMPLT                        = 35
  1555  	Pseudo_AF_KEY                             = 29
  1556  	Pseudo_AF_PIP                             = 25
  1557  	Pseudo_AF_RTIP                            = 22
  1558  	Pseudo_AF_XTP                             = 19
  1559  	HALF_ITERATIONS                           = 8
  1560  	ITERATIONS                                = 16
  1561  )
  1562  
  1563  const ( /* fcntl.h:545:1: */
  1564  	FILESEC_OWNER   = 1
  1565  	FILESEC_GROUP   = 2
  1566  	FILESEC_UUID    = 3
  1567  	FILESEC_MODE    = 4
  1568  	FILESEC_ACL     = 5
  1569  	FILESEC_GRPUUID = 6
  1570  
  1571  	// XXX these are private to the implementation
  1572  	FILESEC_ACL_RAW       = 100
  1573  	FILESEC_ACL_ALLOCSIZE = 101
  1574  )
  1575  
  1576  // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved.
  1577  //
  1578  // @APPLE_LICENSE_HEADER_START@
  1579  //
  1580  // This file contains Original Code and/or Modifications of Original Code
  1581  // as defined in and that are subject to the Apple Public Source License
  1582  // Version 2.0 (the 'License'). You may not use this file except in
  1583  // compliance with the License. Please obtain a copy of the License at
  1584  // http://www.opensource.apple.com/apsl/ and read it before using this
  1585  // file.
  1586  //
  1587  // The Original Code and all software distributed under the License are
  1588  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1589  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1590  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1591  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1592  // Please see the License for the specific language governing rights and
  1593  // limitations under the License.
  1594  //
  1595  // @APPLE_LICENSE_HEADER_END@
  1596  // -
  1597  // Copyright (c) 1990, 1993
  1598  //	The Regents of the University of California.  All rights reserved.
  1599  //
  1600  // Redistribution and use in source and binary forms, with or without
  1601  // modification, are permitted provided that the following conditions
  1602  // are met:
  1603  // 1. Redistributions of source code must retain the above copyright
  1604  //    notice, this list of conditions and the following disclaimer.
  1605  // 2. Redistributions in binary form must reproduce the above copyright
  1606  //    notice, this list of conditions and the following disclaimer in the
  1607  //    documentation and/or other materials provided with the distribution.
  1608  // 3. All advertising materials mentioning features or use of this software
  1609  //    must display the following acknowledgement:
  1610  //	This product includes software developed by the University of
  1611  //	California, Berkeley and its contributors.
  1612  // 4. Neither the name of the University nor the names of its contributors
  1613  //    may be used to endorse or promote products derived from this software
  1614  //    without specific prior written permission.
  1615  //
  1616  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1617  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1618  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1619  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1620  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1621  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1622  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1623  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1624  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1625  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1626  // SUCH DAMAGE.
  1627  //
  1628  //	@(#)stdlib.h	8.5 (Berkeley) 5/19/95
  1629  
  1630  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  1631  //
  1632  // @APPLE_LICENSE_HEADER_START@
  1633  //
  1634  // This file contains Original Code and/or Modifications of Original Code
  1635  // as defined in and that are subject to the Apple Public Source License
  1636  // Version 2.0 (the 'License'). You may not use this file except in
  1637  // compliance with the License. Please obtain a copy of the License at
  1638  // http://www.opensource.apple.com/apsl/ and read it before using this
  1639  // file.
  1640  //
  1641  // The Original Code and all software distributed under the License are
  1642  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1643  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1644  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1645  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1646  // Please see the License for the specific language governing rights and
  1647  // limitations under the License.
  1648  //
  1649  // @APPLE_LICENSE_HEADER_END@
  1650  
  1651  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1652  //
  1653  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1654  //
  1655  // This file contains Original Code and/or Modifications of Original Code
  1656  // as defined in and that are subject to the Apple Public Source License
  1657  // Version 2.0 (the 'License'). You may not use this file except in
  1658  // compliance with the License. The rights granted to you under the License
  1659  // may not be used to create, or enable the creation or redistribution of,
  1660  // unlawful or unlicensed copies of an Apple operating system, or to
  1661  // circumvent, violate, or enable the circumvention or violation of, any
  1662  // terms of an Apple operating system software license agreement.
  1663  //
  1664  // Please obtain a copy of the License at
  1665  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1666  //
  1667  // The Original Code and all software distributed under the License are
  1668  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1669  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1670  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1671  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1672  // Please see the License for the specific language governing rights and
  1673  // limitations under the License.
  1674  //
  1675  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1676  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1677  // Copyright (c) 1991, 1993
  1678  //	The Regents of the University of California.  All rights reserved.
  1679  //
  1680  // This code is derived from software contributed to Berkeley by
  1681  // Berkeley Software Design, Inc.
  1682  //
  1683  // Redistribution and use in source and binary forms, with or without
  1684  // modification, are permitted provided that the following conditions
  1685  // are met:
  1686  // 1. Redistributions of source code must retain the above copyright
  1687  //    notice, this list of conditions and the following disclaimer.
  1688  // 2. Redistributions in binary form must reproduce the above copyright
  1689  //    notice, this list of conditions and the following disclaimer in the
  1690  //    documentation and/or other materials provided with the distribution.
  1691  // 3. All advertising materials mentioning features or use of this software
  1692  //    must display the following acknowledgement:
  1693  //	This product includes software developed by the University of
  1694  //	California, Berkeley and its contributors.
  1695  // 4. Neither the name of the University nor the names of its contributors
  1696  //    may be used to endorse or promote products derived from this software
  1697  //    without specific prior written permission.
  1698  //
  1699  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1700  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1701  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1702  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1703  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1704  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1705  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1706  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1707  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1708  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1709  // SUCH DAMAGE.
  1710  //
  1711  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1712  
  1713  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  1714  //
  1715  // @APPLE_LICENSE_HEADER_START@
  1716  //
  1717  // This file contains Original Code and/or Modifications of Original Code
  1718  // as defined in and that are subject to the Apple Public Source License
  1719  // Version 2.0 (the 'License'). You may not use this file except in
  1720  // compliance with the License. Please obtain a copy of the License at
  1721  // http://www.opensource.apple.com/apsl/ and read it before using this
  1722  // file.
  1723  //
  1724  // The Original Code and all software distributed under the License are
  1725  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1726  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1727  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1728  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1729  // Please see the License for the specific language governing rights and
  1730  // limitations under the License.
  1731  //
  1732  // @APPLE_LICENSE_HEADER_END@
  1733  
  1734  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  1735  //
  1736  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1737  //
  1738  // This file contains Original Code and/or Modifications of Original Code
  1739  // as defined in and that are subject to the Apple Public Source License
  1740  // Version 2.0 (the 'License'). You may not use this file except in
  1741  // compliance with the License. The rights granted to you under the License
  1742  // may not be used to create, or enable the creation or redistribution of,
  1743  // unlawful or unlicensed copies of an Apple operating system, or to
  1744  // circumvent, violate, or enable the circumvention or violation of, any
  1745  // terms of an Apple operating system software license agreement.
  1746  //
  1747  // Please obtain a copy of the License at
  1748  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1749  //
  1750  // The Original Code and all software distributed under the License are
  1751  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1752  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1753  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1754  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1755  // Please see the License for the specific language governing rights and
  1756  // limitations under the License.
  1757  //
  1758  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1759  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  1760  // Copyright (c) 1982, 1986, 1989, 1993, 1994
  1761  //	The Regents of the University of California.  All rights reserved.
  1762  //
  1763  // Redistribution and use in source and binary forms, with or without
  1764  // modification, are permitted provided that the following conditions
  1765  // are met:
  1766  // 1. Redistributions of source code must retain the above copyright
  1767  //    notice, this list of conditions and the following disclaimer.
  1768  // 2. Redistributions in binary form must reproduce the above copyright
  1769  //    notice, this list of conditions and the following disclaimer in the
  1770  //    documentation and/or other materials provided with the distribution.
  1771  // 3. All advertising materials mentioning features or use of this software
  1772  //    must display the following acknowledgement:
  1773  //	This product includes software developed by the University of
  1774  //	California, Berkeley and its contributors.
  1775  // 4. Neither the name of the University nor the names of its contributors
  1776  //    may be used to endorse or promote products derived from this software
  1777  //    without specific prior written permission.
  1778  //
  1779  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1780  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1781  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1782  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1783  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1784  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1785  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1786  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1787  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1788  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1789  // SUCH DAMAGE.
  1790  //
  1791  //	@(#)wait.h	8.2 (Berkeley) 7/10/94
  1792  
  1793  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1794  //
  1795  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1796  //
  1797  // This file contains Original Code and/or Modifications of Original Code
  1798  // as defined in and that are subject to the Apple Public Source License
  1799  // Version 2.0 (the 'License'). You may not use this file except in
  1800  // compliance with the License. The rights granted to you under the License
  1801  // may not be used to create, or enable the creation or redistribution of,
  1802  // unlawful or unlicensed copies of an Apple operating system, or to
  1803  // circumvent, violate, or enable the circumvention or violation of, any
  1804  // terms of an Apple operating system software license agreement.
  1805  //
  1806  // Please obtain a copy of the License at
  1807  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1808  //
  1809  // The Original Code and all software distributed under the License are
  1810  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1811  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1812  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1813  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1814  // Please see the License for the specific language governing rights and
  1815  // limitations under the License.
  1816  //
  1817  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1818  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1819  // Copyright (c) 1991, 1993
  1820  //	The Regents of the University of California.  All rights reserved.
  1821  //
  1822  // This code is derived from software contributed to Berkeley by
  1823  // Berkeley Software Design, Inc.
  1824  //
  1825  // Redistribution and use in source and binary forms, with or without
  1826  // modification, are permitted provided that the following conditions
  1827  // are met:
  1828  // 1. Redistributions of source code must retain the above copyright
  1829  //    notice, this list of conditions and the following disclaimer.
  1830  // 2. Redistributions in binary form must reproduce the above copyright
  1831  //    notice, this list of conditions and the following disclaimer in the
  1832  //    documentation and/or other materials provided with the distribution.
  1833  // 3. All advertising materials mentioning features or use of this software
  1834  //    must display the following acknowledgement:
  1835  //	This product includes software developed by the University of
  1836  //	California, Berkeley and its contributors.
  1837  // 4. Neither the name of the University nor the names of its contributors
  1838  //    may be used to endorse or promote products derived from this software
  1839  //    without specific prior written permission.
  1840  //
  1841  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1842  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1843  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1844  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1845  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1846  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1847  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1848  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1849  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1850  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1851  // SUCH DAMAGE.
  1852  //
  1853  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  1854  
  1855  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1856  //
  1857  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1858  //
  1859  // This file contains Original Code and/or Modifications of Original Code
  1860  // as defined in and that are subject to the Apple Public Source License
  1861  // Version 2.0 (the 'License'). You may not use this file except in
  1862  // compliance with the License. The rights granted to you under the License
  1863  // may not be used to create, or enable the creation or redistribution of,
  1864  // unlawful or unlicensed copies of an Apple operating system, or to
  1865  // circumvent, violate, or enable the circumvention or violation of, any
  1866  // terms of an Apple operating system software license agreement.
  1867  //
  1868  // Please obtain a copy of the License at
  1869  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1870  //
  1871  // The Original Code and all software distributed under the License are
  1872  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1873  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1874  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1875  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1876  // Please see the License for the specific language governing rights and
  1877  // limitations under the License.
  1878  //
  1879  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1880  
  1881  // This file holds definitions relevent to the wait4 system call
  1882  // and the alternate interfaces that use it (wait, wait3, waitpid).
  1883  
  1884  // [XSI] The type idtype_t shall be defined as an enumeration type whose
  1885  // possible values shall include at least P_ALL, P_PID, and P_PGID.
  1886  const ( /* wait.h:79:1: */
  1887  	P_ALL  = 0
  1888  	P_PID  = 1
  1889  	P_PGID = 2
  1890  )
  1891  
  1892  const ( /* time.h:153:1: */
  1893  	X_CLOCK_REALTIME             = 0
  1894  	X_CLOCK_MONOTONIC            = 6
  1895  	X_CLOCK_MONOTONIC_RAW        = 4
  1896  	X_CLOCK_MONOTONIC_RAW_APPROX = 5
  1897  	X_CLOCK_UPTIME_RAW           = 8
  1898  	X_CLOCK_UPTIME_RAW_APPROX    = 9
  1899  	X_CLOCK_PROCESS_CPUTIME_ID   = 12
  1900  	X_CLOCK_THREAD_CPUTIME_ID    = 16
  1901  )
  1902  
  1903  // was definitions for sign-extending bitfields on architectures without
  1904  // native types smaller than 64-bit, now just backwards compatibility
  1905  
  1906  // this version should leave result of type (t *), but that should only be
  1907  // used when not in MUSTCOPY
  1908  
  1909  // Copyright 1989 Network Computing Devices, Inc., Mountain View, California.
  1910  //
  1911  // Permission to use, copy, modify, and distribute this software and its
  1912  // documentation for any purpose and without fee is hereby granted, provided
  1913  // that the above copyright notice appear in all copies and that both that
  1914  // copyright notice and this permission notice appear in supporting
  1915  // documentation, and that the name of N.C.D. not be used in advertising or
  1916  // publicity pertaining to distribution of the software without specific,
  1917  // written prior permission.  N.C.D. makes no representations about the
  1918  // suitability of this software for any purpose.  It is provided "as is"
  1919  // without express or implied warranty.
  1920  //
  1921  
  1922  //**********************************************************
  1923  //
  1924  // Copyright 1987, 1998  The Open Group
  1925  //
  1926  // Permission to use, copy, modify, distribute, and sell this software and its
  1927  // documentation for any purpose is hereby granted without fee, provided that
  1928  // the above copyright notice appear in all copies and that both that
  1929  // copyright notice and this permission notice appear in supporting
  1930  // documentation.
  1931  //
  1932  // The above copyright notice and this permission notice shall be included in
  1933  // all copies or substantial portions of the Software.
  1934  //
  1935  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1936  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1937  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  1938  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  1939  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  1940  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  1941  //
  1942  // Except as contained in this notice, the name of The Open Group shall not be
  1943  // used in advertising or otherwise to promote the sale, use or other dealings
  1944  // in this Software without prior written authorization from The Open Group.
  1945  //
  1946  //
  1947  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  1948  //
  1949  //                         All Rights Reserved
  1950  //
  1951  // Permission to use, copy, modify, and distribute this software and its
  1952  // documentation for any purpose and without fee is hereby granted,
  1953  // provided that the above copyright notice appear in all copies and that
  1954  // both that copyright notice and this permission notice appear in
  1955  // supporting documentation, and that the name of Digital not be
  1956  // used in advertising or publicity pertaining to distribution of the
  1957  // software without specific, written prior permission.
  1958  //
  1959  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  1960  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  1961  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  1962  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  1963  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  1964  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  1965  // SOFTWARE.
  1966  //
  1967  // *****************************************************************
  1968  
  1969  //
  1970  //
  1971  // Copyright 1989, 1991, 1998  The Open Group
  1972  //
  1973  // Permission to use, copy, modify, distribute, and sell this software and its
  1974  // documentation for any purpose is hereby granted without fee, provided that
  1975  // the above copyright notice appear in all copies and that both that
  1976  // copyright notice and this permission notice appear in supporting
  1977  // documentation.
  1978  //
  1979  // The above copyright notice and this permission notice shall be included in
  1980  // all copies or substantial portions of the Software.
  1981  //
  1982  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1983  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1984  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  1985  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  1986  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  1987  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  1988  //
  1989  // Except as contained in this notice, the name of The Open Group shall not be
  1990  // used in advertising or otherwise to promote the sale, use or other dealings
  1991  // in this Software without prior written authorization from The Open Group.
  1992  //  *
  1993  //
  1994  
  1995  // Definitions to make function prototypes manageable
  1996  
  1997  // Function prototype configuration (see configure for more info)
  1998  
  1999  // http://clang.llvm.org/docs/LanguageExtensions.html#has-attribute
  2000  
  2001  // Added in X11R6.9, so available in any version of modular xproto
  2002  
  2003  // Added in X11R6.9, so available in any version of modular xproto
  2004  
  2005  // Branch prediction hints for individual conditionals
  2006  // requires xproto >= 7.0.9
  2007  
  2008  // Bulk branch prediction hints via marking error path functions as "cold"
  2009  // requires xproto >= 7.0.25
  2010  
  2011  // Added in X11R6.9, so available in any version of modular xproto
  2012  
  2013  // requires xproto >= 7.0.30
  2014  
  2015  // requires xproto >= 7.0.17
  2016  
  2017  // Added in X11R6.9, so available in any version of modular xproto
  2018  
  2019  // requires xproto >= 7.0.22 - since this uses either gcc or C99 variable
  2020  //    argument macros, must be only used inside #ifdef _X_NONNULL guards, as
  2021  //    many legacy X clients are compiled in C89 mode still.
  2022  
  2023  // requires xproto >= 7.0.22
  2024  
  2025  // C99 keyword "inline" or equivalent extensions in pre-C99 compilers
  2026  // requires xproto >= 7.0.9
  2027  //    (introduced in 7.0.8 but didn't support all compilers until 7.0.9)
  2028  
  2029  // C99 keyword "restrict" or equivalent extensions in pre-C99 compilers
  2030  // requires xproto >= 7.0.21
  2031  
  2032  // requires xproto >= 7.0.30
  2033  
  2034  // Mark a char array/pointer as not containing a NUL-terminated string
  2035  // requires xproto >= 7.0.33
  2036  
  2037  // IANA has assigned FF0X:0:0:0:0:0:0:12B as the permanently assigned
  2038  // multicast addresses for XDMCP, where X in the prefix may be replaced
  2039  // by any valid scope identifier, such as 1 for Node-Local, 2 for Link-Local,
  2040  // 5 for Site-Local, and so on.  We set the default here to the Link-Local
  2041  // version to most closely match the old IPv4 subnet broadcast behavior.
  2042  // Both xdm and X -query allow specifying a different address if a different
  2043  // scope is defined.
  2044  
  2045  const ( /* Xdmcp.h:46:1: */
  2046  	BROADCAST_QUERY = 1
  2047  	QUERY           = 2
  2048  	INDIRECT_QUERY  = 3
  2049  	FORWARD_QUERY   = 4
  2050  	WILLING         = 5
  2051  	UNWILLING       = 6
  2052  	REQUEST         = 7
  2053  	ACCEPT          = 8
  2054  	DECLINE         = 9
  2055  	MANAGE          = 10
  2056  	REFUSE          = 11
  2057  	FAILED          = 12
  2058  	KEEPALIVE       = 13
  2059  	ALIVE           = 14
  2060  )
  2061  
  2062  const ( /* Xdmcp.h:52:1: */
  2063  	XDM_QUERY                   = 0
  2064  	XDM_BROADCAST               = 1
  2065  	XDM_INDIRECT                = 2
  2066  	XDM_COLLECT_QUERY           = 3
  2067  	XDM_COLLECT_BROADCAST_QUERY = 4
  2068  	XDM_COLLECT_INDIRECT_QUERY  = 5
  2069  	XDM_START_CONNECTION        = 6
  2070  	XDM_AWAIT_REQUEST_RESPONSE  = 7
  2071  	XDM_AWAIT_MANAGE_RESPONSE   = 8
  2072  	XDM_MANAGE                  = 9
  2073  	XDM_RUN_SESSION             = 10
  2074  	XDM_OFF                     = 11
  2075  	XDM_AWAIT_USER_INPUT        = 12
  2076  	XDM_KEEPALIVE               = 13
  2077  	XDM_AWAIT_ALIVE_RESPONSE    = 14
  2078  	XDM_KEEP_ME_LAST            = 15
  2079  )
  2080  
  2081  type Ptrdiff_t = int64 /* <builtin>:3:26 */
  2082  
  2083  type Size_t = uint64 /* <builtin>:9:23 */
  2084  
  2085  type Wchar_t = int32 /* <builtin>:15:24 */
  2086  
  2087  type X__int128_t = struct {
  2088  	Flo int64
  2089  	Fhi int64
  2090  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  2091  type X__uint128_t = struct {
  2092  	Flo uint64
  2093  	Fhi uint64
  2094  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  2095  
  2096  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  2097  type X__float128 = float64        /* <builtin>:47:21 */
  2098  
  2099  //
  2100  // Copyright 1989, 1998  The Open Group
  2101  //
  2102  // Permission to use, copy, modify, distribute, and sell this software and its
  2103  // documentation for any purpose is hereby granted without fee, provided that
  2104  // the above copyright notice appear in all copies and that both that
  2105  // copyright notice and this permission notice appear in supporting
  2106  // documentation.
  2107  //
  2108  // The above copyright notice and this permission notice shall be included in
  2109  // all copies or substantial portions of the Software.
  2110  //
  2111  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  2112  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  2113  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  2114  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  2115  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  2116  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  2117  //
  2118  // Except as contained in this notice, the name of The Open Group shall not be
  2119  // used in advertising or otherwise to promote the sale, use or other dealings
  2120  // in this Software without prior written authorization from The Open Group.
  2121  //  *
  2122  //  * Author:  Keith Packard, MIT X Consortium
  2123  //
  2124  
  2125  // config.h.  Generated from config.h.in by configure.
  2126  // config.h.in.  Generated from configure.ac by autoheader.
  2127  
  2128  // Has Wraphelp.c needed for XDM AUTH protocols
  2129  
  2130  // Define to 1 if you have the `arc4random_buf' function.
  2131  
  2132  // Define to 1 if you have the <dlfcn.h> header file.
  2133  
  2134  // Define to 1 if you have the <inttypes.h> header file.
  2135  
  2136  // Define to 1 if you have the `bsd' library (-lbsd).
  2137  // #undef HAVE_LIBBSD
  2138  
  2139  // Define to 1 if you have the `lrand48' function.
  2140  
  2141  // Define to 1 if you have the <memory.h> header file.
  2142  
  2143  // Define to 1 if you have the `srand48' function.
  2144  
  2145  // Define to 1 if you have the <stdint.h> header file.
  2146  
  2147  // Define to 1 if you have the <stdlib.h> header file.
  2148  
  2149  // Define to 1 if you have the <strings.h> header file.
  2150  
  2151  // Define to 1 if you have the <string.h> header file.
  2152  
  2153  // Define to 1 if you have the <sys/stat.h> header file.
  2154  
  2155  // Define to 1 if you have the <sys/types.h> header file.
  2156  
  2157  // Define to 1 if you have the <unistd.h> header file.
  2158  
  2159  // Define to the sub-directory in which libtool stores uninstalled libraries.
  2160  
  2161  // Name of package
  2162  
  2163  // Define to the address where bug reports for this package should be sent.
  2164  
  2165  // Define to the full name of this package.
  2166  
  2167  // Define to the full name and version of this package.
  2168  
  2169  // Define to the one symbol short name of this package.
  2170  
  2171  // Define to the home page for this package.
  2172  
  2173  // Define to the version of this package.
  2174  
  2175  // Major version of this package
  2176  
  2177  // Minor version of this package
  2178  
  2179  // Patch version of this package
  2180  
  2181  // Define to 1 if you have the ANSI C header files.
  2182  
  2183  // Enable extensions on AIX 3, Interix.
  2184  // Enable GNU extensions on systems that have them.
  2185  // Enable threading extensions on Solaris.
  2186  // Enable extensions on HP NonStop.
  2187  // Enable general extensions on Solaris.
  2188  
  2189  // Version number of package
  2190  
  2191  // Define to 1 if on MINIX.
  2192  // #undef _MINIX
  2193  
  2194  // Define to 2 if the system does not provide POSIX.1 features except with
  2195  //    this defined.
  2196  // #undef _POSIX_1_SOURCE
  2197  
  2198  // Define to 1 if you need to in order for `stat' and other things to work.
  2199  // #undef _POSIX_SOURCE
  2200  //
  2201  //
  2202  // Copyright 1987, 1998  The Open Group
  2203  //
  2204  // Permission to use, copy, modify, distribute, and sell this software and its
  2205  // documentation for any purpose is hereby granted without fee, provided that
  2206  // the above copyright notice appear in all copies and that both that
  2207  // copyright notice and this permission notice appear in supporting
  2208  // documentation.
  2209  //
  2210  // The above copyright notice and this permission notice shall be included in
  2211  // all copies or substantial portions of the Software.
  2212  //
  2213  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  2214  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  2215  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  2216  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  2217  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  2218  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  2219  //
  2220  // Except as contained in this notice, the name of The Open Group shall not be
  2221  // used in advertising or otherwise to promote the sale, use or other dealings
  2222  // in this Software without prior written authorization from The Open Group.
  2223  //  *
  2224  //  * The X Window System is a Trademark of The Open Group.
  2225  //  *
  2226  //
  2227  
  2228  // This is a collection of things to try and minimize system dependencies
  2229  // in a "significant" number of source files.
  2230  
  2231  //
  2232  //  O/S-dependent (mis)feature macro definitions
  2233  //
  2234  // Copyright 1991, 1998  The Open Group
  2235  //
  2236  // Permission to use, copy, modify, distribute, and sell this software and its
  2237  // documentation for any purpose is hereby granted without fee, provided that
  2238  // the above copyright notice appear in all copies and that both that
  2239  // copyright notice and this permission notice appear in supporting
  2240  // documentation.
  2241  //
  2242  // The above copyright notice and this permission notice shall be included in
  2243  // all copies or substantial portions of the Software.
  2244  //
  2245  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  2246  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  2247  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  2248  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  2249  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  2250  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  2251  //
  2252  // Except as contained in this notice, the name of The Open Group shall not be
  2253  // used in advertising or otherwise to promote the sale, use or other dealings
  2254  // in this Software without prior written authorization from The Open Group.
  2255  //
  2256  
  2257  // X_NOT_POSIX means does not have POSIX header files.  Lack of this
  2258  // symbol does NOT mean that the POSIX environment is the default.
  2259  // You may still have to define _POSIX_SOURCE to get it.
  2260  
  2261  // Defining any of these will sanitize the namespace to JUST want is defined by
  2262  // that particular standard.  If that happens, we don't get some expected
  2263  // prototypes, typedefs, etc (like fd_mask).  We can define _DARWIN_C_SOURCE to
  2264  // loosen our belts a tad.
  2265  
  2266  // Get major data types (esp. caddr_t)
  2267  
  2268  // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  2269  //
  2270  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2271  //
  2272  // This file contains Original Code and/or Modifications of Original Code
  2273  // as defined in and that are subject to the Apple Public Source License
  2274  // Version 2.0 (the 'License'). You may not use this file except in
  2275  // compliance with the License. The rights granted to you under the License
  2276  // may not be used to create, or enable the creation or redistribution of,
  2277  // unlawful or unlicensed copies of an Apple operating system, or to
  2278  // circumvent, violate, or enable the circumvention or violation of, any
  2279  // terms of an Apple operating system software license agreement.
  2280  //
  2281  // Please obtain a copy of the License at
  2282  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2283  //
  2284  // The Original Code and all software distributed under the License are
  2285  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2286  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2287  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2288  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2289  // Please see the License for the specific language governing rights and
  2290  // limitations under the License.
  2291  //
  2292  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2293  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  2294  // Copyright (c) 1982, 1986, 1991, 1993, 1994
  2295  //	The Regents of the University of California.  All rights reserved.
  2296  // (c) UNIX System Laboratories, Inc.
  2297  // All or some portions of this file are derived from material licensed
  2298  // to the University of California by American Telephone and Telegraph
  2299  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  2300  // the permission of UNIX System Laboratories, Inc.
  2301  //
  2302  // Redistribution and use in source and binary forms, with or without
  2303  // modification, are permitted provided that the following conditions
  2304  // are met:
  2305  // 1. Redistributions of source code must retain the above copyright
  2306  //    notice, this list of conditions and the following disclaimer.
  2307  // 2. Redistributions in binary form must reproduce the above copyright
  2308  //    notice, this list of conditions and the following disclaimer in the
  2309  //    documentation and/or other materials provided with the distribution.
  2310  // 3. All advertising materials mentioning features or use of this software
  2311  //    must display the following acknowledgement:
  2312  //	This product includes software developed by the University of
  2313  //	California, Berkeley and its contributors.
  2314  // 4. Neither the name of the University nor the names of its contributors
  2315  //    may be used to endorse or promote products derived from this software
  2316  //    without specific prior written permission.
  2317  //
  2318  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2319  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2320  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2321  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2322  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2323  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2324  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2325  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2326  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2327  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2328  // SUCH DAMAGE.
  2329  //
  2330  //	@(#)types.h	8.4 (Berkeley) 1/21/94
  2331  
  2332  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  2333  //
  2334  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2335  //
  2336  // This file contains Original Code and/or Modifications of Original Code
  2337  // as defined in and that are subject to the Apple Public Source License
  2338  // Version 2.0 (the 'License'). You may not use this file except in
  2339  // compliance with the License. The rights granted to you under the License
  2340  // may not be used to create, or enable the creation or redistribution of,
  2341  // unlawful or unlicensed copies of an Apple operating system, or to
  2342  // circumvent, violate, or enable the circumvention or violation of, any
  2343  // terms of an Apple operating system software license agreement.
  2344  //
  2345  // Please obtain a copy of the License at
  2346  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2347  //
  2348  // The Original Code and all software distributed under the License are
  2349  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2350  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2351  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2352  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2353  // Please see the License for the specific language governing rights and
  2354  // limitations under the License.
  2355  //
  2356  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2357  
  2358  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2359  //
  2360  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2361  //
  2362  // This file contains Original Code and/or Modifications of Original Code
  2363  // as defined in and that are subject to the Apple Public Source License
  2364  // Version 2.0 (the 'License'). You may not use this file except in
  2365  // compliance with the License. The rights granted to you under the License
  2366  // may not be used to create, or enable the creation or redistribution of,
  2367  // unlawful or unlicensed copies of an Apple operating system, or to
  2368  // circumvent, violate, or enable the circumvention or violation of, any
  2369  // terms of an Apple operating system software license agreement.
  2370  //
  2371  // Please obtain a copy of the License at
  2372  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2373  //
  2374  // The Original Code and all software distributed under the License are
  2375  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2376  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2377  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2378  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2379  // Please see the License for the specific language governing rights and
  2380  // limitations under the License.
  2381  //
  2382  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2383  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2384  // Copyright (c) 1991, 1993
  2385  //	The Regents of the University of California.  All rights reserved.
  2386  //
  2387  // This code is derived from software contributed to Berkeley by
  2388  // Berkeley Software Design, Inc.
  2389  //
  2390  // Redistribution and use in source and binary forms, with or without
  2391  // modification, are permitted provided that the following conditions
  2392  // are met:
  2393  // 1. Redistributions of source code must retain the above copyright
  2394  //    notice, this list of conditions and the following disclaimer.
  2395  // 2. Redistributions in binary form must reproduce the above copyright
  2396  //    notice, this list of conditions and the following disclaimer in the
  2397  //    documentation and/or other materials provided with the distribution.
  2398  // 3. All advertising materials mentioning features or use of this software
  2399  //    must display the following acknowledgement:
  2400  //	This product includes software developed by the University of
  2401  //	California, Berkeley and its contributors.
  2402  // 4. Neither the name of the University nor the names of its contributors
  2403  //    may be used to endorse or promote products derived from this software
  2404  //    without specific prior written permission.
  2405  //
  2406  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2407  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2408  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2409  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2410  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2411  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2412  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2413  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2414  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2415  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2416  // SUCH DAMAGE.
  2417  //
  2418  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2419  
  2420  // This SDK is designed to work with clang and specific versions of
  2421  // gcc >= 4.0 with Apple's patch sets
  2422  
  2423  // Compatibility with compilers and environments that don't support compiler
  2424  // feature checking function-like macros.
  2425  
  2426  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  2427  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  2428  // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  2429  // in between its arguments.  __CONCAT can also concatenate double-quoted
  2430  // strings produced by the __STRING macro, but this only works with ANSI C.
  2431  
  2432  // __pure2 can be used for functions that are only a function of their scalar
  2433  // arguments (meaning they can't dereference pointers).
  2434  //
  2435  // __stateful_pure can be used for functions that have no side effects,
  2436  // but depend on the state of the memory.
  2437  
  2438  // __unused denotes variables and functions that may not be used, preventing
  2439  // the compiler from warning about it if not used.
  2440  
  2441  // __used forces variables and functions to be included even if it appears
  2442  // to the compiler that they are not used (and would thust be discarded).
  2443  
  2444  // __cold marks code used for debugging or that is rarely taken
  2445  // and tells the compiler to optimize for size and outline code.
  2446  
  2447  // __exported denotes symbols that should be exported even when symbols
  2448  // are hidden by default.
  2449  // __exported_push/_exported_pop are pragmas used to delimit a range of
  2450  //  symbols that should be exported even when symbols are hidden by default.
  2451  
  2452  // __deprecated causes the compiler to produce a warning when encountering
  2453  // code using the deprecated functionality.
  2454  // __deprecated_msg() does the same, and compilers that support it will print
  2455  // a message along with the deprecation warning.
  2456  // This may require turning on such warning with the -Wdeprecated flag.
  2457  // __deprecated_enum_msg() should be used on enums, and compilers that support
  2458  // it will print the deprecation warning.
  2459  // __kpi_deprecated() specifically indicates deprecation of kernel programming
  2460  // interfaces in Kernel.framework used by KEXTs.
  2461  
  2462  // __unavailable causes the compiler to error out when encountering
  2463  // code using the tagged function
  2464  
  2465  // Delete pseudo-keywords wherever they are not available or needed.
  2466  
  2467  // We use `__restrict' as a way to define the `restrict' type qualifier
  2468  // without disturbing older software that is unaware of C99 keywords.
  2469  
  2470  // Compatibility with compilers and environments that don't support the
  2471  // nullability feature.
  2472  
  2473  // __disable_tail_calls causes the compiler to not perform tail call
  2474  // optimization inside the marked function.
  2475  
  2476  // __not_tail_called causes the compiler to prevent tail call optimization
  2477  // on statically bound calls to the function.  It has no effect on indirect
  2478  // calls.  Virtual functions, objective-c methods, and functions marked as
  2479  // "always_inline" cannot be marked as __not_tail_called.
  2480  
  2481  // __result_use_check warns callers of a function that not using the function
  2482  // return value is a bug, i.e. dismissing malloc() return value results in a
  2483  // memory leak.
  2484  
  2485  // __swift_unavailable causes the compiler to mark a symbol as specifically
  2486  // unavailable in Swift, regardless of any other availability in C.
  2487  
  2488  // __abortlike is the attribute to put on functions like abort() that are
  2489  // typically used to mark assertions. These optimize the codegen
  2490  // for outlining while still maintaining debugability.
  2491  
  2492  // Declaring inline functions within headers is error-prone due to differences
  2493  // across various versions of the C language and extensions.  __header_inline
  2494  // can be used to declare inline functions within system headers.  In cases
  2495  // where you want to force inlining instead of letting the compiler make
  2496  // the decision, you can use __header_always_inline.
  2497  //
  2498  // Be aware that using inline for functions which compilers may also provide
  2499  // builtins can behave differently under various compilers.  If you intend to
  2500  // provide an inline version of such a function, you may want to use a macro
  2501  // instead.
  2502  //
  2503  // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  2504  // support c99 inline in some cases:
  2505  // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  2506  
  2507  // Compiler-dependent macros that bracket portions of code where the
  2508  // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  2509  
  2510  // Compiler-dependent macros to declare that functions take printf-like
  2511  // or scanf-like arguments.  They are null except for versions of gcc
  2512  // that are known to support the features properly.  Functions declared
  2513  // with these attributes will cause compilation warnings if there is a
  2514  // mismatch between the format string and subsequent function parameter
  2515  // types.
  2516  
  2517  // Source compatibility only, ID string not emitted in object file
  2518  
  2519  // __alloc_size can be used to label function arguments that represent the
  2520  // size of memory that the function allocates and returns. The one-argument
  2521  // form labels a single argument that gives the allocation size (where the
  2522  // arguments are numbered from 1):
  2523  //
  2524  // void	*malloc(size_t __size) __alloc_size(1);
  2525  //
  2526  // The two-argument form handles the case where the size is calculated as the
  2527  // product of two arguments:
  2528  //
  2529  // void	*calloc(size_t __count, size_t __size) __alloc_size(1,2);
  2530  
  2531  // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  2532  //
  2533  // DEFAULT	By default newly complied code will get POSIX APIs plus
  2534  //		Apple API extensions in scope.
  2535  //
  2536  //		Most users will use this compilation environment to avoid
  2537  //		behavioral differences between 32 and 64 bit code.
  2538  //
  2539  // LEGACY	Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  2540  //		API extensions in scope.
  2541  //
  2542  //		This is generally equivalent to the Tiger release compilation
  2543  //		environment, except that it cannot be applied to 64 bit code;
  2544  //		its use is discouraged.
  2545  //
  2546  //		We expect this environment to be deprecated in the future.
  2547  //
  2548  // STRICT	Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  2549  //		available APIs to exactly the set of APIs defined by the
  2550  //		corresponding standard, based on the value defined.
  2551  //
  2552  //		A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  2553  //		A correct, portable definition for _XOPEN_SOURCE is 600L.
  2554  //
  2555  //		Apple API extensions are not visible in this environment,
  2556  //		which can cause Apple specific code to fail to compile,
  2557  //		or behave incorrectly if prototypes are not in scope or
  2558  //		warnings about missing prototypes are not enabled or ignored.
  2559  //
  2560  // In any compilation environment, for correct symbol resolution to occur,
  2561  // function prototypes must be in scope.  It is recommended that all Apple
  2562  // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  2563  // compiler flags to their projects to be warned when a function is being
  2564  // used without a prototype in scope.
  2565  
  2566  // These settings are particular to each product.
  2567  // Platform: MacOSX
  2568  
  2569  // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  2570  // legacy code to use the old symbol, thus maintaining binary compatibility
  2571  // while new code can use a standards compliant version of the same function.
  2572  //
  2573  // __DARWIN_ALIAS is used by itself if the function signature has not
  2574  // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  2575  // if the signature has changed.  Because the __LP64__ environment
  2576  // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  2577  // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  2578  //
  2579  // As a special case, when XCode is used to target a specific version of the
  2580  // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  2581  // will be defined by the compiler, with the digits representing major version
  2582  // time 100 + minor version times 10 (e.g. 10.5 := 1050).  If we are targeting
  2583  // pre-10.5, and it is the default compilation environment, revert the
  2584  // compilation environment to pre-__DARWIN_UNIX03.
  2585  
  2586  // symbol suffixes used for symbol versioning
  2587  
  2588  // symbol versioning macros
  2589  
  2590  // symbol release macros
  2591  // Copyright (c) 2010 Apple Inc. All rights reserved.
  2592  //
  2593  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2594  //
  2595  // This file contains Original Code and/or Modifications of Original Code
  2596  // as defined in and that are subject to the Apple Public Source License
  2597  // Version 2.0 (the 'License'). You may not use this file except in
  2598  // compliance with the License. The rights granted to you under the License
  2599  // may not be used to create, or enable the creation or redistribution of,
  2600  // unlawful or unlicensed copies of an Apple operating system, or to
  2601  // circumvent, violate, or enable the circumvention or violation of, any
  2602  // terms of an Apple operating system software license agreement.
  2603  //
  2604  // Please obtain a copy of the License at
  2605  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2606  //
  2607  // The Original Code and all software distributed under the License are
  2608  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2609  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2610  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2611  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2612  // Please see the License for the specific language governing rights and
  2613  // limitations under the License.
  2614  //
  2615  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2616  
  2617  // POSIX.1 requires that the macros we test be defined before any standard
  2618  // header file is included.  This permits us to convert values for feature
  2619  // testing, as necessary, using only _POSIX_C_SOURCE.
  2620  //
  2621  // Here's a quick run-down of the versions:
  2622  //  defined(_POSIX_SOURCE)		1003.1-1988
  2623  //  _POSIX_C_SOURCE == 1L		1003.1-1990
  2624  //  _POSIX_C_SOURCE == 2L		1003.2-1992 C Language Binding Option
  2625  //  _POSIX_C_SOURCE == 199309L		1003.1b-1993
  2626  //  _POSIX_C_SOURCE == 199506L		1003.1c-1995, 1003.1i-1995,
  2627  //					and the omnibus ISO/IEC 9945-1: 1996
  2628  //  _POSIX_C_SOURCE == 200112L		1003.1-2001
  2629  //  _POSIX_C_SOURCE == 200809L		1003.1-2008
  2630  //
  2631  // In addition, the X/Open Portability Guide, which is now the Single UNIX
  2632  // Specification, defines a feature-test macro which indicates the version of
  2633  // that specification, and which subsumes _POSIX_C_SOURCE.
  2634  
  2635  // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  2636  
  2637  // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  2638  
  2639  // Deal with various X/Open Portability Guides and Single UNIX Spec.
  2640  
  2641  // Deal with all versions of POSIX.  The ordering relative to the tests above is
  2642  // important.
  2643  
  2644  // POSIX C deprecation macros
  2645  // Copyright (c) 2010 Apple Inc. All rights reserved.
  2646  //
  2647  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2648  //
  2649  // This file contains Original Code and/or Modifications of Original Code
  2650  // as defined in and that are subject to the Apple Public Source License
  2651  // Version 2.0 (the 'License'). You may not use this file except in
  2652  // compliance with the License. The rights granted to you under the License
  2653  // may not be used to create, or enable the creation or redistribution of,
  2654  // unlawful or unlicensed copies of an Apple operating system, or to
  2655  // circumvent, violate, or enable the circumvention or violation of, any
  2656  // terms of an Apple operating system software license agreement.
  2657  //
  2658  // Please obtain a copy of the License at
  2659  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2660  //
  2661  // The Original Code and all software distributed under the License are
  2662  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2663  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2664  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2665  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2666  // Please see the License for the specific language governing rights and
  2667  // limitations under the License.
  2668  //
  2669  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2670  
  2671  // Set a single macro which will always be defined and can be used to determine
  2672  // the appropriate namespace.  For POSIX, these values will correspond to
  2673  // _POSIX_C_SOURCE value.  Currently there are two additional levels corresponding
  2674  // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  2675  
  2676  // If the developer has neither requested a strict language mode nor a version
  2677  // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  2678  // of __DARWIN_C_FULL.
  2679  
  2680  // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  2681  // c99 still want long longs.  While not perfect, we allow long longs for
  2682  // g++.
  2683  
  2684  // ****************************************
  2685  //
  2686  //  Public darwin-specific feature macros
  2687  //
  2688  
  2689  // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  2690  // structures modified for 64-bit inodes (like struct stat) will be used.
  2691  
  2692  // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  2693  // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  2694  // (and non-zero).  There is no struct stat64 either, as the regular
  2695  // struct stat will already be the 64-bit version.
  2696  
  2697  // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  2698  // in 10.5 exists; no pre-10.5 variants are available.
  2699  
  2700  // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  2701  // are available (the legacy BSD APIs are not available)
  2702  
  2703  // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  2704  // and specifies the conformance level (3 is SUSv3)
  2705  
  2706  // This macro casts away the qualifier from the variable
  2707  //
  2708  // Note: use at your own risk, removing qualifiers can result in
  2709  // catastrophic run-time failures.
  2710  
  2711  // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  2712  // used from other compilation units, but not other libraries or executables.
  2713  
  2714  // Architecture validation for current SDK
  2715  
  2716  // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  2717  //
  2718  // This provides more advanced type checking on compilers supporting
  2719  // the proper extensions, even in C.
  2720  
  2721  // Machine type dependent parameters.
  2722  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2723  //
  2724  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2725  //
  2726  // This file contains Original Code and/or Modifications of Original Code
  2727  // as defined in and that are subject to the Apple Public Source License
  2728  // Version 2.0 (the 'License'). You may not use this file except in
  2729  // compliance with the License. The rights granted to you under the License
  2730  // may not be used to create, or enable the creation or redistribution of,
  2731  // unlawful or unlicensed copies of an Apple operating system, or to
  2732  // circumvent, violate, or enable the circumvention or violation of, any
  2733  // terms of an Apple operating system software license agreement.
  2734  //
  2735  // Please obtain a copy of the License at
  2736  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2737  //
  2738  // The Original Code and all software distributed under the License are
  2739  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2740  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2741  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2742  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2743  // Please see the License for the specific language governing rights and
  2744  // limitations under the License.
  2745  //
  2746  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2747  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2748  
  2749  // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  2750  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2751  // Copyright (c) 1990, 1993
  2752  //	The Regents of the University of California.  All rights reserved.
  2753  //
  2754  // Redistribution and use in source and binary forms, with or without
  2755  // modification, are permitted provided that the following conditions
  2756  // are met:
  2757  // 1. Redistributions of source code must retain the above copyright
  2758  //    notice, this list of conditions and the following disclaimer.
  2759  // 2. Redistributions in binary form must reproduce the above copyright
  2760  //    notice, this list of conditions and the following disclaimer in the
  2761  //    documentation and/or other materials provided with the distribution.
  2762  // 3. All advertising materials mentioning features or use of this software
  2763  //    must display the following acknowledgement:
  2764  //	This product includes software developed by the University of
  2765  //	California, Berkeley and its contributors.
  2766  // 4. Neither the name of the University nor the names of its contributors
  2767  //    may be used to endorse or promote products derived from this software
  2768  //    without specific prior written permission.
  2769  //
  2770  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2771  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2772  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2773  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2774  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2775  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2776  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2777  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2778  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2779  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2780  // SUCH DAMAGE.
  2781  //
  2782  //	@(#)types.h	8.3 (Berkeley) 1/5/94
  2783  
  2784  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2785  
  2786  // This header file contains integer types.  It's intended to also contain
  2787  // flotaing point and other arithmetic types, as needed, later.
  2788  
  2789  type X__int8_t = int8     /* _types.h:15:33 */
  2790  type X__uint8_t = uint8   /* _types.h:19:33 */
  2791  type X__int16_t = int16   /* _types.h:20:33 */
  2792  type X__uint16_t = uint16 /* _types.h:21:33 */
  2793  type X__int32_t = int32   /* _types.h:22:33 */
  2794  type X__uint32_t = uint32 /* _types.h:23:33 */
  2795  type X__int64_t = int64   /* _types.h:24:33 */
  2796  type X__uint64_t = uint64 /* _types.h:25:33 */
  2797  
  2798  type X__darwin_intptr_t = int64   /* _types.h:27:33 */
  2799  type X__darwin_natural_t = uint32 /* _types.h:28:33 */
  2800  
  2801  // The rune type below is declared to be an ``int'' instead of the more natural
  2802  // ``unsigned long'' or ``long''.  Two things are happening here.  It is not
  2803  // unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,
  2804  // it looks like 10646 will be a 31 bit standard.  This means that if your
  2805  // ints cannot hold 32 bits, you will be in trouble.  The reason an int was
  2806  // chosen over a long is that the is*() and to*() routines take ints (says
  2807  // ANSI C), but they use __darwin_ct_rune_t instead of int.  By changing it
  2808  // here, you lose a bit of ANSI conformance, but your programs will still
  2809  // work.
  2810  //
  2811  // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  2812  // be instantiated outside of lib/libc/locale.  Use wchar_t.  wchar_t and
  2813  // rune_t must be the same type.  Also wint_t must be no narrower than
  2814  // wchar_t, and should also be able to hold all members of the largest
  2815  // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  2816  
  2817  type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
  2818  
  2819  // mbstate_t is an opaque object to keep conversion state, during multibyte
  2820  // stream conversions.  The content must not be referenced by user programs.
  2821  type X__mbstate_t = struct {
  2822  	F__ccgo_pad1 [0]uint64
  2823  	F__mbstate8  [128]int8
  2824  } /* _types.h:57:3 */
  2825  
  2826  type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
  2827  
  2828  type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
  2829  
  2830  type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
  2831  
  2832  type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
  2833  
  2834  type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
  2835  
  2836  type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
  2837  
  2838  type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
  2839  
  2840  type X__darwin_clock_t = uint64        /* _types.h:95:33 */ // clock()
  2841  type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
  2842  type X__darwin_ssize_t = int64         /* _types.h:97:33 */ // byte count or error
  2843  type X__darwin_time_t = int64          /* _types.h:98:33 */ // time()
  2844  
  2845  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  2846  //
  2847  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2848  //
  2849  // This file contains Original Code and/or Modifications of Original Code
  2850  // as defined in and that are subject to the Apple Public Source License
  2851  // Version 2.0 (the 'License'). You may not use this file except in
  2852  // compliance with the License. The rights granted to you under the License
  2853  // may not be used to create, or enable the creation or redistribution of,
  2854  // unlawful or unlicensed copies of an Apple operating system, or to
  2855  // circumvent, violate, or enable the circumvention or violation of, any
  2856  // terms of an Apple operating system software license agreement.
  2857  //
  2858  // Please obtain a copy of the License at
  2859  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2860  //
  2861  // The Original Code and all software distributed under the License are
  2862  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2863  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2864  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2865  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2866  // Please see the License for the specific language governing rights and
  2867  // limitations under the License.
  2868  //
  2869  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2870  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2871  // Copyright (c) 1991, 1993
  2872  //	The Regents of the University of California.  All rights reserved.
  2873  //
  2874  // This code is derived from software contributed to Berkeley by
  2875  // Berkeley Software Design, Inc.
  2876  //
  2877  // Redistribution and use in source and binary forms, with or without
  2878  // modification, are permitted provided that the following conditions
  2879  // are met:
  2880  // 1. Redistributions of source code must retain the above copyright
  2881  //    notice, this list of conditions and the following disclaimer.
  2882  // 2. Redistributions in binary form must reproduce the above copyright
  2883  //    notice, this list of conditions and the following disclaimer in the
  2884  //    documentation and/or other materials provided with the distribution.
  2885  // 3. All advertising materials mentioning features or use of this software
  2886  //    must display the following acknowledgement:
  2887  //	This product includes software developed by the University of
  2888  //	California, Berkeley and its contributors.
  2889  // 4. Neither the name of the University nor the names of its contributors
  2890  //    may be used to endorse or promote products derived from this software
  2891  //    without specific prior written permission.
  2892  //
  2893  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2894  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2895  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2896  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2897  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2898  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2899  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2900  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2901  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2902  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2903  // SUCH DAMAGE.
  2904  //
  2905  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  2906  
  2907  // Basic integral types.  Omit the typedef if
  2908  // not possible for a machine/compiler combination.
  2909  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2910  //
  2911  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2912  //
  2913  // This file contains Original Code and/or Modifications of Original Code
  2914  // as defined in and that are subject to the Apple Public Source License
  2915  // Version 2.0 (the 'License'). You may not use this file except in
  2916  // compliance with the License. The rights granted to you under the License
  2917  // may not be used to create, or enable the creation or redistribution of,
  2918  // unlawful or unlicensed copies of an Apple operating system, or to
  2919  // circumvent, violate, or enable the circumvention or violation of, any
  2920  // terms of an Apple operating system software license agreement.
  2921  //
  2922  // Please obtain a copy of the License at
  2923  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2924  //
  2925  // The Original Code and all software distributed under the License are
  2926  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2927  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2928  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2929  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2930  // Please see the License for the specific language governing rights and
  2931  // limitations under the License.
  2932  //
  2933  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2934  type Int8_t = int8 /* _int8_t.h:30:31 */
  2935  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2936  //
  2937  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2938  //
  2939  // This file contains Original Code and/or Modifications of Original Code
  2940  // as defined in and that are subject to the Apple Public Source License
  2941  // Version 2.0 (the 'License'). You may not use this file except in
  2942  // compliance with the License. The rights granted to you under the License
  2943  // may not be used to create, or enable the creation or redistribution of,
  2944  // unlawful or unlicensed copies of an Apple operating system, or to
  2945  // circumvent, violate, or enable the circumvention or violation of, any
  2946  // terms of an Apple operating system software license agreement.
  2947  //
  2948  // Please obtain a copy of the License at
  2949  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2950  //
  2951  // The Original Code and all software distributed under the License are
  2952  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2953  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2954  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2955  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2956  // Please see the License for the specific language governing rights and
  2957  // limitations under the License.
  2958  //
  2959  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2960  type Int16_t = int16 /* _int16_t.h:30:33 */
  2961  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2962  //
  2963  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2964  //
  2965  // This file contains Original Code and/or Modifications of Original Code
  2966  // as defined in and that are subject to the Apple Public Source License
  2967  // Version 2.0 (the 'License'). You may not use this file except in
  2968  // compliance with the License. The rights granted to you under the License
  2969  // may not be used to create, or enable the creation or redistribution of,
  2970  // unlawful or unlicensed copies of an Apple operating system, or to
  2971  // circumvent, violate, or enable the circumvention or violation of, any
  2972  // terms of an Apple operating system software license agreement.
  2973  //
  2974  // Please obtain a copy of the License at
  2975  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2976  //
  2977  // The Original Code and all software distributed under the License are
  2978  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2979  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2980  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2981  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2982  // Please see the License for the specific language governing rights and
  2983  // limitations under the License.
  2984  //
  2985  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2986  type Int32_t = int32 /* _int32_t.h:30:33 */
  2987  // Copyright (c) 2012 Apple Inc. All rights reserved.
  2988  //
  2989  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2990  //
  2991  // This file contains Original Code and/or Modifications of Original Code
  2992  // as defined in and that are subject to the Apple Public Source License
  2993  // Version 2.0 (the 'License'). You may not use this file except in
  2994  // compliance with the License. The rights granted to you under the License
  2995  // may not be used to create, or enable the creation or redistribution of,
  2996  // unlawful or unlicensed copies of an Apple operating system, or to
  2997  // circumvent, violate, or enable the circumvention or violation of, any
  2998  // terms of an Apple operating system software license agreement.
  2999  //
  3000  // Please obtain a copy of the License at
  3001  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3002  //
  3003  // The Original Code and all software distributed under the License are
  3004  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3005  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3006  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3007  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3008  // Please see the License for the specific language governing rights and
  3009  // limitations under the License.
  3010  //
  3011  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3012  type Int64_t = int64 /* _int64_t.h:30:33 */
  3013  
  3014  // Copyright (c) 2016 Apple Inc. All rights reserved.
  3015  //
  3016  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3017  //
  3018  // This file contains Original Code and/or Modifications of Original Code
  3019  // as defined in and that are subject to the Apple Public Source License
  3020  // Version 2.0 (the 'License'). You may not use this file except in
  3021  // compliance with the License. The rights granted to you under the License
  3022  // may not be used to create, or enable the creation or redistribution of,
  3023  // unlawful or unlicensed copies of an Apple operating system, or to
  3024  // circumvent, violate, or enable the circumvention or violation of, any
  3025  // terms of an Apple operating system software license agreement.
  3026  //
  3027  // Please obtain a copy of the License at
  3028  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3029  //
  3030  // The Original Code and all software distributed under the License are
  3031  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3032  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3033  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3034  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3035  // Please see the License for the specific language governing rights and
  3036  // limitations under the License.
  3037  //
  3038  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3039  type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  3040  // Copyright (c) 2012 Apple Inc. All rights reserved.
  3041  //
  3042  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3043  //
  3044  // This file contains Original Code and/or Modifications of Original Code
  3045  // as defined in and that are subject to the Apple Public Source License
  3046  // Version 2.0 (the 'License'). You may not use this file except in
  3047  // compliance with the License. The rights granted to you under the License
  3048  // may not be used to create, or enable the creation or redistribution of,
  3049  // unlawful or unlicensed copies of an Apple operating system, or to
  3050  // circumvent, violate, or enable the circumvention or violation of, any
  3051  // terms of an Apple operating system software license agreement.
  3052  //
  3053  // Please obtain a copy of the License at
  3054  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3055  //
  3056  // The Original Code and all software distributed under the License are
  3057  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3058  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3059  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3060  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3061  // Please see the License for the specific language governing rights and
  3062  // limitations under the License.
  3063  //
  3064  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3065  type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  3066  // Copyright (c) 2012 Apple Inc. All rights reserved.
  3067  //
  3068  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3069  //
  3070  // This file contains Original Code and/or Modifications of Original Code
  3071  // as defined in and that are subject to the Apple Public Source License
  3072  // Version 2.0 (the 'License'). You may not use this file except in
  3073  // compliance with the License. The rights granted to you under the License
  3074  // may not be used to create, or enable the creation or redistribution of,
  3075  // unlawful or unlicensed copies of an Apple operating system, or to
  3076  // circumvent, violate, or enable the circumvention or violation of, any
  3077  // terms of an Apple operating system software license agreement.
  3078  //
  3079  // Please obtain a copy of the License at
  3080  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3081  //
  3082  // The Original Code and all software distributed under the License are
  3083  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3084  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3085  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3086  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3087  // Please see the License for the specific language governing rights and
  3088  // limitations under the License.
  3089  //
  3090  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3091  type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  3092  // Copyright (c) 2012 Apple Inc. All rights reserved.
  3093  //
  3094  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3095  //
  3096  // This file contains Original Code and/or Modifications of Original Code
  3097  // as defined in and that are subject to the Apple Public Source License
  3098  // Version 2.0 (the 'License'). You may not use this file except in
  3099  // compliance with the License. The rights granted to you under the License
  3100  // may not be used to create, or enable the creation or redistribution of,
  3101  // unlawful or unlicensed copies of an Apple operating system, or to
  3102  // circumvent, violate, or enable the circumvention or violation of, any
  3103  // terms of an Apple operating system software license agreement.
  3104  //
  3105  // Please obtain a copy of the License at
  3106  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3107  //
  3108  // The Original Code and all software distributed under the License are
  3109  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3110  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3111  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3112  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3113  // Please see the License for the specific language governing rights and
  3114  // limitations under the License.
  3115  //
  3116  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3117  type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  3118  
  3119  type Register_t = Int64_t /* types.h:66:33 */
  3120  
  3121  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3122  //
  3123  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3124  //
  3125  // This file contains Original Code and/or Modifications of Original Code
  3126  // as defined in and that are subject to the Apple Public Source License
  3127  // Version 2.0 (the 'License'). You may not use this file except in
  3128  // compliance with the License. The rights granted to you under the License
  3129  // may not be used to create, or enable the creation or redistribution of,
  3130  // unlawful or unlicensed copies of an Apple operating system, or to
  3131  // circumvent, violate, or enable the circumvention or violation of, any
  3132  // terms of an Apple operating system software license agreement.
  3133  //
  3134  // Please obtain a copy of the License at
  3135  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3136  //
  3137  // The Original Code and all software distributed under the License are
  3138  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3139  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3140  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3141  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3142  // Please see the License for the specific language governing rights and
  3143  // limitations under the License.
  3144  //
  3145  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3146  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3147  //
  3148  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3149  //
  3150  // This file contains Original Code and/or Modifications of Original Code
  3151  // as defined in and that are subject to the Apple Public Source License
  3152  // Version 2.0 (the 'License'). You may not use this file except in
  3153  // compliance with the License. The rights granted to you under the License
  3154  // may not be used to create, or enable the creation or redistribution of,
  3155  // unlawful or unlicensed copies of an Apple operating system, or to
  3156  // circumvent, violate, or enable the circumvention or violation of, any
  3157  // terms of an Apple operating system software license agreement.
  3158  //
  3159  // Please obtain a copy of the License at
  3160  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3161  //
  3162  // The Original Code and all software distributed under the License are
  3163  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3164  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3165  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3166  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3167  // Please see the License for the specific language governing rights and
  3168  // limitations under the License.
  3169  //
  3170  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3171  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3172  
  3173  type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  3174  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  3175  //
  3176  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3177  //
  3178  // This file contains Original Code and/or Modifications of Original Code
  3179  // as defined in and that are subject to the Apple Public Source License
  3180  // Version 2.0 (the 'License'). You may not use this file except in
  3181  // compliance with the License. The rights granted to you under the License
  3182  // may not be used to create, or enable the creation or redistribution of,
  3183  // unlawful or unlicensed copies of an Apple operating system, or to
  3184  // circumvent, violate, or enable the circumvention or violation of, any
  3185  // terms of an Apple operating system software license agreement.
  3186  //
  3187  // Please obtain a copy of the License at
  3188  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3189  //
  3190  // The Original Code and all software distributed under the License are
  3191  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3192  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3193  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3194  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3195  // Please see the License for the specific language governing rights and
  3196  // limitations under the License.
  3197  //
  3198  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3199  
  3200  type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
  3201  
  3202  // These types are used for reserving the largest possible size.
  3203  type User_addr_t = U_int64_t  /* types.h:77:33 */
  3204  type User_size_t = U_int64_t  /* types.h:78:33 */
  3205  type User_ssize_t = Int64_t   /* types.h:79:33 */
  3206  type User_long_t = Int64_t    /* types.h:80:33 */
  3207  type User_ulong_t = U_int64_t /* types.h:81:33 */
  3208  type User_time_t = Int64_t    /* types.h:82:33 */
  3209  type User_off_t = Int64_t     /* types.h:83:33 */
  3210  
  3211  // This defines the size of syscall arguments after copying into the kernel:
  3212  type Syscall_arg_t = U_int64_t /* types.h:104:33 */
  3213  
  3214  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3215  //
  3216  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3217  //
  3218  // This file contains Original Code and/or Modifications of Original Code
  3219  // as defined in and that are subject to the Apple Public Source License
  3220  // Version 2.0 (the 'License'). You may not use this file except in
  3221  // compliance with the License. The rights granted to you under the License
  3222  // may not be used to create, or enable the creation or redistribution of,
  3223  // unlawful or unlicensed copies of an Apple operating system, or to
  3224  // circumvent, violate, or enable the circumvention or violation of, any
  3225  // terms of an Apple operating system software license agreement.
  3226  //
  3227  // Please obtain a copy of the License at
  3228  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3229  //
  3230  // The Original Code and all software distributed under the License are
  3231  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3232  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3233  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3234  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3235  // Please see the License for the specific language governing rights and
  3236  // limitations under the License.
  3237  //
  3238  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3239  
  3240  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  3241  //
  3242  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3243  //
  3244  // This file contains Original Code and/or Modifications of Original Code
  3245  // as defined in and that are subject to the Apple Public Source License
  3246  // Version 2.0 (the 'License'). You may not use this file except in
  3247  // compliance with the License. The rights granted to you under the License
  3248  // may not be used to create, or enable the creation or redistribution of,
  3249  // unlawful or unlicensed copies of an Apple operating system, or to
  3250  // circumvent, violate, or enable the circumvention or violation of, any
  3251  // terms of an Apple operating system software license agreement.
  3252  //
  3253  // Please obtain a copy of the License at
  3254  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3255  //
  3256  // The Original Code and all software distributed under the License are
  3257  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3258  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3259  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3260  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3261  // Please see the License for the specific language governing rights and
  3262  // limitations under the License.
  3263  //
  3264  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3265  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3266  // Copyright (c) 1991, 1993
  3267  //	The Regents of the University of California.  All rights reserved.
  3268  //
  3269  // This code is derived from software contributed to Berkeley by
  3270  // Berkeley Software Design, Inc.
  3271  //
  3272  // Redistribution and use in source and binary forms, with or without
  3273  // modification, are permitted provided that the following conditions
  3274  // are met:
  3275  // 1. Redistributions of source code must retain the above copyright
  3276  //    notice, this list of conditions and the following disclaimer.
  3277  // 2. Redistributions in binary form must reproduce the above copyright
  3278  //    notice, this list of conditions and the following disclaimer in the
  3279  //    documentation and/or other materials provided with the distribution.
  3280  // 3. All advertising materials mentioning features or use of this software
  3281  //    must display the following acknowledgement:
  3282  //	This product includes software developed by the University of
  3283  //	California, Berkeley and its contributors.
  3284  // 4. Neither the name of the University nor the names of its contributors
  3285  //    may be used to endorse or promote products derived from this software
  3286  //    without specific prior written permission.
  3287  //
  3288  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3289  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3290  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3291  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3292  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3293  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3294  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3295  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3296  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3297  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3298  // SUCH DAMAGE.
  3299  //
  3300  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  3301  
  3302  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3303  //
  3304  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3305  //
  3306  // This file contains Original Code and/or Modifications of Original Code
  3307  // as defined in and that are subject to the Apple Public Source License
  3308  // Version 2.0 (the 'License'). You may not use this file except in
  3309  // compliance with the License. The rights granted to you under the License
  3310  // may not be used to create, or enable the creation or redistribution of,
  3311  // unlawful or unlicensed copies of an Apple operating system, or to
  3312  // circumvent, violate, or enable the circumvention or violation of, any
  3313  // terms of an Apple operating system software license agreement.
  3314  //
  3315  // Please obtain a copy of the License at
  3316  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3317  //
  3318  // The Original Code and all software distributed under the License are
  3319  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3320  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3321  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3322  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3323  // Please see the License for the specific language governing rights and
  3324  // limitations under the License.
  3325  //
  3326  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3327  
  3328  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3329  
  3330  // Type definitions; takes common type definitions that must be used
  3331  // in multiple header files due to [XSI], removes them from the system
  3332  // space, and puts them in the implementation space.
  3333  
  3334  type X__darwin_blkcnt_t = X__int64_t                    /* _types.h:55:25 */ // total blocks
  3335  type X__darwin_blksize_t = X__int32_t                   /* _types.h:56:25 */ // preferred block size
  3336  type X__darwin_dev_t = X__int32_t                       /* _types.h:57:25 */ // dev_t
  3337  type X__darwin_fsblkcnt_t = uint32                      /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  3338  type X__darwin_fsfilcnt_t = uint32                      /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  3339  type X__darwin_gid_t = X__uint32_t                      /* _types.h:60:25 */ // [???] process and group IDs
  3340  type X__darwin_id_t = X__uint32_t                       /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  3341  type X__darwin_ino64_t = X__uint64_t                    /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  3342  type X__darwin_ino_t = X__darwin_ino64_t                /* _types.h:64:26 */ // [???] Used for inodes
  3343  type X__darwin_mach_port_name_t = X__darwin_natural_t   /* _types.h:68:28 */ // Used by mach
  3344  type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  3345  type X__darwin_mode_t = X__uint16_t                     /* _types.h:70:25 */ // [???] Some file attributes
  3346  type X__darwin_off_t = X__int64_t                       /* _types.h:71:25 */ // [???] Used for file sizes
  3347  type X__darwin_pid_t = X__int32_t                       /* _types.h:72:25 */ // [???] process and group IDs
  3348  type X__darwin_sigset_t = X__uint32_t                   /* _types.h:73:25 */ // [???] signal set
  3349  type X__darwin_suseconds_t = X__int32_t                 /* _types.h:74:25 */ // [???] microseconds
  3350  type X__darwin_uid_t = X__uint32_t                      /* _types.h:75:25 */ // [???] user IDs
  3351  type X__darwin_useconds_t = X__uint32_t                 /* _types.h:76:25 */ // [???] microseconds
  3352  type X__darwin_uuid_t = [16]uint8                       /* _types.h:77:25 */
  3353  type X__darwin_uuid_string_t = [37]int8                 /* _types.h:78:17 */
  3354  
  3355  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  3356  //
  3357  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3358  //
  3359  // This file contains Original Code and/or Modifications of Original Code
  3360  // as defined in and that are subject to the Apple Public Source License
  3361  // Version 2.0 (the 'License'). You may not use this file except in
  3362  // compliance with the License. The rights granted to you under the License
  3363  // may not be used to create, or enable the creation or redistribution of,
  3364  // unlawful or unlicensed copies of an Apple operating system, or to
  3365  // circumvent, violate, or enable the circumvention or violation of, any
  3366  // terms of an Apple operating system software license agreement.
  3367  //
  3368  // Please obtain a copy of the License at
  3369  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3370  //
  3371  // The Original Code and all software distributed under the License are
  3372  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3373  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3374  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3375  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3376  // Please see the License for the specific language governing rights and
  3377  // limitations under the License.
  3378  //
  3379  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3380  
  3381  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  3382  //
  3383  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3384  //
  3385  // This file contains Original Code and/or Modifications of Original Code
  3386  // as defined in and that are subject to the Apple Public Source License
  3387  // Version 2.0 (the 'License'). You may not use this file except in
  3388  // compliance with the License. The rights granted to you under the License
  3389  // may not be used to create, or enable the creation or redistribution of,
  3390  // unlawful or unlicensed copies of an Apple operating system, or to
  3391  // circumvent, violate, or enable the circumvention or violation of, any
  3392  // terms of an Apple operating system software license agreement.
  3393  //
  3394  // Please obtain a copy of the License at
  3395  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3396  //
  3397  // The Original Code and all software distributed under the License are
  3398  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3399  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3400  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3401  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3402  // Please see the License for the specific language governing rights and
  3403  // limitations under the License.
  3404  //
  3405  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3406  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3407  // Copyright (c) 1991, 1993
  3408  //	The Regents of the University of California.  All rights reserved.
  3409  //
  3410  // This code is derived from software contributed to Berkeley by
  3411  // Berkeley Software Design, Inc.
  3412  //
  3413  // Redistribution and use in source and binary forms, with or without
  3414  // modification, are permitted provided that the following conditions
  3415  // are met:
  3416  // 1. Redistributions of source code must retain the above copyright
  3417  //    notice, this list of conditions and the following disclaimer.
  3418  // 2. Redistributions in binary form must reproduce the above copyright
  3419  //    notice, this list of conditions and the following disclaimer in the
  3420  //    documentation and/or other materials provided with the distribution.
  3421  // 3. All advertising materials mentioning features or use of this software
  3422  //    must display the following acknowledgement:
  3423  //	This product includes software developed by the University of
  3424  //	California, Berkeley and its contributors.
  3425  // 4. Neither the name of the University nor the names of its contributors
  3426  //    may be used to endorse or promote products derived from this software
  3427  //    without specific prior written permission.
  3428  //
  3429  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3430  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3431  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3432  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3433  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3434  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3435  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3436  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3437  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3438  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3439  // SUCH DAMAGE.
  3440  //
  3441  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  3442  
  3443  // pthread opaque structures
  3444  
  3445  type X__darwin_pthread_handler_rec = struct {
  3446  	F__routine uintptr
  3447  	F__arg     uintptr
  3448  	F__next    uintptr
  3449  } /* _pthread_types.h:57:1 */
  3450  
  3451  type X_opaque_pthread_attr_t = struct {
  3452  	F__sig    int64
  3453  	F__opaque [56]int8
  3454  } /* _pthread_types.h:63:1 */
  3455  
  3456  type X_opaque_pthread_cond_t = struct {
  3457  	F__sig    int64
  3458  	F__opaque [40]int8
  3459  } /* _pthread_types.h:68:1 */
  3460  
  3461  type X_opaque_pthread_condattr_t = struct {
  3462  	F__sig    int64
  3463  	F__opaque [8]int8
  3464  } /* _pthread_types.h:73:1 */
  3465  
  3466  type X_opaque_pthread_mutex_t = struct {
  3467  	F__sig    int64
  3468  	F__opaque [56]int8
  3469  } /* _pthread_types.h:78:1 */
  3470  
  3471  type X_opaque_pthread_mutexattr_t = struct {
  3472  	F__sig    int64
  3473  	F__opaque [8]int8
  3474  } /* _pthread_types.h:83:1 */
  3475  
  3476  type X_opaque_pthread_once_t = struct {
  3477  	F__sig    int64
  3478  	F__opaque [8]int8
  3479  } /* _pthread_types.h:88:1 */
  3480  
  3481  type X_opaque_pthread_rwlock_t = struct {
  3482  	F__sig    int64
  3483  	F__opaque [192]int8
  3484  } /* _pthread_types.h:93:1 */
  3485  
  3486  type X_opaque_pthread_rwlockattr_t = struct {
  3487  	F__sig    int64
  3488  	F__opaque [16]int8
  3489  } /* _pthread_types.h:98:1 */
  3490  
  3491  type X_opaque_pthread_t = struct {
  3492  	F__sig           int64
  3493  	F__cleanup_stack uintptr
  3494  	F__opaque        [8176]int8
  3495  } /* _pthread_types.h:103:1 */
  3496  
  3497  type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t             /* _pthread_types.h:109:39 */
  3498  type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t             /* _pthread_types.h:110:39 */
  3499  type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t     /* _pthread_types.h:111:43 */
  3500  type X__darwin_pthread_key_t = uint64                               /* _pthread_types.h:112:23 */
  3501  type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t           /* _pthread_types.h:113:40 */
  3502  type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t   /* _pthread_types.h:114:44 */
  3503  type X__darwin_pthread_once_t = X_opaque_pthread_once_t             /* _pthread_types.h:115:39 */
  3504  type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t         /* _pthread_types.h:116:41 */
  3505  type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  3506  type X__darwin_pthread_t = uintptr                                  /* _pthread_types.h:118:34 */
  3507  
  3508  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3509  //
  3510  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3511  //
  3512  // This file contains Original Code and/or Modifications of Original Code
  3513  // as defined in and that are subject to the Apple Public Source License
  3514  // Version 2.0 (the 'License'). You may not use this file except in
  3515  // compliance with the License. The rights granted to you under the License
  3516  // may not be used to create, or enable the creation or redistribution of,
  3517  // unlawful or unlicensed copies of an Apple operating system, or to
  3518  // circumvent, violate, or enable the circumvention or violation of, any
  3519  // terms of an Apple operating system software license agreement.
  3520  //
  3521  // Please obtain a copy of the License at
  3522  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3523  //
  3524  // The Original Code and all software distributed under the License are
  3525  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3526  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3527  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3528  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3529  // Please see the License for the specific language governing rights and
  3530  // limitations under the License.
  3531  //
  3532  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3533  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3534  
  3535  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  3536  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3537  // Copyright (c) 1987, 1991, 1993
  3538  //	The Regents of the University of California.  All rights reserved.
  3539  //
  3540  // Redistribution and use in source and binary forms, with or without
  3541  // modification, are permitted provided that the following conditions
  3542  // are met:
  3543  // 1. Redistributions of source code must retain the above copyright
  3544  //    notice, this list of conditions and the following disclaimer.
  3545  // 2. Redistributions in binary form must reproduce the above copyright
  3546  //    notice, this list of conditions and the following disclaimer in the
  3547  //    documentation and/or other materials provided with the distribution.
  3548  // 3. All advertising materials mentioning features or use of this software
  3549  //    must display the following acknowledgement:
  3550  //	This product includes software developed by the University of
  3551  //	California, Berkeley and its contributors.
  3552  // 4. Neither the name of the University nor the names of its contributors
  3553  //    may be used to endorse or promote products derived from this software
  3554  //    without specific prior written permission.
  3555  //
  3556  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3557  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3558  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3559  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3560  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3561  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3562  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3563  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3564  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3565  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3566  // SUCH DAMAGE.
  3567  //
  3568  //	@(#)endian.h	8.1 (Berkeley) 6/11/93
  3569  
  3570  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  3571  //
  3572  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3573  //
  3574  // This file contains Original Code and/or Modifications of Original Code
  3575  // as defined in and that are subject to the Apple Public Source License
  3576  // Version 2.0 (the 'License'). You may not use this file except in
  3577  // compliance with the License. The rights granted to you under the License
  3578  // may not be used to create, or enable the creation or redistribution of,
  3579  // unlawful or unlicensed copies of an Apple operating system, or to
  3580  // circumvent, violate, or enable the circumvention or violation of, any
  3581  // terms of an Apple operating system software license agreement.
  3582  //
  3583  // Please obtain a copy of the License at
  3584  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3585  //
  3586  // The Original Code and all software distributed under the License are
  3587  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3588  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3589  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3590  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3591  // Please see the License for the specific language governing rights and
  3592  // limitations under the License.
  3593  //
  3594  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3595  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3596  // Copyright (c) 1991, 1993
  3597  //	The Regents of the University of California.  All rights reserved.
  3598  //
  3599  // This code is derived from software contributed to Berkeley by
  3600  // Berkeley Software Design, Inc.
  3601  //
  3602  // Redistribution and use in source and binary forms, with or without
  3603  // modification, are permitted provided that the following conditions
  3604  // are met:
  3605  // 1. Redistributions of source code must retain the above copyright
  3606  //    notice, this list of conditions and the following disclaimer.
  3607  // 2. Redistributions in binary form must reproduce the above copyright
  3608  //    notice, this list of conditions and the following disclaimer in the
  3609  //    documentation and/or other materials provided with the distribution.
  3610  // 3. All advertising materials mentioning features or use of this software
  3611  //    must display the following acknowledgement:
  3612  //	This product includes software developed by the University of
  3613  //	California, Berkeley and its contributors.
  3614  // 4. Neither the name of the University nor the names of its contributors
  3615  //    may be used to endorse or promote products derived from this software
  3616  //    without specific prior written permission.
  3617  //
  3618  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3619  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3620  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3621  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3622  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3623  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3624  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3625  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3626  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3627  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3628  // SUCH DAMAGE.
  3629  //
  3630  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  3631  
  3632  // Define _NOQUAD if the compiler does NOT support 64-bit integers.
  3633  // #define _NOQUAD
  3634  
  3635  // Define the order of 32-bit words in 64-bit words.
  3636  
  3637  // Definitions for byte order, according to byte significance from low
  3638  // address to high.
  3639  
  3640  // Copyright (c) 2004, 2006 Apple Computer, Inc. All rights reserved.
  3641  //
  3642  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3643  //
  3644  // This file contains Original Code and/or Modifications of Original Code
  3645  // as defined in and that are subject to the Apple Public Source License
  3646  // Version 2.0 (the 'License'). You may not use this file except in
  3647  // compliance with the License. The rights granted to you under the License
  3648  // may not be used to create, or enable the creation or redistribution of,
  3649  // unlawful or unlicensed copies of an Apple operating system, or to
  3650  // circumvent, violate, or enable the circumvention or violation of, any
  3651  // terms of an Apple operating system software license agreement.
  3652  //
  3653  // Please obtain a copy of the License at
  3654  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3655  //
  3656  // The Original Code and all software distributed under the License are
  3657  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3658  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3659  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3660  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3661  // Please see the License for the specific language governing rights and
  3662  // limitations under the License.
  3663  //
  3664  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3665  
  3666  // Copyright (c) 1995 NeXT Computer, Inc. All rights reserved.
  3667  // Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
  3668  //
  3669  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3670  //
  3671  // This file contains Original Code and/or Modifications of Original Code
  3672  // as defined in and that are subject to the Apple Public Source License
  3673  // Version 2.0 (the 'License'). You may not use this file except in
  3674  // compliance with the License. The rights granted to you under the License
  3675  // may not be used to create, or enable the creation or redistribution of,
  3676  // unlawful or unlicensed copies of an Apple operating system, or to
  3677  // circumvent, violate, or enable the circumvention or violation of, any
  3678  // terms of an Apple operating system software license agreement.
  3679  //
  3680  // Please obtain a copy of the License at
  3681  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3682  //
  3683  // The Original Code and all software distributed under the License are
  3684  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3685  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3686  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3687  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3688  // Please see the License for the specific language governing rights and
  3689  // limitations under the License.
  3690  //
  3691  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3692  // Copyright (c) 1987, 1991, 1993
  3693  //	The Regents of the University of California.  All rights reserved.
  3694  //
  3695  // Redistribution and use in source and binary forms, with or without
  3696  // modification, are permitted provided that the following conditions
  3697  // are met:
  3698  // 1. Redistributions of source code must retain the above copyright
  3699  //    notice, this list of conditions and the following disclaimer.
  3700  // 2. Redistributions in binary form must reproduce the above copyright
  3701  //    notice, this list of conditions and the following disclaimer in the
  3702  //    documentation and/or other materials provided with the distribution.
  3703  // 3. All advertising materials mentioning features or use of this software
  3704  //    must display the following acknowledgement:
  3705  //	This product includes software developed by the University of
  3706  //	California, Berkeley and its contributors.
  3707  // 4. Neither the name of the University nor the names of its contributors
  3708  //    may be used to endorse or promote products derived from this software
  3709  //    without specific prior written permission.
  3710  //
  3711  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3712  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3713  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3714  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3715  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3716  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3717  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3718  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3719  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3720  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3721  // SUCH DAMAGE.
  3722  
  3723  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  3724  //
  3725  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3726  //
  3727  // This file contains Original Code and/or Modifications of Original Code
  3728  // as defined in and that are subject to the Apple Public Source License
  3729  // Version 2.0 (the 'License'). You may not use this file except in
  3730  // compliance with the License. The rights granted to you under the License
  3731  // may not be used to create, or enable the creation or redistribution of,
  3732  // unlawful or unlicensed copies of an Apple operating system, or to
  3733  // circumvent, violate, or enable the circumvention or violation of, any
  3734  // terms of an Apple operating system software license agreement.
  3735  //
  3736  // Please obtain a copy of the License at
  3737  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3738  //
  3739  // The Original Code and all software distributed under the License are
  3740  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3741  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3742  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3743  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3744  // Please see the License for the specific language governing rights and
  3745  // limitations under the License.
  3746  //
  3747  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3748  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3749  // Copyright (c) 1991, 1993
  3750  //	The Regents of the University of California.  All rights reserved.
  3751  //
  3752  // This code is derived from software contributed to Berkeley by
  3753  // Berkeley Software Design, Inc.
  3754  //
  3755  // Redistribution and use in source and binary forms, with or without
  3756  // modification, are permitted provided that the following conditions
  3757  // are met:
  3758  // 1. Redistributions of source code must retain the above copyright
  3759  //    notice, this list of conditions and the following disclaimer.
  3760  // 2. Redistributions in binary form must reproduce the above copyright
  3761  //    notice, this list of conditions and the following disclaimer in the
  3762  //    documentation and/or other materials provided with the distribution.
  3763  // 3. All advertising materials mentioning features or use of this software
  3764  //    must display the following acknowledgement:
  3765  //	This product includes software developed by the University of
  3766  //	California, Berkeley and its contributors.
  3767  // 4. Neither the name of the University nor the names of its contributors
  3768  //    may be used to endorse or promote products derived from this software
  3769  //    without specific prior written permission.
  3770  //
  3771  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3772  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3773  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3774  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3775  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3776  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3777  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3778  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3779  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3780  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3781  // SUCH DAMAGE.
  3782  //
  3783  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  3784  
  3785  // Macros for network/external number representation conversion.
  3786  
  3787  // Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
  3788  //
  3789  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3790  //
  3791  // This file contains Original Code and/or Modifications of Original Code
  3792  // as defined in and that are subject to the Apple Public Source License
  3793  // Version 2.0 (the 'License'). You may not use this file except in
  3794  // compliance with the License. The rights granted to you under the License
  3795  // may not be used to create, or enable the creation or redistribution of,
  3796  // unlawful or unlicensed copies of an Apple operating system, or to
  3797  // circumvent, violate, or enable the circumvention or violation of, any
  3798  // terms of an Apple operating system software license agreement.
  3799  //
  3800  // Please obtain a copy of the License at
  3801  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3802  //
  3803  // The Original Code and all software distributed under the License are
  3804  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3805  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3806  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3807  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3808  // Please see the License for the specific language governing rights and
  3809  // limitations under the License.
  3810  //
  3811  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3812  
  3813  // This header is normally included from <libkern/OSByteOrder.h>.  However,
  3814  // <sys/_endian.h> also includes this in the case of little-endian
  3815  // architectures, so that we can map OSByteOrder routines to the hton* and ntoh*
  3816  // macros.  This results in the asymmetry below; we only include
  3817  // <libkern/arch/_OSByteOrder.h> for little-endian architectures.
  3818  
  3819  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  3820  //
  3821  // @APPLE_OSREFERENCE_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. The rights granted to you under the License
  3827  // may not be used to create, or enable the creation or redistribution of,
  3828  // unlawful or unlicensed copies of an Apple operating system, or to
  3829  // circumvent, violate, or enable the circumvention or violation of, any
  3830  // terms of an Apple operating system software license agreement.
  3831  //
  3832  // Please obtain a copy of the License at
  3833  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3834  //
  3835  // The Original Code and all software distributed under the License are
  3836  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3837  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3838  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3839  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3840  // Please see the License for the specific language governing rights and
  3841  // limitations under the License.
  3842  //
  3843  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3844  
  3845  // Macros for swapping constant values in the preprocessing stage.
  3846  
  3847  // Copyright (c) 1999-2007 Apple Inc. All rights reserved.
  3848  
  3849  //  DO NOT EDIT THIS FILE.
  3850  //
  3851  //     It has been auto-edited by fixincludes from:
  3852  //
  3853  // 	"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/stdint.h"
  3854  //
  3855  //     This had to be done to correct non-standard usages in the
  3856  //     original, manufacturer supplied header file.
  3857  
  3858  // Copyright (c) 2000-2010 Apple Inc.
  3859  // All rights reserved.
  3860  
  3861  // from ISO/IEC 988:1999 spec
  3862  
  3863  // 7.18.1.1 Exact-width integer types
  3864  // Copyright (c) 2012 Apple Inc. All rights reserved.
  3865  //
  3866  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3867  //
  3868  // This file contains Original Code and/or Modifications of Original Code
  3869  // as defined in and that are subject to the Apple Public Source License
  3870  // Version 2.0 (the 'License'). You may not use this file except in
  3871  // compliance with the License. The rights granted to you under the License
  3872  // may not be used to create, or enable the creation or redistribution of,
  3873  // unlawful or unlicensed copies of an Apple operating system, or to
  3874  // circumvent, violate, or enable the circumvention or violation of, any
  3875  // terms of an Apple operating system software license agreement.
  3876  //
  3877  // Please obtain a copy of the License at
  3878  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3879  //
  3880  // The Original Code and all software distributed under the License are
  3881  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3882  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3883  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3884  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3885  // Please see the License for the specific language governing rights and
  3886  // limitations under the License.
  3887  //
  3888  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3889  // Copyright (c) 2012 Apple Inc. All rights reserved.
  3890  //
  3891  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3892  //
  3893  // This file contains Original Code and/or Modifications of Original Code
  3894  // as defined in and that are subject to the Apple Public Source License
  3895  // Version 2.0 (the 'License'). You may not use this file except in
  3896  // compliance with the License. The rights granted to you under the License
  3897  // may not be used to create, or enable the creation or redistribution of,
  3898  // unlawful or unlicensed copies of an Apple operating system, or to
  3899  // circumvent, violate, or enable the circumvention or violation of, any
  3900  // terms of an Apple operating system software license agreement.
  3901  //
  3902  // Please obtain a copy of the License at
  3903  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3904  //
  3905  // The Original Code and all software distributed under the License are
  3906  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3907  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3908  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3909  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3910  // Please see the License for the specific language governing rights and
  3911  // limitations under the License.
  3912  //
  3913  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3914  // Copyright (c) 2012 Apple Inc. All rights reserved.
  3915  //
  3916  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3917  //
  3918  // This file contains Original Code and/or Modifications of Original Code
  3919  // as defined in and that are subject to the Apple Public Source License
  3920  // Version 2.0 (the 'License'). You may not use this file except in
  3921  // compliance with the License. The rights granted to you under the License
  3922  // may not be used to create, or enable the creation or redistribution of,
  3923  // unlawful or unlicensed copies of an Apple operating system, or to
  3924  // circumvent, violate, or enable the circumvention or violation of, any
  3925  // terms of an Apple operating system software license agreement.
  3926  //
  3927  // Please obtain a copy of the License at
  3928  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3929  //
  3930  // The Original Code and all software distributed under the License are
  3931  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3932  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3933  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3934  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3935  // Please see the License for the specific language governing rights and
  3936  // limitations under the License.
  3937  //
  3938  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3939  // Copyright (c) 2012 Apple Inc. All rights reserved.
  3940  //
  3941  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3942  //
  3943  // This file contains Original Code and/or Modifications of Original Code
  3944  // as defined in and that are subject to the Apple Public Source License
  3945  // Version 2.0 (the 'License'). You may not use this file except in
  3946  // compliance with the License. The rights granted to you under the License
  3947  // may not be used to create, or enable the creation or redistribution of,
  3948  // unlawful or unlicensed copies of an Apple operating system, or to
  3949  // circumvent, violate, or enable the circumvention or violation of, any
  3950  // terms of an Apple operating system software license agreement.
  3951  //
  3952  // Please obtain a copy of the License at
  3953  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3954  //
  3955  // The Original Code and all software distributed under the License are
  3956  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3957  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3958  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3959  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3960  // Please see the License for the specific language governing rights and
  3961  // limitations under the License.
  3962  //
  3963  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3964  
  3965  // Copyright (c) 2012 Apple Inc. All rights reserved.
  3966  //
  3967  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3968  //
  3969  // This file contains Original Code and/or Modifications of Original Code
  3970  // as defined in and that are subject to the Apple Public Source License
  3971  // Version 2.0 (the 'License'). You may not use this file except in
  3972  // compliance with the License. The rights granted to you under the License
  3973  // may not be used to create, or enable the creation or redistribution of,
  3974  // unlawful or unlicensed copies of an Apple operating system, or to
  3975  // circumvent, violate, or enable the circumvention or violation of, any
  3976  // terms of an Apple operating system software license agreement.
  3977  //
  3978  // Please obtain a copy of the License at
  3979  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3980  //
  3981  // The Original Code and all software distributed under the License are
  3982  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3983  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3984  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3985  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3986  // Please see the License for the specific language governing rights and
  3987  // limitations under the License.
  3988  //
  3989  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3990  
  3991  type Uint8_t = uint8 /* _uint8_t.h:31:23 */
  3992  // Copyright (c) 2012 Apple Inc. All rights reserved.
  3993  //
  3994  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3995  //
  3996  // This file contains Original Code and/or Modifications of Original Code
  3997  // as defined in and that are subject to the Apple Public Source License
  3998  // Version 2.0 (the 'License'). You may not use this file except in
  3999  // compliance with the License. The rights granted to you under the License
  4000  // may not be used to create, or enable the creation or redistribution of,
  4001  // unlawful or unlicensed copies of an Apple operating system, or to
  4002  // circumvent, violate, or enable the circumvention or violation of, any
  4003  // terms of an Apple operating system software license agreement.
  4004  //
  4005  // Please obtain a copy of the License at
  4006  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4007  //
  4008  // The Original Code and all software distributed under the License are
  4009  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4010  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4011  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4012  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4013  // Please see the License for the specific language governing rights and
  4014  // limitations under the License.
  4015  //
  4016  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4017  
  4018  type Uint16_t = uint16 /* _uint16_t.h:31:24 */
  4019  // Copyright (c) 2012 Apple Inc. All rights reserved.
  4020  //
  4021  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4022  //
  4023  // This file contains Original Code and/or Modifications of Original Code
  4024  // as defined in and that are subject to the Apple Public Source License
  4025  // Version 2.0 (the 'License'). You may not use this file except in
  4026  // compliance with the License. The rights granted to you under the License
  4027  // may not be used to create, or enable the creation or redistribution of,
  4028  // unlawful or unlicensed copies of an Apple operating system, or to
  4029  // circumvent, violate, or enable the circumvention or violation of, any
  4030  // terms of an Apple operating system software license agreement.
  4031  //
  4032  // Please obtain a copy of the License at
  4033  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4034  //
  4035  // The Original Code and all software distributed under the License are
  4036  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4037  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4038  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4039  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4040  // Please see the License for the specific language governing rights and
  4041  // limitations under the License.
  4042  //
  4043  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4044  
  4045  type Uint32_t = uint32 /* _uint32_t.h:31:22 */
  4046  // Copyright (c) 2012 Apple Inc. All rights reserved.
  4047  //
  4048  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4049  //
  4050  // This file contains Original Code and/or Modifications of Original Code
  4051  // as defined in and that are subject to the Apple Public Source License
  4052  // Version 2.0 (the 'License'). You may not use this file except in
  4053  // compliance with the License. The rights granted to you under the License
  4054  // may not be used to create, or enable the creation or redistribution of,
  4055  // unlawful or unlicensed copies of an Apple operating system, or to
  4056  // circumvent, violate, or enable the circumvention or violation of, any
  4057  // terms of an Apple operating system software license agreement.
  4058  //
  4059  // Please obtain a copy of the License at
  4060  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4061  //
  4062  // The Original Code and all software distributed under the License are
  4063  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4064  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4065  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4066  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4067  // Please see the License for the specific language governing rights and
  4068  // limitations under the License.
  4069  //
  4070  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4071  
  4072  type Uint64_t = uint64 /* _uint64_t.h:31:28 */
  4073  
  4074  // 7.18.1.2 Minimum-width integer types
  4075  type Int_least8_t = Int8_t     /* stdint.h:38:26 */
  4076  type Int_least16_t = Int16_t   /* stdint.h:39:25 */
  4077  type Int_least32_t = Int32_t   /* stdint.h:40:25 */
  4078  type Int_least64_t = Int64_t   /* stdint.h:41:25 */
  4079  type Uint_least8_t = Uint8_t   /* stdint.h:42:25 */
  4080  type Uint_least16_t = Uint16_t /* stdint.h:43:24 */
  4081  type Uint_least32_t = Uint32_t /* stdint.h:44:24 */
  4082  type Uint_least64_t = Uint64_t /* stdint.h:45:24 */
  4083  
  4084  // 7.18.1.3 Fastest-width integer types
  4085  type Int_fast8_t = Int8_t     /* stdint.h:49:27 */
  4086  type Int_fast16_t = Int16_t   /* stdint.h:50:26 */
  4087  type Int_fast32_t = Int32_t   /* stdint.h:51:26 */
  4088  type Int_fast64_t = Int64_t   /* stdint.h:52:26 */
  4089  type Uint_fast8_t = Uint8_t   /* stdint.h:53:26 */
  4090  type Uint_fast16_t = Uint16_t /* stdint.h:54:25 */
  4091  type Uint_fast32_t = Uint32_t /* stdint.h:55:25 */
  4092  type Uint_fast64_t = Uint64_t /* stdint.h:56:25 */
  4093  
  4094  // 7.18.1.4 Integer types capable of holding object pointers
  4095  
  4096  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4097  //
  4098  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4099  //
  4100  // This file contains Original Code and/or Modifications of Original Code
  4101  // as defined in and that are subject to the Apple Public Source License
  4102  // Version 2.0 (the 'License'). You may not use this file except in
  4103  // compliance with the License. The rights granted to you under the License
  4104  // may not be used to create, or enable the creation or redistribution of,
  4105  // unlawful or unlicensed copies of an Apple operating system, or to
  4106  // circumvent, violate, or enable the circumvention or violation of, any
  4107  // terms of an Apple operating system software license agreement.
  4108  //
  4109  // Please obtain a copy of the License at
  4110  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4111  //
  4112  // The Original Code and all software distributed under the License are
  4113  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4114  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4115  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4116  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4117  // Please see the License for the specific language governing rights and
  4118  // limitations under the License.
  4119  //
  4120  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4121  
  4122  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4123  //
  4124  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4125  //
  4126  // This file contains Original Code and/or Modifications of Original Code
  4127  // as defined in and that are subject to the Apple Public Source License
  4128  // Version 2.0 (the 'License'). You may not use this file except in
  4129  // compliance with the License. The rights granted to you under the License
  4130  // may not be used to create, or enable the creation or redistribution of,
  4131  // unlawful or unlicensed copies of an Apple operating system, or to
  4132  // circumvent, violate, or enable the circumvention or violation of, any
  4133  // terms of an Apple operating system software license agreement.
  4134  //
  4135  // Please obtain a copy of the License at
  4136  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4137  //
  4138  // The Original Code and all software distributed under the License are
  4139  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4140  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4141  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4142  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4143  // Please see the License for the specific language governing rights and
  4144  // limitations under the License.
  4145  //
  4146  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4147  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4148  //
  4149  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4150  //
  4151  // This file contains Original Code and/or Modifications of Original Code
  4152  // as defined in and that are subject to the Apple Public Source License
  4153  // Version 2.0 (the 'License'). You may not use this file except in
  4154  // compliance with the License. The rights granted to you under the License
  4155  // may not be used to create, or enable the creation or redistribution of,
  4156  // unlawful or unlicensed copies of an Apple operating system, or to
  4157  // circumvent, violate, or enable the circumvention or violation of, any
  4158  // terms of an Apple operating system software license agreement.
  4159  //
  4160  // Please obtain a copy of the License at
  4161  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4162  //
  4163  // The Original Code and all software distributed under the License are
  4164  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4165  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4166  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4167  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4168  // Please see the License for the specific language governing rights and
  4169  // limitations under the License.
  4170  //
  4171  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4172  
  4173  // 7.18.1.5 Greatest-width integer types
  4174  // Copyright (c) 2012 Apple Inc. All rights reserved.
  4175  //
  4176  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4177  //
  4178  // This file contains Original Code and/or Modifications of Original Code
  4179  // as defined in and that are subject to the Apple Public Source License
  4180  // Version 2.0 (the 'License'). You may not use this file except in
  4181  // compliance with the License. The rights granted to you under the License
  4182  // may not be used to create, or enable the creation or redistribution of,
  4183  // unlawful or unlicensed copies of an Apple operating system, or to
  4184  // circumvent, violate, or enable the circumvention or violation of, any
  4185  // terms of an Apple operating system software license agreement.
  4186  //
  4187  // Please obtain a copy of the License at
  4188  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4189  //
  4190  // The Original Code and all software distributed under the License are
  4191  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4192  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4193  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4194  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4195  // Please see the License for the specific language governing rights and
  4196  // limitations under the License.
  4197  //
  4198  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4199  
  4200  type Intmax_t = int64 /* _intmax_t.h:32:25 */
  4201  // Copyright (c) 2012 Apple Inc. All rights reserved.
  4202  //
  4203  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4204  //
  4205  // This file contains Original Code and/or Modifications of Original Code
  4206  // as defined in and that are subject to the Apple Public Source License
  4207  // Version 2.0 (the 'License'). You may not use this file except in
  4208  // compliance with the License. The rights granted to you under the License
  4209  // may not be used to create, or enable the creation or redistribution of,
  4210  // unlawful or unlicensed copies of an Apple operating system, or to
  4211  // circumvent, violate, or enable the circumvention or violation of, any
  4212  // terms of an Apple operating system software license agreement.
  4213  //
  4214  // Please obtain a copy of the License at
  4215  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4216  //
  4217  // The Original Code and all software distributed under the License are
  4218  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4219  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4220  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4221  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4222  // Please see the License for the specific language governing rights and
  4223  // limitations under the License.
  4224  //
  4225  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4226  
  4227  type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */
  4228  
  4229  // 7.18.4 Macros for integer constants
  4230  
  4231  // 7.18.2 Limits of specified-width integer types:
  4232  //   These #defines specify the minimum and maximum limits
  4233  //   of each of the types declared above.
  4234  //
  4235  //   They must have "the same type as would an expression that is an
  4236  //   object of the corresponding type converted according to the integer
  4237  //   promotion".
  4238  
  4239  // 7.18.2.1 Limits of exact-width integer types
  4240  
  4241  //
  4242  //       Note:  the literal "most negative int" cannot be written in C --
  4243  //       the rules in the standard (section 6.4.4.1 in C99) will give it
  4244  //       an unsigned type, so INT32_MIN (and the most negative member of
  4245  //       any larger signed type) must be written via a constant expression.
  4246  //
  4247  
  4248  // 7.18.2.2 Limits of minimum-width integer types
  4249  
  4250  // 7.18.2.3 Limits of fastest minimum-width integer types
  4251  
  4252  // 7.18.2.4 Limits of integer types capable of holding object pointers
  4253  
  4254  // 7.18.2.5 Limits of greatest-width integer types
  4255  
  4256  // 7.18.3 "Other"
  4257  
  4258  // WCHAR_MIN should be 0 if wchar_t is an unsigned type and
  4259  //    (-WCHAR_MAX-1) if wchar_t is a signed type.  Unfortunately,
  4260  //    it turns out that -fshort-wchar changes the signedness of
  4261  //    the type.
  4262  
  4263  // Copyright (c) 2007 Apple Inc. All rights reserved.
  4264  //
  4265  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4266  //
  4267  // This file contains Original Code and/or Modifications of Original Code
  4268  // as defined in and that are subject to the Apple Public Source License
  4269  // Version 2.0 (the 'License'). You may not use this file except in
  4270  // compliance with the License. The rights granted to you under the License
  4271  // may not be used to create, or enable the creation or redistribution of,
  4272  // unlawful or unlicensed copies of an Apple operating system, or to
  4273  // circumvent, violate, or enable the circumvention or violation of, any
  4274  // terms of an Apple operating system software license agreement.
  4275  //
  4276  // Please obtain a copy of the License at
  4277  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4278  //
  4279  // The Original Code and all software distributed under the License are
  4280  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4281  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4282  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4283  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4284  // Please see the License for the specific language governing rights and
  4285  // limitations under the License.
  4286  //
  4287  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4288  
  4289  // Collect the __ARM_ARCH_*__ compiler flags into something easier to use.
  4290  
  4291  // Generic byte swapping functions.
  4292  
  4293  func _OSSwapInt16(tls *libc.TLS, _data Uint16_t) Uint16_t { /* OSByteOrder.h:15:1: */
  4294  	// Reduces to 'rev16' with clang
  4295  	return Uint16_t(int32(_data)<<8 | int32(_data)>>8)
  4296  }
  4297  
  4298  func _OSSwapInt32(tls *libc.TLS, _data Uint32_t) Uint32_t { /* OSByteOrder.h:25:1: */
  4299  	// This actually generates the best code
  4300  	_data = (_data^(_data>>16|_data<<16))&0xFF00FFFF>>8 ^ (_data>>8 | _data<<24)
  4301  
  4302  	return _data
  4303  }
  4304  
  4305  func _OSSwapInt64(tls *libc.TLS, _data Uint64_t) Uint64_t { /* OSByteOrder.h:41:1: */
  4306  	bp := tls.Alloc(8)
  4307  	defer tls.Free(8)
  4308  
  4309  	// var _u struct {F_ull Uint64_t;} at bp, 8
  4310  
  4311  	// This actually generates the best code
  4312  	*(*Uint32_t)(unsafe.Pointer(bp)) = Uint32_t(_data >> 32)
  4313  	*(*Uint32_t)(unsafe.Pointer(bp + 1*4)) = Uint32_t(_data & uint64(0xffffffff))
  4314  	*(*Uint32_t)(unsafe.Pointer(bp)) = _OSSwapInt32(tls, *(*Uint32_t)(unsafe.Pointer(bp)))
  4315  	*(*Uint32_t)(unsafe.Pointer(bp + 1*4)) = _OSSwapInt32(tls, *(*Uint32_t)(unsafe.Pointer(bp + 1*4)))
  4316  	return *(*Uint64_t)(unsafe.Pointer(bp))
  4317  }
  4318  
  4319  // Functions for byte reversed loads.
  4320  
  4321  type X_OSUnalignedU16 = struct{ F__val Uint16_t } /* OSByteOrder.h:64:1 */
  4322  
  4323  type X_OSUnalignedU32 = struct{ F__val Uint32_t } /* OSByteOrder.h:68:1 */
  4324  
  4325  type X_OSUnalignedU64 = struct{ F__val Uint64_t } /* OSByteOrder.h:72:1 */
  4326  
  4327  // Copyright (c) 2017 Apple Inc. All rights reserved.
  4328  //
  4329  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4330  //
  4331  // This file contains Original Code and/or Modifications of Original Code
  4332  // as defined in and that are subject to the Apple Public Source License
  4333  // Version 2.0 (the 'License'). You may not use this file except in
  4334  // compliance with the License. The rights granted to you under the License
  4335  // may not be used to create, or enable the creation or redistribution of,
  4336  // unlawful or unlicensed copies of an Apple operating system, or to
  4337  // circumvent, violate, or enable the circumvention or violation of, any
  4338  // terms of an Apple operating system software license agreement.
  4339  //
  4340  // Please obtain a copy of the License at
  4341  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4342  //
  4343  // The Original Code and all software distributed under the License are
  4344  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4345  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4346  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4347  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4348  // Please see the License for the specific language governing rights and
  4349  // limitations under the License.
  4350  //
  4351  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4352  type U_char = uint8 /* _u_char.h:30:25 */
  4353  // Copyright (c) 2017 Apple Inc. All rights reserved.
  4354  //
  4355  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4356  //
  4357  // This file contains Original Code and/or Modifications of Original Code
  4358  // as defined in and that are subject to the Apple Public Source License
  4359  // Version 2.0 (the 'License'). You may not use this file except in
  4360  // compliance with the License. The rights granted to you under the License
  4361  // may not be used to create, or enable the creation or redistribution of,
  4362  // unlawful or unlicensed copies of an Apple operating system, or to
  4363  // circumvent, violate, or enable the circumvention or violation of, any
  4364  // terms of an Apple operating system software license agreement.
  4365  //
  4366  // Please obtain a copy of the License at
  4367  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4368  //
  4369  // The Original Code and all software distributed under the License are
  4370  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4371  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4372  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4373  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4374  // Please see the License for the specific language governing rights and
  4375  // limitations under the License.
  4376  //
  4377  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4378  type U_short = uint16 /* _u_short.h:30:25 */
  4379  // Copyright (c) 2017 Apple Inc. All rights reserved.
  4380  //
  4381  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4382  //
  4383  // This file contains Original Code and/or Modifications of Original Code
  4384  // as defined in and that are subject to the Apple Public Source License
  4385  // Version 2.0 (the 'License'). You may not use this file except in
  4386  // compliance with the License. The rights granted to you under the License
  4387  // may not be used to create, or enable the creation or redistribution of,
  4388  // unlawful or unlicensed copies of an Apple operating system, or to
  4389  // circumvent, violate, or enable the circumvention or violation of, any
  4390  // terms of an Apple operating system software license agreement.
  4391  //
  4392  // Please obtain a copy of the License at
  4393  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4394  //
  4395  // The Original Code and all software distributed under the License are
  4396  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4397  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4398  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4399  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4400  // Please see the License for the specific language governing rights and
  4401  // limitations under the License.
  4402  //
  4403  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4404  type U_int = uint32  /* _u_int.h:30:25 */
  4405  type U_long = uint64 /* types.h:88:33 */
  4406  type Ushort = uint16 /* types.h:91:33 */ // Sys V compatibility
  4407  type Uint = uint32   /* types.h:92:33 */ // Sys V compatibility
  4408  
  4409  type U_quad_t = U_int64_t /* types.h:95:33 */ // quads
  4410  type Quad_t = Int64_t     /* types.h:96:33 */
  4411  type Qaddr_t = uintptr    /* types.h:97:16 */
  4412  
  4413  // Copyright (c) 2017 Apple Inc. All rights reserved.
  4414  //
  4415  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4416  //
  4417  // This file contains Original Code and/or Modifications of Original Code
  4418  // as defined in and that are subject to the Apple Public Source License
  4419  // Version 2.0 (the 'License'). You may not use this file except in
  4420  // compliance with the License. The rights granted to you under the License
  4421  // may not be used to create, or enable the creation or redistribution of,
  4422  // unlawful or unlicensed copies of an Apple operating system, or to
  4423  // circumvent, violate, or enable the circumvention or violation of, any
  4424  // terms of an Apple operating system software license agreement.
  4425  //
  4426  // Please obtain a copy of the License at
  4427  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4428  //
  4429  // The Original Code and all software distributed under the License are
  4430  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4431  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4432  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4433  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4434  // Please see the License for the specific language governing rights and
  4435  // limitations under the License.
  4436  //
  4437  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4438  type Caddr_t = uintptr /* _caddr_t.h:30:14 */
  4439  
  4440  type Daddr_t = Int32_t /* types.h:101:33 */ // disk address
  4441  
  4442  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4443  //
  4444  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4445  //
  4446  // This file contains Original Code and/or Modifications of Original Code
  4447  // as defined in and that are subject to the Apple Public Source License
  4448  // Version 2.0 (the 'License'). You may not use this file except in
  4449  // compliance with the License. The rights granted to you under the License
  4450  // may not be used to create, or enable the creation or redistribution of,
  4451  // unlawful or unlicensed copies of an Apple operating system, or to
  4452  // circumvent, violate, or enable the circumvention or violation of, any
  4453  // terms of an Apple operating system software license agreement.
  4454  //
  4455  // Please obtain a copy of the License at
  4456  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4457  //
  4458  // The Original Code and all software distributed under the License are
  4459  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4460  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4461  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4462  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4463  // Please see the License for the specific language governing rights and
  4464  // limitations under the License.
  4465  //
  4466  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4467  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4468  //
  4469  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4470  //
  4471  // This file contains Original Code and/or Modifications of Original Code
  4472  // as defined in and that are subject to the Apple Public Source License
  4473  // Version 2.0 (the 'License'). You may not use this file except in
  4474  // compliance with the License. The rights granted to you under the License
  4475  // may not be used to create, or enable the creation or redistribution of,
  4476  // unlawful or unlicensed copies of an Apple operating system, or to
  4477  // circumvent, violate, or enable the circumvention or violation of, any
  4478  // terms of an Apple operating system software license agreement.
  4479  //
  4480  // Please obtain a copy of the License at
  4481  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4482  //
  4483  // The Original Code and all software distributed under the License are
  4484  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4485  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4486  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4487  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4488  // Please see the License for the specific language governing rights and
  4489  // limitations under the License.
  4490  //
  4491  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4492  
  4493  type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number
  4494  
  4495  type Fixpt_t = U_int32_t /* types.h:105:33 */ // fixed point number
  4496  
  4497  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4498  //
  4499  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4500  //
  4501  // This file contains Original Code and/or Modifications of Original Code
  4502  // as defined in and that are subject to the Apple Public Source License
  4503  // Version 2.0 (the 'License'). You may not use this file except in
  4504  // compliance with the License. The rights granted to you under the License
  4505  // may not be used to create, or enable the creation or redistribution of,
  4506  // unlawful or unlicensed copies of an Apple operating system, or to
  4507  // circumvent, violate, or enable the circumvention or violation of, any
  4508  // terms of an Apple operating system software license agreement.
  4509  //
  4510  // Please obtain a copy of the License at
  4511  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4512  //
  4513  // The Original Code and all software distributed under the License are
  4514  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4515  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4516  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4517  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4518  // Please see the License for the specific language governing rights and
  4519  // limitations under the License.
  4520  //
  4521  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4522  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4523  //
  4524  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4525  //
  4526  // This file contains Original Code and/or Modifications of Original Code
  4527  // as defined in and that are subject to the Apple Public Source License
  4528  // Version 2.0 (the 'License'). You may not use this file except in
  4529  // compliance with the License. The rights granted to you under the License
  4530  // may not be used to create, or enable the creation or redistribution of,
  4531  // unlawful or unlicensed copies of an Apple operating system, or to
  4532  // circumvent, violate, or enable the circumvention or violation of, any
  4533  // terms of an Apple operating system software license agreement.
  4534  //
  4535  // Please obtain a copy of the License at
  4536  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4537  //
  4538  // The Original Code and all software distributed under the License are
  4539  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4540  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4541  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4542  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4543  // Please see the License for the specific language governing rights and
  4544  // limitations under the License.
  4545  //
  4546  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4547  
  4548  type Blkcnt_t = X__darwin_blkcnt_t /* _blkcnt_t.h:31:34 */
  4549  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4550  //
  4551  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4552  //
  4553  // This file contains Original Code and/or Modifications of Original Code
  4554  // as defined in and that are subject to the Apple Public Source License
  4555  // Version 2.0 (the 'License'). You may not use this file except in
  4556  // compliance with the License. The rights granted to you under the License
  4557  // may not be used to create, or enable the creation or redistribution of,
  4558  // unlawful or unlicensed copies of an Apple operating system, or to
  4559  // circumvent, violate, or enable the circumvention or violation of, any
  4560  // terms of an Apple operating system software license agreement.
  4561  //
  4562  // Please obtain a copy of the License at
  4563  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4564  //
  4565  // The Original Code and all software distributed under the License are
  4566  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4567  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4568  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4569  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4570  // Please see the License for the specific language governing rights and
  4571  // limitations under the License.
  4572  //
  4573  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4574  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4575  //
  4576  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4577  //
  4578  // This file contains Original Code and/or Modifications of Original Code
  4579  // as defined in and that are subject to the Apple Public Source License
  4580  // Version 2.0 (the 'License'). You may not use this file except in
  4581  // compliance with the License. The rights granted to you under the License
  4582  // may not be used to create, or enable the creation or redistribution of,
  4583  // unlawful or unlicensed copies of an Apple operating system, or to
  4584  // circumvent, violate, or enable the circumvention or violation of, any
  4585  // terms of an Apple operating system software license agreement.
  4586  //
  4587  // Please obtain a copy of the License at
  4588  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4589  //
  4590  // The Original Code and all software distributed under the License are
  4591  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4592  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4593  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4594  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4595  // Please see the License for the specific language governing rights and
  4596  // limitations under the License.
  4597  //
  4598  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4599  
  4600  type Blksize_t = X__darwin_blksize_t /* _blksize_t.h:31:35 */
  4601  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4602  //
  4603  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4604  //
  4605  // This file contains Original Code and/or Modifications of Original Code
  4606  // as defined in and that are subject to the Apple Public Source License
  4607  // Version 2.0 (the 'License'). You may not use this file except in
  4608  // compliance with the License. The rights granted to you under the License
  4609  // may not be used to create, or enable the creation or redistribution of,
  4610  // unlawful or unlicensed copies of an Apple operating system, or to
  4611  // circumvent, violate, or enable the circumvention or violation of, any
  4612  // terms of an Apple operating system software license agreement.
  4613  //
  4614  // Please obtain a copy of the License at
  4615  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4616  //
  4617  // The Original Code and all software distributed under the License are
  4618  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4619  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4620  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4621  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4622  // Please see the License for the specific language governing rights and
  4623  // limitations under the License.
  4624  //
  4625  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4626  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4627  //
  4628  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4629  //
  4630  // This file contains Original Code and/or Modifications of Original Code
  4631  // as defined in and that are subject to the Apple Public Source License
  4632  // Version 2.0 (the 'License'). You may not use this file except in
  4633  // compliance with the License. The rights granted to you under the License
  4634  // may not be used to create, or enable the creation or redistribution of,
  4635  // unlawful or unlicensed copies of an Apple operating system, or to
  4636  // circumvent, violate, or enable the circumvention or violation of, any
  4637  // terms of an Apple operating system software license agreement.
  4638  //
  4639  // Please obtain a copy of the License at
  4640  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4641  //
  4642  // The Original Code and all software distributed under the License are
  4643  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4644  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4645  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4646  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4647  // Please see the License for the specific language governing rights and
  4648  // limitations under the License.
  4649  //
  4650  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4651  
  4652  type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
  4653  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4654  //
  4655  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4656  //
  4657  // This file contains Original Code and/or Modifications of Original Code
  4658  // as defined in and that are subject to the Apple Public Source License
  4659  // Version 2.0 (the 'License'). You may not use this file except in
  4660  // compliance with the License. The rights granted to you under the License
  4661  // may not be used to create, or enable the creation or redistribution of,
  4662  // unlawful or unlicensed copies of an Apple operating system, or to
  4663  // circumvent, violate, or enable the circumvention or violation of, any
  4664  // terms of an Apple operating system software license agreement.
  4665  //
  4666  // Please obtain a copy of the License at
  4667  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4668  //
  4669  // The Original Code and all software distributed under the License are
  4670  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4671  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4672  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4673  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4674  // Please see the License for the specific language governing rights and
  4675  // limitations under the License.
  4676  //
  4677  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4678  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4679  //
  4680  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4681  //
  4682  // This file contains Original Code and/or Modifications of Original Code
  4683  // as defined in and that are subject to the Apple Public Source License
  4684  // Version 2.0 (the 'License'). You may not use this file except in
  4685  // compliance with the License. The rights granted to you under the License
  4686  // may not be used to create, or enable the creation or redistribution of,
  4687  // unlawful or unlicensed copies of an Apple operating system, or to
  4688  // circumvent, violate, or enable the circumvention or violation of, any
  4689  // terms of an Apple operating system software license agreement.
  4690  //
  4691  // Please obtain a copy of the License at
  4692  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4693  //
  4694  // The Original Code and all software distributed under the License are
  4695  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4696  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4697  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4698  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4699  // Please see the License for the specific language governing rights and
  4700  // limitations under the License.
  4701  //
  4702  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4703  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4704  type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address
  4705  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4706  //
  4707  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4708  //
  4709  // This file contains Original Code and/or Modifications of Original Code
  4710  // as defined in and that are subject to the Apple Public Source License
  4711  // Version 2.0 (the 'License'). You may not use this file except in
  4712  // compliance with the License. The rights granted to you under the License
  4713  // may not be used to create, or enable the creation or redistribution of,
  4714  // unlawful or unlicensed copies of an Apple operating system, or to
  4715  // circumvent, violate, or enable the circumvention or violation of, any
  4716  // terms of an Apple operating system software license agreement.
  4717  //
  4718  // Please obtain a copy of the License at
  4719  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4720  //
  4721  // The Original Code and all software distributed under the License are
  4722  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4723  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4724  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4725  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4726  // Please see the License for the specific language governing rights and
  4727  // limitations under the License.
  4728  //
  4729  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4730  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4731  //
  4732  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4733  //
  4734  // This file contains Original Code and/or Modifications of Original Code
  4735  // as defined in and that are subject to the Apple Public Source License
  4736  // Version 2.0 (the 'License'). You may not use this file except in
  4737  // compliance with the License. The rights granted to you under the License
  4738  // may not be used to create, or enable the creation or redistribution of,
  4739  // unlawful or unlicensed copies of an Apple operating system, or to
  4740  // circumvent, violate, or enable the circumvention or violation of, any
  4741  // terms of an Apple operating system software license agreement.
  4742  //
  4743  // Please obtain a copy of the License at
  4744  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4745  //
  4746  // The Original Code and all software distributed under the License are
  4747  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4748  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4749  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4750  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4751  // Please see the License for the specific language governing rights and
  4752  // limitations under the License.
  4753  //
  4754  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4755  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4756  type In_port_t = X__uint16_t /* _in_port_t.h:31:33 */
  4757  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4758  //
  4759  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4760  //
  4761  // This file contains Original Code and/or Modifications of Original Code
  4762  // as defined in and that are subject to the Apple Public Source License
  4763  // Version 2.0 (the 'License'). You may not use this file except in
  4764  // compliance with the License. The rights granted to you under the License
  4765  // may not be used to create, or enable the creation or redistribution of,
  4766  // unlawful or unlicensed copies of an Apple operating system, or to
  4767  // circumvent, violate, or enable the circumvention or violation of, any
  4768  // terms of an Apple operating system software license agreement.
  4769  //
  4770  // Please obtain a copy of the License at
  4771  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4772  //
  4773  // The Original Code and all software distributed under the License are
  4774  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4775  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4776  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4777  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4778  // Please see the License for the specific language governing rights and
  4779  // limitations under the License.
  4780  //
  4781  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4782  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4783  //
  4784  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4785  //
  4786  // This file contains Original Code and/or Modifications of Original Code
  4787  // as defined in and that are subject to the Apple Public Source License
  4788  // Version 2.0 (the 'License'). You may not use this file except in
  4789  // compliance with the License. The rights granted to you under the License
  4790  // may not be used to create, or enable the creation or redistribution of,
  4791  // unlawful or unlicensed copies of an Apple operating system, or to
  4792  // circumvent, violate, or enable the circumvention or violation of, any
  4793  // terms of an Apple operating system software license agreement.
  4794  //
  4795  // Please obtain a copy of the License at
  4796  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4797  //
  4798  // The Original Code and all software distributed under the License are
  4799  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4800  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4801  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4802  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4803  // Please see the License for the specific language governing rights and
  4804  // limitations under the License.
  4805  //
  4806  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4807  
  4808  type Ino_t = X__darwin_ino_t /* _ino_t.h:31:33 */ // inode number
  4809  
  4810  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4811  //
  4812  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4813  //
  4814  // This file contains Original Code and/or Modifications of Original Code
  4815  // as defined in and that are subject to the Apple Public Source License
  4816  // Version 2.0 (the 'License'). You may not use this file except in
  4817  // compliance with the License. The rights granted to you under the License
  4818  // may not be used to create, or enable the creation or redistribution of,
  4819  // unlawful or unlicensed copies of an Apple operating system, or to
  4820  // circumvent, violate, or enable the circumvention or violation of, any
  4821  // terms of an Apple operating system software license agreement.
  4822  //
  4823  // Please obtain a copy of the License at
  4824  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4825  //
  4826  // The Original Code and all software distributed under the License are
  4827  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4828  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4829  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4830  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4831  // Please see the License for the specific language governing rights and
  4832  // limitations under the License.
  4833  //
  4834  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4835  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4836  //
  4837  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4838  //
  4839  // This file contains Original Code and/or Modifications of Original Code
  4840  // as defined in and that are subject to the Apple Public Source License
  4841  // Version 2.0 (the 'License'). You may not use this file except in
  4842  // compliance with the License. The rights granted to you under the License
  4843  // may not be used to create, or enable the creation or redistribution of,
  4844  // unlawful or unlicensed copies of an Apple operating system, or to
  4845  // circumvent, violate, or enable the circumvention or violation of, any
  4846  // terms of an Apple operating system software license agreement.
  4847  //
  4848  // Please obtain a copy of the License at
  4849  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4850  //
  4851  // The Original Code and all software distributed under the License are
  4852  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4853  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4854  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4855  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4856  // Please see the License for the specific language governing rights and
  4857  // limitations under the License.
  4858  //
  4859  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4860  
  4861  type Ino64_t = X__darwin_ino64_t /* _ino64_t.h:31:33 */ // 64bit inode number
  4862  
  4863  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4864  //
  4865  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4866  //
  4867  // This file contains Original Code and/or Modifications of Original Code
  4868  // as defined in and that are subject to the Apple Public Source License
  4869  // Version 2.0 (the 'License'). You may not use this file except in
  4870  // compliance with the License. The rights granted to you under the License
  4871  // may not be used to create, or enable the creation or redistribution of,
  4872  // unlawful or unlicensed copies of an Apple operating system, or to
  4873  // circumvent, violate, or enable the circumvention or violation of, any
  4874  // terms of an Apple operating system software license agreement.
  4875  //
  4876  // Please obtain a copy of the License at
  4877  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4878  //
  4879  // The Original Code and all software distributed under the License are
  4880  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4881  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4882  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4883  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4884  // Please see the License for the specific language governing rights and
  4885  // limitations under the License.
  4886  //
  4887  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4888  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4889  //
  4890  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4891  //
  4892  // This file contains Original Code and/or Modifications of Original Code
  4893  // as defined in and that are subject to the Apple Public Source License
  4894  // Version 2.0 (the 'License'). You may not use this file except in
  4895  // compliance with the License. The rights granted to you under the License
  4896  // may not be used to create, or enable the creation or redistribution of,
  4897  // unlawful or unlicensed copies of an Apple operating system, or to
  4898  // circumvent, violate, or enable the circumvention or violation of, any
  4899  // terms of an Apple operating system software license agreement.
  4900  //
  4901  // Please obtain a copy of the License at
  4902  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4903  //
  4904  // The Original Code and all software distributed under the License are
  4905  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4906  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4907  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4908  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4909  // Please see the License for the specific language governing rights and
  4910  // limitations under the License.
  4911  //
  4912  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4913  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4914  type Key_t = X__int32_t /* _key_t.h:31:26 */ // IPC key (for Sys V IPC)
  4915  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4916  //
  4917  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4918  //
  4919  // This file contains Original Code and/or Modifications of Original Code
  4920  // as defined in and that are subject to the Apple Public Source License
  4921  // Version 2.0 (the 'License'). You may not use this file except in
  4922  // compliance with the License. The rights granted to you under the License
  4923  // may not be used to create, or enable the creation or redistribution of,
  4924  // unlawful or unlicensed copies of an Apple operating system, or to
  4925  // circumvent, violate, or enable the circumvention or violation of, any
  4926  // terms of an Apple operating system software license agreement.
  4927  //
  4928  // Please obtain a copy of the License at
  4929  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4930  //
  4931  // The Original Code and all software distributed under the License are
  4932  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4933  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4934  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4935  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4936  // Please see the License for the specific language governing rights and
  4937  // limitations under the License.
  4938  //
  4939  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4940  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4941  //
  4942  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4943  //
  4944  // This file contains Original Code and/or Modifications of Original Code
  4945  // as defined in and that are subject to the Apple Public Source License
  4946  // Version 2.0 (the 'License'). You may not use this file except in
  4947  // compliance with the License. The rights granted to you under the License
  4948  // may not be used to create, or enable the creation or redistribution of,
  4949  // unlawful or unlicensed copies of an Apple operating system, or to
  4950  // circumvent, violate, or enable the circumvention or violation of, any
  4951  // terms of an Apple operating system software license agreement.
  4952  //
  4953  // Please obtain a copy of the License at
  4954  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4955  //
  4956  // The Original Code and all software distributed under the License are
  4957  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4958  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4959  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4960  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4961  // Please see the License for the specific language governing rights and
  4962  // limitations under the License.
  4963  //
  4964  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4965  
  4966  type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */
  4967  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  4968  //
  4969  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4970  //
  4971  // This file contains Original Code and/or Modifications of Original Code
  4972  // as defined in and that are subject to the Apple Public Source License
  4973  // Version 2.0 (the 'License'). You may not use this file except in
  4974  // compliance with the License. The rights granted to you under the License
  4975  // may not be used to create, or enable the creation or redistribution of,
  4976  // unlawful or unlicensed copies of an Apple operating system, or to
  4977  // circumvent, violate, or enable the circumvention or violation of, any
  4978  // terms of an Apple operating system software license agreement.
  4979  //
  4980  // Please obtain a copy of the License at
  4981  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4982  //
  4983  // The Original Code and all software distributed under the License are
  4984  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4985  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4986  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4987  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4988  // Please see the License for the specific language governing rights and
  4989  // limitations under the License.
  4990  //
  4991  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4992  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  4993  //
  4994  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4995  //
  4996  // This file contains Original Code and/or Modifications of Original Code
  4997  // as defined in and that are subject to the Apple Public Source License
  4998  // Version 2.0 (the 'License'). You may not use this file except in
  4999  // compliance with the License. The rights granted to you under the License
  5000  // may not be used to create, or enable the creation or redistribution of,
  5001  // unlawful or unlicensed copies of an Apple operating system, or to
  5002  // circumvent, violate, or enable the circumvention or violation of, any
  5003  // terms of an Apple operating system software license agreement.
  5004  //
  5005  // Please obtain a copy of the License at
  5006  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5007  //
  5008  // The Original Code and all software distributed under the License are
  5009  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5010  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5011  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5012  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5013  // Please see the License for the specific language governing rights and
  5014  // limitations under the License.
  5015  //
  5016  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5017  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5018  type Nlink_t = X__uint16_t /* _nlink_t.h:31:27 */ // link count
  5019  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5020  //
  5021  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5022  //
  5023  // This file contains Original Code and/or Modifications of Original Code
  5024  // as defined in and that are subject to the Apple Public Source License
  5025  // Version 2.0 (the 'License'). You may not use this file except in
  5026  // compliance with the License. The rights granted to you under the License
  5027  // may not be used to create, or enable the creation or redistribution of,
  5028  // unlawful or unlicensed copies of an Apple operating system, or to
  5029  // circumvent, violate, or enable the circumvention or violation of, any
  5030  // terms of an Apple operating system software license agreement.
  5031  //
  5032  // Please obtain a copy of the License at
  5033  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5034  //
  5035  // The Original Code and all software distributed under the License are
  5036  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5037  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5038  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5039  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5040  // Please see the License for the specific language governing rights and
  5041  // limitations under the License.
  5042  //
  5043  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5044  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5045  //
  5046  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5047  //
  5048  // This file contains Original Code and/or Modifications of Original Code
  5049  // as defined in and that are subject to the Apple Public Source License
  5050  // Version 2.0 (the 'License'). You may not use this file except in
  5051  // compliance with the License. The rights granted to you under the License
  5052  // may not be used to create, or enable the creation or redistribution of,
  5053  // unlawful or unlicensed copies of an Apple operating system, or to
  5054  // circumvent, violate, or enable the circumvention or violation of, any
  5055  // terms of an Apple operating system software license agreement.
  5056  //
  5057  // Please obtain a copy of the License at
  5058  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5059  //
  5060  // The Original Code and all software distributed under the License are
  5061  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5062  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5063  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5064  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5065  // Please see the License for the specific language governing rights and
  5066  // limitations under the License.
  5067  //
  5068  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5069  
  5070  type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t
  5071  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5072  //
  5073  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5074  //
  5075  // This file contains Original Code and/or Modifications of Original Code
  5076  // as defined in and that are subject to the Apple Public Source License
  5077  // Version 2.0 (the 'License'). You may not use this file except in
  5078  // compliance with the License. The rights granted to you under the License
  5079  // may not be used to create, or enable the creation or redistribution of,
  5080  // unlawful or unlicensed copies of an Apple operating system, or to
  5081  // circumvent, violate, or enable the circumvention or violation of, any
  5082  // terms of an Apple operating system software license agreement.
  5083  //
  5084  // Please obtain a copy of the License at
  5085  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5086  //
  5087  // The Original Code and all software distributed under the License are
  5088  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5089  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5090  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5091  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5092  // Please see the License for the specific language governing rights and
  5093  // limitations under the License.
  5094  //
  5095  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5096  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5097  //
  5098  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5099  //
  5100  // This file contains Original Code and/or Modifications of Original Code
  5101  // as defined in and that are subject to the Apple Public Source License
  5102  // Version 2.0 (the 'License'). You may not use this file except in
  5103  // compliance with the License. The rights granted to you under the License
  5104  // may not be used to create, or enable the creation or redistribution of,
  5105  // unlawful or unlicensed copies of an Apple operating system, or to
  5106  // circumvent, violate, or enable the circumvention or violation of, any
  5107  // terms of an Apple operating system software license agreement.
  5108  //
  5109  // Please obtain a copy of the License at
  5110  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5111  //
  5112  // The Original Code and all software distributed under the License are
  5113  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5114  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5115  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5116  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5117  // Please see the License for the specific language governing rights and
  5118  // limitations under the License.
  5119  //
  5120  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5121  
  5122  type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */
  5123  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5124  //
  5125  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5126  //
  5127  // This file contains Original Code and/or Modifications of Original Code
  5128  // as defined in and that are subject to the Apple Public Source License
  5129  // Version 2.0 (the 'License'). You may not use this file except in
  5130  // compliance with the License. The rights granted to you under the License
  5131  // may not be used to create, or enable the creation or redistribution of,
  5132  // unlawful or unlicensed copies of an Apple operating system, or to
  5133  // circumvent, violate, or enable the circumvention or violation of, any
  5134  // terms of an Apple operating system software license agreement.
  5135  //
  5136  // Please obtain a copy of the License at
  5137  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5138  //
  5139  // The Original Code and all software distributed under the License are
  5140  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5141  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5142  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5143  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5144  // Please see the License for the specific language governing rights and
  5145  // limitations under the License.
  5146  //
  5147  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5148  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5149  //
  5150  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5151  //
  5152  // This file contains Original Code and/or Modifications of Original Code
  5153  // as defined in and that are subject to the Apple Public Source License
  5154  // Version 2.0 (the 'License'). You may not use this file except in
  5155  // compliance with the License. The rights granted to you under the License
  5156  // may not be used to create, or enable the creation or redistribution of,
  5157  // unlawful or unlicensed copies of an Apple operating system, or to
  5158  // circumvent, violate, or enable the circumvention or violation of, any
  5159  // terms of an Apple operating system software license agreement.
  5160  //
  5161  // Please obtain a copy of the License at
  5162  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5163  //
  5164  // The Original Code and all software distributed under the License are
  5165  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5166  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5167  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5168  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5169  // Please see the License for the specific language governing rights and
  5170  // limitations under the License.
  5171  //
  5172  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5173  
  5174  type Off_t = X__darwin_off_t /* _off_t.h:31:33 */
  5175  
  5176  type Segsz_t = Int32_t /* types.h:125:33 */ // segment size
  5177  type Swblk_t = Int32_t /* types.h:126:33 */ // swap offset
  5178  
  5179  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5180  //
  5181  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5182  //
  5183  // This file contains Original Code and/or Modifications of Original Code
  5184  // as defined in and that are subject to the Apple Public Source License
  5185  // Version 2.0 (the 'License'). You may not use this file except in
  5186  // compliance with the License. The rights granted to you under the License
  5187  // may not be used to create, or enable the creation or redistribution of,
  5188  // unlawful or unlicensed copies of an Apple operating system, or to
  5189  // circumvent, violate, or enable the circumvention or violation of, any
  5190  // terms of an Apple operating system software license agreement.
  5191  //
  5192  // Please obtain a copy of the License at
  5193  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5194  //
  5195  // The Original Code and all software distributed under the License are
  5196  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5197  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5198  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5199  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5200  // Please see the License for the specific language governing rights and
  5201  // limitations under the License.
  5202  //
  5203  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5204  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5205  //
  5206  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5207  //
  5208  // This file contains Original Code and/or Modifications of Original Code
  5209  // as defined in and that are subject to the Apple Public Source License
  5210  // Version 2.0 (the 'License'). You may not use this file except in
  5211  // compliance with the License. The rights granted to you under the License
  5212  // may not be used to create, or enable the creation or redistribution of,
  5213  // unlawful or unlicensed copies of an Apple operating system, or to
  5214  // circumvent, violate, or enable the circumvention or violation of, any
  5215  // terms of an Apple operating system software license agreement.
  5216  //
  5217  // Please obtain a copy of the License at
  5218  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5219  //
  5220  // The Original Code and all software distributed under the License are
  5221  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5222  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5223  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5224  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5225  // Please see the License for the specific language governing rights and
  5226  // limitations under the License.
  5227  //
  5228  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5229  
  5230  type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  5231  
  5232  // Major, minor numbers, dev_t's.
  5233  
  5234  // Copyright (c) 2003-2012 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  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5260  //
  5261  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5262  //
  5263  // This file contains Original Code and/or Modifications of Original Code
  5264  // as defined in and that are subject to the Apple Public Source License
  5265  // Version 2.0 (the 'License'). You may not use this file except in
  5266  // compliance with the License. The rights granted to you under the License
  5267  // may not be used to create, or enable the creation or redistribution of,
  5268  // unlawful or unlicensed copies of an Apple operating system, or to
  5269  // circumvent, violate, or enable the circumvention or violation of, any
  5270  // terms of an Apple operating system software license agreement.
  5271  //
  5272  // Please obtain a copy of the License at
  5273  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5274  //
  5275  // The Original Code and all software distributed under the License are
  5276  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5277  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5278  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5279  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5280  // Please see the License for the specific language governing rights and
  5281  // limitations under the License.
  5282  //
  5283  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5284  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5285  type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */
  5286  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5287  //
  5288  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5289  //
  5290  // This file contains Original Code and/or Modifications of Original Code
  5291  // as defined in and that are subject to the Apple Public Source License
  5292  // Version 2.0 (the 'License'). You may not use this file except in
  5293  // compliance with the License. The rights granted to you under the License
  5294  // may not be used to create, or enable the creation or redistribution of,
  5295  // unlawful or unlicensed copies of an Apple operating system, or to
  5296  // circumvent, violate, or enable the circumvention or violation of, any
  5297  // terms of an Apple operating system software license agreement.
  5298  //
  5299  // Please obtain a copy of the License at
  5300  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5301  //
  5302  // The Original Code and all software distributed under the License are
  5303  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5304  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5305  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5306  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5307  // Please see the License for the specific language governing rights and
  5308  // limitations under the License.
  5309  //
  5310  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5311  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5312  //
  5313  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5314  //
  5315  // This file contains Original Code and/or Modifications of Original Code
  5316  // as defined in and that are subject to the Apple Public Source License
  5317  // Version 2.0 (the 'License'). You may not use this file except in
  5318  // compliance with the License. The rights granted to you under the License
  5319  // may not be used to create, or enable the creation or redistribution of,
  5320  // unlawful or unlicensed copies of an Apple operating system, or to
  5321  // circumvent, violate, or enable the circumvention or violation of, any
  5322  // terms of an Apple operating system software license agreement.
  5323  //
  5324  // Please obtain a copy of the License at
  5325  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5326  //
  5327  // The Original Code and all software distributed under the License are
  5328  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5329  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5330  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5331  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5332  // Please see the License for the specific language governing rights and
  5333  // limitations under the License.
  5334  //
  5335  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5336  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5337  type Ssize_t = X__darwin_ssize_t /* _ssize_t.h:31:33 */
  5338  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5339  //
  5340  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5341  //
  5342  // This file contains Original Code and/or Modifications of Original Code
  5343  // as defined in and that are subject to the Apple Public Source License
  5344  // Version 2.0 (the 'License'). You may not use this file except in
  5345  // compliance with the License. The rights granted to you under the License
  5346  // may not be used to create, or enable the creation or redistribution of,
  5347  // unlawful or unlicensed copies of an Apple operating system, or to
  5348  // circumvent, violate, or enable the circumvention or violation of, any
  5349  // terms of an Apple operating system software license agreement.
  5350  //
  5351  // Please obtain a copy of the License at
  5352  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5353  //
  5354  // The Original Code and all software distributed under the License are
  5355  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5356  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5357  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5358  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5359  // Please see the License for the specific language governing rights and
  5360  // limitations under the License.
  5361  //
  5362  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5363  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5364  //
  5365  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5366  //
  5367  // This file contains Original Code and/or Modifications of Original Code
  5368  // as defined in and that are subject to the Apple Public Source License
  5369  // Version 2.0 (the 'License'). You may not use this file except in
  5370  // compliance with the License. The rights granted to you under the License
  5371  // may not be used to create, or enable the creation or redistribution of,
  5372  // unlawful or unlicensed copies of an Apple operating system, or to
  5373  // circumvent, violate, or enable the circumvention or violation of, any
  5374  // terms of an Apple operating system software license agreement.
  5375  //
  5376  // Please obtain a copy of the License at
  5377  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5378  //
  5379  // The Original Code and all software distributed under the License are
  5380  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5381  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5382  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5383  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5384  // Please see the License for the specific language governing rights and
  5385  // limitations under the License.
  5386  //
  5387  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5388  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5389  type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
  5390  
  5391  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5392  //
  5393  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5394  //
  5395  // This file contains Original Code and/or Modifications of Original Code
  5396  // as defined in and that are subject to the Apple Public Source License
  5397  // Version 2.0 (the 'License'). You may not use this file except in
  5398  // compliance with the License. The rights granted to you under the License
  5399  // may not be used to create, or enable the creation or redistribution of,
  5400  // unlawful or unlicensed copies of an Apple operating system, or to
  5401  // circumvent, violate, or enable the circumvention or violation of, any
  5402  // terms of an Apple operating system software license agreement.
  5403  //
  5404  // Please obtain a copy of the License at
  5405  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5406  //
  5407  // The Original Code and all software distributed under the License are
  5408  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5409  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5410  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5411  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5412  // Please see the License for the specific language governing rights and
  5413  // limitations under the License.
  5414  //
  5415  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5416  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5417  //
  5418  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5419  //
  5420  // This file contains Original Code and/or Modifications of Original Code
  5421  // as defined in and that are subject to the Apple Public Source License
  5422  // Version 2.0 (the 'License'). You may not use this file except in
  5423  // compliance with the License. The rights granted to you under the License
  5424  // may not be used to create, or enable the creation or redistribution of,
  5425  // unlawful or unlicensed copies of an Apple operating system, or to
  5426  // circumvent, violate, or enable the circumvention or violation of, any
  5427  // terms of an Apple operating system software license agreement.
  5428  //
  5429  // Please obtain a copy of the License at
  5430  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5431  //
  5432  // The Original Code and all software distributed under the License are
  5433  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5434  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5435  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5436  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5437  // Please see the License for the specific language governing rights and
  5438  // limitations under the License.
  5439  //
  5440  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5441  
  5442  type Useconds_t = X__darwin_useconds_t /* _useconds_t.h:31:33 */
  5443  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5444  //
  5445  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5446  //
  5447  // This file contains Original Code and/or Modifications of Original Code
  5448  // as defined in and that are subject to the Apple Public Source License
  5449  // Version 2.0 (the 'License'). You may not use this file except in
  5450  // compliance with the License. The rights granted to you under the License
  5451  // may not be used to create, or enable the creation or redistribution of,
  5452  // unlawful or unlicensed copies of an Apple operating system, or to
  5453  // circumvent, violate, or enable the circumvention or violation of, any
  5454  // terms of an Apple operating system software license agreement.
  5455  //
  5456  // Please obtain a copy of the License at
  5457  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5458  //
  5459  // The Original Code and all software distributed under the License are
  5460  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5461  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5462  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5463  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5464  // Please see the License for the specific language governing rights and
  5465  // limitations under the License.
  5466  //
  5467  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5468  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5469  //
  5470  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5471  //
  5472  // This file contains Original Code and/or Modifications of Original Code
  5473  // as defined in and that are subject to the Apple Public Source License
  5474  // Version 2.0 (the 'License'). You may not use this file except in
  5475  // compliance with the License. The rights granted to you under the License
  5476  // may not be used to create, or enable the creation or redistribution of,
  5477  // unlawful or unlicensed copies of an Apple operating system, or to
  5478  // circumvent, violate, or enable the circumvention or violation of, any
  5479  // terms of an Apple operating system software license agreement.
  5480  //
  5481  // Please obtain a copy of the License at
  5482  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5483  //
  5484  // The Original Code and all software distributed under the License are
  5485  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5486  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5487  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5488  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5489  // Please see the License for the specific language governing rights and
  5490  // limitations under the License.
  5491  //
  5492  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5493  
  5494  type Suseconds_t = X__darwin_suseconds_t /* _suseconds_t.h:31:33 */
  5495  
  5496  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5497  //
  5498  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5499  //
  5500  // This file contains Original Code and/or Modifications of Original Code
  5501  // as defined in and that are subject to the Apple Public Source License
  5502  // Version 2.0 (the 'License'). You may not use this file except in
  5503  // compliance with the License. The rights granted to you under the License
  5504  // may not be used to create, or enable the creation or redistribution of,
  5505  // unlawful or unlicensed copies of an Apple operating system, or to
  5506  // circumvent, violate, or enable the circumvention or violation of, any
  5507  // terms of an Apple operating system software license agreement.
  5508  //
  5509  // Please obtain a copy of the License at
  5510  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5511  //
  5512  // The Original Code and all software distributed under the License are
  5513  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5514  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5515  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5516  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5517  // Please see the License for the specific language governing rights and
  5518  // limitations under the License.
  5519  //
  5520  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5521  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5522  //
  5523  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5524  //
  5525  // This file contains Original Code and/or Modifications of Original Code
  5526  // as defined in and that are subject to the Apple Public Source License
  5527  // Version 2.0 (the 'License'). You may not use this file except in
  5528  // compliance with the License. The rights granted to you under the License
  5529  // may not be used to create, or enable the creation or redistribution of,
  5530  // unlawful or unlicensed copies of an Apple operating system, or to
  5531  // circumvent, violate, or enable the circumvention or violation of, any
  5532  // terms of an Apple operating system software license agreement.
  5533  //
  5534  // Please obtain a copy of the License at
  5535  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5536  //
  5537  // The Original Code and all software distributed under the License are
  5538  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5539  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5540  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5541  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5542  // Please see the License for the specific language governing rights and
  5543  // limitations under the License.
  5544  //
  5545  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5546  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5547  type Rsize_t = X__darwin_size_t /* _rsize_t.h:31:32 */
  5548  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5549  //
  5550  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5551  //
  5552  // This file contains Original Code and/or Modifications of Original Code
  5553  // as defined in and that are subject to the Apple Public Source License
  5554  // Version 2.0 (the 'License'). You may not use this file except in
  5555  // compliance with the License. The rights granted to you under the License
  5556  // may not be used to create, or enable the creation or redistribution of,
  5557  // unlawful or unlicensed copies of an Apple operating system, or to
  5558  // circumvent, violate, or enable the circumvention or violation of, any
  5559  // terms of an Apple operating system software license agreement.
  5560  //
  5561  // Please obtain a copy of the License at
  5562  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5563  //
  5564  // The Original Code and all software distributed under the License are
  5565  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5566  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5567  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5568  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5569  // Please see the License for the specific language governing rights and
  5570  // limitations under the License.
  5571  //
  5572  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5573  type Errno_t = int32 /* _errno_t.h:30:32 */
  5574  
  5575  // This code is present here in order to maintain historical backward
  5576  // compatability, and is intended to be removed at some point in the
  5577  // future; please include <sys/select.h> instead.
  5578  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5579  //
  5580  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5581  //
  5582  // This file contains Original Code and/or Modifications of Original Code
  5583  // as defined in and that are subject to the Apple Public Source License
  5584  // Version 2.0 (the 'License'). You may not use this file except in
  5585  // compliance with the License. The rights granted to you under the License
  5586  // may not be used to create, or enable the creation or redistribution of,
  5587  // unlawful or unlicensed copies of an Apple operating system, or to
  5588  // circumvent, violate, or enable the circumvention or violation of, any
  5589  // terms of an Apple operating system software license agreement.
  5590  //
  5591  // Please obtain a copy of the License at
  5592  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5593  //
  5594  // The Original Code and all software distributed under the License are
  5595  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5596  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5597  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5598  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5599  // Please see the License for the specific language governing rights and
  5600  // limitations under the License.
  5601  //
  5602  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5603  
  5604  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5605  //
  5606  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5607  //
  5608  // This file contains Original Code and/or Modifications of Original Code
  5609  // as defined in and that are subject to the Apple Public Source License
  5610  // Version 2.0 (the 'License'). You may not use this file except in
  5611  // compliance with the License. The rights granted to you under the License
  5612  // may not be used to create, or enable the creation or redistribution of,
  5613  // unlawful or unlicensed copies of an Apple operating system, or to
  5614  // circumvent, violate, or enable the circumvention or violation of, any
  5615  // terms of an Apple operating system software license agreement.
  5616  //
  5617  // Please obtain a copy of the License at
  5618  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5619  //
  5620  // The Original Code and all software distributed under the License are
  5621  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5622  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5623  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5624  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5625  // Please see the License for the specific language governing rights and
  5626  // limitations under the License.
  5627  //
  5628  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5629  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5630  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  5631  //
  5632  // @APPLE_LICENSE_HEADER_START@
  5633  //
  5634  // This file contains Original Code and/or Modifications of Original Code
  5635  // as defined in and that are subject to the Apple Public Source License
  5636  // Version 2.0 (the 'License'). You may not use this file except in
  5637  // compliance with the License. Please obtain a copy of the License at
  5638  // http://www.opensource.apple.com/apsl/ and read it before using this
  5639  // file.
  5640  //
  5641  // The Original Code and all software distributed under the License are
  5642  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5643  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5644  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5645  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5646  // Please see the License for the specific language governing rights and
  5647  // limitations under the License.
  5648  //
  5649  // @APPLE_LICENSE_HEADER_END@
  5650  
  5651  //
  5652  //     These macros are for use in OS header files. They enable function prototypes
  5653  //     and Objective-C methods to be tagged with the OS version in which they
  5654  //     were first available; and, if applicable, the OS version in which they
  5655  //     became deprecated.
  5656  //
  5657  //     The desktop Mac OS X and iOS each have different version numbers.
  5658  //     The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  5659  //     and iOS version numbers.  For instance:
  5660  //         __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  5661  //     means the function/method was first available on Mac OS X 10.2 on the desktop
  5662  //     and first available in iOS 2.0 on the iPhone.
  5663  //
  5664  //     If a function is available on one platform, but not the other a _NA (not
  5665  //     applicable) parameter is used.  For instance:
  5666  //             __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  5667  //     means that the function/method was first available on Mac OS X 10.3, and it
  5668  //     currently not implemented on the iPhone.
  5669  //
  5670  //     At some point, a function/method may be deprecated.  That means Apple
  5671  //     recommends applications stop using the function, either because there is a
  5672  //     better replacement or the functionality is being phased out.  Deprecated
  5673  //     functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  5674  //     macro which specifies the OS version where the function became available
  5675  //     as well as the OS version in which it became deprecated.  For instance:
  5676  //         __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  5677  //     means that the function/method was introduced in Mac OS X 10.0, then
  5678  //     became deprecated beginning in Mac OS X 10.5.  On iOS the function
  5679  //     has never been available.
  5680  //
  5681  //     For these macros to function properly, a program must specify the OS version range
  5682  //     it is targeting.  The min OS version is specified as an option to the compiler:
  5683  //     -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  5684  //     when building for the iPhone.  The upper bound for the OS version is rarely needed,
  5685  //     but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  5686  //     Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  5687  //
  5688  //     Examples:
  5689  //
  5690  //         A function available in Mac OS X 10.5 and later, but not on the phone:
  5691  //
  5692  //             extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  5693  //
  5694  //
  5695  //         An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  5696  //
  5697  //             @interface MyClass : NSObject
  5698  //             -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  5699  //             @end
  5700  //
  5701  //
  5702  //         An enum available on the phone, but not available on Mac OS X:
  5703  //
  5704  //             #if __IPHONE_OS_VERSION_MIN_REQUIRED
  5705  //                 enum { myEnum = 1 };
  5706  //             #endif
  5707  //            Note: this works when targeting the Mac OS X platform because
  5708  //            __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  5709  //
  5710  //
  5711  //         An enum with values added in different iPhoneOS versions:
  5712  //
  5713  // 			enum {
  5714  // 			    myX  = 1,	// Usable on iPhoneOS 2.1 and later
  5715  // 			    myY  = 2,	// Usable on iPhoneOS 3.0 and later
  5716  // 			    myZ  = 3,	// Usable on iPhoneOS 3.0 and later
  5717  // 				...
  5718  // 		      Note: you do not want to use #if with enumeration values
  5719  // 			  when a client needs to see all values at compile time
  5720  // 			  and use runtime logic to only use the viable values.
  5721  //
  5722  //
  5723  //     It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  5724  //     source base that can be compiled to target a range of OS versions.  It is best
  5725  //     to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  5726  //     That is because you might get compiled on an old OS that does not define a later
  5727  //     OS version macro, and in the C preprocessor undefined values evaluate to zero
  5728  //     in expresssions, which could cause the #if expression to evaluate in an unexpected
  5729  //     way.
  5730  //
  5731  //         #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  5732  //             // code only compiled when targeting Mac OS X and not iPhone
  5733  //             // note use of 1050 instead of __MAC_10_5
  5734  //             #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  5735  //                 // code in here might run on pre-Leopard OS
  5736  //             #else
  5737  //                 // code here can assume Leopard or later
  5738  //             #endif
  5739  //         #endif
  5740  //
  5741  //
  5742  
  5743  // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  5744  // in an upcoming release. This soft deprecation is an intermediate step before formal
  5745  // deprecation to notify developers about the API before compiler warnings are generated.
  5746  // You can find all places in your code that use soft deprecated API by redefining the
  5747  // value of this macro to your current minimum deployment target, for example:
  5748  // (macOS)
  5749  //   clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  5750  // (iOS)
  5751  //   clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  5752  
  5753  // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  5754  //
  5755  // @APPLE_LICENSE_HEADER_START@
  5756  //
  5757  // This file contains Original Code and/or Modifications of Original Code
  5758  // as defined in and that are subject to the Apple Public Source License
  5759  // Version 2.0 (the 'License'). You may not use this file except in
  5760  // compliance with the License. Please obtain a copy of the License at
  5761  // http://www.opensource.apple.com/apsl/ and read it before using this
  5762  // file.
  5763  //
  5764  // The Original Code and all software distributed under the License are
  5765  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5766  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5767  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5768  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5769  // Please see the License for the specific language governing rights and
  5770  // limitations under the License.
  5771  //
  5772  // @APPLE_LICENSE_HEADER_END@
  5773  
  5774  // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  5775  
  5776  // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  5777  
  5778  // Set up standard Mac OS X versions
  5779  
  5780  //  DO NOT EDIT THIS FILE.
  5781  //
  5782  //     It has been auto-edited by fixincludes from:
  5783  //
  5784  // 	"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/AvailabilityInternal.h"
  5785  //
  5786  //     This had to be done to correct non-standard usages in the
  5787  //     original, manufacturer supplied header file.
  5788  
  5789  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  5790  //
  5791  // @APPLE_LICENSE_HEADER_START@
  5792  //
  5793  // This file contains Original Code and/or Modifications of Original Code
  5794  // as defined in and that are subject to the Apple Public Source License
  5795  // Version 2.0 (the 'License'). You may not use this file except in
  5796  // compliance with the License. Please obtain a copy of the License at
  5797  // http://www.opensource.apple.com/apsl/ and read it before using this
  5798  // file.
  5799  //
  5800  // The Original Code and all software distributed under the License are
  5801  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5802  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5803  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5804  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5805  // Please see the License for the specific language governing rights and
  5806  // limitations under the License.
  5807  //
  5808  // @APPLE_LICENSE_HEADER_END@
  5809  
  5810  //
  5811  //     File:       AvailabilityInternal.h
  5812  //
  5813  //     Contains:   implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  5814  //
  5815  
  5816  // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  5817  
  5818  // make sure a default max version is set
  5819  
  5820  //
  5821  //  Macros for defining which versions/platform a given symbol can be used.
  5822  //
  5823  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  5824  //
  5825  
  5826  // Evaluate to nothing for compilers that don't support availability.
  5827  
  5828  // Swift compiler version
  5829  // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  5830  // Example:
  5831  //
  5832  //  #if __swift_compiler_version_at_least(800, 2, 20)
  5833  //  - (nonnull NSString *)description;
  5834  //  #else
  5835  //  - (NSString *)description;
  5836  //  #endif
  5837  
  5838  // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  5839  
  5840  // for use to document app extension usage
  5841  
  5842  // for use marking APIs available info for Mac OSX
  5843  
  5844  // for use marking APIs available info for iOS
  5845  
  5846  // for use marking APIs available info for tvOS
  5847  
  5848  // for use marking APIs available info for Watch OS
  5849  
  5850  // for use marking APIs unavailable for swift
  5851  
  5852  //
  5853  //  Macros for defining which versions/platform a given symbol can be used.
  5854  //
  5855  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  5856  //
  5857  //  * Note that these macros are only compatible with clang compilers that
  5858  //  * support the following target selection options:
  5859  //  *
  5860  //  * -mmacosx-version-min
  5861  //  * -miphoneos-version-min
  5862  //  * -mwatchos-version-min
  5863  //  * -mtvos-version-min
  5864  //
  5865  
  5866  // Evaluate to nothing for compilers that don't support availability.
  5867  
  5868  // If SPI decorations have not been defined elsewhere, disable them.
  5869  
  5870  // Select uses bit masks of file descriptors in longs.  These macros
  5871  // manipulate such bit fields (the filesystem macros use chars).  The
  5872  // extra protection here is to permit application redefinition above
  5873  // the default size.
  5874  
  5875  type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
  5876  
  5877  // This code is present here in order to maintain historical backward
  5878  // compatability, and is intended to be removed at some point in the
  5879  // future; please include <sys/select.h> instead.
  5880  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5881  //
  5882  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5883  //
  5884  // This file contains Original Code and/or Modifications of Original Code
  5885  // as defined in and that are subject to the Apple Public Source License
  5886  // Version 2.0 (the 'License'). You may not use this file except in
  5887  // compliance with the License. The rights granted to you under the License
  5888  // may not be used to create, or enable the creation or redistribution of,
  5889  // unlawful or unlicensed copies of an Apple operating system, or to
  5890  // circumvent, violate, or enable the circumvention or violation of, any
  5891  // terms of an Apple operating system software license agreement.
  5892  //
  5893  // Please obtain a copy of the License at
  5894  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5895  //
  5896  // The Original Code and all software distributed under the License are
  5897  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5898  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5899  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5900  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5901  // Please see the License for the specific language governing rights and
  5902  // limitations under the License.
  5903  //
  5904  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5905  
  5906  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5907  //
  5908  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5909  //
  5910  // This file contains Original Code and/or Modifications of Original Code
  5911  // as defined in and that are subject to the Apple Public Source License
  5912  // Version 2.0 (the 'License'). You may not use this file except in
  5913  // compliance with the License. The rights granted to you under the License
  5914  // may not be used to create, or enable the creation or redistribution of,
  5915  // unlawful or unlicensed copies of an Apple operating system, or to
  5916  // circumvent, violate, or enable the circumvention or violation of, any
  5917  // terms of an Apple operating system software license agreement.
  5918  //
  5919  // Please obtain a copy of the License at
  5920  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5921  //
  5922  // The Original Code and all software distributed under the License are
  5923  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5924  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5925  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5926  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5927  // Please see the License for the specific language governing rights and
  5928  // limitations under the License.
  5929  //
  5930  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5931  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5932  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  5933  //
  5934  // @APPLE_LICENSE_HEADER_START@
  5935  //
  5936  // This file contains Original Code and/or Modifications of Original Code
  5937  // as defined in and that are subject to the Apple Public Source License
  5938  // Version 2.0 (the 'License'). You may not use this file except in
  5939  // compliance with the License. Please obtain a copy of the License at
  5940  // http://www.opensource.apple.com/apsl/ and read it before using this
  5941  // file.
  5942  //
  5943  // The Original Code and all software distributed under the License are
  5944  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5945  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5946  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5947  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5948  // Please see the License for the specific language governing rights and
  5949  // limitations under the License.
  5950  //
  5951  // @APPLE_LICENSE_HEADER_END@
  5952  
  5953  //
  5954  //     These macros are for use in OS header files. They enable function prototypes
  5955  //     and Objective-C methods to be tagged with the OS version in which they
  5956  //     were first available; and, if applicable, the OS version in which they
  5957  //     became deprecated.
  5958  //
  5959  //     The desktop Mac OS X and iOS each have different version numbers.
  5960  //     The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  5961  //     and iOS version numbers.  For instance:
  5962  //         __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  5963  //     means the function/method was first available on Mac OS X 10.2 on the desktop
  5964  //     and first available in iOS 2.0 on the iPhone.
  5965  //
  5966  //     If a function is available on one platform, but not the other a _NA (not
  5967  //     applicable) parameter is used.  For instance:
  5968  //             __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  5969  //     means that the function/method was first available on Mac OS X 10.3, and it
  5970  //     currently not implemented on the iPhone.
  5971  //
  5972  //     At some point, a function/method may be deprecated.  That means Apple
  5973  //     recommends applications stop using the function, either because there is a
  5974  //     better replacement or the functionality is being phased out.  Deprecated
  5975  //     functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  5976  //     macro which specifies the OS version where the function became available
  5977  //     as well as the OS version in which it became deprecated.  For instance:
  5978  //         __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  5979  //     means that the function/method was introduced in Mac OS X 10.0, then
  5980  //     became deprecated beginning in Mac OS X 10.5.  On iOS the function
  5981  //     has never been available.
  5982  //
  5983  //     For these macros to function properly, a program must specify the OS version range
  5984  //     it is targeting.  The min OS version is specified as an option to the compiler:
  5985  //     -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  5986  //     when building for the iPhone.  The upper bound for the OS version is rarely needed,
  5987  //     but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  5988  //     Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  5989  //
  5990  //     Examples:
  5991  //
  5992  //         A function available in Mac OS X 10.5 and later, but not on the phone:
  5993  //
  5994  //             extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  5995  //
  5996  //
  5997  //         An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  5998  //
  5999  //             @interface MyClass : NSObject
  6000  //             -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  6001  //             @end
  6002  //
  6003  //
  6004  //         An enum available on the phone, but not available on Mac OS X:
  6005  //
  6006  //             #if __IPHONE_OS_VERSION_MIN_REQUIRED
  6007  //                 enum { myEnum = 1 };
  6008  //             #endif
  6009  //            Note: this works when targeting the Mac OS X platform because
  6010  //            __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  6011  //
  6012  //
  6013  //         An enum with values added in different iPhoneOS versions:
  6014  //
  6015  // 			enum {
  6016  // 			    myX  = 1,	// Usable on iPhoneOS 2.1 and later
  6017  // 			    myY  = 2,	// Usable on iPhoneOS 3.0 and later
  6018  // 			    myZ  = 3,	// Usable on iPhoneOS 3.0 and later
  6019  // 				...
  6020  // 		      Note: you do not want to use #if with enumeration values
  6021  // 			  when a client needs to see all values at compile time
  6022  // 			  and use runtime logic to only use the viable values.
  6023  //
  6024  //
  6025  //     It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  6026  //     source base that can be compiled to target a range of OS versions.  It is best
  6027  //     to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  6028  //     That is because you might get compiled on an old OS that does not define a later
  6029  //     OS version macro, and in the C preprocessor undefined values evaluate to zero
  6030  //     in expresssions, which could cause the #if expression to evaluate in an unexpected
  6031  //     way.
  6032  //
  6033  //         #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  6034  //             // code only compiled when targeting Mac OS X and not iPhone
  6035  //             // note use of 1050 instead of __MAC_10_5
  6036  //             #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  6037  //                 // code in here might run on pre-Leopard OS
  6038  //             #else
  6039  //                 // code here can assume Leopard or later
  6040  //             #endif
  6041  //         #endif
  6042  //
  6043  //
  6044  
  6045  // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  6046  // in an upcoming release. This soft deprecation is an intermediate step before formal
  6047  // deprecation to notify developers about the API before compiler warnings are generated.
  6048  // You can find all places in your code that use soft deprecated API by redefining the
  6049  // value of this macro to your current minimum deployment target, for example:
  6050  // (macOS)
  6051  //   clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  6052  // (iOS)
  6053  //   clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  6054  
  6055  // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  6056  //
  6057  // @APPLE_LICENSE_HEADER_START@
  6058  //
  6059  // This file contains Original Code and/or Modifications of Original Code
  6060  // as defined in and that are subject to the Apple Public Source License
  6061  // Version 2.0 (the 'License'). You may not use this file except in
  6062  // compliance with the License. Please obtain a copy of the License at
  6063  // http://www.opensource.apple.com/apsl/ and read it before using this
  6064  // file.
  6065  //
  6066  // The Original Code and all software distributed under the License are
  6067  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6068  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6069  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6070  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6071  // Please see the License for the specific language governing rights and
  6072  // limitations under the License.
  6073  //
  6074  // @APPLE_LICENSE_HEADER_END@
  6075  
  6076  // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  6077  
  6078  // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  6079  
  6080  // Set up standard Mac OS X versions
  6081  
  6082  //  DO NOT EDIT THIS FILE.
  6083  //
  6084  //     It has been auto-edited by fixincludes from:
  6085  //
  6086  // 	"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/AvailabilityInternal.h"
  6087  //
  6088  //     This had to be done to correct non-standard usages in the
  6089  //     original, manufacturer supplied header file.
  6090  
  6091  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  6092  //
  6093  // @APPLE_LICENSE_HEADER_START@
  6094  //
  6095  // This file contains Original Code and/or Modifications of Original Code
  6096  // as defined in and that are subject to the Apple Public Source License
  6097  // Version 2.0 (the 'License'). You may not use this file except in
  6098  // compliance with the License. Please obtain a copy of the License at
  6099  // http://www.opensource.apple.com/apsl/ and read it before using this
  6100  // file.
  6101  //
  6102  // The Original Code and all software distributed under the License are
  6103  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6104  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6105  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6106  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6107  // Please see the License for the specific language governing rights and
  6108  // limitations under the License.
  6109  //
  6110  // @APPLE_LICENSE_HEADER_END@
  6111  
  6112  //
  6113  //     File:       AvailabilityInternal.h
  6114  //
  6115  //     Contains:   implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  6116  //
  6117  
  6118  // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  6119  
  6120  // make sure a default max version is set
  6121  
  6122  //
  6123  //  Macros for defining which versions/platform a given symbol can be used.
  6124  //
  6125  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  6126  //
  6127  
  6128  // Evaluate to nothing for compilers that don't support availability.
  6129  
  6130  // Swift compiler version
  6131  // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  6132  // Example:
  6133  //
  6134  //  #if __swift_compiler_version_at_least(800, 2, 20)
  6135  //  - (nonnull NSString *)description;
  6136  //  #else
  6137  //  - (NSString *)description;
  6138  //  #endif
  6139  
  6140  // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  6141  
  6142  // for use to document app extension usage
  6143  
  6144  // for use marking APIs available info for Mac OSX
  6145  
  6146  // for use marking APIs available info for iOS
  6147  
  6148  // for use marking APIs available info for tvOS
  6149  
  6150  // for use marking APIs available info for Watch OS
  6151  
  6152  // for use marking APIs unavailable for swift
  6153  
  6154  //
  6155  //  Macros for defining which versions/platform a given symbol can be used.
  6156  //
  6157  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  6158  //
  6159  //  * Note that these macros are only compatible with clang compilers that
  6160  //  * support the following target selection options:
  6161  //  *
  6162  //  * -mmacosx-version-min
  6163  //  * -miphoneos-version-min
  6164  //  * -mwatchos-version-min
  6165  //  * -mtvos-version-min
  6166  //
  6167  
  6168  // Evaluate to nothing for compilers that don't support availability.
  6169  
  6170  // If SPI decorations have not been defined elsewhere, disable them.
  6171  
  6172  // Select uses bit masks of file descriptors in longs.  These macros
  6173  // manipulate such bit fields (the filesystem macros use chars).  The
  6174  // extra protection here is to permit application redefinition above
  6175  // the default size.
  6176  
  6177  type Fd_set = Fd_set1 /* _fd_def.h:52:3 */
  6178  
  6179  // Use the built-in bzero function instead of the library version so that
  6180  // we do not pollute the namespace or introduce prototype warnings.
  6181  
  6182  type Fd_mask = X__int32_t /* types.h:189:25 */
  6183  
  6184  // Select uses bit masks of file descriptors in longs.  These macros
  6185  // manipulate such bit fields (the filesystem macros use chars).  The
  6186  // extra protection here is to permit application redefinition above
  6187  // the default size.
  6188  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6189  //
  6190  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6191  //
  6192  // This file contains Original Code and/or Modifications of Original Code
  6193  // as defined in and that are subject to the Apple Public Source License
  6194  // Version 2.0 (the 'License'). You may not use this file except in
  6195  // compliance with the License. The rights granted to you under the License
  6196  // may not be used to create, or enable the creation or redistribution of,
  6197  // unlawful or unlicensed copies of an Apple operating system, or to
  6198  // circumvent, violate, or enable the circumvention or violation of, any
  6199  // terms of an Apple operating system software license agreement.
  6200  //
  6201  // Please obtain a copy of the License at
  6202  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6203  //
  6204  // The Original Code and all software distributed under the License are
  6205  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6206  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6207  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6208  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6209  // Please see the License for the specific language governing rights and
  6210  // limitations under the License.
  6211  //
  6212  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6213  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6214  //
  6215  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6216  //
  6217  // This file contains Original Code and/or Modifications of Original Code
  6218  // as defined in and that are subject to the Apple Public Source License
  6219  // Version 2.0 (the 'License'). You may not use this file except in
  6220  // compliance with the License. The rights granted to you under the License
  6221  // may not be used to create, or enable the creation or redistribution of,
  6222  // unlawful or unlicensed copies of an Apple operating system, or to
  6223  // circumvent, violate, or enable the circumvention or violation of, any
  6224  // terms of an Apple operating system software license agreement.
  6225  //
  6226  // Please obtain a copy of the License at
  6227  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6228  //
  6229  // The Original Code and all software distributed under the License are
  6230  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6231  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6232  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6233  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6234  // Please see the License for the specific language governing rights and
  6235  // limitations under the License.
  6236  //
  6237  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6238  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6239  //
  6240  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6241  //
  6242  // This file contains Original Code and/or Modifications of Original Code
  6243  // as defined in and that are subject to the Apple Public Source License
  6244  // Version 2.0 (the 'License'). You may not use this file except in
  6245  // compliance with the License. The rights granted to you under the License
  6246  // may not be used to create, or enable the creation or redistribution of,
  6247  // unlawful or unlicensed copies of an Apple operating system, or to
  6248  // circumvent, violate, or enable the circumvention or violation of, any
  6249  // terms of an Apple operating system software license agreement.
  6250  //
  6251  // Please obtain a copy of the License at
  6252  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6253  //
  6254  // The Original Code and all software distributed under the License are
  6255  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6256  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6257  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6258  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6259  // Please see the License for the specific language governing rights and
  6260  // limitations under the License.
  6261  //
  6262  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6263  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6264  //
  6265  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6266  //
  6267  // This file contains Original Code and/or Modifications of Original Code
  6268  // as defined in and that are subject to the Apple Public Source License
  6269  // Version 2.0 (the 'License'). You may not use this file except in
  6270  // compliance with the License. The rights granted to you under the License
  6271  // may not be used to create, or enable the creation or redistribution of,
  6272  // unlawful or unlicensed copies of an Apple operating system, or to
  6273  // circumvent, violate, or enable the circumvention or violation of, any
  6274  // terms of an Apple operating system software license agreement.
  6275  //
  6276  // Please obtain a copy of the License at
  6277  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6278  //
  6279  // The Original Code and all software distributed under the License are
  6280  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6281  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6282  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6283  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6284  // Please see the License for the specific language governing rights and
  6285  // limitations under the License.
  6286  //
  6287  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6288  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6289  //
  6290  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6291  //
  6292  // This file contains Original Code and/or Modifications of Original Code
  6293  // as defined in and that are subject to the Apple Public Source License
  6294  // Version 2.0 (the 'License'). You may not use this file except in
  6295  // compliance with the License. The rights granted to you under the License
  6296  // may not be used to create, or enable the creation or redistribution of,
  6297  // unlawful or unlicensed copies of an Apple operating system, or to
  6298  // circumvent, violate, or enable the circumvention or violation of, any
  6299  // terms of an Apple operating system software license agreement.
  6300  //
  6301  // Please obtain a copy of the License at
  6302  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6303  //
  6304  // The Original Code and all software distributed under the License are
  6305  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6306  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6307  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6308  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6309  // Please see the License for the specific language governing rights and
  6310  // limitations under the License.
  6311  //
  6312  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6313  
  6314  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6315  //
  6316  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6317  //
  6318  // This file contains Original Code and/or Modifications of Original Code
  6319  // as defined in and that are subject to the Apple Public Source License
  6320  // Version 2.0 (the 'License'). You may not use this file except in
  6321  // compliance with the License. The rights granted to you under the License
  6322  // may not be used to create, or enable the creation or redistribution of,
  6323  // unlawful or unlicensed copies of an Apple operating system, or to
  6324  // circumvent, violate, or enable the circumvention or violation of, any
  6325  // terms of an Apple operating system software license agreement.
  6326  //
  6327  // Please obtain a copy of the License at
  6328  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6329  //
  6330  // The Original Code and all software distributed under the License are
  6331  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6332  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6333  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6334  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6335  // Please see the License for the specific language governing rights and
  6336  // limitations under the License.
  6337  //
  6338  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6339  
  6340  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6341  //
  6342  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6343  //
  6344  // This file contains Original Code and/or Modifications of Original Code
  6345  // as defined in and that are subject to the Apple Public Source License
  6346  // Version 2.0 (the 'License'). You may not use this file except in
  6347  // compliance with the License. The rights granted to you under the License
  6348  // may not be used to create, or enable the creation or redistribution of,
  6349  // unlawful or unlicensed copies of an Apple operating system, or to
  6350  // circumvent, violate, or enable the circumvention or violation of, any
  6351  // terms of an Apple operating system software license agreement.
  6352  //
  6353  // Please obtain a copy of the License at
  6354  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6355  //
  6356  // The Original Code and all software distributed under the License are
  6357  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6358  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6359  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6360  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6361  // Please see the License for the specific language governing rights and
  6362  // limitations under the License.
  6363  //
  6364  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6365  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  6366  //
  6367  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6368  //
  6369  // This file contains Original Code and/or Modifications of Original Code
  6370  // as defined in and that are subject to the Apple Public Source License
  6371  // Version 2.0 (the 'License'). You may not use this file except in
  6372  // compliance with the License. The rights granted to you under the License
  6373  // may not be used to create, or enable the creation or redistribution of,
  6374  // unlawful or unlicensed copies of an Apple operating system, or to
  6375  // circumvent, violate, or enable the circumvention or violation of, any
  6376  // terms of an Apple operating system software license agreement.
  6377  //
  6378  // Please obtain a copy of the License at
  6379  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6380  //
  6381  // The Original Code and all software distributed under the License are
  6382  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6383  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6384  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6385  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6386  // Please see the License for the specific language governing rights and
  6387  // limitations under the License.
  6388  //
  6389  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6390  
  6391  type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  6392  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6393  //
  6394  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6395  //
  6396  // This file contains Original Code and/or Modifications of Original Code
  6397  // as defined in and that are subject to the Apple Public Source License
  6398  // Version 2.0 (the 'License'). You may not use this file except in
  6399  // compliance with the License. The rights granted to you under the License
  6400  // may not be used to create, or enable the creation or redistribution of,
  6401  // unlawful or unlicensed copies of an Apple operating system, or to
  6402  // circumvent, violate, or enable the circumvention or violation of, any
  6403  // terms of an Apple operating system software license agreement.
  6404  //
  6405  // Please obtain a copy of the License at
  6406  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6407  //
  6408  // The Original Code and all software distributed under the License are
  6409  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6410  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6411  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6412  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6413  // Please see the License for the specific language governing rights and
  6414  // limitations under the License.
  6415  //
  6416  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6417  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  6418  //
  6419  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6420  //
  6421  // This file contains Original Code and/or Modifications of Original Code
  6422  // as defined in and that are subject to the Apple Public Source License
  6423  // Version 2.0 (the 'License'). You may not use this file except in
  6424  // compliance with the License. The rights granted to you under the License
  6425  // may not be used to create, or enable the creation or redistribution of,
  6426  // unlawful or unlicensed copies of an Apple operating system, or to
  6427  // circumvent, violate, or enable the circumvention or violation of, any
  6428  // terms of an Apple operating system software license agreement.
  6429  //
  6430  // Please obtain a copy of the License at
  6431  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6432  //
  6433  // The Original Code and all software distributed under the License are
  6434  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6435  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6436  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6437  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6438  // Please see the License for the specific language governing rights and
  6439  // limitations under the License.
  6440  //
  6441  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6442  
  6443  type Pthread_cond_t = X__darwin_pthread_cond_t /* _pthread_cond_t.h:31:33 */
  6444  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6445  //
  6446  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6447  //
  6448  // This file contains Original Code and/or Modifications of Original Code
  6449  // as defined in and that are subject to the Apple Public Source License
  6450  // Version 2.0 (the 'License'). You may not use this file except in
  6451  // compliance with the License. The rights granted to you under the License
  6452  // may not be used to create, or enable the creation or redistribution of,
  6453  // unlawful or unlicensed copies of an Apple operating system, or to
  6454  // circumvent, violate, or enable the circumvention or violation of, any
  6455  // terms of an Apple operating system software license agreement.
  6456  //
  6457  // Please obtain a copy of the License at
  6458  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6459  //
  6460  // The Original Code and all software distributed under the License are
  6461  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6462  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6463  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6464  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6465  // Please see the License for the specific language governing rights and
  6466  // limitations under the License.
  6467  //
  6468  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6469  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  6470  //
  6471  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6472  //
  6473  // This file contains Original Code and/or Modifications of Original Code
  6474  // as defined in and that are subject to the Apple Public Source License
  6475  // Version 2.0 (the 'License'). You may not use this file except in
  6476  // compliance with the License. The rights granted to you under the License
  6477  // may not be used to create, or enable the creation or redistribution of,
  6478  // unlawful or unlicensed copies of an Apple operating system, or to
  6479  // circumvent, violate, or enable the circumvention or violation of, any
  6480  // terms of an Apple operating system software license agreement.
  6481  //
  6482  // Please obtain a copy of the License at
  6483  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6484  //
  6485  // The Original Code and all software distributed under the License are
  6486  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6487  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6488  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6489  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6490  // Please see the License for the specific language governing rights and
  6491  // limitations under the License.
  6492  //
  6493  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6494  
  6495  type Pthread_condattr_t = X__darwin_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */
  6496  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6497  //
  6498  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6499  //
  6500  // This file contains Original Code and/or Modifications of Original Code
  6501  // as defined in and that are subject to the Apple Public Source License
  6502  // Version 2.0 (the 'License'). You may not use this file except in
  6503  // compliance with the License. The rights granted to you under the License
  6504  // may not be used to create, or enable the creation or redistribution of,
  6505  // unlawful or unlicensed copies of an Apple operating system, or to
  6506  // circumvent, violate, or enable the circumvention or violation of, any
  6507  // terms of an Apple operating system software license agreement.
  6508  //
  6509  // Please obtain a copy of the License at
  6510  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6511  //
  6512  // The Original Code and all software distributed under the License are
  6513  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6514  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6515  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6516  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6517  // Please see the License for the specific language governing rights and
  6518  // limitations under the License.
  6519  //
  6520  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6521  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  6522  //
  6523  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6524  //
  6525  // This file contains Original Code and/or Modifications of Original Code
  6526  // as defined in and that are subject to the Apple Public Source License
  6527  // Version 2.0 (the 'License'). You may not use this file except in
  6528  // compliance with the License. The rights granted to you under the License
  6529  // may not be used to create, or enable the creation or redistribution of,
  6530  // unlawful or unlicensed copies of an Apple operating system, or to
  6531  // circumvent, violate, or enable the circumvention or violation of, any
  6532  // terms of an Apple operating system software license agreement.
  6533  //
  6534  // Please obtain a copy of the License at
  6535  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6536  //
  6537  // The Original Code and all software distributed under the License are
  6538  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6539  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6540  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6541  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6542  // Please see the License for the specific language governing rights and
  6543  // limitations under the License.
  6544  //
  6545  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6546  
  6547  type Pthread_mutex_t = X__darwin_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */
  6548  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6549  //
  6550  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6551  //
  6552  // This file contains Original Code and/or Modifications of Original Code
  6553  // as defined in and that are subject to the Apple Public Source License
  6554  // Version 2.0 (the 'License'). You may not use this file except in
  6555  // compliance with the License. The rights granted to you under the License
  6556  // may not be used to create, or enable the creation or redistribution of,
  6557  // unlawful or unlicensed copies of an Apple operating system, or to
  6558  // circumvent, violate, or enable the circumvention or violation of, any
  6559  // terms of an Apple operating system software license agreement.
  6560  //
  6561  // Please obtain a copy of the License at
  6562  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6563  //
  6564  // The Original Code and all software distributed under the License are
  6565  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6566  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6567  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6568  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6569  // Please see the License for the specific language governing rights and
  6570  // limitations under the License.
  6571  //
  6572  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6573  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  6574  //
  6575  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6576  //
  6577  // This file contains Original Code and/or Modifications of Original Code
  6578  // as defined in and that are subject to the Apple Public Source License
  6579  // Version 2.0 (the 'License'). You may not use this file except in
  6580  // compliance with the License. The rights granted to you under the License
  6581  // may not be used to create, or enable the creation or redistribution of,
  6582  // unlawful or unlicensed copies of an Apple operating system, or to
  6583  // circumvent, violate, or enable the circumvention or violation of, any
  6584  // terms of an Apple operating system software license agreement.
  6585  //
  6586  // Please obtain a copy of the License at
  6587  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6588  //
  6589  // The Original Code and all software distributed under the License are
  6590  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6591  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6592  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6593  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6594  // Please see the License for the specific language governing rights and
  6595  // limitations under the License.
  6596  //
  6597  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6598  
  6599  type Pthread_mutexattr_t = X__darwin_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */
  6600  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6601  //
  6602  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6603  //
  6604  // This file contains Original Code and/or Modifications of Original Code
  6605  // as defined in and that are subject to the Apple Public Source License
  6606  // Version 2.0 (the 'License'). You may not use this file except in
  6607  // compliance with the License. The rights granted to you under the License
  6608  // may not be used to create, or enable the creation or redistribution of,
  6609  // unlawful or unlicensed copies of an Apple operating system, or to
  6610  // circumvent, violate, or enable the circumvention or violation of, any
  6611  // terms of an Apple operating system software license agreement.
  6612  //
  6613  // Please obtain a copy of the License at
  6614  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6615  //
  6616  // The Original Code and all software distributed under the License are
  6617  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6618  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6619  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6620  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6621  // Please see the License for the specific language governing rights and
  6622  // limitations under the License.
  6623  //
  6624  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6625  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  6626  //
  6627  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6628  //
  6629  // This file contains Original Code and/or Modifications of Original Code
  6630  // as defined in and that are subject to the Apple Public Source License
  6631  // Version 2.0 (the 'License'). You may not use this file except in
  6632  // compliance with the License. The rights granted to you under the License
  6633  // may not be used to create, or enable the creation or redistribution of,
  6634  // unlawful or unlicensed copies of an Apple operating system, or to
  6635  // circumvent, violate, or enable the circumvention or violation of, any
  6636  // terms of an Apple operating system software license agreement.
  6637  //
  6638  // Please obtain a copy of the License at
  6639  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6640  //
  6641  // The Original Code and all software distributed under the License are
  6642  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6643  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6644  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6645  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6646  // Please see the License for the specific language governing rights and
  6647  // limitations under the License.
  6648  //
  6649  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6650  
  6651  type Pthread_once_t = X__darwin_pthread_once_t /* _pthread_once_t.h:31:33 */
  6652  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6653  //
  6654  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6655  //
  6656  // This file contains Original Code and/or Modifications of Original Code
  6657  // as defined in and that are subject to the Apple Public Source License
  6658  // Version 2.0 (the 'License'). You may not use this file except in
  6659  // compliance with the License. The rights granted to you under the License
  6660  // may not be used to create, or enable the creation or redistribution of,
  6661  // unlawful or unlicensed copies of an Apple operating system, or to
  6662  // circumvent, violate, or enable the circumvention or violation of, any
  6663  // terms of an Apple operating system software license agreement.
  6664  //
  6665  // Please obtain a copy of the License at
  6666  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6667  //
  6668  // The Original Code and all software distributed under the License are
  6669  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6670  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6671  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6672  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6673  // Please see the License for the specific language governing rights and
  6674  // limitations under the License.
  6675  //
  6676  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6677  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  6678  //
  6679  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6680  //
  6681  // This file contains Original Code and/or Modifications of Original Code
  6682  // as defined in and that are subject to the Apple Public Source License
  6683  // Version 2.0 (the 'License'). You may not use this file except in
  6684  // compliance with the License. The rights granted to you under the License
  6685  // may not be used to create, or enable the creation or redistribution of,
  6686  // unlawful or unlicensed copies of an Apple operating system, or to
  6687  // circumvent, violate, or enable the circumvention or violation of, any
  6688  // terms of an Apple operating system software license agreement.
  6689  //
  6690  // Please obtain a copy of the License at
  6691  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6692  //
  6693  // The Original Code and all software distributed under the License are
  6694  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6695  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6696  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6697  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6698  // Please see the License for the specific language governing rights and
  6699  // limitations under the License.
  6700  //
  6701  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6702  
  6703  type Pthread_rwlock_t = X__darwin_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */
  6704  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6705  //
  6706  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6707  //
  6708  // This file contains Original Code and/or Modifications of Original Code
  6709  // as defined in and that are subject to the Apple Public Source License
  6710  // Version 2.0 (the 'License'). You may not use this file except in
  6711  // compliance with the License. The rights granted to you under the License
  6712  // may not be used to create, or enable the creation or redistribution of,
  6713  // unlawful or unlicensed copies of an Apple operating system, or to
  6714  // circumvent, violate, or enable the circumvention or violation of, any
  6715  // terms of an Apple operating system software license agreement.
  6716  //
  6717  // Please obtain a copy of the License at
  6718  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6719  //
  6720  // The Original Code and all software distributed under the License are
  6721  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6722  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6723  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6724  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6725  // Please see the License for the specific language governing rights and
  6726  // limitations under the License.
  6727  //
  6728  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6729  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  6730  //
  6731  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6732  //
  6733  // This file contains Original Code and/or Modifications of Original Code
  6734  // as defined in and that are subject to the Apple Public Source License
  6735  // Version 2.0 (the 'License'). You may not use this file except in
  6736  // compliance with the License. The rights granted to you under the License
  6737  // may not be used to create, or enable the creation or redistribution of,
  6738  // unlawful or unlicensed copies of an Apple operating system, or to
  6739  // circumvent, violate, or enable the circumvention or violation of, any
  6740  // terms of an Apple operating system software license agreement.
  6741  //
  6742  // Please obtain a copy of the License at
  6743  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6744  //
  6745  // The Original Code and all software distributed under the License are
  6746  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6747  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6748  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6749  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6750  // Please see the License for the specific language governing rights and
  6751  // limitations under the License.
  6752  //
  6753  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6754  
  6755  type Pthread_rwlockattr_t = X__darwin_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */
  6756  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6757  //
  6758  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6759  //
  6760  // This file contains Original Code and/or Modifications of Original Code
  6761  // as defined in and that are subject to the Apple Public Source License
  6762  // Version 2.0 (the 'License'). You may not use this file except in
  6763  // compliance with the License. The rights granted to you under the License
  6764  // may not be used to create, or enable the creation or redistribution of,
  6765  // unlawful or unlicensed copies of an Apple operating system, or to
  6766  // circumvent, violate, or enable the circumvention or violation of, any
  6767  // terms of an Apple operating system software license agreement.
  6768  //
  6769  // Please obtain a copy of the License at
  6770  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6771  //
  6772  // The Original Code and all software distributed under the License are
  6773  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6774  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6775  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6776  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6777  // Please see the License for the specific language governing rights and
  6778  // limitations under the License.
  6779  //
  6780  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6781  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  6782  //
  6783  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6784  //
  6785  // This file contains Original Code and/or Modifications of Original Code
  6786  // as defined in and that are subject to the Apple Public Source License
  6787  // Version 2.0 (the 'License'). You may not use this file except in
  6788  // compliance with the License. The rights granted to you under the License
  6789  // may not be used to create, or enable the creation or redistribution of,
  6790  // unlawful or unlicensed copies of an Apple operating system, or to
  6791  // circumvent, violate, or enable the circumvention or violation of, any
  6792  // terms of an Apple operating system software license agreement.
  6793  //
  6794  // Please obtain a copy of the License at
  6795  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6796  //
  6797  // The Original Code and all software distributed under the License are
  6798  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6799  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6800  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6801  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6802  // Please see the License for the specific language governing rights and
  6803  // limitations under the License.
  6804  //
  6805  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6806  
  6807  type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */
  6808  
  6809  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6810  //
  6811  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6812  //
  6813  // This file contains Original Code and/or Modifications of Original Code
  6814  // as defined in and that are subject to the Apple Public Source License
  6815  // Version 2.0 (the 'License'). You may not use this file except in
  6816  // compliance with the License. The rights granted to you under the License
  6817  // may not be used to create, or enable the creation or redistribution of,
  6818  // unlawful or unlicensed copies of an Apple operating system, or to
  6819  // circumvent, violate, or enable the circumvention or violation of, any
  6820  // terms of an Apple operating system software license agreement.
  6821  //
  6822  // Please obtain a copy of the License at
  6823  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6824  //
  6825  // The Original Code and all software distributed under the License are
  6826  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6827  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6828  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6829  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6830  // Please see the License for the specific language governing rights and
  6831  // limitations under the License.
  6832  //
  6833  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6834  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  6835  //
  6836  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6837  //
  6838  // This file contains Original Code and/or Modifications of Original Code
  6839  // as defined in and that are subject to the Apple Public Source License
  6840  // Version 2.0 (the 'License'). You may not use this file except in
  6841  // compliance with the License. The rights granted to you under the License
  6842  // may not be used to create, or enable the creation or redistribution of,
  6843  // unlawful or unlicensed copies of an Apple operating system, or to
  6844  // circumvent, violate, or enable the circumvention or violation of, any
  6845  // terms of an Apple operating system software license agreement.
  6846  //
  6847  // Please obtain a copy of the License at
  6848  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6849  //
  6850  // The Original Code and all software distributed under the License are
  6851  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6852  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6853  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6854  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6855  // Please see the License for the specific language governing rights and
  6856  // limitations under the License.
  6857  //
  6858  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6859  
  6860  type Pthread_key_t = X__darwin_pthread_key_t /* _pthread_key_t.h:31:32 */
  6861  
  6862  // statvfs and fstatvfs
  6863  
  6864  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6865  //
  6866  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6867  //
  6868  // This file contains Original Code and/or Modifications of Original Code
  6869  // as defined in and that are subject to the Apple Public Source License
  6870  // Version 2.0 (the 'License'). You may not use this file except in
  6871  // compliance with the License. The rights granted to you under the License
  6872  // may not be used to create, or enable the creation or redistribution of,
  6873  // unlawful or unlicensed copies of an Apple operating system, or to
  6874  // circumvent, violate, or enable the circumvention or violation of, any
  6875  // terms of an Apple operating system software license agreement.
  6876  //
  6877  // Please obtain a copy of the License at
  6878  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6879  //
  6880  // The Original Code and all software distributed under the License are
  6881  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6882  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6883  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6884  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6885  // Please see the License for the specific language governing rights and
  6886  // limitations under the License.
  6887  //
  6888  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6889  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6890  //
  6891  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6892  //
  6893  // This file contains Original Code and/or Modifications of Original Code
  6894  // as defined in and that are subject to the Apple Public Source License
  6895  // Version 2.0 (the 'License'). You may not use this file except in
  6896  // compliance with the License. The rights granted to you under the License
  6897  // may not be used to create, or enable the creation or redistribution of,
  6898  // unlawful or unlicensed copies of an Apple operating system, or to
  6899  // circumvent, violate, or enable the circumvention or violation of, any
  6900  // terms of an Apple operating system software license agreement.
  6901  //
  6902  // Please obtain a copy of the License at
  6903  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6904  //
  6905  // The Original Code and all software distributed under the License are
  6906  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6907  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6908  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6909  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6910  // Please see the License for the specific language governing rights and
  6911  // limitations under the License.
  6912  //
  6913  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6914  
  6915  type Fsblkcnt_t = X__darwin_fsblkcnt_t /* _fsblkcnt_t.h:31:41 */
  6916  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6917  //
  6918  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6919  //
  6920  // This file contains Original Code and/or Modifications of Original Code
  6921  // as defined in and that are subject to the Apple Public Source License
  6922  // Version 2.0 (the 'License'). You may not use this file except in
  6923  // compliance with the License. The rights granted to you under the License
  6924  // may not be used to create, or enable the creation or redistribution of,
  6925  // unlawful or unlicensed copies of an Apple operating system, or to
  6926  // circumvent, violate, or enable the circumvention or violation of, any
  6927  // terms of an Apple operating system software license agreement.
  6928  //
  6929  // Please obtain a copy of the License at
  6930  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6931  //
  6932  // The Original Code and all software distributed under the License are
  6933  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6934  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6935  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6936  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6937  // Please see the License for the specific language governing rights and
  6938  // limitations under the License.
  6939  //
  6940  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6941  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6942  //
  6943  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6944  //
  6945  // This file contains Original Code and/or Modifications of Original Code
  6946  // as defined in and that are subject to the Apple Public Source License
  6947  // Version 2.0 (the 'License'). You may not use this file except in
  6948  // compliance with the License. The rights granted to you under the License
  6949  // may not be used to create, or enable the creation or redistribution of,
  6950  // unlawful or unlicensed copies of an Apple operating system, or to
  6951  // circumvent, violate, or enable the circumvention or violation of, any
  6952  // terms of an Apple operating system software license agreement.
  6953  //
  6954  // Please obtain a copy of the License at
  6955  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6956  //
  6957  // The Original Code and all software distributed under the License are
  6958  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6959  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6960  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6961  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6962  // Please see the License for the specific language governing rights and
  6963  // limitations under the License.
  6964  //
  6965  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6966  
  6967  type Fsfilcnt_t = X__darwin_fsfilcnt_t /* _fsfilcnt_t.h:31:41 */
  6968  
  6969  // Just about everyone needs the strings routines.  We provide both forms here,
  6970  // index/rindex and strchr/strrchr, so any systems that don't provide them all
  6971  // need to have #defines here.
  6972  //
  6973  // These macros are defined this way, rather than, e.g.:
  6974  //    #defined index(s,c) strchr(s,c)
  6975  // because someone might be using them as function pointers, and such
  6976  // a change would break compatibility for anyone who's relying on them
  6977  // being the way they currently are. So we're stuck with them this way,
  6978  // which can be really inconvenient. :-(
  6979  
  6980  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
  6981  //
  6982  // @APPLE_LICENSE_HEADER_START@
  6983  //
  6984  // This file contains Original Code and/or Modifications of Original Code
  6985  // as defined in and that are subject to the Apple Public Source License
  6986  // Version 2.0 (the 'License'). You may not use this file except in
  6987  // compliance with the License. Please obtain a copy of the License at
  6988  // http://www.opensource.apple.com/apsl/ and read it before using this
  6989  // file.
  6990  //
  6991  // The Original Code and all software distributed under the License are
  6992  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6993  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6994  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6995  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6996  // Please see the License for the specific language governing rights and
  6997  // limitations under the License.
  6998  //
  6999  // @APPLE_LICENSE_HEADER_END@
  7000  // -
  7001  // Copyright (c) 1990, 1993
  7002  //	The Regents of the University of California.  All rights reserved.
  7003  //
  7004  // Redistribution and use in source and binary forms, with or without
  7005  // modification, are permitted provided that the following conditions
  7006  // are met:
  7007  // 1. Redistributions of source code must retain the above copyright
  7008  //    notice, this list of conditions and the following disclaimer.
  7009  // 2. Redistributions in binary form must reproduce the above copyright
  7010  //    notice, this list of conditions and the following disclaimer in the
  7011  //    documentation and/or other materials provided with the distribution.
  7012  // 3. All advertising materials mentioning features or use of this software
  7013  //    must display the following acknowledgement:
  7014  //	This product includes software developed by the University of
  7015  //	California, Berkeley and its contributors.
  7016  // 4. Neither the name of the University nor the names of its contributors
  7017  //    may be used to endorse or promote products derived from this software
  7018  //    without specific prior written permission.
  7019  //
  7020  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7021  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7022  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7023  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7024  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7025  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7026  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7027  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7028  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7029  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7030  // SUCH DAMAGE.
  7031  //
  7032  //	@(#)string.h	8.1 (Berkeley) 6/2/93
  7033  
  7034  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  7035  //
  7036  // @APPLE_LICENSE_HEADER_START@
  7037  //
  7038  // This file contains Original Code and/or Modifications of Original Code
  7039  // as defined in and that are subject to the Apple Public Source License
  7040  // Version 2.0 (the 'License'). You may not use this file except in
  7041  // compliance with the License. Please obtain a copy of the License at
  7042  // http://www.opensource.apple.com/apsl/ and read it before using this
  7043  // file.
  7044  //
  7045  // The Original Code and all software distributed under the License are
  7046  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7047  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7048  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7049  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7050  // Please see the License for the specific language governing rights and
  7051  // limitations under the License.
  7052  //
  7053  // @APPLE_LICENSE_HEADER_END@
  7054  
  7055  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7056  //
  7057  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7058  //
  7059  // This file contains Original Code and/or Modifications of Original Code
  7060  // as defined in and that are subject to the Apple Public Source License
  7061  // Version 2.0 (the 'License'). You may not use this file except in
  7062  // compliance with the License. The rights granted to you under the License
  7063  // may not be used to create, or enable the creation or redistribution of,
  7064  // unlawful or unlicensed copies of an Apple operating system, or to
  7065  // circumvent, violate, or enable the circumvention or violation of, any
  7066  // terms of an Apple operating system software license agreement.
  7067  //
  7068  // Please obtain a copy of the License at
  7069  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7070  //
  7071  // The Original Code and all software distributed under the License are
  7072  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7073  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7074  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7075  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7076  // Please see the License for the specific language governing rights and
  7077  // limitations under the License.
  7078  //
  7079  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7080  
  7081  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7082  //
  7083  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7084  //
  7085  // This file contains Original Code and/or Modifications of Original Code
  7086  // as defined in and that are subject to the Apple Public Source License
  7087  // Version 2.0 (the 'License'). You may not use this file except in
  7088  // compliance with the License. The rights granted to you under the License
  7089  // may not be used to create, or enable the creation or redistribution of,
  7090  // unlawful or unlicensed copies of an Apple operating system, or to
  7091  // circumvent, violate, or enable the circumvention or violation of, any
  7092  // terms of an Apple operating system software license agreement.
  7093  //
  7094  // Please obtain a copy of the License at
  7095  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7096  //
  7097  // The Original Code and all software distributed under the License are
  7098  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7099  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7100  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7101  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7102  // Please see the License for the specific language governing rights and
  7103  // limitations under the License.
  7104  //
  7105  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7106  
  7107  type X__darwin_nl_item = int32        /* _types.h:40:14 */
  7108  type X__darwin_wctrans_t = int32      /* _types.h:41:14 */
  7109  type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
  7110  
  7111  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
  7112  //
  7113  // @APPLE_LICENSE_HEADER_START@
  7114  //
  7115  // This file contains Original Code and/or Modifications of Original Code
  7116  // as defined in and that are subject to the Apple Public Source License
  7117  // Version 2.0 (the 'License'). You may not use this file except in
  7118  // compliance with the License. Please obtain a copy of the License at
  7119  // http://www.opensource.apple.com/apsl/ and read it before using this
  7120  // file.
  7121  //
  7122  // The Original Code and all software distributed under the License are
  7123  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7124  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7125  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7126  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7127  // Please see the License for the specific language governing rights and
  7128  // limitations under the License.
  7129  //
  7130  // @APPLE_LICENSE_HEADER_END@
  7131  // -
  7132  // Copyright (c) 1990, 1993
  7133  //	The Regents of the University of California.  All rights reserved.
  7134  //
  7135  // Redistribution and use in source and binary forms, with or without
  7136  // modification, are permitted provided that the following conditions
  7137  // are met:
  7138  // 1. Redistributions of source code must retain the above copyright
  7139  //    notice, this list of conditions and the following disclaimer.
  7140  // 2. Redistributions in binary form must reproduce the above copyright
  7141  //    notice, this list of conditions and the following disclaimer in the
  7142  //    documentation and/or other materials provided with the distribution.
  7143  // 3. All advertising materials mentioning features or use of this software
  7144  //    must display the following acknowledgement:
  7145  //	This product includes software developed by the University of
  7146  //	California, Berkeley and its contributors.
  7147  // 4. Neither the name of the University nor the names of its contributors
  7148  //    may be used to endorse or promote products derived from this software
  7149  //    without specific prior written permission.
  7150  //
  7151  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7152  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7153  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7154  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7155  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7156  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7157  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7158  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7159  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7160  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7161  // SUCH DAMAGE.
  7162  //
  7163  //	@(#)string.h	8.1 (Berkeley) 6/2/93
  7164  
  7165  // Security checking functions.
  7166  // Copyright (c) 2017 Apple Inc. All rights reserved.
  7167  //
  7168  // @APPLE_LICENSE_HEADER_START@
  7169  //
  7170  // This file contains Original Code and/or Modifications of Original Code
  7171  // as defined in and that are subject to the Apple Public Source License
  7172  // Version 2.0 (the 'License'). You may not use this file except in
  7173  // compliance with the License. Please obtain a copy of the License at
  7174  // http://www.opensource.apple.com/apsl/ and read it before using this
  7175  // file.
  7176  //
  7177  // The Original Code and all software distributed under the License are
  7178  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7179  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7180  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7181  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7182  // Please see the License for the specific language governing rights and
  7183  // limitations under the License.
  7184  //
  7185  // @APPLE_LICENSE_HEADER_END@
  7186  
  7187  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  7188  //
  7189  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7190  //
  7191  // This file contains Original Code and/or Modifications of Original Code
  7192  // as defined in and that are subject to the Apple Public Source License
  7193  // Version 2.0 (the 'License'). You may not use this file except in
  7194  // compliance with the License. The rights granted to you under the License
  7195  // may not be used to create, or enable the creation or redistribution of,
  7196  // unlawful or unlicensed copies of an Apple operating system, or to
  7197  // circumvent, violate, or enable the circumvention or violation of, any
  7198  // terms of an Apple operating system software license agreement.
  7199  //
  7200  // Please obtain a copy of the License at
  7201  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7202  //
  7203  // The Original Code and all software distributed under the License are
  7204  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7205  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7206  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7207  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7208  // Please see the License for the specific language governing rights and
  7209  // limitations under the License.
  7210  //
  7211  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7212  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7213  // Copyright (c) 1991, 1993
  7214  //	The Regents of the University of California.  All rights reserved.
  7215  //
  7216  // This code is derived from software contributed to Berkeley by
  7217  // Berkeley Software Design, Inc.
  7218  //
  7219  // Redistribution and use in source and binary forms, with or without
  7220  // modification, are permitted provided that the following conditions
  7221  // are met:
  7222  // 1. Redistributions of source code must retain the above copyright
  7223  //    notice, this list of conditions and the following disclaimer.
  7224  // 2. Redistributions in binary form must reproduce the above copyright
  7225  //    notice, this list of conditions and the following disclaimer in the
  7226  //    documentation and/or other materials provided with the distribution.
  7227  // 3. All advertising materials mentioning features or use of this software
  7228  //    must display the following acknowledgement:
  7229  //	This product includes software developed by the University of
  7230  //	California, Berkeley and its contributors.
  7231  // 4. Neither the name of the University nor the names of its contributors
  7232  //    may be used to endorse or promote products derived from this software
  7233  //    without specific prior written permission.
  7234  //
  7235  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7236  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7237  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7238  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7239  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7240  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7241  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7242  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7243  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7244  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7245  // SUCH DAMAGE.
  7246  //
  7247  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  7248  
  7249  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  7250  //
  7251  // @APPLE_LICENSE_HEADER_START@
  7252  //
  7253  // This file contains Original Code and/or Modifications of Original Code
  7254  // as defined in and that are subject to the Apple Public Source License
  7255  // Version 2.0 (the 'License'). You may not use this file except in
  7256  // compliance with the License. Please obtain a copy of the License at
  7257  // http://www.opensource.apple.com/apsl/ and read it before using this
  7258  // file.
  7259  //
  7260  // The Original Code and all software distributed under the License are
  7261  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7262  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7263  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7264  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7265  // Please see the License for the specific language governing rights and
  7266  // limitations under the License.
  7267  //
  7268  // @APPLE_LICENSE_HEADER_END@
  7269  
  7270  // Copyright (c) 2007, 2008 Apple Inc. All rights reserved.
  7271  //
  7272  // @APPLE_LICENSE_HEADER_START@
  7273  //
  7274  // This file contains Original Code and/or Modifications of Original Code
  7275  // as defined in and that are subject to the Apple Public Source License
  7276  // Version 2.0 (the 'License'). You may not use this file except in
  7277  // compliance with the License. Please obtain a copy of the License at
  7278  // http://www.opensource.apple.com/apsl/ and read it before using this
  7279  // file.
  7280  //
  7281  // The Original Code and all software distributed under the License are
  7282  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7283  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7284  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7285  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7286  // Please see the License for the specific language governing rights and
  7287  // limitations under the License.
  7288  //
  7289  // @APPLE_LICENSE_HEADER_END@
  7290  
  7291  // bcopy and bzero
  7292  
  7293  // Removed in Issue 7
  7294  
  7295  // void	bcopy(const void *src, void *dst, size_t len)
  7296  
  7297  // void	bzero(void *s, size_t n)
  7298  
  7299  // Security checking functions.
  7300  // Copyright (c) 2007,2017 Apple Inc. All rights reserved.
  7301  //
  7302  // @APPLE_LICENSE_HEADER_START@
  7303  //
  7304  // This file contains Original Code and/or Modifications of Original Code
  7305  // as defined in and that are subject to the Apple Public Source License
  7306  // Version 2.0 (the 'License'). You may not use this file except in
  7307  // compliance with the License. Please obtain a copy of the License at
  7308  // http://www.opensource.apple.com/apsl/ and read it before using this
  7309  // 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_LICENSE_HEADER_END@
  7320  
  7321  // Copyright (c) 2000-2018 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  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7347  // Copyright (c) 1991, 1993
  7348  //	The Regents of the University of California.  All rights reserved.
  7349  //
  7350  // This code is derived from software contributed to Berkeley by
  7351  // Berkeley Software Design, Inc.
  7352  //
  7353  // Redistribution and use in source and binary forms, with or without
  7354  // modification, are permitted provided that the following conditions
  7355  // are met:
  7356  // 1. Redistributions of source code must retain the above copyright
  7357  //    notice, this list of conditions and the following disclaimer.
  7358  // 2. Redistributions in binary form must reproduce the above copyright
  7359  //    notice, this list of conditions and the following disclaimer in the
  7360  //    documentation and/or other materials provided with the distribution.
  7361  // 3. All advertising materials mentioning features or use of this software
  7362  //    must display the following acknowledgement:
  7363  //	This product includes software developed by the University of
  7364  //	California, Berkeley and its contributors.
  7365  // 4. Neither the name of the University nor the names of its contributors
  7366  //    may be used to endorse or promote products derived from this software
  7367  //    without specific prior written permission.
  7368  //
  7369  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7370  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7371  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7372  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7373  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7374  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7375  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7376  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7377  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7378  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7379  // SUCH DAMAGE.
  7380  //
  7381  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  7382  
  7383  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  7384  //
  7385  // @APPLE_LICENSE_HEADER_START@
  7386  //
  7387  // This file contains Original Code and/or Modifications of Original Code
  7388  // as defined in and that are subject to the Apple Public Source License
  7389  // Version 2.0 (the 'License'). You may not use this file except in
  7390  // compliance with the License. Please obtain a copy of the License at
  7391  // http://www.opensource.apple.com/apsl/ and read it before using this
  7392  // file.
  7393  //
  7394  // The Original Code and all software distributed under the License are
  7395  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7396  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7397  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7398  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7399  // Please see the License for the specific language governing rights and
  7400  // limitations under the License.
  7401  //
  7402  // @APPLE_LICENSE_HEADER_END@
  7403  
  7404  // Copyright (c) 2007, 2008 Apple Inc. All rights reserved.
  7405  //
  7406  // @APPLE_LICENSE_HEADER_START@
  7407  //
  7408  // This file contains Original Code and/or Modifications of Original Code
  7409  // as defined in and that are subject to the Apple Public Source License
  7410  // Version 2.0 (the 'License'). You may not use this file except in
  7411  // compliance with the License. Please obtain a copy of the License at
  7412  // http://www.opensource.apple.com/apsl/ and read it before using this
  7413  // file.
  7414  //
  7415  // The Original Code and all software distributed under the License are
  7416  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7417  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7418  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7419  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7420  // Please see the License for the specific language governing rights and
  7421  // limitations under the License.
  7422  //
  7423  // @APPLE_LICENSE_HEADER_END@
  7424  
  7425  // <rdar://problem/12622659>
  7426  
  7427  // memccpy, memcpy, mempcpy, memmove, memset, strcpy, strlcpy, stpcpy,
  7428  //    strncpy, stpncpy, strcat, strlcat, and strncat
  7429  
  7430  // void *memcpy(void *dst, const void *src, size_t n)
  7431  
  7432  // void *memmove(void *dst, const void *src, size_t len)
  7433  
  7434  // void *memset(void *b, int c, size_t len)
  7435  
  7436  // char *strcpy(char *dst, const char *src)
  7437  
  7438  // char *stpcpy(char *dst, const char *src)
  7439  
  7440  // char *stpncpy(char *dst, const char *src, size_t n)
  7441  
  7442  // char *strncpy(char *dst, const char *src, size_t n)
  7443  
  7444  // char *strcat(char *s1, const char *s2)
  7445  
  7446  // char *strncat(char *s1, const char *s2, size_t n)
  7447  
  7448  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
  7449  //
  7450  // @APPLE_LICENSE_HEADER_START@
  7451  //
  7452  // This file contains Original Code and/or Modifications of Original Code
  7453  // as defined in and that are subject to the Apple Public Source License
  7454  // Version 2.0 (the 'License'). You may not use this file except in
  7455  // compliance with the License. Please obtain a copy of the License at
  7456  // http://www.opensource.apple.com/apsl/ and read it before using this
  7457  // file.
  7458  //
  7459  // The Original Code and all software distributed under the License are
  7460  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7461  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7462  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7463  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7464  // Please see the License for the specific language governing rights and
  7465  // limitations under the License.
  7466  //
  7467  // @APPLE_LICENSE_HEADER_END@
  7468  // -
  7469  // Copyright (c) 1990, 1993
  7470  //	The Regents of the University of California.  All rights reserved.
  7471  //
  7472  // Redistribution and use in source and binary forms, with or without
  7473  // modification, are permitted provided that the following conditions
  7474  // are met:
  7475  // 1. Redistributions of source code must retain the above copyright
  7476  //    notice, this list of conditions and the following disclaimer.
  7477  // 2. Redistributions in binary form must reproduce the above copyright
  7478  //    notice, this list of conditions and the following disclaimer in the
  7479  //    documentation and/or other materials provided with the distribution.
  7480  // 3. All advertising materials mentioning features or use of this software
  7481  //    must display the following acknowledgement:
  7482  //	This product includes software developed by the University of
  7483  //	California, Berkeley and its contributors.
  7484  // 4. Neither the name of the University nor the names of its contributors
  7485  //    may be used to endorse or promote products derived from this software
  7486  //    without specific prior written permission.
  7487  //
  7488  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7489  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7490  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7491  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7492  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7493  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7494  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7495  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7496  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7497  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7498  // SUCH DAMAGE.
  7499  //
  7500  //	@(#)strings.h	8.1 (Berkeley) 6/2/93
  7501  
  7502  // Get open(2) constants
  7503  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  7504  //
  7505  // @APPLE_LICENSE_HEADER_START@
  7506  //
  7507  // This file contains Original Code and/or Modifications of Original Code
  7508  // as defined in and that are subject to the Apple Public Source License
  7509  // Version 2.0 (the 'License'). You may not use this file except in
  7510  // compliance with the License. Please obtain a copy of the License at
  7511  // http://www.opensource.apple.com/apsl/ and read it before using this
  7512  // file.
  7513  //
  7514  // The Original Code and all software distributed under the License are
  7515  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7516  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7517  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7518  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7519  // Please see the License for the specific language governing rights and
  7520  // limitations under the License.
  7521  //
  7522  // @APPLE_LICENSE_HEADER_END@
  7523  // Copyright (c) 2000-2013 Apple Inc. All rights reserved.
  7524  //
  7525  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7526  //
  7527  // This file contains Original Code and/or Modifications of Original Code
  7528  // as defined in and that are subject to the Apple Public Source License
  7529  // Version 2.0 (the 'License'). You may not use this file except in
  7530  // compliance with the License. The rights granted to you under the License
  7531  // may not be used to create, or enable the creation or redistribution of,
  7532  // unlawful or unlicensed copies of an Apple operating system, or to
  7533  // circumvent, violate, or enable the circumvention or violation of, any
  7534  // terms of an Apple operating system software license agreement.
  7535  //
  7536  // Please obtain a copy of the License at
  7537  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7538  //
  7539  // The Original Code and all software distributed under the License are
  7540  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7541  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7542  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7543  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7544  // Please see the License for the specific language governing rights and
  7545  // limitations under the License.
  7546  //
  7547  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7548  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  7549  // -
  7550  // Copyright (c) 1983, 1990, 1993
  7551  //	The Regents of the University of California.  All rights reserved.
  7552  // (c) UNIX System Laboratories, Inc.
  7553  // All or some portions of this file are derived from material licensed
  7554  // to the University of California by American Telephone and Telegraph
  7555  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  7556  // the permission of UNIX System Laboratories, Inc.
  7557  //
  7558  // Redistribution and use in source and binary forms, with or without
  7559  // modification, are permitted provided that the following conditions
  7560  // are met:
  7561  // 1. Redistributions of source code must retain the above copyright
  7562  //    notice, this list of conditions and the following disclaimer.
  7563  // 2. Redistributions in binary form must reproduce the above copyright
  7564  //    notice, this list of conditions and the following disclaimer in the
  7565  //    documentation and/or other materials provided with the distribution.
  7566  // 3. All advertising materials mentioning features or use of this software
  7567  //    must display the following acknowledgement:
  7568  //	This product includes software developed by the University of
  7569  //	California, Berkeley and its contributors.
  7570  // 4. Neither the name of the University nor the names of its contributors
  7571  //    may be used to endorse or promote products derived from this software
  7572  //    without specific prior written permission.
  7573  //
  7574  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7575  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7576  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7577  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7578  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7579  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7580  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7581  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7582  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7583  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7584  // SUCH DAMAGE.
  7585  //
  7586  //	@(#)fcntl.h	8.3 (Berkeley) 1/21/94
  7587  
  7588  // This file includes the definitions for open and fcntl
  7589  // described by POSIX for <fcntl.h>; it also includes
  7590  // related kernel definitions.
  7591  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7592  //
  7593  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7594  //
  7595  // This file contains Original Code and/or Modifications of Original Code
  7596  // as defined in and that are subject to the Apple Public Source License
  7597  // Version 2.0 (the 'License'). You may not use this file except in
  7598  // compliance with the License. The rights granted to you under the License
  7599  // may not be used to create, or enable the creation or redistribution of,
  7600  // unlawful or unlicensed copies of an Apple operating system, or to
  7601  // circumvent, violate, or enable the circumvention or violation of, any
  7602  // terms of an Apple operating system software license agreement.
  7603  //
  7604  // Please obtain a copy of the License at
  7605  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7606  //
  7607  // The Original Code and all software distributed under the License are
  7608  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7609  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7610  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7611  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7612  // Please see the License for the specific language governing rights and
  7613  // limitations under the License.
  7614  //
  7615  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7616  
  7617  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  7618  //
  7619  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7620  //
  7621  // This file contains Original Code and/or Modifications of Original Code
  7622  // as defined in and that are subject to the Apple Public Source License
  7623  // Version 2.0 (the 'License'). You may not use this file except in
  7624  // compliance with the License. The rights granted to you under the License
  7625  // may not be used to create, or enable the creation or redistribution of,
  7626  // unlawful or unlicensed copies of an Apple operating system, or to
  7627  // circumvent, violate, or enable the circumvention or violation of, any
  7628  // terms of an Apple operating system software license agreement.
  7629  //
  7630  // Please obtain a copy of the License at
  7631  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7632  //
  7633  // The Original Code and all software distributed under the License are
  7634  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7635  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7636  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7637  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7638  // Please see the License for the specific language governing rights and
  7639  // limitations under the License.
  7640  //
  7641  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7642  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7643  // Copyright (c) 1991, 1993
  7644  //	The Regents of the University of California.  All rights reserved.
  7645  //
  7646  // This code is derived from software contributed to Berkeley by
  7647  // Berkeley Software Design, Inc.
  7648  //
  7649  // Redistribution and use in source and binary forms, with or without
  7650  // modification, are permitted provided that the following conditions
  7651  // are met:
  7652  // 1. Redistributions of source code must retain the above copyright
  7653  //    notice, this list of conditions and the following disclaimer.
  7654  // 2. Redistributions in binary form must reproduce the above copyright
  7655  //    notice, this list of conditions and the following disclaimer in the
  7656  //    documentation and/or other materials provided with the distribution.
  7657  // 3. All advertising materials mentioning features or use of this software
  7658  //    must display the following acknowledgement:
  7659  //	This product includes software developed by the University of
  7660  //	California, Berkeley and its contributors.
  7661  // 4. Neither the name of the University nor the names of its contributors
  7662  //    may be used to endorse or promote products derived from this software
  7663  //    without specific prior written permission.
  7664  //
  7665  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7666  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7667  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7668  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7669  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7670  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7671  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7672  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7673  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7674  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7675  // SUCH DAMAGE.
  7676  //
  7677  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  7678  
  7679  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  7680  //
  7681  // @APPLE_LICENSE_HEADER_START@
  7682  //
  7683  // This file contains Original Code and/or Modifications of Original Code
  7684  // as defined in and that are subject to the Apple Public Source License
  7685  // Version 2.0 (the 'License'). You may not use this file except in
  7686  // compliance with the License. Please obtain a copy of the License at
  7687  // http://www.opensource.apple.com/apsl/ and read it before using this
  7688  // file.
  7689  //
  7690  // The Original Code and all software distributed under the License are
  7691  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7692  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7693  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7694  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7695  // Please see the License for the specific language governing rights and
  7696  // limitations under the License.
  7697  //
  7698  // @APPLE_LICENSE_HEADER_END@
  7699  
  7700  // We should not be exporting size_t here.  Temporary for gcc bootstrapping.
  7701  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7702  //
  7703  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7704  //
  7705  // This file contains Original Code and/or Modifications of Original Code
  7706  // as defined in and that are subject to the Apple Public Source License
  7707  // Version 2.0 (the 'License'). You may not use this file except in
  7708  // compliance with the License. The rights granted to you under the License
  7709  // may not be used to create, or enable the creation or redistribution of,
  7710  // unlawful or unlicensed copies of an Apple operating system, or to
  7711  // circumvent, violate, or enable the circumvention or violation of, any
  7712  // terms of an Apple operating system software license agreement.
  7713  //
  7714  // Please obtain a copy of the License at
  7715  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7716  //
  7717  // The Original Code and all software distributed under the License are
  7718  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7719  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7720  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7721  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7722  // Please see the License for the specific language governing rights and
  7723  // limitations under the License.
  7724  //
  7725  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7726  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7727  //
  7728  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7729  //
  7730  // This file contains Original Code and/or Modifications of Original Code
  7731  // as defined in and that are subject to the Apple Public Source License
  7732  // Version 2.0 (the 'License'). You may not use this file except in
  7733  // compliance with the License. The rights granted to you under the License
  7734  // may not be used to create, or enable the creation or redistribution of,
  7735  // unlawful or unlicensed copies of an Apple operating system, or to
  7736  // circumvent, violate, or enable the circumvention or violation of, any
  7737  // terms of an Apple operating system software license agreement.
  7738  //
  7739  // Please obtain a copy of the License at
  7740  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7741  //
  7742  // The Original Code and all software distributed under the License are
  7743  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7744  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7745  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7746  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7747  // Please see the License for the specific language governing rights and
  7748  // limitations under the License.
  7749  //
  7750  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7751  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7752  //
  7753  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7754  //
  7755  // This file contains Original Code and/or Modifications of Original Code
  7756  // as defined in and that are subject to the Apple Public Source License
  7757  // Version 2.0 (the 'License'). You may not use this file except in
  7758  // compliance with the License. The rights granted to you under the License
  7759  // may not be used to create, or enable the creation or redistribution of,
  7760  // unlawful or unlicensed copies of an Apple operating system, or to
  7761  // circumvent, violate, or enable the circumvention or violation of, any
  7762  // terms of an Apple operating system software license agreement.
  7763  //
  7764  // Please obtain a copy of the License at
  7765  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7766  //
  7767  // The Original Code and all software distributed under the License are
  7768  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7769  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7770  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7771  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7772  // Please see the License for the specific language governing rights and
  7773  // limitations under the License.
  7774  //
  7775  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7776  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7777  //
  7778  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7779  //
  7780  // This file contains Original Code and/or Modifications of Original Code
  7781  // as defined in and that are subject to the Apple Public Source License
  7782  // Version 2.0 (the 'License'). You may not use this file except in
  7783  // compliance with the License. The rights granted to you under the License
  7784  // may not be used to create, or enable the creation or redistribution of,
  7785  // unlawful or unlicensed copies of an Apple operating system, or to
  7786  // circumvent, violate, or enable the circumvention or violation of, any
  7787  // terms of an Apple operating system software license agreement.
  7788  //
  7789  // Please obtain a copy of the License at
  7790  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7791  //
  7792  // The Original Code and all software distributed under the License are
  7793  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7794  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7795  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7796  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7797  // Please see the License for the specific language governing rights and
  7798  // limitations under the License.
  7799  //
  7800  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7801  
  7802  // File status flags: these are used by open(2), fcntl(2).
  7803  // They are also used (indirectly) in the kernel file structure f_flags,
  7804  // which is a superset of the open/fcntl flags.  Open flags and f_flags
  7805  // are inter-convertible using OFLAGS(fflags) and FFLAGS(oflags).
  7806  // Open/fcntl flags begin with O_; kernel-internal flags begin with F.
  7807  // open-only flags
  7808  
  7809  // Kernel encoding of open mode; separate read and write bits that are
  7810  // independently testable: 1 greater than the above.
  7811  //
  7812  // XXX
  7813  // FREAD and FWRITE are excluded from the #ifdef KERNEL so that TIOCFLUSH,
  7814  // which was documented to use FREAD/FWRITE, continues to work.
  7815  
  7816  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7817  //
  7818  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7819  //
  7820  // This file contains Original Code and/or Modifications of Original Code
  7821  // as defined in and that are subject to the Apple Public Source License
  7822  // Version 2.0 (the 'License'). You may not use this file except in
  7823  // compliance with the License. The rights granted to you under the License
  7824  // may not be used to create, or enable the creation or redistribution of,
  7825  // unlawful or unlicensed copies of an Apple operating system, or to
  7826  // circumvent, violate, or enable the circumvention or violation of, any
  7827  // terms of an Apple operating system software license agreement.
  7828  //
  7829  // Please obtain a copy of the License at
  7830  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7831  //
  7832  // The Original Code and all software distributed under the License are
  7833  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7834  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7835  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7836  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7837  // Please see the License for the specific language governing rights and
  7838  // limitations under the License.
  7839  //
  7840  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7841  
  7842  //      O_DSYNC         0x00400000      /* synch I/O data integrity */
  7843  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7844  //
  7845  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7846  //
  7847  // This file contains Original Code and/or Modifications of Original Code
  7848  // as defined in and that are subject to the Apple Public Source License
  7849  // Version 2.0 (the 'License'). You may not use this file except in
  7850  // compliance with the License. The rights granted to you under the License
  7851  // may not be used to create, or enable the creation or redistribution of,
  7852  // unlawful or unlicensed copies of an Apple operating system, or to
  7853  // circumvent, violate, or enable the circumvention or violation of, any
  7854  // terms of an Apple operating system software license agreement.
  7855  //
  7856  // Please obtain a copy of the License at
  7857  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7858  //
  7859  // The Original Code and all software distributed under the License are
  7860  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7861  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7862  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7863  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7864  // Please see the License for the specific language governing rights and
  7865  // limitations under the License.
  7866  //
  7867  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7868  
  7869  // Descriptor value for the current working directory
  7870  
  7871  // Flags for the at functions
  7872  
  7873  // Data Protection Flags
  7874  
  7875  // The O_* flags used to have only F* names, which were used in the kernel
  7876  // and by fcntl.  We retain the F* names for the kernel f_flags field
  7877  // and for backward compatibility for fcntl.
  7878  
  7879  // Flags used for copyfile(2)
  7880  
  7881  // Constants used for fcntl(2)
  7882  
  7883  // command values
  7884  // 46,47 used to be F_READBOOTSTRAP and F_WRITEBOOTSTRAP
  7885  
  7886  // should not be used (i.e. its ok to temporaily create cached pages)
  7887  
  7888  // See F_DUPFD_CLOEXEC below for 67
  7889  
  7890  // may be broken into smaller chunks with throttling in between
  7891  
  7892  // FS-specific fcntl()'s numbers begin at 0x00010000 and go up
  7893  
  7894  // file descriptor flags (F_GETFD, F_SETFD)
  7895  
  7896  // record locking flags (F_GETLK, F_SETLK, F_SETLKW)
  7897  
  7898  // [XSI] The values used for l_whence shall be defined as described
  7899  // in <unistd.h>
  7900  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7901  //
  7902  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7903  //
  7904  // This file contains Original Code and/or Modifications of Original Code
  7905  // as defined in and that are subject to the Apple Public Source License
  7906  // Version 2.0 (the 'License'). You may not use this file except in
  7907  // compliance with the License. The rights granted to you under the License
  7908  // may not be used to create, or enable the creation or redistribution of,
  7909  // unlawful or unlicensed copies of an Apple operating system, or to
  7910  // circumvent, violate, or enable the circumvention or violation of, any
  7911  // terms of an Apple operating system software license agreement.
  7912  //
  7913  // Please obtain a copy of the License at
  7914  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7915  //
  7916  // The Original Code and all software distributed under the License are
  7917  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7918  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7919  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7920  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7921  // Please see the License for the specific language governing rights and
  7922  // limitations under the License.
  7923  //
  7924  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7925  
  7926  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  7927  //
  7928  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7929  //
  7930  // This file contains Original Code and/or Modifications of Original Code
  7931  // as defined in and that are subject to the Apple Public Source License
  7932  // Version 2.0 (the 'License'). You may not use this file except in
  7933  // compliance with the License. The rights granted to you under the License
  7934  // may not be used to create, or enable the creation or redistribution of,
  7935  // unlawful or unlicensed copies of an Apple operating system, or to
  7936  // circumvent, violate, or enable the circumvention or violation of, any
  7937  // terms of an Apple operating system software license agreement.
  7938  //
  7939  // Please obtain a copy of the License at
  7940  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7941  //
  7942  // The Original Code and all software distributed under the License are
  7943  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7944  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7945  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7946  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7947  // Please see the License for the specific language governing rights and
  7948  // limitations under the License.
  7949  //
  7950  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7951  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7952  // Copyright (c) 1991, 1993
  7953  //	The Regents of the University of California.  All rights reserved.
  7954  //
  7955  // This code is derived from software contributed to Berkeley by
  7956  // Berkeley Software Design, Inc.
  7957  //
  7958  // Redistribution and use in source and binary forms, with or without
  7959  // modification, are permitted provided that the following conditions
  7960  // are met:
  7961  // 1. Redistributions of source code must retain the above copyright
  7962  //    notice, this list of conditions and the following disclaimer.
  7963  // 2. Redistributions in binary form must reproduce the above copyright
  7964  //    notice, this list of conditions and the following disclaimer in the
  7965  //    documentation and/or other materials provided with the distribution.
  7966  // 3. All advertising materials mentioning features or use of this software
  7967  //    must display the following acknowledgement:
  7968  //	This product includes software developed by the University of
  7969  //	California, Berkeley and its contributors.
  7970  // 4. Neither the name of the University nor the names of its contributors
  7971  //    may be used to endorse or promote products derived from this software
  7972  //    without specific prior written permission.
  7973  //
  7974  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  7975  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  7976  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  7977  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  7978  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7979  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  7980  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  7981  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  7982  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  7983  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  7984  // SUCH DAMAGE.
  7985  //
  7986  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  7987  
  7988  // whence values for lseek(2)
  7989  
  7990  // [XSI] The symbolic names for file modes for use as values of mode_t
  7991  // shall be defined as described in <sys/stat.h>
  7992  // Copyright (c) 2003-2012 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  // [XSI] The symbolic names for file modes for use as values of mode_t
  8019  // shall be defined as described in <sys/stat.h>
  8020  // File type
  8021  
  8022  // File mode
  8023  // Read, write, execute/search by owner
  8024  // Read, write, execute/search by group
  8025  // Read, write, execute/search by others
  8026  
  8027  // allocate flags (F_PREALLOCATE)
  8028  
  8029  // Position Modes (fst_posmode) for F_PREALLOCATE
  8030  
  8031  // we can keep them in sync should we desire
  8032  
  8033  // Advisory file segment locking data type -
  8034  // information passed to system by user
  8035  type Flock = struct {
  8036  	Fl_start  Off_t
  8037  	Fl_len    Off_t
  8038  	Fl_pid    Pid_t
  8039  	Fl_type   int16
  8040  	Fl_whence int16
  8041  } /* fcntl.h:359:1 */
  8042  
  8043  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8044  //
  8045  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8046  //
  8047  // This file contains Original Code and/or Modifications of Original Code
  8048  // as defined in and that are subject to the Apple Public Source License
  8049  // Version 2.0 (the 'License'). You may not use this file except in
  8050  // compliance with the License. The rights granted to you under the License
  8051  // may not be used to create, or enable the creation or redistribution of,
  8052  // unlawful or unlicensed copies of an Apple operating system, or to
  8053  // circumvent, violate, or enable the circumvention or violation of, any
  8054  // terms of an Apple operating system software license agreement.
  8055  //
  8056  // Please obtain a copy of the License at
  8057  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8058  //
  8059  // The Original Code and all software distributed under the License are
  8060  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8061  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8062  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8063  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8064  // Please see the License for the specific language governing rights and
  8065  // limitations under the License.
  8066  //
  8067  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8068  
  8069  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  8070  //
  8071  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8072  //
  8073  // This file contains Original Code and/or Modifications of Original Code
  8074  // as defined in and that are subject to the Apple Public Source License
  8075  // Version 2.0 (the 'License'). You may not use this file except in
  8076  // compliance with the License. The rights granted to you under the License
  8077  // may not be used to create, or enable the creation or redistribution of,
  8078  // unlawful or unlicensed copies of an Apple operating system, or to
  8079  // circumvent, violate, or enable the circumvention or violation of, any
  8080  // terms of an Apple operating system software license agreement.
  8081  //
  8082  // Please obtain a copy of the License at
  8083  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8084  //
  8085  // The Original Code and all software distributed under the License are
  8086  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8087  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8088  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8089  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8090  // Please see the License for the specific language governing rights and
  8091  // limitations under the License.
  8092  //
  8093  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8094  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8095  
  8096  type Timespec = struct {
  8097  	Ftv_sec  X__darwin_time_t
  8098  	Ftv_nsec int64
  8099  } /* _timespec.h:33:1 */
  8100  
  8101  // Advisory file segment locking with time out -
  8102  // Information passed to system by user for F_SETLKWTIMEOUT
  8103  type Flocktimeout = struct {
  8104  	Ffl struct {
  8105  		Fl_start  Off_t
  8106  		Fl_len    Off_t
  8107  		Fl_pid    Pid_t
  8108  		Fl_type   int16
  8109  		Fl_whence int16
  8110  	}
  8111  	Ftimeout struct {
  8112  		Ftv_sec  X__darwin_time_t
  8113  		Ftv_nsec int64
  8114  	}
  8115  } /* fcntl.h:374:1 */
  8116  
  8117  // advisory file read data type -
  8118  // information passed by user to system
  8119  
  8120  type Radvisory = struct {
  8121  	Fra_offset   Off_t
  8122  	Fra_count    int32
  8123  	F__ccgo_pad1 [4]byte
  8124  } /* fcntl.h:387:1 */
  8125  
  8126  // detached code signatures data type -
  8127  // information passed by user to system used by F_ADDSIGS and F_ADDFILESIGS.
  8128  // F_ADDFILESIGS is a shortcut for files that contain their own signature and
  8129  // doesn't require mapping of the file in order to load the signature.
  8130  type Fsignatures = struct {
  8131  	Ffs_file_start       Off_t
  8132  	Ffs_blob_start       uintptr
  8133  	Ffs_blob_size        Size_t
  8134  	Ffs_fsignatures_size Size_t
  8135  	Ffs_cdhash           [20]int8
  8136  	Ffs_hash_type        int32
  8137  } /* fcntl.h:400:9 */
  8138  
  8139  // detached code signatures data type -
  8140  // information passed by user to system used by F_ADDSIGS and F_ADDFILESIGS.
  8141  // F_ADDFILESIGS is a shortcut for files that contain their own signature and
  8142  // doesn't require mapping of the file in order to load the signature.
  8143  type Fsignatures_t = Fsignatures /* fcntl.h:410:3 */
  8144  
  8145  type Fsupplement = struct {
  8146  	Ffs_file_start Off_t
  8147  	Ffs_blob_start Off_t
  8148  	Ffs_blob_size  Size_t
  8149  	Ffs_orig_fd    int32
  8150  	F__ccgo_pad1   [4]byte
  8151  } /* fcntl.h:412:9 */
  8152  
  8153  type Fsupplement_t = Fsupplement /* fcntl.h:417:3 */
  8154  
  8155  // DYLD needs to check if the object is allowed to be combined
  8156  // into the main binary. This is done between the code signature
  8157  // is loaded and dyld is doing all the work to process the LOAD commands.
  8158  //
  8159  // While this could be done in F_ADDFILESIGS.* family the hook into
  8160  // the MAC module doesn't say no when LV isn't enabled and then that
  8161  // is cached on the vnode, and the MAC module never gets change once
  8162  // a process that library validation enabled.
  8163  type Fchecklv = struct {
  8164  	Flv_file_start         Off_t
  8165  	Flv_error_message_size Size_t
  8166  	Flv_error_message      uintptr
  8167  } /* fcntl.h:431:9 */
  8168  
  8169  // DYLD needs to check if the object is allowed to be combined
  8170  // into the main binary. This is done between the code signature
  8171  // is loaded and dyld is doing all the work to process the LOAD commands.
  8172  //
  8173  // While this could be done in F_ADDFILESIGS.* family the hook into
  8174  // the MAC module doesn't say no when LV isn't enabled and then that
  8175  // is cached on the vnode, and the MAC module never gets change once
  8176  // a process that library validation enabled.
  8177  type Fchecklv_t = Fchecklv /* fcntl.h:435:3 */
  8178  
  8179  // At this time F_GETSIGSINFO can only indicate platformness.
  8180  //  As additional requestable information is defined, new keys will be added and the
  8181  //  fgetsigsinfo_t structure will be lengthened to add space for the additional information
  8182  
  8183  // fgetsigsinfo_t used by F_GETSIGSINFO command
  8184  type Fgetsigsinfo = struct {
  8185  	Ffg_file_start      Off_t
  8186  	Ffg_info_request    int32
  8187  	Ffg_sig_is_platform int32
  8188  } /* fcntl.h:445:9 */
  8189  
  8190  // At this time F_GETSIGSINFO can only indicate platformness.
  8191  //  As additional requestable information is defined, new keys will be added and the
  8192  //  fgetsigsinfo_t structure will be lengthened to add space for the additional information
  8193  
  8194  // fgetsigsinfo_t used by F_GETSIGSINFO command
  8195  type Fgetsigsinfo_t = Fgetsigsinfo /* fcntl.h:449:3 */
  8196  
  8197  // lock operations for flock(2)
  8198  
  8199  // fstore_t type used by F_PREALLOCATE command
  8200  
  8201  type Fstore = struct {
  8202  	Ffst_flags      uint32
  8203  	Ffst_posmode    int32
  8204  	Ffst_offset     Off_t
  8205  	Ffst_length     Off_t
  8206  	Ffst_bytesalloc Off_t
  8207  } /* fcntl.h:460:9 */
  8208  
  8209  // lock operations for flock(2)
  8210  
  8211  // fstore_t type used by F_PREALLOCATE command
  8212  
  8213  type Fstore_t = Fstore /* fcntl.h:466:3 */
  8214  
  8215  // fpunchhole_t used by F_PUNCHHOLE
  8216  type Fpunchhole = struct {
  8217  	Ffp_flags  uint32
  8218  	Freserved  uint32
  8219  	Ffp_offset Off_t
  8220  	Ffp_length Off_t
  8221  } /* fcntl.h:469:9 */
  8222  
  8223  // fpunchhole_t used by F_PUNCHHOLE
  8224  type Fpunchhole_t = Fpunchhole /* fcntl.h:474:3 */
  8225  
  8226  // factive_file_trim_t used by F_TRIM_ACTIVE_FILE
  8227  type Ftrimactivefile = struct {
  8228  	Ffta_offset Off_t
  8229  	Ffta_length Off_t
  8230  } /* fcntl.h:477:9 */
  8231  
  8232  // factive_file_trim_t used by F_TRIM_ACTIVE_FILE
  8233  type Ftrimactivefile_t = Ftrimactivefile /* fcntl.h:480:3 */
  8234  
  8235  // fspecread_t used by F_SPECULATIVE_READ
  8236  type Fspecread = struct {
  8237  	Ffsr_flags  uint32
  8238  	Freserved   uint32
  8239  	Ffsr_offset Off_t
  8240  	Ffsr_length Off_t
  8241  } /* fcntl.h:483:9 */
  8242  
  8243  // fspecread_t used by F_SPECULATIVE_READ
  8244  type Fspecread_t = Fspecread /* fcntl.h:488:3 */
  8245  
  8246  // fbootstraptransfer_t used by F_READBOOTSTRAP and F_WRITEBOOTSTRAP commands
  8247  
  8248  type Fbootstraptransfer = struct {
  8249  	Ffbt_offset Off_t
  8250  	Ffbt_length Size_t
  8251  	Ffbt_buffer uintptr
  8252  } /* fcntl.h:492:9 */
  8253  
  8254  // fbootstraptransfer_t used by F_READBOOTSTRAP and F_WRITEBOOTSTRAP commands
  8255  
  8256  type Fbootstraptransfer_t = Fbootstraptransfer /* fcntl.h:496:3 */
  8257  
  8258  // For F_LOG2PHYS this information is passed back to user
  8259  // Currently only devoffset is returned - that is the VOP_BMAP
  8260  // result - the disk device address corresponding to the
  8261  // current file offset (likely set with an lseek).
  8262  //
  8263  // The flags could hold an indication of whether the # of
  8264  // contiguous bytes reflects the true extent length on disk,
  8265  // or is an advisory value that indicates there is at least that
  8266  // many bytes contiguous.  For some filesystems it might be too
  8267  // inefficient to provide anything beyond the advisory value.
  8268  // Flags and contiguous bytes return values are not yet implemented.
  8269  // For them the fcntl will nedd to switch from using BMAP to CMAP
  8270  // and a per filesystem type flag will be needed to interpret the
  8271  // contiguous bytes count result from CMAP.
  8272  //
  8273  // F_LOG2PHYS_EXT is a variant of F_LOG2PHYS that uses a passed in
  8274  // file offset and length instead of the current file offset.
  8275  // F_LOG2PHYS_EXT operates on the same structure as F_LOG2PHYS, but
  8276  // treats it as an in/out.
  8277  
  8278  type Log2phys = struct {
  8279  	Fl2p_flags       uint32
  8280  	F__ccgo_pad1     [4]byte
  8281  	Fl2p_contigbytes Off_t
  8282  	Fl2p_devoffset   Off_t
  8283  } /* fcntl.h:522:1 */
  8284  
  8285  type Filesec_t = uintptr /* _filesec_t.h:31:25 */
  8286  
  8287  type Filesec_property_t = uint32 /* fcntl.h:556:3 */
  8288  
  8289  // Copyright (c) 2000, 2002-2006, 2008-2010, 2012 Apple Inc. All rights reserved.
  8290  //
  8291  // @APPLE_LICENSE_HEADER_START@
  8292  //
  8293  // This file contains Original Code and/or Modifications of Original Code
  8294  // as defined in and that are subject to the Apple Public Source License
  8295  // Version 2.0 (the 'License'). You may not use this file except in
  8296  // compliance with the License. Please obtain a copy of the License at
  8297  // http://www.opensource.apple.com/apsl/ and read it before using this
  8298  // file.
  8299  //
  8300  // The Original Code and all software distributed under the License are
  8301  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8302  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8303  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8304  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8305  // Please see the License for the specific language governing rights and
  8306  // limitations under the License.
  8307  //
  8308  // @APPLE_LICENSE_HEADER_END@
  8309  // -
  8310  // Copyright (c) 1998-1999 Apple Computer, Inc. All Rights Reserved
  8311  // Copyright (c) 1991, 1993, 1994
  8312  //	The Regents of the University of California.  All rights reserved.
  8313  //
  8314  // Redistribution and use in source and binary forms, with or without
  8315  // modification, are permitted provided that the following conditions
  8316  // are met:
  8317  // 1. Redistributions of source code must retain the above copyright
  8318  //    notice, this list of conditions and the following disclaimer.
  8319  // 2. Redistributions in binary form must reproduce the above copyright
  8320  //    notice, this list of conditions and the following disclaimer in the
  8321  //    documentation and/or other materials provided with the distribution.
  8322  // 3. All advertising materials mentioning features or use of this software
  8323  //    must display the following acknowledgement:
  8324  //	This product includes software developed by the University of
  8325  //	California, Berkeley and its contributors.
  8326  // 4. Neither the name of the University nor the names of its contributors
  8327  //    may be used to endorse or promote products derived from this software
  8328  //    without specific prior written permission.
  8329  //
  8330  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8331  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8332  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8333  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8334  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8335  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8336  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8337  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8338  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8339  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8340  // SUCH DAMAGE.
  8341  //
  8342  //	@(#)unistd.h	8.12 (Berkeley) 4/27/95
  8343  //
  8344  //  Copyright (c)  1998 Apple Compter, Inc.
  8345  //  All Rights Reserved
  8346  
  8347  // History:
  8348  //         7/14/99 EKN at Apple fixed getdirentriesattr from getdirentryattr
  8349  //         3/26/98 CHW at Apple added real interface to searchfs call
  8350  //   	3/5/98  CHW at Apple added hfs semantic system calls headers
  8351  
  8352  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  8353  //
  8354  // @APPLE_LICENSE_HEADER_START@
  8355  //
  8356  // This file contains Original Code and/or Modifications of Original Code
  8357  // as defined in and that are subject to the Apple Public Source License
  8358  // Version 2.0 (the 'License'). You may not use this file except in
  8359  // compliance with the License. Please obtain a copy of the License at
  8360  // http://www.opensource.apple.com/apsl/ and read it before using this
  8361  // file.
  8362  //
  8363  // The Original Code and all software distributed under the License are
  8364  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8365  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8366  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8367  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8368  // Please see the License for the specific language governing rights and
  8369  // limitations under the License.
  8370  //
  8371  // @APPLE_LICENSE_HEADER_END@
  8372  
  8373  // Copyright (c) 2000-2013 Apple Inc. All rights reserved.
  8374  //
  8375  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8376  //
  8377  // This file contains Original Code and/or Modifications of Original Code
  8378  // as defined in and that are subject to the Apple Public Source License
  8379  // Version 2.0 (the 'License'). You may not use this file except in
  8380  // compliance with the License. The rights granted to you under the License
  8381  // may not be used to create, or enable the creation or redistribution of,
  8382  // unlawful or unlicensed copies of an Apple operating system, or to
  8383  // circumvent, violate, or enable the circumvention or violation of, any
  8384  // terms of an Apple operating system software license agreement.
  8385  //
  8386  // Please obtain a copy of the License at
  8387  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8388  //
  8389  // The Original Code and all software distributed under the License are
  8390  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8391  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8392  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8393  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8394  // Please see the License for the specific language governing rights and
  8395  // limitations under the License.
  8396  //
  8397  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8398  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  8399  // Copyright (c) 1989, 1993
  8400  //	The Regents of the University of California.  All rights reserved.
  8401  //
  8402  // Redistribution and use in source and binary forms, with or without
  8403  // modification, are permitted provided that the following conditions
  8404  // are met:
  8405  // 1. Redistributions of source code must retain the above copyright
  8406  //    notice, this list of conditions and the following disclaimer.
  8407  // 2. Redistributions in binary form must reproduce the above copyright
  8408  //    notice, this list of conditions and the following disclaimer in the
  8409  //    documentation and/or other materials provided with the distribution.
  8410  // 3. All advertising materials mentioning features or use of this software
  8411  //    must display the following acknowledgement:
  8412  //	This product includes software developed by the University of
  8413  //	California, Berkeley and its contributors.
  8414  // 4. Neither the name of the University nor the names of its contributors
  8415  //    may be used to endorse or promote products derived from this software
  8416  //    without specific prior written permission.
  8417  //
  8418  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8419  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8420  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8421  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8422  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8423  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8424  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8425  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8426  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8427  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8428  // SUCH DAMAGE.
  8429  //
  8430  //	@(#)unistd.h	8.2 (Berkeley) 1/7/94
  8431  
  8432  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  8433  //
  8434  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8435  //
  8436  // This file contains Original Code and/or Modifications of Original Code
  8437  // as defined in and that are subject to the Apple Public Source License
  8438  // Version 2.0 (the 'License'). You may not use this file except in
  8439  // compliance with the License. The rights granted to you under the License
  8440  // may not be used to create, or enable the creation or redistribution of,
  8441  // unlawful or unlicensed copies of an Apple operating system, or to
  8442  // circumvent, violate, or enable the circumvention or violation of, any
  8443  // terms of an Apple operating system software license agreement.
  8444  //
  8445  // Please obtain a copy of the License at
  8446  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8447  //
  8448  // The Original Code and all software distributed under the License are
  8449  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8450  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8451  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8452  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8453  // Please see the License for the specific language governing rights and
  8454  // limitations under the License.
  8455  //
  8456  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8457  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8458  // Copyright (c) 1991, 1993
  8459  //	The Regents of the University of California.  All rights reserved.
  8460  //
  8461  // This code is derived from software contributed to Berkeley by
  8462  // Berkeley Software Design, Inc.
  8463  //
  8464  // Redistribution and use in source and binary forms, with or without
  8465  // modification, are permitted provided that the following conditions
  8466  // are met:
  8467  // 1. Redistributions of source code must retain the above copyright
  8468  //    notice, this list of conditions and the following disclaimer.
  8469  // 2. Redistributions in binary form must reproduce the above copyright
  8470  //    notice, this list of conditions and the following disclaimer in the
  8471  //    documentation and/or other materials provided with the distribution.
  8472  // 3. All advertising materials mentioning features or use of this software
  8473  //    must display the following acknowledgement:
  8474  //	This product includes software developed by the University of
  8475  //	California, Berkeley and its contributors.
  8476  // 4. Neither the name of the University nor the names of its contributors
  8477  //    may be used to endorse or promote products derived from this software
  8478  //    without specific prior written permission.
  8479  //
  8480  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8481  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8482  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8483  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8484  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8485  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8486  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8487  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8488  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8489  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8490  // SUCH DAMAGE.
  8491  //
  8492  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  8493  
  8494  // Although we have saved user/group IDs, we do not use them in setuid
  8495  // as described in POSIX 1003.1, because the feature does not work for
  8496  // root.  We use the saved IDs in seteuid/setegid, which are not currently
  8497  // part of the POSIX 1003.1 specification.
  8498  
  8499  // execution-time symbolic constants
  8500  // may disable terminal special characters
  8501  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8502  //
  8503  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8504  //
  8505  // This file contains Original Code and/or Modifications of Original Code
  8506  // as defined in and that are subject to the Apple Public Source License
  8507  // Version 2.0 (the 'License'). You may not use this file except in
  8508  // compliance with the License. The rights granted to you under the License
  8509  // may not be used to create, or enable the creation or redistribution of,
  8510  // unlawful or unlicensed copies of an Apple operating system, or to
  8511  // circumvent, violate, or enable the circumvention or violation of, any
  8512  // terms of an Apple operating system software license agreement.
  8513  //
  8514  // Please obtain a copy of the License at
  8515  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8516  //
  8517  // The Original Code and all software distributed under the License are
  8518  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8519  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8520  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8521  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8522  // Please see the License for the specific language governing rights and
  8523  // limitations under the License.
  8524  //
  8525  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8526  
  8527  // access function
  8528  
  8529  // Extended access functions.
  8530  // Note that we depend on these matching the definitions in sys/kauth.h,
  8531  // but with the bits shifted left by 8.
  8532  
  8533  // whence values for lseek(2)
  8534  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8535  //
  8536  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8537  //
  8538  // This file contains Original Code and/or Modifications of Original Code
  8539  // as defined in and that are subject to the Apple Public Source License
  8540  // Version 2.0 (the 'License'). You may not use this file except in
  8541  // compliance with the License. The rights granted to you under the License
  8542  // may not be used to create, or enable the creation or redistribution of,
  8543  // unlawful or unlicensed copies of an Apple operating system, or to
  8544  // circumvent, violate, or enable the circumvention or violation of, any
  8545  // terms of an Apple operating system software license agreement.
  8546  //
  8547  // Please obtain a copy of the License at
  8548  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8549  //
  8550  // The Original Code and all software distributed under the License are
  8551  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8552  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8553  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8554  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8555  // Please see the License for the specific language governing rights and
  8556  // limitations under the License.
  8557  //
  8558  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8559  
  8560  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  8561  //
  8562  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8563  //
  8564  // This file contains Original Code and/or Modifications of Original Code
  8565  // as defined in and that are subject to the Apple Public Source License
  8566  // Version 2.0 (the 'License'). You may not use this file except in
  8567  // compliance with the License. The rights granted to you under the License
  8568  // may not be used to create, or enable the creation or redistribution of,
  8569  // unlawful or unlicensed copies of an Apple operating system, or to
  8570  // circumvent, violate, or enable the circumvention or violation of, any
  8571  // terms of an Apple operating system software license agreement.
  8572  //
  8573  // Please obtain a copy of the License at
  8574  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8575  //
  8576  // The Original Code and all software distributed under the License are
  8577  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8578  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8579  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8580  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8581  // Please see the License for the specific language governing rights and
  8582  // limitations under the License.
  8583  //
  8584  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8585  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8586  // Copyright (c) 1991, 1993
  8587  //	The Regents of the University of California.  All rights reserved.
  8588  //
  8589  // This code is derived from software contributed to Berkeley by
  8590  // Berkeley Software Design, Inc.
  8591  //
  8592  // Redistribution and use in source and binary forms, with or without
  8593  // modification, are permitted provided that the following conditions
  8594  // are met:
  8595  // 1. Redistributions of source code must retain the above copyright
  8596  //    notice, this list of conditions and the following disclaimer.
  8597  // 2. Redistributions in binary form must reproduce the above copyright
  8598  //    notice, this list of conditions and the following disclaimer in the
  8599  //    documentation and/or other materials provided with the distribution.
  8600  // 3. All advertising materials mentioning features or use of this software
  8601  //    must display the following acknowledgement:
  8602  //	This product includes software developed by the University of
  8603  //	California, Berkeley and its contributors.
  8604  // 4. Neither the name of the University nor the names of its contributors
  8605  //    may be used to endorse or promote products derived from this software
  8606  //    without specific prior written permission.
  8607  //
  8608  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8609  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8610  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8611  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8612  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8613  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8614  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8615  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8616  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8617  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8618  // SUCH DAMAGE.
  8619  //
  8620  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  8621  
  8622  // whence values for lseek(2)
  8623  
  8624  // whence values for lseek(2); renamed by POSIX 1003.1
  8625  
  8626  type Accessx_descriptor = struct {
  8627  	Fad_name_offset uint32
  8628  	Fad_flags       int32
  8629  	Fad_pad         [2]int32
  8630  } /* unistd.h:132:1 */
  8631  
  8632  // Darwin extensions
  8633  
  8634  // Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
  8635  //
  8636  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8637  //
  8638  // This file contains Original Code and/or Modifications of Original Code
  8639  // as defined in and that are subject to the Apple Public Source License
  8640  // Version 2.0 (the 'License'). You may not use this file except in
  8641  // compliance with the License. The rights granted to you under the License
  8642  // may not be used to create, or enable the creation or redistribution of,
  8643  // unlawful or unlicensed copies of an Apple operating system, or to
  8644  // circumvent, violate, or enable the circumvention or violation of, any
  8645  // terms of an Apple operating system software license agreement.
  8646  //
  8647  // Please obtain a copy of the License at
  8648  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8649  //
  8650  // The Original Code and all software distributed under the License are
  8651  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8652  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8653  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8654  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8655  // Please see the License for the specific language governing rights and
  8656  // limitations under the License.
  8657  //
  8658  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8659  // Copyright (c) 1992, 1993
  8660  //	The Regents of the University of California.  All rights reserved.
  8661  //
  8662  // Redistribution and use in source and binary forms, with or without
  8663  // modification, are permitted provided that the following conditions
  8664  // are met:
  8665  // 1. Redistributions of source code must retain the above copyright
  8666  //    notice, this list of conditions and the following disclaimer.
  8667  // 2. Redistributions in binary form must reproduce the above copyright
  8668  //    notice, this list of conditions and the following disclaimer in the
  8669  //    documentation and/or other materials provided with the distribution.
  8670  // 3. All advertising materials mentioning features or use of this software
  8671  //    must display the following acknowledgement:
  8672  //	This product includes software developed by the University of
  8673  //	California, Berkeley and its contributors.
  8674  // 4. Neither the name of the University nor the names of its contributors
  8675  //    may be used to endorse or promote products derived from this software
  8676  //    without specific prior written permission.
  8677  //
  8678  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8679  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8680  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8681  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8682  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8683  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8684  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8685  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8686  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8687  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8688  // SUCH DAMAGE.
  8689  //
  8690  //	@(#)select.h	8.2 (Berkeley) 1/4/94
  8691  
  8692  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  8693  //
  8694  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8695  //
  8696  // This file contains Original Code and/or Modifications of Original Code
  8697  // as defined in and that are subject to the Apple Public Source License
  8698  // Version 2.0 (the 'License'). You may not use this file except in
  8699  // compliance with the License. The rights granted to you under the License
  8700  // may not be used to create, or enable the creation or redistribution of,
  8701  // unlawful or unlicensed copies of an Apple operating system, or to
  8702  // circumvent, violate, or enable the circumvention or violation of, any
  8703  // terms of an Apple operating system software license agreement.
  8704  //
  8705  // Please obtain a copy of the License at
  8706  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8707  //
  8708  // The Original Code and all software distributed under the License are
  8709  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8710  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8711  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8712  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8713  // Please see the License for the specific language governing rights and
  8714  // limitations under the License.
  8715  //
  8716  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8717  
  8718  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  8719  //
  8720  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8721  //
  8722  // This file contains Original Code and/or Modifications of Original Code
  8723  // as defined in and that are subject to the Apple Public Source License
  8724  // Version 2.0 (the 'License'). You may not use this file except in
  8725  // compliance with the License. The rights granted to you under the License
  8726  // may not be used to create, or enable the creation or redistribution of,
  8727  // unlawful or unlicensed copies of an Apple operating system, or to
  8728  // circumvent, violate, or enable the circumvention or violation of, any
  8729  // terms of an Apple operating system software license agreement.
  8730  //
  8731  // Please obtain a copy of the License at
  8732  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8733  //
  8734  // The Original Code and all software distributed under the License are
  8735  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8736  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8737  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8738  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8739  // Please see the License for the specific language governing rights and
  8740  // limitations under the License.
  8741  //
  8742  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8743  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8744  // Copyright (c) 1991, 1993
  8745  //	The Regents of the University of California.  All rights reserved.
  8746  //
  8747  // This code is derived from software contributed to Berkeley by
  8748  // Berkeley Software Design, Inc.
  8749  //
  8750  // Redistribution and use in source and binary forms, with or without
  8751  // modification, are permitted provided that the following conditions
  8752  // are met:
  8753  // 1. Redistributions of source code must retain the above copyright
  8754  //    notice, this list of conditions and the following disclaimer.
  8755  // 2. Redistributions in binary form must reproduce the above copyright
  8756  //    notice, this list of conditions and the following disclaimer in the
  8757  //    documentation and/or other materials provided with the distribution.
  8758  // 3. All advertising materials mentioning features or use of this software
  8759  //    must display the following acknowledgement:
  8760  //	This product includes software developed by the University of
  8761  //	California, Berkeley and its contributors.
  8762  // 4. Neither the name of the University nor the names of its contributors
  8763  //    may be used to endorse or promote products derived from this software
  8764  //    without specific prior written permission.
  8765  //
  8766  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8767  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8768  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8769  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8770  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8771  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8772  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8773  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8774  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8775  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8776  // SUCH DAMAGE.
  8777  //
  8778  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  8779  
  8780  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  8781  //
  8782  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8783  //
  8784  // This file contains Original Code and/or Modifications of Original Code
  8785  // as defined in and that are subject to the Apple Public Source License
  8786  // Version 2.0 (the 'License'). You may not use this file except in
  8787  // compliance with the License. The rights granted to you under the License
  8788  // may not be used to create, or enable the creation or redistribution of,
  8789  // unlawful or unlicensed copies of an Apple operating system, or to
  8790  // circumvent, violate, or enable the circumvention or violation of, any
  8791  // terms of an Apple operating system software license agreement.
  8792  //
  8793  // Please obtain a copy of the License at
  8794  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8795  //
  8796  // The Original Code and all software distributed under the License are
  8797  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8798  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8799  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8800  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8801  // Please see the License for the specific language governing rights and
  8802  // limitations under the License.
  8803  //
  8804  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8805  
  8806  // [XSI] The <sys/select.h> header shall define the fd_set type as a structure.
  8807  // The timespec structure shall be defined as described in <time.h>
  8808  // The <sys/select.h> header shall define the timeval structure.
  8809  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8810  //
  8811  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8812  //
  8813  // This file contains Original Code and/or Modifications of Original Code
  8814  // as defined in and that are subject to the Apple Public Source License
  8815  // Version 2.0 (the 'License'). You may not use this file except in
  8816  // compliance with the License. The rights granted to you under the License
  8817  // may not be used to create, or enable the creation or redistribution of,
  8818  // unlawful or unlicensed copies of an Apple operating system, or to
  8819  // circumvent, violate, or enable the circumvention or violation of, any
  8820  // terms of an Apple operating system software license agreement.
  8821  //
  8822  // Please obtain a copy of the License at
  8823  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8824  //
  8825  // The Original Code and all software distributed under the License are
  8826  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8827  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8828  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8829  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8830  // Please see the License for the specific language governing rights and
  8831  // limitations under the License.
  8832  //
  8833  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8834  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8835  //
  8836  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8837  //
  8838  // This file contains Original Code and/or Modifications of Original Code
  8839  // as defined in and that are subject to the Apple Public Source License
  8840  // Version 2.0 (the 'License'). You may not use this file except in
  8841  // compliance with the License. The rights granted to you under the License
  8842  // may not be used to create, or enable the creation or redistribution of,
  8843  // unlawful or unlicensed copies of an Apple operating system, or to
  8844  // circumvent, violate, or enable the circumvention or violation of, any
  8845  // terms of an Apple operating system software license agreement.
  8846  //
  8847  // Please obtain a copy of the License at
  8848  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8849  //
  8850  // The Original Code and all software distributed under the License are
  8851  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8852  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8853  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8854  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8855  // Please see the License for the specific language governing rights and
  8856  // limitations under the License.
  8857  //
  8858  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8859  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8860  //
  8861  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8862  //
  8863  // This file contains Original Code and/or Modifications of Original Code
  8864  // as defined in and that are subject to the Apple Public Source License
  8865  // Version 2.0 (the 'License'). You may not use this file except in
  8866  // compliance with the License. The rights granted to you under the License
  8867  // may not be used to create, or enable the creation or redistribution of,
  8868  // unlawful or unlicensed copies of an Apple operating system, or to
  8869  // circumvent, violate, or enable the circumvention or violation of, any
  8870  // terms of an Apple operating system software license agreement.
  8871  //
  8872  // Please obtain a copy of the License at
  8873  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8874  //
  8875  // The Original Code and all software distributed under the License are
  8876  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8877  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8878  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8879  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8880  // Please see the License for the specific language governing rights and
  8881  // limitations under the License.
  8882  //
  8883  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8884  
  8885  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  8886  //
  8887  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8888  //
  8889  // This file contains Original Code and/or Modifications of Original Code
  8890  // as defined in and that are subject to the Apple Public Source License
  8891  // Version 2.0 (the 'License'). You may not use this file except in
  8892  // compliance with the License. The rights granted to you under the License
  8893  // may not be used to create, or enable the creation or redistribution of,
  8894  // unlawful or unlicensed copies of an Apple operating system, or to
  8895  // circumvent, violate, or enable the circumvention or violation of, any
  8896  // terms of an Apple operating system software license agreement.
  8897  //
  8898  // Please obtain a copy of the License at
  8899  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8900  //
  8901  // The Original Code and all software distributed under the License are
  8902  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8903  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8904  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8905  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8906  // Please see the License for the specific language governing rights and
  8907  // limitations under the License.
  8908  //
  8909  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8910  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8911  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  8912  //
  8913  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8914  //
  8915  // This file contains Original Code and/or Modifications of Original Code
  8916  // as defined in and that are subject to the Apple Public Source License
  8917  // Version 2.0 (the 'License'). You may not use this file except in
  8918  // compliance with the License. The rights granted to you under the License
  8919  // may not be used to create, or enable the creation or redistribution of,
  8920  // unlawful or unlicensed copies of an Apple operating system, or to
  8921  // circumvent, violate, or enable the circumvention or violation of, any
  8922  // terms of an Apple operating system software license agreement.
  8923  //
  8924  // Please obtain a copy of the License at
  8925  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8926  //
  8927  // The Original Code and all software distributed under the License are
  8928  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8929  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8930  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8931  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8932  // Please see the License for the specific language governing rights and
  8933  // limitations under the License.
  8934  //
  8935  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8936  
  8937  type Timeval = struct {
  8938  	Ftv_sec      X__darwin_time_t
  8939  	Ftv_usec     X__darwin_suseconds_t
  8940  	F__ccgo_pad1 [4]byte
  8941  } /* _timeval.h:34:1 */
  8942  
  8943  // The time_t and suseconds_t types shall be defined as described in
  8944  // <sys/types.h>
  8945  // The sigset_t type shall be defined as described in <signal.h>
  8946  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8947  //
  8948  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8949  //
  8950  // This file contains Original Code and/or Modifications of Original Code
  8951  // as defined in and that are subject to the Apple Public Source License
  8952  // Version 2.0 (the 'License'). You may not use this file except in
  8953  // compliance with the License. The rights granted to you under the License
  8954  // may not be used to create, or enable the creation or redistribution of,
  8955  // unlawful or unlicensed copies of an Apple operating system, or to
  8956  // circumvent, violate, or enable the circumvention or violation of, any
  8957  // terms of an Apple operating system software license agreement.
  8958  //
  8959  // Please obtain a copy of the License at
  8960  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8961  //
  8962  // The Original Code and all software distributed under the License are
  8963  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8964  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8965  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8966  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8967  // Please see the License for the specific language governing rights and
  8968  // limitations under the License.
  8969  //
  8970  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8971  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8972  //
  8973  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8974  //
  8975  // This file contains Original Code and/or Modifications of Original Code
  8976  // as defined in and that are subject to the Apple Public Source License
  8977  // Version 2.0 (the 'License'). You may not use this file except in
  8978  // compliance with the License. The rights granted to you under the License
  8979  // may not be used to create, or enable the creation or redistribution of,
  8980  // unlawful or unlicensed copies of an Apple operating system, or to
  8981  // circumvent, violate, or enable the circumvention or violation of, any
  8982  // terms of an Apple operating system software license agreement.
  8983  //
  8984  // Please obtain a copy of the License at
  8985  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8986  //
  8987  // The Original Code and all software distributed under the License are
  8988  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8989  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8990  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8991  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8992  // Please see the License for the specific language governing rights and
  8993  // limitations under the License.
  8994  //
  8995  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8996  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8997  //
  8998  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8999  //
  9000  // This file contains Original Code and/or Modifications of Original Code
  9001  // as defined in and that are subject to the Apple Public Source License
  9002  // Version 2.0 (the 'License'). You may not use this file except in
  9003  // compliance with the License. The rights granted to you under the License
  9004  // may not be used to create, or enable the creation or redistribution of,
  9005  // unlawful or unlicensed copies of an Apple operating system, or to
  9006  // circumvent, violate, or enable the circumvention or violation of, any
  9007  // terms of an Apple operating system software license agreement.
  9008  //
  9009  // Please obtain a copy of the License at
  9010  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9011  //
  9012  // The Original Code and all software distributed under the License are
  9013  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9014  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9015  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9016  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9017  // Please see the License for the specific language governing rights and
  9018  // limitations under the License.
  9019  //
  9020  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9021  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  9022  //
  9023  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9024  //
  9025  // This file contains Original Code and/or Modifications of Original Code
  9026  // as defined in and that are subject to the Apple Public Source License
  9027  // Version 2.0 (the 'License'). You may not use this file except in
  9028  // compliance with the License. The rights granted to you under the License
  9029  // may not be used to create, or enable the creation or redistribution of,
  9030  // unlawful or unlicensed copies of an Apple operating system, or to
  9031  // circumvent, violate, or enable the circumvention or violation of, any
  9032  // terms of an Apple operating system software license agreement.
  9033  //
  9034  // Please obtain a copy of the License at
  9035  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9036  //
  9037  // The Original Code and all software distributed under the License are
  9038  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9039  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9040  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9041  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9042  // Please see the License for the specific language governing rights and
  9043  // limitations under the License.
  9044  //
  9045  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9046  
  9047  type Sigset_t = X__darwin_sigset_t /* _sigset_t.h:31:41 */
  9048  
  9049  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9050  //
  9051  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9052  //
  9053  // This file contains Original Code and/or Modifications of Original Code
  9054  // as defined in and that are subject to the Apple Public Source License
  9055  // Version 2.0 (the 'License'). You may not use this file except in
  9056  // compliance with the License. The rights granted to you under the License
  9057  // may not be used to create, or enable the creation or redistribution of,
  9058  // unlawful or unlicensed copies of an Apple operating system, or to
  9059  // circumvent, violate, or enable the circumvention or violation of, any
  9060  // terms of an Apple operating system software license agreement.
  9061  //
  9062  // Please obtain a copy of the License at
  9063  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9064  //
  9065  // The Original Code and all software distributed under the License are
  9066  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9067  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9068  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9069  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9070  // Please see the License for the specific language governing rights and
  9071  // limitations under the License.
  9072  //
  9073  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9074  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9075  //
  9076  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9077  //
  9078  // This file contains Original Code and/or Modifications of Original Code
  9079  // as defined in and that are subject to the Apple Public Source License
  9080  // Version 2.0 (the 'License'). You may not use this file except in
  9081  // compliance with the License. The rights granted to you under the License
  9082  // may not be used to create, or enable the creation or redistribution of,
  9083  // unlawful or unlicensed copies of an Apple operating system, or to
  9084  // circumvent, violate, or enable the circumvention or violation of, any
  9085  // terms of an Apple operating system software license agreement.
  9086  //
  9087  // Please obtain a copy of the License at
  9088  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9089  //
  9090  // The Original Code and all software distributed under the License are
  9091  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9092  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9093  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9094  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9095  // Please see the License for the specific language governing rights and
  9096  // limitations under the License.
  9097  //
  9098  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9099  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9100  //
  9101  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9102  //
  9103  // This file contains Original Code and/or Modifications of Original Code
  9104  // as defined in and that are subject to the Apple Public Source License
  9105  // Version 2.0 (the 'License'). You may not use this file except in
  9106  // compliance with the License. The rights granted to you under the License
  9107  // may not be used to create, or enable the creation or redistribution of,
  9108  // unlawful or unlicensed copies of an Apple operating system, or to
  9109  // circumvent, violate, or enable the circumvention or violation of, any
  9110  // terms of an Apple operating system software license agreement.
  9111  //
  9112  // Please obtain a copy of the License at
  9113  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9114  //
  9115  // The Original Code and all software distributed under the License are
  9116  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9117  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9118  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9119  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9120  // Please see the License for the specific language governing rights and
  9121  // limitations under the License.
  9122  //
  9123  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9124  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  9125  //
  9126  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9127  //
  9128  // This file contains Original Code and/or Modifications of Original Code
  9129  // as defined in and that are subject to the Apple Public Source License
  9130  // Version 2.0 (the 'License'). You may not use this file except in
  9131  // compliance with the License. The rights granted to you under the License
  9132  // may not be used to create, or enable the creation or redistribution of,
  9133  // unlawful or unlicensed copies of an Apple operating system, or to
  9134  // circumvent, violate, or enable the circumvention or violation of, any
  9135  // terms of an Apple operating system software license agreement.
  9136  //
  9137  // Please obtain a copy of the License at
  9138  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9139  //
  9140  // The Original Code and all software distributed under the License are
  9141  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9142  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9143  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9144  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9145  // Please see the License for the specific language governing rights and
  9146  // limitations under the License.
  9147  //
  9148  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9149  
  9150  type Uuid_t = X__darwin_uuid_t /* _uuid_t.h:31:25 */
  9151  
  9152  // Get struct timeval and struct tm
  9153  
  9154  // Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
  9155  //
  9156  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9157  //
  9158  // This file contains Original Code and/or Modifications of Original Code
  9159  // as defined in and that are subject to the Apple Public Source License
  9160  // Version 2.0 (the 'License'). You may not use this file except in
  9161  // compliance with the License. The rights granted to you under the License
  9162  // may not be used to create, or enable the creation or redistribution of,
  9163  // unlawful or unlicensed copies of an Apple operating system, or to
  9164  // circumvent, violate, or enable the circumvention or violation of, any
  9165  // terms of an Apple operating system software license agreement.
  9166  //
  9167  // Please obtain a copy of the License at
  9168  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9169  //
  9170  // The Original Code and all software distributed under the License are
  9171  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9172  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9173  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9174  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9175  // Please see the License for the specific language governing rights and
  9176  // limitations under the License.
  9177  //
  9178  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9179  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  9180  // Copyright (c) 1982, 1986, 1993
  9181  //	The Regents of the University of California.  All rights reserved.
  9182  //
  9183  // Redistribution and use in source and binary forms, with or without
  9184  // modification, are permitted provided that the following conditions
  9185  // are met:
  9186  // 1. Redistributions of source code must retain the above copyright
  9187  //    notice, this list of conditions and the following disclaimer.
  9188  // 2. Redistributions in binary form must reproduce the above copyright
  9189  //    notice, this list of conditions and the following disclaimer in the
  9190  //    documentation and/or other materials provided with the distribution.
  9191  // 3. All advertising materials mentioning features or use of this software
  9192  //    must display the following acknowledgement:
  9193  //	This product includes software developed by the University of
  9194  //	California, Berkeley and its contributors.
  9195  // 4. Neither the name of the University nor the names of its contributors
  9196  //    may be used to endorse or promote products derived from this software
  9197  //    without specific prior written permission.
  9198  //
  9199  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  9200  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  9201  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  9202  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  9203  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  9204  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  9205  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  9206  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  9207  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  9208  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  9209  // SUCH DAMAGE.
  9210  //
  9211  //	@(#)time.h	8.2 (Berkeley) 7/10/94
  9212  
  9213  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  9214  //
  9215  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9216  //
  9217  // This file contains Original Code and/or Modifications of Original Code
  9218  // as defined in and that are subject to the Apple Public Source License
  9219  // Version 2.0 (the 'License'). You may not use this file except in
  9220  // compliance with the License. The rights granted to you under the License
  9221  // may not be used to create, or enable the creation or redistribution of,
  9222  // unlawful or unlicensed copies of an Apple operating system, or to
  9223  // circumvent, violate, or enable the circumvention or violation of, any
  9224  // terms of an Apple operating system software license agreement.
  9225  //
  9226  // Please obtain a copy of the License at
  9227  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9228  //
  9229  // The Original Code and all software distributed under the License are
  9230  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9231  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9232  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9233  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9234  // Please see the License for the specific language governing rights and
  9235  // limitations under the License.
  9236  //
  9237  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9238  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  9239  // Copyright (c) 1991, 1993
  9240  //	The Regents of the University of California.  All rights reserved.
  9241  //
  9242  // This code is derived from software contributed to Berkeley by
  9243  // Berkeley Software Design, Inc.
  9244  //
  9245  // Redistribution and use in source and binary forms, with or without
  9246  // modification, are permitted provided that the following conditions
  9247  // are met:
  9248  // 1. Redistributions of source code must retain the above copyright
  9249  //    notice, this list of conditions and the following disclaimer.
  9250  // 2. Redistributions in binary form must reproduce the above copyright
  9251  //    notice, this list of conditions and the following disclaimer in the
  9252  //    documentation and/or other materials provided with the distribution.
  9253  // 3. All advertising materials mentioning features or use of this software
  9254  //    must display the following acknowledgement:
  9255  //	This product includes software developed by the University of
  9256  //	California, Berkeley and its contributors.
  9257  // 4. Neither the name of the University nor the names of its contributors
  9258  //    may be used to endorse or promote products derived from this software
  9259  //    without specific prior written permission.
  9260  //
  9261  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  9262  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  9263  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  9264  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  9265  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  9266  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  9267  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  9268  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  9269  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  9270  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  9271  // SUCH DAMAGE.
  9272  //
  9273  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  9274  
  9275  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  9276  //
  9277  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9278  //
  9279  // This file contains Original Code and/or Modifications of Original Code
  9280  // as defined in and that are subject to the Apple Public Source License
  9281  // Version 2.0 (the 'License'). You may not use this file except in
  9282  // compliance with the License. The rights granted to you under the License
  9283  // may not be used to create, or enable the creation or redistribution of,
  9284  // unlawful or unlicensed copies of an Apple operating system, or to
  9285  // circumvent, violate, or enable the circumvention or violation of, any
  9286  // terms of an Apple operating system software license agreement.
  9287  //
  9288  // Please obtain a copy of the License at
  9289  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9290  //
  9291  // The Original Code and all software distributed under the License are
  9292  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9293  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9294  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9295  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9296  // Please see the License for the specific language governing rights and
  9297  // limitations under the License.
  9298  //
  9299  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9300  
  9301  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  9302  //
  9303  // @APPLE_LICENSE_HEADER_START@
  9304  //
  9305  // This file contains Original Code and/or Modifications of Original Code
  9306  // as defined in and that are subject to the Apple Public Source License
  9307  // Version 2.0 (the 'License'). You may not use this file except in
  9308  // compliance with the License. Please obtain a copy of the License at
  9309  // http://www.opensource.apple.com/apsl/ and read it before using this
  9310  // file.
  9311  //
  9312  // The Original Code and all software distributed under the License are
  9313  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9314  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9315  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9316  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9317  // Please see the License for the specific language governing rights and
  9318  // limitations under the License.
  9319  //
  9320  // @APPLE_LICENSE_HEADER_END@
  9321  
  9322  // [XSI] The fd_set type shall be defined as described in <sys/select.h>.
  9323  // The timespec structure shall be defined as described in <time.h>
  9324  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9325  //
  9326  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9327  //
  9328  // This file contains Original Code and/or Modifications of Original Code
  9329  // as defined in and that are subject to the Apple Public Source License
  9330  // Version 2.0 (the 'License'). You may not use this file except in
  9331  // compliance with the License. The rights granted to you under the License
  9332  // may not be used to create, or enable the creation or redistribution of,
  9333  // unlawful or unlicensed copies of an Apple operating system, or to
  9334  // circumvent, violate, or enable the circumvention or violation of, any
  9335  // terms of an Apple operating system software license agreement.
  9336  //
  9337  // Please obtain a copy of the License at
  9338  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9339  //
  9340  // The Original Code and all software distributed under the License are
  9341  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9342  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9343  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9344  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9345  // Please see the License for the specific language governing rights and
  9346  // limitations under the License.
  9347  //
  9348  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9349  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9350  //
  9351  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9352  //
  9353  // This file contains Original Code and/or Modifications of Original Code
  9354  // as defined in and that are subject to the Apple Public Source License
  9355  // Version 2.0 (the 'License'). You may not use this file except in
  9356  // compliance with the License. The rights granted to you under the License
  9357  // may not be used to create, or enable the creation or redistribution of,
  9358  // unlawful or unlicensed copies of an Apple operating system, or to
  9359  // circumvent, violate, or enable the circumvention or violation of, any
  9360  // terms of an Apple operating system software license agreement.
  9361  //
  9362  // Please obtain a copy of the License at
  9363  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9364  //
  9365  // The Original Code and all software distributed under the License are
  9366  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9367  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9368  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9369  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9370  // Please see the License for the specific language governing rights and
  9371  // limitations under the License.
  9372  //
  9373  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9374  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9375  //
  9376  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9377  //
  9378  // This file contains Original Code and/or Modifications of Original Code
  9379  // as defined in and that are subject to the Apple Public Source License
  9380  // Version 2.0 (the 'License'). You may not use this file except in
  9381  // compliance with the License. The rights granted to you under the License
  9382  // may not be used to create, or enable the creation or redistribution of,
  9383  // unlawful or unlicensed copies of an Apple operating system, or to
  9384  // circumvent, violate, or enable the circumvention or violation of, any
  9385  // terms of an Apple operating system software license agreement.
  9386  //
  9387  // Please obtain a copy of the License at
  9388  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9389  //
  9390  // The Original Code and all software distributed under the License are
  9391  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9392  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9393  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9394  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9395  // Please see the License for the specific language governing rights and
  9396  // limitations under the License.
  9397  //
  9398  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9399  
  9400  // Copyright (c) 2015 Apple Inc. All rights reserved.
  9401  //
  9402  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9403  //
  9404  // This file contains Original Code and/or Modifications of Original Code
  9405  // as defined in and that are subject to the Apple Public Source License
  9406  // Version 2.0 (the 'License'). You may not use this file except in
  9407  // compliance with the License. The rights granted to you under the License
  9408  // may not be used to create, or enable the creation or redistribution of,
  9409  // unlawful or unlicensed copies of an Apple operating system, or to
  9410  // circumvent, violate, or enable the circumvention or violation of, any
  9411  // terms of an Apple operating system software license agreement.
  9412  //
  9413  // Please obtain a copy of the License at
  9414  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9415  //
  9416  // The Original Code and all software distributed under the License are
  9417  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9418  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9419  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9420  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9421  // Please see the License for the specific language governing rights and
  9422  // limitations under the License.
  9423  //
  9424  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9425  
  9426  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  9427  //
  9428  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9429  //
  9430  // This file contains Original Code and/or Modifications of Original Code
  9431  // as defined in and that are subject to the Apple Public Source License
  9432  // Version 2.0 (the 'License'). You may not use this file except in
  9433  // compliance with the License. The rights granted to you under the License
  9434  // may not be used to create, or enable the creation or redistribution of,
  9435  // unlawful or unlicensed copies of an Apple operating system, or to
  9436  // circumvent, violate, or enable the circumvention or violation of, any
  9437  // terms of an Apple operating system software license agreement.
  9438  //
  9439  // Please obtain a copy of the License at
  9440  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9441  //
  9442  // The Original Code and all software distributed under the License are
  9443  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9444  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9445  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9446  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9447  // Please see the License for the specific language governing rights and
  9448  // limitations under the License.
  9449  //
  9450  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9451  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  9452  
  9453  type Timeval64 = struct {
  9454  	Ftv_sec  X__int64_t
  9455  	Ftv_usec X__int64_t
  9456  } /* _timeval64.h:34:1 */
  9457  
  9458  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9459  //
  9460  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9461  //
  9462  // This file contains Original Code and/or Modifications of Original Code
  9463  // as defined in and that are subject to the Apple Public Source License
  9464  // Version 2.0 (the 'License'). You may not use this file except in
  9465  // compliance with the License. The rights granted to you under the License
  9466  // may not be used to create, or enable the creation or redistribution of,
  9467  // unlawful or unlicensed copies of an Apple operating system, or to
  9468  // circumvent, violate, or enable the circumvention or violation of, any
  9469  // terms of an Apple operating system software license agreement.
  9470  //
  9471  // Please obtain a copy of the License at
  9472  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9473  //
  9474  // The Original Code and all software distributed under the License are
  9475  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9476  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9477  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9478  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9479  // Please see the License for the specific language governing rights and
  9480  // limitations under the License.
  9481  //
  9482  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9483  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9484  //
  9485  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9486  //
  9487  // This file contains Original Code and/or Modifications of Original Code
  9488  // as defined in and that are subject to the Apple Public Source License
  9489  // Version 2.0 (the 'License'). You may not use this file except in
  9490  // compliance with the License. The rights granted to you under the License
  9491  // may not be used to create, or enable the creation or redistribution of,
  9492  // unlawful or unlicensed copies of an Apple operating system, or to
  9493  // circumvent, violate, or enable the circumvention or violation of, any
  9494  // terms of an Apple operating system software license agreement.
  9495  //
  9496  // Please obtain a copy of the License at
  9497  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9498  //
  9499  // The Original Code and all software distributed under the License are
  9500  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9501  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9502  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9503  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9504  // Please see the License for the specific language governing rights and
  9505  // limitations under the License.
  9506  //
  9507  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9508  
  9509  // Structure used as a parameter by getitimer(2) and setitimer(2) system
  9510  // calls.
  9511  type Itimerval = struct {
  9512  	Fit_interval struct {
  9513  		Ftv_sec      X__darwin_time_t
  9514  		Ftv_usec     X__darwin_suseconds_t
  9515  		F__ccgo_pad1 [4]byte
  9516  	}
  9517  	Fit_value struct {
  9518  		Ftv_sec      X__darwin_time_t
  9519  		Ftv_usec     X__darwin_suseconds_t
  9520  		F__ccgo_pad1 [4]byte
  9521  	}
  9522  } /* time.h:91:1 */
  9523  
  9524  // Names of the interval timers, and structure
  9525  // defining a timer setting.
  9526  
  9527  // Select uses bit masks of file descriptors in longs.  These macros
  9528  // manipulate such bit fields (the filesystem macros use chars).  The
  9529  // extra protection here is to permit application redefinition above
  9530  // the default size.
  9531  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9532  //
  9533  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9534  //
  9535  // This file contains Original Code and/or Modifications of Original Code
  9536  // as defined in and that are subject to the Apple Public Source License
  9537  // Version 2.0 (the 'License'). You may not use this file except in
  9538  // compliance with the License. The rights granted to you under the License
  9539  // may not be used to create, or enable the creation or redistribution of,
  9540  // unlawful or unlicensed copies of an Apple operating system, or to
  9541  // circumvent, violate, or enable the circumvention or violation of, any
  9542  // terms of an Apple operating system software license agreement.
  9543  //
  9544  // Please obtain a copy of the License at
  9545  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9546  //
  9547  // The Original Code and all software distributed under the License are
  9548  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9549  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9550  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9551  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9552  // Please see the License for the specific language governing rights and
  9553  // limitations under the License.
  9554  //
  9555  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9556  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9557  //
  9558  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9559  //
  9560  // This file contains Original Code and/or Modifications of Original Code
  9561  // as defined in and that are subject to the Apple Public Source License
  9562  // Version 2.0 (the 'License'). You may not use this file except in
  9563  // compliance with the License. The rights granted to you under the License
  9564  // may not be used to create, or enable the creation or redistribution of,
  9565  // unlawful or unlicensed copies of an Apple operating system, or to
  9566  // circumvent, violate, or enable the circumvention or violation of, any
  9567  // terms of an Apple operating system software license agreement.
  9568  //
  9569  // Please obtain a copy of the License at
  9570  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9571  //
  9572  // The Original Code and all software distributed under the License are
  9573  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9574  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9575  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9576  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9577  // Please see the License for the specific language governing rights and
  9578  // limitations under the License.
  9579  //
  9580  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9581  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9582  //
  9583  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9584  //
  9585  // This file contains Original Code and/or Modifications of Original Code
  9586  // as defined in and that are subject to the Apple Public Source License
  9587  // Version 2.0 (the 'License'). You may not use this file except in
  9588  // compliance with the License. The rights granted to you under the License
  9589  // may not be used to create, or enable the creation or redistribution of,
  9590  // unlawful or unlicensed copies of an Apple operating system, or to
  9591  // circumvent, violate, or enable the circumvention or violation of, any
  9592  // terms of an Apple operating system software license agreement.
  9593  //
  9594  // Please obtain a copy of the License at
  9595  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9596  //
  9597  // The Original Code and all software distributed under the License are
  9598  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9599  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9600  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9601  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9602  // Please see the License for the specific language governing rights and
  9603  // limitations under the License.
  9604  //
  9605  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9606  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9607  //
  9608  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9609  //
  9610  // This file contains Original Code and/or Modifications of Original Code
  9611  // as defined in and that are subject to the Apple Public Source License
  9612  // Version 2.0 (the 'License'). You may not use this file except in
  9613  // compliance with the License. The rights granted to you under the License
  9614  // may not be used to create, or enable the creation or redistribution of,
  9615  // unlawful or unlicensed copies of an Apple operating system, or to
  9616  // circumvent, violate, or enable the circumvention or violation of, any
  9617  // terms of an Apple operating system software license agreement.
  9618  //
  9619  // Please obtain a copy of the License at
  9620  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9621  //
  9622  // The Original Code and all software distributed under the License are
  9623  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9624  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9625  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9626  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9627  // Please see the License for the specific language governing rights and
  9628  // limitations under the License.
  9629  //
  9630  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9631  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9632  //
  9633  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9634  //
  9635  // This file contains Original Code and/or Modifications of Original Code
  9636  // as defined in and that are subject to the Apple Public Source License
  9637  // Version 2.0 (the 'License'). You may not use this file except in
  9638  // compliance with the License. The rights granted to you under the License
  9639  // may not be used to create, or enable the creation or redistribution of,
  9640  // unlawful or unlicensed copies of an Apple operating system, or to
  9641  // circumvent, violate, or enable the circumvention or violation of, any
  9642  // terms of an Apple operating system software license agreement.
  9643  //
  9644  // Please obtain a copy of the License at
  9645  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9646  //
  9647  // The Original Code and all software distributed under the License are
  9648  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9649  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9650  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9651  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9652  // Please see the License for the specific language governing rights and
  9653  // limitations under the License.
  9654  //
  9655  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9656  
  9657  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9658  //
  9659  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9660  //
  9661  // This file contains Original Code and/or Modifications of Original Code
  9662  // as defined in and that are subject to the Apple Public Source License
  9663  // Version 2.0 (the 'License'). You may not use this file except in
  9664  // compliance with the License. The rights granted to you under the License
  9665  // may not be used to create, or enable the creation or redistribution of,
  9666  // unlawful or unlicensed copies of an Apple operating system, or to
  9667  // circumvent, violate, or enable the circumvention or violation of, any
  9668  // terms of an Apple operating system software license agreement.
  9669  //
  9670  // Please obtain a copy of the License at
  9671  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9672  //
  9673  // The Original Code and all software distributed under the License are
  9674  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9675  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9676  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9677  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9678  // Please see the License for the specific language governing rights and
  9679  // limitations under the License.
  9680  //
  9681  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9682  
  9683  type Timezone = struct {
  9684  	Ftz_minuteswest int32
  9685  	Ftz_dsttime     int32
  9686  } /* time.h:129:1 */
  9687  
  9688  // Operations on timevals.
  9689  
  9690  // Getkerninfo clock information structure
  9691  type Clockinfo = struct {
  9692  	Fhz      int32
  9693  	Ftick    int32
  9694  	Ftickadj int32
  9695  	Fstathz  int32
  9696  	Fprofhz  int32
  9697  } /* time.h:172:1 */
  9698  
  9699  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  9700  //
  9701  // @APPLE_LICENSE_HEADER_START@
  9702  //
  9703  // This file contains Original Code and/or Modifications of Original Code
  9704  // as defined in and that are subject to the Apple Public Source License
  9705  // Version 2.0 (the 'License'). You may not use this file except in
  9706  // compliance with the License. Please obtain a copy of the License at
  9707  // http://www.opensource.apple.com/apsl/ and read it before using this
  9708  // file.
  9709  //
  9710  // The Original Code and all software distributed under the License are
  9711  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9712  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9713  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9714  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9715  // Please see the License for the specific language governing rights and
  9716  // limitations under the License.
  9717  //
  9718  // @APPLE_LICENSE_HEADER_END@
  9719  // Copyright (c) 1989, 1993
  9720  //	The Regents of the University of California.  All rights reserved.
  9721  // (c) UNIX System Laboratories, Inc.
  9722  // All or some portions of this file are derived from material licensed
  9723  // to the University of California by American Telephone and Telegraph
  9724  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  9725  // the permission of UNIX System Laboratories, Inc.
  9726  //
  9727  // Redistribution and use in source and binary forms, with or without
  9728  // modification, are permitted provided that the following conditions
  9729  // are met:
  9730  // 1. Redistributions of source code must retain the above copyright
  9731  //    notice, this list of conditions and the following disclaimer.
  9732  // 2. Redistributions in binary form must reproduce the above copyright
  9733  //    notice, this list of conditions and the following disclaimer in the
  9734  //    documentation and/or other materials provided with the distribution.
  9735  // 3. All advertising materials mentioning features or use of this software
  9736  //    must display the following acknowledgement:
  9737  //	This product includes software developed by the University of
  9738  //	California, Berkeley and its contributors.
  9739  // 4. Neither the name of the University nor the names of its contributors
  9740  //    may be used to endorse or promote products derived from this software
  9741  //    without specific prior written permission.
  9742  //
  9743  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  9744  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  9745  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  9746  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  9747  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  9748  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  9749  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  9750  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  9751  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  9752  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  9753  // SUCH DAMAGE.
  9754  //
  9755  //	@(#)time.h	8.3 (Berkeley) 1/21/94
  9756  
  9757  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  9758  //
  9759  // @APPLE_LICENSE_HEADER_START@
  9760  //
  9761  // This file contains Original Code and/or Modifications of Original Code
  9762  // as defined in and that are subject to the Apple Public Source License
  9763  // Version 2.0 (the 'License'). You may not use this file except in
  9764  // compliance with the License. Please obtain a copy of the License at
  9765  // http://www.opensource.apple.com/apsl/ and read it before using this
  9766  // file.
  9767  //
  9768  // The Original Code and all software distributed under the License are
  9769  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9770  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9771  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9772  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9773  // Please see the License for the specific language governing rights and
  9774  // limitations under the License.
  9775  //
  9776  // @APPLE_LICENSE_HEADER_END@
  9777  
  9778  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  9779  //
  9780  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9781  //
  9782  // This file contains Original Code and/or Modifications of Original Code
  9783  // as defined in and that are subject to the Apple Public Source License
  9784  // Version 2.0 (the 'License'). You may not use this file except in
  9785  // compliance with the License. The rights granted to you under the License
  9786  // may not be used to create, or enable the creation or redistribution of,
  9787  // unlawful or unlicensed copies of an Apple operating system, or to
  9788  // circumvent, violate, or enable the circumvention or violation of, any
  9789  // terms of an Apple operating system software license agreement.
  9790  //
  9791  // Please obtain a copy of the License at
  9792  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9793  //
  9794  // The Original Code and all software distributed under the License are
  9795  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9796  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9797  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9798  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9799  // Please see the License for the specific language governing rights and
  9800  // limitations under the License.
  9801  //
  9802  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9803  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  9804  // Copyright (c) 1991, 1993
  9805  //	The Regents of the University of California.  All rights reserved.
  9806  //
  9807  // This code is derived from software contributed to Berkeley by
  9808  // Berkeley Software Design, Inc.
  9809  //
  9810  // Redistribution and use in source and binary forms, with or without
  9811  // modification, are permitted provided that the following conditions
  9812  // are met:
  9813  // 1. Redistributions of source code must retain the above copyright
  9814  //    notice, this list of conditions and the following disclaimer.
  9815  // 2. Redistributions in binary form must reproduce the above copyright
  9816  //    notice, this list of conditions and the following disclaimer in the
  9817  //    documentation and/or other materials provided with the distribution.
  9818  // 3. All advertising materials mentioning features or use of this software
  9819  //    must display the following acknowledgement:
  9820  //	This product includes software developed by the University of
  9821  //	California, Berkeley and its contributors.
  9822  // 4. Neither the name of the University nor the names of its contributors
  9823  //    may be used to endorse or promote products derived from this software
  9824  //    without specific prior written permission.
  9825  //
  9826  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  9827  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  9828  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  9829  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  9830  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  9831  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  9832  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  9833  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  9834  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  9835  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  9836  // SUCH DAMAGE.
  9837  //
  9838  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  9839  
  9840  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  9841  //
  9842  // @APPLE_LICENSE_HEADER_START@
  9843  //
  9844  // This file contains Original Code and/or Modifications of Original Code
  9845  // as defined in and that are subject to the Apple Public Source License
  9846  // Version 2.0 (the 'License'). You may not use this file except in
  9847  // compliance with the License. Please obtain a copy of the License at
  9848  // http://www.opensource.apple.com/apsl/ and read it before using this
  9849  // file.
  9850  //
  9851  // The Original Code and all software distributed under the License are
  9852  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9853  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9854  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9855  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9856  // Please see the License for the specific language governing rights and
  9857  // limitations under the License.
  9858  //
  9859  // @APPLE_LICENSE_HEADER_END@
  9860  
  9861  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9862  //
  9863  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9864  //
  9865  // This file contains Original Code and/or Modifications of Original Code
  9866  // as defined in and that are subject to the Apple Public Source License
  9867  // Version 2.0 (the 'License'). You may not use this file except in
  9868  // compliance with the License. The rights granted to you under the License
  9869  // may not be used to create, or enable the creation or redistribution of,
  9870  // unlawful or unlicensed copies of an Apple operating system, or to
  9871  // circumvent, violate, or enable the circumvention or violation of, any
  9872  // terms of an Apple operating system software license agreement.
  9873  //
  9874  // Please obtain a copy of the License at
  9875  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9876  //
  9877  // The Original Code and all software distributed under the License are
  9878  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9879  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9880  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9881  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9882  // Please see the License for the specific language governing rights and
  9883  // limitations under the License.
  9884  //
  9885  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9886  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9887  //
  9888  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9889  //
  9890  // This file contains Original Code and/or Modifications of Original Code
  9891  // as defined in and that are subject to the Apple Public Source License
  9892  // Version 2.0 (the 'License'). You may not use this file except in
  9893  // compliance with the License. The rights granted to you under the License
  9894  // may not be used to create, or enable the creation or redistribution of,
  9895  // unlawful or unlicensed copies of an Apple operating system, or to
  9896  // circumvent, violate, or enable the circumvention or violation of, any
  9897  // terms of an Apple operating system software license agreement.
  9898  //
  9899  // Please obtain a copy of the License at
  9900  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9901  //
  9902  // The Original Code and all software distributed under the License are
  9903  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9904  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9905  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9906  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9907  // Please see the License for the specific language governing rights and
  9908  // limitations under the License.
  9909  //
  9910  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9911  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9912  //
  9913  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9914  //
  9915  // This file contains Original Code and/or Modifications of Original Code
  9916  // as defined in and that are subject to the Apple Public Source License
  9917  // Version 2.0 (the 'License'). You may not use this file except in
  9918  // compliance with the License. The rights granted to you under the License
  9919  // may not be used to create, or enable the creation or redistribution of,
  9920  // unlawful or unlicensed copies of an Apple operating system, or to
  9921  // circumvent, violate, or enable the circumvention or violation of, any
  9922  // terms of an Apple operating system software license agreement.
  9923  //
  9924  // Please obtain a copy of the License at
  9925  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9926  //
  9927  // The Original Code and all software distributed under the License are
  9928  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9929  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9930  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9931  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9932  // Please see the License for the specific language governing rights and
  9933  // limitations under the License.
  9934  //
  9935  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9936  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9937  //
  9938  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9939  //
  9940  // This file contains Original Code and/or Modifications of Original Code
  9941  // as defined in and that are subject to the Apple Public Source License
  9942  // Version 2.0 (the 'License'). You may not use this file except in
  9943  // compliance with the License. The rights granted to you under the License
  9944  // may not be used to create, or enable the creation or redistribution of,
  9945  // unlawful or unlicensed copies of an Apple operating system, or to
  9946  // circumvent, violate, or enable the circumvention or violation of, any
  9947  // terms of an Apple operating system software license agreement.
  9948  //
  9949  // Please obtain a copy of the License at
  9950  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9951  //
  9952  // The Original Code and all software distributed under the License are
  9953  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9954  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9955  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9956  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9957  // Please see the License for the specific language governing rights and
  9958  // limitations under the License.
  9959  //
  9960  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9961  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9962  //
  9963  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9964  //
  9965  // This file contains Original Code and/or Modifications of Original Code
  9966  // as defined in and that are subject to the Apple Public Source License
  9967  // Version 2.0 (the 'License'). You may not use this file except in
  9968  // compliance with the License. The rights granted to you under the License
  9969  // may not be used to create, or enable the creation or redistribution of,
  9970  // unlawful or unlicensed copies of an Apple operating system, or to
  9971  // circumvent, violate, or enable the circumvention or violation of, any
  9972  // terms of an Apple operating system software license agreement.
  9973  //
  9974  // Please obtain a copy of the License at
  9975  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9976  //
  9977  // The Original Code and all software distributed under the License are
  9978  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9979  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9980  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9981  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9982  // Please see the License for the specific language governing rights and
  9983  // limitations under the License.
  9984  //
  9985  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9986  
  9987  type Tm = struct {
  9988  	Ftm_sec      int32
  9989  	Ftm_min      int32
  9990  	Ftm_hour     int32
  9991  	Ftm_mday     int32
  9992  	Ftm_mon      int32
  9993  	Ftm_year     int32
  9994  	Ftm_wday     int32
  9995  	Ftm_yday     int32
  9996  	Ftm_isdst    int32
  9997  	F__ccgo_pad1 [4]byte
  9998  	Ftm_gmtoff   int64
  9999  	Ftm_zone     uintptr
 10000  } /* time.h:75:1 */
 10001  
 10002  type Clockid_t = uint32 /* time.h:172:3 */
 10003  
 10004  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
 10005  //
 10006  // @APPLE_LICENSE_HEADER_START@
 10007  //
 10008  // This file contains Original Code and/or Modifications of Original Code
 10009  // as defined in and that are subject to the Apple Public Source License
 10010  // Version 2.0 (the 'License'). You may not use this file except in
 10011  // compliance with the License. Please obtain a copy of the License at
 10012  // http://www.opensource.apple.com/apsl/ and read it before using this
 10013  // file.
 10014  //
 10015  // The Original Code and all software distributed under the License are
 10016  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10017  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10018  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10019  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10020  // Please see the License for the specific language governing rights and
 10021  // limitations under the License.
 10022  //
 10023  // @APPLE_LICENSE_HEADER_END@
 10024  // Copyright (c) 1989, 1993
 10025  //	The Regents of the University of California.  All rights reserved.
 10026  // (c) UNIX System Laboratories, Inc.
 10027  // All or some portions of this file are derived from material licensed
 10028  // to the University of California by American Telephone and Telegraph
 10029  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
 10030  // the permission of UNIX System Laboratories, Inc.
 10031  //
 10032  // Redistribution and use in source and binary forms, with or without
 10033  // modification, are permitted provided that the following conditions
 10034  // are met:
 10035  // 1. Redistributions of source code must retain the above copyright
 10036  //    notice, this list of conditions and the following disclaimer.
 10037  // 2. Redistributions in binary form must reproduce the above copyright
 10038  //    notice, this list of conditions and the following disclaimer in the
 10039  //    documentation and/or other materials provided with the distribution.
 10040  // 3. All advertising materials mentioning features or use of this software
 10041  //    must display the following acknowledgement:
 10042  //	This product includes software developed by the University of
 10043  //	California, Berkeley and its contributors.
 10044  // 4. Neither the name of the University nor the names of its contributors
 10045  //    may be used to endorse or promote products derived from this software
 10046  //    without specific prior written permission.
 10047  //
 10048  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 10049  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 10050  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 10051  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 10052  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 10053  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 10054  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 10055  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 10056  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 10057  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 10058  // SUCH DAMAGE.
 10059  //
 10060  //	@(#)time.h	8.3 (Berkeley) 1/21/94
 10061  
 10062  // define X_GETTIMEOFDAY macro, a portable gettimeofday()
 10063  
 10064  // use POSIX name for signal
 10065  
 10066  // Copyright 1997 Metro Link Incorporated
 10067  //
 10068  //                           All Rights Reserved
 10069  //
 10070  // Permission to use, copy, modify, distribute, and sell this software and its
 10071  // documentation for any purpose is hereby granted without fee, provided that
 10072  // the above copyright notice appear in all copies and that both that
 10073  // copyright notice and this permission notice appear in supporting
 10074  // documentation, and that the names of the above listed copyright holder(s)
 10075  // not be used in advertising or publicity pertaining to distribution of
 10076  // the software without specific, written prior permission.  The above listed
 10077  // copyright holder(s) make(s) no representations about the suitability of
 10078  // this software for any purpose.  It is provided "as is" without express or
 10079  // implied warranty.
 10080  //
 10081  // THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM(S) ALL WARRANTIES WITH REGARD
 10082  // TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 10083  // AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
 10084  // LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
 10085  // DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
 10086  // IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
 10087  // OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 10088  
 10089  // Determine the machine's byte order.
 10090  
 10091  // See if it is set in the imake config first
 10092  
 10093  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 10094  //
 10095  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10096  //
 10097  // This file contains Original Code and/or Modifications of Original Code
 10098  // as defined in and that are subject to the Apple Public Source License
 10099  // Version 2.0 (the 'License'). You may not use this file except in
 10100  // compliance with the License. The rights granted to you under the License
 10101  // may not be used to create, or enable the creation or redistribution of,
 10102  // unlawful or unlicensed copies of an Apple operating system, or to
 10103  // circumvent, violate, or enable the circumvention or violation of, any
 10104  // terms of an Apple operating system software license agreement.
 10105  //
 10106  // Please obtain a copy of the License at
 10107  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10108  //
 10109  // The Original Code and all software distributed under the License are
 10110  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10111  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10112  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10113  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10114  // Please see the License for the specific language governing rights and
 10115  // limitations under the License.
 10116  //
 10117  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10118  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 10119  
 10120  // Definitions for the X window system likely to be used by applications
 10121  
 10122  //**********************************************************
 10123  //
 10124  // Copyright 1987, 1998  The Open Group
 10125  //
 10126  // Permission to use, copy, modify, distribute, and sell this software and its
 10127  // documentation for any purpose is hereby granted without fee, provided that
 10128  // the above copyright notice appear in all copies and that both that
 10129  // copyright notice and this permission notice appear in supporting
 10130  // documentation.
 10131  //
 10132  // The above copyright notice and this permission notice shall be included in
 10133  // all copies or substantial portions of the Software.
 10134  //
 10135  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 10136  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 10137  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 10138  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 10139  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 10140  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 10141  //
 10142  // Except as contained in this notice, the name of The Open Group shall not be
 10143  // used in advertising or otherwise to promote the sale, use or other dealings
 10144  // in this Software without prior written authorization from The Open Group.
 10145  //
 10146  //
 10147  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 10148  //
 10149  //                         All Rights Reserved
 10150  //
 10151  // Permission to use, copy, modify, and distribute this software and its
 10152  // documentation for any purpose and without fee is hereby granted,
 10153  // provided that the above copyright notice appear in all copies and that
 10154  // both that copyright notice and this permission notice appear in
 10155  // supporting documentation, and that the name of Digital not be
 10156  // used in advertising or publicity pertaining to distribution of the
 10157  // software without specific, written prior permission.
 10158  //
 10159  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 10160  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 10161  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 10162  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 10163  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 10164  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 10165  // SOFTWARE.
 10166  //
 10167  // *****************************************************************
 10168  
 10169  // Resources
 10170  
 10171  // _XSERVER64 must ONLY be defined when compiling X server sources on
 10172  // systems where unsigned long is not 32 bits, must NOT be used in
 10173  // client or library code.
 10174  type XID = uint64      /* X.h:66:23 */
 10175  type Mask = uint64     /* X.h:70:23 */
 10176  type Atom = uint64     /* X.h:74:23 */ // Also in Xdefs.h
 10177  type VisualID = uint64 /* X.h:76:23 */
 10178  type Time = uint64     /* X.h:77:23 */
 10179  
 10180  type Window = XID   /* X.h:96:13 */
 10181  type Drawable = XID /* X.h:97:13 */
 10182  type Font = XID     /* X.h:100:13 */
 10183  type Pixmap = XID   /* X.h:102:13 */
 10184  type Cursor = XID   /* X.h:103:13 */
 10185  type Colormap = XID /* X.h:104:13 */
 10186  type GContext = XID /* X.h:105:13 */
 10187  type KeySym = XID   /* X.h:106:13 */
 10188  
 10189  type KeyCode = uint8 /* X.h:108:23 */
 10190  
 10191  // ****************************************************************
 10192  //
 10193  // RESERVED RESOURCE AND CONSTANT DEFINITIONS
 10194  //
 10195  
 10196  // ****************************************************************
 10197  //
 10198  // EVENT DEFINITIONS
 10199  //
 10200  
 10201  // Input Event Masks. Used as event-mask window attribute and as arguments
 10202  //    to Grab requests.  Not to be confused with event names.
 10203  
 10204  // Event names.  Used in "type" field in XEvent structures.  Not to be
 10205  // confused with event masks above.  They start from 2 because 0 and 1
 10206  // are reserved in the protocol for errors and replies.
 10207  
 10208  // Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
 10209  //    state in various key-, mouse-, and button-related events.
 10210  
 10211  // modifier names.  Used to build a SetModifierMapping request or
 10212  //    to read a GetModifierMapping request.  These correspond to the
 10213  //    masks defined above.
 10214  
 10215  // button masks.  Used in same manner as Key masks above. Not to be confused
 10216  //    with button names below.
 10217  
 10218  // button names. Used as arguments to GrabButton and as detail in ButtonPress
 10219  //    and ButtonRelease events.  Not to be confused with button masks above.
 10220  //    Note that 0 is already defined above as "AnyButton".
 10221  
 10222  // Notify modes
 10223  
 10224  // Notify detail
 10225  
 10226  // Visibility notify
 10227  
 10228  // Circulation request
 10229  
 10230  // protocol families
 10231  
 10232  // authentication families not tied to a specific protocol
 10233  
 10234  // Property notification
 10235  
 10236  // Color Map notification
 10237  
 10238  // GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes
 10239  
 10240  // GrabPointer, GrabKeyboard reply status
 10241  
 10242  // AllowEvents modes
 10243  
 10244  // Used in SetInputFocus, GetInputFocus
 10245  
 10246  // ****************************************************************
 10247  //
 10248  // ERROR CODES
 10249  //
 10250  
 10251  // ****************************************************************
 10252  //
 10253  // WINDOW DEFINITIONS
 10254  //
 10255  
 10256  // Window classes used by CreateWindow
 10257  // Note that CopyFromParent is already defined as 0 above
 10258  
 10259  // Window attributes for CreateWindow and ChangeWindowAttributes
 10260  
 10261  // ConfigureWindow structure
 10262  
 10263  // Bit Gravity
 10264  
 10265  // Window gravity + bit gravity above
 10266  
 10267  // Used in CreateWindow for backing-store hint
 10268  
 10269  // Used in GetWindowAttributes reply
 10270  
 10271  // Used in ChangeSaveSet
 10272  
 10273  // Used in ChangeCloseDownMode
 10274  
 10275  // Window stacking method (in configureWindow)
 10276  
 10277  // Circulation direction
 10278  
 10279  // Property modes
 10280  
 10281  // ****************************************************************
 10282  //
 10283  // GRAPHICS DEFINITIONS
 10284  //
 10285  
 10286  // graphics functions, as in GC.alu
 10287  
 10288  // LineStyle
 10289  
 10290  // capStyle
 10291  
 10292  // joinStyle
 10293  
 10294  // fillStyle
 10295  
 10296  // fillRule
 10297  
 10298  // subwindow mode
 10299  
 10300  // SetClipRectangles ordering
 10301  
 10302  // CoordinateMode for drawing routines
 10303  
 10304  // Polygon shapes
 10305  
 10306  // Arc modes for PolyFillArc
 10307  
 10308  // GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
 10309  //    GC.stateChanges
 10310  
 10311  // ****************************************************************
 10312  //
 10313  // FONTS
 10314  //
 10315  
 10316  // used in QueryFont -- draw direction
 10317  
 10318  // ****************************************************************
 10319  //
 10320  //  IMAGING
 10321  //
 10322  
 10323  // ImageFormat -- PutImage, GetImage
 10324  
 10325  // ****************************************************************
 10326  //
 10327  //  COLOR MAP STUFF
 10328  //
 10329  
 10330  // For CreateColormap
 10331  
 10332  // Flags used in StoreNamedColor, StoreColors
 10333  
 10334  // ****************************************************************
 10335  //
 10336  // CURSOR STUFF
 10337  //
 10338  
 10339  // QueryBestSize Class
 10340  
 10341  // ****************************************************************
 10342  //
 10343  // KEYBOARD/POINTER STUFF
 10344  //
 10345  
 10346  // masks for ChangeKeyboardControl
 10347  
 10348  // ****************************************************************
 10349  //
 10350  // SCREEN SAVER STUFF
 10351  //
 10352  
 10353  // for ForceScreenSaver
 10354  
 10355  // ****************************************************************
 10356  //
 10357  // HOSTS AND CONNECTIONS
 10358  //
 10359  
 10360  // for ChangeHosts
 10361  
 10362  // for ChangeAccessControl
 10363  
 10364  // Display classes  used in opening the connection
 10365  // Note that the statically allocated ones are even numbered and the
 10366  // dynamically changeable ones are odd numbered
 10367  
 10368  // Byte order  used in imageByteOrder and bitmapBitOrder
 10369  
 10370  //**********************************************************
 10371  //
 10372  // Copyright 1987, 1998  The Open Group
 10373  //
 10374  // Permission to use, copy, modify, distribute, and sell this software and its
 10375  // documentation for any purpose is hereby granted without fee, provided that
 10376  // the above copyright notice appear in all copies and that both that
 10377  // copyright notice and this permission notice appear in supporting
 10378  // documentation.
 10379  //
 10380  // The above copyright notice and this permission notice shall be included in
 10381  // all copies or substantial portions of the Software.
 10382  //
 10383  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 10384  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 10385  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 10386  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 10387  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 10388  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 10389  //
 10390  // Except as contained in this notice, the name of The Open Group shall not be
 10391  // used in advertising or otherwise to promote the sale, use or other dealings
 10392  // in this Software without prior written authorization from The Open Group.
 10393  //
 10394  //
 10395  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 10396  //
 10397  //                         All Rights Reserved
 10398  //
 10399  // Permission to use, copy, modify, and distribute this software and its
 10400  // documentation for any purpose and without fee is hereby granted,
 10401  // provided that the above copyright notice appear in all copies and that
 10402  // both that copyright notice and this permission notice appear in
 10403  // supporting documentation, and that the name of Digital not be
 10404  // used in advertising or publicity pertaining to distribution of the
 10405  // software without specific, written prior permission.
 10406  //
 10407  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 10408  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 10409  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 10410  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 10411  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 10412  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 10413  // SOFTWARE.
 10414  //
 10415  // *****************************************************************
 10416  //  Xmd.h: MACHINE DEPENDENT DECLARATIONS.
 10417  
 10418  // Special per-machine configuration flags.
 10419  
 10420  // Definition of macro used to set constants for size of network structures;
 10421  // machines with preprocessors that can't handle all of the sz_ symbols
 10422  // can define this macro to be sizeof(x) if and only if their compiler doesn't
 10423  // pad out structures (esp. the xTextElt structure which contains only two
 10424  // one-byte fields).  Network structures should always define sz_symbols.
 10425  //
 10426  // The sz_ prefix is used instead of something more descriptive so that the
 10427  // symbols are no more than 32 characters long (which causes problems for some
 10428  // compilers and preprocessors).
 10429  //
 10430  // The extra indirection is to get macro arguments to expand correctly before
 10431  // the concatenation, rather than afterward.
 10432  
 10433  // Bitfield suffixes for the protocol structure elements, if you
 10434  // need them.  Note that bitfields are not guaranteed to be signed
 10435  // (or even unsigned) according to ANSI C.
 10436  type INT64 = int64 /* Xmd.h:101:14 */
 10437  type INT32 = int32 /* Xmd.h:102:13 */
 10438  type INT16 = int16 /* Xmd.h:106:15 */
 10439  
 10440  type INT8 = int8 /* Xmd.h:108:24 */
 10441  
 10442  type CARD64 = uint64 /* Xmd.h:111:23 */
 10443  type CARD32 = uint32 /* Xmd.h:112:22 */
 10444  type CARD16 = uint16 /* Xmd.h:117:24 */
 10445  type CARD8 = uint8   /* Xmd.h:118:24 */
 10446  
 10447  type BITS32 = CARD32 /* Xmd.h:120:17 */
 10448  type BITS16 = CARD16 /* Xmd.h:121:17 */
 10449  
 10450  type BYTE = CARD8 /* Xmd.h:123:16 */
 10451  type BOOL = CARD8 /* Xmd.h:124:16 */
 10452  
 10453  // was definitions for sign-extending bitfields on architectures without
 10454  // native types smaller than 64-bit, now just backwards compatibility
 10455  
 10456  // this version should leave result of type (t *), but that should only be
 10457  // used when not in MUSTCOPY
 10458  
 10459  // Copyright 1989 Network Computing Devices, Inc., Mountain View, California.
 10460  //
 10461  // Permission to use, copy, modify, and distribute this software and its
 10462  // documentation for any purpose and without fee is hereby granted, provided
 10463  // that the above copyright notice appear in all copies and that both that
 10464  // copyright notice and this permission notice appear in supporting
 10465  // documentation, and that the name of N.C.D. not be used in advertising or
 10466  // publicity pertaining to distribution of the software without specific,
 10467  // written prior permission.  N.C.D. makes no representations about the
 10468  // suitability of this software for any purpose.  It is provided "as is"
 10469  // without express or implied warranty.
 10470  //
 10471  
 10472  //**********************************************************
 10473  //
 10474  // Copyright 1987, 1998  The Open Group
 10475  //
 10476  // Permission to use, copy, modify, distribute, and sell this software and its
 10477  // documentation for any purpose is hereby granted without fee, provided that
 10478  // the above copyright notice appear in all copies and that both that
 10479  // copyright notice and this permission notice appear in supporting
 10480  // documentation.
 10481  //
 10482  // The above copyright notice and this permission notice shall be included in
 10483  // all copies or substantial portions of the Software.
 10484  //
 10485  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 10486  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 10487  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 10488  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 10489  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 10490  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 10491  //
 10492  // Except as contained in this notice, the name of The Open Group shall not be
 10493  // used in advertising or otherwise to promote the sale, use or other dealings
 10494  // in this Software without prior written authorization from The Open Group.
 10495  //
 10496  //
 10497  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 10498  //
 10499  //                         All Rights Reserved
 10500  //
 10501  // Permission to use, copy, modify, and distribute this software and its
 10502  // documentation for any purpose and without fee is hereby granted,
 10503  // provided that the above copyright notice appear in all copies and that
 10504  // both that copyright notice and this permission notice appear in
 10505  // supporting documentation, and that the name of Digital not be
 10506  // used in advertising or publicity pertaining to distribution of the
 10507  // software without specific, written prior permission.
 10508  //
 10509  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 10510  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 10511  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 10512  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 10513  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 10514  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 10515  // SOFTWARE.
 10516  //
 10517  // *****************************************************************
 10518  
 10519  //
 10520  //
 10521  // Copyright 1989, 1991, 1998  The Open Group
 10522  //
 10523  // Permission to use, copy, modify, distribute, and sell this software and its
 10524  // documentation for any purpose is hereby granted without fee, provided that
 10525  // the above copyright notice appear in all copies and that both that
 10526  // copyright notice and this permission notice appear in supporting
 10527  // documentation.
 10528  //
 10529  // The above copyright notice and this permission notice shall be included in
 10530  // all copies or substantial portions of the Software.
 10531  //
 10532  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 10533  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 10534  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 10535  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 10536  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 10537  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 10538  //
 10539  // Except as contained in this notice, the name of The Open Group shall not be
 10540  // used in advertising or otherwise to promote the sale, use or other dealings
 10541  // in this Software without prior written authorization from The Open Group.
 10542  //  *
 10543  //
 10544  
 10545  // Definitions to make function prototypes manageable
 10546  
 10547  // Function prototype configuration (see configure for more info)
 10548  
 10549  // http://clang.llvm.org/docs/LanguageExtensions.html#has-attribute
 10550  
 10551  // Added in X11R6.9, so available in any version of modular xproto
 10552  
 10553  // Added in X11R6.9, so available in any version of modular xproto
 10554  
 10555  // Branch prediction hints for individual conditionals
 10556  // requires xproto >= 7.0.9
 10557  
 10558  // Bulk branch prediction hints via marking error path functions as "cold"
 10559  // requires xproto >= 7.0.25
 10560  
 10561  // Added in X11R6.9, so available in any version of modular xproto
 10562  
 10563  // requires xproto >= 7.0.30
 10564  
 10565  // requires xproto >= 7.0.17
 10566  
 10567  // Added in X11R6.9, so available in any version of modular xproto
 10568  
 10569  // requires xproto >= 7.0.22 - since this uses either gcc or C99 variable
 10570  //    argument macros, must be only used inside #ifdef _X_NONNULL guards, as
 10571  //    many legacy X clients are compiled in C89 mode still.
 10572  
 10573  // requires xproto >= 7.0.22
 10574  
 10575  // C99 keyword "inline" or equivalent extensions in pre-C99 compilers
 10576  // requires xproto >= 7.0.9
 10577  //    (introduced in 7.0.8 but didn't support all compilers until 7.0.9)
 10578  
 10579  // C99 keyword "restrict" or equivalent extensions in pre-C99 compilers
 10580  // requires xproto >= 7.0.21
 10581  
 10582  // requires xproto >= 7.0.30
 10583  
 10584  // Mark a char array/pointer as not containing a NUL-terminated string
 10585  // requires xproto >= 7.0.33
 10586  
 10587  // IANA has assigned FF0X:0:0:0:0:0:0:12B as the permanently assigned
 10588  // multicast addresses for XDMCP, where X in the prefix may be replaced
 10589  // by any valid scope identifier, such as 1 for Node-Local, 2 for Link-Local,
 10590  // 5 for Site-Local, and so on.  We set the default here to the Link-Local
 10591  // version to most closely match the old IPv4 subnet broadcast behavior.
 10592  // Both xdm and X -query allow specifying a different address if a different
 10593  // scope is defined.
 10594  
 10595  type XdmOpCode = uint32 /* Xdmcp.h:50:3 */
 10596  
 10597  type Xdmcp_states = uint32 /* Xdmcp.h:62:3 */
 10598  
 10599  type CARD8Ptr = uintptr  /* Xdmcp.h:76:15 */
 10600  type CARD16Ptr = uintptr /* Xdmcp.h:77:16 */
 10601  type CARD32Ptr = uintptr /* Xdmcp.h:78:16 */
 10602  
 10603  type X_ARRAY8 = struct {
 10604  	Flength      CARD16
 10605  	F__ccgo_pad1 [6]byte
 10606  	Fdata        CARD8Ptr
 10607  } /* Xdmcp.h:80:9 */
 10608  
 10609  type ARRAY8 = X_ARRAY8   /* Xdmcp.h:83:3 */
 10610  type ARRAY8Ptr = uintptr /* Xdmcp.h:83:11 */
 10611  
 10612  type X_ARRAY16 = struct {
 10613  	Flength      CARD8
 10614  	F__ccgo_pad1 [7]byte
 10615  	Fdata        CARD16Ptr
 10616  } /* Xdmcp.h:85:9 */
 10617  
 10618  type ARRAY16 = X_ARRAY16  /* Xdmcp.h:88:3 */
 10619  type ARRAY16Ptr = uintptr /* Xdmcp.h:88:12 */
 10620  
 10621  type X_ARRAY32 = struct {
 10622  	Flength      CARD8
 10623  	F__ccgo_pad1 [7]byte
 10624  	Fdata        CARD32Ptr
 10625  } /* Xdmcp.h:90:9 */
 10626  
 10627  type ARRAY32 = X_ARRAY32  /* Xdmcp.h:93:3 */
 10628  type ARRAY32Ptr = uintptr /* Xdmcp.h:93:12 */
 10629  
 10630  type X_ARRAYofARRAY8 = struct {
 10631  	Flength      CARD8
 10632  	F__ccgo_pad1 [7]byte
 10633  	Fdata        ARRAY8Ptr
 10634  } /* Xdmcp.h:95:9 */
 10635  
 10636  type ARRAYofARRAY8 = X_ARRAYofARRAY8 /* Xdmcp.h:98:3 */
 10637  type ARRAYofARRAY8Ptr = uintptr      /* Xdmcp.h:98:18 */
 10638  
 10639  type X_XdmcpHeader = struct {
 10640  	Fversion CARD16
 10641  	Fopcode  CARD16
 10642  	Flength  CARD16
 10643  } /* Xdmcp.h:100:9 */
 10644  
 10645  type XdmcpHeader = X_XdmcpHeader /* Xdmcp.h:102:3 */
 10646  type XdmcpHeaderPtr = uintptr    /* Xdmcp.h:102:16 */
 10647  
 10648  type X_XdmcpBuffer = struct {
 10649  	Fdata        uintptr
 10650  	Fsize        int32
 10651  	Fpointer     int32
 10652  	Fcount       int32
 10653  	F__ccgo_pad1 [4]byte
 10654  } /* Xdmcp.h:104:9 */
 10655  
 10656  type XdmcpBuffer = X_XdmcpBuffer /* Xdmcp.h:109:3 */
 10657  type XdmcpBufferPtr = uintptr    /* Xdmcp.h:109:16 */
 10658  
 10659  type X_XdmAuthKey = struct{ Fdata [8]BYTE } /* Xdmcp.h:111:9 */
 10660  
 10661  type XdmAuthKeyRec = X_XdmAuthKey /* Xdmcp.h:113:3 */
 10662  type XdmAuthKeyPtr = uintptr      /* Xdmcp.h:113:18 */
 10663  
 10664  // implementation-independent network address structure.
 10665  //    Equiv to sockaddr* for sockets.
 10666  
 10667  type XdmcpNetaddr = uintptr /* Xdmcp.h:119:14 */
 10668  
 10669  // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved.
 10670  //
 10671  // @APPLE_LICENSE_HEADER_START@
 10672  //
 10673  // This file contains Original Code and/or Modifications of Original Code
 10674  // as defined in and that are subject to the Apple Public Source License
 10675  // Version 2.0 (the 'License'). You may not use this file except in
 10676  // compliance with the License. Please obtain a copy of the License at
 10677  // http://www.opensource.apple.com/apsl/ and read it before using this
 10678  // file.
 10679  //
 10680  // The Original Code and all software distributed under the License are
 10681  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10682  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10683  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10684  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10685  // Please see the License for the specific language governing rights and
 10686  // limitations under the License.
 10687  //
 10688  // @APPLE_LICENSE_HEADER_END@
 10689  // -
 10690  // Copyright (c) 1990, 1993
 10691  //	The Regents of the University of California.  All rights reserved.
 10692  //
 10693  // Redistribution and use in source and binary forms, with or without
 10694  // modification, are permitted provided that the following conditions
 10695  // are met:
 10696  // 1. Redistributions of source code must retain the above copyright
 10697  //    notice, this list of conditions and the following disclaimer.
 10698  // 2. Redistributions in binary form must reproduce the above copyright
 10699  //    notice, this list of conditions and the following disclaimer in the
 10700  //    documentation and/or other materials provided with the distribution.
 10701  // 3. All advertising materials mentioning features or use of this software
 10702  //    must display the following acknowledgement:
 10703  //	This product includes software developed by the University of
 10704  //	California, Berkeley and its contributors.
 10705  // 4. Neither the name of the University nor the names of its contributors
 10706  //    may be used to endorse or promote products derived from this software
 10707  //    without specific prior written permission.
 10708  //
 10709  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 10710  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 10711  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 10712  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 10713  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 10714  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 10715  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 10716  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 10717  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 10718  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 10719  // SUCH DAMAGE.
 10720  //
 10721  //	@(#)stdlib.h	8.5 (Berkeley) 5/19/95
 10722  
 10723  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
 10724  //
 10725  // @APPLE_LICENSE_HEADER_START@
 10726  //
 10727  // This file contains Original Code and/or Modifications of Original Code
 10728  // as defined in and that are subject to the Apple Public Source License
 10729  // Version 2.0 (the 'License'). You may not use this file except in
 10730  // compliance with the License. Please obtain a copy of the License at
 10731  // http://www.opensource.apple.com/apsl/ and read it before using this
 10732  // file.
 10733  //
 10734  // The Original Code and all software distributed under the License are
 10735  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10736  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10737  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10738  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10739  // Please see the License for the specific language governing rights and
 10740  // limitations under the License.
 10741  //
 10742  // @APPLE_LICENSE_HEADER_END@
 10743  
 10744  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 10745  //
 10746  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10747  //
 10748  // This file contains Original Code and/or Modifications of Original Code
 10749  // as defined in and that are subject to the Apple Public Source License
 10750  // Version 2.0 (the 'License'). You may not use this file except in
 10751  // compliance with the License. The rights granted to you under the License
 10752  // may not be used to create, or enable the creation or redistribution of,
 10753  // unlawful or unlicensed copies of an Apple operating system, or to
 10754  // circumvent, violate, or enable the circumvention or violation of, any
 10755  // terms of an Apple operating system software license agreement.
 10756  //
 10757  // Please obtain a copy of the License at
 10758  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10759  //
 10760  // The Original Code and all software distributed under the License are
 10761  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10762  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10763  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10764  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10765  // Please see the License for the specific language governing rights and
 10766  // limitations under the License.
 10767  //
 10768  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10769  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 10770  // Copyright (c) 1991, 1993
 10771  //	The Regents of the University of California.  All rights reserved.
 10772  //
 10773  // This code is derived from software contributed to Berkeley by
 10774  // Berkeley Software Design, Inc.
 10775  //
 10776  // Redistribution and use in source and binary forms, with or without
 10777  // modification, are permitted provided that the following conditions
 10778  // are met:
 10779  // 1. Redistributions of source code must retain the above copyright
 10780  //    notice, this list of conditions and the following disclaimer.
 10781  // 2. Redistributions in binary form must reproduce the above copyright
 10782  //    notice, this list of conditions and the following disclaimer in the
 10783  //    documentation and/or other materials provided with the distribution.
 10784  // 3. All advertising materials mentioning features or use of this software
 10785  //    must display the following acknowledgement:
 10786  //	This product includes software developed by the University of
 10787  //	California, Berkeley and its contributors.
 10788  // 4. Neither the name of the University nor the names of its contributors
 10789  //    may be used to endorse or promote products derived from this software
 10790  //    without specific prior written permission.
 10791  //
 10792  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 10793  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 10794  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 10795  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 10796  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 10797  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 10798  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 10799  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 10800  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 10801  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 10802  // SUCH DAMAGE.
 10803  //
 10804  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 10805  
 10806  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
 10807  //
 10808  // @APPLE_LICENSE_HEADER_START@
 10809  //
 10810  // This file contains Original Code and/or Modifications of Original Code
 10811  // as defined in and that are subject to the Apple Public Source License
 10812  // Version 2.0 (the 'License'). You may not use this file except in
 10813  // compliance with the License. Please obtain a copy of the License at
 10814  // http://www.opensource.apple.com/apsl/ and read it before using this
 10815  // file.
 10816  //
 10817  // The Original Code and all software distributed under the License are
 10818  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10819  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10820  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10821  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10822  // Please see the License for the specific language governing rights and
 10823  // limitations under the License.
 10824  //
 10825  // @APPLE_LICENSE_HEADER_END@
 10826  
 10827  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
 10828  //
 10829  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10830  //
 10831  // This file contains Original Code and/or Modifications of Original Code
 10832  // as defined in and that are subject to the Apple Public Source License
 10833  // Version 2.0 (the 'License'). You may not use this file except in
 10834  // compliance with the License. The rights granted to you under the License
 10835  // may not be used to create, or enable the creation or redistribution of,
 10836  // unlawful or unlicensed copies of an Apple operating system, or to
 10837  // circumvent, violate, or enable the circumvention or violation of, any
 10838  // terms of an Apple operating system software license agreement.
 10839  //
 10840  // Please obtain a copy of the License at
 10841  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10842  //
 10843  // The Original Code and all software distributed under the License are
 10844  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10845  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10846  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10847  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10848  // Please see the License for the specific language governing rights and
 10849  // limitations under the License.
 10850  //
 10851  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10852  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
 10853  // Copyright (c) 1982, 1986, 1989, 1993, 1994
 10854  //	The Regents of the University of California.  All rights reserved.
 10855  //
 10856  // Redistribution and use in source and binary forms, with or without
 10857  // modification, are permitted provided that the following conditions
 10858  // are met:
 10859  // 1. Redistributions of source code must retain the above copyright
 10860  //    notice, this list of conditions and the following disclaimer.
 10861  // 2. Redistributions in binary form must reproduce the above copyright
 10862  //    notice, this list of conditions and the following disclaimer in the
 10863  //    documentation and/or other materials provided with the distribution.
 10864  // 3. All advertising materials mentioning features or use of this software
 10865  //    must display the following acknowledgement:
 10866  //	This product includes software developed by the University of
 10867  //	California, Berkeley and its contributors.
 10868  // 4. Neither the name of the University nor the names of its contributors
 10869  //    may be used to endorse or promote products derived from this software
 10870  //    without specific prior written permission.
 10871  //
 10872  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 10873  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 10874  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 10875  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 10876  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 10877  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 10878  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 10879  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 10880  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 10881  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 10882  // SUCH DAMAGE.
 10883  //
 10884  //	@(#)wait.h	8.2 (Berkeley) 7/10/94
 10885  
 10886  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 10887  //
 10888  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10889  //
 10890  // This file contains Original Code and/or Modifications of Original Code
 10891  // as defined in and that are subject to the Apple Public Source License
 10892  // Version 2.0 (the 'License'). You may not use this file except in
 10893  // compliance with the License. The rights granted to you under the License
 10894  // may not be used to create, or enable the creation or redistribution of,
 10895  // unlawful or unlicensed copies of an Apple operating system, or to
 10896  // circumvent, violate, or enable the circumvention or violation of, any
 10897  // terms of an Apple operating system software license agreement.
 10898  //
 10899  // Please obtain a copy of the License at
 10900  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10901  //
 10902  // The Original Code and all software distributed under the License are
 10903  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10904  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10905  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10906  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10907  // Please see the License for the specific language governing rights and
 10908  // limitations under the License.
 10909  //
 10910  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10911  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 10912  // Copyright (c) 1991, 1993
 10913  //	The Regents of the University of California.  All rights reserved.
 10914  //
 10915  // This code is derived from software contributed to Berkeley by
 10916  // Berkeley Software Design, Inc.
 10917  //
 10918  // Redistribution and use in source and binary forms, with or without
 10919  // modification, are permitted provided that the following conditions
 10920  // are met:
 10921  // 1. Redistributions of source code must retain the above copyright
 10922  //    notice, this list of conditions and the following disclaimer.
 10923  // 2. Redistributions in binary form must reproduce the above copyright
 10924  //    notice, this list of conditions and the following disclaimer in the
 10925  //    documentation and/or other materials provided with the distribution.
 10926  // 3. All advertising materials mentioning features or use of this software
 10927  //    must display the following acknowledgement:
 10928  //	This product includes software developed by the University of
 10929  //	California, Berkeley and its contributors.
 10930  // 4. Neither the name of the University nor the names of its contributors
 10931  //    may be used to endorse or promote products derived from this software
 10932  //    without specific prior written permission.
 10933  //
 10934  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 10935  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 10936  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 10937  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 10938  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 10939  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 10940  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 10941  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 10942  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 10943  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 10944  // SUCH DAMAGE.
 10945  //
 10946  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 10947  
 10948  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 10949  //
 10950  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10951  //
 10952  // This file contains Original Code and/or Modifications of Original Code
 10953  // as defined in and that are subject to the Apple Public Source License
 10954  // Version 2.0 (the 'License'). You may not use this file except in
 10955  // compliance with the License. The rights granted to you under the License
 10956  // may not be used to create, or enable the creation or redistribution of,
 10957  // unlawful or unlicensed copies of an Apple operating system, or to
 10958  // circumvent, violate, or enable the circumvention or violation of, any
 10959  // terms of an Apple operating system software license agreement.
 10960  //
 10961  // Please obtain a copy of the License at
 10962  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10963  //
 10964  // The Original Code and all software distributed under the License are
 10965  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 10966  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 10967  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 10968  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 10969  // Please see the License for the specific language governing rights and
 10970  // limitations under the License.
 10971  //
 10972  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 10973  
 10974  // This file holds definitions relevent to the wait4 system call
 10975  // and the alternate interfaces that use it (wait, wait3, waitpid).
 10976  
 10977  // [XSI] The type idtype_t shall be defined as an enumeration type whose
 10978  // possible values shall include at least P_ALL, P_PID, and P_PGID.
 10979  type Idtype_t = uint32 /* wait.h:83:3 */
 10980  
 10981  // [XSI] The id_t and pid_t types shall be defined as described
 10982  // in <sys/types.h>
 10983  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 10984  //
 10985  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 10986  //
 10987  // This file contains Original Code and/or Modifications of Original Code
 10988  // as defined in and that are subject to the Apple Public Source License
 10989  // Version 2.0 (the 'License'). You may not use this file except in
 10990  // compliance with the License. The rights granted to you under the License
 10991  // may not be used to create, or enable the creation or redistribution of,
 10992  // unlawful or unlicensed copies of an Apple operating system, or to
 10993  // circumvent, violate, or enable the circumvention or violation of, any
 10994  // terms of an Apple operating system software license agreement.
 10995  //
 10996  // Please obtain a copy of the License at
 10997  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 10998  //
 10999  // The Original Code and all software distributed under the License are
 11000  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11001  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11002  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11003  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11004  // Please see the License for the specific language governing rights and
 11005  // limitations under the License.
 11006  //
 11007  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11008  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11009  //
 11010  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11011  //
 11012  // This file contains Original Code and/or Modifications of Original Code
 11013  // as defined in and that are subject to the Apple Public Source License
 11014  // Version 2.0 (the 'License'). You may not use this file except in
 11015  // compliance with the License. The rights granted to you under the License
 11016  // may not be used to create, or enable the creation or redistribution of,
 11017  // unlawful or unlicensed copies of an Apple operating system, or to
 11018  // circumvent, violate, or enable the circumvention or violation of, any
 11019  // terms of an Apple operating system software license agreement.
 11020  //
 11021  // Please obtain a copy of the License at
 11022  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11023  //
 11024  // The Original Code and all software distributed under the License are
 11025  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11026  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11027  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11028  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11029  // Please see the License for the specific language governing rights and
 11030  // limitations under the License.
 11031  //
 11032  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11033  
 11034  // [XSI] The siginfo_t type shall be defined as described in <signal.h>
 11035  // [XSI] The rusage structure shall be defined as described in <sys/resource.h>
 11036  // [XSI] Inclusion of the <sys/wait.h> header may also make visible all
 11037  // symbols from <signal.h> and <sys/resource.h>
 11038  //
 11039  // NOTE:	This requirement is currently being satisfied by the direct
 11040  //		inclusion of <sys/signal.h> and <sys/resource.h>, below.
 11041  //
 11042  //		Software should not depend on the exposure of anything other
 11043  //		than the types siginfo_t and struct rusage as a result of
 11044  //		this inclusion.  If you depend on any types or manifest
 11045  //		values othe than siginfo_t and struct rusage from either of
 11046  //		those files, you should explicitly include them yourself, as
 11047  //		well, or in future releases your stware may not compile
 11048  //		without modification.
 11049  // Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
 11050  //
 11051  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11052  //
 11053  // This file contains Original Code and/or Modifications of Original Code
 11054  // as defined in and that are subject to the Apple Public Source License
 11055  // Version 2.0 (the 'License'). You may not use this file except in
 11056  // compliance with the License. The rights granted to you under the License
 11057  // may not be used to create, or enable the creation or redistribution of,
 11058  // unlawful or unlicensed copies of an Apple operating system, or to
 11059  // circumvent, violate, or enable the circumvention or violation of, any
 11060  // terms of an Apple operating system software license agreement.
 11061  //
 11062  // Please obtain a copy of the License at
 11063  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11064  //
 11065  // The Original Code and all software distributed under the License are
 11066  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11067  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11068  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11069  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11070  // Please see the License for the specific language governing rights and
 11071  // limitations under the License.
 11072  //
 11073  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11074  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
 11075  // Copyright (c) 1982, 1986, 1989, 1991, 1993
 11076  //	The Regents of the University of California.  All rights reserved.
 11077  // (c) UNIX System Laboratories, Inc.
 11078  // All or some portions of this file are derived from material licensed
 11079  // to the University of California by American Telephone and Telegraph
 11080  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
 11081  // the permission of UNIX System Laboratories, Inc.
 11082  //
 11083  // Redistribution and use in source and binary forms, with or without
 11084  // modification, are permitted provided that the following conditions
 11085  // are met:
 11086  // 1. Redistributions of source code must retain the above copyright
 11087  //    notice, this list of conditions and the following disclaimer.
 11088  // 2. Redistributions in binary form must reproduce the above copyright
 11089  //    notice, this list of conditions and the following disclaimer in the
 11090  //    documentation and/or other materials provided with the distribution.
 11091  // 3. All advertising materials mentioning features or use of this software
 11092  //    must display the following acknowledgement:
 11093  //	This product includes software developed by the University of
 11094  //	California, Berkeley and its contributors.
 11095  // 4. Neither the name of the University nor the names of its contributors
 11096  //    may be used to endorse or promote products derived from this software
 11097  //    without specific prior written permission.
 11098  //
 11099  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 11100  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 11101  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 11102  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 11103  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 11104  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 11105  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 11106  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 11107  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 11108  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 11109  // SUCH DAMAGE.
 11110  //
 11111  //	@(#)signal.h	8.2 (Berkeley) 1/21/94
 11112  
 11113  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 11114  //
 11115  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11116  //
 11117  // This file contains Original Code and/or Modifications of Original Code
 11118  // as defined in and that are subject to the Apple Public Source License
 11119  // Version 2.0 (the 'License'). You may not use this file except in
 11120  // compliance with the License. The rights granted to you under the License
 11121  // may not be used to create, or enable the creation or redistribution of,
 11122  // unlawful or unlicensed copies of an Apple operating system, or to
 11123  // circumvent, violate, or enable the circumvention or violation of, any
 11124  // terms of an Apple operating system software license agreement.
 11125  //
 11126  // Please obtain a copy of the License at
 11127  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11128  //
 11129  // The Original Code and all software distributed under the License are
 11130  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11131  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11132  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11133  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11134  // Please see the License for the specific language governing rights and
 11135  // limitations under the License.
 11136  //
 11137  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11138  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 11139  // Copyright (c) 1991, 1993
 11140  //	The Regents of the University of California.  All rights reserved.
 11141  //
 11142  // This code is derived from software contributed to Berkeley by
 11143  // Berkeley Software Design, Inc.
 11144  //
 11145  // Redistribution and use in source and binary forms, with or without
 11146  // modification, are permitted provided that the following conditions
 11147  // are met:
 11148  // 1. Redistributions of source code must retain the above copyright
 11149  //    notice, this list of conditions and the following disclaimer.
 11150  // 2. Redistributions in binary form must reproduce the above copyright
 11151  //    notice, this list of conditions and the following disclaimer in the
 11152  //    documentation and/or other materials provided with the distribution.
 11153  // 3. All advertising materials mentioning features or use of this software
 11154  //    must display the following acknowledgement:
 11155  //	This product includes software developed by the University of
 11156  //	California, Berkeley and its contributors.
 11157  // 4. Neither the name of the University nor the names of its contributors
 11158  //    may be used to endorse or promote products derived from this software
 11159  //    without specific prior written permission.
 11160  //
 11161  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 11162  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 11163  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 11164  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 11165  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 11166  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 11167  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 11168  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 11169  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 11170  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 11171  // SUCH DAMAGE.
 11172  //
 11173  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 11174  
 11175  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
 11176  //
 11177  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11178  //
 11179  // This file contains Original Code and/or Modifications of Original Code
 11180  // as defined in and that are subject to the Apple Public Source License
 11181  // Version 2.0 (the 'License'). You may not use this file except in
 11182  // compliance with the License. The rights granted to you under the License
 11183  // may not be used to create, or enable the creation or redistribution of,
 11184  // unlawful or unlicensed copies of an Apple operating system, or to
 11185  // circumvent, violate, or enable the circumvention or violation of, any
 11186  // terms of an Apple operating system software license agreement.
 11187  //
 11188  // Please obtain a copy of the License at
 11189  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11190  //
 11191  // The Original Code and all software distributed under the License are
 11192  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11193  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11194  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11195  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11196  // Please see the License for the specific language governing rights and
 11197  // limitations under the License.
 11198  //
 11199  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11200  
 11201  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
 11202  //
 11203  // @APPLE_LICENSE_HEADER_START@
 11204  //
 11205  // This file contains Original Code and/or Modifications of Original Code
 11206  // as defined in and that are subject to the Apple Public Source License
 11207  // Version 2.0 (the 'License'). You may not use this file except in
 11208  // compliance with the License. Please obtain a copy of the License at
 11209  // http://www.opensource.apple.com/apsl/ and read it before using this
 11210  // file.
 11211  //
 11212  // The Original Code and all software distributed under the License are
 11213  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11214  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11215  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11216  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11217  // Please see the License for the specific language governing rights and
 11218  // limitations under the License.
 11219  //
 11220  // @APPLE_LICENSE_HEADER_END@
 11221  
 11222  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 11223  //
 11224  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11225  //
 11226  // This file contains Original Code and/or Modifications of Original Code
 11227  // as defined in and that are subject to the Apple Public Source License
 11228  // Version 2.0 (the 'License'). You may not use this file except in
 11229  // compliance with the License. The rights granted to you under the License
 11230  // may not be used to create, or enable the creation or redistribution of,
 11231  // unlawful or unlicensed copies of an Apple operating system, or to
 11232  // circumvent, violate, or enable the circumvention or violation of, any
 11233  // terms of an Apple operating system software license agreement.
 11234  //
 11235  // Please obtain a copy of the License at
 11236  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11237  //
 11238  // The Original Code and all software distributed under the License are
 11239  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11240  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11241  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11242  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11243  // Please see the License for the specific language governing rights and
 11244  // limitations under the License.
 11245  //
 11246  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11247  
 11248  // Copyright (c) 2000-2009 Apple, Inc. All rights reserved.
 11249  // Copyright (c) 1992 NeXT Computer, Inc.
 11250  //
 11251  
 11252  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 11253  //
 11254  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11255  //
 11256  // This file contains Original Code and/or Modifications of Original Code
 11257  // as defined in and that are subject to the Apple Public Source License
 11258  // Version 2.0 (the 'License'). You may not use this file except in
 11259  // compliance with the License. The rights granted to you under the License
 11260  // may not be used to create, or enable the creation or redistribution of,
 11261  // unlawful or unlicensed copies of an Apple operating system, or to
 11262  // circumvent, violate, or enable the circumvention or violation of, any
 11263  // terms of an Apple operating system software license agreement.
 11264  //
 11265  // Please obtain a copy of the License at
 11266  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11267  //
 11268  // The Original Code and all software distributed under the License are
 11269  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11270  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11271  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11272  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11273  // Please see the License for the specific language governing rights and
 11274  // limitations under the License.
 11275  //
 11276  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11277  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 11278  // Copyright (c) 1991, 1993
 11279  //	The Regents of the University of California.  All rights reserved.
 11280  //
 11281  // This code is derived from software contributed to Berkeley by
 11282  // Berkeley Software Design, Inc.
 11283  //
 11284  // Redistribution and use in source and binary forms, with or without
 11285  // modification, are permitted provided that the following conditions
 11286  // are met:
 11287  // 1. Redistributions of source code must retain the above copyright
 11288  //    notice, this list of conditions and the following disclaimer.
 11289  // 2. Redistributions in binary form must reproduce the above copyright
 11290  //    notice, this list of conditions and the following disclaimer in the
 11291  //    documentation and/or other materials provided with the distribution.
 11292  // 3. All advertising materials mentioning features or use of this software
 11293  //    must display the following acknowledgement:
 11294  //	This product includes software developed by the University of
 11295  //	California, Berkeley and its contributors.
 11296  // 4. Neither the name of the University nor the names of its contributors
 11297  //    may be used to endorse or promote products derived from this software
 11298  //    without specific prior written permission.
 11299  //
 11300  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 11301  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 11302  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 11303  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 11304  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 11305  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 11306  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 11307  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 11308  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 11309  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 11310  // SUCH DAMAGE.
 11311  //
 11312  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 11313  
 11314  type Sig_atomic_t = int32 /* signal.h:17:13 */
 11315  
 11316  // Language spec sez we must list exactly one parameter, even though we
 11317  // actually supply three.  Ugh!
 11318  // SIG_HOLD is chosen to avoid KERN_SIG_* values in <sys/signalvar.h>
 11319  
 11320  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 11321  //
 11322  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11323  //
 11324  // This file contains Original Code and/or Modifications of Original Code
 11325  // as defined in and that are subject to the Apple Public Source License
 11326  // Version 2.0 (the 'License'). You may not use this file except in
 11327  // compliance with the License. The rights granted to you under the License
 11328  // may not be used to create, or enable the creation or redistribution of,
 11329  // unlawful or unlicensed copies of an Apple operating system, or to
 11330  // circumvent, violate, or enable the circumvention or violation of, any
 11331  // terms of an Apple operating system software license agreement.
 11332  //
 11333  // Please obtain a copy of the License at
 11334  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11335  //
 11336  // The Original Code and all software distributed under the License are
 11337  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11338  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11339  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11340  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11341  // Please see the License for the specific language governing rights and
 11342  // limitations under the License.
 11343  //
 11344  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11345  
 11346  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11347  //
 11348  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11349  //
 11350  // This file contains Original Code and/or Modifications of Original Code
 11351  // as defined in and that are subject to the Apple Public Source License
 11352  // Version 2.0 (the 'License'). You may not use this file except in
 11353  // compliance with the License. The rights granted to you under the License
 11354  // may not be used to create, or enable the creation or redistribution of,
 11355  // unlawful or unlicensed copies of an Apple operating system, or to
 11356  // circumvent, violate, or enable the circumvention or violation of, any
 11357  // terms of an Apple operating system software license agreement.
 11358  //
 11359  // Please obtain a copy of the License at
 11360  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11361  //
 11362  // The Original Code and all software distributed under the License are
 11363  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11364  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11365  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11366  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11367  // Please see the License for the specific language governing rights and
 11368  // limitations under the License.
 11369  //
 11370  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11371  
 11372  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11373  //
 11374  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11375  //
 11376  // This file contains Original Code and/or Modifications of Original Code
 11377  // as defined in and that are subject to the Apple Public Source License
 11378  // Version 2.0 (the 'License'). You may not use this file except in
 11379  // compliance with the License. The rights granted to you under the License
 11380  // may not be used to create, or enable the creation or redistribution of,
 11381  // unlawful or unlicensed copies of an Apple operating system, or to
 11382  // circumvent, violate, or enable the circumvention or violation of, any
 11383  // terms of an Apple operating system software license agreement.
 11384  //
 11385  // Please obtain a copy of the License at
 11386  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11387  //
 11388  // The Original Code and all software distributed under the License are
 11389  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11390  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11391  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11392  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11393  // Please see the License for the specific language governing rights and
 11394  // limitations under the License.
 11395  //
 11396  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11397  
 11398  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 11399  //
 11400  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11401  //
 11402  // This file contains Original Code and/or Modifications of Original Code
 11403  // as defined in and that are subject to the Apple Public Source License
 11404  // Version 2.0 (the 'License'). You may not use this file except in
 11405  // compliance with the License. The rights granted to you under the License
 11406  // may not be used to create, or enable the creation or redistribution of,
 11407  // unlawful or unlicensed copies of an Apple operating system, or to
 11408  // circumvent, violate, or enable the circumvention or violation of, any
 11409  // terms of an Apple operating system software license agreement.
 11410  //
 11411  // Please obtain a copy of the License at
 11412  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11413  //
 11414  // The Original Code and all software distributed under the License are
 11415  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11416  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11417  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11418  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11419  // Please see the License for the specific language governing rights and
 11420  // limitations under the License.
 11421  //
 11422  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11423  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 11424  // Copyright (c) 1991, 1993
 11425  //	The Regents of the University of California.  All rights reserved.
 11426  //
 11427  // This code is derived from software contributed to Berkeley by
 11428  // Berkeley Software Design, Inc.
 11429  //
 11430  // Redistribution and use in source and binary forms, with or without
 11431  // modification, are permitted provided that the following conditions
 11432  // are met:
 11433  // 1. Redistributions of source code must retain the above copyright
 11434  //    notice, this list of conditions and the following disclaimer.
 11435  // 2. Redistributions in binary form must reproduce the above copyright
 11436  //    notice, this list of conditions and the following disclaimer in the
 11437  //    documentation and/or other materials provided with the distribution.
 11438  // 3. All advertising materials mentioning features or use of this software
 11439  //    must display the following acknowledgement:
 11440  //	This product includes software developed by the University of
 11441  //	California, Berkeley and its contributors.
 11442  // 4. Neither the name of the University nor the names of its contributors
 11443  //    may be used to endorse or promote products derived from this software
 11444  //    without specific prior written permission.
 11445  //
 11446  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 11447  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 11448  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 11449  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 11450  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 11451  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 11452  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 11453  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 11454  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 11455  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 11456  // SUCH DAMAGE.
 11457  //
 11458  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 11459  
 11460  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
 11461  //
 11462  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11463  //
 11464  // This file contains Original Code and/or Modifications of Original Code
 11465  // as defined in and that are subject to the Apple Public Source License
 11466  // Version 2.0 (the 'License'). You may not use this file except in
 11467  // compliance with the License. The rights granted to you under the License
 11468  // may not be used to create, or enable the creation or redistribution of,
 11469  // unlawful or unlicensed copies of an Apple operating system, or to
 11470  // circumvent, violate, or enable the circumvention or violation of, any
 11471  // terms of an Apple operating system software license agreement.
 11472  //
 11473  // Please obtain a copy of the License at
 11474  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11475  //
 11476  // The Original Code and all software distributed under the License are
 11477  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11478  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11479  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11480  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11481  // Please see the License for the specific language governing rights and
 11482  // limitations under the License.
 11483  //
 11484  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11485  
 11486  // Copyright (c) 2017 Apple Inc. All rights reserved.
 11487  //
 11488  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11489  //
 11490  // This file contains Original Code and/or Modifications of Original Code
 11491  // as defined in and that are subject to the Apple Public Source License
 11492  // Version 2.0 (the 'License'). You may not use this file except in
 11493  // compliance with the License. The rights granted to you under the License
 11494  // may not be used to create, or enable the creation or redistribution of,
 11495  // unlawful or unlicensed copies of an Apple operating system, or to
 11496  // circumvent, violate, or enable the circumvention or violation of, any
 11497  // terms of an Apple operating system software license agreement.
 11498  //
 11499  // Please obtain a copy of the License at
 11500  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11501  //
 11502  // The Original Code and all software distributed under the License are
 11503  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11504  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11505  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11506  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11507  // Please see the License for the specific language governing rights and
 11508  // limitations under the License.
 11509  //
 11510  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11511  
 11512  // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
 11513  //
 11514  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11515  //
 11516  // This file contains Original Code and/or Modifications of Original Code
 11517  // as defined in and that are subject to the Apple Public Source License
 11518  // Version 2.0 (the 'License'). You may not use this file except in
 11519  // compliance with the License. The rights granted to you under the License
 11520  // may not be used to create, or enable the creation or redistribution of,
 11521  // unlawful or unlicensed copies of an Apple operating system, or to
 11522  // circumvent, violate, or enable the circumvention or violation of, any
 11523  // terms of an Apple operating system software license agreement.
 11524  //
 11525  // Please obtain a copy of the License at
 11526  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11527  //
 11528  // The Original Code and all software distributed under the License are
 11529  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11530  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11531  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11532  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11533  // Please see the License for the specific language governing rights and
 11534  // limitations under the License.
 11535  //
 11536  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11537  // @OSF_COPYRIGHT@
 11538  
 11539  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 11540  //
 11541  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11542  //
 11543  // This file contains Original Code and/or Modifications of Original Code
 11544  // as defined in and that are subject to the Apple Public Source License
 11545  // Version 2.0 (the 'License'). You may not use this file except in
 11546  // compliance with the License. The rights granted to you under the License
 11547  // may not be used to create, or enable the creation or redistribution of,
 11548  // unlawful or unlicensed copies of an Apple operating system, or to
 11549  // circumvent, violate, or enable the circumvention or violation of, any
 11550  // terms of an Apple operating system software license agreement.
 11551  //
 11552  // Please obtain a copy of the License at
 11553  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11554  //
 11555  // The Original Code and all software distributed under the License are
 11556  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11557  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11558  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11559  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11560  // Please see the License for the specific language governing rights and
 11561  // limitations under the License.
 11562  //
 11563  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11564  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 11565  // Copyright (c) 1991, 1993
 11566  //	The Regents of the University of California.  All rights reserved.
 11567  //
 11568  // This code is derived from software contributed to Berkeley by
 11569  // Berkeley Software Design, Inc.
 11570  //
 11571  // Redistribution and use in source and binary forms, with or without
 11572  // modification, are permitted provided that the following conditions
 11573  // are met:
 11574  // 1. Redistributions of source code must retain the above copyright
 11575  //    notice, this list of conditions and the following disclaimer.
 11576  // 2. Redistributions in binary form must reproduce the above copyright
 11577  //    notice, this list of conditions and the following disclaimer in the
 11578  //    documentation and/or other materials provided with the distribution.
 11579  // 3. All advertising materials mentioning features or use of this software
 11580  //    must display the following acknowledgement:
 11581  //	This product includes software developed by the University of
 11582  //	California, Berkeley and its contributors.
 11583  // 4. Neither the name of the University nor the names of its contributors
 11584  //    may be used to endorse or promote products derived from this software
 11585  //    without specific prior written permission.
 11586  //
 11587  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 11588  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 11589  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 11590  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 11591  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 11592  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 11593  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 11594  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 11595  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 11596  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 11597  // SUCH DAMAGE.
 11598  //
 11599  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 11600  
 11601  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 11602  //
 11603  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11604  //
 11605  // This file contains Original Code and/or Modifications of Original Code
 11606  // as defined in and that are subject to the Apple Public Source License
 11607  // Version 2.0 (the 'License'). You may not use this file except in
 11608  // compliance with the License. The rights granted to you under the License
 11609  // may not be used to create, or enable the creation or redistribution of,
 11610  // unlawful or unlicensed copies of an Apple operating system, or to
 11611  // circumvent, violate, or enable the circumvention or violation of, any
 11612  // terms of an Apple operating system software license agreement.
 11613  //
 11614  // Please obtain a copy of the License at
 11615  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11616  //
 11617  // The Original Code and all software distributed under the License are
 11618  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11619  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11620  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11621  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11622  // Please see the License for the specific language governing rights and
 11623  // limitations under the License.
 11624  //
 11625  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11626  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 11627  
 11628  type X__darwin_arm_exception_state = struct {
 11629  	F__exception X__uint32_t
 11630  	F__fsr       X__uint32_t
 11631  	F__far       X__uint32_t
 11632  } /* _structs.h:41:1 */
 11633  
 11634  type X__darwin_arm_exception_state64 = struct {
 11635  	F__far       X__uint64_t
 11636  	F__esr       X__uint32_t
 11637  	F__exception X__uint32_t
 11638  } /* _structs.h:59:1 */
 11639  
 11640  type X__darwin_arm_thread_state = struct {
 11641  	F__r    [13]X__uint32_t
 11642  	F__sp   X__uint32_t
 11643  	F__lr   X__uint32_t
 11644  	F__pc   X__uint32_t
 11645  	F__cpsr X__uint32_t
 11646  } /* _structs.h:77:1 */
 11647  
 11648  // By default, the pointer fields in the arm_thread_state64_t structure are
 11649  // opaque on the arm64e architecture and require the use of accessor macros.
 11650  // This mode can also be enabled on the arm64 architecture by building with
 11651  // -D__DARWIN_OPAQUE_ARM_THREAD_STATE64=1.
 11652  
 11653  type X__darwin_arm_thread_state64 = struct {
 11654  	F__x    [29]X__uint64_t
 11655  	F__fp   X__uint64_t
 11656  	F__lr   X__uint64_t
 11657  	F__sp   X__uint64_t
 11658  	F__pc   X__uint64_t
 11659  	F__cpsr X__uint32_t
 11660  	F__pad  X__uint32_t
 11661  } /* _structs.h:136:1 */
 11662  
 11663  // Accessor macros for arm_thread_state64_t pointer fields
 11664  
 11665  // Return pc field of arm_thread_state64_t as a data pointer value
 11666  // Return pc field of arm_thread_state64_t as a function pointer
 11667  // Set pc field of arm_thread_state64_t to a function pointer
 11668  // Return lr field of arm_thread_state64_t as a data pointer value
 11669  // Return lr field of arm_thread_state64_t as a function pointer
 11670  // Set lr field of arm_thread_state64_t to a function pointer
 11671  // Return sp field of arm_thread_state64_t as a data pointer value
 11672  // Set sp field of arm_thread_state64_t to a data pointer value
 11673  // Return fp field of arm_thread_state64_t as a data pointer value
 11674  // Set fp field of arm_thread_state64_t to a data pointer value
 11675  // Strip ptr auth bits from pc, lr, sp and fp field of arm_thread_state64_t
 11676  
 11677  type X__darwin_arm_vfp_state = struct {
 11678  	F__r     [64]X__uint32_t
 11679  	F__fpscr X__uint32_t
 11680  } /* _structs.h:424:1 */
 11681  
 11682  type X__darwin_arm_neon_state64 = struct {
 11683  	F__v    [32]X__uint128_t
 11684  	F__fpsr X__uint32_t
 11685  	F__fpcr X__uint32_t
 11686  } /* _structs.h:443:1 */
 11687  
 11688  type X__darwin_arm_neon_state = struct {
 11689  	F__v    [16]X__uint128_t
 11690  	F__fpsr X__uint32_t
 11691  	F__fpcr X__uint32_t
 11692  } /* _structs.h:450:1 */
 11693  
 11694  type X__arm_pagein_state = struct{ F__pagein_error int32 } /* _structs.h:514:1 */
 11695  
 11696  // Debug State
 11697  
 11698  // ARM's arm_debug_state is ARM64's arm_legacy_debug_state
 11699  
 11700  type X__arm_legacy_debug_state = struct {
 11701  	F__bvr [16]X__uint32_t
 11702  	F__bcr [16]X__uint32_t
 11703  	F__wvr [16]X__uint32_t
 11704  	F__wcr [16]X__uint32_t
 11705  } /* _structs.h:551:1 */
 11706  
 11707  type X__darwin_arm_debug_state32 = struct {
 11708  	F__bvr       [16]X__uint32_t
 11709  	F__bcr       [16]X__uint32_t
 11710  	F__wvr       [16]X__uint32_t
 11711  	F__wcr       [16]X__uint32_t
 11712  	F__mdscr_el1 X__uint64_t
 11713  } /* _structs.h:574:1 */
 11714  
 11715  type X__darwin_arm_debug_state64 = struct {
 11716  	F__bvr       [16]X__uint64_t
 11717  	F__bcr       [16]X__uint64_t
 11718  	F__wvr       [16]X__uint64_t
 11719  	F__wcr       [16]X__uint64_t
 11720  	F__mdscr_el1 X__uint64_t
 11721  } /* _structs.h:584:1 */
 11722  
 11723  type X__darwin_arm_cpmu_state64 = struct{ F__ctrs [16]X__uint64_t } /* _structs.h:616:1 */
 11724  
 11725  type X__darwin_mcontext32 = struct {
 11726  	F__es struct {
 11727  		F__exception X__uint32_t
 11728  		F__fsr       X__uint32_t
 11729  		F__far       X__uint32_t
 11730  	}
 11731  	F__ss struct {
 11732  		F__r    [13]X__uint32_t
 11733  		F__sp   X__uint32_t
 11734  		F__lr   X__uint32_t
 11735  		F__pc   X__uint32_t
 11736  		F__cpsr X__uint32_t
 11737  	}
 11738  	F__fs struct {
 11739  		F__r     [64]X__uint32_t
 11740  		F__fpscr X__uint32_t
 11741  	}
 11742  } /* _mcontext.h:41:1 */
 11743  
 11744  type X__darwin_mcontext64 = struct {
 11745  	F__es struct {
 11746  		F__far       X__uint64_t
 11747  		F__esr       X__uint32_t
 11748  		F__exception X__uint32_t
 11749  	}
 11750  	F__ss struct {
 11751  		F__x    [29]X__uint64_t
 11752  		F__fp   X__uint64_t
 11753  		F__lr   X__uint64_t
 11754  		F__sp   X__uint64_t
 11755  		F__pc   X__uint64_t
 11756  		F__cpsr X__uint32_t
 11757  		F__pad  X__uint32_t
 11758  	}
 11759  	F__ns struct {
 11760  		F__v    [32]X__uint128_t
 11761  		F__fpsr X__uint32_t
 11762  		F__fpcr X__uint32_t
 11763  	}
 11764  } /* _mcontext.h:64:1 */
 11765  
 11766  type Mcontext_t = uintptr /* _mcontext.h:85:33 */
 11767  
 11768  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11769  //
 11770  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11771  //
 11772  // This file contains Original Code and/or Modifications of Original Code
 11773  // as defined in and that are subject to the Apple Public Source License
 11774  // Version 2.0 (the 'License'). You may not use this file except in
 11775  // compliance with the License. The rights granted to you under the License
 11776  // may not be used to create, or enable the creation or redistribution of,
 11777  // unlawful or unlicensed copies of an Apple operating system, or to
 11778  // circumvent, violate, or enable the circumvention or violation of, any
 11779  // terms of an Apple operating system software license agreement.
 11780  //
 11781  // Please obtain a copy of the License at
 11782  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11783  //
 11784  // The Original Code and all software distributed under the License are
 11785  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11786  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11787  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11788  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11789  // Please see the License for the specific language governing rights and
 11790  // limitations under the License.
 11791  //
 11792  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11793  
 11794  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11795  //
 11796  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11797  //
 11798  // This file contains Original Code and/or Modifications of Original Code
 11799  // as defined in and that are subject to the Apple Public Source License
 11800  // Version 2.0 (the 'License'). You may not use this file except in
 11801  // compliance with the License. The rights granted to you under the License
 11802  // may not be used to create, or enable the creation or redistribution of,
 11803  // unlawful or unlicensed copies of an Apple operating system, or to
 11804  // circumvent, violate, or enable the circumvention or violation of, any
 11805  // terms of an Apple operating system software license agreement.
 11806  //
 11807  // Please obtain a copy of the License at
 11808  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11809  //
 11810  // The Original Code and all software distributed under the License are
 11811  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11812  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11813  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11814  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11815  // Please see the License for the specific language governing rights and
 11816  // limitations under the License.
 11817  //
 11818  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11819  
 11820  // Structure used in sigaltstack call.
 11821  
 11822  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 11823  //
 11824  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11825  //
 11826  // This file contains Original Code and/or Modifications of Original Code
 11827  // as defined in and that are subject to the Apple Public Source License
 11828  // Version 2.0 (the 'License'). You may not use this file except in
 11829  // compliance with the License. The rights granted to you under the License
 11830  // may not be used to create, or enable the creation or redistribution of,
 11831  // unlawful or unlicensed copies of an Apple operating system, or to
 11832  // circumvent, violate, or enable the circumvention or violation of, any
 11833  // terms of an Apple operating system software license agreement.
 11834  //
 11835  // Please obtain a copy of the License at
 11836  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11837  //
 11838  // The Original Code and all software distributed under the License are
 11839  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11840  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11841  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11842  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11843  // Please see the License for the specific language governing rights and
 11844  // limitations under the License.
 11845  //
 11846  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11847  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 11848  // Copyright (c) 1991, 1993
 11849  //	The Regents of the University of California.  All rights reserved.
 11850  //
 11851  // This code is derived from software contributed to Berkeley by
 11852  // Berkeley Software Design, Inc.
 11853  //
 11854  // Redistribution and use in source and binary forms, with or without
 11855  // modification, are permitted provided that the following conditions
 11856  // are met:
 11857  // 1. Redistributions of source code must retain the above copyright
 11858  //    notice, this list of conditions and the following disclaimer.
 11859  // 2. Redistributions in binary form must reproduce the above copyright
 11860  //    notice, this list of conditions and the following disclaimer in the
 11861  //    documentation and/or other materials provided with the distribution.
 11862  // 3. All advertising materials mentioning features or use of this software
 11863  //    must display the following acknowledgement:
 11864  //	This product includes software developed by the University of
 11865  //	California, Berkeley and its contributors.
 11866  // 4. Neither the name of the University nor the names of its contributors
 11867  //    may be used to endorse or promote products derived from this software
 11868  //    without specific prior written permission.
 11869  //
 11870  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 11871  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 11872  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 11873  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 11874  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 11875  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 11876  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 11877  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 11878  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 11879  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 11880  // SUCH DAMAGE.
 11881  //
 11882  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 11883  
 11884  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 11885  //
 11886  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11887  //
 11888  // This file contains Original Code and/or Modifications of Original Code
 11889  // as defined in and that are subject to the Apple Public Source License
 11890  // Version 2.0 (the 'License'). You may not use this file except in
 11891  // compliance with the License. The rights granted to you under the License
 11892  // may not be used to create, or enable the creation or redistribution of,
 11893  // unlawful or unlicensed copies of an Apple operating system, or to
 11894  // circumvent, violate, or enable the circumvention or violation of, any
 11895  // terms of an Apple operating system software license agreement.
 11896  //
 11897  // Please obtain a copy of the License at
 11898  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11899  //
 11900  // The Original Code and all software distributed under the License are
 11901  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11902  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11903  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11904  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11905  // Please see the License for the specific language governing rights and
 11906  // limitations under the License.
 11907  //
 11908  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11909  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 11910  
 11911  type X__darwin_sigaltstack = struct {
 11912  	Fss_sp       uintptr
 11913  	Fss_size     X__darwin_size_t
 11914  	Fss_flags    int32
 11915  	F__ccgo_pad1 [4]byte
 11916  } /* _sigaltstack.h:42:1 */
 11917  
 11918  type Stack_t = X__darwin_sigaltstack /* _sigaltstack.h:48:33 */ // [???] signal stack
 11919  
 11920  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 11921  //
 11922  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11923  //
 11924  // This file contains Original Code and/or Modifications of Original Code
 11925  // as defined in and that are subject to the Apple Public Source License
 11926  // Version 2.0 (the 'License'). You may not use this file except in
 11927  // compliance with the License. The rights granted to you under the License
 11928  // may not be used to create, or enable the creation or redistribution of,
 11929  // unlawful or unlicensed copies of an Apple operating system, or to
 11930  // circumvent, violate, or enable the circumvention or violation of, any
 11931  // terms of an Apple operating system software license agreement.
 11932  //
 11933  // Please obtain a copy of the License at
 11934  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11935  //
 11936  // The Original Code and all software distributed under the License are
 11937  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11938  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11939  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11940  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11941  // Please see the License for the specific language governing rights and
 11942  // limitations under the License.
 11943  //
 11944  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11945  
 11946  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 11947  //
 11948  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 11949  //
 11950  // This file contains Original Code and/or Modifications of Original Code
 11951  // as defined in and that are subject to the Apple Public Source License
 11952  // Version 2.0 (the 'License'). You may not use this file except in
 11953  // compliance with the License. The rights granted to you under the License
 11954  // may not be used to create, or enable the creation or redistribution of,
 11955  // unlawful or unlicensed copies of an Apple operating system, or to
 11956  // circumvent, violate, or enable the circumvention or violation of, any
 11957  // terms of an Apple operating system software license agreement.
 11958  //
 11959  // Please obtain a copy of the License at
 11960  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 11961  //
 11962  // The Original Code and all software distributed under the License are
 11963  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 11964  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 11965  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 11966  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 11967  // Please see the License for the specific language governing rights and
 11968  // limitations under the License.
 11969  //
 11970  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 11971  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 11972  // Copyright (c) 1991, 1993
 11973  //	The Regents of the University of California.  All rights reserved.
 11974  //
 11975  // This code is derived from software contributed to Berkeley by
 11976  // Berkeley Software Design, Inc.
 11977  //
 11978  // Redistribution and use in source and binary forms, with or without
 11979  // modification, are permitted provided that the following conditions
 11980  // are met:
 11981  // 1. Redistributions of source code must retain the above copyright
 11982  //    notice, this list of conditions and the following disclaimer.
 11983  // 2. Redistributions in binary form must reproduce the above copyright
 11984  //    notice, this list of conditions and the following disclaimer in the
 11985  //    documentation and/or other materials provided with the distribution.
 11986  // 3. All advertising materials mentioning features or use of this software
 11987  //    must display the following acknowledgement:
 11988  //	This product includes software developed by the University of
 11989  //	California, Berkeley and its contributors.
 11990  // 4. Neither the name of the University nor the names of its contributors
 11991  //    may be used to endorse or promote products derived from this software
 11992  //    without specific prior written permission.
 11993  //
 11994  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 11995  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 11996  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 11997  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 11998  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 11999  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 12000  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 12001  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 12002  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 12003  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 12004  // SUCH DAMAGE.
 12005  //
 12006  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 12007  
 12008  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 12009  //
 12010  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12011  //
 12012  // This file contains Original Code and/or Modifications of Original Code
 12013  // as defined in and that are subject to the Apple Public Source License
 12014  // Version 2.0 (the 'License'). You may not use this file except in
 12015  // compliance with the License. The rights granted to you under the License
 12016  // may not be used to create, or enable the creation or redistribution of,
 12017  // unlawful or unlicensed copies of an Apple operating system, or to
 12018  // circumvent, violate, or enable the circumvention or violation of, any
 12019  // terms of an Apple operating system software license agreement.
 12020  //
 12021  // Please obtain a copy of the License at
 12022  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12023  //
 12024  // The Original Code and all software distributed under the License are
 12025  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12026  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12027  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12028  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12029  // Please see the License for the specific language governing rights and
 12030  // limitations under the License.
 12031  //
 12032  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12033  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 12034  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12035  //
 12036  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12037  //
 12038  // This file contains Original Code and/or Modifications of Original Code
 12039  // as defined in and that are subject to the Apple Public Source License
 12040  // Version 2.0 (the 'License'). You may not use this file except in
 12041  // compliance with the License. The rights granted to you under the License
 12042  // may not be used to create, or enable the creation or redistribution of,
 12043  // unlawful or unlicensed copies of an Apple operating system, or to
 12044  // circumvent, violate, or enable the circumvention or violation of, any
 12045  // terms of an Apple operating system software license agreement.
 12046  //
 12047  // Please obtain a copy of the License at
 12048  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12049  //
 12050  // The Original Code and all software distributed under the License are
 12051  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12052  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12053  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12054  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12055  // Please see the License for the specific language governing rights and
 12056  // limitations under the License.
 12057  //
 12058  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12059  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 12060  //
 12061  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12062  //
 12063  // This file contains Original Code and/or Modifications of Original Code
 12064  // as defined in and that are subject to the Apple Public Source License
 12065  // Version 2.0 (the 'License'). You may not use this file except in
 12066  // compliance with the License. The rights granted to you under the License
 12067  // may not be used to create, or enable the creation or redistribution of,
 12068  // unlawful or unlicensed copies of an Apple operating system, or to
 12069  // circumvent, violate, or enable the circumvention or violation of, any
 12070  // terms of an Apple operating system software license agreement.
 12071  //
 12072  // Please obtain a copy of the License at
 12073  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12074  //
 12075  // The Original Code and all software distributed under the License are
 12076  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12077  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12078  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12079  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12080  // Please see the License for the specific language governing rights and
 12081  // limitations under the License.
 12082  //
 12083  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12084  
 12085  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12086  //
 12087  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12088  //
 12089  // This file contains Original Code and/or Modifications of Original Code
 12090  // as defined in and that are subject to the Apple Public Source License
 12091  // Version 2.0 (the 'License'). You may not use this file except in
 12092  // compliance with the License. The rights granted to you under the License
 12093  // may not be used to create, or enable the creation or redistribution of,
 12094  // unlawful or unlicensed copies of an Apple operating system, or to
 12095  // circumvent, violate, or enable the circumvention or violation of, any
 12096  // terms of an Apple operating system software license agreement.
 12097  //
 12098  // Please obtain a copy of the License at
 12099  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12100  //
 12101  // The Original Code and all software distributed under the License are
 12102  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12103  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12104  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12105  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12106  // Please see the License for the specific language governing rights and
 12107  // limitations under the License.
 12108  //
 12109  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12110  
 12111  // Structure used in sigaltstack call.
 12112  
 12113  type X__darwin_ucontext = struct {
 12114  	Fuc_onstack int32
 12115  	Fuc_sigmask X__darwin_sigset_t
 12116  	Fuc_stack   struct {
 12117  		Fss_sp       uintptr
 12118  		Fss_size     X__darwin_size_t
 12119  		Fss_flags    int32
 12120  		F__ccgo_pad1 [4]byte
 12121  	}
 12122  	Fuc_link     uintptr
 12123  	Fuc_mcsize   X__darwin_size_t
 12124  	Fuc_mcontext uintptr
 12125  } /* _ucontext.h:43:1 */
 12126  
 12127  // user context
 12128  type Ucontext_t = X__darwin_ucontext /* _ucontext.h:57:33 */ // [???] user context
 12129  
 12130  // Copyright (c) 2003-2012 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 (c) 2003-2012 Apple Inc. All rights reserved.
 12156  //
 12157  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12158  //
 12159  // This file contains Original Code and/or Modifications of Original Code
 12160  // as defined in and that are subject to the Apple Public Source License
 12161  // Version 2.0 (the 'License'). You may not use this file except in
 12162  // compliance with the License. The rights granted to you under the License
 12163  // may not be used to create, or enable the creation or redistribution of,
 12164  // unlawful or unlicensed copies of an Apple operating system, or to
 12165  // circumvent, violate, or enable the circumvention or violation of, any
 12166  // terms of an Apple operating system software license agreement.
 12167  //
 12168  // Please obtain a copy of the License at
 12169  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12170  //
 12171  // The Original Code and all software distributed under the License are
 12172  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12173  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12174  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12175  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12176  // Please see the License for the specific language governing rights and
 12177  // limitations under the License.
 12178  //
 12179  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12180  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12181  //
 12182  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12183  //
 12184  // This file contains Original Code and/or Modifications of Original Code
 12185  // as defined in and that are subject to the Apple Public Source License
 12186  // Version 2.0 (the 'License'). You may not use this file except in
 12187  // compliance with the License. The rights granted to you under the License
 12188  // may not be used to create, or enable the creation or redistribution of,
 12189  // unlawful or unlicensed copies of an Apple operating system, or to
 12190  // circumvent, violate, or enable the circumvention or violation of, any
 12191  // terms of an Apple operating system software license agreement.
 12192  //
 12193  // Please obtain a copy of the License at
 12194  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12195  //
 12196  // The Original Code and all software distributed under the License are
 12197  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12198  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12199  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12200  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12201  // Please see the License for the specific language governing rights and
 12202  // limitations under the License.
 12203  //
 12204  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12205  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12206  //
 12207  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12208  //
 12209  // This file contains Original Code and/or Modifications of Original Code
 12210  // as defined in and that are subject to the Apple Public Source License
 12211  // Version 2.0 (the 'License'). You may not use this file except in
 12212  // compliance with the License. The rights granted to you under the License
 12213  // may not be used to create, or enable the creation or redistribution of,
 12214  // unlawful or unlicensed copies of an Apple operating system, or to
 12215  // circumvent, violate, or enable the circumvention or violation of, any
 12216  // terms of an Apple operating system software license agreement.
 12217  //
 12218  // Please obtain a copy of the License at
 12219  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12220  //
 12221  // The Original Code and all software distributed under the License are
 12222  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12223  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12224  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12225  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12226  // Please see the License for the specific language governing rights and
 12227  // limitations under the License.
 12228  //
 12229  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12230  
 12231  type Sigval = struct {
 12232  	F__ccgo_pad1 [0]uint64
 12233  	Fsival_int   int32
 12234  	F__ccgo_pad2 [4]byte
 12235  } /* signal.h:158:1 */
 12236  
 12237  type Sigevent = struct {
 12238  	Fsigev_notify int32
 12239  	Fsigev_signo  int32
 12240  	Fsigev_value  struct {
 12241  		F__ccgo_pad1 [0]uint64
 12242  		Fsival_int   int32
 12243  		F__ccgo_pad2 [4]byte
 12244  	}
 12245  	Fsigev_notify_function   uintptr
 12246  	Fsigev_notify_attributes uintptr
 12247  } /* signal.h:168:1 */
 12248  
 12249  type X__siginfo = struct {
 12250  	Fsi_signo  int32
 12251  	Fsi_errno  int32
 12252  	Fsi_code   int32
 12253  	Fsi_pid    Pid_t
 12254  	Fsi_uid    Uid_t
 12255  	Fsi_status int32
 12256  	Fsi_addr   uintptr
 12257  	Fsi_value  struct {
 12258  		F__ccgo_pad1 [0]uint64
 12259  		Fsival_int   int32
 12260  		F__ccgo_pad2 [4]byte
 12261  	}
 12262  	Fsi_band int64
 12263  	F__pad   [7]uint64
 12264  } /* signal.h:177:9 */
 12265  
 12266  type Siginfo_t = X__siginfo /* signal.h:188:3 */
 12267  
 12268  // When the signal is SIGILL or SIGFPE, si_addr contains the address of
 12269  // the faulting instruction.
 12270  // When the signal is SIGSEGV or SIGBUS, si_addr contains the address of
 12271  // the faulting memory reference. Although for x86 there are cases of SIGSEGV
 12272  // for which si_addr cannot be determined and is NULL.
 12273  // If the signal is SIGCHLD, the si_pid field will contain the child process ID,
 12274  //  si_status contains the exit value or signal and
 12275  //  si_uid contains the real user ID of the process that sent the signal.
 12276  
 12277  // Values for si_code
 12278  
 12279  // Codes for SIGILL
 12280  
 12281  // Codes for SIGFPE
 12282  
 12283  // Codes for SIGSEGV
 12284  
 12285  // Codes for SIGBUS
 12286  
 12287  // Codes for SIGTRAP
 12288  
 12289  // Codes for SIGCHLD
 12290  
 12291  // Codes for SIGPOLL
 12292  
 12293  // union for signal handlers
 12294  type X__sigaction_u = struct{ F__sa_handler uintptr } /* signal.h:269:1 */
 12295  
 12296  // Signal vector template for Kernel user boundary
 12297  type X__sigaction = struct {
 12298  	F__sigaction_u struct{ F__sa_handler uintptr }
 12299  	Fsa_tramp      uintptr
 12300  	Fsa_mask       Sigset_t
 12301  	Fsa_flags      int32
 12302  } /* signal.h:276:1 */
 12303  
 12304  // Signal vector "template" used in sigaction call.
 12305  type Sigaction = struct {
 12306  	F__sigaction_u struct{ F__sa_handler uintptr }
 12307  	Fsa_mask       Sigset_t
 12308  	Fsa_flags      int32
 12309  } /* signal.h:286:1 */
 12310  
 12311  // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler.
 12312  
 12313  // This will provide 64bit register set in a 32bit user address space
 12314  
 12315  // the following are the only bits we support from user space, the
 12316  // rest are for kernel use only.
 12317  
 12318  // Flags for sigprocmask:
 12319  
 12320  // POSIX 1003.1b required values.
 12321  
 12322  type Sig_t = uintptr /* signal.h:331:14 */ // type of signal function
 12323  
 12324  // Structure used in sigaltstack call.
 12325  
 12326  // 4.3 compatibility:
 12327  // Signal vector "template" used in sigvec call.
 12328  type Sigvec = struct {
 12329  	Fsv_handler uintptr
 12330  	Fsv_mask    int32
 12331  	Fsv_flags   int32
 12332  } /* signal.h:348:1 */
 12333  
 12334  // Structure used in sigstack call.
 12335  type Sigstack = struct {
 12336  	Fss_sp       uintptr
 12337  	Fss_onstack  int32
 12338  	F__ccgo_pad1 [4]byte
 12339  } /* signal.h:367:1 */
 12340  
 12341  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 12342  //
 12343  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12344  //
 12345  // This file contains Original Code and/or Modifications of Original Code
 12346  // as defined in and that are subject to the Apple Public Source License
 12347  // Version 2.0 (the 'License'). You may not use this file except in
 12348  // compliance with the License. The rights granted to you under the License
 12349  // may not be used to create, or enable the creation or redistribution of,
 12350  // unlawful or unlicensed copies of an Apple operating system, or to
 12351  // circumvent, violate, or enable the circumvention or violation of, any
 12352  // terms of an Apple operating system software license agreement.
 12353  //
 12354  // Please obtain a copy of the License at
 12355  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12356  //
 12357  // The Original Code and all software distributed under the License are
 12358  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12359  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12360  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12361  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12362  // Please see the License for the specific language governing rights and
 12363  // limitations under the License.
 12364  //
 12365  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12366  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
 12367  // Copyright (c) 1982, 1986, 1993
 12368  //	The Regents of the University of California.  All rights reserved.
 12369  //
 12370  // Redistribution and use in source and binary forms, with or without
 12371  // modification, are permitted provided that the following conditions
 12372  // are met:
 12373  // 1. Redistributions of source code must retain the above copyright
 12374  //    notice, this list of conditions and the following disclaimer.
 12375  // 2. Redistributions in binary form must reproduce the above copyright
 12376  //    notice, this list of conditions and the following disclaimer in the
 12377  //    documentation and/or other materials provided with the distribution.
 12378  // 3. All advertising materials mentioning features or use of this software
 12379  //    must display the following acknowledgement:
 12380  //	This product includes software developed by the University of
 12381  //	California, Berkeley and its contributors.
 12382  // 4. Neither the name of the University nor the names of its contributors
 12383  //    may be used to endorse or promote products derived from this software
 12384  //    without specific prior written permission.
 12385  //
 12386  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 12387  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 12388  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 12389  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 12390  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 12391  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 12392  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 12393  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 12394  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 12395  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 12396  // SUCH DAMAGE.
 12397  //
 12398  //	@(#)resource.h	8.2 (Berkeley) 1/4/94
 12399  
 12400  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
 12401  //
 12402  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12403  //
 12404  // This file contains Original Code and/or Modifications of Original Code
 12405  // as defined in and that are subject to the Apple Public Source License
 12406  // Version 2.0 (the 'License'). You may not use this file except in
 12407  // compliance with the License. The rights granted to you under the License
 12408  // may not be used to create, or enable the creation or redistribution of,
 12409  // unlawful or unlicensed copies of an Apple operating system, or to
 12410  // circumvent, violate, or enable the circumvention or violation of, any
 12411  // terms of an Apple operating system software license agreement.
 12412  //
 12413  // Please obtain a copy of the License at
 12414  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12415  //
 12416  // The Original Code and all software distributed under the License are
 12417  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12418  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12419  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12420  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12421  // Please see the License for the specific language governing rights and
 12422  // limitations under the License.
 12423  //
 12424  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12425  
 12426  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 12427  //
 12428  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12429  //
 12430  // This file contains Original Code and/or Modifications of Original Code
 12431  // as defined in and that are subject to the Apple Public Source License
 12432  // Version 2.0 (the 'License'). You may not use this file except in
 12433  // compliance with the License. The rights granted to you under the License
 12434  // may not be used to create, or enable the creation or redistribution of,
 12435  // unlawful or unlicensed copies of an Apple operating system, or to
 12436  // circumvent, violate, or enable the circumvention or violation of, any
 12437  // terms of an Apple operating system software license agreement.
 12438  //
 12439  // Please obtain a copy of the License at
 12440  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12441  //
 12442  // The Original Code and all software distributed under the License are
 12443  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12444  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12445  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12446  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12447  // Please see the License for the specific language governing rights and
 12448  // limitations under the License.
 12449  //
 12450  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12451  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 12452  // Copyright (c) 1991, 1993
 12453  //	The Regents of the University of California.  All rights reserved.
 12454  //
 12455  // This code is derived from software contributed to Berkeley by
 12456  // Berkeley Software Design, Inc.
 12457  //
 12458  // Redistribution and use in source and binary forms, with or without
 12459  // modification, are permitted provided that the following conditions
 12460  // are met:
 12461  // 1. Redistributions of source code must retain the above copyright
 12462  //    notice, this list of conditions and the following disclaimer.
 12463  // 2. Redistributions in binary form must reproduce the above copyright
 12464  //    notice, this list of conditions and the following disclaimer in the
 12465  //    documentation and/or other materials provided with the distribution.
 12466  // 3. All advertising materials mentioning features or use of this software
 12467  //    must display the following acknowledgement:
 12468  //	This product includes software developed by the University of
 12469  //	California, Berkeley and its contributors.
 12470  // 4. Neither the name of the University nor the names of its contributors
 12471  //    may be used to endorse or promote products derived from this software
 12472  //    without specific prior written permission.
 12473  //
 12474  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 12475  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 12476  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 12477  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 12478  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 12479  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 12480  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 12481  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 12482  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 12483  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 12484  // SUCH DAMAGE.
 12485  //
 12486  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 12487  
 12488  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 12489  //
 12490  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12491  //
 12492  // This file contains Original Code and/or Modifications of Original Code
 12493  // as defined in and that are subject to the Apple Public Source License
 12494  // Version 2.0 (the 'License'). You may not use this file except in
 12495  // compliance with the License. The rights granted to you under the License
 12496  // may not be used to create, or enable the creation or redistribution of,
 12497  // unlawful or unlicensed copies of an Apple operating system, or to
 12498  // circumvent, violate, or enable the circumvention or violation of, any
 12499  // terms of an Apple operating system software license agreement.
 12500  //
 12501  // Please obtain a copy of the License at
 12502  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12503  //
 12504  // The Original Code and all software distributed under the License are
 12505  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12506  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12507  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12508  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12509  // Please see the License for the specific language governing rights and
 12510  // limitations under the License.
 12511  //
 12512  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12513  
 12514  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
 12515  //
 12516  // @APPLE_LICENSE_HEADER_START@
 12517  //
 12518  // This file contains Original Code and/or Modifications of Original Code
 12519  // as defined in and that are subject to the Apple Public Source License
 12520  // Version 2.0 (the 'License'). You may not use this file except in
 12521  // compliance with the License. Please obtain a copy of the License at
 12522  // http://www.opensource.apple.com/apsl/ and read it before using this
 12523  // file.
 12524  //
 12525  // The Original Code and all software distributed under the License are
 12526  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12527  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12528  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12529  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12530  // Please see the License for the specific language governing rights and
 12531  // limitations under the License.
 12532  //
 12533  // @APPLE_LICENSE_HEADER_END@
 12534  
 12535  // [XSI] The timeval structure shall be defined as described in
 12536  // <sys/time.h>
 12537  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12538  //
 12539  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12540  //
 12541  // This file contains Original Code and/or Modifications of Original Code
 12542  // as defined in and that are subject to the Apple Public Source License
 12543  // Version 2.0 (the 'License'). You may not use this file except in
 12544  // compliance with the License. The rights granted to you under the License
 12545  // may not be used to create, or enable the creation or redistribution of,
 12546  // unlawful or unlicensed copies of an Apple operating system, or to
 12547  // circumvent, violate, or enable the circumvention or violation of, any
 12548  // terms of an Apple operating system software license agreement.
 12549  //
 12550  // Please obtain a copy of the License at
 12551  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12552  //
 12553  // The Original Code and all software distributed under the License are
 12554  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12555  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12556  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12557  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12558  // Please see the License for the specific language governing rights and
 12559  // limitations under the License.
 12560  //
 12561  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12562  
 12563  // The id_t type shall be defined as described in <sys/types.h>
 12564  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12565  //
 12566  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12567  //
 12568  // This file contains Original Code and/or Modifications of Original Code
 12569  // as defined in and that are subject to the Apple Public Source License
 12570  // Version 2.0 (the 'License'). You may not use this file except in
 12571  // compliance with the License. The rights granted to you under the License
 12572  // may not be used to create, or enable the creation or redistribution of,
 12573  // unlawful or unlicensed copies of an Apple operating system, or to
 12574  // circumvent, violate, or enable the circumvention or violation of, any
 12575  // terms of an Apple operating system software license agreement.
 12576  //
 12577  // Please obtain a copy of the License at
 12578  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12579  //
 12580  // The Original Code and all software distributed under the License are
 12581  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12582  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12583  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12584  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12585  // Please see the License for the specific language governing rights and
 12586  // limitations under the License.
 12587  //
 12588  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12589  
 12590  // Resource limit type (low 63 bits, excluding the sign bit)
 12591  type Rlim_t = X__uint64_t /* resource.h:89:25 */
 12592  
 12593  // ****
 12594  //
 12595  // PRIORITY
 12596  
 12597  // Possible values of the first parameter to getpriority()/setpriority(),
 12598  // used to indicate the type of the second parameter.
 12599  
 12600  // Range limitations for the value of the third parameter to setpriority().
 12601  
 12602  // use PRIO_DARWIN_BG to set the current thread into "background" state
 12603  // which lowers CPU, disk IO, and networking priorites until thread terminates
 12604  // or "background" state is revoked
 12605  
 12606  // use PRIO_DARWIN_NONUI to restrict a process's ability to make calls to
 12607  // the GPU. (deprecated)
 12608  
 12609  // ****
 12610  //
 12611  // RESOURCE USAGE
 12612  
 12613  // Possible values of the first parameter to getrusage(), used to indicate
 12614  // the scope of the information to be returned.
 12615  
 12616  // A structure representing an accounting of resource utilization.  The
 12617  // address of an instance of this structure is the second parameter to
 12618  // getrusage().
 12619  //
 12620  // Note: All values other than ru_utime and ru_stime are implementaiton
 12621  //       defined and subject to change in a future release.  Their use
 12622  //       is discouraged for standards compliant programs.
 12623  type Rusage = struct {
 12624  	Fru_utime struct {
 12625  		Ftv_sec      X__darwin_time_t
 12626  		Ftv_usec     X__darwin_suseconds_t
 12627  		F__ccgo_pad1 [4]byte
 12628  	}
 12629  	Fru_stime struct {
 12630  		Ftv_sec      X__darwin_time_t
 12631  		Ftv_usec     X__darwin_suseconds_t
 12632  		F__ccgo_pad1 [4]byte
 12633  	}
 12634  	Fru_maxrss   int64
 12635  	Fru_ixrss    int64
 12636  	Fru_idrss    int64
 12637  	Fru_isrss    int64
 12638  	Fru_minflt   int64
 12639  	Fru_majflt   int64
 12640  	Fru_nswap    int64
 12641  	Fru_inblock  int64
 12642  	Fru_oublock  int64
 12643  	Fru_msgsnd   int64
 12644  	Fru_msgrcv   int64
 12645  	Fru_nsignals int64
 12646  	Fru_nvcsw    int64
 12647  	Fru_nivcsw   int64
 12648  } /* resource.h:152:1 */
 12649  
 12650  // Flavors for proc_pid_rusage().
 12651  
 12652  // Flags for RUSAGE_INFO_V5
 12653  
 12654  type Rusage_info_t = uintptr /* resource.h:199:14 */
 12655  
 12656  type Rusage_info_v0 = struct {
 12657  	Fri_uuid               [16]Uint8_t
 12658  	Fri_user_time          Uint64_t
 12659  	Fri_system_time        Uint64_t
 12660  	Fri_pkg_idle_wkups     Uint64_t
 12661  	Fri_interrupt_wkups    Uint64_t
 12662  	Fri_pageins            Uint64_t
 12663  	Fri_wired_size         Uint64_t
 12664  	Fri_resident_size      Uint64_t
 12665  	Fri_phys_footprint     Uint64_t
 12666  	Fri_proc_start_abstime Uint64_t
 12667  	Fri_proc_exit_abstime  Uint64_t
 12668  } /* resource.h:201:1 */
 12669  
 12670  type Rusage_info_v1 = struct {
 12671  	Fri_uuid                  [16]Uint8_t
 12672  	Fri_user_time             Uint64_t
 12673  	Fri_system_time           Uint64_t
 12674  	Fri_pkg_idle_wkups        Uint64_t
 12675  	Fri_interrupt_wkups       Uint64_t
 12676  	Fri_pageins               Uint64_t
 12677  	Fri_wired_size            Uint64_t
 12678  	Fri_resident_size         Uint64_t
 12679  	Fri_phys_footprint        Uint64_t
 12680  	Fri_proc_start_abstime    Uint64_t
 12681  	Fri_proc_exit_abstime     Uint64_t
 12682  	Fri_child_user_time       Uint64_t
 12683  	Fri_child_system_time     Uint64_t
 12684  	Fri_child_pkg_idle_wkups  Uint64_t
 12685  	Fri_child_interrupt_wkups Uint64_t
 12686  	Fri_child_pageins         Uint64_t
 12687  	Fri_child_elapsed_abstime Uint64_t
 12688  } /* resource.h:215:1 */
 12689  
 12690  type Rusage_info_v2 = struct {
 12691  	Fri_uuid                  [16]Uint8_t
 12692  	Fri_user_time             Uint64_t
 12693  	Fri_system_time           Uint64_t
 12694  	Fri_pkg_idle_wkups        Uint64_t
 12695  	Fri_interrupt_wkups       Uint64_t
 12696  	Fri_pageins               Uint64_t
 12697  	Fri_wired_size            Uint64_t
 12698  	Fri_resident_size         Uint64_t
 12699  	Fri_phys_footprint        Uint64_t
 12700  	Fri_proc_start_abstime    Uint64_t
 12701  	Fri_proc_exit_abstime     Uint64_t
 12702  	Fri_child_user_time       Uint64_t
 12703  	Fri_child_system_time     Uint64_t
 12704  	Fri_child_pkg_idle_wkups  Uint64_t
 12705  	Fri_child_interrupt_wkups Uint64_t
 12706  	Fri_child_pageins         Uint64_t
 12707  	Fri_child_elapsed_abstime Uint64_t
 12708  	Fri_diskio_bytesread      Uint64_t
 12709  	Fri_diskio_byteswritten   Uint64_t
 12710  } /* resource.h:235:1 */
 12711  
 12712  type Rusage_info_v3 = struct {
 12713  	Fri_uuid                          [16]Uint8_t
 12714  	Fri_user_time                     Uint64_t
 12715  	Fri_system_time                   Uint64_t
 12716  	Fri_pkg_idle_wkups                Uint64_t
 12717  	Fri_interrupt_wkups               Uint64_t
 12718  	Fri_pageins                       Uint64_t
 12719  	Fri_wired_size                    Uint64_t
 12720  	Fri_resident_size                 Uint64_t
 12721  	Fri_phys_footprint                Uint64_t
 12722  	Fri_proc_start_abstime            Uint64_t
 12723  	Fri_proc_exit_abstime             Uint64_t
 12724  	Fri_child_user_time               Uint64_t
 12725  	Fri_child_system_time             Uint64_t
 12726  	Fri_child_pkg_idle_wkups          Uint64_t
 12727  	Fri_child_interrupt_wkups         Uint64_t
 12728  	Fri_child_pageins                 Uint64_t
 12729  	Fri_child_elapsed_abstime         Uint64_t
 12730  	Fri_diskio_bytesread              Uint64_t
 12731  	Fri_diskio_byteswritten           Uint64_t
 12732  	Fri_cpu_time_qos_default          Uint64_t
 12733  	Fri_cpu_time_qos_maintenance      Uint64_t
 12734  	Fri_cpu_time_qos_background       Uint64_t
 12735  	Fri_cpu_time_qos_utility          Uint64_t
 12736  	Fri_cpu_time_qos_legacy           Uint64_t
 12737  	Fri_cpu_time_qos_user_initiated   Uint64_t
 12738  	Fri_cpu_time_qos_user_interactive Uint64_t
 12739  	Fri_billed_system_time            Uint64_t
 12740  	Fri_serviced_system_time          Uint64_t
 12741  } /* resource.h:257:1 */
 12742  
 12743  type Rusage_info_v4 = struct {
 12744  	Fri_uuid                          [16]Uint8_t
 12745  	Fri_user_time                     Uint64_t
 12746  	Fri_system_time                   Uint64_t
 12747  	Fri_pkg_idle_wkups                Uint64_t
 12748  	Fri_interrupt_wkups               Uint64_t
 12749  	Fri_pageins                       Uint64_t
 12750  	Fri_wired_size                    Uint64_t
 12751  	Fri_resident_size                 Uint64_t
 12752  	Fri_phys_footprint                Uint64_t
 12753  	Fri_proc_start_abstime            Uint64_t
 12754  	Fri_proc_exit_abstime             Uint64_t
 12755  	Fri_child_user_time               Uint64_t
 12756  	Fri_child_system_time             Uint64_t
 12757  	Fri_child_pkg_idle_wkups          Uint64_t
 12758  	Fri_child_interrupt_wkups         Uint64_t
 12759  	Fri_child_pageins                 Uint64_t
 12760  	Fri_child_elapsed_abstime         Uint64_t
 12761  	Fri_diskio_bytesread              Uint64_t
 12762  	Fri_diskio_byteswritten           Uint64_t
 12763  	Fri_cpu_time_qos_default          Uint64_t
 12764  	Fri_cpu_time_qos_maintenance      Uint64_t
 12765  	Fri_cpu_time_qos_background       Uint64_t
 12766  	Fri_cpu_time_qos_utility          Uint64_t
 12767  	Fri_cpu_time_qos_legacy           Uint64_t
 12768  	Fri_cpu_time_qos_user_initiated   Uint64_t
 12769  	Fri_cpu_time_qos_user_interactive Uint64_t
 12770  	Fri_billed_system_time            Uint64_t
 12771  	Fri_serviced_system_time          Uint64_t
 12772  	Fri_logical_writes                Uint64_t
 12773  	Fri_lifetime_max_phys_footprint   Uint64_t
 12774  	Fri_instructions                  Uint64_t
 12775  	Fri_cycles                        Uint64_t
 12776  	Fri_billed_energy                 Uint64_t
 12777  	Fri_serviced_energy               Uint64_t
 12778  	Fri_interval_max_phys_footprint   Uint64_t
 12779  	Fri_runnable_time                 Uint64_t
 12780  } /* resource.h:288:1 */
 12781  
 12782  type Rusage_info_v5 = struct {
 12783  	Fri_uuid                          [16]Uint8_t
 12784  	Fri_user_time                     Uint64_t
 12785  	Fri_system_time                   Uint64_t
 12786  	Fri_pkg_idle_wkups                Uint64_t
 12787  	Fri_interrupt_wkups               Uint64_t
 12788  	Fri_pageins                       Uint64_t
 12789  	Fri_wired_size                    Uint64_t
 12790  	Fri_resident_size                 Uint64_t
 12791  	Fri_phys_footprint                Uint64_t
 12792  	Fri_proc_start_abstime            Uint64_t
 12793  	Fri_proc_exit_abstime             Uint64_t
 12794  	Fri_child_user_time               Uint64_t
 12795  	Fri_child_system_time             Uint64_t
 12796  	Fri_child_pkg_idle_wkups          Uint64_t
 12797  	Fri_child_interrupt_wkups         Uint64_t
 12798  	Fri_child_pageins                 Uint64_t
 12799  	Fri_child_elapsed_abstime         Uint64_t
 12800  	Fri_diskio_bytesread              Uint64_t
 12801  	Fri_diskio_byteswritten           Uint64_t
 12802  	Fri_cpu_time_qos_default          Uint64_t
 12803  	Fri_cpu_time_qos_maintenance      Uint64_t
 12804  	Fri_cpu_time_qos_background       Uint64_t
 12805  	Fri_cpu_time_qos_utility          Uint64_t
 12806  	Fri_cpu_time_qos_legacy           Uint64_t
 12807  	Fri_cpu_time_qos_user_initiated   Uint64_t
 12808  	Fri_cpu_time_qos_user_interactive Uint64_t
 12809  	Fri_billed_system_time            Uint64_t
 12810  	Fri_serviced_system_time          Uint64_t
 12811  	Fri_logical_writes                Uint64_t
 12812  	Fri_lifetime_max_phys_footprint   Uint64_t
 12813  	Fri_instructions                  Uint64_t
 12814  	Fri_cycles                        Uint64_t
 12815  	Fri_billed_energy                 Uint64_t
 12816  	Fri_serviced_energy               Uint64_t
 12817  	Fri_interval_max_phys_footprint   Uint64_t
 12818  	Fri_runnable_time                 Uint64_t
 12819  	Fri_flags                         Uint64_t
 12820  } /* resource.h:327:1 */
 12821  
 12822  type Rusage_info_current = Rusage_info_v5 /* resource.h:367:31 */
 12823  
 12824  // ****
 12825  //
 12826  // RESOURCE LIMITS
 12827  
 12828  // Symbolic constants for resource limits; since all limits are representable
 12829  // as a type rlim_t, we are permitted to define RLIM_SAVED_* in terms of
 12830  // RLIM_INFINITY.
 12831  
 12832  // Possible values of the first parameter to getrlimit()/setrlimit(), to
 12833  // indicate for which resource the operation is being performed.
 12834  
 12835  // A structure representing a resource limit.  The address of an instance
 12836  // of this structure is the second parameter to getrlimit()/setrlimit().
 12837  type Rlimit = struct {
 12838  	Frlim_cur Rlim_t
 12839  	Frlim_max Rlim_t
 12840  } /* resource.h:411:1 */
 12841  
 12842  // proc_rlimit_control()
 12843  //
 12844  // Resource limit flavors
 12845  
 12846  // Flags for wakeups monitor control.
 12847  
 12848  // Flags for CPU usage monitor control.
 12849  
 12850  // Flags for memory footprint interval tracking.
 12851  
 12852  type Proc_rlimit_control_wakeupmon = struct {
 12853  	Fwm_flags Uint32_t
 12854  	Fwm_rate  Int32_t
 12855  } /* resource.h:446:1 */
 12856  
 12857  // Option bits for the third argument of wait4.  WNOHANG causes the
 12858  // wait to not hang if there are no stopped or terminated processes, rather
 12859  // returning an error indication in this case (pid==0).  WUNTRACED
 12860  // indicates that the caller should receive status about untraced children
 12861  // which stop due to signals.  If children are stopped and a wait without
 12862  // this option is done, it is as though they were still running... nothing
 12863  // about them is returned.
 12864  
 12865  // Macros to test the exit status returned by wait
 12866  // and extract the relevant values.
 12867  
 12868  // These macros are permited, as they are in the implementation namespace
 12869  
 12870  // [XSI] The <sys/wait.h> header shall define the following macros for
 12871  // analysis of process status values
 12872  // 0x13 == SIGCONT
 12873  
 12874  // [XSI] The following symbolic constants shall be defined as possible
 12875  // values for the fourth argument to waitid().
 12876  // WNOHANG already defined for wait4()
 12877  // WUNTRACED defined for wait4() but not for waitid()
 12878  // waitid() parameter
 12879  
 12880  // POSIX extensions and 4.2/4.3 compatability:
 12881  
 12882  // Tokens for special values of the "pid" parameter to wait4.
 12883  
 12884  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 12885  //
 12886  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12887  //
 12888  // This file contains Original Code and/or Modifications of Original Code
 12889  // as defined in and that are subject to the Apple Public Source License
 12890  // Version 2.0 (the 'License'). You may not use this file except in
 12891  // compliance with the License. The rights granted to you under the License
 12892  // may not be used to create, or enable the creation or redistribution of,
 12893  // unlawful or unlicensed copies of an Apple operating system, or to
 12894  // circumvent, violate, or enable the circumvention or violation of, any
 12895  // terms of an Apple operating system software license agreement.
 12896  //
 12897  // Please obtain a copy of the License at
 12898  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12899  //
 12900  // The Original Code and all software distributed under the License are
 12901  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12902  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12903  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12904  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12905  // Please see the License for the specific language governing rights and
 12906  // limitations under the License.
 12907  //
 12908  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12909  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 12910  
 12911  // Deprecated:
 12912  // Structure of the information in the status word returned by wait4.
 12913  // If w_stopval==_WSTOPPED, then the second structure describes
 12914  // the information returned, else the first.
 12915  type Wait = struct{ Fw_status int32 } /* wait.h:194:1 */
 12916  
 12917  // built-in for gcc
 12918  
 12919  // built-in for gcc 3
 12920  
 12921  // DO NOT REMOVE THIS COMMENT: fixincludes needs to see:
 12922  // _GCC_SIZE_T
 12923  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 12924  //
 12925  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12926  //
 12927  // This file contains Original Code and/or Modifications of Original Code
 12928  // as defined in and that are subject to the Apple Public Source License
 12929  // Version 2.0 (the 'License'). You may not use this file except in
 12930  // compliance with the License. The rights granted to you under the License
 12931  // may not be used to create, or enable the creation or redistribution of,
 12932  // unlawful or unlicensed copies of an Apple operating system, or to
 12933  // circumvent, violate, or enable the circumvention or violation of, any
 12934  // terms of an Apple operating system software license agreement.
 12935  //
 12936  // Please obtain a copy of the License at
 12937  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12938  //
 12939  // The Original Code and all software distributed under the License are
 12940  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12941  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12942  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12943  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12944  // Please see the License for the specific language governing rights and
 12945  // limitations under the License.
 12946  //
 12947  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12948  
 12949  // Copyright (c) 2012 Apple Inc. All rights reserved.
 12950  //
 12951  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12952  //
 12953  // This file contains Original Code and/or Modifications of Original Code
 12954  // as defined in and that are subject to the Apple Public Source License
 12955  // Version 2.0 (the 'License'). You may not use this file except in
 12956  // compliance with the License. The rights granted to you under the License
 12957  // may not be used to create, or enable the creation or redistribution of,
 12958  // unlawful or unlicensed copies of an Apple operating system, or to
 12959  // circumvent, violate, or enable the circumvention or violation of, any
 12960  // terms of an Apple operating system software license agreement.
 12961  //
 12962  // Please obtain a copy of the License at
 12963  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12964  //
 12965  // The Original Code and all software distributed under the License are
 12966  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12967  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12968  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12969  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12970  // Please see the License for the specific language governing rights and
 12971  // limitations under the License.
 12972  //
 12973  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12974  
 12975  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 12976  //
 12977  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12978  //
 12979  // This file contains Original Code and/or Modifications of Original Code
 12980  // as defined in and that are subject to the Apple Public Source License
 12981  // Version 2.0 (the 'License'). You may not use this file except in
 12982  // compliance with the License. The rights granted to you under the License
 12983  // may not be used to create, or enable the creation or redistribution of,
 12984  // unlawful or unlicensed copies of an Apple operating system, or to
 12985  // circumvent, violate, or enable the circumvention or violation of, any
 12986  // terms of an Apple operating system software license agreement.
 12987  //
 12988  // Please obtain a copy of the License at
 12989  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12990  //
 12991  // The Original Code and all software distributed under the License are
 12992  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12993  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12994  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12995  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12996  // Please see the License for the specific language governing rights and
 12997  // limitations under the License.
 12998  //
 12999  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13000  type Ct_rune_t = X__darwin_ct_rune_t /* _ct_rune_t.h:32:28 */
 13001  // Copyright (c) 2012 Apple Inc. All rights reserved.
 13002  //
 13003  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13004  //
 13005  // This file contains Original Code and/or Modifications of Original Code
 13006  // as defined in and that are subject to the Apple Public Source License
 13007  // Version 2.0 (the 'License'). You may not use this file except in
 13008  // compliance with the License. The rights granted to you under the License
 13009  // may not be used to create, or enable the creation or redistribution of,
 13010  // unlawful or unlicensed copies of an Apple operating system, or to
 13011  // circumvent, violate, or enable the circumvention or violation of, any
 13012  // terms of an Apple operating system software license agreement.
 13013  //
 13014  // Please obtain a copy of the License at
 13015  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13016  //
 13017  // The Original Code and all software distributed under the License are
 13018  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13019  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13020  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13021  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13022  // Please see the License for the specific language governing rights and
 13023  // limitations under the License.
 13024  //
 13025  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13026  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 13027  //
 13028  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13029  //
 13030  // This file contains Original Code and/or Modifications of Original Code
 13031  // as defined in and that are subject to the Apple Public Source License
 13032  // Version 2.0 (the 'License'). You may not use this file except in
 13033  // compliance with the License. The rights granted to you under the License
 13034  // may not be used to create, or enable the creation or redistribution of,
 13035  // unlawful or unlicensed copies of an Apple operating system, or to
 13036  // circumvent, violate, or enable the circumvention or violation of, any
 13037  // terms of an Apple operating system software license agreement.
 13038  //
 13039  // Please obtain a copy of the License at
 13040  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13041  //
 13042  // The Original Code and all software distributed under the License are
 13043  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13044  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13045  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13046  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13047  // Please see the License for the specific language governing rights and
 13048  // limitations under the License.
 13049  //
 13050  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13051  type Rune_t = X__darwin_rune_t /* _rune_t.h:31:25 */
 13052  
 13053  type Div_t = struct {
 13054  	Fquot int32
 13055  	Frem  int32
 13056  } /* stdlib.h:86:3 */
 13057  
 13058  type Ldiv_t = struct {
 13059  	Fquot int64
 13060  	Frem  int64
 13061  } /* stdlib.h:91:3 */
 13062  
 13063  type Lldiv_t = struct {
 13064  	Fquot int64
 13065  	Frem  int64
 13066  } /* stdlib.h:97:3 */
 13067  
 13068  // getsubopt(3) external variable
 13069  // valloc is now declared in _malloc.h
 13070  
 13071  // Poison the following routines if -fshort-wchar is set
 13072  
 13073  // This variant of malloc does not return NULL if zero size is passed into.
 13074  func xmalloc(tls *libc.TLS, size Size_t) uintptr { /* Array.c:40:13: */
 13075  	return libc.Xmalloc(tls, func() uint64 {
 13076  		if size != 0 {
 13077  			return size
 13078  		}
 13079  		return uint64(1)
 13080  	}())
 13081  }
 13082  
 13083  // This variant of calloc does not return NULL if zero count is passed into.
 13084  func xcalloc(tls *libc.TLS, n Size_t, size Size_t) uintptr { /* Array.c:49:13: */
 13085  	return libc.Xcalloc(tls, func() uint64 {
 13086  		if n != 0 {
 13087  			return n
 13088  		}
 13089  		return uint64(1)
 13090  	}(), size)
 13091  }
 13092  
 13093  // This variant of realloc does not return NULL if zero size is passed into
 13094  func xrealloc(tls *libc.TLS, ptr uintptr, size Size_t) uintptr { /* Array.c:58:13: */
 13095  	return libc.Xrealloc(tls, ptr, func() uint64 {
 13096  		if size != 0 {
 13097  			return size
 13098  		}
 13099  		return uint64(1)
 13100  	}())
 13101  }
 13102  
 13103  func XXdmcpAllocARRAY8(tls *libc.TLS, array ARRAY8Ptr, length int32) int32 { /* Array.c:65:1: */
 13104  	// length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest)
 13105  	if length > UINT16_MAX || length < 0 {
 13106  		(*X_ARRAY8)(unsafe.Pointer(array)).Fdata = uintptr(0)
 13107  	} else {
 13108  		(*X_ARRAY8)(unsafe.Pointer(array)).Fdata = xmalloc(tls, uint64(length)*uint64(unsafe.Sizeof(CARD8(0))))
 13109  	}
 13110  
 13111  	if (*X_ARRAY8)(unsafe.Pointer(array)).Fdata == uintptr(0) {
 13112  		(*X_ARRAY8)(unsafe.Pointer(array)).Flength = CARD16(0)
 13113  		return FALSE
 13114  	}
 13115  	(*X_ARRAY8)(unsafe.Pointer(array)).Flength = CARD16(length)
 13116  	return TRUE
 13117  }
 13118  
 13119  func XXdmcpAllocARRAY16(tls *libc.TLS, array ARRAY16Ptr, length int32) int32 { /* Array.c:82:1: */
 13120  	// length defined in ARRAY16 struct is a CARD8
 13121  	if length > UINT8_MAX || length < 0 {
 13122  		(*X_ARRAY16)(unsafe.Pointer(array)).Fdata = uintptr(0)
 13123  	} else {
 13124  		(*X_ARRAY16)(unsafe.Pointer(array)).Fdata = xmalloc(tls, uint64(length)*uint64(unsafe.Sizeof(CARD16(0))))
 13125  	}
 13126  
 13127  	if (*X_ARRAY16)(unsafe.Pointer(array)).Fdata == uintptr(0) {
 13128  		(*X_ARRAY16)(unsafe.Pointer(array)).Flength = CARD8(0)
 13129  		return FALSE
 13130  	}
 13131  	(*X_ARRAY16)(unsafe.Pointer(array)).Flength = CARD8(length)
 13132  	return TRUE
 13133  }
 13134  
 13135  func XXdmcpAllocARRAY32(tls *libc.TLS, array ARRAY32Ptr, length int32) int32 { /* Array.c:99:1: */
 13136  	// length defined in ARRAY32 struct is a CARD8
 13137  	if length > UINT8_MAX || length < 0 {
 13138  		(*X_ARRAY32)(unsafe.Pointer(array)).Fdata = uintptr(0)
 13139  	} else {
 13140  		(*X_ARRAY32)(unsafe.Pointer(array)).Fdata = xmalloc(tls, uint64(length)*uint64(unsafe.Sizeof(CARD32(0))))
 13141  	}
 13142  
 13143  	if (*X_ARRAY32)(unsafe.Pointer(array)).Fdata == uintptr(0) {
 13144  		(*X_ARRAY32)(unsafe.Pointer(array)).Flength = CARD8(0)
 13145  		return FALSE
 13146  	}
 13147  	(*X_ARRAY32)(unsafe.Pointer(array)).Flength = CARD8(length)
 13148  	return TRUE
 13149  }
 13150  
 13151  func XXdmcpAllocARRAYofARRAY8(tls *libc.TLS, array ARRAYofARRAY8Ptr, length int32) int32 { /* Array.c:116:1: */
 13152  	// length defined in ARRAYofARRAY8 struct is a CARD8
 13153  	if length > UINT8_MAX || length < 0 {
 13154  		(*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = uintptr(0)
 13155  	} else {
 13156  		// Use calloc to ensure the pointers are cleared out so we
 13157  		// don't try to free garbage if XdmcpDisposeARRAYofARRAY8()
 13158  		// is called before the caller sets them to valid pointers.
 13159  		(*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = xcalloc(tls, uint64(length), uint64(unsafe.Sizeof(ARRAY8{})))
 13160  	}
 13161  
 13162  	if (*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata == uintptr(0) {
 13163  		(*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = CARD8(0)
 13164  		return FALSE
 13165  	}
 13166  	(*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = CARD8(length)
 13167  	return TRUE
 13168  }
 13169  
 13170  func XXdmcpARRAY8Equal(tls *libc.TLS, array1 ARRAY8Ptr, array2 ARRAY8Ptr) int32 { /* Array.c:138:1: */
 13171  	if int32((*X_ARRAY8)(unsafe.Pointer(array1)).Flength) != int32((*X_ARRAY8)(unsafe.Pointer(array2)).Flength) {
 13172  		return FALSE
 13173  	}
 13174  	if libc.Xmemcmp(tls, (*X_ARRAY8)(unsafe.Pointer(array1)).Fdata, (*X_ARRAY8)(unsafe.Pointer(array2)).Fdata, uint64((*X_ARRAY8)(unsafe.Pointer(array1)).Flength)) != 0 {
 13175  		return FALSE
 13176  	}
 13177  	return TRUE
 13178  }
 13179  
 13180  func XXdmcpCopyARRAY8(tls *libc.TLS, src ARRAY8Ptr, dst ARRAY8Ptr) int32 { /* Array.c:148:1: */
 13181  	if !(XXdmcpAllocARRAY8(tls, dst, int32((*X_ARRAY8)(unsafe.Pointer(src)).Flength)) != 0) {
 13182  		return FALSE
 13183  	}
 13184  	libc.X__builtin___memmove_chk(tls, (*X_ARRAY8)(unsafe.Pointer(dst)).Fdata, (*X_ARRAY8)(unsafe.Pointer(src)).Fdata, uint64((*X_ARRAY8)(unsafe.Pointer(src)).Flength)*uint64(unsafe.Sizeof(CARD8(0))), libc.X__builtin_object_size(tls, (*X_ARRAY8)(unsafe.Pointer(dst)).Fdata, 0))
 13185  	return TRUE
 13186  }
 13187  
 13188  func XXdmcpReallocARRAY8(tls *libc.TLS, array ARRAY8Ptr, length int32) int32 { /* Array.c:157:1: */
 13189  	var newData CARD8Ptr
 13190  
 13191  	// length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest)
 13192  	if length > UINT16_MAX || length < 0 {
 13193  		return FALSE
 13194  	}
 13195  
 13196  	newData = xrealloc(tls, (*X_ARRAY8)(unsafe.Pointer(array)).Fdata, uint64(length)*uint64(unsafe.Sizeof(CARD8(0))))
 13197  	if !(newData != 0) {
 13198  		return FALSE
 13199  	}
 13200  	(*X_ARRAY8)(unsafe.Pointer(array)).Flength = CARD16(length)
 13201  	(*X_ARRAY8)(unsafe.Pointer(array)).Fdata = newData
 13202  	return TRUE
 13203  }
 13204  
 13205  func XXdmcpReallocARRAYofARRAY8(tls *libc.TLS, array ARRAYofARRAY8Ptr, length int32) int32 { /* Array.c:174:1: */
 13206  	var newData ARRAY8Ptr
 13207  
 13208  	// length defined in ARRAYofARRAY8 struct is a CARD8
 13209  	if length > UINT8_MAX || length < 0 {
 13210  		return FALSE
 13211  	}
 13212  
 13213  	newData = xrealloc(tls, (*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata, uint64(length)*uint64(unsafe.Sizeof(ARRAY8{})))
 13214  	if !(newData != 0) {
 13215  		return FALSE
 13216  	}
 13217  	if length > int32((*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength) {
 13218  		libc.X__builtin___memset_chk(tls, newData+uintptr((*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*16, 0, uint64(length-int32((*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength))*uint64(unsafe.Sizeof(ARRAY8{})), libc.X__builtin_object_size(tls, newData+uintptr((*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*16, 0))
 13219  	}
 13220  	(*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = CARD8(length)
 13221  	(*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = newData
 13222  	return TRUE
 13223  }
 13224  
 13225  func XXdmcpReallocARRAY16(tls *libc.TLS, array ARRAY16Ptr, length int32) int32 { /* Array.c:194:1: */
 13226  	var newData CARD16Ptr
 13227  
 13228  	// length defined in ARRAY16 struct is a CARD8
 13229  	if length > UINT8_MAX || length < 0 {
 13230  		return FALSE
 13231  	}
 13232  	newData = xrealloc(tls, (*X_ARRAY16)(unsafe.Pointer(array)).Fdata, uint64(length)*uint64(unsafe.Sizeof(CARD16(0))))
 13233  	if !(newData != 0) {
 13234  		return FALSE
 13235  	}
 13236  	(*X_ARRAY16)(unsafe.Pointer(array)).Flength = CARD8(length)
 13237  	(*X_ARRAY16)(unsafe.Pointer(array)).Fdata = newData
 13238  	return TRUE
 13239  }
 13240  
 13241  func XXdmcpReallocARRAY32(tls *libc.TLS, array ARRAY32Ptr, length int32) int32 { /* Array.c:210:1: */
 13242  	var newData CARD32Ptr
 13243  
 13244  	// length defined in ARRAY32 struct is a CARD8
 13245  	if length > UINT8_MAX || length < 0 {
 13246  		return FALSE
 13247  	}
 13248  
 13249  	newData = xrealloc(tls, (*X_ARRAY32)(unsafe.Pointer(array)).Fdata, uint64(length)*uint64(unsafe.Sizeof(CARD32(0))))
 13250  	if !(newData != 0) {
 13251  		return FALSE
 13252  	}
 13253  	(*X_ARRAY32)(unsafe.Pointer(array)).Flength = CARD8(length)
 13254  	(*X_ARRAY32)(unsafe.Pointer(array)).Fdata = newData
 13255  	return TRUE
 13256  }
 13257  
 13258  func XXdmcpDisposeARRAY8(tls *libc.TLS, array ARRAY8Ptr) { /* Array.c:227:1: */
 13259  	libc.Xfree(tls, (*X_ARRAY8)(unsafe.Pointer(array)).Fdata)
 13260  	(*X_ARRAY8)(unsafe.Pointer(array)).Flength = CARD16(0)
 13261  	(*X_ARRAY8)(unsafe.Pointer(array)).Fdata = uintptr(0)
 13262  }
 13263  
 13264  func XXdmcpDisposeARRAY16(tls *libc.TLS, array ARRAY16Ptr) { /* Array.c:235:1: */
 13265  	libc.Xfree(tls, (*X_ARRAY16)(unsafe.Pointer(array)).Fdata)
 13266  	(*X_ARRAY16)(unsafe.Pointer(array)).Flength = CARD8(0)
 13267  	(*X_ARRAY16)(unsafe.Pointer(array)).Fdata = uintptr(0)
 13268  }
 13269  
 13270  func XXdmcpDisposeARRAY32(tls *libc.TLS, array ARRAY32Ptr) { /* Array.c:243:1: */
 13271  	libc.Xfree(tls, (*X_ARRAY32)(unsafe.Pointer(array)).Fdata)
 13272  	(*X_ARRAY32)(unsafe.Pointer(array)).Flength = CARD8(0)
 13273  	(*X_ARRAY32)(unsafe.Pointer(array)).Fdata = uintptr(0)
 13274  }
 13275  
 13276  func XXdmcpDisposeARRAYofARRAY8(tls *libc.TLS, array ARRAYofARRAY8Ptr) { /* Array.c:251:1: */
 13277  	var i int32
 13278  
 13279  	if (*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != uintptr(0) {
 13280  		for i = 0; i < int32((*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength); i++ {
 13281  			XXdmcpDisposeARRAY8(tls, (*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16)
 13282  		}
 13283  		libc.Xfree(tls, (*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata)
 13284  	}
 13285  	(*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = CARD8(0)
 13286  	(*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = uintptr(0)
 13287  }
 13288  
 13289  // getsubopt(3) external variable
 13290  // valloc is now declared in _malloc.h
 13291  
 13292  // Poison the following routines if -fshort-wchar is set
 13293  
 13294  // Copyright (c) 2000-2019 Apple Inc. All rights reserved.
 13295  //
 13296  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13297  //
 13298  // This file contains Original Code and/or Modifications of Original Code
 13299  // as defined in and that are subject to the Apple Public Source License
 13300  // Version 2.0 (the 'License'). You may not use this file except in
 13301  // compliance with the License. The rights granted to you under the License
 13302  // may not be used to create, or enable the creation or redistribution of,
 13303  // unlawful or unlicensed copies of an Apple operating system, or to
 13304  // circumvent, violate, or enable the circumvention or violation of, any
 13305  // terms of an Apple operating system software license agreement.
 13306  //
 13307  // Please obtain a copy of the License at
 13308  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13309  //
 13310  // The Original Code and all software distributed under the License are
 13311  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13312  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13313  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13314  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13315  // Please see the License for the specific language governing rights and
 13316  // limitations under the License.
 13317  //
 13318  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13319  // Copyright (c) 1998, 1999 Apple Computer, Inc. All Rights Reserved
 13320  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
 13321  // Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
 13322  //	The Regents of the University of California.  All rights reserved.
 13323  //
 13324  // Redistribution and use in source and binary forms, with or without
 13325  // modification, are permitted provided that the following conditions
 13326  // are met:
 13327  // 1. Redistributions of source code must retain the above copyright
 13328  //    notice, this list of conditions and the following disclaimer.
 13329  // 2. Redistributions in binary form must reproduce the above copyright
 13330  //    notice, this list of conditions and the following disclaimer in the
 13331  //    documentation and/or other materials provided with the distribution.
 13332  // 3. All advertising materials mentioning features or use of this software
 13333  //    must display the following acknowledgement:
 13334  //	This product includes software developed by the University of
 13335  //	California, Berkeley and its contributors.
 13336  // 4. Neither the name of the University nor the names of its contributors
 13337  //    may be used to endorse or promote products derived from this software
 13338  //    without specific prior written permission.
 13339  //
 13340  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13341  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13342  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13343  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13344  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13345  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13346  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13347  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13348  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13349  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13350  // SUCH DAMAGE.
 13351  //
 13352  //	@(#)socket.h	8.4 (Berkeley) 2/21/94
 13353  // $FreeBSD: src/sys/sys/socket.h,v 1.39.2.7 2001/07/03 11:02:01 ume Exp $
 13354  // NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
 13355  // support for mandatory and extensible security protections.  This notice
 13356  // is included in support of clause 2.2 (b) of the Apple Public License,
 13357  // Version 2.0.
 13358  
 13359  // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
 13360  //
 13361  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13362  //
 13363  // This file contains Original Code and/or Modifications of Original Code
 13364  // as defined in and that are subject to the Apple Public Source License
 13365  // Version 2.0 (the 'License'). You may not use this file except in
 13366  // compliance with the License. The rights granted to you under the License
 13367  // may not be used to create, or enable the creation or redistribution of,
 13368  // unlawful or unlicensed copies of an Apple operating system, or to
 13369  // circumvent, violate, or enable the circumvention or violation of, any
 13370  // terms of an Apple operating system software license agreement.
 13371  //
 13372  // Please obtain a copy of the License at
 13373  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13374  //
 13375  // The Original Code and all software distributed under the License are
 13376  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13377  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13378  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13379  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13380  // Please see the License for the specific language governing rights and
 13381  // limitations under the License.
 13382  //
 13383  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13384  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
 13385  // Copyright (c) 1982, 1986, 1991, 1993, 1994
 13386  //	The Regents of the University of California.  All rights reserved.
 13387  // (c) UNIX System Laboratories, Inc.
 13388  // All or some portions of this file are derived from material licensed
 13389  // to the University of California by American Telephone and Telegraph
 13390  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
 13391  // the permission of UNIX System Laboratories, Inc.
 13392  //
 13393  // Redistribution and use in source and binary forms, with or without
 13394  // modification, are permitted provided that the following conditions
 13395  // are met:
 13396  // 1. Redistributions of source code must retain the above copyright
 13397  //    notice, this list of conditions and the following disclaimer.
 13398  // 2. Redistributions in binary form must reproduce the above copyright
 13399  //    notice, this list of conditions and the following disclaimer in the
 13400  //    documentation and/or other materials provided with the distribution.
 13401  // 3. All advertising materials mentioning features or use of this software
 13402  //    must display the following acknowledgement:
 13403  //	This product includes software developed by the University of
 13404  //	California, Berkeley and its contributors.
 13405  // 4. Neither the name of the University nor the names of its contributors
 13406  //    may be used to endorse or promote products derived from this software
 13407  //    without specific prior written permission.
 13408  //
 13409  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13410  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13411  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13412  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13413  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13414  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13415  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13416  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13417  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13418  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13419  // SUCH DAMAGE.
 13420  //
 13421  //	@(#)types.h	8.4 (Berkeley) 1/21/94
 13422  
 13423  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 13424  //
 13425  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13426  //
 13427  // This file contains Original Code and/or Modifications of Original Code
 13428  // as defined in and that are subject to the Apple Public Source License
 13429  // Version 2.0 (the 'License'). You may not use this file except in
 13430  // compliance with the License. The rights granted to you under the License
 13431  // may not be used to create, or enable the creation or redistribution of,
 13432  // unlawful or unlicensed copies of an Apple operating system, or to
 13433  // circumvent, violate, or enable the circumvention or violation of, any
 13434  // terms of an Apple operating system software license agreement.
 13435  //
 13436  // Please obtain a copy of the License at
 13437  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13438  //
 13439  // The Original Code and all software distributed under the License are
 13440  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13441  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13442  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13443  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13444  // Please see the License for the specific language governing rights and
 13445  // limitations under the License.
 13446  //
 13447  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13448  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 13449  // Copyright (c) 1991, 1993
 13450  //	The Regents of the University of California.  All rights reserved.
 13451  //
 13452  // This code is derived from software contributed to Berkeley by
 13453  // Berkeley Software Design, Inc.
 13454  //
 13455  // Redistribution and use in source and binary forms, with or without
 13456  // modification, are permitted provided that the following conditions
 13457  // are met:
 13458  // 1. Redistributions of source code must retain the above copyright
 13459  //    notice, this list of conditions and the following disclaimer.
 13460  // 2. Redistributions in binary form must reproduce the above copyright
 13461  //    notice, this list of conditions and the following disclaimer in the
 13462  //    documentation and/or other materials provided with the distribution.
 13463  // 3. All advertising materials mentioning features or use of this software
 13464  //    must display the following acknowledgement:
 13465  //	This product includes software developed by the University of
 13466  //	California, Berkeley and its contributors.
 13467  // 4. Neither the name of the University nor the names of its contributors
 13468  //    may be used to endorse or promote products derived from this software
 13469  //    without specific prior written permission.
 13470  //
 13471  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13472  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13473  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13474  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13475  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13476  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13477  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13478  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13479  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13480  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13481  // SUCH DAMAGE.
 13482  //
 13483  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 13484  
 13485  // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
 13486  //
 13487  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13488  //
 13489  // This file contains Original Code and/or Modifications of Original Code
 13490  // as defined in and that are subject to the Apple Public Source License
 13491  // Version 2.0 (the 'License'). You may not use this file except in
 13492  // compliance with the License. The rights granted to you under the License
 13493  // may not be used to create, or enable the creation or redistribution of,
 13494  // unlawful or unlicensed copies of an Apple operating system, or to
 13495  // circumvent, violate, or enable the circumvention or violation of, any
 13496  // terms of an Apple operating system software license agreement.
 13497  //
 13498  // Please obtain a copy of the License at
 13499  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13500  //
 13501  // The Original Code and all software distributed under the License are
 13502  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13503  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13504  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13505  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13506  // Please see the License for the specific language governing rights and
 13507  // limitations under the License.
 13508  //
 13509  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13510  
 13511  // Copyright (c) 2006-2007 Apple Inc. All rights reserved.
 13512  
 13513  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 13514  
 13515  // Round p (pointer or byte index) up to a correctly-aligned value for all
 13516  // data types (int, long, ...).   The result is unsigned int and must be
 13517  // cast to any desired pointer type.
 13518  
 13519  // Copyright (c) 2016-2018 Apple Inc. All rights reserved.
 13520  //
 13521  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13522  //
 13523  // This file contains Original Code and/or Modifications of Original Code
 13524  // as defined in and that are subject to the Apple Public Source License
 13525  // Version 2.0 (the 'License'). You may not use this file except in
 13526  // compliance with the License. The rights granted to you under the License
 13527  // may not be used to create, or enable the creation or redistribution of,
 13528  // unlawful or unlicensed copies of an Apple operating system, or to
 13529  // circumvent, violate, or enable the circumvention or violation of, any
 13530  // terms of an Apple operating system software license agreement.
 13531  //
 13532  // Please obtain a copy of the License at
 13533  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13534  //
 13535  // The Original Code and all software distributed under the License are
 13536  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13537  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13538  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13539  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13540  // Please see the License for the specific language governing rights and
 13541  // limitations under the License.
 13542  //
 13543  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13544  
 13545  // Kernel event subclass identifiers for KEV_NETWORK_CLASS
 13546  // KEV_INET_SUBCLASS event codes
 13547  
 13548  // Define Data-Link event subclass, and associated
 13549  // events.
 13550  
 13551  // KEV_INET6_SUBCLASS event codes
 13552  
 13553  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
 13554  //
 13555  // @APPLE_LICENSE_HEADER_START@
 13556  //
 13557  // This file contains Original Code and/or Modifications of Original Code
 13558  // as defined in and that are subject to the Apple Public Source License
 13559  // Version 2.0 (the 'License'). You may not use this file except in
 13560  // compliance with the License. Please obtain a copy of the License at
 13561  // http://www.opensource.apple.com/apsl/ and read it before using this
 13562  // file.
 13563  //
 13564  // The Original Code and all software distributed under the License are
 13565  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13566  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13567  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13568  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13569  // Please see the License for the specific language governing rights and
 13570  // limitations under the License.
 13571  //
 13572  // @APPLE_LICENSE_HEADER_END@
 13573  
 13574  // Definitions related to sockets: types, address families, options.
 13575  
 13576  // Data types.
 13577  
 13578  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 13579  //
 13580  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13581  //
 13582  // This file contains Original Code and/or Modifications of Original Code
 13583  // as defined in and that are subject to the Apple Public Source License
 13584  // Version 2.0 (the 'License'). You may not use this file except in
 13585  // compliance with the License. The rights granted to you under the License
 13586  // may not be used to create, or enable the creation or redistribution of,
 13587  // unlawful or unlicensed copies of an Apple operating system, or to
 13588  // circumvent, violate, or enable the circumvention or violation of, any
 13589  // terms of an Apple operating system software license agreement.
 13590  //
 13591  // Please obtain a copy of the License at
 13592  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13593  //
 13594  // The Original Code and all software distributed under the License are
 13595  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13596  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13597  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13598  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13599  // Please see the License for the specific language governing rights and
 13600  // limitations under the License.
 13601  //
 13602  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13603  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 13604  //
 13605  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13606  //
 13607  // This file contains Original Code and/or Modifications of Original Code
 13608  // as defined in and that are subject to the Apple Public Source License
 13609  // Version 2.0 (the 'License'). You may not use this file except in
 13610  // compliance with the License. The rights granted to you under the License
 13611  // may not be used to create, or enable the creation or redistribution of,
 13612  // unlawful or unlicensed copies of an Apple operating system, or to
 13613  // circumvent, violate, or enable the circumvention or violation of, any
 13614  // terms of an Apple operating system software license agreement.
 13615  //
 13616  // Please obtain a copy of the License at
 13617  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13618  //
 13619  // The Original Code and all software distributed under the License are
 13620  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13621  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13622  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13623  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13624  // Please see the License for the specific language governing rights and
 13625  // limitations under the License.
 13626  //
 13627  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13628  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 13629  //
 13630  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13631  //
 13632  // This file contains Original Code and/or Modifications of Original Code
 13633  // as defined in and that are subject to the Apple Public Source License
 13634  // Version 2.0 (the 'License'). You may not use this file except in
 13635  // compliance with the License. The rights granted to you under the License
 13636  // may not be used to create, or enable the creation or redistribution of,
 13637  // unlawful or unlicensed copies of an Apple operating system, or to
 13638  // circumvent, violate, or enable the circumvention or violation of, any
 13639  // terms of an Apple operating system software license agreement.
 13640  //
 13641  // Please obtain a copy of the License at
 13642  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13643  //
 13644  // The Original Code and all software distributed under the License are
 13645  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13646  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13647  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13648  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13649  // Please see the License for the specific language governing rights and
 13650  // limitations under the License.
 13651  //
 13652  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13653  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 13654  //
 13655  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13656  //
 13657  // This file contains Original Code and/or Modifications of Original Code
 13658  // as defined in and that are subject to the Apple Public Source License
 13659  // Version 2.0 (the 'License'). You may not use this file except in
 13660  // compliance with the License. The rights granted to you under the License
 13661  // may not be used to create, or enable the creation or redistribution of,
 13662  // unlawful or unlicensed copies of an Apple operating system, or to
 13663  // circumvent, violate, or enable the circumvention or violation of, any
 13664  // terms of an Apple operating system software license agreement.
 13665  //
 13666  // Please obtain a copy of the License at
 13667  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13668  //
 13669  // The Original Code and all software distributed under the License are
 13670  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13671  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13672  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13673  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13674  // Please see the License for the specific language governing rights and
 13675  // limitations under the License.
 13676  //
 13677  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13678  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 13679  //
 13680  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13681  //
 13682  // This file contains Original Code and/or Modifications of Original Code
 13683  // as defined in and that are subject to the Apple Public Source License
 13684  // Version 2.0 (the 'License'). You may not use this file except in
 13685  // compliance with the License. The rights granted to you under the License
 13686  // may not be used to create, or enable the creation or redistribution of,
 13687  // unlawful or unlicensed copies of an Apple operating system, or to
 13688  // circumvent, violate, or enable the circumvention or violation of, any
 13689  // terms of an Apple operating system software license agreement.
 13690  //
 13691  // Please obtain a copy of the License at
 13692  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13693  //
 13694  // The Original Code and all software distributed under the License are
 13695  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13696  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13697  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13698  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13699  // Please see the License for the specific language governing rights and
 13700  // limitations under the License.
 13701  //
 13702  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13703  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 13704  type Sa_family_t = X__uint8_t /* _sa_family_t.h:31:33 */
 13705  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 13706  //
 13707  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13708  //
 13709  // This file contains Original Code and/or Modifications of Original Code
 13710  // as defined in and that are subject to the Apple Public Source License
 13711  // Version 2.0 (the 'License'). You may not use this file except in
 13712  // compliance with the License. The rights granted to you under the License
 13713  // may not be used to create, or enable the creation or redistribution of,
 13714  // unlawful or unlicensed copies of an Apple operating system, or to
 13715  // circumvent, violate, or enable the circumvention or violation of, any
 13716  // terms of an Apple operating system software license agreement.
 13717  //
 13718  // Please obtain a copy of the License at
 13719  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13720  //
 13721  // The Original Code and all software distributed under the License are
 13722  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13723  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13724  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13725  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13726  // Please see the License for the specific language governing rights and
 13727  // limitations under the License.
 13728  //
 13729  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13730  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 13731  //
 13732  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13733  //
 13734  // This file contains Original Code and/or Modifications of Original Code
 13735  // as defined in and that are subject to the Apple Public Source License
 13736  // Version 2.0 (the 'License'). You may not use this file except in
 13737  // compliance with the License. The rights granted to you under the License
 13738  // may not be used to create, or enable the creation or redistribution of,
 13739  // unlawful or unlicensed copies of an Apple operating system, or to
 13740  // circumvent, violate, or enable the circumvention or violation of, any
 13741  // terms of an Apple operating system software license agreement.
 13742  //
 13743  // Please obtain a copy of the License at
 13744  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13745  //
 13746  // The Original Code and all software distributed under the License are
 13747  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13748  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13749  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13750  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13751  // Please see the License for the specific language governing rights and
 13752  // limitations under the License.
 13753  //
 13754  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13755  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 13756  type Socklen_t = X__darwin_socklen_t /* _socklen_t.h:31:33 */
 13757  
 13758  // XXX Not explicitly defined by POSIX, but function return types are
 13759  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 13760  //
 13761  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13762  //
 13763  // This file contains Original Code and/or Modifications of Original Code
 13764  // as defined in and that are subject to the Apple Public Source License
 13765  // Version 2.0 (the 'License'). You may not use this file except in
 13766  // compliance with the License. The rights granted to you under the License
 13767  // may not be used to create, or enable the creation or redistribution of,
 13768  // unlawful or unlicensed copies of an Apple operating system, or to
 13769  // circumvent, violate, or enable the circumvention or violation of, any
 13770  // terms of an Apple operating system software license agreement.
 13771  //
 13772  // Please obtain a copy of the License at
 13773  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13774  //
 13775  // The Original Code and all software distributed under the License are
 13776  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13777  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13778  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13779  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13780  // Please see the License for the specific language governing rights and
 13781  // limitations under the License.
 13782  //
 13783  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13784  
 13785  // XXX Not explicitly defined by POSIX, but function return types are
 13786  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 13787  //
 13788  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13789  //
 13790  // This file contains Original Code and/or Modifications of Original Code
 13791  // as defined in and that are subject to the Apple Public Source License
 13792  // Version 2.0 (the 'License'). You may not use this file except in
 13793  // compliance with the License. The rights granted to you under the License
 13794  // may not be used to create, or enable the creation or redistribution of,
 13795  // unlawful or unlicensed copies of an Apple operating system, or to
 13796  // circumvent, violate, or enable the circumvention or violation of, any
 13797  // terms of an Apple operating system software license agreement.
 13798  //
 13799  // Please obtain a copy of the License at
 13800  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13801  //
 13802  // The Original Code and all software distributed under the License are
 13803  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13804  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13805  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13806  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13807  // Please see the License for the specific language governing rights and
 13808  // limitations under the License.
 13809  //
 13810  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13811  
 13812  // [XSI] The iovec structure shall be defined as described in <sys/uio.h>.
 13813  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 13814  //
 13815  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13816  //
 13817  // This file contains Original Code and/or Modifications of Original Code
 13818  // as defined in and that are subject to the Apple Public Source License
 13819  // Version 2.0 (the 'License'). You may not use this file except in
 13820  // compliance with the License. The rights granted to you under the License
 13821  // may not be used to create, or enable the creation or redistribution of,
 13822  // unlawful or unlicensed copies of an Apple operating system, or to
 13823  // circumvent, violate, or enable the circumvention or violation of, any
 13824  // terms of an Apple operating system software license agreement.
 13825  //
 13826  // Please obtain a copy of the License at
 13827  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13828  //
 13829  // The Original Code and all software distributed under the License are
 13830  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13831  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13832  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13833  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13834  // Please see the License for the specific language governing rights and
 13835  // limitations under the License.
 13836  //
 13837  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13838  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 13839  //
 13840  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13841  //
 13842  // This file contains Original Code and/or Modifications of Original Code
 13843  // as defined in and that are subject to the Apple Public Source License
 13844  // Version 2.0 (the 'License'). You may not use this file except in
 13845  // compliance with the License. The rights granted to you under the License
 13846  // may not be used to create, or enable the creation or redistribution of,
 13847  // unlawful or unlicensed copies of an Apple operating system, or to
 13848  // circumvent, violate, or enable the circumvention or violation of, any
 13849  // terms of an Apple operating system software license agreement.
 13850  //
 13851  // Please obtain a copy of the License at
 13852  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13853  //
 13854  // The Original Code and all software distributed under the License are
 13855  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13856  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13857  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13858  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13859  // Please see the License for the specific language governing rights and
 13860  // limitations under the License.
 13861  //
 13862  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13863  type Iovec = struct {
 13864  	Fiov_base uintptr
 13865  	Fiov_len  Size_t
 13866  } /* _iovec_t.h:31:1 */
 13867  
 13868  // Types
 13869  
 13870  // Option flags per-socket.
 13871  //  (ATOMIC proto)
 13872  
 13873  // Additional options, not kept in so_options.
 13874  
 13875  // When adding new socket-options, you need to make sure MPTCP supports these as well!
 13876  
 13877  // Network Service Type for option SO_NET_SERVICE_TYPE
 13878  //
 13879  // The vast majority of sockets should use Best Effort that is the default
 13880  // Network Service Type. Other Network Service Types have to be used only if
 13881  // the traffic actually matches the description of the Network Service Type.
 13882  //
 13883  // Network Service Types do not represent priorities but rather describe
 13884  // different categories of delay, jitter and loss parameters.
 13885  // Those parameters may influence protocols from layer 4 protocols like TCP
 13886  // to layer 2 protocols like Wi-Fi. The Network Service Type can determine
 13887  // how the traffic is queued and scheduled by the host networking stack and
 13888  // by other entities on the network like switches and routers. For example
 13889  // for Wi-Fi, the Network Service Type can select the marking of the
 13890  // layer 2 packet with the appropriate WMM Access Category.
 13891  //
 13892  // There is no point in attempting to game the system and use
 13893  // a Network Service Type that does not correspond to the actual
 13894  // traffic characteristic but one that seems to have a higher precedence.
 13895  // The reason is that for service classes that have lower tolerance
 13896  // for delay and jitter, the queues size is lower than for service
 13897  // classes that are more tolerant to delay and jitter.
 13898  //
 13899  // For example using a voice service type for bulk data transfer will lead
 13900  // to disastrous results as soon as congestion happens because the voice
 13901  // queue overflows and packets get dropped. This is not only bad for the bulk
 13902  // data transfer but it is also bad for VoIP apps that legitimately are using
 13903  // the voice  service type.
 13904  //
 13905  // The characteristics of the Network Service Types are based on the service
 13906  // classes defined in RFC 4594 "Configuration Guidelines for DiffServ Service
 13907  // Classes"
 13908  //
 13909  // When system detects the outgoing interface belongs to a DiffServ domain
 13910  // that follows the recommendation of the IETF draft "Guidelines for DiffServ to
 13911  // IEEE 802.11 Mapping", the packet will marked at layer 3 with a DSCP value
 13912  // that corresponds to Network Service Type.
 13913  //
 13914  // NET_SERVICE_TYPE_BE
 13915  //	"Best Effort", unclassified/standard.  This is the default service
 13916  //	class and cover the majority of the traffic.
 13917  //
 13918  // NET_SERVICE_TYPE_BK
 13919  //	"Background", high delay tolerant, loss tolerant. elastic flow,
 13920  //	variable size & long-lived. E.g: non-interactive network bulk transfer
 13921  //	like synching or backup.
 13922  //
 13923  // NET_SERVICE_TYPE_RD
 13924  //	"Responsive Data", a notch higher than "Best Effort", medium delay
 13925  //	tolerant, elastic & inelastic flow, bursty, long-lived. E.g. email,
 13926  //	instant messaging, for which there is a sense of interactivity and
 13927  //	urgency (user waiting for output).
 13928  //
 13929  // NET_SERVICE_TYPE_OAM
 13930  //	"Operations, Administration, and Management", medium delay tolerant,
 13931  //	low-medium loss tolerant, elastic & inelastic flows, variable size.
 13932  //	E.g. VPN tunnels.
 13933  //
 13934  // NET_SERVICE_TYPE_AV
 13935  //	"Multimedia Audio/Video Streaming", medium delay tolerant, low-medium
 13936  //	loss tolerant, elastic flow, constant packet interval, variable rate
 13937  //	and size. E.g. video and audio playback with buffering.
 13938  //
 13939  // NET_SERVICE_TYPE_RV
 13940  //	"Responsive Multimedia Audio/Video", low delay tolerant, low-medium
 13941  //	loss tolerant, elastic flow, variable packet interval, rate and size.
 13942  //	E.g. screen sharing.
 13943  //
 13944  // NET_SERVICE_TYPE_VI
 13945  //	"Interactive Video", low delay tolerant, low-medium loss tolerant,
 13946  //	elastic flow, constant packet interval, variable rate & size. E.g.
 13947  //	video telephony.
 13948  //
 13949  // NET_SERVICE_TYPE_SIG
 13950  //	"Signaling", low delay tolerant, low loss tolerant, inelastic flow,
 13951  //	jitter tolerant, rate is bursty but short, variable size. E.g. SIP.
 13952  //
 13953  // NET_SERVICE_TYPE_VO
 13954  //	"Interactive Voice", very low delay tolerant, very low loss tolerant,
 13955  //	inelastic flow, constant packet rate, somewhat fixed size.
 13956  //	E.g. VoIP.
 13957  
 13958  // These are supported values for SO_NETSVC_MARKING_LEVEL
 13959  
 13960  type Sae_associd_t = X__uint32_t /* socket.h:293:20 */
 13961  
 13962  type Sae_connid_t = X__uint32_t /* socket.h:297:20 */
 13963  
 13964  // connectx() flag parameters
 13965  
 13966  // sockaddr endpoints
 13967  type Sa_endpoints = struct {
 13968  	Fsae_srcif      uint32
 13969  	F__ccgo_pad1    [4]byte
 13970  	Fsae_srcaddr    uintptr
 13971  	Fsae_srcaddrlen Socklen_t
 13972  	F__ccgo_pad2    [4]byte
 13973  	Fsae_dstaddr    uintptr
 13974  	Fsae_dstaddrlen Socklen_t
 13975  	F__ccgo_pad3    [4]byte
 13976  } /* socket.h:307:9 */
 13977  
 13978  // connectx() flag parameters
 13979  
 13980  // sockaddr endpoints
 13981  type Sockaddr = struct {
 13982  	Fsa_len    X__uint8_t
 13983  	Fsa_family Sa_family_t
 13984  	Fsa_data   [14]int8
 13985  } /* socket.h:307:9 */
 13986  
 13987  // connectx() flag parameters
 13988  
 13989  // sockaddr endpoints
 13990  type Sa_endpoints_t = Sa_endpoints /* socket.h:313:3 */
 13991  
 13992  // Structure used for manipulating linger option.
 13993  type Linger = struct {
 13994  	Fl_onoff  int32
 13995  	Fl_linger int32
 13996  } /* socket.h:319:1 */
 13997  
 13998  // Structure to control non-portable Sockets extension to POSIX
 13999  type So_np_extensions = struct {
 14000  	Fnpx_flags U_int32_t
 14001  	Fnpx_mask  U_int32_t
 14002  } /* socket.h:337:1 */
 14003  
 14004  // Structure used by kernel to pass protocol
 14005  // information in raw sockets.
 14006  type Sockproto = struct {
 14007  	Fsp_family   X__uint16_t
 14008  	Fsp_protocol X__uint16_t
 14009  } /* socket.h:425:1 */
 14010  
 14011  // RFC 2553: protocol-independent placeholder for socket addresses
 14012  
 14013  // [XSI] sockaddr_storage
 14014  type Sockaddr_storage = struct {
 14015  	Fss_len     X__uint8_t
 14016  	Fss_family  Sa_family_t
 14017  	F__ss_pad1  [6]int8
 14018  	F__ss_align X__int64_t
 14019  	F__ss_pad2  [112]int8
 14020  } /* socket.h:445:1 */
 14021  
 14022  // Protocol families, same as address families for now.
 14023  
 14024  // These do not have socket-layer support:
 14025  
 14026  // Definitions for network related sysctl, CTL_NET.
 14027  //
 14028  // Second level is protocol family.
 14029  // Third level is protocol number.
 14030  //
 14031  // Further levels are defined by the individual families below.
 14032  
 14033  // PF_ROUTE - Routing table
 14034  //
 14035  // Three additional levels are defined:
 14036  //	Fourth: address family, 0 is wildcard
 14037  //	Fifth: type of info, defined below
 14038  //	Sixth: flag(s) to mask with for NET_RT_FLAGS
 14039  // Allows read access non-local host's MAC address
 14040  // if the process has neighbor cache entitlement.
 14041  
 14042  // Maximum queue length specifiable by listen.
 14043  
 14044  // [XSI] Message header for recvmsg and sendmsg calls.
 14045  // Used value-result for recvmsg, value only for sendmsg.
 14046  type Msghdr = struct {
 14047  	Fmsg_name       uintptr
 14048  	Fmsg_namelen    Socklen_t
 14049  	F__ccgo_pad1    [4]byte
 14050  	Fmsg_iov        uintptr
 14051  	Fmsg_iovlen     int32
 14052  	F__ccgo_pad2    [4]byte
 14053  	Fmsg_control    uintptr
 14054  	Fmsg_controllen Socklen_t
 14055  	Fmsg_flags      int32
 14056  } /* socket.h:552:1 */
 14057  
 14058  // Header for ancillary data objects in msg_control buffer.
 14059  // Used for additional information with/about a datagram
 14060  // not expressible by flags.  The format is a sequence
 14061  // of message elements headed by cmsghdr structures.
 14062  type Cmsghdr = struct {
 14063  	Fcmsg_len   Socklen_t
 14064  	Fcmsg_level int32
 14065  	Fcmsg_type  int32
 14066  } /* socket.h:600:1 */
 14067  
 14068  // given pointer to struct cmsghdr, return pointer to data
 14069  
 14070  // RFC 2292 requires to check msg_controllen, in case that the kernel returns
 14071  // an empty list for some reasons.
 14072  
 14073  // Given pointer to struct cmsghdr, return pointer to next cmsghdr
 14074  // RFC 2292 says that CMSG_NXTHDR(mhdr, NULL) is equivalent to CMSG_FIRSTHDR(mhdr)
 14075  
 14076  // RFC 2292 additions
 14077  
 14078  // "Socket"-level control message types:
 14079  
 14080  // howto arguments for shutdown(2), specified by Posix.1g.
 14081  
 14082  // sendfile(2) header/trailer struct
 14083  type Sf_hdtr = struct {
 14084  	Fheaders     uintptr
 14085  	Fhdr_cnt     int32
 14086  	F__ccgo_pad1 [4]byte
 14087  	Ftrailers    uintptr
 14088  	Ftrl_cnt     int32
 14089  	F__ccgo_pad2 [4]byte
 14090  } /* socket.h:691:1 */
 14091  
 14092  func XXdmcpFill(tls *libc.TLS, fd int32, buffer XdmcpBufferPtr, from XdmcpNetaddr, fromlen uintptr) int32 { /* Fill.c:46:1: */
 14093  	var newBuf uintptr
 14094  
 14095  	if (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < XDM_MAX_MSGLEN {
 14096  		newBuf = libc.Xmalloc(tls, uint64(XDM_MAX_MSGLEN))
 14097  		if newBuf != 0 {
 14098  			libc.Xfree(tls, (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
 14099  			(*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newBuf
 14100  			(*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = XDM_MAX_MSGLEN
 14101  		}
 14102  	}
 14103  	(*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
 14104  	(*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount = int32(libc.Xrecvfrom(tls, fd, (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata, uint64((*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize), 0,
 14105  		from, fromlen))
 14106  	if (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount < 6 {
 14107  		(*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount = 0
 14108  		return FALSE
 14109  	}
 14110  	return TRUE
 14111  }
 14112  
 14113  func XXdmcpFlush(tls *libc.TLS, fd int32, buffer XdmcpBufferPtr, to XdmcpNetaddr, tolen int32) int32 { /* Flush.c:45:1: */
 14114  	var result int32
 14115  	result = int32(libc.Xsendto(tls, fd, (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata, uint64((*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer), 0,
 14116  		to, uint32(tolen)))
 14117  	if result != (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer {
 14118  		return FALSE
 14119  	}
 14120  	return TRUE
 14121  }
 14122  
 14123  // getsubopt(3) external variable
 14124  // valloc is now declared in _malloc.h
 14125  
 14126  // Poison the following routines if -fshort-wchar is set
 14127  
 14128  func XXdmcpGenerateKey(tls *libc.TLS, key XdmAuthKeyPtr) { /* Key.c:66:1: */
 14129  	libc.Xarc4random_buf(tls, key, uint64(8))
 14130  }
 14131  
 14132  func XXdmcpCompareKeys(tls *libc.TLS, a XdmAuthKeyPtr, b XdmAuthKeyPtr) int32 { /* Key.c:82:1: */
 14133  	var i int32
 14134  
 14135  	for i = 0; i < 8; i++ {
 14136  		if int32(*(*BYTE)(unsafe.Pointer(a + uintptr(i)))) != int32(*(*BYTE)(unsafe.Pointer(b + uintptr(i)))) {
 14137  			return FALSE
 14138  		}
 14139  	}
 14140  	return TRUE
 14141  }
 14142  
 14143  func XXdmcpIncrementKey(tls *libc.TLS, key XdmAuthKeyPtr) { /* Key.c:93:1: */
 14144  	var i int32
 14145  
 14146  	i = 7
 14147  	for int32(libc.PreIncUint8(&*(*BYTE)(unsafe.Pointer(key + uintptr(i))), 1)) == 0 {
 14148  		if libc.PreDecInt32(&i, 1) < 0 {
 14149  			break
 14150  		}
 14151  	}
 14152  }
 14153  
 14154  func XXdmcpDecrementKey(tls *libc.TLS, key XdmAuthKeyPtr) { /* Key.c:104:1: */
 14155  	var i int32
 14156  
 14157  	i = 7
 14158  	for int32(libc.PostDecUint8(&*(*BYTE)(unsafe.Pointer(key + uintptr(i))), 1)) == 0 {
 14159  		if libc.PreDecInt32(&i, 1) < 0 {
 14160  			break
 14161  		}
 14162  	}
 14163  }
 14164  
 14165  // getsubopt(3) external variable
 14166  // valloc is now declared in _malloc.h
 14167  
 14168  // Poison the following routines if -fshort-wchar is set
 14169  
 14170  func XXdmcpReadHeader(tls *libc.TLS, buffer XdmcpBufferPtr, header XdmcpHeaderPtr) int32 { /* Read.c:37:1: */
 14171  	if XXdmcpReadCARD16(tls, buffer, header) != 0 && XXdmcpReadCARD16(tls, buffer, header+2) != 0 && XXdmcpReadCARD16(tls, buffer, header+4) != 0 {
 14172  		return TRUE
 14173  	}
 14174  	return FALSE
 14175  }
 14176  
 14177  func XXdmcpReadRemaining(tls *libc.TLS, buffer XdmcpBufferPtr) int32 { /* Read.c:47:1: */
 14178  	return (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount - (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer
 14179  }
 14180  
 14181  func XXdmcpReadARRAY8(tls *libc.TLS, buffer XdmcpBufferPtr, array ARRAY8Ptr) int32 { /* Read.c:53:1: */
 14182  	var i int32
 14183  
 14184  	// When returning FALSE, guarantee that array->data = 0.
 14185  	// This allows the user to safely call XdmcpDisposeARRAY8(array)
 14186  	// regardless of the return value below.
 14187  	// Note that XdmcpDisposeARRAY*(array) will call free(array->data),
 14188  	// so we must guarantee that array->data is NULL or a malloced pointer.
 14189  	if !(XXdmcpReadCARD16(tls, buffer, array) != 0) {
 14190  		(*X_ARRAY8)(unsafe.Pointer(array)).Fdata = uintptr(0)
 14191  		return FALSE
 14192  	}
 14193  	if !(int32((*X_ARRAY8)(unsafe.Pointer(array)).Flength) != 0) {
 14194  		(*X_ARRAY8)(unsafe.Pointer(array)).Fdata = uintptr(0)
 14195  		return TRUE
 14196  	}
 14197  	(*X_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*X_ARRAY8)(unsafe.Pointer(array)).Flength)*uint64(unsafe.Sizeof(CARD8(0))))
 14198  	if !(int32((*X_ARRAY8)(unsafe.Pointer(array)).Fdata) != 0) {
 14199  		return FALSE
 14200  	}
 14201  	for i = 0; i < int32((*X_ARRAY8)(unsafe.Pointer(array)).Flength); i++ {
 14202  		if !(XXdmcpReadCARD8(tls, buffer, (*X_ARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)) != 0) {
 14203  			libc.Xfree(tls, (*X_ARRAY8)(unsafe.Pointer(array)).Fdata)
 14204  			(*X_ARRAY8)(unsafe.Pointer(array)).Fdata = uintptr(0)
 14205  			(*X_ARRAY8)(unsafe.Pointer(array)).Flength = CARD16(0)
 14206  			return FALSE
 14207  		}
 14208  	}
 14209  	return TRUE
 14210  }
 14211  
 14212  func XXdmcpReadARRAY16(tls *libc.TLS, buffer XdmcpBufferPtr, array ARRAY16Ptr) int32 { /* Read.c:90:1: */
 14213  	var i int32
 14214  
 14215  	// When returning FALSE, guarantee that array->data = 0.
 14216  	// This allows the user to safely call XdmcpDisposeARRAY16(array)
 14217  	// regardless of the return value below.
 14218  	// Note that XdmcpDisposeARRAY*(array) will call free(array->data),
 14219  	// so we must guarantee that array->data is NULL or a malloced pointer.
 14220  	if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
 14221  		(*X_ARRAY16)(unsafe.Pointer(array)).Fdata = uintptr(0)
 14222  		return FALSE
 14223  	}
 14224  	if !(int32((*X_ARRAY16)(unsafe.Pointer(array)).Flength) != 0) {
 14225  		(*X_ARRAY16)(unsafe.Pointer(array)).Fdata = uintptr(0)
 14226  		return TRUE
 14227  	}
 14228  	(*X_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*X_ARRAY16)(unsafe.Pointer(array)).Flength)*uint64(unsafe.Sizeof(CARD16(0))))
 14229  	if !(int32((*X_ARRAY16)(unsafe.Pointer(array)).Fdata) != 0) {
 14230  		return FALSE
 14231  	}
 14232  	for i = 0; i < int32((*X_ARRAY16)(unsafe.Pointer(array)).Flength); i++ {
 14233  		if !(XXdmcpReadCARD16(tls, buffer, (*X_ARRAY16)(unsafe.Pointer(array)).Fdata+uintptr(i)*2) != 0) {
 14234  			libc.Xfree(tls, (*X_ARRAY16)(unsafe.Pointer(array)).Fdata)
 14235  			(*X_ARRAY16)(unsafe.Pointer(array)).Fdata = uintptr(0)
 14236  			(*X_ARRAY16)(unsafe.Pointer(array)).Flength = CARD8(0)
 14237  			return FALSE
 14238  		}
 14239  	}
 14240  	return TRUE
 14241  }
 14242  
 14243  func XXdmcpReadARRAY32(tls *libc.TLS, buffer XdmcpBufferPtr, array ARRAY32Ptr) int32 { /* Read.c:127:1: */
 14244  	var i int32
 14245  
 14246  	// When returning FALSE, guarantee that array->data = 0.
 14247  	// This allows the user to safely call XdmcpDisposeARRAY32(array)
 14248  	// regardless of the return value below.
 14249  	// Note that XdmcpDisposeARRAY*(array) will call free(array->data),
 14250  	// so we must guarantee that array->data is NULL or a malloced pointer.
 14251  	if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
 14252  		(*X_ARRAY32)(unsafe.Pointer(array)).Fdata = uintptr(0)
 14253  		return FALSE
 14254  	}
 14255  	if !(int32((*X_ARRAY32)(unsafe.Pointer(array)).Flength) != 0) {
 14256  		(*X_ARRAY32)(unsafe.Pointer(array)).Fdata = uintptr(0)
 14257  		return TRUE
 14258  	}
 14259  	(*X_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*X_ARRAY32)(unsafe.Pointer(array)).Flength)*uint64(unsafe.Sizeof(CARD32(0))))
 14260  	if !(int32((*X_ARRAY32)(unsafe.Pointer(array)).Fdata) != 0) {
 14261  		return FALSE
 14262  	}
 14263  	for i = 0; i < int32((*X_ARRAY32)(unsafe.Pointer(array)).Flength); i++ {
 14264  		if !(XXdmcpReadCARD32(tls, buffer, (*X_ARRAY32)(unsafe.Pointer(array)).Fdata+uintptr(i)*4) != 0) {
 14265  			libc.Xfree(tls, (*X_ARRAY32)(unsafe.Pointer(array)).Fdata)
 14266  			(*X_ARRAY32)(unsafe.Pointer(array)).Fdata = uintptr(0)
 14267  			(*X_ARRAY32)(unsafe.Pointer(array)).Flength = CARD8(0)
 14268  			return FALSE
 14269  		}
 14270  	}
 14271  	return TRUE
 14272  }
 14273  
 14274  func XXdmcpReadARRAYofARRAY8(tls *libc.TLS, buffer XdmcpBufferPtr, array ARRAYofARRAY8Ptr) int32 { /* Read.c:164:1: */
 14275  	var i CARD8
 14276  
 14277  	// When returning FALSE, guarantee that array->data = 0.
 14278  	// This allows the user to safely call XdmcpDisposeARRAYofARRAY8(array)
 14279  	// regardless of the return value below.
 14280  	// Note that XdmcpDisposeARRAY*(array) will call free(array->data),
 14281  	// so we must guarantee that array->data is NULL or a malloced pointer.
 14282  	if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
 14283  		(*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = uintptr(0)
 14284  		return FALSE
 14285  	}
 14286  	if !(int32((*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength) != 0) {
 14287  		(*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = uintptr(0)
 14288  		return TRUE
 14289  	}
 14290  	(*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint64((*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*uint64(unsafe.Sizeof(ARRAY8{})))
 14291  	if !(int32((*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata) != 0) {
 14292  		return FALSE
 14293  	}
 14294  	for i = CARD8(0); int32(i) < int32((*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength); i++ {
 14295  		if !(XXdmcpReadARRAY8(tls, buffer, (*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16) != 0) {
 14296  			// We must free all of the arrays allocated thus far in the loop
 14297  			// and free array->data and finally set array->data = 0;
 14298  			// The easiest way to do this is to reset the length and call
 14299  			// XdmcpDisposeARRAYofARRAY8(array).
 14300  			(*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = i
 14301  			XXdmcpDisposeARRAYofARRAY8(tls, array)
 14302  			return FALSE
 14303  		}
 14304  	}
 14305  	return TRUE
 14306  }
 14307  
 14308  func XXdmcpReadCARD8(tls *libc.TLS, buffer XdmcpBufferPtr, valuep CARD8Ptr) int32 { /* Read.c:206:1: */
 14309  	if (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount {
 14310  		return FALSE
 14311  	}
 14312  	*(*CARD8)(unsafe.Pointer(valuep)) = *(*BYTE)(unsafe.Pointer((*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(libc.PostIncInt32(&(*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer, 1))))
 14313  	return TRUE
 14314  }
 14315  
 14316  func XXdmcpReadCARD16(tls *libc.TLS, buffer XdmcpBufferPtr, valuep CARD16Ptr) int32 { /* Read.c:215:1: */
 14317  	bp := tls.Alloc(2)
 14318  	defer tls.Free(2)
 14319  
 14320  	// var high CARD8 at bp, 1
 14321  
 14322  	// var low CARD8 at bp+1, 1
 14323  
 14324  	if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 {
 14325  		*(*CARD16)(unsafe.Pointer(valuep)) = CARD16(int32(CARD16(*(*CARD8)(unsafe.Pointer(bp))))<<8 | int32(CARD16(*(*CARD8)(unsafe.Pointer(bp + 1)))))
 14326  		return TRUE
 14327  	}
 14328  	return FALSE
 14329  }
 14330  
 14331  func XXdmcpReadCARD32(tls *libc.TLS, buffer XdmcpBufferPtr, valuep CARD32Ptr) int32 { /* Read.c:229:1: */
 14332  	bp := tls.Alloc(4)
 14333  	defer tls.Free(4)
 14334  
 14335  	// var byte0 CARD8 at bp, 1
 14336  
 14337  	// var byte1 CARD8 at bp+1, 1
 14338  
 14339  	// var byte2 CARD8 at bp+2, 1
 14340  
 14341  	// var byte3 CARD8 at bp+3, 1
 14342  
 14343  	if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 && XXdmcpReadCARD8(tls, buffer, bp+2) != 0 && XXdmcpReadCARD8(tls, buffer, bp+3) != 0 {
 14344  		*(*CARD32)(unsafe.Pointer(valuep)) = CARD32(*(*CARD8)(unsafe.Pointer(bp)))<<24 | CARD32(*(*CARD8)(unsafe.Pointer(bp + 1)))<<16 | CARD32(*(*CARD8)(unsafe.Pointer(bp + 2)))<<8 | CARD32(*(*CARD8)(unsafe.Pointer(bp + 3)))
 14345  		return TRUE
 14346  	}
 14347  	return FALSE
 14348  }
 14349  
 14350  // The following function exists only to demonstrate the
 14351  // desired functional interface for this routine.  You will
 14352  // need to add the appropriate algorithm if you wish to
 14353  // use XDM-AUTHENTICATION-1/XDM-AUTHORIZATION-1.
 14354  //
 14355  // The interface for this routine is quite simple.  All three
 14356  // arguments are arrays of 8 unsigned characters, the first two
 14357  // are 64 bits of useful data, the last is 56 bits of useful
 14358  // data packed into 8 bytes, using the low 7 bits of each
 14359  // byte, filling the high bit with odd parity.
 14360  //
 14361  // Examine the XDMCP specification for the correct algorithm
 14362  
 14363  // header file for compatibility with something useful
 14364  
 14365  type Auth_cblock = [8]uint8 /* Wrap.h:5:23 */ // block size
 14366  
 14367  type Auth_ks_struct = struct{ F_ Auth_cblock } /* Wrap.h:7:9 */
 14368  
 14369  // block size
 14370  
 14371  type Auth_wrapper_schedule = [16]Auth_ks_struct /* Wrap.h:7:50 */
 14372  
 14373  func XXdmcpUnwrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) { /* Unwrap.c:55:1: */
 14374  	bp := tls.Alloc(160)
 14375  	defer tls.Free(160)
 14376  
 14377  	var i int32
 14378  	var j int32
 14379  	var k int32
 14380  	// var tmp [8]uint8 at bp+152, 8
 14381  
 14382  	// var blocks [2][8]uint8 at bp+136, 16
 14383  
 14384  	// var expand_wrapper [8]uint8 at bp, 8
 14385  
 14386  	// var schedule Auth_wrapper_schedule at bp+8, 128
 14387  
 14388  	X_XdmcpWrapperToOddParity(tls, wrapper, bp)
 14389  	X_XdmcpAuthSetup(tls, bp, bp+8)
 14390  
 14391  	k = 0
 14392  	for j = 0; j < bytes; j = j + 8 {
 14393  		if bytes-j < 8 {
 14394  			return
 14395  		} // bad input length
 14396  		for i = 0; i < 8; i++ {
 14397  			*(*uint8)(unsafe.Pointer(bp + 136 + uintptr(k)*8 + uintptr(i))) = *(*uint8)(unsafe.Pointer(input + uintptr(j+i)))
 14398  		}
 14399  		X_XdmcpAuthDoIt(tls, input+uintptr(j), bp+152, bp+8, 0)
 14400  		// block chaining
 14401  		if k == 0 {
 14402  			k = 1
 14403  		} else {
 14404  			k = 0
 14405  		}
 14406  		for i = 0; i < 8; i++ {
 14407  			if j == 0 {
 14408  				*(*uint8)(unsafe.Pointer(output + uintptr(j+i))) = *(*uint8)(unsafe.Pointer(bp + 152 + uintptr(i)))
 14409  			} else {
 14410  				*(*uint8)(unsafe.Pointer(output + uintptr(j+i))) = uint8(int32(*(*uint8)(unsafe.Pointer(bp + 152 + uintptr(i)))) ^ int32(*(*uint8)(unsafe.Pointer(bp + 136 + uintptr(k)*8 + uintptr(i)))))
 14411  			}
 14412  		}
 14413  	}
 14414  }
 14415  
 14416  func XXdmcpWrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) { /* Wrap.c:49:1: */
 14417  	bp := tls.Alloc(144)
 14418  	defer tls.Free(144)
 14419  
 14420  	var i int32
 14421  	var j int32
 14422  	var len int32
 14423  	// var tmp [8]uint8 at bp+136, 8
 14424  
 14425  	// var expand_wrapper [8]uint8 at bp, 8
 14426  
 14427  	// var schedule Auth_wrapper_schedule at bp+8, 128
 14428  
 14429  	X_XdmcpWrapperToOddParity(tls, wrapper, bp)
 14430  	X_XdmcpAuthSetup(tls, bp, bp+8)
 14431  	for j = 0; j < bytes; j = j + 8 {
 14432  		len = 8
 14433  		if bytes-j < len {
 14434  			len = bytes - j
 14435  		}
 14436  		// block chaining
 14437  		for i = 0; i < len; i++ {
 14438  			if j == 0 {
 14439  				*(*uint8)(unsafe.Pointer(bp + 136 + uintptr(i))) = *(*uint8)(unsafe.Pointer(input + uintptr(i)))
 14440  			} else {
 14441  				*(*uint8)(unsafe.Pointer(bp + 136 + uintptr(i))) = uint8(int32(*(*uint8)(unsafe.Pointer(input + uintptr(j+i)))) ^ int32(*(*uint8)(unsafe.Pointer(output + uintptr(j-8+i)))))
 14442  			}
 14443  		}
 14444  		for ; i < 8; i++ {
 14445  			if j == 0 {
 14446  				*(*uint8)(unsafe.Pointer(bp + 136 + uintptr(i))) = uint8(0)
 14447  			} else {
 14448  				*(*uint8)(unsafe.Pointer(bp + 136 + uintptr(i))) = uint8(0 ^ int32(*(*uint8)(unsafe.Pointer(output + uintptr(j-8+i)))))
 14449  			}
 14450  		}
 14451  		X_XdmcpAuthDoIt(tls, bp+136, output+uintptr(j), bp+8, 1)
 14452  	}
 14453  }
 14454  
 14455  // Given a 56 bit wrapper in XDMCP format, create a 56
 14456  // bit wrapper in 7-bits + odd parity format
 14457  
 14458  func sOddParity(tls *libc.TLS, c uint8) int32 { /* Wrap.c:93:1: */
 14459  	c = uint8(int32(c) ^ int32(c)>>4)
 14460  	c = uint8(int32(c) ^ int32(c)>>2)
 14461  	c = uint8(int32(c) ^ int32(c)>>1)
 14462  	return ^int32(c) & 0x1
 14463  }
 14464  
 14465  // Spread the 56 bit wrapper among 8 bytes, using the upper 7 bits
 14466  // of each byte, and storing an odd parity bit in the low bit
 14467  
 14468  func X_XdmcpWrapperToOddParity(tls *libc.TLS, in uintptr, out uintptr) { /* Wrap.c:107:1: */
 14469  	var ashift int32
 14470  	var bshift int32
 14471  	var i int32
 14472  	var c uint8
 14473  
 14474  	ashift = 7
 14475  	bshift = 1
 14476  	for i = 0; i < 7; i++ {
 14477  		c = uint8((int32(*(*uint8)(unsafe.Pointer(in + uintptr(i))))<<ashift | int32(*(*uint8)(unsafe.Pointer(in + uintptr(i+1))))>>bshift) & 0x7f)
 14478  		*(*uint8)(unsafe.Pointer(out + uintptr(i))) = uint8(int32(c)<<1 | sOddParity(tls, c))
 14479  		ashift--
 14480  		bshift++
 14481  	}
 14482  	c = *(*uint8)(unsafe.Pointer(in + uintptr(i)))
 14483  	*(*uint8)(unsafe.Pointer(out + uintptr(i))) = uint8(int32(c)<<1 | sOddParity(tls, c))
 14484  }
 14485  
 14486  // des routines for non-usa - eay 10/9/1991 eay@psych.psy.uq.oz.au
 14487  // These routines were written for speed not size so they are bigger than
 14488  // needed.  I have removed some of the loop unrolling, this will reduce
 14489  // code size at the expense of some speed.
 14490  // 25/9/1991 eay - much faster _XdmcpAuthSetup (4 times faster).
 14491  // 19/9/1991 eay - cleaned up the IP and FP code.
 14492  // 10/9/1991 eay - first release.
 14493  // The des routines this file has been made from can be found in
 14494  // ftp.psy.uq.oz.au /pub/DES
 14495  // This particular version derived from OpenBSD Revsion 1.3.
 14496  
 14497  //
 14498  // Export Requirements.
 14499  // You may not export or re-export this software or any copy or
 14500  // adaptation in violation of any applicable laws or regulations.
 14501  //
 14502  // Without limiting the generality of the foregoing, hardware, software,
 14503  // technology or services provided under this license agreement may not
 14504  // be exported, reexported, transferred or downloaded to or within (or to
 14505  // a national resident of) countries under U.S. economic embargo
 14506  // including the following countries:
 14507  //
 14508  // Cuba, Iran, Libya, North Korea, Sudan and Syria. This list is subject
 14509  // to change.
 14510  //
 14511  // Hardware, software, technology or services may not be exported,
 14512  // reexported, transferred or downloaded to persons or entities listed on
 14513  // the U.S. Department of Commerce Denied Persons List, Entity List of
 14514  // proliferation concern or on any U.S. Treasury Department Designated
 14515  // Nationals exclusion list, or to parties directly or indirectly
 14516  // involved in the development or production of nuclear, chemical,
 14517  // biological weapons or in missile technology programs as specified in
 14518  // the U.S. Export Administration Regulations (15 CFR 744).
 14519  //
 14520  // By accepting this license agreement you confirm that you are not
 14521  // located in (or a national resident of) any country under U.S. economic
 14522  // embargo, not identified on any U.S. Department of Commerce Denied
 14523  // Persons List, Entity List or Treasury Department Designated Nationals
 14524  // exclusion list, and not directly or indirectly involved in the
 14525  // development or production of nuclear, chemical, biological weapons or
 14526  // in missile technology programs as specified in the U.S. Export
 14527  // Administration Regulations.
 14528  //
 14529  //
 14530  // Local Country Import Requirements. The software you are about to
 14531  // download contains cryptography technology. Some countries regulate the
 14532  // import, use and/or export of certain products with cryptography. The
 14533  // X.org Foundation makes no claims as to the applicability of local
 14534  // country import, use and/or export regulations in relation to the
 14535  // download of this product. If you are located outside the U.S. and
 14536  // Canada you are advised to consult your local country regulations to
 14537  // insure compliance.
 14538  
 14539  var skb = [8][64]CARD32{
 14540  	// for C bits (numbered as per FIPS 46) 1 2 3 4 5 6
 14541  	{CARD32(0x00000000), CARD32(0x00000010), CARD32(0x20000000), CARD32(0x20000010),
 14542  		CARD32(0x00010000), CARD32(0x00010010), CARD32(0x20010000), CARD32(0x20010010),
 14543  		CARD32(0x00000800), CARD32(0x00000810), CARD32(0x20000800), CARD32(0x20000810),
 14544  		CARD32(0x00010800), CARD32(0x00010810), CARD32(0x20010800), CARD32(0x20010810),
 14545  		CARD32(0x00000020), CARD32(0x00000030), CARD32(0x20000020), CARD32(0x20000030),
 14546  		CARD32(0x00010020), CARD32(0x00010030), CARD32(0x20010020), CARD32(0x20010030),
 14547  		CARD32(0x00000820), CARD32(0x00000830), CARD32(0x20000820), CARD32(0x20000830),
 14548  		CARD32(0x00010820), CARD32(0x00010830), CARD32(0x20010820), CARD32(0x20010830),
 14549  		CARD32(0x00080000), CARD32(0x00080010), CARD32(0x20080000), CARD32(0x20080010),
 14550  		CARD32(0x00090000), CARD32(0x00090010), CARD32(0x20090000), CARD32(0x20090010),
 14551  		CARD32(0x00080800), CARD32(0x00080810), CARD32(0x20080800), CARD32(0x20080810),
 14552  		CARD32(0x00090800), CARD32(0x00090810), CARD32(0x20090800), CARD32(0x20090810),
 14553  		CARD32(0x00080020), CARD32(0x00080030), CARD32(0x20080020), CARD32(0x20080030),
 14554  		CARD32(0x00090020), CARD32(0x00090030), CARD32(0x20090020), CARD32(0x20090030),
 14555  		CARD32(0x00080820), CARD32(0x00080830), CARD32(0x20080820), CARD32(0x20080830),
 14556  		CARD32(0x00090820), CARD32(0x00090830), CARD32(0x20090820), CARD32(0x20090830)},
 14557  	// for C bits (numbered as per FIPS 46) 7 8 10 11 12 13
 14558  	{CARD32(0x00000000), CARD32(0x02000000), CARD32(0x00002000), CARD32(0x02002000),
 14559  		CARD32(0x00200000), CARD32(0x02200000), CARD32(0x00202000), CARD32(0x02202000),
 14560  		CARD32(0x00000004), CARD32(0x02000004), CARD32(0x00002004), CARD32(0x02002004),
 14561  		CARD32(0x00200004), CARD32(0x02200004), CARD32(0x00202004), CARD32(0x02202004),
 14562  		CARD32(0x00000400), CARD32(0x02000400), CARD32(0x00002400), CARD32(0x02002400),
 14563  		CARD32(0x00200400), CARD32(0x02200400), CARD32(0x00202400), CARD32(0x02202400),
 14564  		CARD32(0x00000404), CARD32(0x02000404), CARD32(0x00002404), CARD32(0x02002404),
 14565  		CARD32(0x00200404), CARD32(0x02200404), CARD32(0x00202404), CARD32(0x02202404),
 14566  		CARD32(0x10000000), CARD32(0x12000000), CARD32(0x10002000), CARD32(0x12002000),
 14567  		CARD32(0x10200000), CARD32(0x12200000), CARD32(0x10202000), CARD32(0x12202000),
 14568  		CARD32(0x10000004), CARD32(0x12000004), CARD32(0x10002004), CARD32(0x12002004),
 14569  		CARD32(0x10200004), CARD32(0x12200004), CARD32(0x10202004), CARD32(0x12202004),
 14570  		CARD32(0x10000400), CARD32(0x12000400), CARD32(0x10002400), CARD32(0x12002400),
 14571  		CARD32(0x10200400), CARD32(0x12200400), CARD32(0x10202400), CARD32(0x12202400),
 14572  		CARD32(0x10000404), CARD32(0x12000404), CARD32(0x10002404), CARD32(0x12002404),
 14573  		CARD32(0x10200404), CARD32(0x12200404), CARD32(0x10202404), CARD32(0x12202404)},
 14574  	// for C bits (numbered as per FIPS 46) 14 15 16 17 19 20
 14575  	{CARD32(0x00000000), CARD32(0x00000001), CARD32(0x00040000), CARD32(0x00040001),
 14576  		CARD32(0x01000000), CARD32(0x01000001), CARD32(0x01040000), CARD32(0x01040001),
 14577  		CARD32(0x00000002), CARD32(0x00000003), CARD32(0x00040002), CARD32(0x00040003),
 14578  		CARD32(0x01000002), CARD32(0x01000003), CARD32(0x01040002), CARD32(0x01040003),
 14579  		CARD32(0x00000200), CARD32(0x00000201), CARD32(0x00040200), CARD32(0x00040201),
 14580  		CARD32(0x01000200), CARD32(0x01000201), CARD32(0x01040200), CARD32(0x01040201),
 14581  		CARD32(0x00000202), CARD32(0x00000203), CARD32(0x00040202), CARD32(0x00040203),
 14582  		CARD32(0x01000202), CARD32(0x01000203), CARD32(0x01040202), CARD32(0x01040203),
 14583  		CARD32(0x08000000), CARD32(0x08000001), CARD32(0x08040000), CARD32(0x08040001),
 14584  		CARD32(0x09000000), CARD32(0x09000001), CARD32(0x09040000), CARD32(0x09040001),
 14585  		CARD32(0x08000002), CARD32(0x08000003), CARD32(0x08040002), CARD32(0x08040003),
 14586  		CARD32(0x09000002), CARD32(0x09000003), CARD32(0x09040002), CARD32(0x09040003),
 14587  		CARD32(0x08000200), CARD32(0x08000201), CARD32(0x08040200), CARD32(0x08040201),
 14588  		CARD32(0x09000200), CARD32(0x09000201), CARD32(0x09040200), CARD32(0x09040201),
 14589  		CARD32(0x08000202), CARD32(0x08000203), CARD32(0x08040202), CARD32(0x08040203),
 14590  		CARD32(0x09000202), CARD32(0x09000203), CARD32(0x09040202), CARD32(0x09040203)},
 14591  	// for C bits (numbered as per FIPS 46) 21 23 24 26 27 28
 14592  	{CARD32(0x00000000), CARD32(0x00100000), CARD32(0x00000100), CARD32(0x00100100),
 14593  		CARD32(0x00000008), CARD32(0x00100008), CARD32(0x00000108), CARD32(0x00100108),
 14594  		CARD32(0x00001000), CARD32(0x00101000), CARD32(0x00001100), CARD32(0x00101100),
 14595  		CARD32(0x00001008), CARD32(0x00101008), CARD32(0x00001108), CARD32(0x00101108),
 14596  		CARD32(0x04000000), CARD32(0x04100000), CARD32(0x04000100), CARD32(0x04100100),
 14597  		CARD32(0x04000008), CARD32(0x04100008), CARD32(0x04000108), CARD32(0x04100108),
 14598  		CARD32(0x04001000), CARD32(0x04101000), CARD32(0x04001100), CARD32(0x04101100),
 14599  		CARD32(0x04001008), CARD32(0x04101008), CARD32(0x04001108), CARD32(0x04101108),
 14600  		CARD32(0x00020000), CARD32(0x00120000), CARD32(0x00020100), CARD32(0x00120100),
 14601  		CARD32(0x00020008), CARD32(0x00120008), CARD32(0x00020108), CARD32(0x00120108),
 14602  		CARD32(0x00021000), CARD32(0x00121000), CARD32(0x00021100), CARD32(0x00121100),
 14603  		CARD32(0x00021008), CARD32(0x00121008), CARD32(0x00021108), CARD32(0x00121108),
 14604  		CARD32(0x04020000), CARD32(0x04120000), CARD32(0x04020100), CARD32(0x04120100),
 14605  		CARD32(0x04020008), CARD32(0x04120008), CARD32(0x04020108), CARD32(0x04120108),
 14606  		CARD32(0x04021000), CARD32(0x04121000), CARD32(0x04021100), CARD32(0x04121100),
 14607  		CARD32(0x04021008), CARD32(0x04121008), CARD32(0x04021108), CARD32(0x04121108)},
 14608  	// for D bits (numbered as per FIPS 46) 1 2 3 4 5 6
 14609  	{CARD32(0x00000000), CARD32(0x10000000), CARD32(0x00010000), CARD32(0x10010000),
 14610  		CARD32(0x00000004), CARD32(0x10000004), CARD32(0x00010004), CARD32(0x10010004),
 14611  		CARD32(0x20000000), CARD32(0x30000000), CARD32(0x20010000), CARD32(0x30010000),
 14612  		CARD32(0x20000004), CARD32(0x30000004), CARD32(0x20010004), CARD32(0x30010004),
 14613  		CARD32(0x00100000), CARD32(0x10100000), CARD32(0x00110000), CARD32(0x10110000),
 14614  		CARD32(0x00100004), CARD32(0x10100004), CARD32(0x00110004), CARD32(0x10110004),
 14615  		CARD32(0x20100000), CARD32(0x30100000), CARD32(0x20110000), CARD32(0x30110000),
 14616  		CARD32(0x20100004), CARD32(0x30100004), CARD32(0x20110004), CARD32(0x30110004),
 14617  		CARD32(0x00001000), CARD32(0x10001000), CARD32(0x00011000), CARD32(0x10011000),
 14618  		CARD32(0x00001004), CARD32(0x10001004), CARD32(0x00011004), CARD32(0x10011004),
 14619  		CARD32(0x20001000), CARD32(0x30001000), CARD32(0x20011000), CARD32(0x30011000),
 14620  		CARD32(0x20001004), CARD32(0x30001004), CARD32(0x20011004), CARD32(0x30011004),
 14621  		CARD32(0x00101000), CARD32(0x10101000), CARD32(0x00111000), CARD32(0x10111000),
 14622  		CARD32(0x00101004), CARD32(0x10101004), CARD32(0x00111004), CARD32(0x10111004),
 14623  		CARD32(0x20101000), CARD32(0x30101000), CARD32(0x20111000), CARD32(0x30111000),
 14624  		CARD32(0x20101004), CARD32(0x30101004), CARD32(0x20111004), CARD32(0x30111004)},
 14625  	// for D bits (numbered as per FIPS 46) 8 9 11 12 13 14
 14626  	{CARD32(0x00000000), CARD32(0x08000000), CARD32(0x00000008), CARD32(0x08000008),
 14627  		CARD32(0x00000400), CARD32(0x08000400), CARD32(0x00000408), CARD32(0x08000408),
 14628  		CARD32(0x00020000), CARD32(0x08020000), CARD32(0x00020008), CARD32(0x08020008),
 14629  		CARD32(0x00020400), CARD32(0x08020400), CARD32(0x00020408), CARD32(0x08020408),
 14630  		CARD32(0x00000001), CARD32(0x08000001), CARD32(0x00000009), CARD32(0x08000009),
 14631  		CARD32(0x00000401), CARD32(0x08000401), CARD32(0x00000409), CARD32(0x08000409),
 14632  		CARD32(0x00020001), CARD32(0x08020001), CARD32(0x00020009), CARD32(0x08020009),
 14633  		CARD32(0x00020401), CARD32(0x08020401), CARD32(0x00020409), CARD32(0x08020409),
 14634  		CARD32(0x02000000), CARD32(0x0A000000), CARD32(0x02000008), CARD32(0x0A000008),
 14635  		CARD32(0x02000400), CARD32(0x0A000400), CARD32(0x02000408), CARD32(0x0A000408),
 14636  		CARD32(0x02020000), CARD32(0x0A020000), CARD32(0x02020008), CARD32(0x0A020008),
 14637  		CARD32(0x02020400), CARD32(0x0A020400), CARD32(0x02020408), CARD32(0x0A020408),
 14638  		CARD32(0x02000001), CARD32(0x0A000001), CARD32(0x02000009), CARD32(0x0A000009),
 14639  		CARD32(0x02000401), CARD32(0x0A000401), CARD32(0x02000409), CARD32(0x0A000409),
 14640  		CARD32(0x02020001), CARD32(0x0A020001), CARD32(0x02020009), CARD32(0x0A020009),
 14641  		CARD32(0x02020401), CARD32(0x0A020401), CARD32(0x02020409), CARD32(0x0A020409)},
 14642  	// for D bits (numbered as per FIPS 46) 16 17 18 19 20 21
 14643  	{CARD32(0x00000000), CARD32(0x00000100), CARD32(0x00080000), CARD32(0x00080100),
 14644  		CARD32(0x01000000), CARD32(0x01000100), CARD32(0x01080000), CARD32(0x01080100),
 14645  		CARD32(0x00000010), CARD32(0x00000110), CARD32(0x00080010), CARD32(0x00080110),
 14646  		CARD32(0x01000010), CARD32(0x01000110), CARD32(0x01080010), CARD32(0x01080110),
 14647  		CARD32(0x00200000), CARD32(0x00200100), CARD32(0x00280000), CARD32(0x00280100),
 14648  		CARD32(0x01200000), CARD32(0x01200100), CARD32(0x01280000), CARD32(0x01280100),
 14649  		CARD32(0x00200010), CARD32(0x00200110), CARD32(0x00280010), CARD32(0x00280110),
 14650  		CARD32(0x01200010), CARD32(0x01200110), CARD32(0x01280010), CARD32(0x01280110),
 14651  		CARD32(0x00000200), CARD32(0x00000300), CARD32(0x00080200), CARD32(0x00080300),
 14652  		CARD32(0x01000200), CARD32(0x01000300), CARD32(0x01080200), CARD32(0x01080300),
 14653  		CARD32(0x00000210), CARD32(0x00000310), CARD32(0x00080210), CARD32(0x00080310),
 14654  		CARD32(0x01000210), CARD32(0x01000310), CARD32(0x01080210), CARD32(0x01080310),
 14655  		CARD32(0x00200200), CARD32(0x00200300), CARD32(0x00280200), CARD32(0x00280300),
 14656  		CARD32(0x01200200), CARD32(0x01200300), CARD32(0x01280200), CARD32(0x01280300),
 14657  		CARD32(0x00200210), CARD32(0x00200310), CARD32(0x00280210), CARD32(0x00280310),
 14658  		CARD32(0x01200210), CARD32(0x01200310), CARD32(0x01280210), CARD32(0x01280310)},
 14659  	// for D bits (numbered as per FIPS 46) 22 23 24 25 27 28
 14660  	{CARD32(0x00000000), CARD32(0x04000000), CARD32(0x00040000), CARD32(0x04040000),
 14661  		CARD32(0x00000002), CARD32(0x04000002), CARD32(0x00040002), CARD32(0x04040002),
 14662  		CARD32(0x00002000), CARD32(0x04002000), CARD32(0x00042000), CARD32(0x04042000),
 14663  		CARD32(0x00002002), CARD32(0x04002002), CARD32(0x00042002), CARD32(0x04042002),
 14664  		CARD32(0x00000020), CARD32(0x04000020), CARD32(0x00040020), CARD32(0x04040020),
 14665  		CARD32(0x00000022), CARD32(0x04000022), CARD32(0x00040022), CARD32(0x04040022),
 14666  		CARD32(0x00002020), CARD32(0x04002020), CARD32(0x00042020), CARD32(0x04042020),
 14667  		CARD32(0x00002022), CARD32(0x04002022), CARD32(0x00042022), CARD32(0x04042022),
 14668  		CARD32(0x00000800), CARD32(0x04000800), CARD32(0x00040800), CARD32(0x04040800),
 14669  		CARD32(0x00000802), CARD32(0x04000802), CARD32(0x00040802), CARD32(0x04040802),
 14670  		CARD32(0x00002800), CARD32(0x04002800), CARD32(0x00042800), CARD32(0x04042800),
 14671  		CARD32(0x00002802), CARD32(0x04002802), CARD32(0x00042802), CARD32(0x04042802),
 14672  		CARD32(0x00000820), CARD32(0x04000820), CARD32(0x00040820), CARD32(0x04040820),
 14673  		CARD32(0x00000822), CARD32(0x04000822), CARD32(0x00040822), CARD32(0x04040822),
 14674  		CARD32(0x00002820), CARD32(0x04002820), CARD32(0x00042820), CARD32(0x04042820),
 14675  		CARD32(0x00002822), CARD32(0x04002822), CARD32(0x00042822), CARD32(0x04042822)},
 14676  } /* Wraphelp.c:64:21 */
 14677  
 14678  var sSPtrans = [8][64]CARD32{
 14679  	// nibble 0
 14680  	{CARD32(0x00410100), CARD32(0x00010000), CARD32(0x40400000), CARD32(0x40410100),
 14681  		CARD32(0x00400000), CARD32(0x40010100), CARD32(0x40010000), CARD32(0x40400000),
 14682  		CARD32(0x40010100), CARD32(0x00410100), CARD32(0x00410000), CARD32(0x40000100),
 14683  		CARD32(0x40400100), CARD32(0x00400000), CARD32(0x00000000), CARD32(0x40010000),
 14684  		CARD32(0x00010000), CARD32(0x40000000), CARD32(0x00400100), CARD32(0x00010100),
 14685  		CARD32(0x40410100), CARD32(0x00410000), CARD32(0x40000100), CARD32(0x00400100),
 14686  		CARD32(0x40000000), CARD32(0x00000100), CARD32(0x00010100), CARD32(0x40410000),
 14687  		CARD32(0x00000100), CARD32(0x40400100), CARD32(0x40410000), CARD32(0x00000000),
 14688  		CARD32(0x00000000), CARD32(0x40410100), CARD32(0x00400100), CARD32(0x40010000),
 14689  		CARD32(0x00410100), CARD32(0x00010000), CARD32(0x40000100), CARD32(0x00400100),
 14690  		CARD32(0x40410000), CARD32(0x00000100), CARD32(0x00010100), CARD32(0x40400000),
 14691  		CARD32(0x40010100), CARD32(0x40000000), CARD32(0x40400000), CARD32(0x00410000),
 14692  		CARD32(0x40410100), CARD32(0x00010100), CARD32(0x00410000), CARD32(0x40400100),
 14693  		CARD32(0x00400000), CARD32(0x40000100), CARD32(0x40010000), CARD32(0x00000000),
 14694  		CARD32(0x00010000), CARD32(0x00400000), CARD32(0x40400100), CARD32(0x00410100),
 14695  		CARD32(0x40000000), CARD32(0x40410000), CARD32(0x00000100), CARD32(0x40010100)},
 14696  
 14697  	// nibble 1
 14698  	{CARD32(0x08021002), CARD32(0x00000000), CARD32(0x00021000), CARD32(0x08020000),
 14699  		CARD32(0x08000002), CARD32(0x00001002), CARD32(0x08001000), CARD32(0x00021000),
 14700  		CARD32(0x00001000), CARD32(0x08020002), CARD32(0x00000002), CARD32(0x08001000),
 14701  		CARD32(0x00020002), CARD32(0x08021000), CARD32(0x08020000), CARD32(0x00000002),
 14702  		CARD32(0x00020000), CARD32(0x08001002), CARD32(0x08020002), CARD32(0x00001000),
 14703  		CARD32(0x00021002), CARD32(0x08000000), CARD32(0x00000000), CARD32(0x00020002),
 14704  		CARD32(0x08001002), CARD32(0x00021002), CARD32(0x08021000), CARD32(0x08000002),
 14705  		CARD32(0x08000000), CARD32(0x00020000), CARD32(0x00001002), CARD32(0x08021002),
 14706  		CARD32(0x00020002), CARD32(0x08021000), CARD32(0x08001000), CARD32(0x00021002),
 14707  		CARD32(0x08021002), CARD32(0x00020002), CARD32(0x08000002), CARD32(0x00000000),
 14708  		CARD32(0x08000000), CARD32(0x00001002), CARD32(0x00020000), CARD32(0x08020002),
 14709  		CARD32(0x00001000), CARD32(0x08000000), CARD32(0x00021002), CARD32(0x08001002),
 14710  		CARD32(0x08021000), CARD32(0x00001000), CARD32(0x00000000), CARD32(0x08000002),
 14711  		CARD32(0x00000002), CARD32(0x08021002), CARD32(0x00021000), CARD32(0x08020000),
 14712  		CARD32(0x08020002), CARD32(0x00020000), CARD32(0x00001002), CARD32(0x08001000),
 14713  		CARD32(0x08001002), CARD32(0x00000002), CARD32(0x08020000), CARD32(0x00021000)},
 14714  
 14715  	// nibble 2
 14716  	{CARD32(0x20800000), CARD32(0x00808020), CARD32(0x00000020), CARD32(0x20800020),
 14717  		CARD32(0x20008000), CARD32(0x00800000), CARD32(0x20800020), CARD32(0x00008020),
 14718  		CARD32(0x00800020), CARD32(0x00008000), CARD32(0x00808000), CARD32(0x20000000),
 14719  		CARD32(0x20808020), CARD32(0x20000020), CARD32(0x20000000), CARD32(0x20808000),
 14720  		CARD32(0x00000000), CARD32(0x20008000), CARD32(0x00808020), CARD32(0x00000020),
 14721  		CARD32(0x20000020), CARD32(0x20808020), CARD32(0x00008000), CARD32(0x20800000),
 14722  		CARD32(0x20808000), CARD32(0x00800020), CARD32(0x20008020), CARD32(0x00808000),
 14723  		CARD32(0x00008020), CARD32(0x00000000), CARD32(0x00800000), CARD32(0x20008020),
 14724  		CARD32(0x00808020), CARD32(0x00000020), CARD32(0x20000000), CARD32(0x00008000),
 14725  		CARD32(0x20000020), CARD32(0x20008000), CARD32(0x00808000), CARD32(0x20800020),
 14726  		CARD32(0x00000000), CARD32(0x00808020), CARD32(0x00008020), CARD32(0x20808000),
 14727  		CARD32(0x20008000), CARD32(0x00800000), CARD32(0x20808020), CARD32(0x20000000),
 14728  		CARD32(0x20008020), CARD32(0x20800000), CARD32(0x00800000), CARD32(0x20808020),
 14729  		CARD32(0x00008000), CARD32(0x00800020), CARD32(0x20800020), CARD32(0x00008020),
 14730  		CARD32(0x00800020), CARD32(0x00000000), CARD32(0x20808000), CARD32(0x20000020),
 14731  		CARD32(0x20800000), CARD32(0x20008020), CARD32(0x00000020), CARD32(0x00808000)},
 14732  
 14733  	// nibble 3
 14734  	{CARD32(0x00080201), CARD32(0x02000200), CARD32(0x00000001), CARD32(0x02080201),
 14735  		CARD32(0x00000000), CARD32(0x02080000), CARD32(0x02000201), CARD32(0x00080001),
 14736  		CARD32(0x02080200), CARD32(0x02000001), CARD32(0x02000000), CARD32(0x00000201),
 14737  		CARD32(0x02000001), CARD32(0x00080201), CARD32(0x00080000), CARD32(0x02000000),
 14738  		CARD32(0x02080001), CARD32(0x00080200), CARD32(0x00000200), CARD32(0x00000001),
 14739  		CARD32(0x00080200), CARD32(0x02000201), CARD32(0x02080000), CARD32(0x00000200),
 14740  		CARD32(0x00000201), CARD32(0x00000000), CARD32(0x00080001), CARD32(0x02080200),
 14741  		CARD32(0x02000200), CARD32(0x02080001), CARD32(0x02080201), CARD32(0x00080000),
 14742  		CARD32(0x02080001), CARD32(0x00000201), CARD32(0x00080000), CARD32(0x02000001),
 14743  		CARD32(0x00080200), CARD32(0x02000200), CARD32(0x00000001), CARD32(0x02080000),
 14744  		CARD32(0x02000201), CARD32(0x00000000), CARD32(0x00000200), CARD32(0x00080001),
 14745  		CARD32(0x00000000), CARD32(0x02080001), CARD32(0x02080200), CARD32(0x00000200),
 14746  		CARD32(0x02000000), CARD32(0x02080201), CARD32(0x00080201), CARD32(0x00080000),
 14747  		CARD32(0x02080201), CARD32(0x00000001), CARD32(0x02000200), CARD32(0x00080201),
 14748  		CARD32(0x00080001), CARD32(0x00080200), CARD32(0x02080000), CARD32(0x02000201),
 14749  		CARD32(0x00000201), CARD32(0x02000000), CARD32(0x02000001), CARD32(0x02080200)},
 14750  
 14751  	// nibble 4
 14752  	{CARD32(0x01000000), CARD32(0x00002000), CARD32(0x00000080), CARD32(0x01002084),
 14753  		CARD32(0x01002004), CARD32(0x01000080), CARD32(0x00002084), CARD32(0x01002000),
 14754  		CARD32(0x00002000), CARD32(0x00000004), CARD32(0x01000004), CARD32(0x00002080),
 14755  		CARD32(0x01000084), CARD32(0x01002004), CARD32(0x01002080), CARD32(0x00000000),
 14756  		CARD32(0x00002080), CARD32(0x01000000), CARD32(0x00002004), CARD32(0x00000084),
 14757  		CARD32(0x01000080), CARD32(0x00002084), CARD32(0x00000000), CARD32(0x01000004),
 14758  		CARD32(0x00000004), CARD32(0x01000084), CARD32(0x01002084), CARD32(0x00002004),
 14759  		CARD32(0x01002000), CARD32(0x00000080), CARD32(0x00000084), CARD32(0x01002080),
 14760  		CARD32(0x01002080), CARD32(0x01000084), CARD32(0x00002004), CARD32(0x01002000),
 14761  		CARD32(0x00002000), CARD32(0x00000004), CARD32(0x01000004), CARD32(0x01000080),
 14762  		CARD32(0x01000000), CARD32(0x00002080), CARD32(0x01002084), CARD32(0x00000000),
 14763  		CARD32(0x00002084), CARD32(0x01000000), CARD32(0x00000080), CARD32(0x00002004),
 14764  		CARD32(0x01000084), CARD32(0x00000080), CARD32(0x00000000), CARD32(0x01002084),
 14765  		CARD32(0x01002004), CARD32(0x01002080), CARD32(0x00000084), CARD32(0x00002000),
 14766  		CARD32(0x00002080), CARD32(0x01002004), CARD32(0x01000080), CARD32(0x00000084),
 14767  		CARD32(0x00000004), CARD32(0x00002084), CARD32(0x01002000), CARD32(0x01000004)},
 14768  
 14769  	// nibble 5
 14770  	{CARD32(0x10000008), CARD32(0x00040008), CARD32(0x00000000), CARD32(0x10040400),
 14771  		CARD32(0x00040008), CARD32(0x00000400), CARD32(0x10000408), CARD32(0x00040000),
 14772  		CARD32(0x00000408), CARD32(0x10040408), CARD32(0x00040400), CARD32(0x10000000),
 14773  		CARD32(0x10000400), CARD32(0x10000008), CARD32(0x10040000), CARD32(0x00040408),
 14774  		CARD32(0x00040000), CARD32(0x10000408), CARD32(0x10040008), CARD32(0x00000000),
 14775  		CARD32(0x00000400), CARD32(0x00000008), CARD32(0x10040400), CARD32(0x10040008),
 14776  		CARD32(0x10040408), CARD32(0x10040000), CARD32(0x10000000), CARD32(0x00000408),
 14777  		CARD32(0x00000008), CARD32(0x00040400), CARD32(0x00040408), CARD32(0x10000400),
 14778  		CARD32(0x00000408), CARD32(0x10000000), CARD32(0x10000400), CARD32(0x00040408),
 14779  		CARD32(0x10040400), CARD32(0x00040008), CARD32(0x00000000), CARD32(0x10000400),
 14780  		CARD32(0x10000000), CARD32(0x00000400), CARD32(0x10040008), CARD32(0x00040000),
 14781  		CARD32(0x00040008), CARD32(0x10040408), CARD32(0x00040400), CARD32(0x00000008),
 14782  		CARD32(0x10040408), CARD32(0x00040400), CARD32(0x00040000), CARD32(0x10000408),
 14783  		CARD32(0x10000008), CARD32(0x10040000), CARD32(0x00040408), CARD32(0x00000000),
 14784  		CARD32(0x00000400), CARD32(0x10000008), CARD32(0x10000408), CARD32(0x10040400),
 14785  		CARD32(0x10040000), CARD32(0x00000408), CARD32(0x00000008), CARD32(0x10040008)},
 14786  
 14787  	// nibble 6
 14788  	{CARD32(0x00000800), CARD32(0x00000040), CARD32(0x00200040), 0x80200000,
 14789  		0x80200840, 0x80000800, CARD32(0x00000840), CARD32(0x00000000),
 14790  		CARD32(0x00200000), 0x80200040, 0x80000040, CARD32(0x00200800),
 14791  		0x80000000, CARD32(0x00200840), CARD32(0x00200800), 0x80000040,
 14792  		0x80200040, CARD32(0x00000800), 0x80000800, 0x80200840,
 14793  		CARD32(0x00000000), CARD32(0x00200040), 0x80200000, CARD32(0x00000840),
 14794  		0x80200800, 0x80000840, CARD32(0x00200840), 0x80000000,
 14795  		0x80000840, 0x80200800, CARD32(0x00000040), CARD32(0x00200000),
 14796  		0x80000840, CARD32(0x00200800), 0x80200800, 0x80000040,
 14797  		CARD32(0x00000800), CARD32(0x00000040), CARD32(0x00200000), 0x80200800,
 14798  		0x80200040, 0x80000840, CARD32(0x00000840), CARD32(0x00000000),
 14799  		CARD32(0x00000040), 0x80200000, 0x80000000, CARD32(0x00200040),
 14800  		CARD32(0x00000000), 0x80200040, CARD32(0x00200040), CARD32(0x00000840),
 14801  		0x80000040, CARD32(0x00000800), 0x80200840, CARD32(0x00200000),
 14802  		CARD32(0x00200840), 0x80000000, 0x80000800, 0x80200840,
 14803  		0x80200000, CARD32(0x00200840), CARD32(0x00200800), 0x80000800},
 14804  
 14805  	// nibble 7
 14806  	{CARD32(0x04100010), CARD32(0x04104000), CARD32(0x00004010), CARD32(0x00000000),
 14807  		CARD32(0x04004000), CARD32(0x00100010), CARD32(0x04100000), CARD32(0x04104010),
 14808  		CARD32(0x00000010), CARD32(0x04000000), CARD32(0x00104000), CARD32(0x00004010),
 14809  		CARD32(0x00104010), CARD32(0x04004010), CARD32(0x04000010), CARD32(0x04100000),
 14810  		CARD32(0x00004000), CARD32(0x00104010), CARD32(0x00100010), CARD32(0x04004000),
 14811  		CARD32(0x04104010), CARD32(0x04000010), CARD32(0x00000000), CARD32(0x00104000),
 14812  		CARD32(0x04000000), CARD32(0x00100000), CARD32(0x04004010), CARD32(0x04100010),
 14813  		CARD32(0x00100000), CARD32(0x00004000), CARD32(0x04104000), CARD32(0x00000010),
 14814  		CARD32(0x00100000), CARD32(0x00004000), CARD32(0x04000010), CARD32(0x04104010),
 14815  		CARD32(0x00004010), CARD32(0x04000000), CARD32(0x00000000), CARD32(0x00104000),
 14816  		CARD32(0x04100010), CARD32(0x04004010), CARD32(0x04004000), CARD32(0x00100010),
 14817  		CARD32(0x04104000), CARD32(0x00000010), CARD32(0x00100010), CARD32(0x04004000),
 14818  		CARD32(0x04104010), CARD32(0x00100000), CARD32(0x04100000), CARD32(0x04000010),
 14819  		CARD32(0x00104000), CARD32(0x00004010), CARD32(0x04004010), CARD32(0x04100000),
 14820  		CARD32(0x00000010), CARD32(0x04104000), CARD32(0x00104010), CARD32(0x00000000),
 14821  		CARD32(0x04000000), CARD32(0x04100010), CARD32(0x00004000), CARD32(0x00104010)},
 14822  } /* Wraphelp.c:204:21 */
 14823  
 14824  var shifts2 = [16]int8{int8(0), int8(0), int8(1), int8(1), int8(1), int8(1), int8(1), int8(1), int8(0), int8(1), int8(1), int8(1), int8(1), int8(1), int8(1), int8(0)} /* Wraphelp.c:370:19 */
 14825  
 14826  func X_XdmcpAuthSetup(tls *libc.TLS, key uintptr, schedule uintptr) { /* Wraphelp.c:372:6: */
 14827  	var c CARD32
 14828  	var d CARD32
 14829  	var t CARD32
 14830  	var s CARD32
 14831  	var in uintptr
 14832  	var k uintptr
 14833  	var i int32
 14834  
 14835  	k = schedule
 14836  	in = key
 14837  
 14838  	c = CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))
 14839  	c = c | CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))<<8
 14840  	c = c | CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))<<16
 14841  	c = c | CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))<<24
 14842  	d = CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))
 14843  	d = d | CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))<<8
 14844  	d = d | CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))<<16
 14845  	d = d | CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))<<24
 14846  
 14847  	// do PC1 in 60 simple operations
 14848  	t = (d>>4 ^ c) & CARD32(0x0f0f0f0f)
 14849  	c = c ^ t
 14850  	d = d ^ t<<4
 14851  	t = (c<<(16 - -2) ^ c) & 0xcccc0000
 14852  	c = c ^ t ^ t>>(16 - -2)
 14853  	t = (c<<(16 - -1) ^ c) & 0xaaaa0000
 14854  	c = c ^ t ^ t>>(16 - -1)
 14855  	t = (c<<(16-8) ^ c) & CARD32(0x00ff0000)
 14856  	c = c ^ t ^ t>>(16-8)
 14857  	t = (c<<(16 - -1) ^ c) & 0xaaaa0000
 14858  	c = c ^ t ^ t>>(16 - -1)
 14859  	t = (d<<(16 - -8) ^ d) & 0xff000000
 14860  	d = d ^ t ^ t>>(16 - -8)
 14861  	t = (d<<(16-8) ^ d) & CARD32(0x00ff0000)
 14862  	d = d ^ t ^ t>>(16-8)
 14863  	t = (d<<(16-2) ^ d) & CARD32(0x33330000)
 14864  	d = d ^ t ^ t>>(16-2)
 14865  	d = d&CARD32(0x00aa00aa)<<7 | d&CARD32(0x55005500)>>7 | d&0xaa55aa55
 14866  	d = d>>8 | c&0xf0000000>>4
 14867  	c = c & CARD32(0x0fffffff)
 14868  
 14869  	for i = 0; i < ITERATIONS; i++ {
 14870  		if shifts2[i] != 0 {
 14871  			c = c>>2 | c<<26
 14872  			d = d>>2 | d<<26
 14873  		} else {
 14874  			c = c>>1 | c<<27
 14875  			d = d>>1 | d<<27
 14876  		}
 14877  		c = c & CARD32(0x0fffffff)
 14878  		d = d & CARD32(0x0fffffff)
 14879  		// could be a few less shifts but I am to lazy at this
 14880  		// point in time to investigate
 14881  		s = *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&skb)) + uintptr(c&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&skb)) + 1*256 + uintptr(c>>6&CARD32(0x03)|c>>7&CARD32(0x3c))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&skb)) + 2*256 + uintptr(c>>13&CARD32(0x0f)|c>>14&CARD32(0x30))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&skb)) + 3*256 + uintptr(c>>20&CARD32(0x01)|c>>21&CARD32(0x06)|c>>22&CARD32(0x38))*4))
 14882  		t = *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&skb)) + 4*256 + uintptr(d&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&skb)) + 5*256 + uintptr(d>>7&CARD32(0x03)|d>>8&CARD32(0x3c))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&skb)) + 6*256 + uintptr(d>>15&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&skb)) + 7*256 + uintptr(d>>21&CARD32(0x0f)|d>>22&CARD32(0x30))*4))
 14883  
 14884  		// table contained 0213 4657
 14885  		*(*CARD32)(unsafe.Pointer(libc.PostIncUintptr(&k, 4))) = t<<16 | s&CARD32(0x0000ffff)
 14886  		s = s>>16 | t&0xffff0000
 14887  
 14888  		s = s<<4 | s>>28
 14889  		*(*CARD32)(unsafe.Pointer(libc.PostIncUintptr(&k, 4))) = s
 14890  	}
 14891  	return
 14892  }
 14893  
 14894  func X_XdmcpAuthDoIt(tls *libc.TLS, input uintptr, output uintptr, ks uintptr, encrypt int32) { /* Wraphelp.c:443:6: */
 14895  	var l CARD32
 14896  	var r CARD32
 14897  	var t CARD32
 14898  	var u CARD32
 14899  	var s uintptr
 14900  	var in uintptr
 14901  	var out uintptr
 14902  	var i int32
 14903  
 14904  	in = input
 14905  	out = output
 14906  	l = CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))
 14907  	l = l | CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))<<8
 14908  	l = l | CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))<<16
 14909  	l = l | CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))<<24
 14910  	r = CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))
 14911  	r = r | CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))<<8
 14912  	r = r | CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))<<16
 14913  	r = r | CARD32(*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&in, 1))))<<24
 14914  
 14915  	// do IP
 14916  	t = (r>>4 ^ l) & CARD32(0x0f0f0f0f)
 14917  	l = l ^ t
 14918  	r = r ^ t<<4
 14919  	t = (l>>16 ^ r) & CARD32(0x0000ffff)
 14920  	r = r ^ t
 14921  	l = l ^ t<<16
 14922  	t = (r>>2 ^ l) & CARD32(0x33333333)
 14923  	l = l ^ t
 14924  	r = r ^ t<<2
 14925  	t = (l>>8 ^ r) & CARD32(0x00ff00ff)
 14926  	r = r ^ t
 14927  	l = l ^ t<<8
 14928  	t = (r>>1 ^ l) & CARD32(0x55555555)
 14929  	l = l ^ t
 14930  	r = r ^ t<<1
 14931  	// r and l are reversed - remember that :-)
 14932  	t = l
 14933  	l = r
 14934  	r = t
 14935  
 14936  	s = ks
 14937  
 14938  	if encrypt != 0 {
 14939  		for i = 0; i < ITERATIONS*2; i = i + 4 {
 14940  			t = r<<1 | r>>31
 14941  			u = t ^ *(*CARD32)(unsafe.Pointer(s + uintptr(i)*4))
 14942  			t = t ^ *(*CARD32)(unsafe.Pointer(s + uintptr(i+1)*4))
 14943  			t = t>>4 | t<<28
 14944  			l = l ^ (*(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 1*256 + uintptr(t&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 3*256 + uintptr(t>>8&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 5*256 + uintptr(t>>16&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 7*256 + uintptr(t>>24&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + uintptr(u&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 2*256 + uintptr(u>>8&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 4*256 + uintptr(u>>16&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 6*256 + uintptr(u>>24&CARD32(0x3f))*4)))
 14945  			//	1
 14946  			t = l<<1 | l>>31
 14947  			u = t ^ *(*CARD32)(unsafe.Pointer(s + uintptr(i+2)*4))
 14948  			t = t ^ *(*CARD32)(unsafe.Pointer(s + uintptr(i+2+1)*4))
 14949  			t = t>>4 | t<<28
 14950  			r = r ^ (*(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 1*256 + uintptr(t&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 3*256 + uintptr(t>>8&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 5*256 + uintptr(t>>16&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 7*256 + uintptr(t>>24&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + uintptr(u&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 2*256 + uintptr(u>>8&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 4*256 + uintptr(u>>16&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 6*256 + uintptr(u>>24&CARD32(0x3f))*4)))
 14951  			//  2
 14952  		}
 14953  	} else {
 14954  		for i = ITERATIONS*2 - 2; i >= 0; i = i - 4 {
 14955  			t = r<<1 | r>>31
 14956  			u = t ^ *(*CARD32)(unsafe.Pointer(s + uintptr(i)*4))
 14957  			t = t ^ *(*CARD32)(unsafe.Pointer(s + uintptr(i+1)*4))
 14958  			t = t>>4 | t<<28
 14959  			l = l ^ (*(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 1*256 + uintptr(t&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 3*256 + uintptr(t>>8&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 5*256 + uintptr(t>>16&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 7*256 + uintptr(t>>24&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + uintptr(u&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 2*256 + uintptr(u>>8&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 4*256 + uintptr(u>>16&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 6*256 + uintptr(u>>24&CARD32(0x3f))*4)))
 14960  			//	1
 14961  			t = l<<1 | l>>31
 14962  			u = t ^ *(*CARD32)(unsafe.Pointer(s + uintptr(i-2)*4))
 14963  			t = t ^ *(*CARD32)(unsafe.Pointer(s + uintptr(i-2+1)*4))
 14964  			t = t>>4 | t<<28
 14965  			r = r ^ (*(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 1*256 + uintptr(t&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 3*256 + uintptr(t>>8&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 5*256 + uintptr(t>>16&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 7*256 + uintptr(t>>24&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + uintptr(u&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 2*256 + uintptr(u>>8&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 4*256 + uintptr(u>>16&CARD32(0x3f))*4)) | *(*CARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sSPtrans)) + 6*256 + uintptr(u>>24&CARD32(0x3f))*4)))
 14966  			//  2
 14967  		}
 14968  	}
 14969  
 14970  	// swap l and r
 14971  	// we will not do the swap so just remember they are
 14972  	// reversed for the rest of the subroutine
 14973  	// luckily by FP fixes this problem :-)
 14974  
 14975  	t = (r>>1 ^ l) & CARD32(0x55555555)
 14976  	l = l ^ t
 14977  	r = r ^ t<<1
 14978  	t = (l>>8 ^ r) & CARD32(0x00ff00ff)
 14979  	r = r ^ t
 14980  	l = l ^ t<<8
 14981  	t = (r>>2 ^ l) & CARD32(0x33333333)
 14982  	l = l ^ t
 14983  	r = r ^ t<<2
 14984  	t = (l>>16 ^ r) & CARD32(0x0000ffff)
 14985  	r = r ^ t
 14986  	l = l ^ t<<16
 14987  	t = (r>>4 ^ l) & CARD32(0x0f0f0f0f)
 14988  	l = l ^ t
 14989  	r = r ^ t<<4
 14990  
 14991  	*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = CARD8(l & CARD32(0xff))
 14992  	*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = CARD8(l >> 8 & CARD32(0xff))
 14993  	*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = CARD8(l >> 16 & CARD32(0xff))
 14994  	*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = CARD8(l >> 24 & CARD32(0xff))
 14995  	*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = CARD8(r & CARD32(0xff))
 14996  	*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = CARD8(r >> 8 & CARD32(0xff))
 14997  	*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = CARD8(r >> 16 & CARD32(0xff))
 14998  	*(*CARD8)(unsafe.Pointer(libc.PostIncUintptr(&out, 1))) = CARD8(r >> 24 & CARD32(0xff))
 14999  	return
 15000  }
 15001  
 15002  // getsubopt(3) external variable
 15003  // valloc is now declared in _malloc.h
 15004  
 15005  // Poison the following routines if -fshort-wchar is set
 15006  
 15007  func XXdmcpWriteHeader(tls *libc.TLS, buffer XdmcpBufferPtr, header XdmcpHeaderPtr) int32 { /* Write.c:37:1: */
 15008  	var newData uintptr
 15009  
 15010  	if (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < 6+int32((*X_XdmcpHeader)(unsafe.Pointer(header)).Flength) {
 15011  		newData = libc.Xmalloc(tls, uint64(XDM_MAX_MSGLEN)*uint64(unsafe.Sizeof(BYTE(0))))
 15012  		if !(newData != 0) {
 15013  			return FALSE
 15014  		}
 15015  		libc.Xfree(tls, (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
 15016  		(*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newData
 15017  		(*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = XDM_MAX_MSGLEN
 15018  	}
 15019  	(*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
 15020  	if !(XXdmcpWriteCARD16(tls, buffer, uint32((*X_XdmcpHeader)(unsafe.Pointer(header)).Fversion)) != 0) {
 15021  		return FALSE
 15022  	}
 15023  	if !(XXdmcpWriteCARD16(tls, buffer, uint32((*X_XdmcpHeader)(unsafe.Pointer(header)).Fopcode)) != 0) {
 15024  		return FALSE
 15025  	}
 15026  	if !(XXdmcpWriteCARD16(tls, buffer, uint32((*X_XdmcpHeader)(unsafe.Pointer(header)).Flength)) != 0) {
 15027  		return FALSE
 15028  	}
 15029  	return TRUE
 15030  }
 15031  
 15032  func XXdmcpWriteARRAY8(tls *libc.TLS, buffer XdmcpBufferPtr, array ARRAY8Ptr) int32 { /* Write.c:63:1: */
 15033  	var i int32
 15034  
 15035  	if !(XXdmcpWriteCARD16(tls, buffer, uint32((*X_ARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
 15036  		return FALSE
 15037  	}
 15038  	for i = 0; i < int32((*X_ARRAY8)(unsafe.Pointer(array)).Flength); i++ {
 15039  		if !(XXdmcpWriteCARD8(tls, buffer, uint32(*(*CARD8)(unsafe.Pointer((*X_ARRAY8)(unsafe.Pointer(array)).Fdata + uintptr(i))))) != 0) {
 15040  			return FALSE
 15041  		}
 15042  	}
 15043  	return TRUE
 15044  }
 15045  
 15046  func XXdmcpWriteARRAY16(tls *libc.TLS, buffer XdmcpBufferPtr, array ARRAY16Ptr) int32 { /* Write.c:76:1: */
 15047  	var i int32
 15048  
 15049  	if !(XXdmcpWriteCARD8(tls, buffer, uint32((*X_ARRAY16)(unsafe.Pointer(array)).Flength)) != 0) {
 15050  		return FALSE
 15051  	}
 15052  	for i = 0; i < int32((*X_ARRAY16)(unsafe.Pointer(array)).Flength); i++ {
 15053  		if !(XXdmcpWriteCARD16(tls, buffer, uint32(*(*CARD16)(unsafe.Pointer((*X_ARRAY16)(unsafe.Pointer(array)).Fdata + uintptr(i)*2)))) != 0) {
 15054  			return FALSE
 15055  		}
 15056  	}
 15057  	return TRUE
 15058  }
 15059  
 15060  func XXdmcpWriteARRAY32(tls *libc.TLS, buffer XdmcpBufferPtr, array ARRAY32Ptr) int32 { /* Write.c:89:1: */
 15061  	var i int32
 15062  
 15063  	if !(XXdmcpWriteCARD8(tls, buffer, uint32((*X_ARRAY32)(unsafe.Pointer(array)).Flength)) != 0) {
 15064  		return FALSE
 15065  	}
 15066  	for i = 0; i < int32((*X_ARRAY32)(unsafe.Pointer(array)).Flength); i++ {
 15067  		if !(XXdmcpWriteCARD32(tls, buffer, *(*CARD32)(unsafe.Pointer((*X_ARRAY32)(unsafe.Pointer(array)).Fdata + uintptr(i)*4))) != 0) {
 15068  			return FALSE
 15069  		}
 15070  	}
 15071  	return TRUE
 15072  }
 15073  
 15074  func XXdmcpWriteARRAYofARRAY8(tls *libc.TLS, buffer XdmcpBufferPtr, array ARRAYofARRAY8Ptr) int32 { /* Write.c:102:1: */
 15075  	var i int32
 15076  
 15077  	if !(XXdmcpWriteCARD8(tls, buffer, uint32((*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
 15078  		return FALSE
 15079  	}
 15080  	for i = 0; i < int32((*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength); i++ {
 15081  		if !(XXdmcpWriteARRAY8(tls, buffer, (*X_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*16) != 0) {
 15082  			return FALSE
 15083  		}
 15084  	}
 15085  	return TRUE
 15086  }
 15087  
 15088  func XXdmcpWriteCARD8(tls *libc.TLS, buffer XdmcpBufferPtr, value uint32) int32 { /* Write.c:115:1: */
 15089  	if (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize {
 15090  		return FALSE
 15091  	}
 15092  	*(*BYTE)(unsafe.Pointer((*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(libc.PostIncInt32(&(*X_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer, 1)))) = BYTE(value)
 15093  	return TRUE
 15094  }
 15095  
 15096  func XXdmcpWriteCARD16(tls *libc.TLS, buffer XdmcpBufferPtr, value uint32) int32 { /* Write.c:126:1: */
 15097  	if !(XXdmcpWriteCARD8(tls, buffer, value>>8) != 0) {
 15098  		return FALSE
 15099  	}
 15100  	if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
 15101  		return FALSE
 15102  	}
 15103  	return TRUE
 15104  }
 15105  
 15106  func XXdmcpWriteCARD32(tls *libc.TLS, buffer XdmcpBufferPtr, value uint32) int32 { /* Write.c:138:1: */
 15107  	if !(XXdmcpWriteCARD8(tls, buffer, value>>24) != 0) {
 15108  		return FALSE
 15109  	}
 15110  	if !(XXdmcpWriteCARD8(tls, buffer, value>>16&uint32(0xff)) != 0) {
 15111  		return FALSE
 15112  	}
 15113  	if !(XXdmcpWriteCARD8(tls, buffer, value>>8&uint32(0xff)) != 0) {
 15114  		return FALSE
 15115  	}
 15116  	if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
 15117  		return FALSE
 15118  	}
 15119  	return TRUE
 15120  }