modernc.org/xrender@v1.0.9/lib/xrender_darwin_arm64.go (about)

     1  // Code generated by 'ccgo -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -lmodernc.org/x11/lib -o lib/xrender_darwin_arm64.go -pkgname xrender -trace-translation-units /var/folders/4f/mc8mts295pqf7gmnfcwh6g8w0000gn/T/go-generate-3918833177/cdb.json libXrender.a', DO NOT EDIT.
     2  
     3  package xrender
     4  
     5  import (
     6  	"math"
     7  	"reflect"
     8  	"sync/atomic"
     9  	"unsafe"
    10  
    11  	"modernc.org/libc"
    12  	"modernc.org/libc/sys/types"
    13  	"modernc.org/x11/lib"
    14  )
    15  
    16  var _ = math.Pi
    17  var _ reflect.Kind
    18  var _ atomic.Value
    19  var _ unsafe.Pointer
    20  var _ *libc.TLS
    21  var _ types.Size_t
    22  
    23  const (
    24  	Above                                     = 0
    25  	AllHints                                  = 127
    26  	AllTemporary                              = 0
    27  	AllValues                                 = 0x000F
    28  	AllocAll                                  = 1
    29  	AllocNone                                 = 0
    30  	AllowExposures                            = 1
    31  	AlreadyGrabbed                            = 1
    32  	Always                                    = 2
    33  	AnyButton                                 = 0
    34  	AnyKey                                    = 0
    35  	AnyModifier                               = 32768
    36  	AnyPropertyType                           = 0
    37  	ArcChord                                  = 0
    38  	ArcPieSlice                               = 1
    39  	AsyncBoth                                 = 6
    40  	AsyncKeyboard                             = 3
    41  	AsyncPointer                              = 0
    42  	AutoRepeatModeDefault                     = 2
    43  	AutoRepeatModeOff                         = 0
    44  	AutoRepeatModeOn                          = 1
    45  	B16                                       = 0
    46  	B32                                       = 0
    47  	BIG_ENDIAN                                = 4321
    48  	BUFSIZE                                   = 2048
    49  	BUS_ADRALN                                = 1
    50  	BUS_ADRERR                                = 2
    51  	BUS_NOOP                                  = 0
    52  	BUS_OBJERR                                = 3
    53  	BYTE_ORDER                                = 1234
    54  	BadAccess                                 = 10
    55  	BadAlloc                                  = 11
    56  	BadAtom                                   = 5
    57  	BadColor                                  = 12
    58  	BadCursor                                 = 6
    59  	BadDrawable                               = 9
    60  	BadFont                                   = 7
    61  	BadGC                                     = 13
    62  	BadGlyph                                  = 4
    63  	BadGlyphSet                               = 3
    64  	BadIDChoice                               = 14
    65  	BadImplementation                         = 17
    66  	BadLength                                 = 16
    67  	BadMatch                                  = 8
    68  	BadName                                   = 15
    69  	BadPictFormat                             = 0
    70  	BadPictOp                                 = 2
    71  	BadPicture                                = 1
    72  	BadPixmap                                 = 4
    73  	BadRequest                                = 1
    74  	BadValue                                  = 2
    75  	BadWindow                                 = 3
    76  	Below                                     = 1
    77  	BitmapFileInvalid                         = 2
    78  	BitmapNoMemory                            = 3
    79  	BitmapOpenFailed                          = 1
    80  	BitmapSuccess                             = 0
    81  	BottomIf                                  = 3
    82  	Button1                                   = 1
    83  	Button1Mask                               = 256
    84  	Button1MotionMask                         = 256
    85  	Button2                                   = 2
    86  	Button2Mask                               = 512
    87  	Button2MotionMask                         = 512
    88  	Button3                                   = 3
    89  	Button3Mask                               = 1024
    90  	Button3MotionMask                         = 1024
    91  	Button4                                   = 4
    92  	Button4Mask                               = 2048
    93  	Button4MotionMask                         = 2048
    94  	Button5                                   = 5
    95  	Button5Mask                               = 4096
    96  	Button5MotionMask                         = 4096
    97  	ButtonMotionMask                          = 8192
    98  	ButtonPress                               = 4
    99  	ButtonPressMask                           = 4
   100  	ButtonRelease                             = 5
   101  	ButtonReleaseMask                         = 8
   102  	CLD_CONTINUED                             = 6
   103  	CLD_DUMPED                                = 3
   104  	CLD_EXITED                                = 1
   105  	CLD_KILLED                                = 2
   106  	CLD_NOOP                                  = 0
   107  	CLD_STOPPED                               = 5
   108  	CLD_TRAPPED                               = 4
   109  	CPAlphaMap                                = 2
   110  	CPAlphaXOrigin                            = 4
   111  	CPAlphaYOrigin                            = 8
   112  	CPClipMask                                = 64
   113  	CPClipXOrigin                             = 16
   114  	CPClipYOrigin                             = 32
   115  	CPComponentAlpha                          = 4096
   116  	CPDither                                  = 2048
   117  	CPGraphicsExposure                        = 128
   118  	CPLastBit                                 = 12
   119  	CPPolyEdge                                = 512
   120  	CPPolyMode                                = 1024
   121  	CPRepeat                                  = 1
   122  	CPSubwindowMode                           = 256
   123  	CPUMON_MAKE_FATAL                         = 0x1000
   124  	CSRG_BASED                                = 0
   125  	CURSORFONT                                = "cursor"
   126  	CWBackPixel                               = 2
   127  	CWBackPixmap                              = 1
   128  	CWBackingPixel                            = 256
   129  	CWBackingPlanes                           = 128
   130  	CWBackingStore                            = 64
   131  	CWBitGravity                              = 16
   132  	CWBorderPixel                             = 8
   133  	CWBorderPixmap                            = 4
   134  	CWBorderWidth                             = 16
   135  	CWColormap                                = 8192
   136  	CWCursor                                  = 16384
   137  	CWDontPropagate                           = 4096
   138  	CWEventMask                               = 2048
   139  	CWHeight                                  = 8
   140  	CWOverrideRedirect                        = 512
   141  	CWSaveUnder                               = 1024
   142  	CWSibling                                 = 32
   143  	CWStackMode                               = 64
   144  	CWWidth                                   = 4
   145  	CWWinGravity                              = 32
   146  	CWX                                       = 1
   147  	CWY                                       = 2
   148  	CapButt                                   = 1
   149  	CapNotLast                                = 0
   150  	CapProjecting                             = 3
   151  	CapRound                                  = 2
   152  	CenterGravity                             = 5
   153  	CirculateNotify                           = 26
   154  	CirculateRequest                          = 27
   155  	ClientMessage                             = 33
   156  	ClipByChildren                            = 0
   157  	ColormapChangeMask                        = 8388608
   158  	ColormapInstalled                         = 1
   159  	ColormapNotify                            = 32
   160  	ColormapUninstalled                       = 0
   161  	Complex                                   = 0
   162  	ConfigureNotify                           = 22
   163  	ConfigureRequest                          = 23
   164  	ControlMapIndex                           = 2
   165  	ControlMask                               = 4
   166  	Convex                                    = 2
   167  	CoordModeOrigin                           = 0
   168  	CoordModePrevious                         = 1
   169  	CopyFromParent                            = 0
   170  	CreateNotify                              = 16
   171  	CurrentTime                               = 0
   172  	CursorShape                               = 0
   173  	DefaultBlanking                           = 2
   174  	DefaultExposures                          = 2
   175  	DestroyAll                                = 0
   176  	DestroyNotify                             = 17
   177  	DirectColor                               = 5
   178  	DisableAccess                             = 0
   179  	DisableScreenInterval                     = 0
   180  	DisableScreenSaver                        = 0
   181  	DoBlue                                    = 4
   182  	DoGreen                                   = 2
   183  	DoRed                                     = 1
   184  	DontAllowExposures                        = 0
   185  	DontCareState                             = 0
   186  	DontPreferBlanking                        = 0
   187  	E2BIG                                     = 7
   188  	EACCES                                    = 13
   189  	EADDRINUSE                                = 48
   190  	EADDRNOTAVAIL                             = 49
   191  	EAFNOSUPPORT                              = 47
   192  	EAGAIN                                    = 35
   193  	EALREADY                                  = 37
   194  	EAUTH                                     = 80
   195  	EBADARCH                                  = 86
   196  	EBADEXEC                                  = 85
   197  	EBADF                                     = 9
   198  	EBADMACHO                                 = 88
   199  	EBADMSG                                   = 94
   200  	EBADRPC                                   = 72
   201  	EBUSY                                     = 16
   202  	ECANCELED                                 = 89
   203  	ECHILD                                    = 10
   204  	ECONNABORTED                              = 53
   205  	ECONNREFUSED                              = 61
   206  	ECONNRESET                                = 54
   207  	EDEADLK                                   = 11
   208  	EDESTADDRREQ                              = 39
   209  	EDEVERR                                   = 83
   210  	EDOM                                      = 33
   211  	EDQUOT                                    = 69
   212  	EEXIST                                    = 17
   213  	EFAULT                                    = 14
   214  	EFBIG                                     = 27
   215  	EFTYPE                                    = 79
   216  	EHOSTDOWN                                 = 64
   217  	EHOSTUNREACH                              = 65
   218  	EIDRM                                     = 90
   219  	EILSEQ                                    = 92
   220  	EINPROGRESS                               = 36
   221  	EINTR                                     = 4
   222  	EINVAL                                    = 22
   223  	EIO                                       = 5
   224  	EISCONN                                   = 56
   225  	EISDIR                                    = 21
   226  	ELAST                                     = 106
   227  	ELFlagFocus                               = 1
   228  	ELFlagSameScreen                          = 2
   229  	ELOOP                                     = 62
   230  	EMFILE                                    = 24
   231  	EMLINK                                    = 31
   232  	EMSGSIZE                                  = 40
   233  	EMULTIHOP                                 = 95
   234  	ENAMETOOLONG                              = 63
   235  	ENEEDAUTH                                 = 81
   236  	ENETDOWN                                  = 50
   237  	ENETRESET                                 = 52
   238  	ENETUNREACH                               = 51
   239  	ENFILE                                    = 23
   240  	ENOATTR                                   = 93
   241  	ENOBUFS                                   = 55
   242  	ENODATA                                   = 96
   243  	ENODEV                                    = 19
   244  	ENOENT                                    = 2
   245  	ENOEXEC                                   = 8
   246  	ENOLCK                                    = 77
   247  	ENOLINK                                   = 97
   248  	ENOMEM                                    = 12
   249  	ENOMSG                                    = 91
   250  	ENOPOLICY                                 = 103
   251  	ENOPROTOOPT                               = 42
   252  	ENOSPC                                    = 28
   253  	ENOSR                                     = 98
   254  	ENOSTR                                    = 99
   255  	ENOSYS                                    = 78
   256  	ENOTBLK                                   = 15
   257  	ENOTCONN                                  = 57
   258  	ENOTDIR                                   = 20
   259  	ENOTEMPTY                                 = 66
   260  	ENOTRECOVERABLE                           = 104
   261  	ENOTSOCK                                  = 38
   262  	ENOTSUP                                   = 45
   263  	ENOTTY                                    = 25
   264  	ENXIO                                     = 6
   265  	EOPNOTSUPP                                = 102
   266  	EOVERFLOW                                 = 84
   267  	EOWNERDEAD                                = 105
   268  	EPERM                                     = 1
   269  	EPFNOSUPPORT                              = 46
   270  	EPIPE                                     = 32
   271  	EPROCLIM                                  = 67
   272  	EPROCUNAVAIL                              = 76
   273  	EPROGMISMATCH                             = 75
   274  	EPROGUNAVAIL                              = 74
   275  	EPROTO                                    = 100
   276  	EPROTONOSUPPORT                           = 43
   277  	EPROTOTYPE                                = 41
   278  	EPWROFF                                   = 82
   279  	EQFULL                                    = 106
   280  	ERANGE                                    = 34
   281  	EREMOTE                                   = 71
   282  	EROFS                                     = 30
   283  	ERPCMISMATCH                              = 73
   284  	ESHLIBVERS                                = 87
   285  	ESHUTDOWN                                 = 58
   286  	ESOCKTNOSUPPORT                           = 44
   287  	ESPIPE                                    = 29
   288  	ESRCH                                     = 3
   289  	ESTALE                                    = 70
   290  	ETIME                                     = 101
   291  	ETIMEDOUT                                 = 60
   292  	ETOOMANYREFS                              = 59
   293  	ETXTBSY                                   = 26
   294  	EUSERS                                    = 68
   295  	EWOULDBLOCK                               = 35
   296  	EXDEV                                     = 18
   297  	EXIT_FAILURE                              = 1
   298  	EXIT_SUCCESS                              = 0
   299  	EastGravity                               = 6
   300  	EnableAccess                              = 1
   301  	EnterNotify                               = 7
   302  	EnterWindowMask                           = 16
   303  	EvenOddRule                               = 0
   304  	Expose                                    = 12
   305  	ExposureMask                              = 32768
   306  	FARCSPERBATCH                             = 256
   307  	FD_SETSIZE                                = 1024
   308  	FOOTPRINT_INTERVAL_RESET                  = 0x1
   309  	FPE_FLTDIV                                = 1
   310  	FPE_FLTINV                                = 5
   311  	FPE_FLTOVF                                = 2
   312  	FPE_FLTRES                                = 4
   313  	FPE_FLTSUB                                = 6
   314  	FPE_FLTUND                                = 3
   315  	FPE_INTDIV                                = 7
   316  	FPE_INTOVF                                = 8
   317  	FPE_NOOP                                  = 0
   318  	FRCTSPERBATCH                             = 256
   319  	FUNCPROTO                                 = 15
   320  	False                                     = 0
   321  	FamilyChaos                               = 2
   322  	FamilyDECnet                              = 1
   323  	FamilyInternet                            = 0
   324  	FamilyInternet6                           = 6
   325  	FamilyServerInterpreted                   = 5
   326  	FillOpaqueStippled                        = 3
   327  	FillSolid                                 = 0
   328  	FillStippled                              = 2
   329  	FillTiled                                 = 1
   330  	FilterAliasNone                           = -1
   331  	FilterBest                                = "best"
   332  	FilterBilinear                            = "bilinear"
   333  	FilterConvolution                         = "convolution"
   334  	FilterFast                                = "fast"
   335  	FilterGood                                = "good"
   336  	FilterNearest                             = "nearest"
   337  	FirstExtensionError                       = 128
   338  	FocusChangeMask                           = 2097152
   339  	FocusIn                                   = 9
   340  	FocusOut                                  = 10
   341  	FontChange                                = 255
   342  	FontLeftToRight                           = 0
   343  	FontRightToLeft                           = 1
   344  	ForgetGravity                             = 0
   345  	GCArcMode                                 = 4194304
   346  	GCBackground                              = 8
   347  	GCCapStyle                                = 64
   348  	GCClipMask                                = 524288
   349  	GCClipXOrigin                             = 131072
   350  	GCClipYOrigin                             = 262144
   351  	GCDashList                                = 2097152
   352  	GCDashOffset                              = 1048576
   353  	GCFillRule                                = 512
   354  	GCFillStyle                               = 256
   355  	GCFont                                    = 16384
   356  	GCForeground                              = 4
   357  	GCFunction                                = 1
   358  	GCGraphicsExposures                       = 65536
   359  	GCJoinStyle                               = 128
   360  	GCLastBit                                 = 22
   361  	GCLineStyle                               = 32
   362  	GCLineWidth                               = 16
   363  	GCPlaneMask                               = 2
   364  	GCStipple                                 = 2048
   365  	GCSubwindowMode                           = 32768
   366  	GCTile                                    = 1024
   367  	GCTileStipXOrigin                         = 4096
   368  	GCTileStipYOrigin                         = 8192
   369  	GXand                                     = 0x1
   370  	GXandInverted                             = 0x4
   371  	GXandReverse                              = 0x2
   372  	GXclear                                   = 0x0
   373  	GXcopy                                    = 0x3
   374  	GXcopyInverted                            = 0xc
   375  	GXequiv                                   = 0x9
   376  	GXinvert                                  = 0xa
   377  	GXnand                                    = 0xe
   378  	GXnoop                                    = 0x5
   379  	GXnor                                     = 0x8
   380  	GXor                                      = 0x7
   381  	GXorInverted                              = 0xd
   382  	GXorReverse                               = 0xb
   383  	GXset                                     = 0xf
   384  	GXxor                                     = 0x6
   385  	GenericEvent                              = 35
   386  	GrabFrozen                                = 4
   387  	GrabInvalidTime                           = 2
   388  	GrabModeAsync                             = 1
   389  	GrabModeSync                              = 0
   390  	GrabNotViewable                           = 3
   391  	GrabSuccess                               = 0
   392  	GraphicsExpose                            = 13
   393  	GravityNotify                             = 24
   394  	GrayScale                                 = 1
   395  	HAVE_CONFIG_H                             = 1
   396  	HAVE_DLFCN_H                              = 1
   397  	HAVE_INTTYPES_H                           = 1
   398  	HAVE_MEMORY_H                             = 1
   399  	HAVE_STDINT_H                             = 1
   400  	HAVE_STDLIB_H                             = 1
   401  	HAVE_STRINGS_H                            = 1
   402  	HAVE_STRING_H                             = 1
   403  	HAVE_SYS_STAT_H                           = 1
   404  	HAVE_SYS_TYPES_H                          = 1
   405  	HAVE_UNISTD_H                             = 1
   406  	HeightValue                               = 0x0008
   407  	HostDelete                                = 1
   408  	HostInsert                                = 0
   409  	ILL_BADSTK                                = 8
   410  	ILL_COPROC                                = 7
   411  	ILL_ILLADR                                = 5
   412  	ILL_ILLOPC                                = 1
   413  	ILL_ILLOPN                                = 4
   414  	ILL_ILLTRP                                = 2
   415  	ILL_NOOP                                  = 0
   416  	ILL_PRVOPC                                = 3
   417  	ILL_PRVREG                                = 6
   418  	INT16_MAX                                 = 32767
   419  	INT16_MIN                                 = -32768
   420  	INT32_MAX                                 = 2147483647
   421  	INT32_MIN                                 = -2147483648
   422  	INT64_MAX                                 = 9223372036854775807
   423  	INT64_MIN                                 = -9223372036854775808
   424  	INT8_MAX                                  = 127
   425  	INT8_MIN                                  = -128
   426  	INTMAX_MAX                                = 9223372036854775807
   427  	INTMAX_MIN                                = -9223372036854775808
   428  	INTPTR_MAX                                = 9223372036854775807
   429  	INTPTR_MIN                                = -9223372036854775808
   430  	INT_FAST16_MAX                            = 32767
   431  	INT_FAST16_MIN                            = -32768
   432  	INT_FAST32_MAX                            = 2147483647
   433  	INT_FAST32_MIN                            = -2147483648
   434  	INT_FAST64_MAX                            = 9223372036854775807
   435  	INT_FAST64_MIN                            = -9223372036854775808
   436  	INT_FAST8_MAX                             = 127
   437  	INT_FAST8_MIN                             = -128
   438  	INT_LEAST16_MAX                           = 32767
   439  	INT_LEAST16_MIN                           = -32768
   440  	INT_LEAST32_MAX                           = 2147483647
   441  	INT_LEAST32_MIN                           = -2147483648
   442  	INT_LEAST64_MAX                           = 9223372036854775807
   443  	INT_LEAST64_MIN                           = -9223372036854775808
   444  	INT_LEAST8_MAX                            = 127
   445  	INT_LEAST8_MIN                            = -128
   446  	IOPOL_APPLICATION                         = 5
   447  	IOPOL_ATIME_UPDATES_DEFAULT               = 0
   448  	IOPOL_ATIME_UPDATES_OFF                   = 1
   449  	IOPOL_DEFAULT                             = 0
   450  	IOPOL_IMPORTANT                           = 1
   451  	IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT  = 0
   452  	IOPOL_MATERIALIZE_DATALESS_FILES_OFF      = 1
   453  	IOPOL_MATERIALIZE_DATALESS_FILES_ON       = 2
   454  	IOPOL_NORMAL                              = 1
   455  	IOPOL_PASSIVE                             = 2
   456  	IOPOL_SCOPE_DARWIN_BG                     = 2
   457  	IOPOL_SCOPE_PROCESS                       = 0
   458  	IOPOL_SCOPE_THREAD                        = 1
   459  	IOPOL_STANDARD                            = 5
   460  	IOPOL_THROTTLE                            = 3
   461  	IOPOL_TYPE_DISK                           = 0
   462  	IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES     = 9
   463  	IOPOL_TYPE_VFS_ATIME_UPDATES              = 2
   464  	IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION  = 6
   465  	IOPOL_TYPE_VFS_IGNORE_PERMISSIONS         = 7
   466  	IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES = 3
   467  	IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE          = 8
   468  	IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME      = 4
   469  	IOPOL_TYPE_VFS_TRIGGER_RESOLVE            = 5
   470  	IOPOL_UTILITY                             = 4
   471  	IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF      = 0
   472  	IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON       = 1
   473  	IOPOL_VFS_CONTENT_PROTECTION_DEFAULT      = 0
   474  	IOPOL_VFS_CONTENT_PROTECTION_IGNORE       = 1
   475  	IOPOL_VFS_IGNORE_PERMISSIONS_OFF          = 0
   476  	IOPOL_VFS_IGNORE_PERMISSIONS_ON           = 1
   477  	IOPOL_VFS_SKIP_MTIME_UPDATE_OFF           = 0
   478  	IOPOL_VFS_SKIP_MTIME_UPDATE_ON            = 1
   479  	IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME     = 1
   480  	IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT   = 0
   481  	IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT         = 0
   482  	IOPOL_VFS_TRIGGER_RESOLVE_OFF             = 1
   483  	IconMaskHint                              = 32
   484  	IconPixmapHint                            = 4
   485  	IconPositionHint                          = 16
   486  	IconWindowHint                            = 8
   487  	IconicState                               = 3
   488  	InactiveState                             = 4
   489  	IncludeInferiors                          = 1
   490  	InputFocus                                = 1
   491  	InputHint                                 = 1
   492  	InputOnly                                 = 2
   493  	InputOutput                               = 1
   494  	IsUnmapped                                = 0
   495  	IsUnviewable                              = 1
   496  	IsViewable                                = 2
   497  	JoinBevel                                 = 2
   498  	JoinMiter                                 = 0
   499  	JoinRound                                 = 1
   500  	KBAutoRepeatMode                          = 128
   501  	KBBellDuration                            = 8
   502  	KBBellPercent                             = 2
   503  	KBBellPitch                               = 4
   504  	KBKey                                     = 64
   505  	KBKeyClickPercent                         = 1
   506  	KBLed                                     = 16
   507  	KBLedMode                                 = 32
   508  	KeyPress                                  = 2
   509  	KeyPressMask                              = 1
   510  	KeyRelease                                = 3
   511  	KeyReleaseMask                            = 2
   512  	KeymapNotify                              = 11
   513  	KeymapStateMask                           = 16384
   514  	LASTEvent                                 = 36
   515  	LITTLE_ENDIAN                             = 1234
   516  	LOCKED                                    = 1
   517  	LONG64                                    = 0
   518  	LSBFirst                                  = 0
   519  	LT_OBJDIR                                 = ".libs/"
   520  	LastExtensionError                        = 255
   521  	LeaveNotify                               = 8
   522  	LeaveWindowMask                           = 32
   523  	LedModeOff                                = 0
   524  	LedModeOn                                 = 1
   525  	LineDoubleDash                            = 2
   526  	LineOnOffDash                             = 1
   527  	LineSolid                                 = 0
   528  	LockMapIndex                              = 1
   529  	LockMask                                  = 2
   530  	LowerHighest                              = 1
   531  	MAC_OS_VERSION_11_0                       = 110000
   532  	MAC_OS_VERSION_12_0                       = 120000
   533  	MAC_OS_X_VERSION_10_0                     = 1000
   534  	MAC_OS_X_VERSION_10_1                     = 1010
   535  	MAC_OS_X_VERSION_10_10                    = 101000
   536  	MAC_OS_X_VERSION_10_10_2                  = 101002
   537  	MAC_OS_X_VERSION_10_10_3                  = 101003
   538  	MAC_OS_X_VERSION_10_11                    = 101100
   539  	MAC_OS_X_VERSION_10_11_2                  = 101102
   540  	MAC_OS_X_VERSION_10_11_3                  = 101103
   541  	MAC_OS_X_VERSION_10_11_4                  = 101104
   542  	MAC_OS_X_VERSION_10_12                    = 101200
   543  	MAC_OS_X_VERSION_10_12_1                  = 101201
   544  	MAC_OS_X_VERSION_10_12_2                  = 101202
   545  	MAC_OS_X_VERSION_10_12_4                  = 101204
   546  	MAC_OS_X_VERSION_10_13                    = 101300
   547  	MAC_OS_X_VERSION_10_13_1                  = 101301
   548  	MAC_OS_X_VERSION_10_13_2                  = 101302
   549  	MAC_OS_X_VERSION_10_13_4                  = 101304
   550  	MAC_OS_X_VERSION_10_14                    = 101400
   551  	MAC_OS_X_VERSION_10_14_1                  = 101401
   552  	MAC_OS_X_VERSION_10_14_4                  = 101404
   553  	MAC_OS_X_VERSION_10_14_6                  = 101406
   554  	MAC_OS_X_VERSION_10_15                    = 101500
   555  	MAC_OS_X_VERSION_10_15_1                  = 101501
   556  	MAC_OS_X_VERSION_10_16                    = 101600
   557  	MAC_OS_X_VERSION_10_2                     = 1020
   558  	MAC_OS_X_VERSION_10_3                     = 1030
   559  	MAC_OS_X_VERSION_10_4                     = 1040
   560  	MAC_OS_X_VERSION_10_5                     = 1050
   561  	MAC_OS_X_VERSION_10_6                     = 1060
   562  	MAC_OS_X_VERSION_10_7                     = 1070
   563  	MAC_OS_X_VERSION_10_8                     = 1080
   564  	MAC_OS_X_VERSION_10_9                     = 1090
   565  	MINSIGSTKSZ                               = 32768
   566  	MSBFirst                                  = 1
   567  	MapNotify                                 = 19
   568  	MapRequest                                = 20
   569  	MappingBusy                               = 1
   570  	MappingFailed                             = 2
   571  	MappingKeyboard                           = 1
   572  	MappingModifier                           = 0
   573  	MappingNotify                             = 34
   574  	MappingPointer                            = 2
   575  	MappingSuccess                            = 0
   576  	Mod1MapIndex                              = 3
   577  	Mod1Mask                                  = 8
   578  	Mod2MapIndex                              = 4
   579  	Mod2Mask                                  = 16
   580  	Mod3MapIndex                              = 5
   581  	Mod3Mask                                  = 32
   582  	Mod4MapIndex                              = 6
   583  	Mod4Mask                                  = 64
   584  	Mod5MapIndex                              = 7
   585  	Mod5Mask                                  = 128
   586  	MotionNotify                              = 6
   587  	NBBY                                      = 8
   588  	NLOCAL                                    = 256
   589  	NSIG                                      = 32
   590  	NULL_NOT_ZERO                             = 0
   591  	NeedFunctionPrototypes                    = 1
   592  	NeedNestedPrototypes                      = 1
   593  	NeedVarargsPrototypes                     = 1
   594  	NeedWidePrototypes                        = 1
   595  	NoEventMask                               = 0
   596  	NoExpose                                  = 14
   597  	NoSymbol                                  = 0
   598  	NoValue                                   = 0x0000
   599  	Nonconvex                                 = 1
   600  	None                                      = 0
   601  	NormalState                               = 1
   602  	NorthEastGravity                          = 3
   603  	NorthGravity                              = 2
   604  	NorthWestGravity                          = 1
   605  	NotUseful                                 = 0
   606  	NotifyAncestor                            = 0
   607  	NotifyDetailNone                          = 7
   608  	NotifyGrab                                = 1
   609  	NotifyHint                                = 1
   610  	NotifyInferior                            = 2
   611  	NotifyNonlinear                           = 3
   612  	NotifyNonlinearVirtual                    = 4
   613  	NotifyNormal                              = 0
   614  	NotifyPointer                             = 5
   615  	NotifyPointerRoot                         = 6
   616  	NotifyUngrab                              = 2
   617  	NotifyVirtual                             = 1
   618  	NotifyWhileGrabbed                        = 3
   619  	Opposite                                  = 4
   620  	OwnerGrabButtonMask                       = 16777216
   621  	PACKAGE                                   = "libXrender"
   622  	PACKAGE_BUGREPORT                         = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
   623  	PACKAGE_NAME                              = "libXrender"
   624  	PACKAGE_STRING                            = "libXrender 0.9.10"
   625  	PACKAGE_TARNAME                           = "libXrender"
   626  	PACKAGE_URL                               = ""
   627  	PACKAGE_VERSION                           = "0.9.10"
   628  	PACKAGE_VERSION_MAJOR                     = 0
   629  	PACKAGE_VERSION_MINOR                     = 9
   630  	PACKAGE_VERSION_PATCHLEVEL                = 10
   631  	PAllHints                                 = 252
   632  	PAspect                                   = 128
   633  	PBaseSize                                 = 256
   634  	PDP_ENDIAN                                = 3412
   635  	PMaxSize                                  = 32
   636  	PMinSize                                  = 16
   637  	POLL_ERR                                  = 4
   638  	POLL_HUP                                  = 6
   639  	POLL_IN                                   = 1
   640  	POLL_MSG                                  = 3
   641  	POLL_OUT                                  = 2
   642  	POLL_PRI                                  = 5
   643  	PPosition                                 = 4
   644  	PRIO_DARWIN_BG                            = 0x1000
   645  	PRIO_DARWIN_NONUI                         = 0x1001
   646  	PRIO_DARWIN_PROCESS                       = 4
   647  	PRIO_DARWIN_THREAD                        = 3
   648  	PRIO_MAX                                  = 20
   649  	PRIO_MIN                                  = -20
   650  	PRIO_PGRP                                 = 1
   651  	PRIO_PROCESS                              = 0
   652  	PRIO_USER                                 = 2
   653  	PResizeInc                                = 64
   654  	PSize                                     = 8
   655  	PTRDIFF_MAX                               = 9223372036854775807
   656  	PTRDIFF_MIN                               = -9223372036854775808
   657  	PTSPERBATCH                               = 1024
   658  	PWinGravity                               = 512
   659  	ParentRelative                            = 1
   660  	PictFormatAlpha                           = 512
   661  	PictFormatAlphaMask                       = 1024
   662  	PictFormatBlue                            = 128
   663  	PictFormatBlueMask                        = 256
   664  	PictFormatColormap                        = 2048
   665  	PictFormatDepth                           = 4
   666  	PictFormatGreen                           = 32
   667  	PictFormatGreenMask                       = 64
   668  	PictFormatID                              = 1
   669  	PictFormatRed                             = 8
   670  	PictFormatRedMask                         = 16
   671  	PictFormatType                            = 2
   672  	PictOpAdd                                 = 12
   673  	PictOpAtop                                = 9
   674  	PictOpAtopReverse                         = 10
   675  	PictOpBlendMaximum                        = 0x3e
   676  	PictOpBlendMinimum                        = 0x30
   677  	PictOpClear                               = 0
   678  	PictOpColorBurn                           = 0x36
   679  	PictOpColorDodge                          = 0x35
   680  	PictOpConjointAtop                        = 0x29
   681  	PictOpConjointAtopReverse                 = 0x2a
   682  	PictOpConjointClear                       = 0x20
   683  	PictOpConjointDst                         = 0x22
   684  	PictOpConjointIn                          = 0x25
   685  	PictOpConjointInReverse                   = 0x26
   686  	PictOpConjointMaximum                     = 0x2b
   687  	PictOpConjointMinimum                     = 0x20
   688  	PictOpConjointOut                         = 0x27
   689  	PictOpConjointOutReverse                  = 0x28
   690  	PictOpConjointOver                        = 0x23
   691  	PictOpConjointOverReverse                 = 0x24
   692  	PictOpConjointSrc                         = 0x21
   693  	PictOpConjointXor                         = 0x2b
   694  	PictOpDarken                              = 0x33
   695  	PictOpDifference                          = 0x39
   696  	PictOpDisjointAtop                        = 0x19
   697  	PictOpDisjointAtopReverse                 = 0x1a
   698  	PictOpDisjointClear                       = 0x10
   699  	PictOpDisjointDst                         = 0x12
   700  	PictOpDisjointIn                          = 0x15
   701  	PictOpDisjointInReverse                   = 0x16
   702  	PictOpDisjointMaximum                     = 0x1b
   703  	PictOpDisjointMinimum                     = 0x10
   704  	PictOpDisjointOut                         = 0x17
   705  	PictOpDisjointOutReverse                  = 0x18
   706  	PictOpDisjointOver                        = 0x13
   707  	PictOpDisjointOverReverse                 = 0x14
   708  	PictOpDisjointSrc                         = 0x11
   709  	PictOpDisjointXor                         = 0x1b
   710  	PictOpDst                                 = 2
   711  	PictOpExclusion                           = 0x3a
   712  	PictOpHSLColor                            = 0x3d
   713  	PictOpHSLHue                              = 0x3b
   714  	PictOpHSLLuminosity                       = 0x3e
   715  	PictOpHSLSaturation                       = 0x3c
   716  	PictOpHardLight                           = 0x37
   717  	PictOpIn                                  = 5
   718  	PictOpInReverse                           = 6
   719  	PictOpLighten                             = 0x34
   720  	PictOpMaximum                             = 13
   721  	PictOpMinimum                             = 0
   722  	PictOpMultiply                            = 0x30
   723  	PictOpOut                                 = 7
   724  	PictOpOutReverse                          = 8
   725  	PictOpOver                                = 3
   726  	PictOpOverReverse                         = 4
   727  	PictOpOverlay                             = 0x32
   728  	PictOpSaturate                            = 13
   729  	PictOpScreen                              = 0x31
   730  	PictOpSoftLight                           = 0x38
   731  	PictOpSrc                                 = 1
   732  	PictOpXor                                 = 11
   733  	PictStandardA1                            = 4
   734  	PictStandardA4                            = 3
   735  	PictStandardA8                            = 2
   736  	PictStandardARGB32                        = 0
   737  	PictStandardNUM                           = 5
   738  	PictStandardRGB24                         = 1
   739  	PictTypeDirect                            = 1
   740  	PictTypeIndexed                           = 0
   741  	PlaceOnBottom                             = 1
   742  	PlaceOnTop                                = 0
   743  	PointerMotionHintMask                     = 128
   744  	PointerMotionMask                         = 64
   745  	PointerRoot                               = 1
   746  	PointerWindow                             = 0
   747  	PolyEdgeSharp                             = 0
   748  	PolyEdgeSmooth                            = 1
   749  	PolyModeImprecise                         = 1
   750  	PolyModePrecise                           = 0
   751  	PreferBlanking                            = 1
   752  	PropModeAppend                            = 2
   753  	PropModePrepend                           = 1
   754  	PropModeReplace                           = 0
   755  	PropertyChangeMask                        = 4194304
   756  	PropertyDelete                            = 1
   757  	PropertyNewValue                          = 0
   758  	PropertyNotify                            = 28
   759  	PseudoColor                               = 3
   760  	QueuedAfterFlush                          = 2
   761  	QueuedAfterReading                        = 1
   762  	QueuedAlready                             = 0
   763  	RAND_MAX                                  = 0x7fffffff
   764  	RENDER_MAJOR                              = 0
   765  	RENDER_MINOR                              = 11
   766  	RENDER_NAME                               = "RENDER"
   767  	RLIMIT_AS                                 = 5
   768  	RLIMIT_CORE                               = 4
   769  	RLIMIT_CPU                                = 0
   770  	RLIMIT_CPU_USAGE_MONITOR                  = 0x2
   771  	RLIMIT_DATA                               = 2
   772  	RLIMIT_FOOTPRINT_INTERVAL                 = 0x4
   773  	RLIMIT_FSIZE                              = 1
   774  	RLIMIT_MEMLOCK                            = 6
   775  	RLIMIT_NOFILE                             = 8
   776  	RLIMIT_NPROC                              = 7
   777  	RLIMIT_RSS                                = 5
   778  	RLIMIT_STACK                              = 3
   779  	RLIMIT_THREAD_CPULIMITS                   = 0x3
   780  	RLIMIT_WAKEUPS_MONITOR                    = 0x1
   781  	RLIM_NLIMITS                              = 9
   782  	RSIZE_MAX                                 = 9223372036854775807
   783  	RUSAGE_CHILDREN                           = -1
   784  	RUSAGE_INFO_CURRENT                       = 5
   785  	RUSAGE_INFO_V0                            = 0
   786  	RUSAGE_INFO_V1                            = 1
   787  	RUSAGE_INFO_V2                            = 2
   788  	RUSAGE_INFO_V3                            = 3
   789  	RUSAGE_INFO_V4                            = 4
   790  	RUSAGE_INFO_V5                            = 5
   791  	RUSAGE_SELF                               = 0
   792  	RU_PROC_RUNS_RESLIDE                      = 0x00000001
   793  	RaiseLowest                               = 0
   794  	RectangleIn                               = 1
   795  	RectangleOut                              = 0
   796  	RectanglePart                             = 2
   797  	RenderNumberErrors                        = 5
   798  	RenderNumberRequests                      = 37
   799  	ReparentNotify                            = 21
   800  	RepeatNone                                = 0
   801  	RepeatNormal                              = 1
   802  	RepeatPad                                 = 2
   803  	RepeatReflect                             = 3
   804  	ReplayKeyboard                            = 5
   805  	ReplayPointer                             = 2
   806  	ResizeRedirectMask                        = 262144
   807  	ResizeRequest                             = 25
   808  	RetainPermanent                           = 1
   809  	RetainTemporary                           = 2
   810  	RevertToParent                            = 2
   811  	SA_64REGSET                               = 0x0200
   812  	SA_NOCLDSTOP                              = 0x0008
   813  	SA_NOCLDWAIT                              = 0x0020
   814  	SA_NODEFER                                = 0x0010
   815  	SA_ONSTACK                                = 0x0001
   816  	SA_RESETHAND                              = 0x0004
   817  	SA_RESTART                                = 0x0002
   818  	SA_SIGINFO                                = 0x0040
   819  	SA_USERSPACE_MASK                         = 127
   820  	SA_USERTRAMP                              = 0x0100
   821  	SEGV_ACCERR                               = 2
   822  	SEGV_MAPERR                               = 1
   823  	SEGV_NOOP                                 = 0
   824  	SIGABRT                                   = 6
   825  	SIGALRM                                   = 14
   826  	SIGBUS                                    = 10
   827  	SIGCHLD                                   = 20
   828  	SIGCONT                                   = 19
   829  	SIGEMT                                    = 7
   830  	SIGEV_NONE                                = 0
   831  	SIGEV_SIGNAL                              = 1
   832  	SIGEV_THREAD                              = 3
   833  	SIGFPE                                    = 8
   834  	SIGHUP                                    = 1
   835  	SIGILL                                    = 4
   836  	SIGINFO                                   = 29
   837  	SIGINT                                    = 2
   838  	SIGIO                                     = 23
   839  	SIGIOT                                    = 6
   840  	SIGKILL                                   = 9
   841  	SIGPIPE                                   = 13
   842  	SIGPROF                                   = 27
   843  	SIGQUIT                                   = 3
   844  	SIGSEGV                                   = 11
   845  	SIGSTKSZ                                  = 131072
   846  	SIGSTOP                                   = 17
   847  	SIGSYS                                    = 12
   848  	SIGTERM                                   = 15
   849  	SIGTRAP                                   = 5
   850  	SIGTSTP                                   = 18
   851  	SIGTTIN                                   = 21
   852  	SIGTTOU                                   = 22
   853  	SIGURG                                    = 16
   854  	SIGUSR1                                   = 30
   855  	SIGUSR2                                   = 31
   856  	SIGVTALRM                                 = 26
   857  	SIGWINCH                                  = 28
   858  	SIGXCPU                                   = 24
   859  	SIGXFSZ                                   = 25
   860  	SIG_ATOMIC_MAX                            = 2147483647
   861  	SIG_ATOMIC_MIN                            = -2147483648
   862  	SIG_BLOCK                                 = 1
   863  	SIG_SETMASK                               = 3
   864  	SIG_UNBLOCK                               = 2
   865  	SIZE_MAX                                  = 18446744073709551615
   866  	SI_ASYNCIO                                = 0x10004
   867  	SI_MESGQ                                  = 0x10005
   868  	SI_QUEUE                                  = 0x10002
   869  	SI_TIMER                                  = 0x10003
   870  	SI_USER                                   = 0x10001
   871  	SS_DISABLE                                = 0x0004
   872  	SS_ONSTACK                                = 0x0001
   873  	STDC_HEADERS                              = 1
   874  	SV_INTERRUPT                              = 2
   875  	SV_NOCLDSTOP                              = 8
   876  	SV_NODEFER                                = 16
   877  	SV_ONSTACK                                = 1
   878  	SV_RESETHAND                              = 4
   879  	SV_SIGINFO                                = 64
   880  	ScreenSaverActive                         = 1
   881  	ScreenSaverReset                          = 0
   882  	SelectionClear                            = 29
   883  	SelectionNotify                           = 31
   884  	SelectionRequest                          = 30
   885  	SetModeDelete                             = 1
   886  	SetModeInsert                             = 0
   887  	ShiftMapIndex                             = 0
   888  	ShiftMask                                 = 1
   889  	SouthEastGravity                          = 9
   890  	SouthGravity                              = 8
   891  	SouthWestGravity                          = 7
   892  	StateHint                                 = 2
   893  	StaticColor                               = 2
   894  	StaticGravity                             = 10
   895  	StaticGray                                = 0
   896  	StippleShape                              = 2
   897  	StructureNotifyMask                       = 131072
   898  	SubPixelHorizontalBGR                     = 2
   899  	SubPixelHorizontalRGB                     = 1
   900  	SubPixelNone                              = 5
   901  	SubPixelUnknown                           = 0
   902  	SubPixelVerticalBGR                       = 4
   903  	SubPixelVerticalRGB                       = 3
   904  	SubstructureNotifyMask                    = 524288
   905  	SubstructureRedirectMask                  = 1048576
   906  	Success                                   = 0
   907  	SyncBoth                                  = 7
   908  	SyncKeyboard                              = 4
   909  	SyncPointer                               = 1
   910  	TRAP_BRKPT                                = 1
   911  	TRAP_TRACE                                = 2
   912  	TileShape                                 = 1
   913  	TopIf                                     = 2
   914  	True                                      = 1
   915  	TrueColor                                 = 4
   916  	UINT16_MAX                                = 65535
   917  	UINT32_MAX                                = 4294967295
   918  	UINT64_MAX                                = 18446744073709551615
   919  	UINT8_MAX                                 = 255
   920  	UINTMAX_MAX                               = 18446744073709551615
   921  	UINTPTR_MAX                               = 18446744073709551615
   922  	UINT_FAST16_MAX                           = 65535
   923  	UINT_FAST32_MAX                           = 4294967295
   924  	UINT_FAST64_MAX                           = 18446744073709551615
   925  	UINT_FAST8_MAX                            = 255
   926  	UINT_LEAST16_MAX                          = 65535
   927  	UINT_LEAST32_MAX                          = 4294967295
   928  	UINT_LEAST64_MAX                          = 18446744073709551615
   929  	UINT_LEAST8_MAX                           = 255
   930  	UNLOCKED                                  = 0
   931  	USPosition                                = 1
   932  	USSize                                    = 2
   933  	UnmapGravity                              = 0
   934  	UnmapNotify                               = 18
   935  	Unsorted                                  = 0
   936  	VERSION                                   = "0.9.10"
   937  	VisibilityChangeMask                      = 65536
   938  	VisibilityFullyObscured                   = 2
   939  	VisibilityNotify                          = 15
   940  	VisibilityPartiallyObscured               = 1
   941  	VisibilityUnobscured                      = 0
   942  	VisualAllMask                             = 0x1FF
   943  	VisualBitsPerRGBMask                      = 0x100
   944  	VisualBlueMaskMask                        = 0x40
   945  	VisualClassMask                           = 0x8
   946  	VisualColormapSizeMask                    = 0x80
   947  	VisualDepthMask                           = 0x4
   948  	VisualGreenMaskMask                       = 0x20
   949  	VisualIDMask                              = 0x1
   950  	VisualNoMask                              = 0x0
   951  	VisualRedMaskMask                         = 0x10
   952  	VisualScreenMask                          = 0x2
   953  	WAIT_ANY                                  = -1
   954  	WAIT_MYPGRP                               = 0
   955  	WAKEMON_DISABLE                           = 0x02
   956  	WAKEMON_ENABLE                            = 0x01
   957  	WAKEMON_GET_PARAMS                        = 0x04
   958  	WAKEMON_MAKE_FATAL                        = 0x10
   959  	WAKEMON_SET_DEFAULTS                      = 0x08
   960  	WCHAR_MAX                                 = 2147483647
   961  	WCHAR_MIN                                 = -2147483648
   962  	WCONTINUED                                = 0x00000010
   963  	WCOREFLAG                                 = 0200
   964  	WEXITED                                   = 0x00000004
   965  	WINT_MAX                                  = 2147483647
   966  	WINT_MIN                                  = -2147483648
   967  	WLNSPERBATCH                              = 50
   968  	WNOHANG                                   = 0x00000001
   969  	WNOWAIT                                   = 0x00000020
   970  	WORD64ALIGN                               = 0
   971  	WRCTSPERBATCH                             = 10
   972  	WSTOPPED                                  = 0x00000008
   973  	WUNTRACED                                 = 0x00000002
   974  	WestGravity                               = 4
   975  	WhenMapped                                = 1
   976  	WidthValue                                = 0x0004
   977  	WindingRule                               = 1
   978  	WindowGroupHint                           = 64
   979  	WithdrawnState                            = 0
   980  	XBufferOverflow                           = -1
   981  	XCNOENT                                   = 2
   982  	XCNOMEM                                   = 1
   983  	XCSUCCESS                                 = 0
   984  	XConverterNotFound                        = -3
   985  	XIMHighlight                              = 4
   986  	XIMHotKeyStateOFF                         = 2
   987  	XIMHotKeyStateON                          = 1
   988  	XIMInitialState                           = 1
   989  	XIMPreeditArea                            = 0x0001
   990  	XIMPreeditCallbacks                       = 0x0002
   991  	XIMPreeditDisable                         = 2
   992  	XIMPreeditEnable                          = 1
   993  	XIMPreeditNone                            = 0x0010
   994  	XIMPreeditNothing                         = 0x0008
   995  	XIMPreeditPosition                        = 0x0004
   996  	XIMPreeditUnKnown                         = 0
   997  	XIMPreserveState                          = 2
   998  	XIMPrimary                                = 32
   999  	XIMReverse                                = 1
  1000  	XIMSecondary                              = 64
  1001  	XIMStatusArea                             = 0x0100
  1002  	XIMStatusCallbacks                        = 0x0200
  1003  	XIMStatusNone                             = 0x0800
  1004  	XIMStatusNothing                          = 0x0400
  1005  	XIMStringConversionBottomEdge             = 8
  1006  	XIMStringConversionBuffer                 = 1
  1007  	XIMStringConversionChar                   = 4
  1008  	XIMStringConversionConcealed              = 16
  1009  	XIMStringConversionLeftEdge               = 1
  1010  	XIMStringConversionLine                   = 2
  1011  	XIMStringConversionRetrieval              = 2
  1012  	XIMStringConversionRightEdge              = 2
  1013  	XIMStringConversionSubstitution           = 1
  1014  	XIMStringConversionTopEdge                = 4
  1015  	XIMStringConversionWord                   = 3
  1016  	XIMStringConversionWrapped                = 32
  1017  	XIMTertiary                               = 128
  1018  	XIMUnderline                              = 2
  1019  	XIMVisibleToBackword                      = 512
  1020  	XIMVisibleToCenter                        = 1024
  1021  	XIMVisibleToForward                       = 256
  1022  	XK_0                                      = 0x0030
  1023  	XK_1                                      = 0x0031
  1024  	XK_2                                      = 0x0032
  1025  	XK_3                                      = 0x0033
  1026  	XK_4                                      = 0x0034
  1027  	XK_5                                      = 0x0035
  1028  	XK_6                                      = 0x0036
  1029  	XK_7                                      = 0x0037
  1030  	XK_8                                      = 0x0038
  1031  	XK_9                                      = 0x0039
  1032  	XK_A                                      = 0x0041
  1033  	XK_AE                                     = 0x00c6
  1034  	XK_ARABIC                                 = 0
  1035  	XK_ARMENIAN                               = 0
  1036  	XK_Aacute                                 = 0x00c1
  1037  	XK_Abelowdot                              = 0x1001ea0
  1038  	XK_Abreve                                 = 0x01c3
  1039  	XK_Abreveacute                            = 0x1001eae
  1040  	XK_Abrevebelowdot                         = 0x1001eb6
  1041  	XK_Abrevegrave                            = 0x1001eb0
  1042  	XK_Abrevehook                             = 0x1001eb2
  1043  	XK_Abrevetilde                            = 0x1001eb4
  1044  	XK_AccessX_Enable                         = 0xfe70
  1045  	XK_AccessX_Feedback_Enable                = 0xfe71
  1046  	XK_Acircumflex                            = 0x00c2
  1047  	XK_Acircumflexacute                       = 0x1001ea4
  1048  	XK_Acircumflexbelowdot                    = 0x1001eac
  1049  	XK_Acircumflexgrave                       = 0x1001ea6
  1050  	XK_Acircumflexhook                        = 0x1001ea8
  1051  	XK_Acircumflextilde                       = 0x1001eaa
  1052  	XK_Adiaeresis                             = 0x00c4
  1053  	XK_Agrave                                 = 0x00c0
  1054  	XK_Ahook                                  = 0x1001ea2
  1055  	XK_Alt_L                                  = 0xffe9
  1056  	XK_Alt_R                                  = 0xffea
  1057  	XK_Amacron                                = 0x03c0
  1058  	XK_Aogonek                                = 0x01a1
  1059  	XK_Arabic_0                               = 0x1000660
  1060  	XK_Arabic_1                               = 0x1000661
  1061  	XK_Arabic_2                               = 0x1000662
  1062  	XK_Arabic_3                               = 0x1000663
  1063  	XK_Arabic_4                               = 0x1000664
  1064  	XK_Arabic_5                               = 0x1000665
  1065  	XK_Arabic_6                               = 0x1000666
  1066  	XK_Arabic_7                               = 0x1000667
  1067  	XK_Arabic_8                               = 0x1000668
  1068  	XK_Arabic_9                               = 0x1000669
  1069  	XK_Arabic_ain                             = 0x05d9
  1070  	XK_Arabic_alef                            = 0x05c7
  1071  	XK_Arabic_alefmaksura                     = 0x05e9
  1072  	XK_Arabic_beh                             = 0x05c8
  1073  	XK_Arabic_comma                           = 0x05ac
  1074  	XK_Arabic_dad                             = 0x05d6
  1075  	XK_Arabic_dal                             = 0x05cf
  1076  	XK_Arabic_damma                           = 0x05ef
  1077  	XK_Arabic_dammatan                        = 0x05ec
  1078  	XK_Arabic_ddal                            = 0x1000688
  1079  	XK_Arabic_farsi_yeh                       = 0x10006cc
  1080  	XK_Arabic_fatha                           = 0x05ee
  1081  	XK_Arabic_fathatan                        = 0x05eb
  1082  	XK_Arabic_feh                             = 0x05e1
  1083  	XK_Arabic_fullstop                        = 0x10006d4
  1084  	XK_Arabic_gaf                             = 0x10006af
  1085  	XK_Arabic_ghain                           = 0x05da
  1086  	XK_Arabic_ha                              = 0x05e7
  1087  	XK_Arabic_hah                             = 0x05cd
  1088  	XK_Arabic_hamza                           = 0x05c1
  1089  	XK_Arabic_hamza_above                     = 0x1000654
  1090  	XK_Arabic_hamza_below                     = 0x1000655
  1091  	XK_Arabic_hamzaonalef                     = 0x05c3
  1092  	XK_Arabic_hamzaonwaw                      = 0x05c4
  1093  	XK_Arabic_hamzaonyeh                      = 0x05c6
  1094  	XK_Arabic_hamzaunderalef                  = 0x05c5
  1095  	XK_Arabic_heh                             = 0x05e7
  1096  	XK_Arabic_heh_doachashmee                 = 0x10006be
  1097  	XK_Arabic_heh_goal                        = 0x10006c1
  1098  	XK_Arabic_jeem                            = 0x05cc
  1099  	XK_Arabic_jeh                             = 0x1000698
  1100  	XK_Arabic_kaf                             = 0x05e3
  1101  	XK_Arabic_kasra                           = 0x05f0
  1102  	XK_Arabic_kasratan                        = 0x05ed
  1103  	XK_Arabic_keheh                           = 0x10006a9
  1104  	XK_Arabic_khah                            = 0x05ce
  1105  	XK_Arabic_lam                             = 0x05e4
  1106  	XK_Arabic_madda_above                     = 0x1000653
  1107  	XK_Arabic_maddaonalef                     = 0x05c2
  1108  	XK_Arabic_meem                            = 0x05e5
  1109  	XK_Arabic_noon                            = 0x05e6
  1110  	XK_Arabic_noon_ghunna                     = 0x10006ba
  1111  	XK_Arabic_peh                             = 0x100067e
  1112  	XK_Arabic_percent                         = 0x100066a
  1113  	XK_Arabic_qaf                             = 0x05e2
  1114  	XK_Arabic_question_mark                   = 0x05bf
  1115  	XK_Arabic_ra                              = 0x05d1
  1116  	XK_Arabic_rreh                            = 0x1000691
  1117  	XK_Arabic_sad                             = 0x05d5
  1118  	XK_Arabic_seen                            = 0x05d3
  1119  	XK_Arabic_semicolon                       = 0x05bb
  1120  	XK_Arabic_shadda                          = 0x05f1
  1121  	XK_Arabic_sheen                           = 0x05d4
  1122  	XK_Arabic_sukun                           = 0x05f2
  1123  	XK_Arabic_superscript_alef                = 0x1000670
  1124  	XK_Arabic_switch                          = 0xff7e
  1125  	XK_Arabic_tah                             = 0x05d7
  1126  	XK_Arabic_tatweel                         = 0x05e0
  1127  	XK_Arabic_tcheh                           = 0x1000686
  1128  	XK_Arabic_teh                             = 0x05ca
  1129  	XK_Arabic_tehmarbuta                      = 0x05c9
  1130  	XK_Arabic_thal                            = 0x05d0
  1131  	XK_Arabic_theh                            = 0x05cb
  1132  	XK_Arabic_tteh                            = 0x1000679
  1133  	XK_Arabic_veh                             = 0x10006a4
  1134  	XK_Arabic_waw                             = 0x05e8
  1135  	XK_Arabic_yeh                             = 0x05ea
  1136  	XK_Arabic_yeh_baree                       = 0x10006d2
  1137  	XK_Arabic_zah                             = 0x05d8
  1138  	XK_Arabic_zain                            = 0x05d2
  1139  	XK_Aring                                  = 0x00c5
  1140  	XK_Armenian_AT                            = 0x1000538
  1141  	XK_Armenian_AYB                           = 0x1000531
  1142  	XK_Armenian_BEN                           = 0x1000532
  1143  	XK_Armenian_CHA                           = 0x1000549
  1144  	XK_Armenian_DA                            = 0x1000534
  1145  	XK_Armenian_DZA                           = 0x1000541
  1146  	XK_Armenian_E                             = 0x1000537
  1147  	XK_Armenian_FE                            = 0x1000556
  1148  	XK_Armenian_GHAT                          = 0x1000542
  1149  	XK_Armenian_GIM                           = 0x1000533
  1150  	XK_Armenian_HI                            = 0x1000545
  1151  	XK_Armenian_HO                            = 0x1000540
  1152  	XK_Armenian_INI                           = 0x100053b
  1153  	XK_Armenian_JE                            = 0x100054b
  1154  	XK_Armenian_KE                            = 0x1000554
  1155  	XK_Armenian_KEN                           = 0x100053f
  1156  	XK_Armenian_KHE                           = 0x100053d
  1157  	XK_Armenian_LYUN                          = 0x100053c
  1158  	XK_Armenian_MEN                           = 0x1000544
  1159  	XK_Armenian_NU                            = 0x1000546
  1160  	XK_Armenian_O                             = 0x1000555
  1161  	XK_Armenian_PE                            = 0x100054a
  1162  	XK_Armenian_PYUR                          = 0x1000553
  1163  	XK_Armenian_RA                            = 0x100054c
  1164  	XK_Armenian_RE                            = 0x1000550
  1165  	XK_Armenian_SE                            = 0x100054d
  1166  	XK_Armenian_SHA                           = 0x1000547
  1167  	XK_Armenian_TCHE                          = 0x1000543
  1168  	XK_Armenian_TO                            = 0x1000539
  1169  	XK_Armenian_TSA                           = 0x100053e
  1170  	XK_Armenian_TSO                           = 0x1000551
  1171  	XK_Armenian_TYUN                          = 0x100054f
  1172  	XK_Armenian_VEV                           = 0x100054e
  1173  	XK_Armenian_VO                            = 0x1000548
  1174  	XK_Armenian_VYUN                          = 0x1000552
  1175  	XK_Armenian_YECH                          = 0x1000535
  1176  	XK_Armenian_ZA                            = 0x1000536
  1177  	XK_Armenian_ZHE                           = 0x100053a
  1178  	XK_Armenian_accent                        = 0x100055b
  1179  	XK_Armenian_amanak                        = 0x100055c
  1180  	XK_Armenian_apostrophe                    = 0x100055a
  1181  	XK_Armenian_at                            = 0x1000568
  1182  	XK_Armenian_ayb                           = 0x1000561
  1183  	XK_Armenian_ben                           = 0x1000562
  1184  	XK_Armenian_but                           = 0x100055d
  1185  	XK_Armenian_cha                           = 0x1000579
  1186  	XK_Armenian_da                            = 0x1000564
  1187  	XK_Armenian_dza                           = 0x1000571
  1188  	XK_Armenian_e                             = 0x1000567
  1189  	XK_Armenian_exclam                        = 0x100055c
  1190  	XK_Armenian_fe                            = 0x1000586
  1191  	XK_Armenian_full_stop                     = 0x1000589
  1192  	XK_Armenian_ghat                          = 0x1000572
  1193  	XK_Armenian_gim                           = 0x1000563
  1194  	XK_Armenian_hi                            = 0x1000575
  1195  	XK_Armenian_ho                            = 0x1000570
  1196  	XK_Armenian_hyphen                        = 0x100058a
  1197  	XK_Armenian_ini                           = 0x100056b
  1198  	XK_Armenian_je                            = 0x100057b
  1199  	XK_Armenian_ke                            = 0x1000584
  1200  	XK_Armenian_ken                           = 0x100056f
  1201  	XK_Armenian_khe                           = 0x100056d
  1202  	XK_Armenian_ligature_ew                   = 0x1000587
  1203  	XK_Armenian_lyun                          = 0x100056c
  1204  	XK_Armenian_men                           = 0x1000574
  1205  	XK_Armenian_nu                            = 0x1000576
  1206  	XK_Armenian_o                             = 0x1000585
  1207  	XK_Armenian_paruyk                        = 0x100055e
  1208  	XK_Armenian_pe                            = 0x100057a
  1209  	XK_Armenian_pyur                          = 0x1000583
  1210  	XK_Armenian_question                      = 0x100055e
  1211  	XK_Armenian_ra                            = 0x100057c
  1212  	XK_Armenian_re                            = 0x1000580
  1213  	XK_Armenian_se                            = 0x100057d
  1214  	XK_Armenian_separation_mark               = 0x100055d
  1215  	XK_Armenian_sha                           = 0x1000577
  1216  	XK_Armenian_shesht                        = 0x100055b
  1217  	XK_Armenian_tche                          = 0x1000573
  1218  	XK_Armenian_to                            = 0x1000569
  1219  	XK_Armenian_tsa                           = 0x100056e
  1220  	XK_Armenian_tso                           = 0x1000581
  1221  	XK_Armenian_tyun                          = 0x100057f
  1222  	XK_Armenian_verjaket                      = 0x1000589
  1223  	XK_Armenian_vev                           = 0x100057e
  1224  	XK_Armenian_vo                            = 0x1000578
  1225  	XK_Armenian_vyun                          = 0x1000582
  1226  	XK_Armenian_yech                          = 0x1000565
  1227  	XK_Armenian_yentamna                      = 0x100058a
  1228  	XK_Armenian_za                            = 0x1000566
  1229  	XK_Armenian_zhe                           = 0x100056a
  1230  	XK_Atilde                                 = 0x00c3
  1231  	XK_AudibleBell_Enable                     = 0xfe7a
  1232  	XK_B                                      = 0x0042
  1233  	XK_BRAILLE                                = 0
  1234  	XK_Babovedot                              = 0x1001e02
  1235  	XK_BackSpace                              = 0xff08
  1236  	XK_Begin                                  = 0xff58
  1237  	XK_BounceKeys_Enable                      = 0xfe74
  1238  	XK_Break                                  = 0xff6b
  1239  	XK_Byelorussian_SHORTU                    = 0x06be
  1240  	XK_Byelorussian_shortu                    = 0x06ae
  1241  	XK_C                                      = 0x0043
  1242  	XK_CAUCASUS                               = 0
  1243  	XK_CH                                     = 0xfea2
  1244  	XK_CURRENCY                               = 0
  1245  	XK_CYRILLIC                               = 0
  1246  	XK_C_H                                    = 0xfea5
  1247  	XK_C_h                                    = 0xfea4
  1248  	XK_Cabovedot                              = 0x02c5
  1249  	XK_Cacute                                 = 0x01c6
  1250  	XK_Cancel                                 = 0xff69
  1251  	XK_Caps_Lock                              = 0xffe5
  1252  	XK_Ccaron                                 = 0x01c8
  1253  	XK_Ccedilla                               = 0x00c7
  1254  	XK_Ccircumflex                            = 0x02c6
  1255  	XK_Ch                                     = 0xfea1
  1256  	XK_Clear                                  = 0xff0b
  1257  	XK_Codeinput                              = 0xff37
  1258  	XK_ColonSign                              = 0x10020a1
  1259  	XK_Control_L                              = 0xffe3
  1260  	XK_Control_R                              = 0xffe4
  1261  	XK_CruzeiroSign                           = 0x10020a2
  1262  	XK_Cyrillic_A                             = 0x06e1
  1263  	XK_Cyrillic_BE                            = 0x06e2
  1264  	XK_Cyrillic_CHE                           = 0x06fe
  1265  	XK_Cyrillic_CHE_descender                 = 0x10004b6
  1266  	XK_Cyrillic_CHE_vertstroke                = 0x10004b8
  1267  	XK_Cyrillic_DE                            = 0x06e4
  1268  	XK_Cyrillic_DZHE                          = 0x06bf
  1269  	XK_Cyrillic_E                             = 0x06fc
  1270  	XK_Cyrillic_EF                            = 0x06e6
  1271  	XK_Cyrillic_EL                            = 0x06ec
  1272  	XK_Cyrillic_EM                            = 0x06ed
  1273  	XK_Cyrillic_EN                            = 0x06ee
  1274  	XK_Cyrillic_EN_descender                  = 0x10004a2
  1275  	XK_Cyrillic_ER                            = 0x06f2
  1276  	XK_Cyrillic_ES                            = 0x06f3
  1277  	XK_Cyrillic_GHE                           = 0x06e7
  1278  	XK_Cyrillic_GHE_bar                       = 0x1000492
  1279  	XK_Cyrillic_HA                            = 0x06e8
  1280  	XK_Cyrillic_HARDSIGN                      = 0x06ff
  1281  	XK_Cyrillic_HA_descender                  = 0x10004b2
  1282  	XK_Cyrillic_I                             = 0x06e9
  1283  	XK_Cyrillic_IE                            = 0x06e5
  1284  	XK_Cyrillic_IO                            = 0x06b3
  1285  	XK_Cyrillic_I_macron                      = 0x10004e2
  1286  	XK_Cyrillic_JE                            = 0x06b8
  1287  	XK_Cyrillic_KA                            = 0x06eb
  1288  	XK_Cyrillic_KA_descender                  = 0x100049a
  1289  	XK_Cyrillic_KA_vertstroke                 = 0x100049c
  1290  	XK_Cyrillic_LJE                           = 0x06b9
  1291  	XK_Cyrillic_NJE                           = 0x06ba
  1292  	XK_Cyrillic_O                             = 0x06ef
  1293  	XK_Cyrillic_O_bar                         = 0x10004e8
  1294  	XK_Cyrillic_PE                            = 0x06f0
  1295  	XK_Cyrillic_SCHWA                         = 0x10004d8
  1296  	XK_Cyrillic_SHA                           = 0x06fb
  1297  	XK_Cyrillic_SHCHA                         = 0x06fd
  1298  	XK_Cyrillic_SHHA                          = 0x10004ba
  1299  	XK_Cyrillic_SHORTI                        = 0x06ea
  1300  	XK_Cyrillic_SOFTSIGN                      = 0x06f8
  1301  	XK_Cyrillic_TE                            = 0x06f4
  1302  	XK_Cyrillic_TSE                           = 0x06e3
  1303  	XK_Cyrillic_U                             = 0x06f5
  1304  	XK_Cyrillic_U_macron                      = 0x10004ee
  1305  	XK_Cyrillic_U_straight                    = 0x10004ae
  1306  	XK_Cyrillic_U_straight_bar                = 0x10004b0
  1307  	XK_Cyrillic_VE                            = 0x06f7
  1308  	XK_Cyrillic_YA                            = 0x06f1
  1309  	XK_Cyrillic_YERU                          = 0x06f9
  1310  	XK_Cyrillic_YU                            = 0x06e0
  1311  	XK_Cyrillic_ZE                            = 0x06fa
  1312  	XK_Cyrillic_ZHE                           = 0x06f6
  1313  	XK_Cyrillic_ZHE_descender                 = 0x1000496
  1314  	XK_Cyrillic_a                             = 0x06c1
  1315  	XK_Cyrillic_be                            = 0x06c2
  1316  	XK_Cyrillic_che                           = 0x06de
  1317  	XK_Cyrillic_che_descender                 = 0x10004b7
  1318  	XK_Cyrillic_che_vertstroke                = 0x10004b9
  1319  	XK_Cyrillic_de                            = 0x06c4
  1320  	XK_Cyrillic_dzhe                          = 0x06af
  1321  	XK_Cyrillic_e                             = 0x06dc
  1322  	XK_Cyrillic_ef                            = 0x06c6
  1323  	XK_Cyrillic_el                            = 0x06cc
  1324  	XK_Cyrillic_em                            = 0x06cd
  1325  	XK_Cyrillic_en                            = 0x06ce
  1326  	XK_Cyrillic_en_descender                  = 0x10004a3
  1327  	XK_Cyrillic_er                            = 0x06d2
  1328  	XK_Cyrillic_es                            = 0x06d3
  1329  	XK_Cyrillic_ghe                           = 0x06c7
  1330  	XK_Cyrillic_ghe_bar                       = 0x1000493
  1331  	XK_Cyrillic_ha                            = 0x06c8
  1332  	XK_Cyrillic_ha_descender                  = 0x10004b3
  1333  	XK_Cyrillic_hardsign                      = 0x06df
  1334  	XK_Cyrillic_i                             = 0x06c9
  1335  	XK_Cyrillic_i_macron                      = 0x10004e3
  1336  	XK_Cyrillic_ie                            = 0x06c5
  1337  	XK_Cyrillic_io                            = 0x06a3
  1338  	XK_Cyrillic_je                            = 0x06a8
  1339  	XK_Cyrillic_ka                            = 0x06cb
  1340  	XK_Cyrillic_ka_descender                  = 0x100049b
  1341  	XK_Cyrillic_ka_vertstroke                 = 0x100049d
  1342  	XK_Cyrillic_lje                           = 0x06a9
  1343  	XK_Cyrillic_nje                           = 0x06aa
  1344  	XK_Cyrillic_o                             = 0x06cf
  1345  	XK_Cyrillic_o_bar                         = 0x10004e9
  1346  	XK_Cyrillic_pe                            = 0x06d0
  1347  	XK_Cyrillic_schwa                         = 0x10004d9
  1348  	XK_Cyrillic_sha                           = 0x06db
  1349  	XK_Cyrillic_shcha                         = 0x06dd
  1350  	XK_Cyrillic_shha                          = 0x10004bb
  1351  	XK_Cyrillic_shorti                        = 0x06ca
  1352  	XK_Cyrillic_softsign                      = 0x06d8
  1353  	XK_Cyrillic_te                            = 0x06d4
  1354  	XK_Cyrillic_tse                           = 0x06c3
  1355  	XK_Cyrillic_u                             = 0x06d5
  1356  	XK_Cyrillic_u_macron                      = 0x10004ef
  1357  	XK_Cyrillic_u_straight                    = 0x10004af
  1358  	XK_Cyrillic_u_straight_bar                = 0x10004b1
  1359  	XK_Cyrillic_ve                            = 0x06d7
  1360  	XK_Cyrillic_ya                            = 0x06d1
  1361  	XK_Cyrillic_yeru                          = 0x06d9
  1362  	XK_Cyrillic_yu                            = 0x06c0
  1363  	XK_Cyrillic_ze                            = 0x06da
  1364  	XK_Cyrillic_zhe                           = 0x06d6
  1365  	XK_Cyrillic_zhe_descender                 = 0x1000497
  1366  	XK_D                                      = 0x0044
  1367  	XK_Dabovedot                              = 0x1001e0a
  1368  	XK_Dcaron                                 = 0x01cf
  1369  	XK_Delete                                 = 0xffff
  1370  	XK_DongSign                               = 0x10020ab
  1371  	XK_Down                                   = 0xff54
  1372  	XK_Dstroke                                = 0x01d0
  1373  	XK_E                                      = 0x0045
  1374  	XK_ENG                                    = 0x03bd
  1375  	XK_ETH                                    = 0x00d0
  1376  	XK_EZH                                    = 0x10001b7
  1377  	XK_Eabovedot                              = 0x03cc
  1378  	XK_Eacute                                 = 0x00c9
  1379  	XK_Ebelowdot                              = 0x1001eb8
  1380  	XK_Ecaron                                 = 0x01cc
  1381  	XK_Ecircumflex                            = 0x00ca
  1382  	XK_Ecircumflexacute                       = 0x1001ebe
  1383  	XK_Ecircumflexbelowdot                    = 0x1001ec6
  1384  	XK_Ecircumflexgrave                       = 0x1001ec0
  1385  	XK_Ecircumflexhook                        = 0x1001ec2
  1386  	XK_Ecircumflextilde                       = 0x1001ec4
  1387  	XK_EcuSign                                = 0x10020a0
  1388  	XK_Ediaeresis                             = 0x00cb
  1389  	XK_Egrave                                 = 0x00c8
  1390  	XK_Ehook                                  = 0x1001eba
  1391  	XK_Eisu_Shift                             = 0xff2f
  1392  	XK_Eisu_toggle                            = 0xff30
  1393  	XK_Emacron                                = 0x03aa
  1394  	XK_End                                    = 0xff57
  1395  	XK_Eogonek                                = 0x01ca
  1396  	XK_Escape                                 = 0xff1b
  1397  	XK_Eth                                    = 0x00d0
  1398  	XK_Etilde                                 = 0x1001ebc
  1399  	XK_EuroSign                               = 0x20ac
  1400  	XK_Execute                                = 0xff62
  1401  	XK_F                                      = 0x0046
  1402  	XK_F1                                     = 0xffbe
  1403  	XK_F10                                    = 0xffc7
  1404  	XK_F11                                    = 0xffc8
  1405  	XK_F12                                    = 0xffc9
  1406  	XK_F13                                    = 0xffca
  1407  	XK_F14                                    = 0xffcb
  1408  	XK_F15                                    = 0xffcc
  1409  	XK_F16                                    = 0xffcd
  1410  	XK_F17                                    = 0xffce
  1411  	XK_F18                                    = 0xffcf
  1412  	XK_F19                                    = 0xffd0
  1413  	XK_F2                                     = 0xffbf
  1414  	XK_F20                                    = 0xffd1
  1415  	XK_F21                                    = 0xffd2
  1416  	XK_F22                                    = 0xffd3
  1417  	XK_F23                                    = 0xffd4
  1418  	XK_F24                                    = 0xffd5
  1419  	XK_F25                                    = 0xffd6
  1420  	XK_F26                                    = 0xffd7
  1421  	XK_F27                                    = 0xffd8
  1422  	XK_F28                                    = 0xffd9
  1423  	XK_F29                                    = 0xffda
  1424  	XK_F3                                     = 0xffc0
  1425  	XK_F30                                    = 0xffdb
  1426  	XK_F31                                    = 0xffdc
  1427  	XK_F32                                    = 0xffdd
  1428  	XK_F33                                    = 0xffde
  1429  	XK_F34                                    = 0xffdf
  1430  	XK_F35                                    = 0xffe0
  1431  	XK_F4                                     = 0xffc1
  1432  	XK_F5                                     = 0xffc2
  1433  	XK_F6                                     = 0xffc3
  1434  	XK_F7                                     = 0xffc4
  1435  	XK_F8                                     = 0xffc5
  1436  	XK_F9                                     = 0xffc6
  1437  	XK_FFrancSign                             = 0x10020a3
  1438  	XK_Fabovedot                              = 0x1001e1e
  1439  	XK_Farsi_0                                = 0x10006f0
  1440  	XK_Farsi_1                                = 0x10006f1
  1441  	XK_Farsi_2                                = 0x10006f2
  1442  	XK_Farsi_3                                = 0x10006f3
  1443  	XK_Farsi_4                                = 0x10006f4
  1444  	XK_Farsi_5                                = 0x10006f5
  1445  	XK_Farsi_6                                = 0x10006f6
  1446  	XK_Farsi_7                                = 0x10006f7
  1447  	XK_Farsi_8                                = 0x10006f8
  1448  	XK_Farsi_9                                = 0x10006f9
  1449  	XK_Farsi_yeh                              = 0x10006cc
  1450  	XK_Find                                   = 0xff68
  1451  	XK_First_Virtual_Screen                   = 0xfed0
  1452  	XK_G                                      = 0x0047
  1453  	XK_GEORGIAN                               = 0
  1454  	XK_GREEK                                  = 0
  1455  	XK_Gabovedot                              = 0x02d5
  1456  	XK_Gbreve                                 = 0x02ab
  1457  	XK_Gcaron                                 = 0x10001e6
  1458  	XK_Gcedilla                               = 0x03ab
  1459  	XK_Gcircumflex                            = 0x02d8
  1460  	XK_Georgian_an                            = 0x10010d0
  1461  	XK_Georgian_ban                           = 0x10010d1
  1462  	XK_Georgian_can                           = 0x10010ea
  1463  	XK_Georgian_char                          = 0x10010ed
  1464  	XK_Georgian_chin                          = 0x10010e9
  1465  	XK_Georgian_cil                           = 0x10010ec
  1466  	XK_Georgian_don                           = 0x10010d3
  1467  	XK_Georgian_en                            = 0x10010d4
  1468  	XK_Georgian_fi                            = 0x10010f6
  1469  	XK_Georgian_gan                           = 0x10010d2
  1470  	XK_Georgian_ghan                          = 0x10010e6
  1471  	XK_Georgian_hae                           = 0x10010f0
  1472  	XK_Georgian_har                           = 0x10010f4
  1473  	XK_Georgian_he                            = 0x10010f1
  1474  	XK_Georgian_hie                           = 0x10010f2
  1475  	XK_Georgian_hoe                           = 0x10010f5
  1476  	XK_Georgian_in                            = 0x10010d8
  1477  	XK_Georgian_jhan                          = 0x10010ef
  1478  	XK_Georgian_jil                           = 0x10010eb
  1479  	XK_Georgian_kan                           = 0x10010d9
  1480  	XK_Georgian_khar                          = 0x10010e5
  1481  	XK_Georgian_las                           = 0x10010da
  1482  	XK_Georgian_man                           = 0x10010db
  1483  	XK_Georgian_nar                           = 0x10010dc
  1484  	XK_Georgian_on                            = 0x10010dd
  1485  	XK_Georgian_par                           = 0x10010de
  1486  	XK_Georgian_phar                          = 0x10010e4
  1487  	XK_Georgian_qar                           = 0x10010e7
  1488  	XK_Georgian_rae                           = 0x10010e0
  1489  	XK_Georgian_san                           = 0x10010e1
  1490  	XK_Georgian_shin                          = 0x10010e8
  1491  	XK_Georgian_tan                           = 0x10010d7
  1492  	XK_Georgian_tar                           = 0x10010e2
  1493  	XK_Georgian_un                            = 0x10010e3
  1494  	XK_Georgian_vin                           = 0x10010d5
  1495  	XK_Georgian_we                            = 0x10010f3
  1496  	XK_Georgian_xan                           = 0x10010ee
  1497  	XK_Georgian_zen                           = 0x10010d6
  1498  	XK_Georgian_zhar                          = 0x10010df
  1499  	XK_Greek_ALPHA                            = 0x07c1
  1500  	XK_Greek_ALPHAaccent                      = 0x07a1
  1501  	XK_Greek_BETA                             = 0x07c2
  1502  	XK_Greek_CHI                              = 0x07d7
  1503  	XK_Greek_DELTA                            = 0x07c4
  1504  	XK_Greek_EPSILON                          = 0x07c5
  1505  	XK_Greek_EPSILONaccent                    = 0x07a2
  1506  	XK_Greek_ETA                              = 0x07c7
  1507  	XK_Greek_ETAaccent                        = 0x07a3
  1508  	XK_Greek_GAMMA                            = 0x07c3
  1509  	XK_Greek_IOTA                             = 0x07c9
  1510  	XK_Greek_IOTAaccent                       = 0x07a4
  1511  	XK_Greek_IOTAdiaeresis                    = 0x07a5
  1512  	XK_Greek_IOTAdieresis                     = 0x07a5
  1513  	XK_Greek_KAPPA                            = 0x07ca
  1514  	XK_Greek_LAMBDA                           = 0x07cb
  1515  	XK_Greek_LAMDA                            = 0x07cb
  1516  	XK_Greek_MU                               = 0x07cc
  1517  	XK_Greek_NU                               = 0x07cd
  1518  	XK_Greek_OMEGA                            = 0x07d9
  1519  	XK_Greek_OMEGAaccent                      = 0x07ab
  1520  	XK_Greek_OMICRON                          = 0x07cf
  1521  	XK_Greek_OMICRONaccent                    = 0x07a7
  1522  	XK_Greek_PHI                              = 0x07d6
  1523  	XK_Greek_PI                               = 0x07d0
  1524  	XK_Greek_PSI                              = 0x07d8
  1525  	XK_Greek_RHO                              = 0x07d1
  1526  	XK_Greek_SIGMA                            = 0x07d2
  1527  	XK_Greek_TAU                              = 0x07d4
  1528  	XK_Greek_THETA                            = 0x07c8
  1529  	XK_Greek_UPSILON                          = 0x07d5
  1530  	XK_Greek_UPSILONaccent                    = 0x07a8
  1531  	XK_Greek_UPSILONdieresis                  = 0x07a9
  1532  	XK_Greek_XI                               = 0x07ce
  1533  	XK_Greek_ZETA                             = 0x07c6
  1534  	XK_Greek_accentdieresis                   = 0x07ae
  1535  	XK_Greek_alpha                            = 0x07e1
  1536  	XK_Greek_alphaaccent                      = 0x07b1
  1537  	XK_Greek_beta                             = 0x07e2
  1538  	XK_Greek_chi                              = 0x07f7
  1539  	XK_Greek_delta                            = 0x07e4
  1540  	XK_Greek_epsilon                          = 0x07e5
  1541  	XK_Greek_epsilonaccent                    = 0x07b2
  1542  	XK_Greek_eta                              = 0x07e7
  1543  	XK_Greek_etaaccent                        = 0x07b3
  1544  	XK_Greek_finalsmallsigma                  = 0x07f3
  1545  	XK_Greek_gamma                            = 0x07e3
  1546  	XK_Greek_horizbar                         = 0x07af
  1547  	XK_Greek_iota                             = 0x07e9
  1548  	XK_Greek_iotaaccent                       = 0x07b4
  1549  	XK_Greek_iotaaccentdieresis               = 0x07b6
  1550  	XK_Greek_iotadieresis                     = 0x07b5
  1551  	XK_Greek_kappa                            = 0x07ea
  1552  	XK_Greek_lambda                           = 0x07eb
  1553  	XK_Greek_lamda                            = 0x07eb
  1554  	XK_Greek_mu                               = 0x07ec
  1555  	XK_Greek_nu                               = 0x07ed
  1556  	XK_Greek_omega                            = 0x07f9
  1557  	XK_Greek_omegaaccent                      = 0x07bb
  1558  	XK_Greek_omicron                          = 0x07ef
  1559  	XK_Greek_omicronaccent                    = 0x07b7
  1560  	XK_Greek_phi                              = 0x07f6
  1561  	XK_Greek_pi                               = 0x07f0
  1562  	XK_Greek_psi                              = 0x07f8
  1563  	XK_Greek_rho                              = 0x07f1
  1564  	XK_Greek_sigma                            = 0x07f2
  1565  	XK_Greek_switch                           = 0xff7e
  1566  	XK_Greek_tau                              = 0x07f4
  1567  	XK_Greek_theta                            = 0x07e8
  1568  	XK_Greek_upsilon                          = 0x07f5
  1569  	XK_Greek_upsilonaccent                    = 0x07b8
  1570  	XK_Greek_upsilonaccentdieresis            = 0x07ba
  1571  	XK_Greek_upsilondieresis                  = 0x07b9
  1572  	XK_Greek_xi                               = 0x07ee
  1573  	XK_Greek_zeta                             = 0x07e6
  1574  	XK_H                                      = 0x0048
  1575  	XK_HEBREW                                 = 0
  1576  	XK_Hangul                                 = 0xff31
  1577  	XK_Hangul_A                               = 0x0ebf
  1578  	XK_Hangul_AE                              = 0x0ec0
  1579  	XK_Hangul_AraeA                           = 0x0ef6
  1580  	XK_Hangul_AraeAE                          = 0x0ef7
  1581  	XK_Hangul_Banja                           = 0xff39
  1582  	XK_Hangul_Cieuc                           = 0x0eba
  1583  	XK_Hangul_Codeinput                       = 0xff37
  1584  	XK_Hangul_Dikeud                          = 0x0ea7
  1585  	XK_Hangul_E                               = 0x0ec4
  1586  	XK_Hangul_EO                              = 0x0ec3
  1587  	XK_Hangul_EU                              = 0x0ed1
  1588  	XK_Hangul_End                             = 0xff33
  1589  	XK_Hangul_Hanja                           = 0xff34
  1590  	XK_Hangul_Hieuh                           = 0x0ebe
  1591  	XK_Hangul_I                               = 0x0ed3
  1592  	XK_Hangul_Ieung                           = 0x0eb7
  1593  	XK_Hangul_J_Cieuc                         = 0x0eea
  1594  	XK_Hangul_J_Dikeud                        = 0x0eda
  1595  	XK_Hangul_J_Hieuh                         = 0x0eee
  1596  	XK_Hangul_J_Ieung                         = 0x0ee8
  1597  	XK_Hangul_J_Jieuj                         = 0x0ee9
  1598  	XK_Hangul_J_Khieuq                        = 0x0eeb
  1599  	XK_Hangul_J_Kiyeog                        = 0x0ed4
  1600  	XK_Hangul_J_KiyeogSios                    = 0x0ed6
  1601  	XK_Hangul_J_KkogjiDalrinIeung             = 0x0ef9
  1602  	XK_Hangul_J_Mieum                         = 0x0ee3
  1603  	XK_Hangul_J_Nieun                         = 0x0ed7
  1604  	XK_Hangul_J_NieunHieuh                    = 0x0ed9
  1605  	XK_Hangul_J_NieunJieuj                    = 0x0ed8
  1606  	XK_Hangul_J_PanSios                       = 0x0ef8
  1607  	XK_Hangul_J_Phieuf                        = 0x0eed
  1608  	XK_Hangul_J_Pieub                         = 0x0ee4
  1609  	XK_Hangul_J_PieubSios                     = 0x0ee5
  1610  	XK_Hangul_J_Rieul                         = 0x0edb
  1611  	XK_Hangul_J_RieulHieuh                    = 0x0ee2
  1612  	XK_Hangul_J_RieulKiyeog                   = 0x0edc
  1613  	XK_Hangul_J_RieulMieum                    = 0x0edd
  1614  	XK_Hangul_J_RieulPhieuf                   = 0x0ee1
  1615  	XK_Hangul_J_RieulPieub                    = 0x0ede
  1616  	XK_Hangul_J_RieulSios                     = 0x0edf
  1617  	XK_Hangul_J_RieulTieut                    = 0x0ee0
  1618  	XK_Hangul_J_Sios                          = 0x0ee6
  1619  	XK_Hangul_J_SsangKiyeog                   = 0x0ed5
  1620  	XK_Hangul_J_SsangSios                     = 0x0ee7
  1621  	XK_Hangul_J_Tieut                         = 0x0eec
  1622  	XK_Hangul_J_YeorinHieuh                   = 0x0efa
  1623  	XK_Hangul_Jamo                            = 0xff35
  1624  	XK_Hangul_Jeonja                          = 0xff38
  1625  	XK_Hangul_Jieuj                           = 0x0eb8
  1626  	XK_Hangul_Khieuq                          = 0x0ebb
  1627  	XK_Hangul_Kiyeog                          = 0x0ea1
  1628  	XK_Hangul_KiyeogSios                      = 0x0ea3
  1629  	XK_Hangul_KkogjiDalrinIeung               = 0x0ef3
  1630  	XK_Hangul_Mieum                           = 0x0eb1
  1631  	XK_Hangul_MultipleCandidate               = 0xff3d
  1632  	XK_Hangul_Nieun                           = 0x0ea4
  1633  	XK_Hangul_NieunHieuh                      = 0x0ea6
  1634  	XK_Hangul_NieunJieuj                      = 0x0ea5
  1635  	XK_Hangul_O                               = 0x0ec7
  1636  	XK_Hangul_OE                              = 0x0eca
  1637  	XK_Hangul_PanSios                         = 0x0ef2
  1638  	XK_Hangul_Phieuf                          = 0x0ebd
  1639  	XK_Hangul_Pieub                           = 0x0eb2
  1640  	XK_Hangul_PieubSios                       = 0x0eb4
  1641  	XK_Hangul_PostHanja                       = 0xff3b
  1642  	XK_Hangul_PreHanja                        = 0xff3a
  1643  	XK_Hangul_PreviousCandidate               = 0xff3e
  1644  	XK_Hangul_Rieul                           = 0x0ea9
  1645  	XK_Hangul_RieulHieuh                      = 0x0eb0
  1646  	XK_Hangul_RieulKiyeog                     = 0x0eaa
  1647  	XK_Hangul_RieulMieum                      = 0x0eab
  1648  	XK_Hangul_RieulPhieuf                     = 0x0eaf
  1649  	XK_Hangul_RieulPieub                      = 0x0eac
  1650  	XK_Hangul_RieulSios                       = 0x0ead
  1651  	XK_Hangul_RieulTieut                      = 0x0eae
  1652  	XK_Hangul_RieulYeorinHieuh                = 0x0eef
  1653  	XK_Hangul_Romaja                          = 0xff36
  1654  	XK_Hangul_SingleCandidate                 = 0xff3c
  1655  	XK_Hangul_Sios                            = 0x0eb5
  1656  	XK_Hangul_Special                         = 0xff3f
  1657  	XK_Hangul_SsangDikeud                     = 0x0ea8
  1658  	XK_Hangul_SsangJieuj                      = 0x0eb9
  1659  	XK_Hangul_SsangKiyeog                     = 0x0ea2
  1660  	XK_Hangul_SsangPieub                      = 0x0eb3
  1661  	XK_Hangul_SsangSios                       = 0x0eb6
  1662  	XK_Hangul_Start                           = 0xff32
  1663  	XK_Hangul_SunkyeongeumMieum               = 0x0ef0
  1664  	XK_Hangul_SunkyeongeumPhieuf              = 0x0ef4
  1665  	XK_Hangul_SunkyeongeumPieub               = 0x0ef1
  1666  	XK_Hangul_Tieut                           = 0x0ebc
  1667  	XK_Hangul_U                               = 0x0ecc
  1668  	XK_Hangul_WA                              = 0x0ec8
  1669  	XK_Hangul_WAE                             = 0x0ec9
  1670  	XK_Hangul_WE                              = 0x0ece
  1671  	XK_Hangul_WEO                             = 0x0ecd
  1672  	XK_Hangul_WI                              = 0x0ecf
  1673  	XK_Hangul_YA                              = 0x0ec1
  1674  	XK_Hangul_YAE                             = 0x0ec2
  1675  	XK_Hangul_YE                              = 0x0ec6
  1676  	XK_Hangul_YEO                             = 0x0ec5
  1677  	XK_Hangul_YI                              = 0x0ed2
  1678  	XK_Hangul_YO                              = 0x0ecb
  1679  	XK_Hangul_YU                              = 0x0ed0
  1680  	XK_Hangul_YeorinHieuh                     = 0x0ef5
  1681  	XK_Hangul_switch                          = 0xff7e
  1682  	XK_Hankaku                                = 0xff29
  1683  	XK_Hcircumflex                            = 0x02a6
  1684  	XK_Hebrew_switch                          = 0xff7e
  1685  	XK_Help                                   = 0xff6a
  1686  	XK_Henkan                                 = 0xff23
  1687  	XK_Henkan_Mode                            = 0xff23
  1688  	XK_Hiragana                               = 0xff25
  1689  	XK_Hiragana_Katakana                      = 0xff27
  1690  	XK_Home                                   = 0xff50
  1691  	XK_Hstroke                                = 0x02a1
  1692  	XK_Hyper_L                                = 0xffed
  1693  	XK_Hyper_R                                = 0xffee
  1694  	XK_I                                      = 0x0049
  1695  	XK_ISO_Center_Object                      = 0xfe33
  1696  	XK_ISO_Continuous_Underline               = 0xfe30
  1697  	XK_ISO_Discontinuous_Underline            = 0xfe31
  1698  	XK_ISO_Emphasize                          = 0xfe32
  1699  	XK_ISO_Enter                              = 0xfe34
  1700  	XK_ISO_Fast_Cursor_Down                   = 0xfe2f
  1701  	XK_ISO_Fast_Cursor_Left                   = 0xfe2c
  1702  	XK_ISO_Fast_Cursor_Right                  = 0xfe2d
  1703  	XK_ISO_Fast_Cursor_Up                     = 0xfe2e
  1704  	XK_ISO_First_Group                        = 0xfe0c
  1705  	XK_ISO_First_Group_Lock                   = 0xfe0d
  1706  	XK_ISO_Group_Latch                        = 0xfe06
  1707  	XK_ISO_Group_Lock                         = 0xfe07
  1708  	XK_ISO_Group_Shift                        = 0xff7e
  1709  	XK_ISO_Last_Group                         = 0xfe0e
  1710  	XK_ISO_Last_Group_Lock                    = 0xfe0f
  1711  	XK_ISO_Left_Tab                           = 0xfe20
  1712  	XK_ISO_Level2_Latch                       = 0xfe02
  1713  	XK_ISO_Level3_Latch                       = 0xfe04
  1714  	XK_ISO_Level3_Lock                        = 0xfe05
  1715  	XK_ISO_Level3_Shift                       = 0xfe03
  1716  	XK_ISO_Level5_Latch                       = 0xfe12
  1717  	XK_ISO_Level5_Lock                        = 0xfe13
  1718  	XK_ISO_Level5_Shift                       = 0xfe11
  1719  	XK_ISO_Lock                               = 0xfe01
  1720  	XK_ISO_Move_Line_Down                     = 0xfe22
  1721  	XK_ISO_Move_Line_Up                       = 0xfe21
  1722  	XK_ISO_Next_Group                         = 0xfe08
  1723  	XK_ISO_Next_Group_Lock                    = 0xfe09
  1724  	XK_ISO_Partial_Line_Down                  = 0xfe24
  1725  	XK_ISO_Partial_Line_Up                    = 0xfe23
  1726  	XK_ISO_Partial_Space_Left                 = 0xfe25
  1727  	XK_ISO_Partial_Space_Right                = 0xfe26
  1728  	XK_ISO_Prev_Group                         = 0xfe0a
  1729  	XK_ISO_Prev_Group_Lock                    = 0xfe0b
  1730  	XK_ISO_Release_Both_Margins               = 0xfe2b
  1731  	XK_ISO_Release_Margin_Left                = 0xfe29
  1732  	XK_ISO_Release_Margin_Right               = 0xfe2a
  1733  	XK_ISO_Set_Margin_Left                    = 0xfe27
  1734  	XK_ISO_Set_Margin_Right                   = 0xfe28
  1735  	XK_Iabovedot                              = 0x02a9
  1736  	XK_Iacute                                 = 0x00cd
  1737  	XK_Ibelowdot                              = 0x1001eca
  1738  	XK_Ibreve                                 = 0x100012c
  1739  	XK_Icircumflex                            = 0x00ce
  1740  	XK_Idiaeresis                             = 0x00cf
  1741  	XK_Igrave                                 = 0x00cc
  1742  	XK_Ihook                                  = 0x1001ec8
  1743  	XK_Imacron                                = 0x03cf
  1744  	XK_Insert                                 = 0xff63
  1745  	XK_Iogonek                                = 0x03c7
  1746  	XK_Itilde                                 = 0x03a5
  1747  	XK_J                                      = 0x004a
  1748  	XK_Jcircumflex                            = 0x02ac
  1749  	XK_K                                      = 0x004b
  1750  	XK_KATAKANA                               = 0
  1751  	XK_KOREAN                                 = 0
  1752  	XK_KP_0                                   = 0xffb0
  1753  	XK_KP_1                                   = 0xffb1
  1754  	XK_KP_2                                   = 0xffb2
  1755  	XK_KP_3                                   = 0xffb3
  1756  	XK_KP_4                                   = 0xffb4
  1757  	XK_KP_5                                   = 0xffb5
  1758  	XK_KP_6                                   = 0xffb6
  1759  	XK_KP_7                                   = 0xffb7
  1760  	XK_KP_8                                   = 0xffb8
  1761  	XK_KP_9                                   = 0xffb9
  1762  	XK_KP_Add                                 = 0xffab
  1763  	XK_KP_Begin                               = 0xff9d
  1764  	XK_KP_Decimal                             = 0xffae
  1765  	XK_KP_Delete                              = 0xff9f
  1766  	XK_KP_Divide                              = 0xffaf
  1767  	XK_KP_Down                                = 0xff99
  1768  	XK_KP_End                                 = 0xff9c
  1769  	XK_KP_Enter                               = 0xff8d
  1770  	XK_KP_Equal                               = 0xffbd
  1771  	XK_KP_F1                                  = 0xff91
  1772  	XK_KP_F2                                  = 0xff92
  1773  	XK_KP_F3                                  = 0xff93
  1774  	XK_KP_F4                                  = 0xff94
  1775  	XK_KP_Home                                = 0xff95
  1776  	XK_KP_Insert                              = 0xff9e
  1777  	XK_KP_Left                                = 0xff96
  1778  	XK_KP_Multiply                            = 0xffaa
  1779  	XK_KP_Next                                = 0xff9b
  1780  	XK_KP_Page_Down                           = 0xff9b
  1781  	XK_KP_Page_Up                             = 0xff9a
  1782  	XK_KP_Prior                               = 0xff9a
  1783  	XK_KP_Right                               = 0xff98
  1784  	XK_KP_Separator                           = 0xffac
  1785  	XK_KP_Space                               = 0xff80
  1786  	XK_KP_Subtract                            = 0xffad
  1787  	XK_KP_Tab                                 = 0xff89
  1788  	XK_KP_Up                                  = 0xff97
  1789  	XK_Kana_Lock                              = 0xff2d
  1790  	XK_Kana_Shift                             = 0xff2e
  1791  	XK_Kanji                                  = 0xff21
  1792  	XK_Kanji_Bangou                           = 0xff37
  1793  	XK_Katakana                               = 0xff26
  1794  	XK_Kcedilla                               = 0x03d3
  1795  	XK_Korean_Won                             = 0x0eff
  1796  	XK_L                                      = 0x004c
  1797  	XK_L1                                     = 0xffc8
  1798  	XK_L10                                    = 0xffd1
  1799  	XK_L2                                     = 0xffc9
  1800  	XK_L3                                     = 0xffca
  1801  	XK_L4                                     = 0xffcb
  1802  	XK_L5                                     = 0xffcc
  1803  	XK_L6                                     = 0xffcd
  1804  	XK_L7                                     = 0xffce
  1805  	XK_L8                                     = 0xffcf
  1806  	XK_L9                                     = 0xffd0
  1807  	XK_LATIN1                                 = 0
  1808  	XK_LATIN2                                 = 0
  1809  	XK_LATIN3                                 = 0
  1810  	XK_LATIN4                                 = 0
  1811  	XK_LATIN8                                 = 0
  1812  	XK_LATIN9                                 = 0
  1813  	XK_Lacute                                 = 0x01c5
  1814  	XK_Last_Virtual_Screen                    = 0xfed4
  1815  	XK_Lbelowdot                              = 0x1001e36
  1816  	XK_Lcaron                                 = 0x01a5
  1817  	XK_Lcedilla                               = 0x03a6
  1818  	XK_Left                                   = 0xff51
  1819  	XK_Linefeed                               = 0xff0a
  1820  	XK_LiraSign                               = 0x10020a4
  1821  	XK_Lstroke                                = 0x01a3
  1822  	XK_M                                      = 0x004d
  1823  	XK_MATHEMATICAL                           = 0
  1824  	XK_MISCELLANY                             = 0
  1825  	XK_Mabovedot                              = 0x1001e40
  1826  	XK_Macedonia_DSE                          = 0x06b5
  1827  	XK_Macedonia_GJE                          = 0x06b2
  1828  	XK_Macedonia_KJE                          = 0x06bc
  1829  	XK_Macedonia_dse                          = 0x06a5
  1830  	XK_Macedonia_gje                          = 0x06a2
  1831  	XK_Macedonia_kje                          = 0x06ac
  1832  	XK_Mae_Koho                               = 0xff3e
  1833  	XK_Massyo                                 = 0xff2c
  1834  	XK_Menu                                   = 0xff67
  1835  	XK_Meta_L                                 = 0xffe7
  1836  	XK_Meta_R                                 = 0xffe8
  1837  	XK_MillSign                               = 0x10020a5
  1838  	XK_Mode_switch                            = 0xff7e
  1839  	XK_MouseKeys_Accel_Enable                 = 0xfe77
  1840  	XK_MouseKeys_Enable                       = 0xfe76
  1841  	XK_Muhenkan                               = 0xff22
  1842  	XK_Multi_key                              = 0xff20
  1843  	XK_MultipleCandidate                      = 0xff3d
  1844  	XK_N                                      = 0x004e
  1845  	XK_Nacute                                 = 0x01d1
  1846  	XK_NairaSign                              = 0x10020a6
  1847  	XK_Ncaron                                 = 0x01d2
  1848  	XK_Ncedilla                               = 0x03d1
  1849  	XK_NewSheqelSign                          = 0x10020aa
  1850  	XK_Next                                   = 0xff56
  1851  	XK_Next_Virtual_Screen                    = 0xfed2
  1852  	XK_Ntilde                                 = 0x00d1
  1853  	XK_Num_Lock                               = 0xff7f
  1854  	XK_O                                      = 0x004f
  1855  	XK_OE                                     = 0x13bc
  1856  	XK_Oacute                                 = 0x00d3
  1857  	XK_Obarred                                = 0x100019f
  1858  	XK_Obelowdot                              = 0x1001ecc
  1859  	XK_Ocaron                                 = 0x10001d1
  1860  	XK_Ocircumflex                            = 0x00d4
  1861  	XK_Ocircumflexacute                       = 0x1001ed0
  1862  	XK_Ocircumflexbelowdot                    = 0x1001ed8
  1863  	XK_Ocircumflexgrave                       = 0x1001ed2
  1864  	XK_Ocircumflexhook                        = 0x1001ed4
  1865  	XK_Ocircumflextilde                       = 0x1001ed6
  1866  	XK_Odiaeresis                             = 0x00d6
  1867  	XK_Odoubleacute                           = 0x01d5
  1868  	XK_Ograve                                 = 0x00d2
  1869  	XK_Ohook                                  = 0x1001ece
  1870  	XK_Ohorn                                  = 0x10001a0
  1871  	XK_Ohornacute                             = 0x1001eda
  1872  	XK_Ohornbelowdot                          = 0x1001ee2
  1873  	XK_Ohorngrave                             = 0x1001edc
  1874  	XK_Ohornhook                              = 0x1001ede
  1875  	XK_Ohorntilde                             = 0x1001ee0
  1876  	XK_Omacron                                = 0x03d2
  1877  	XK_Ooblique                               = 0x00d8
  1878  	XK_Oslash                                 = 0x00d8
  1879  	XK_Otilde                                 = 0x00d5
  1880  	XK_Overlay1_Enable                        = 0xfe78
  1881  	XK_Overlay2_Enable                        = 0xfe79
  1882  	XK_P                                      = 0x0050
  1883  	XK_Pabovedot                              = 0x1001e56
  1884  	XK_Page_Down                              = 0xff56
  1885  	XK_Page_Up                                = 0xff55
  1886  	XK_Pause                                  = 0xff13
  1887  	XK_PesetaSign                             = 0x10020a7
  1888  	XK_Pointer_Accelerate                     = 0xfefa
  1889  	XK_Pointer_Button1                        = 0xfee9
  1890  	XK_Pointer_Button2                        = 0xfeea
  1891  	XK_Pointer_Button3                        = 0xfeeb
  1892  	XK_Pointer_Button4                        = 0xfeec
  1893  	XK_Pointer_Button5                        = 0xfeed
  1894  	XK_Pointer_Button_Dflt                    = 0xfee8
  1895  	XK_Pointer_DblClick1                      = 0xfeef
  1896  	XK_Pointer_DblClick2                      = 0xfef0
  1897  	XK_Pointer_DblClick3                      = 0xfef1
  1898  	XK_Pointer_DblClick4                      = 0xfef2
  1899  	XK_Pointer_DblClick5                      = 0xfef3
  1900  	XK_Pointer_DblClick_Dflt                  = 0xfeee
  1901  	XK_Pointer_DfltBtnNext                    = 0xfefb
  1902  	XK_Pointer_DfltBtnPrev                    = 0xfefc
  1903  	XK_Pointer_Down                           = 0xfee3
  1904  	XK_Pointer_DownLeft                       = 0xfee6
  1905  	XK_Pointer_DownRight                      = 0xfee7
  1906  	XK_Pointer_Drag1                          = 0xfef5
  1907  	XK_Pointer_Drag2                          = 0xfef6
  1908  	XK_Pointer_Drag3                          = 0xfef7
  1909  	XK_Pointer_Drag4                          = 0xfef8
  1910  	XK_Pointer_Drag5                          = 0xfefd
  1911  	XK_Pointer_Drag_Dflt                      = 0xfef4
  1912  	XK_Pointer_EnableKeys                     = 0xfef9
  1913  	XK_Pointer_Left                           = 0xfee0
  1914  	XK_Pointer_Right                          = 0xfee1
  1915  	XK_Pointer_Up                             = 0xfee2
  1916  	XK_Pointer_UpLeft                         = 0xfee4
  1917  	XK_Pointer_UpRight                        = 0xfee5
  1918  	XK_Prev_Virtual_Screen                    = 0xfed1
  1919  	XK_PreviousCandidate                      = 0xff3e
  1920  	XK_Print                                  = 0xff61
  1921  	XK_Prior                                  = 0xff55
  1922  	XK_Q                                      = 0x0051
  1923  	XK_R                                      = 0x0052
  1924  	XK_R1                                     = 0xffd2
  1925  	XK_R10                                    = 0xffdb
  1926  	XK_R11                                    = 0xffdc
  1927  	XK_R12                                    = 0xffdd
  1928  	XK_R13                                    = 0xffde
  1929  	XK_R14                                    = 0xffdf
  1930  	XK_R15                                    = 0xffe0
  1931  	XK_R2                                     = 0xffd3
  1932  	XK_R3                                     = 0xffd4
  1933  	XK_R4                                     = 0xffd5
  1934  	XK_R5                                     = 0xffd6
  1935  	XK_R6                                     = 0xffd7
  1936  	XK_R7                                     = 0xffd8
  1937  	XK_R8                                     = 0xffd9
  1938  	XK_R9                                     = 0xffda
  1939  	XK_Racute                                 = 0x01c0
  1940  	XK_Rcaron                                 = 0x01d8
  1941  	XK_Rcedilla                               = 0x03a3
  1942  	XK_Redo                                   = 0xff66
  1943  	XK_RepeatKeys_Enable                      = 0xfe72
  1944  	XK_Return                                 = 0xff0d
  1945  	XK_Right                                  = 0xff53
  1946  	XK_Romaji                                 = 0xff24
  1947  	XK_RupeeSign                              = 0x10020a8
  1948  	XK_S                                      = 0x0053
  1949  	XK_SCHWA                                  = 0x100018f
  1950  	XK_SINHALA                                = 0
  1951  	XK_Sabovedot                              = 0x1001e60
  1952  	XK_Sacute                                 = 0x01a6
  1953  	XK_Scaron                                 = 0x01a9
  1954  	XK_Scedilla                               = 0x01aa
  1955  	XK_Scircumflex                            = 0x02de
  1956  	XK_Scroll_Lock                            = 0xff14
  1957  	XK_Select                                 = 0xff60
  1958  	XK_Serbian_DJE                            = 0x06b1
  1959  	XK_Serbian_DZE                            = 0x06bf
  1960  	XK_Serbian_JE                             = 0x06b8
  1961  	XK_Serbian_LJE                            = 0x06b9
  1962  	XK_Serbian_NJE                            = 0x06ba
  1963  	XK_Serbian_TSHE                           = 0x06bb
  1964  	XK_Serbian_dje                            = 0x06a1
  1965  	XK_Serbian_dze                            = 0x06af
  1966  	XK_Serbian_je                             = 0x06a8
  1967  	XK_Serbian_lje                            = 0x06a9
  1968  	XK_Serbian_nje                            = 0x06aa
  1969  	XK_Serbian_tshe                           = 0x06ab
  1970  	XK_Shift_L                                = 0xffe1
  1971  	XK_Shift_Lock                             = 0xffe6
  1972  	XK_Shift_R                                = 0xffe2
  1973  	XK_SingleCandidate                        = 0xff3c
  1974  	XK_Sinh_a                                 = 0x1000d85
  1975  	XK_Sinh_aa                                = 0x1000d86
  1976  	XK_Sinh_aa2                               = 0x1000dcf
  1977  	XK_Sinh_ae                                = 0x1000d87
  1978  	XK_Sinh_ae2                               = 0x1000dd0
  1979  	XK_Sinh_aee                               = 0x1000d88
  1980  	XK_Sinh_aee2                              = 0x1000dd1
  1981  	XK_Sinh_ai                                = 0x1000d93
  1982  	XK_Sinh_ai2                               = 0x1000ddb
  1983  	XK_Sinh_al                                = 0x1000dca
  1984  	XK_Sinh_au                                = 0x1000d96
  1985  	XK_Sinh_au2                               = 0x1000dde
  1986  	XK_Sinh_ba                                = 0x1000db6
  1987  	XK_Sinh_bha                               = 0x1000db7
  1988  	XK_Sinh_ca                                = 0x1000da0
  1989  	XK_Sinh_cha                               = 0x1000da1
  1990  	XK_Sinh_dda                               = 0x1000da9
  1991  	XK_Sinh_ddha                              = 0x1000daa
  1992  	XK_Sinh_dha                               = 0x1000daf
  1993  	XK_Sinh_dhha                              = 0x1000db0
  1994  	XK_Sinh_e                                 = 0x1000d91
  1995  	XK_Sinh_e2                                = 0x1000dd9
  1996  	XK_Sinh_ee                                = 0x1000d92
  1997  	XK_Sinh_ee2                               = 0x1000dda
  1998  	XK_Sinh_fa                                = 0x1000dc6
  1999  	XK_Sinh_ga                                = 0x1000d9c
  2000  	XK_Sinh_gha                               = 0x1000d9d
  2001  	XK_Sinh_h2                                = 0x1000d83
  2002  	XK_Sinh_ha                                = 0x1000dc4
  2003  	XK_Sinh_i                                 = 0x1000d89
  2004  	XK_Sinh_i2                                = 0x1000dd2
  2005  	XK_Sinh_ii                                = 0x1000d8a
  2006  	XK_Sinh_ii2                               = 0x1000dd3
  2007  	XK_Sinh_ja                                = 0x1000da2
  2008  	XK_Sinh_jha                               = 0x1000da3
  2009  	XK_Sinh_jnya                              = 0x1000da5
  2010  	XK_Sinh_ka                                = 0x1000d9a
  2011  	XK_Sinh_kha                               = 0x1000d9b
  2012  	XK_Sinh_kunddaliya                        = 0x1000df4
  2013  	XK_Sinh_la                                = 0x1000dbd
  2014  	XK_Sinh_lla                               = 0x1000dc5
  2015  	XK_Sinh_lu                                = 0x1000d8f
  2016  	XK_Sinh_lu2                               = 0x1000ddf
  2017  	XK_Sinh_luu                               = 0x1000d90
  2018  	XK_Sinh_luu2                              = 0x1000df3
  2019  	XK_Sinh_ma                                = 0x1000db8
  2020  	XK_Sinh_mba                               = 0x1000db9
  2021  	XK_Sinh_na                                = 0x1000db1
  2022  	XK_Sinh_ndda                              = 0x1000dac
  2023  	XK_Sinh_ndha                              = 0x1000db3
  2024  	XK_Sinh_ng                                = 0x1000d82
  2025  	XK_Sinh_ng2                               = 0x1000d9e
  2026  	XK_Sinh_nga                               = 0x1000d9f
  2027  	XK_Sinh_nja                               = 0x1000da6
  2028  	XK_Sinh_nna                               = 0x1000dab
  2029  	XK_Sinh_nya                               = 0x1000da4
  2030  	XK_Sinh_o                                 = 0x1000d94
  2031  	XK_Sinh_o2                                = 0x1000ddc
  2032  	XK_Sinh_oo                                = 0x1000d95
  2033  	XK_Sinh_oo2                               = 0x1000ddd
  2034  	XK_Sinh_pa                                = 0x1000db4
  2035  	XK_Sinh_pha                               = 0x1000db5
  2036  	XK_Sinh_ra                                = 0x1000dbb
  2037  	XK_Sinh_ri                                = 0x1000d8d
  2038  	XK_Sinh_rii                               = 0x1000d8e
  2039  	XK_Sinh_ru2                               = 0x1000dd8
  2040  	XK_Sinh_ruu2                              = 0x1000df2
  2041  	XK_Sinh_sa                                = 0x1000dc3
  2042  	XK_Sinh_sha                               = 0x1000dc1
  2043  	XK_Sinh_ssha                              = 0x1000dc2
  2044  	XK_Sinh_tha                               = 0x1000dad
  2045  	XK_Sinh_thha                              = 0x1000dae
  2046  	XK_Sinh_tta                               = 0x1000da7
  2047  	XK_Sinh_ttha                              = 0x1000da8
  2048  	XK_Sinh_u                                 = 0x1000d8b
  2049  	XK_Sinh_u2                                = 0x1000dd4
  2050  	XK_Sinh_uu                                = 0x1000d8c
  2051  	XK_Sinh_uu2                               = 0x1000dd6
  2052  	XK_Sinh_va                                = 0x1000dc0
  2053  	XK_Sinh_ya                                = 0x1000dba
  2054  	XK_SlowKeys_Enable                        = 0xfe73
  2055  	XK_StickyKeys_Enable                      = 0xfe75
  2056  	XK_Super_L                                = 0xffeb
  2057  	XK_Super_R                                = 0xffec
  2058  	XK_Sys_Req                                = 0xff15
  2059  	XK_T                                      = 0x0054
  2060  	XK_THAI                                   = 0
  2061  	XK_THORN                                  = 0x00de
  2062  	XK_Tab                                    = 0xff09
  2063  	XK_Tabovedot                              = 0x1001e6a
  2064  	XK_Tcaron                                 = 0x01ab
  2065  	XK_Tcedilla                               = 0x01de
  2066  	XK_Terminate_Server                       = 0xfed5
  2067  	XK_Thai_baht                              = 0x0ddf
  2068  	XK_Thai_bobaimai                          = 0x0dba
  2069  	XK_Thai_chochan                           = 0x0da8
  2070  	XK_Thai_chochang                          = 0x0daa
  2071  	XK_Thai_choching                          = 0x0da9
  2072  	XK_Thai_chochoe                           = 0x0dac
  2073  	XK_Thai_dochada                           = 0x0dae
  2074  	XK_Thai_dodek                             = 0x0db4
  2075  	XK_Thai_fofa                              = 0x0dbd
  2076  	XK_Thai_fofan                             = 0x0dbf
  2077  	XK_Thai_hohip                             = 0x0dcb
  2078  	XK_Thai_honokhuk                          = 0x0dce
  2079  	XK_Thai_khokhai                           = 0x0da2
  2080  	XK_Thai_khokhon                           = 0x0da5
  2081  	XK_Thai_khokhuat                          = 0x0da3
  2082  	XK_Thai_khokhwai                          = 0x0da4
  2083  	XK_Thai_khorakhang                        = 0x0da6
  2084  	XK_Thai_kokai                             = 0x0da1
  2085  	XK_Thai_lakkhangyao                       = 0x0de5
  2086  	XK_Thai_lekchet                           = 0x0df7
  2087  	XK_Thai_lekha                             = 0x0df5
  2088  	XK_Thai_lekhok                            = 0x0df6
  2089  	XK_Thai_lekkao                            = 0x0df9
  2090  	XK_Thai_leknung                           = 0x0df1
  2091  	XK_Thai_lekpaet                           = 0x0df8
  2092  	XK_Thai_leksam                            = 0x0df3
  2093  	XK_Thai_leksi                             = 0x0df4
  2094  	XK_Thai_leksong                           = 0x0df2
  2095  	XK_Thai_leksun                            = 0x0df0
  2096  	XK_Thai_lochula                           = 0x0dcc
  2097  	XK_Thai_loling                            = 0x0dc5
  2098  	XK_Thai_lu                                = 0x0dc6
  2099  	XK_Thai_maichattawa                       = 0x0deb
  2100  	XK_Thai_maiek                             = 0x0de8
  2101  	XK_Thai_maihanakat                        = 0x0dd1
  2102  	XK_Thai_maihanakat_maitho                 = 0x0dde
  2103  	XK_Thai_maitaikhu                         = 0x0de7
  2104  	XK_Thai_maitho                            = 0x0de9
  2105  	XK_Thai_maitri                            = 0x0dea
  2106  	XK_Thai_maiyamok                          = 0x0de6
  2107  	XK_Thai_moma                              = 0x0dc1
  2108  	XK_Thai_ngongu                            = 0x0da7
  2109  	XK_Thai_nikhahit                          = 0x0ded
  2110  	XK_Thai_nonen                             = 0x0db3
  2111  	XK_Thai_nonu                              = 0x0db9
  2112  	XK_Thai_oang                              = 0x0dcd
  2113  	XK_Thai_paiyannoi                         = 0x0dcf
  2114  	XK_Thai_phinthu                           = 0x0dda
  2115  	XK_Thai_phophan                           = 0x0dbe
  2116  	XK_Thai_phophung                          = 0x0dbc
  2117  	XK_Thai_phosamphao                        = 0x0dc0
  2118  	XK_Thai_popla                             = 0x0dbb
  2119  	XK_Thai_rorua                             = 0x0dc3
  2120  	XK_Thai_ru                                = 0x0dc4
  2121  	XK_Thai_saraa                             = 0x0dd0
  2122  	XK_Thai_saraaa                            = 0x0dd2
  2123  	XK_Thai_saraae                            = 0x0de1
  2124  	XK_Thai_saraaimaimalai                    = 0x0de4
  2125  	XK_Thai_saraaimaimuan                     = 0x0de3
  2126  	XK_Thai_saraam                            = 0x0dd3
  2127  	XK_Thai_sarae                             = 0x0de0
  2128  	XK_Thai_sarai                             = 0x0dd4
  2129  	XK_Thai_saraii                            = 0x0dd5
  2130  	XK_Thai_sarao                             = 0x0de2
  2131  	XK_Thai_sarau                             = 0x0dd8
  2132  	XK_Thai_saraue                            = 0x0dd6
  2133  	XK_Thai_sarauee                           = 0x0dd7
  2134  	XK_Thai_sarauu                            = 0x0dd9
  2135  	XK_Thai_sorusi                            = 0x0dc9
  2136  	XK_Thai_sosala                            = 0x0dc8
  2137  	XK_Thai_soso                              = 0x0dab
  2138  	XK_Thai_sosua                             = 0x0dca
  2139  	XK_Thai_thanthakhat                       = 0x0dec
  2140  	XK_Thai_thonangmontho                     = 0x0db1
  2141  	XK_Thai_thophuthao                        = 0x0db2
  2142  	XK_Thai_thothahan                         = 0x0db7
  2143  	XK_Thai_thothan                           = 0x0db0
  2144  	XK_Thai_thothong                          = 0x0db8
  2145  	XK_Thai_thothung                          = 0x0db6
  2146  	XK_Thai_topatak                           = 0x0daf
  2147  	XK_Thai_totao                             = 0x0db5
  2148  	XK_Thai_wowaen                            = 0x0dc7
  2149  	XK_Thai_yoyak                             = 0x0dc2
  2150  	XK_Thai_yoying                            = 0x0dad
  2151  	XK_Thorn                                  = 0x00de
  2152  	XK_Touroku                                = 0xff2b
  2153  	XK_Tslash                                 = 0x03ac
  2154  	XK_U                                      = 0x0055
  2155  	XK_Uacute                                 = 0x00da
  2156  	XK_Ubelowdot                              = 0x1001ee4
  2157  	XK_Ubreve                                 = 0x02dd
  2158  	XK_Ucircumflex                            = 0x00db
  2159  	XK_Udiaeresis                             = 0x00dc
  2160  	XK_Udoubleacute                           = 0x01db
  2161  	XK_Ugrave                                 = 0x00d9
  2162  	XK_Uhook                                  = 0x1001ee6
  2163  	XK_Uhorn                                  = 0x10001af
  2164  	XK_Uhornacute                             = 0x1001ee8
  2165  	XK_Uhornbelowdot                          = 0x1001ef0
  2166  	XK_Uhorngrave                             = 0x1001eea
  2167  	XK_Uhornhook                              = 0x1001eec
  2168  	XK_Uhorntilde                             = 0x1001eee
  2169  	XK_Ukrainian_GHE_WITH_UPTURN              = 0x06bd
  2170  	XK_Ukrainian_I                            = 0x06b6
  2171  	XK_Ukrainian_IE                           = 0x06b4
  2172  	XK_Ukrainian_YI                           = 0x06b7
  2173  	XK_Ukrainian_ghe_with_upturn              = 0x06ad
  2174  	XK_Ukrainian_i                            = 0x06a6
  2175  	XK_Ukrainian_ie                           = 0x06a4
  2176  	XK_Ukrainian_yi                           = 0x06a7
  2177  	XK_Ukranian_I                             = 0x06b6
  2178  	XK_Ukranian_JE                            = 0x06b4
  2179  	XK_Ukranian_YI                            = 0x06b7
  2180  	XK_Ukranian_i                             = 0x06a6
  2181  	XK_Ukranian_je                            = 0x06a4
  2182  	XK_Ukranian_yi                            = 0x06a7
  2183  	XK_Umacron                                = 0x03de
  2184  	XK_Undo                                   = 0xff65
  2185  	XK_Uogonek                                = 0x03d9
  2186  	XK_Up                                     = 0xff52
  2187  	XK_Uring                                  = 0x01d9
  2188  	XK_Utilde                                 = 0x03dd
  2189  	XK_V                                      = 0x0056
  2190  	XK_VIETNAMESE                             = 0
  2191  	XK_VoidSymbol                             = 0xffffff
  2192  	XK_W                                      = 0x0057
  2193  	XK_Wacute                                 = 0x1001e82
  2194  	XK_Wcircumflex                            = 0x1000174
  2195  	XK_Wdiaeresis                             = 0x1001e84
  2196  	XK_Wgrave                                 = 0x1001e80
  2197  	XK_WonSign                                = 0x10020a9
  2198  	XK_X                                      = 0x0058
  2199  	XK_XKB_KEYS                               = 0
  2200  	XK_Xabovedot                              = 0x1001e8a
  2201  	XK_Y                                      = 0x0059
  2202  	XK_Yacute                                 = 0x00dd
  2203  	XK_Ybelowdot                              = 0x1001ef4
  2204  	XK_Ycircumflex                            = 0x1000176
  2205  	XK_Ydiaeresis                             = 0x13be
  2206  	XK_Ygrave                                 = 0x1001ef2
  2207  	XK_Yhook                                  = 0x1001ef6
  2208  	XK_Ytilde                                 = 0x1001ef8
  2209  	XK_Z                                      = 0x005a
  2210  	XK_Zabovedot                              = 0x01af
  2211  	XK_Zacute                                 = 0x01ac
  2212  	XK_Zcaron                                 = 0x01ae
  2213  	XK_Zen_Koho                               = 0xff3d
  2214  	XK_Zenkaku                                = 0xff28
  2215  	XK_Zenkaku_Hankaku                        = 0xff2a
  2216  	XK_Zstroke                                = 0x10001b5
  2217  	XK_a                                      = 0x0061
  2218  	XK_aacute                                 = 0x00e1
  2219  	XK_abelowdot                              = 0x1001ea1
  2220  	XK_abovedot                               = 0x01ff
  2221  	XK_abreve                                 = 0x01e3
  2222  	XK_abreveacute                            = 0x1001eaf
  2223  	XK_abrevebelowdot                         = 0x1001eb7
  2224  	XK_abrevegrave                            = 0x1001eb1
  2225  	XK_abrevehook                             = 0x1001eb3
  2226  	XK_abrevetilde                            = 0x1001eb5
  2227  	XK_acircumflex                            = 0x00e2
  2228  	XK_acircumflexacute                       = 0x1001ea5
  2229  	XK_acircumflexbelowdot                    = 0x1001ead
  2230  	XK_acircumflexgrave                       = 0x1001ea7
  2231  	XK_acircumflexhook                        = 0x1001ea9
  2232  	XK_acircumflextilde                       = 0x1001eab
  2233  	XK_acute                                  = 0x00b4
  2234  	XK_adiaeresis                             = 0x00e4
  2235  	XK_ae                                     = 0x00e6
  2236  	XK_agrave                                 = 0x00e0
  2237  	XK_ahook                                  = 0x1001ea3
  2238  	XK_amacron                                = 0x03e0
  2239  	XK_ampersand                              = 0x0026
  2240  	XK_aogonek                                = 0x01b1
  2241  	XK_apostrophe                             = 0x0027
  2242  	XK_approxeq                               = 0x1002248
  2243  	XK_aring                                  = 0x00e5
  2244  	XK_asciicircum                            = 0x005e
  2245  	XK_asciitilde                             = 0x007e
  2246  	XK_asterisk                               = 0x002a
  2247  	XK_at                                     = 0x0040
  2248  	XK_atilde                                 = 0x00e3
  2249  	XK_b                                      = 0x0062
  2250  	XK_babovedot                              = 0x1001e03
  2251  	XK_backslash                              = 0x005c
  2252  	XK_bar                                    = 0x007c
  2253  	XK_because                                = 0x1002235
  2254  	XK_braceleft                              = 0x007b
  2255  	XK_braceright                             = 0x007d
  2256  	XK_bracketleft                            = 0x005b
  2257  	XK_bracketright                           = 0x005d
  2258  	XK_braille_blank                          = 0x1002800
  2259  	XK_braille_dot_1                          = 0xfff1
  2260  	XK_braille_dot_10                         = 0xfffa
  2261  	XK_braille_dot_2                          = 0xfff2
  2262  	XK_braille_dot_3                          = 0xfff3
  2263  	XK_braille_dot_4                          = 0xfff4
  2264  	XK_braille_dot_5                          = 0xfff5
  2265  	XK_braille_dot_6                          = 0xfff6
  2266  	XK_braille_dot_7                          = 0xfff7
  2267  	XK_braille_dot_8                          = 0xfff8
  2268  	XK_braille_dot_9                          = 0xfff9
  2269  	XK_braille_dots_1                         = 0x1002801
  2270  	XK_braille_dots_12                        = 0x1002803
  2271  	XK_braille_dots_123                       = 0x1002807
  2272  	XK_braille_dots_1234                      = 0x100280f
  2273  	XK_braille_dots_12345                     = 0x100281f
  2274  	XK_braille_dots_123456                    = 0x100283f
  2275  	XK_braille_dots_1234567                   = 0x100287f
  2276  	XK_braille_dots_12345678                  = 0x10028ff
  2277  	XK_braille_dots_1234568                   = 0x10028bf
  2278  	XK_braille_dots_123457                    = 0x100285f
  2279  	XK_braille_dots_1234578                   = 0x10028df
  2280  	XK_braille_dots_123458                    = 0x100289f
  2281  	XK_braille_dots_12346                     = 0x100282f
  2282  	XK_braille_dots_123467                    = 0x100286f
  2283  	XK_braille_dots_1234678                   = 0x10028ef
  2284  	XK_braille_dots_123468                    = 0x10028af
  2285  	XK_braille_dots_12347                     = 0x100284f
  2286  	XK_braille_dots_123478                    = 0x10028cf
  2287  	XK_braille_dots_12348                     = 0x100288f
  2288  	XK_braille_dots_1235                      = 0x1002817
  2289  	XK_braille_dots_12356                     = 0x1002837
  2290  	XK_braille_dots_123567                    = 0x1002877
  2291  	XK_braille_dots_1235678                   = 0x10028f7
  2292  	XK_braille_dots_123568                    = 0x10028b7
  2293  	XK_braille_dots_12357                     = 0x1002857
  2294  	XK_braille_dots_123578                    = 0x10028d7
  2295  	XK_braille_dots_12358                     = 0x1002897
  2296  	XK_braille_dots_1236                      = 0x1002827
  2297  	XK_braille_dots_12367                     = 0x1002867
  2298  	XK_braille_dots_123678                    = 0x10028e7
  2299  	XK_braille_dots_12368                     = 0x10028a7
  2300  	XK_braille_dots_1237                      = 0x1002847
  2301  	XK_braille_dots_12378                     = 0x10028c7
  2302  	XK_braille_dots_1238                      = 0x1002887
  2303  	XK_braille_dots_124                       = 0x100280b
  2304  	XK_braille_dots_1245                      = 0x100281b
  2305  	XK_braille_dots_12456                     = 0x100283b
  2306  	XK_braille_dots_124567                    = 0x100287b
  2307  	XK_braille_dots_1245678                   = 0x10028fb
  2308  	XK_braille_dots_124568                    = 0x10028bb
  2309  	XK_braille_dots_12457                     = 0x100285b
  2310  	XK_braille_dots_124578                    = 0x10028db
  2311  	XK_braille_dots_12458                     = 0x100289b
  2312  	XK_braille_dots_1246                      = 0x100282b
  2313  	XK_braille_dots_12467                     = 0x100286b
  2314  	XK_braille_dots_124678                    = 0x10028eb
  2315  	XK_braille_dots_12468                     = 0x10028ab
  2316  	XK_braille_dots_1247                      = 0x100284b
  2317  	XK_braille_dots_12478                     = 0x10028cb
  2318  	XK_braille_dots_1248                      = 0x100288b
  2319  	XK_braille_dots_125                       = 0x1002813
  2320  	XK_braille_dots_1256                      = 0x1002833
  2321  	XK_braille_dots_12567                     = 0x1002873
  2322  	XK_braille_dots_125678                    = 0x10028f3
  2323  	XK_braille_dots_12568                     = 0x10028b3
  2324  	XK_braille_dots_1257                      = 0x1002853
  2325  	XK_braille_dots_12578                     = 0x10028d3
  2326  	XK_braille_dots_1258                      = 0x1002893
  2327  	XK_braille_dots_126                       = 0x1002823
  2328  	XK_braille_dots_1267                      = 0x1002863
  2329  	XK_braille_dots_12678                     = 0x10028e3
  2330  	XK_braille_dots_1268                      = 0x10028a3
  2331  	XK_braille_dots_127                       = 0x1002843
  2332  	XK_braille_dots_1278                      = 0x10028c3
  2333  	XK_braille_dots_128                       = 0x1002883
  2334  	XK_braille_dots_13                        = 0x1002805
  2335  	XK_braille_dots_134                       = 0x100280d
  2336  	XK_braille_dots_1345                      = 0x100281d
  2337  	XK_braille_dots_13456                     = 0x100283d
  2338  	XK_braille_dots_134567                    = 0x100287d
  2339  	XK_braille_dots_1345678                   = 0x10028fd
  2340  	XK_braille_dots_134568                    = 0x10028bd
  2341  	XK_braille_dots_13457                     = 0x100285d
  2342  	XK_braille_dots_134578                    = 0x10028dd
  2343  	XK_braille_dots_13458                     = 0x100289d
  2344  	XK_braille_dots_1346                      = 0x100282d
  2345  	XK_braille_dots_13467                     = 0x100286d
  2346  	XK_braille_dots_134678                    = 0x10028ed
  2347  	XK_braille_dots_13468                     = 0x10028ad
  2348  	XK_braille_dots_1347                      = 0x100284d
  2349  	XK_braille_dots_13478                     = 0x10028cd
  2350  	XK_braille_dots_1348                      = 0x100288d
  2351  	XK_braille_dots_135                       = 0x1002815
  2352  	XK_braille_dots_1356                      = 0x1002835
  2353  	XK_braille_dots_13567                     = 0x1002875
  2354  	XK_braille_dots_135678                    = 0x10028f5
  2355  	XK_braille_dots_13568                     = 0x10028b5
  2356  	XK_braille_dots_1357                      = 0x1002855
  2357  	XK_braille_dots_13578                     = 0x10028d5
  2358  	XK_braille_dots_1358                      = 0x1002895
  2359  	XK_braille_dots_136                       = 0x1002825
  2360  	XK_braille_dots_1367                      = 0x1002865
  2361  	XK_braille_dots_13678                     = 0x10028e5
  2362  	XK_braille_dots_1368                      = 0x10028a5
  2363  	XK_braille_dots_137                       = 0x1002845
  2364  	XK_braille_dots_1378                      = 0x10028c5
  2365  	XK_braille_dots_138                       = 0x1002885
  2366  	XK_braille_dots_14                        = 0x1002809
  2367  	XK_braille_dots_145                       = 0x1002819
  2368  	XK_braille_dots_1456                      = 0x1002839
  2369  	XK_braille_dots_14567                     = 0x1002879
  2370  	XK_braille_dots_145678                    = 0x10028f9
  2371  	XK_braille_dots_14568                     = 0x10028b9
  2372  	XK_braille_dots_1457                      = 0x1002859
  2373  	XK_braille_dots_14578                     = 0x10028d9
  2374  	XK_braille_dots_1458                      = 0x1002899
  2375  	XK_braille_dots_146                       = 0x1002829
  2376  	XK_braille_dots_1467                      = 0x1002869
  2377  	XK_braille_dots_14678                     = 0x10028e9
  2378  	XK_braille_dots_1468                      = 0x10028a9
  2379  	XK_braille_dots_147                       = 0x1002849
  2380  	XK_braille_dots_1478                      = 0x10028c9
  2381  	XK_braille_dots_148                       = 0x1002889
  2382  	XK_braille_dots_15                        = 0x1002811
  2383  	XK_braille_dots_156                       = 0x1002831
  2384  	XK_braille_dots_1567                      = 0x1002871
  2385  	XK_braille_dots_15678                     = 0x10028f1
  2386  	XK_braille_dots_1568                      = 0x10028b1
  2387  	XK_braille_dots_157                       = 0x1002851
  2388  	XK_braille_dots_1578                      = 0x10028d1
  2389  	XK_braille_dots_158                       = 0x1002891
  2390  	XK_braille_dots_16                        = 0x1002821
  2391  	XK_braille_dots_167                       = 0x1002861
  2392  	XK_braille_dots_1678                      = 0x10028e1
  2393  	XK_braille_dots_168                       = 0x10028a1
  2394  	XK_braille_dots_17                        = 0x1002841
  2395  	XK_braille_dots_178                       = 0x10028c1
  2396  	XK_braille_dots_18                        = 0x1002881
  2397  	XK_braille_dots_2                         = 0x1002802
  2398  	XK_braille_dots_23                        = 0x1002806
  2399  	XK_braille_dots_234                       = 0x100280e
  2400  	XK_braille_dots_2345                      = 0x100281e
  2401  	XK_braille_dots_23456                     = 0x100283e
  2402  	XK_braille_dots_234567                    = 0x100287e
  2403  	XK_braille_dots_2345678                   = 0x10028fe
  2404  	XK_braille_dots_234568                    = 0x10028be
  2405  	XK_braille_dots_23457                     = 0x100285e
  2406  	XK_braille_dots_234578                    = 0x10028de
  2407  	XK_braille_dots_23458                     = 0x100289e
  2408  	XK_braille_dots_2346                      = 0x100282e
  2409  	XK_braille_dots_23467                     = 0x100286e
  2410  	XK_braille_dots_234678                    = 0x10028ee
  2411  	XK_braille_dots_23468                     = 0x10028ae
  2412  	XK_braille_dots_2347                      = 0x100284e
  2413  	XK_braille_dots_23478                     = 0x10028ce
  2414  	XK_braille_dots_2348                      = 0x100288e
  2415  	XK_braille_dots_235                       = 0x1002816
  2416  	XK_braille_dots_2356                      = 0x1002836
  2417  	XK_braille_dots_23567                     = 0x1002876
  2418  	XK_braille_dots_235678                    = 0x10028f6
  2419  	XK_braille_dots_23568                     = 0x10028b6
  2420  	XK_braille_dots_2357                      = 0x1002856
  2421  	XK_braille_dots_23578                     = 0x10028d6
  2422  	XK_braille_dots_2358                      = 0x1002896
  2423  	XK_braille_dots_236                       = 0x1002826
  2424  	XK_braille_dots_2367                      = 0x1002866
  2425  	XK_braille_dots_23678                     = 0x10028e6
  2426  	XK_braille_dots_2368                      = 0x10028a6
  2427  	XK_braille_dots_237                       = 0x1002846
  2428  	XK_braille_dots_2378                      = 0x10028c6
  2429  	XK_braille_dots_238                       = 0x1002886
  2430  	XK_braille_dots_24                        = 0x100280a
  2431  	XK_braille_dots_245                       = 0x100281a
  2432  	XK_braille_dots_2456                      = 0x100283a
  2433  	XK_braille_dots_24567                     = 0x100287a
  2434  	XK_braille_dots_245678                    = 0x10028fa
  2435  	XK_braille_dots_24568                     = 0x10028ba
  2436  	XK_braille_dots_2457                      = 0x100285a
  2437  	XK_braille_dots_24578                     = 0x10028da
  2438  	XK_braille_dots_2458                      = 0x100289a
  2439  	XK_braille_dots_246                       = 0x100282a
  2440  	XK_braille_dots_2467                      = 0x100286a
  2441  	XK_braille_dots_24678                     = 0x10028ea
  2442  	XK_braille_dots_2468                      = 0x10028aa
  2443  	XK_braille_dots_247                       = 0x100284a
  2444  	XK_braille_dots_2478                      = 0x10028ca
  2445  	XK_braille_dots_248                       = 0x100288a
  2446  	XK_braille_dots_25                        = 0x1002812
  2447  	XK_braille_dots_256                       = 0x1002832
  2448  	XK_braille_dots_2567                      = 0x1002872
  2449  	XK_braille_dots_25678                     = 0x10028f2
  2450  	XK_braille_dots_2568                      = 0x10028b2
  2451  	XK_braille_dots_257                       = 0x1002852
  2452  	XK_braille_dots_2578                      = 0x10028d2
  2453  	XK_braille_dots_258                       = 0x1002892
  2454  	XK_braille_dots_26                        = 0x1002822
  2455  	XK_braille_dots_267                       = 0x1002862
  2456  	XK_braille_dots_2678                      = 0x10028e2
  2457  	XK_braille_dots_268                       = 0x10028a2
  2458  	XK_braille_dots_27                        = 0x1002842
  2459  	XK_braille_dots_278                       = 0x10028c2
  2460  	XK_braille_dots_28                        = 0x1002882
  2461  	XK_braille_dots_3                         = 0x1002804
  2462  	XK_braille_dots_34                        = 0x100280c
  2463  	XK_braille_dots_345                       = 0x100281c
  2464  	XK_braille_dots_3456                      = 0x100283c
  2465  	XK_braille_dots_34567                     = 0x100287c
  2466  	XK_braille_dots_345678                    = 0x10028fc
  2467  	XK_braille_dots_34568                     = 0x10028bc
  2468  	XK_braille_dots_3457                      = 0x100285c
  2469  	XK_braille_dots_34578                     = 0x10028dc
  2470  	XK_braille_dots_3458                      = 0x100289c
  2471  	XK_braille_dots_346                       = 0x100282c
  2472  	XK_braille_dots_3467                      = 0x100286c
  2473  	XK_braille_dots_34678                     = 0x10028ec
  2474  	XK_braille_dots_3468                      = 0x10028ac
  2475  	XK_braille_dots_347                       = 0x100284c
  2476  	XK_braille_dots_3478                      = 0x10028cc
  2477  	XK_braille_dots_348                       = 0x100288c
  2478  	XK_braille_dots_35                        = 0x1002814
  2479  	XK_braille_dots_356                       = 0x1002834
  2480  	XK_braille_dots_3567                      = 0x1002874
  2481  	XK_braille_dots_35678                     = 0x10028f4
  2482  	XK_braille_dots_3568                      = 0x10028b4
  2483  	XK_braille_dots_357                       = 0x1002854
  2484  	XK_braille_dots_3578                      = 0x10028d4
  2485  	XK_braille_dots_358                       = 0x1002894
  2486  	XK_braille_dots_36                        = 0x1002824
  2487  	XK_braille_dots_367                       = 0x1002864
  2488  	XK_braille_dots_3678                      = 0x10028e4
  2489  	XK_braille_dots_368                       = 0x10028a4
  2490  	XK_braille_dots_37                        = 0x1002844
  2491  	XK_braille_dots_378                       = 0x10028c4
  2492  	XK_braille_dots_38                        = 0x1002884
  2493  	XK_braille_dots_4                         = 0x1002808
  2494  	XK_braille_dots_45                        = 0x1002818
  2495  	XK_braille_dots_456                       = 0x1002838
  2496  	XK_braille_dots_4567                      = 0x1002878
  2497  	XK_braille_dots_45678                     = 0x10028f8
  2498  	XK_braille_dots_4568                      = 0x10028b8
  2499  	XK_braille_dots_457                       = 0x1002858
  2500  	XK_braille_dots_4578                      = 0x10028d8
  2501  	XK_braille_dots_458                       = 0x1002898
  2502  	XK_braille_dots_46                        = 0x1002828
  2503  	XK_braille_dots_467                       = 0x1002868
  2504  	XK_braille_dots_4678                      = 0x10028e8
  2505  	XK_braille_dots_468                       = 0x10028a8
  2506  	XK_braille_dots_47                        = 0x1002848
  2507  	XK_braille_dots_478                       = 0x10028c8
  2508  	XK_braille_dots_48                        = 0x1002888
  2509  	XK_braille_dots_5                         = 0x1002810
  2510  	XK_braille_dots_56                        = 0x1002830
  2511  	XK_braille_dots_567                       = 0x1002870
  2512  	XK_braille_dots_5678                      = 0x10028f0
  2513  	XK_braille_dots_568                       = 0x10028b0
  2514  	XK_braille_dots_57                        = 0x1002850
  2515  	XK_braille_dots_578                       = 0x10028d0
  2516  	XK_braille_dots_58                        = 0x1002890
  2517  	XK_braille_dots_6                         = 0x1002820
  2518  	XK_braille_dots_67                        = 0x1002860
  2519  	XK_braille_dots_678                       = 0x10028e0
  2520  	XK_braille_dots_68                        = 0x10028a0
  2521  	XK_braille_dots_7                         = 0x1002840
  2522  	XK_braille_dots_78                        = 0x10028c0
  2523  	XK_braille_dots_8                         = 0x1002880
  2524  	XK_breve                                  = 0x01a2
  2525  	XK_brokenbar                              = 0x00a6
  2526  	XK_c                                      = 0x0063
  2527  	XK_c_h                                    = 0xfea3
  2528  	XK_cabovedot                              = 0x02e5
  2529  	XK_cacute                                 = 0x01e6
  2530  	XK_caron                                  = 0x01b7
  2531  	XK_ccaron                                 = 0x01e8
  2532  	XK_ccedilla                               = 0x00e7
  2533  	XK_ccircumflex                            = 0x02e6
  2534  	XK_cedilla                                = 0x00b8
  2535  	XK_cent                                   = 0x00a2
  2536  	XK_ch                                     = 0xfea0
  2537  	XK_colon                                  = 0x003a
  2538  	XK_combining_acute                        = 0x1000301
  2539  	XK_combining_belowdot                     = 0x1000323
  2540  	XK_combining_grave                        = 0x1000300
  2541  	XK_combining_hook                         = 0x1000309
  2542  	XK_combining_tilde                        = 0x1000303
  2543  	XK_comma                                  = 0x002c
  2544  	XK_containsas                             = 0x100220B
  2545  	XK_copyright                              = 0x00a9
  2546  	XK_cuberoot                               = 0x100221B
  2547  	XK_currency                               = 0x00a4
  2548  	XK_d                                      = 0x0064
  2549  	XK_dabovedot                              = 0x1001e0b
  2550  	XK_dcaron                                 = 0x01ef
  2551  	XK_dead_A                                 = 0xfe81
  2552  	XK_dead_E                                 = 0xfe83
  2553  	XK_dead_I                                 = 0xfe85
  2554  	XK_dead_O                                 = 0xfe87
  2555  	XK_dead_U                                 = 0xfe89
  2556  	XK_dead_a                                 = 0xfe80
  2557  	XK_dead_abovecomma                        = 0xfe64
  2558  	XK_dead_abovedot                          = 0xfe56
  2559  	XK_dead_abovereversedcomma                = 0xfe65
  2560  	XK_dead_abovering                         = 0xfe58
  2561  	XK_dead_aboveverticalline                 = 0xfe91
  2562  	XK_dead_acute                             = 0xfe51
  2563  	XK_dead_belowbreve                        = 0xfe6b
  2564  	XK_dead_belowcircumflex                   = 0xfe69
  2565  	XK_dead_belowcomma                        = 0xfe6e
  2566  	XK_dead_belowdiaeresis                    = 0xfe6c
  2567  	XK_dead_belowdot                          = 0xfe60
  2568  	XK_dead_belowmacron                       = 0xfe68
  2569  	XK_dead_belowring                         = 0xfe67
  2570  	XK_dead_belowtilde                        = 0xfe6a
  2571  	XK_dead_belowverticalline                 = 0xfe92
  2572  	XK_dead_breve                             = 0xfe55
  2573  	XK_dead_capital_schwa                     = 0xfe8b
  2574  	XK_dead_caron                             = 0xfe5a
  2575  	XK_dead_cedilla                           = 0xfe5b
  2576  	XK_dead_circumflex                        = 0xfe52
  2577  	XK_dead_currency                          = 0xfe6f
  2578  	XK_dead_dasia                             = 0xfe65
  2579  	XK_dead_diaeresis                         = 0xfe57
  2580  	XK_dead_doubleacute                       = 0xfe59
  2581  	XK_dead_doublegrave                       = 0xfe66
  2582  	XK_dead_e                                 = 0xfe82
  2583  	XK_dead_grave                             = 0xfe50
  2584  	XK_dead_greek                             = 0xfe8c
  2585  	XK_dead_hook                              = 0xfe61
  2586  	XK_dead_horn                              = 0xfe62
  2587  	XK_dead_i                                 = 0xfe84
  2588  	XK_dead_invertedbreve                     = 0xfe6d
  2589  	XK_dead_iota                              = 0xfe5d
  2590  	XK_dead_longsolidusoverlay                = 0xfe93
  2591  	XK_dead_lowline                           = 0xfe90
  2592  	XK_dead_macron                            = 0xfe54
  2593  	XK_dead_o                                 = 0xfe86
  2594  	XK_dead_ogonek                            = 0xfe5c
  2595  	XK_dead_perispomeni                       = 0xfe53
  2596  	XK_dead_psili                             = 0xfe64
  2597  	XK_dead_semivoiced_sound                  = 0xfe5f
  2598  	XK_dead_small_schwa                       = 0xfe8a
  2599  	XK_dead_stroke                            = 0xfe63
  2600  	XK_dead_tilde                             = 0xfe53
  2601  	XK_dead_u                                 = 0xfe88
  2602  	XK_dead_voiced_sound                      = 0xfe5e
  2603  	XK_degree                                 = 0x00b0
  2604  	XK_diaeresis                              = 0x00a8
  2605  	XK_dintegral                              = 0x100222C
  2606  	XK_division                               = 0x00f7
  2607  	XK_dollar                                 = 0x0024
  2608  	XK_doubleacute                            = 0x01bd
  2609  	XK_dstroke                                = 0x01f0
  2610  	XK_e                                      = 0x0065
  2611  	XK_eabovedot                              = 0x03ec
  2612  	XK_eacute                                 = 0x00e9
  2613  	XK_ebelowdot                              = 0x1001eb9
  2614  	XK_ecaron                                 = 0x01ec
  2615  	XK_ecircumflex                            = 0x00ea
  2616  	XK_ecircumflexacute                       = 0x1001ebf
  2617  	XK_ecircumflexbelowdot                    = 0x1001ec7
  2618  	XK_ecircumflexgrave                       = 0x1001ec1
  2619  	XK_ecircumflexhook                        = 0x1001ec3
  2620  	XK_ecircumflextilde                       = 0x1001ec5
  2621  	XK_ediaeresis                             = 0x00eb
  2622  	XK_egrave                                 = 0x00e8
  2623  	XK_ehook                                  = 0x1001ebb
  2624  	XK_eightsubscript                         = 0x1002088
  2625  	XK_eightsuperior                          = 0x1002078
  2626  	XK_elementof                              = 0x1002208
  2627  	XK_emacron                                = 0x03ba
  2628  	XK_emptyset                               = 0x1002205
  2629  	XK_eng                                    = 0x03bf
  2630  	XK_eogonek                                = 0x01ea
  2631  	XK_equal                                  = 0x003d
  2632  	XK_eth                                    = 0x00f0
  2633  	XK_etilde                                 = 0x1001ebd
  2634  	XK_exclam                                 = 0x0021
  2635  	XK_exclamdown                             = 0x00a1
  2636  	XK_ezh                                    = 0x1000292
  2637  	XK_f                                      = 0x0066
  2638  	XK_fabovedot                              = 0x1001e1f
  2639  	XK_fivesubscript                          = 0x1002085
  2640  	XK_fivesuperior                           = 0x1002075
  2641  	XK_foursubscript                          = 0x1002084
  2642  	XK_foursuperior                           = 0x1002074
  2643  	XK_fourthroot                             = 0x100221C
  2644  	XK_g                                      = 0x0067
  2645  	XK_gabovedot                              = 0x02f5
  2646  	XK_gbreve                                 = 0x02bb
  2647  	XK_gcaron                                 = 0x10001e7
  2648  	XK_gcedilla                               = 0x03bb
  2649  	XK_gcircumflex                            = 0x02f8
  2650  	XK_grave                                  = 0x0060
  2651  	XK_greater                                = 0x003e
  2652  	XK_guillemotleft                          = 0x00ab
  2653  	XK_guillemotright                         = 0x00bb
  2654  	XK_h                                      = 0x0068
  2655  	XK_hcircumflex                            = 0x02b6
  2656  	XK_hebrew_aleph                           = 0x0ce0
  2657  	XK_hebrew_ayin                            = 0x0cf2
  2658  	XK_hebrew_bet                             = 0x0ce1
  2659  	XK_hebrew_beth                            = 0x0ce1
  2660  	XK_hebrew_chet                            = 0x0ce7
  2661  	XK_hebrew_dalet                           = 0x0ce3
  2662  	XK_hebrew_daleth                          = 0x0ce3
  2663  	XK_hebrew_doublelowline                   = 0x0cdf
  2664  	XK_hebrew_finalkaph                       = 0x0cea
  2665  	XK_hebrew_finalmem                        = 0x0ced
  2666  	XK_hebrew_finalnun                        = 0x0cef
  2667  	XK_hebrew_finalpe                         = 0x0cf3
  2668  	XK_hebrew_finalzade                       = 0x0cf5
  2669  	XK_hebrew_finalzadi                       = 0x0cf5
  2670  	XK_hebrew_gimel                           = 0x0ce2
  2671  	XK_hebrew_gimmel                          = 0x0ce2
  2672  	XK_hebrew_he                              = 0x0ce4
  2673  	XK_hebrew_het                             = 0x0ce7
  2674  	XK_hebrew_kaph                            = 0x0ceb
  2675  	XK_hebrew_kuf                             = 0x0cf7
  2676  	XK_hebrew_lamed                           = 0x0cec
  2677  	XK_hebrew_mem                             = 0x0cee
  2678  	XK_hebrew_nun                             = 0x0cf0
  2679  	XK_hebrew_pe                              = 0x0cf4
  2680  	XK_hebrew_qoph                            = 0x0cf7
  2681  	XK_hebrew_resh                            = 0x0cf8
  2682  	XK_hebrew_samech                          = 0x0cf1
  2683  	XK_hebrew_samekh                          = 0x0cf1
  2684  	XK_hebrew_shin                            = 0x0cf9
  2685  	XK_hebrew_taf                             = 0x0cfa
  2686  	XK_hebrew_taw                             = 0x0cfa
  2687  	XK_hebrew_tet                             = 0x0ce8
  2688  	XK_hebrew_teth                            = 0x0ce8
  2689  	XK_hebrew_waw                             = 0x0ce5
  2690  	XK_hebrew_yod                             = 0x0ce9
  2691  	XK_hebrew_zade                            = 0x0cf6
  2692  	XK_hebrew_zadi                            = 0x0cf6
  2693  	XK_hebrew_zain                            = 0x0ce6
  2694  	XK_hebrew_zayin                           = 0x0ce6
  2695  	XK_hstroke                                = 0x02b1
  2696  	XK_hyphen                                 = 0x00ad
  2697  	XK_i                                      = 0x0069
  2698  	XK_iacute                                 = 0x00ed
  2699  	XK_ibelowdot                              = 0x1001ecb
  2700  	XK_ibreve                                 = 0x100012d
  2701  	XK_icircumflex                            = 0x00ee
  2702  	XK_idiaeresis                             = 0x00ef
  2703  	XK_idotless                               = 0x02b9
  2704  	XK_igrave                                 = 0x00ec
  2705  	XK_ihook                                  = 0x1001ec9
  2706  	XK_imacron                                = 0x03ef
  2707  	XK_iogonek                                = 0x03e7
  2708  	XK_itilde                                 = 0x03b5
  2709  	XK_j                                      = 0x006a
  2710  	XK_jcircumflex                            = 0x02bc
  2711  	XK_k                                      = 0x006b
  2712  	XK_kana_A                                 = 0x04b1
  2713  	XK_kana_CHI                               = 0x04c1
  2714  	XK_kana_E                                 = 0x04b4
  2715  	XK_kana_FU                                = 0x04cc
  2716  	XK_kana_HA                                = 0x04ca
  2717  	XK_kana_HE                                = 0x04cd
  2718  	XK_kana_HI                                = 0x04cb
  2719  	XK_kana_HO                                = 0x04ce
  2720  	XK_kana_HU                                = 0x04cc
  2721  	XK_kana_I                                 = 0x04b2
  2722  	XK_kana_KA                                = 0x04b6
  2723  	XK_kana_KE                                = 0x04b9
  2724  	XK_kana_KI                                = 0x04b7
  2725  	XK_kana_KO                                = 0x04ba
  2726  	XK_kana_KU                                = 0x04b8
  2727  	XK_kana_MA                                = 0x04cf
  2728  	XK_kana_ME                                = 0x04d2
  2729  	XK_kana_MI                                = 0x04d0
  2730  	XK_kana_MO                                = 0x04d3
  2731  	XK_kana_MU                                = 0x04d1
  2732  	XK_kana_N                                 = 0x04dd
  2733  	XK_kana_NA                                = 0x04c5
  2734  	XK_kana_NE                                = 0x04c8
  2735  	XK_kana_NI                                = 0x04c6
  2736  	XK_kana_NO                                = 0x04c9
  2737  	XK_kana_NU                                = 0x04c7
  2738  	XK_kana_O                                 = 0x04b5
  2739  	XK_kana_RA                                = 0x04d7
  2740  	XK_kana_RE                                = 0x04da
  2741  	XK_kana_RI                                = 0x04d8
  2742  	XK_kana_RO                                = 0x04db
  2743  	XK_kana_RU                                = 0x04d9
  2744  	XK_kana_SA                                = 0x04bb
  2745  	XK_kana_SE                                = 0x04be
  2746  	XK_kana_SHI                               = 0x04bc
  2747  	XK_kana_SO                                = 0x04bf
  2748  	XK_kana_SU                                = 0x04bd
  2749  	XK_kana_TA                                = 0x04c0
  2750  	XK_kana_TE                                = 0x04c3
  2751  	XK_kana_TI                                = 0x04c1
  2752  	XK_kana_TO                                = 0x04c4
  2753  	XK_kana_TSU                               = 0x04c2
  2754  	XK_kana_TU                                = 0x04c2
  2755  	XK_kana_U                                 = 0x04b3
  2756  	XK_kana_WA                                = 0x04dc
  2757  	XK_kana_WO                                = 0x04a6
  2758  	XK_kana_YA                                = 0x04d4
  2759  	XK_kana_YO                                = 0x04d6
  2760  	XK_kana_YU                                = 0x04d5
  2761  	XK_kana_a                                 = 0x04a7
  2762  	XK_kana_closingbracket                    = 0x04a3
  2763  	XK_kana_comma                             = 0x04a4
  2764  	XK_kana_conjunctive                       = 0x04a5
  2765  	XK_kana_e                                 = 0x04aa
  2766  	XK_kana_fullstop                          = 0x04a1
  2767  	XK_kana_i                                 = 0x04a8
  2768  	XK_kana_middledot                         = 0x04a5
  2769  	XK_kana_o                                 = 0x04ab
  2770  	XK_kana_openingbracket                    = 0x04a2
  2771  	XK_kana_switch                            = 0xff7e
  2772  	XK_kana_tsu                               = 0x04af
  2773  	XK_kana_tu                                = 0x04af
  2774  	XK_kana_u                                 = 0x04a9
  2775  	XK_kana_ya                                = 0x04ac
  2776  	XK_kana_yo                                = 0x04ae
  2777  	XK_kana_yu                                = 0x04ad
  2778  	XK_kappa                                  = 0x03a2
  2779  	XK_kcedilla                               = 0x03f3
  2780  	XK_kra                                    = 0x03a2
  2781  	XK_l                                      = 0x006c
  2782  	XK_lacute                                 = 0x01e5
  2783  	XK_lbelowdot                              = 0x1001e37
  2784  	XK_lcaron                                 = 0x01b5
  2785  	XK_lcedilla                               = 0x03b6
  2786  	XK_less                                   = 0x003c
  2787  	XK_lstroke                                = 0x01b3
  2788  	XK_m                                      = 0x006d
  2789  	XK_mabovedot                              = 0x1001e41
  2790  	XK_macron                                 = 0x00af
  2791  	XK_masculine                              = 0x00ba
  2792  	XK_minus                                  = 0x002d
  2793  	XK_mu                                     = 0x00b5
  2794  	XK_multiply                               = 0x00d7
  2795  	XK_n                                      = 0x006e
  2796  	XK_nacute                                 = 0x01f1
  2797  	XK_ncaron                                 = 0x01f2
  2798  	XK_ncedilla                               = 0x03f1
  2799  	XK_ninesubscript                          = 0x1002089
  2800  	XK_ninesuperior                           = 0x1002079
  2801  	XK_nobreakspace                           = 0x00a0
  2802  	XK_notapproxeq                            = 0x1002247
  2803  	XK_notelementof                           = 0x1002209
  2804  	XK_notidentical                           = 0x1002262
  2805  	XK_notsign                                = 0x00ac
  2806  	XK_ntilde                                 = 0x00f1
  2807  	XK_numbersign                             = 0x0023
  2808  	XK_numerosign                             = 0x06b0
  2809  	XK_o                                      = 0x006f
  2810  	XK_oacute                                 = 0x00f3
  2811  	XK_obarred                                = 0x1000275
  2812  	XK_obelowdot                              = 0x1001ecd
  2813  	XK_ocaron                                 = 0x10001d2
  2814  	XK_ocircumflex                            = 0x00f4
  2815  	XK_ocircumflexacute                       = 0x1001ed1
  2816  	XK_ocircumflexbelowdot                    = 0x1001ed9
  2817  	XK_ocircumflexgrave                       = 0x1001ed3
  2818  	XK_ocircumflexhook                        = 0x1001ed5
  2819  	XK_ocircumflextilde                       = 0x1001ed7
  2820  	XK_odiaeresis                             = 0x00f6
  2821  	XK_odoubleacute                           = 0x01f5
  2822  	XK_oe                                     = 0x13bd
  2823  	XK_ogonek                                 = 0x01b2
  2824  	XK_ograve                                 = 0x00f2
  2825  	XK_ohook                                  = 0x1001ecf
  2826  	XK_ohorn                                  = 0x10001a1
  2827  	XK_ohornacute                             = 0x1001edb
  2828  	XK_ohornbelowdot                          = 0x1001ee3
  2829  	XK_ohorngrave                             = 0x1001edd
  2830  	XK_ohornhook                              = 0x1001edf
  2831  	XK_ohorntilde                             = 0x1001ee1
  2832  	XK_omacron                                = 0x03f2
  2833  	XK_onehalf                                = 0x00bd
  2834  	XK_onequarter                             = 0x00bc
  2835  	XK_onesubscript                           = 0x1002081
  2836  	XK_onesuperior                            = 0x00b9
  2837  	XK_ooblique                               = 0x00f8
  2838  	XK_ordfeminine                            = 0x00aa
  2839  	XK_oslash                                 = 0x00f8
  2840  	XK_otilde                                 = 0x00f5
  2841  	XK_overline                               = 0x047e
  2842  	XK_p                                      = 0x0070
  2843  	XK_pabovedot                              = 0x1001e57
  2844  	XK_paragraph                              = 0x00b6
  2845  	XK_parenleft                              = 0x0028
  2846  	XK_parenright                             = 0x0029
  2847  	XK_partdifferential                       = 0x1002202
  2848  	XK_percent                                = 0x0025
  2849  	XK_period                                 = 0x002e
  2850  	XK_periodcentered                         = 0x00b7
  2851  	XK_plus                                   = 0x002b
  2852  	XK_plusminus                              = 0x00b1
  2853  	XK_prolongedsound                         = 0x04b0
  2854  	XK_q                                      = 0x0071
  2855  	XK_question                               = 0x003f
  2856  	XK_questiondown                           = 0x00bf
  2857  	XK_quotedbl                               = 0x0022
  2858  	XK_quoteleft                              = 0x0060
  2859  	XK_quoteright                             = 0x0027
  2860  	XK_r                                      = 0x0072
  2861  	XK_racute                                 = 0x01e0
  2862  	XK_rcaron                                 = 0x01f8
  2863  	XK_rcedilla                               = 0x03b3
  2864  	XK_registered                             = 0x00ae
  2865  	XK_s                                      = 0x0073
  2866  	XK_sabovedot                              = 0x1001e61
  2867  	XK_sacute                                 = 0x01b6
  2868  	XK_scaron                                 = 0x01b9
  2869  	XK_scedilla                               = 0x01ba
  2870  	XK_schwa                                  = 0x1000259
  2871  	XK_scircumflex                            = 0x02fe
  2872  	XK_script_switch                          = 0xff7e
  2873  	XK_section                                = 0x00a7
  2874  	XK_semicolon                              = 0x003b
  2875  	XK_semivoicedsound                        = 0x04df
  2876  	XK_sevensubscript                         = 0x1002087
  2877  	XK_sevensuperior                          = 0x1002077
  2878  	XK_sixsubscript                           = 0x1002086
  2879  	XK_sixsuperior                            = 0x1002076
  2880  	XK_slash                                  = 0x002f
  2881  	XK_space                                  = 0x0020
  2882  	XK_squareroot                             = 0x100221A
  2883  	XK_ssharp                                 = 0x00df
  2884  	XK_sterling                               = 0x00a3
  2885  	XK_stricteq                               = 0x1002263
  2886  	XK_t                                      = 0x0074
  2887  	XK_tabovedot                              = 0x1001e6b
  2888  	XK_tcaron                                 = 0x01bb
  2889  	XK_tcedilla                               = 0x01fe
  2890  	XK_thorn                                  = 0x00fe
  2891  	XK_threequarters                          = 0x00be
  2892  	XK_threesubscript                         = 0x1002083
  2893  	XK_threesuperior                          = 0x00b3
  2894  	XK_tintegral                              = 0x100222D
  2895  	XK_tslash                                 = 0x03bc
  2896  	XK_twosubscript                           = 0x1002082
  2897  	XK_twosuperior                            = 0x00b2
  2898  	XK_u                                      = 0x0075
  2899  	XK_uacute                                 = 0x00fa
  2900  	XK_ubelowdot                              = 0x1001ee5
  2901  	XK_ubreve                                 = 0x02fd
  2902  	XK_ucircumflex                            = 0x00fb
  2903  	XK_udiaeresis                             = 0x00fc
  2904  	XK_udoubleacute                           = 0x01fb
  2905  	XK_ugrave                                 = 0x00f9
  2906  	XK_uhook                                  = 0x1001ee7
  2907  	XK_uhorn                                  = 0x10001b0
  2908  	XK_uhornacute                             = 0x1001ee9
  2909  	XK_uhornbelowdot                          = 0x1001ef1
  2910  	XK_uhorngrave                             = 0x1001eeb
  2911  	XK_uhornhook                              = 0x1001eed
  2912  	XK_uhorntilde                             = 0x1001eef
  2913  	XK_umacron                                = 0x03fe
  2914  	XK_underscore                             = 0x005f
  2915  	XK_uogonek                                = 0x03f9
  2916  	XK_uring                                  = 0x01f9
  2917  	XK_utilde                                 = 0x03fd
  2918  	XK_v                                      = 0x0076
  2919  	XK_voicedsound                            = 0x04de
  2920  	XK_w                                      = 0x0077
  2921  	XK_wacute                                 = 0x1001e83
  2922  	XK_wcircumflex                            = 0x1000175
  2923  	XK_wdiaeresis                             = 0x1001e85
  2924  	XK_wgrave                                 = 0x1001e81
  2925  	XK_x                                      = 0x0078
  2926  	XK_xabovedot                              = 0x1001e8b
  2927  	XK_y                                      = 0x0079
  2928  	XK_yacute                                 = 0x00fd
  2929  	XK_ybelowdot                              = 0x1001ef5
  2930  	XK_ycircumflex                            = 0x1000177
  2931  	XK_ydiaeresis                             = 0x00ff
  2932  	XK_yen                                    = 0x00a5
  2933  	XK_ygrave                                 = 0x1001ef3
  2934  	XK_yhook                                  = 0x1001ef7
  2935  	XK_ytilde                                 = 0x1001ef9
  2936  	XK_z                                      = 0x007a
  2937  	XK_zabovedot                              = 0x01bf
  2938  	XK_zacute                                 = 0x01bc
  2939  	XK_zcaron                                 = 0x01be
  2940  	XK_zerosubscript                          = 0x1002080
  2941  	XK_zerosuperior                           = 0x1002070
  2942  	XK_zstroke                                = 0x10001b6
  2943  	XLocaleNotSupported                       = -2
  2944  	XLookupBoth                               = 4
  2945  	XLookupChars                              = 2
  2946  	XLookupKeySym                             = 3
  2947  	XLookupNone                               = 1
  2948  	XMD_H                                     = 1
  2949  	XNArea                                    = "area"
  2950  	XNAreaNeeded                              = "areaNeeded"
  2951  	XNBackground                              = "background"
  2952  	XNBackgroundPixmap                        = "backgroundPixmap"
  2953  	XNBaseFontName                            = "baseFontName"
  2954  	XNClientWindow                            = "clientWindow"
  2955  	XNColormap                                = "colorMap"
  2956  	XNContextualDrawing                       = "contextualDrawing"
  2957  	XNCursor                                  = "cursor"
  2958  	XNDefaultString                           = "defaultString"
  2959  	XNDestroyCallback                         = "destroyCallback"
  2960  	XNDirectionalDependentDrawing             = "directionalDependentDrawing"
  2961  	XNFilterEvents                            = "filterEvents"
  2962  	XNFocusWindow                             = "focusWindow"
  2963  	XNFontInfo                                = "fontInfo"
  2964  	XNFontSet                                 = "fontSet"
  2965  	XNForeground                              = "foreground"
  2966  	XNGeometryCallback                        = "geometryCallback"
  2967  	XNHotKey                                  = "hotKey"
  2968  	XNHotKeyState                             = "hotKeyState"
  2969  	XNInputStyle                              = "inputStyle"
  2970  	XNLineSpace                               = "lineSpace"
  2971  	XNMissingCharSet                          = "missingCharSet"
  2972  	XNOMAutomatic                             = "omAutomatic"
  2973  	XNOrientation                             = "orientation"
  2974  	XNPreeditAttributes                       = "preeditAttributes"
  2975  	XNPreeditCaretCallback                    = "preeditCaretCallback"
  2976  	XNPreeditDoneCallback                     = "preeditDoneCallback"
  2977  	XNPreeditDrawCallback                     = "preeditDrawCallback"
  2978  	XNPreeditStartCallback                    = "preeditStartCallback"
  2979  	XNPreeditState                            = "preeditState"
  2980  	XNPreeditStateNotifyCallback              = "preeditStateNotifyCallback"
  2981  	XNQueryICValuesList                       = "queryICValuesList"
  2982  	XNQueryIMValuesList                       = "queryIMValuesList"
  2983  	XNQueryInputStyle                         = "queryInputStyle"
  2984  	XNQueryOrientation                        = "queryOrientation"
  2985  	XNR6PreeditCallback                       = "r6PreeditCallback"
  2986  	XNRequiredCharSet                         = "requiredCharSet"
  2987  	XNResetState                              = "resetState"
  2988  	XNResourceClass                           = "resourceClass"
  2989  	XNResourceName                            = "resourceName"
  2990  	XNSeparatorofNestedList                   = "separatorofNestedList"
  2991  	XNSpotLocation                            = "spotLocation"
  2992  	XNStatusAttributes                        = "statusAttributes"
  2993  	XNStatusDoneCallback                      = "statusDoneCallback"
  2994  	XNStatusDrawCallback                      = "statusDrawCallback"
  2995  	XNStatusStartCallback                     = "statusStartCallback"
  2996  	XNStdColormap                             = "stdColorMap"
  2997  	XNStringConversion                        = "stringConversion"
  2998  	XNStringConversionCallback                = "stringConversionCallback"
  2999  	XNVaNestedList                            = "XNVaNestedList"
  3000  	XNVisiblePosition                         = "visiblePosition"
  3001  	XNegative                                 = 0x0010
  3002  	XNoMemory                                 = -1
  3003  	XPROTOSTRUCTS_H                           = 0
  3004  	XPROTO_H                                  = 0
  3005  	XTHREADS                                  = 1
  3006  	XUSE_MTSAFE_API                           = 1
  3007  	XUrgencyHint                              = 256
  3008  	XValue                                    = 0x0001
  3009  	XYBitmap                                  = 0
  3010  	XYPixmap                                  = 1
  3011  	X_AllocColor                              = 84
  3012  	X_AllocColorCells                         = 86
  3013  	X_AllocColorPlanes                        = 87
  3014  	X_AllocNamedColor                         = 85
  3015  	X_AllowEvents                             = 35
  3016  	X_Bell                                    = 104
  3017  	X_ChangeActivePointerGrab                 = 30
  3018  	X_ChangeGC                                = 56
  3019  	X_ChangeHosts                             = 109
  3020  	X_ChangeKeyboardControl                   = 102
  3021  	X_ChangeKeyboardMapping                   = 100
  3022  	X_ChangePointerControl                    = 105
  3023  	X_ChangeProperty                          = 18
  3024  	X_ChangeSaveSet                           = 6
  3025  	X_ChangeWindowAttributes                  = 2
  3026  	X_CirculateWindow                         = 13
  3027  	X_ClearArea                               = 61
  3028  	X_CloseFont                               = 46
  3029  	X_ConfigureWindow                         = 12
  3030  	X_ConvertSelection                        = 24
  3031  	X_CopyArea                                = 62
  3032  	X_CopyColormapAndFree                     = 80
  3033  	X_CopyGC                                  = 57
  3034  	X_CopyPlane                               = 63
  3035  	X_CreateColormap                          = 78
  3036  	X_CreateCursor                            = 93
  3037  	X_CreateGC                                = 55
  3038  	X_CreateGlyphCursor                       = 94
  3039  	X_CreatePixmap                            = 53
  3040  	X_CreateWindow                            = 1
  3041  	X_DeleteProperty                          = 19
  3042  	X_DestroySubwindows                       = 5
  3043  	X_DestroyWindow                           = 4
  3044  	X_Error                                   = 0
  3045  	X_FillPoly                                = 69
  3046  	X_ForceScreenSaver                        = 115
  3047  	X_FreeColormap                            = 79
  3048  	X_FreeColors                              = 88
  3049  	X_FreeCursor                              = 95
  3050  	X_FreeGC                                  = 60
  3051  	X_FreePixmap                              = 54
  3052  	X_GetAtomName                             = 17
  3053  	X_GetFontPath                             = 52
  3054  	X_GetGeometry                             = 14
  3055  	X_GetImage                                = 73
  3056  	X_GetInputFocus                           = 43
  3057  	X_GetKeyboardControl                      = 103
  3058  	X_GetKeyboardMapping                      = 101
  3059  	X_GetModifierMapping                      = 119
  3060  	X_GetMotionEvents                         = 39
  3061  	X_GetPointerControl                       = 106
  3062  	X_GetPointerMapping                       = 117
  3063  	X_GetProperty                             = 20
  3064  	X_GetScreenSaver                          = 108
  3065  	X_GetSelectionOwner                       = 23
  3066  	X_GetWindowAttributes                     = 3
  3067  	X_GrabButton                              = 28
  3068  	X_GrabKey                                 = 33
  3069  	X_GrabKeyboard                            = 31
  3070  	X_GrabPointer                             = 26
  3071  	X_GrabServer                              = 36
  3072  	X_H                                       = 0
  3073  	X_HAVE_UTF8_STRING                        = 1
  3074  	X_ImageText16                             = 77
  3075  	X_ImageText8                              = 76
  3076  	X_InstallColormap                         = 81
  3077  	X_InternAtom                              = 16
  3078  	X_KillClient                              = 113
  3079  	X_ListExtensions                          = 99
  3080  	X_ListFonts                               = 49
  3081  	X_ListFontsWithInfo                       = 50
  3082  	X_ListHosts                               = 110
  3083  	X_ListInstalledColormaps                  = 83
  3084  	X_ListProperties                          = 21
  3085  	X_LookupColor                             = 92
  3086  	X_MapSubwindows                           = 9
  3087  	X_MapWindow                               = 8
  3088  	X_NoOperation                             = 127
  3089  	X_OpenFont                                = 45
  3090  	X_PROTOCOL                                = 11
  3091  	X_PROTOCOL_REVISION                       = 0
  3092  	X_PolyArc                                 = 68
  3093  	X_PolyFillArc                             = 71
  3094  	X_PolyFillRectangle                       = 70
  3095  	X_PolyLine                                = 65
  3096  	X_PolyPoint                               = 64
  3097  	X_PolyRectangle                           = 67
  3098  	X_PolySegment                             = 66
  3099  	X_PolyText16                              = 75
  3100  	X_PolyText8                               = 74
  3101  	X_PutImage                                = 72
  3102  	X_QueryBestSize                           = 97
  3103  	X_QueryColors                             = 91
  3104  	X_QueryExtension                          = 98
  3105  	X_QueryFont                               = 47
  3106  	X_QueryKeymap                             = 44
  3107  	X_QueryPointer                            = 38
  3108  	X_QueryTextExtents                        = 48
  3109  	X_QueryTree                               = 15
  3110  	X_RecolorCursor                           = 96
  3111  	X_RenderAddGlyphs                         = 20
  3112  	X_RenderAddGlyphsFromPicture              = 21
  3113  	X_RenderAddTraps                          = 32
  3114  	X_RenderChangePicture                     = 5
  3115  	X_RenderColorTrapezoids                   = 14
  3116  	X_RenderColorTriangles                    = 15
  3117  	X_RenderComposite                         = 8
  3118  	X_RenderCompositeGlyphs16                 = 24
  3119  	X_RenderCompositeGlyphs32                 = 25
  3120  	X_RenderCompositeGlyphs8                  = 23
  3121  	X_RenderCreateAnimCursor                  = 31
  3122  	X_RenderCreateConicalGradient             = 36
  3123  	X_RenderCreateCursor                      = 27
  3124  	X_RenderCreateGlyphSet                    = 17
  3125  	X_RenderCreateLinearGradient              = 34
  3126  	X_RenderCreatePicture                     = 4
  3127  	X_RenderCreateRadialGradient              = 35
  3128  	X_RenderCreateSolidFill                   = 33
  3129  	X_RenderFillRectangles                    = 26
  3130  	X_RenderFreeGlyphSet                      = 19
  3131  	X_RenderFreeGlyphs                        = 22
  3132  	X_RenderFreePicture                       = 7
  3133  	X_RenderQueryDithers                      = 3
  3134  	X_RenderQueryFilters                      = 29
  3135  	X_RenderQueryPictFormats                  = 1
  3136  	X_RenderQueryPictIndexValues              = 2
  3137  	X_RenderQueryVersion                      = 0
  3138  	X_RenderReferenceGlyphSet                 = 18
  3139  	X_RenderScale                             = 9
  3140  	X_RenderSetPictureClipRectangles          = 6
  3141  	X_RenderSetPictureFilter                  = 30
  3142  	X_RenderSetPictureTransform               = 28
  3143  	X_RenderTrapezoids                        = 10
  3144  	X_RenderTriFan                            = 13
  3145  	X_RenderTriStrip                          = 12
  3146  	X_RenderTriangles                         = 11
  3147  	X_ReparentWindow                          = 7
  3148  	X_Reply                                   = 1
  3149  	X_RotateProperties                        = 114
  3150  	X_SendEvent                               = 25
  3151  	X_SetAccessControl                        = 111
  3152  	X_SetClipRectangles                       = 59
  3153  	X_SetCloseDownMode                        = 112
  3154  	X_SetDashes                               = 58
  3155  	X_SetFontPath                             = 51
  3156  	X_SetInputFocus                           = 42
  3157  	X_SetModifierMapping                      = 118
  3158  	X_SetPointerMapping                       = 116
  3159  	X_SetScreenSaver                          = 107
  3160  	X_SetSelectionOwner                       = 22
  3161  	X_StoreColors                             = 89
  3162  	X_StoreNamedColor                         = 90
  3163  	X_TCP_PORT                                = 6000
  3164  	X_TranslateCoords                         = 40
  3165  	X_UngrabButton                            = 29
  3166  	X_UngrabKey                               = 34
  3167  	X_UngrabKeyboard                          = 32
  3168  	X_UngrabPointer                           = 27
  3169  	X_UngrabServer                            = 37
  3170  	X_UninstallColormap                       = 82
  3171  	X_UnmapSubwindows                         = 11
  3172  	X_UnmapWindow                             = 10
  3173  	X_WarpPointer                             = 41
  3174  	XlibDisplayClosing                        = 2
  3175  	XlibDisplayDfltRMDB                       = 128
  3176  	XlibDisplayIOError                        = 1
  3177  	XlibDisplayNoXkb                          = 4
  3178  	XlibDisplayPrivSync                       = 8
  3179  	XlibDisplayProcConni                      = 16
  3180  	XlibDisplayReadEvents                     = 32
  3181  	XlibDisplayReply                          = 32
  3182  	XlibDisplayWriting                        = 64
  3183  	XlibSpecificationRelease                  = 6
  3184  	YNegative                                 = 0x0020
  3185  	YSorted                                   = 1
  3186  	YValue                                    = 0x0002
  3187  	YXBanded                                  = 3
  3188  	YXSorted                                  = 2
  3189  	ZLNSPERBATCH                              = 1024
  3190  	ZPixmap                                   = 2
  3191  	ZRCTSPERBATCH                             = 256
  3192  	ZoomState                                 = 2
  3193  	X_ALLOCA_H_                               = 0
  3194  	X_ANSI_STDDEF_H                           = 0
  3195  	X_ARM_ARCH_H                              = 0
  3196  	X_ARM_MACHTYPES_H_                        = 0
  3197  	X_ARM_SIGNAL_                             = 1
  3198  	X_ARM__ENDIAN_H_                          = 0
  3199  	X_BLKCNT_T                                = 0
  3200  	X_BLKSIZE_T                               = 0
  3201  	X_BSD_ARM__TYPES_H_                       = 0
  3202  	X_BSD_MACHINE_ENDIAN_H_                   = 0
  3203  	X_BSD_MACHINE_SIGNAL_H_                   = 0
  3204  	X_BSD_MACHINE_TYPES_H_                    = 0
  3205  	X_BSD_MACHINE__MCONTEXT_H_                = 0
  3206  	X_BSD_MACHINE__TYPES_H_                   = 0
  3207  	X_BSD_PTRDIFF_T_                          = 0
  3208  	X_CADDR_T                                 = 0
  3209  	X_CDEFS_H_                                = 0
  3210  	X_CLOCK_T                                 = 0
  3211  	X_CT_RUNE_T                               = 0
  3212  	X_DARWIN_FEATURE_64_BIT_INODE             = 1
  3213  	X_DARWIN_FEATURE_ONLY_64_BIT_INODE        = 1
  3214  	X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE    = 1
  3215  	X_DARWIN_FEATURE_ONLY_VERS_1050           = 1
  3216  	X_DARWIN_FEATURE_UNIX_CONFORMANCE         = 3
  3217  	X_DEV_T                                   = 0
  3218  	X_ERRNO_T                                 = 0
  3219  	X_FD_SET                                  = 0
  3220  	X_FILE_OFFSET_BITS                        = 64
  3221  	X_FORTIFY_SOURCE                          = 2
  3222  	X_FSBLKCNT_T                              = 0
  3223  	X_FSFILCNT_T                              = 0
  3224  	X_GCC_MAX_ALIGN_T                         = 0
  3225  	X_GCC_PTRDIFF_T                           = 0
  3226  	X_GCC_WCHAR_T                             = 0
  3227  	X_GCC_WRAP_STDINT_H                       = 0
  3228  	X_GID_T                                   = 0
  3229  	X_ID_T                                    = 0
  3230  	X_INO64_T                                 = 0
  3231  	X_INO_T                                   = 0
  3232  	X_INT16_T                                 = 0
  3233  	X_INT32_T                                 = 0
  3234  	X_INT64_T                                 = 0
  3235  	X_INT8_T                                  = 0
  3236  	X_INTMAX_T                                = 0
  3237  	X_INTPTR_T                                = 0
  3238  	X_IN_ADDR_T                               = 0
  3239  	X_IN_PORT_T                               = 0
  3240  	X_KEY_T                                   = 0
  3241  	X_LP64                                    = 1
  3242  	X_MACHTYPES_H_                            = 0
  3243  	X_MACH_ARM__STRUCTS_H_                    = 0
  3244  	X_MACH_MACHINE__STRUCTS_H_                = 0
  3245  	X_MALLOC_UNDERSCORE_MALLOC_H_             = 0
  3246  	X_MCONTEXT_T                              = 0
  3247  	X_MODE_T                                  = 0
  3248  	X_NLINK_T                                 = 0
  3249  	X_Nonnull                                 = 0
  3250  	X_Null_unspecified                        = 0
  3251  	X_Nullable                                = 0
  3252  	X_OFF_T                                   = 0
  3253  	X_OS_OSBYTEORDERARM_H                     = 0
  3254  	X_OS__OSBYTEORDER_H                       = 0
  3255  	X_PID_T                                   = 0
  3256  	X_PTHREAD_ATTR_T                          = 0
  3257  	X_PTHREAD_CONDATTR_T                      = 0
  3258  	X_PTHREAD_COND_T                          = 0
  3259  	X_PTHREAD_KEY_T                           = 0
  3260  	X_PTHREAD_MUTEXATTR_T                     = 0
  3261  	X_PTHREAD_MUTEX_T                         = 0
  3262  	X_PTHREAD_ONCE_T                          = 0
  3263  	X_PTHREAD_RWLOCKATTR_T                    = 0
  3264  	X_PTHREAD_RWLOCK_T                        = 0
  3265  	X_PTHREAD_T                               = 0
  3266  	X_PTRDIFF_T                               = 0
  3267  	X_PTRDIFF_T_                              = 0
  3268  	X_PTRDIFF_T_DECLARED                      = 0
  3269  	X_QUAD_HIGHWORD                           = 1
  3270  	X_QUAD_LOWWORD                            = 0
  3271  	X_RENDER_H_                               = 0
  3272  	X_RLIMIT_POSIX_FLAG                       = 0x1000
  3273  	X_RSIZE_T                                 = 0
  3274  	X_RUNE_T                                  = 0
  3275  	X_SECURE__COMMON_H_                       = 0
  3276  	X_SECURE__STRINGS_H_                      = 0
  3277  	X_SECURE__STRING_H_                       = 0
  3278  	X_SIGSET_T                                = 0
  3279  	X_SIZE_T                                  = 0
  3280  	X_SSIZE_T                                 = 0
  3281  	X_STDDEF_H                                = 0
  3282  	X_STDDEF_H_                               = 0
  3283  	X_STDINT_H_                               = 0
  3284  	X_STDLIB_H_                               = 0
  3285  	X_STRINGS_H_                              = 0
  3286  	X_STRING_H_                               = 0
  3287  	X_SUSECONDS_T                             = 0
  3288  	X_SYS_ERRNO_H_                            = 0
  3289  	X_SYS_RESOURCE_H_                         = 0
  3290  	X_SYS_SIGNAL_H_                           = 0
  3291  	X_SYS_TYPES_H_                            = 0
  3292  	X_SYS_WAIT_H_                             = 0
  3293  	X_SYS__ENDIAN_H_                          = 0
  3294  	X_SYS__PTHREAD_TYPES_H_                   = 0
  3295  	X_SYS__TYPES_H_                           = 0
  3296  	X_TIME_T                                  = 0
  3297  	X_T_PTRDIFF                               = 0
  3298  	X_T_PTRDIFF_                              = 0
  3299  	X_T_WCHAR                                 = 0
  3300  	X_T_WCHAR_                                = 0
  3301  	X_UID_T                                   = 0
  3302  	X_UINT16_T                                = 0
  3303  	X_UINT32_T                                = 0
  3304  	X_UINT64_T                                = 0
  3305  	X_UINT8_T                                 = 0
  3306  	X_UINTMAX_T                               = 0
  3307  	X_UINTPTR_T                               = 0
  3308  	X_USECONDS_T                              = 0
  3309  	X_USE_FORTIFY_LEVEL                       = 2
  3310  	X_U_CHAR                                  = 0
  3311  	X_U_INT                                   = 0
  3312  	X_U_INT16_T                               = 0
  3313  	X_U_INT32_T                               = 0
  3314  	X_U_INT64_T                               = 0
  3315  	X_U_INT8_T                                = 0
  3316  	X_U_LONG                                  = 0
  3317  	X_U_SHORT                                 = 0
  3318  	X_WCHAR_T                                 = 0
  3319  	X_WCHAR_T_                                = 0
  3320  	X_WCHAR_T_DECLARED                        = 0
  3321  	X_WCHAR_T_DEFINED                         = 0
  3322  	X_WCHAR_T_DEFINED_                        = 0
  3323  	X_WCHAR_T_H                               = 0
  3324  	X_WSTOPPED                                = 0177
  3325  	X_X11_XLIBINT_H_                          = 1
  3326  	X_X11_XLIB_H_                             = 0
  3327  	X_X11_XUTIL_H_                            = 0
  3328  	X_XDEFS_H                                 = 0
  3329  	X_XFUNCPROTOBEGIN                         = 0
  3330  	X_XFUNCPROTOEND                           = 0
  3331  	X_XFUNCPROTO_H_                           = 0
  3332  	X_XFUNCS_H_                               = 0
  3333  	X_XFUNCS_H_INCLUDED_STRING_H              = 0
  3334  	X_XLIBCONF_H_                             = 0
  3335  	X_XOSDEFS_H_                              = 0
  3336  	X_XRENDERINT_H_                           = 0
  3337  	X_XRENDERP_H_                             = 0
  3338  	X_XRENDER_H_                              = 0
  3339  	X_XTYPEDEF_ATOM                           = 0
  3340  	X_XTYPEDEF_CLIENTPTR                      = 0
  3341  	X_XTYPEDEF_FONT                           = 0
  3342  	X_XTYPEDEF_FONTPTR                        = 0
  3343  	X_XTYPEDEF_MASK                           = 0
  3344  	X_XTYPEDEF_POINTER                        = 0
  3345  	X_XTYPEDEF_XID                            = 0
  3346  	X_X_NONSTRING                             = 0
  3347  	X_X_NOTSAN                                = 0
  3348  	Sz_xAllocColorCellsReply                  = 32
  3349  	Sz_xAllocColorCellsReq                    = 12
  3350  	Sz_xAllocColorPlanesReply                 = 32
  3351  	Sz_xAllocColorPlanesReq                   = 16
  3352  	Sz_xAllocColorReply                       = 32
  3353  	Sz_xAllocColorReq                         = 16
  3354  	Sz_xAllocNamedColorReply                  = 32
  3355  	Sz_xAllocNamedColorReq                    = 12
  3356  	Sz_xAllowEventsReq                        = 8
  3357  	Sz_xAnimCursorElt                         = 8
  3358  	Sz_xArc                                   = 12
  3359  	Sz_xBellReq                               = 4
  3360  	Sz_xChangeActivePointerGrabReq            = 16
  3361  	Sz_xChangeGCReq                           = 12
  3362  	Sz_xChangeHostsReq                        = 8
  3363  	Sz_xChangeKeyboardControlReq              = 8
  3364  	Sz_xChangeKeyboardMappingReq              = 8
  3365  	Sz_xChangeModeReq                         = 4
  3366  	Sz_xChangePointerControlReq               = 12
  3367  	Sz_xChangePropertyReq                     = 24
  3368  	Sz_xChangeSaveSetReq                      = 8
  3369  	Sz_xChangeWindowAttributesReq             = 12
  3370  	Sz_xCharInfo                              = 12
  3371  	Sz_xCirculateWindowReq                    = 8
  3372  	Sz_xClearAreaReq                          = 16
  3373  	Sz_xColorItem                             = 12
  3374  	Sz_xConfigureWindowReq                    = 12
  3375  	Sz_xConnClientPrefix                      = 12
  3376  	Sz_xConnSetup                             = 32
  3377  	Sz_xConnSetupPrefix                       = 8
  3378  	Sz_xConvertSelectionReq                   = 24
  3379  	Sz_xCopyAreaReq                           = 28
  3380  	Sz_xCopyColormapAndFreeReq                = 12
  3381  	Sz_xCopyGCReq                             = 16
  3382  	Sz_xCopyPlaneReq                          = 32
  3383  	Sz_xCreateColormapReq                     = 16
  3384  	Sz_xCreateCursorReq                       = 32
  3385  	Sz_xCreateGCReq                           = 16
  3386  	Sz_xCreateGlyphCursorReq                  = 32
  3387  	Sz_xCreatePixmapReq                       = 16
  3388  	Sz_xCreateWindowReq                       = 32
  3389  	Sz_xDeletePropertyReq                     = 12
  3390  	Sz_xDepth                                 = 8
  3391  	Sz_xDirectFormat                          = 16
  3392  	Sz_xError                                 = 32
  3393  	Sz_xEvent                                 = 32
  3394  	Sz_xFillPolyReq                           = 16
  3395  	Sz_xFontProp                              = 8
  3396  	Sz_xForceScreenSaverReq                   = 4
  3397  	Sz_xFreeColorsReq                         = 12
  3398  	Sz_xGenericReply                          = 32
  3399  	Sz_xGetAtomNameReply                      = 32
  3400  	Sz_xGetFontPathReply                      = 32
  3401  	Sz_xGetGeometryReply                      = 32
  3402  	Sz_xGetImageReply                         = 32
  3403  	Sz_xGetImageReq                           = 20
  3404  	Sz_xGetInputFocusReply                    = 32
  3405  	Sz_xGetKeyboardControlReply               = 52
  3406  	Sz_xGetKeyboardMappingReply               = 32
  3407  	Sz_xGetKeyboardMappingReq                 = 8
  3408  	Sz_xGetModifierMappingReply               = 32
  3409  	Sz_xGetMotionEventsReply                  = 32
  3410  	Sz_xGetMotionEventsReq                    = 16
  3411  	Sz_xGetPointerControlReply                = 32
  3412  	Sz_xGetPointerMappingReply                = 32
  3413  	Sz_xGetPropertyReply                      = 32
  3414  	Sz_xGetPropertyReq                        = 24
  3415  	Sz_xGetScreenSaverReply                   = 32
  3416  	Sz_xGetSelectionOwnerReply                = 32
  3417  	Sz_xGetWindowAttributesReply              = 44
  3418  	Sz_xGlyphElt                              = 8
  3419  	Sz_xGlyphInfo                             = 12
  3420  	Sz_xGrabButtonReq                         = 24
  3421  	Sz_xGrabKeyReq                            = 16
  3422  	Sz_xGrabKeyboardReply                     = 32
  3423  	Sz_xGrabKeyboardReq                       = 16
  3424  	Sz_xGrabPointerReply                      = 32
  3425  	Sz_xGrabPointerReq                        = 24
  3426  	Sz_xHostEntry                             = 4
  3427  	Sz_xImageText16Req                        = 16
  3428  	Sz_xImageText8Req                         = 16
  3429  	Sz_xImageTextReq                          = 16
  3430  	Sz_xIndexValue                            = 12
  3431  	Sz_xInternAtomReply                       = 32
  3432  	Sz_xInternAtomReq                         = 8
  3433  	Sz_xKeymapEvent                           = 32
  3434  	Sz_xLineFixed                             = 16
  3435  	Sz_xListExtensionsReply                   = 32
  3436  	Sz_xListFontsReply                        = 32
  3437  	Sz_xListFontsReq                          = 8
  3438  	Sz_xListFontsWithInfoReply                = 60
  3439  	Sz_xListFontsWithInfoReq                  = 8
  3440  	Sz_xListHostsReply                        = 32
  3441  	Sz_xListHostsReq                          = 4
  3442  	Sz_xListInstalledColormapsReply           = 32
  3443  	Sz_xListPropertiesReply                   = 32
  3444  	Sz_xLookupColorReply                      = 32
  3445  	Sz_xLookupColorReq                        = 12
  3446  	Sz_xOpenFontReq                           = 12
  3447  	Sz_xPictDepth                             = 8
  3448  	Sz_xPictFormInfo                          = 28
  3449  	Sz_xPictScreen                            = 8
  3450  	Sz_xPictVisual                            = 8
  3451  	Sz_xPixmapFormat                          = 8
  3452  	Sz_xPoint                                 = 4
  3453  	Sz_xPointFixed                            = 8
  3454  	Sz_xPolyArcReq                            = 12
  3455  	Sz_xPolyFillArcReq                        = 12
  3456  	Sz_xPolyFillRectangleReq                  = 12
  3457  	Sz_xPolyLineReq                           = 12
  3458  	Sz_xPolyPointReq                          = 12
  3459  	Sz_xPolyRectangleReq                      = 12
  3460  	Sz_xPolySegmentReq                        = 12
  3461  	Sz_xPolyText16Req                         = 16
  3462  	Sz_xPolyText8Req                          = 16
  3463  	Sz_xPolyTextReq                           = 16
  3464  	Sz_xPropIconSize                          = 24
  3465  	Sz_xPutImageReq                           = 24
  3466  	Sz_xQueryBestSizeReply                    = 32
  3467  	Sz_xQueryBestSizeReq                      = 12
  3468  	Sz_xQueryColorsReply                      = 32
  3469  	Sz_xQueryColorsReq                        = 8
  3470  	Sz_xQueryExtensionReply                   = 32
  3471  	Sz_xQueryExtensionReq                     = 8
  3472  	Sz_xQueryFontReply                        = 60
  3473  	Sz_xQueryKeymapReply                      = 40
  3474  	Sz_xQueryPointerReply                     = 32
  3475  	Sz_xQueryTextExtentsReply                 = 32
  3476  	Sz_xQueryTextExtentsReq                   = 8
  3477  	Sz_xQueryTreeReply                        = 32
  3478  	Sz_xRecolorCursorReq                      = 20
  3479  	Sz_xRectangle                             = 8
  3480  	Sz_xRenderAddGlyphsReq                    = 12
  3481  	Sz_xRenderAddTrapsReq                     = 12
  3482  	Sz_xRenderChangePictureReq                = 12
  3483  	Sz_xRenderColor                           = 8
  3484  	Sz_xRenderCompositeGlyphs16Req            = 28
  3485  	Sz_xRenderCompositeGlyphs32Req            = 28
  3486  	Sz_xRenderCompositeGlyphs8Req             = 28
  3487  	Sz_xRenderCompositeReq                    = 36
  3488  	Sz_xRenderCreateAnimCursorReq             = 8
  3489  	Sz_xRenderCreateConicalGradientReq        = 24
  3490  	Sz_xRenderCreateCursorReq                 = 16
  3491  	Sz_xRenderCreateGlyphSetReq               = 12
  3492  	Sz_xRenderCreateLinearGradientReq         = 28
  3493  	Sz_xRenderCreatePictureReq                = 20
  3494  	Sz_xRenderCreateRadialGradientReq         = 36
  3495  	Sz_xRenderCreateSolidFillReq              = 16
  3496  	Sz_xRenderFillRectanglesReq               = 20
  3497  	Sz_xRenderFreeGlyphSetReq                 = 8
  3498  	Sz_xRenderFreeGlyphsReq                   = 8
  3499  	Sz_xRenderFreePictureReq                  = 8
  3500  	Sz_xRenderQueryFiltersReply               = 32
  3501  	Sz_xRenderQueryFiltersReq                 = 8
  3502  	Sz_xRenderQueryPictFormatsReply           = 32
  3503  	Sz_xRenderQueryPictFormatsReq             = 4
  3504  	Sz_xRenderQueryPictIndexValuesReply       = 32
  3505  	Sz_xRenderQueryPictIndexValuesReq         = 8
  3506  	Sz_xRenderQueryVersionReply               = 32
  3507  	Sz_xRenderQueryVersionReq                 = 12
  3508  	Sz_xRenderReferenceGlyphSetReq            = 24
  3509  	Sz_xRenderScaleReq                        = 32
  3510  	Sz_xRenderSetPictureClipRectanglesReq     = 12
  3511  	Sz_xRenderSetPictureFilterReq             = 12
  3512  	Sz_xRenderSetPictureTransformReq          = 44
  3513  	Sz_xRenderTransform                       = 36
  3514  	Sz_xRenderTrapezoidsReq                   = 24
  3515  	Sz_xRenderTriFanReq                       = 24
  3516  	Sz_xRenderTriStripReq                     = 24
  3517  	Sz_xRenderTrianglesReq                    = 24
  3518  	Sz_xReparentWindowReq                     = 16
  3519  	Sz_xReply                                 = 32
  3520  	Sz_xReq                                   = 4
  3521  	Sz_xResourceReq                           = 8
  3522  	Sz_xRotatePropertiesReq                   = 12
  3523  	Sz_xSegment                               = 8
  3524  	Sz_xSendEventReq                          = 44
  3525  	Sz_xSetAccessControlReq                   = 4
  3526  	Sz_xSetClipRectanglesReq                  = 12
  3527  	Sz_xSetCloseDownModeReq                   = 4
  3528  	Sz_xSetDashesReq                          = 12
  3529  	Sz_xSetFontPathReq                        = 8
  3530  	Sz_xSetInputFocusReq                      = 12
  3531  	Sz_xSetMappingReply                       = 32
  3532  	Sz_xSetModifierMappingReply               = 32
  3533  	Sz_xSetModifierMappingReq                 = 4
  3534  	Sz_xSetPointerMappingReply                = 32
  3535  	Sz_xSetPointerMappingReq                  = 4
  3536  	Sz_xSetScreenSaverReq                     = 12
  3537  	Sz_xSetSelectionOwnerReq                  = 16
  3538  	Sz_xSpanFix                               = 12
  3539  	Sz_xStoreColorsReq                        = 8
  3540  	Sz_xStoreNamedColorReq                    = 16
  3541  	Sz_xTextElt                               = 2
  3542  	Sz_xTimecoord                             = 8
  3543  	Sz_xTranslateCoordsReply                  = 32
  3544  	Sz_xTranslateCoordsReq                    = 16
  3545  	Sz_xTrap                                  = 24
  3546  	Sz_xTrapezoid                             = 40
  3547  	Sz_xTriangle                              = 24
  3548  	Sz_xUngrabButtonReq                       = 12
  3549  	Sz_xUngrabKeyReq                          = 12
  3550  	Sz_xVisualType                            = 24
  3551  	Sz_xWarpPointerReq                        = 24
  3552  	Sz_xWindowRoot                            = 40
  3553  	Sz_xrgb                                   = 8
  3554  	XFalse                                    = 0
  3555  	XTrue                                     = 1
  3556  	Size                                      = 2068
  3557  	ARG_MAX                                   = 1048576
  3558  	BC_BASE_MAX                               = 99
  3559  	BC_DIM_MAX                                = 2048
  3560  	BC_SCALE_MAX                              = 99
  3561  	BC_STRING_MAX                             = 1000
  3562  	CHARCLASS_NAME_MAX                        = 14
  3563  	CHAR_BIT                                  = 8
  3564  	CHAR_MAX                                  = 127
  3565  	CHAR_MIN                                  = -128
  3566  	CHILD_MAX                                 = 266
  3567  	CLK_TCK                                   = 100
  3568  	COLL_WEIGHTS_MAX                          = 2
  3569  	EQUIV_CLASS_MAX                           = 2
  3570  	EXPR_NEST_MAX                             = 32
  3571  	GID_MAX                                   = 2147483647
  3572  	INT_MAX                                   = 2147483647
  3573  	INT_MIN                                   = -2147483648
  3574  	IOV_MAX                                   = 1024
  3575  	LINE_MAX                                  = 2048
  3576  	LINK_MAX                                  = 32767
  3577  	LLONG_MAX                                 = 9223372036854775807
  3578  	LLONG_MIN                                 = -9223372036854775808
  3579  	LONG_BIT                                  = 64
  3580  	LONG_LONG_MAX                             = 9223372036854775807
  3581  	LONG_LONG_MIN                             = -9223372036854775808
  3582  	LONG_MAX                                  = 9223372036854775807
  3583  	LONG_MIN                                  = -9223372036854775808
  3584  	MAX_CANON                                 = 1024
  3585  	MAX_INPUT                                 = 1024
  3586  	MB_LEN_MAX                                = 6
  3587  	NAME_MAX                                  = 255
  3588  	NGROUPS_MAX                               = 16
  3589  	NL_ARGMAX                                 = 9
  3590  	NL_LANGMAX                                = 14
  3591  	NL_MSGMAX                                 = 32767
  3592  	NL_NMAX                                   = 1
  3593  	NL_SETMAX                                 = 255
  3594  	NL_TEXTMAX                                = 2048
  3595  	NZERO                                     = 20
  3596  	OFF_MAX                                   = 9223372036854775807
  3597  	OFF_MIN                                   = -9223372036854775808
  3598  	OPEN_MAX                                  = 10240
  3599  	PASS_MAX                                  = 128
  3600  	PATH_MAX                                  = 1024
  3601  	PIPE_BUF                                  = 512
  3602  	PTHREAD_DESTRUCTOR_ITERATIONS             = 4
  3603  	PTHREAD_KEYS_MAX                          = 512
  3604  	PTHREAD_STACK_MIN                         = 16384
  3605  	QUAD_MAX                                  = 9223372036854775807
  3606  	QUAD_MIN                                  = -9223372036854775808
  3607  	RE_DUP_MAX                                = 255
  3608  	SCHAR_MAX                                 = 127
  3609  	SCHAR_MIN                                 = -128
  3610  	SHRT_MAX                                  = 32767
  3611  	SHRT_MIN                                  = -32768
  3612  	SIZE_T_MAX                                = 18446744073709551615
  3613  	SSIZE_MAX                                 = 9223372036854775807
  3614  	UCHAR_MAX                                 = 255
  3615  	UID_MAX                                   = 2147483647
  3616  	UINT_MAX                                  = 4294967295
  3617  	ULLONG_MAX                                = 18446744073709551615
  3618  	ULONG_LONG_MAX                            = 18446744073709551615
  3619  	ULONG_MAX                                 = 18446744073709551615
  3620  	UQUAD_MAX                                 = 18446744073709551615
  3621  	USHRT_MAX                                 = 65535
  3622  	WORD_BIT                                  = 32
  3623  	X_ARM_LIMITS_H_                           = 0
  3624  	X_ARM__LIMITS_H_                          = 0
  3625  	X_BSD_MACHINE_LIMITS_H_                   = 0
  3626  	X_GCC_LIMITS_H_                           = 0
  3627  	X_LIMITS_H_                               = 0
  3628  	X_LIMITS_H___                             = 0
  3629  	X_POSIX2_BC_BASE_MAX                      = 99
  3630  	X_POSIX2_BC_DIM_MAX                       = 2048
  3631  	X_POSIX2_BC_SCALE_MAX                     = 99
  3632  	X_POSIX2_BC_STRING_MAX                    = 1000
  3633  	X_POSIX2_CHARCLASS_NAME_MAX               = 14
  3634  	X_POSIX2_COLL_WEIGHTS_MAX                 = 2
  3635  	X_POSIX2_EQUIV_CLASS_MAX                  = 2
  3636  	X_POSIX2_EXPR_NEST_MAX                    = 32
  3637  	X_POSIX2_LINE_MAX                         = 2048
  3638  	X_POSIX2_RE_DUP_MAX                       = 255
  3639  	X_POSIX_AIO_LISTIO_MAX                    = 2
  3640  	X_POSIX_AIO_MAX                           = 1
  3641  	X_POSIX_ARG_MAX                           = 4096
  3642  	X_POSIX_CHILD_MAX                         = 25
  3643  	X_POSIX_CLOCKRES_MIN                      = 20000000
  3644  	X_POSIX_DELAYTIMER_MAX                    = 32
  3645  	X_POSIX_HOST_NAME_MAX                     = 255
  3646  	X_POSIX_LINK_MAX                          = 8
  3647  	X_POSIX_LOGIN_NAME_MAX                    = 9
  3648  	X_POSIX_MAX_CANON                         = 255
  3649  	X_POSIX_MAX_INPUT                         = 255
  3650  	X_POSIX_MQ_OPEN_MAX                       = 8
  3651  	X_POSIX_MQ_PRIO_MAX                       = 32
  3652  	X_POSIX_NAME_MAX                          = 14
  3653  	X_POSIX_NGROUPS_MAX                       = 8
  3654  	X_POSIX_OPEN_MAX                          = 20
  3655  	X_POSIX_PATH_MAX                          = 256
  3656  	X_POSIX_PIPE_BUF                          = 512
  3657  	X_POSIX_RE_DUP_MAX                        = 255
  3658  	X_POSIX_RTSIG_MAX                         = 8
  3659  	X_POSIX_SEM_NSEMS_MAX                     = 256
  3660  	X_POSIX_SEM_VALUE_MAX                     = 32767
  3661  	X_POSIX_SIGQUEUE_MAX                      = 32
  3662  	X_POSIX_SSIZE_MAX                         = 32767
  3663  	X_POSIX_SS_REPL_MAX                       = 4
  3664  	X_POSIX_STREAM_MAX                        = 8
  3665  	X_POSIX_SYMLINK_MAX                       = 255
  3666  	X_POSIX_SYMLOOP_MAX                       = 8
  3667  	X_POSIX_THREAD_DESTRUCTOR_ITERATIONS      = 4
  3668  	X_POSIX_THREAD_KEYS_MAX                   = 128
  3669  	X_POSIX_THREAD_THREADS_MAX                = 64
  3670  	X_POSIX_TIMER_MAX                         = 32
  3671  	X_POSIX_TRACE_EVENT_NAME_MAX              = 30
  3672  	X_POSIX_TRACE_NAME_MAX                    = 8
  3673  	X_POSIX_TRACE_SYS_MAX                     = 8
  3674  	X_POSIX_TRACE_USER_EVENT_MAX              = 32
  3675  	X_POSIX_TTY_NAME_MAX                      = 9
  3676  	X_POSIX_TZNAME_MAX                        = 6
  3677  	X_SYS_SYSLIMITS_H_                        = 0
  3678  	X_XOPEN_IOV_MAX                           = 16
  3679  	X_XOPEN_NAME_MAX                          = 255
  3680  	X_XOPEN_PATH_MAX                          = 1024
  3681  	FALSE                                     = 0
  3682  	MAXSHORT                                  = 32767
  3683  	MINSHORT                                  = -32767
  3684  	NUMPTSTOBUFFER                            = 200
  3685  	TRUE                                      = 1
  3686  	X_X11_XREGION_H_                          = 0
  3687  	REQUIRED_DEPTHS                           = 2155872393
  3688  )
  3689  
  3690  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
  3691  //
  3692  // @APPLE_LICENSE_HEADER_START@
  3693  //
  3694  // This file contains Original Code and/or Modifications of Original Code
  3695  // as defined in and that are subject to the Apple Public Source License
  3696  // Version 2.0 (the 'License'). You may not use this file except in
  3697  // compliance with the License. Please obtain a copy of the License at
  3698  // http://www.opensource.apple.com/apsl/ and read it before using this
  3699  // file.
  3700  //
  3701  // The Original Code and all software distributed under the License are
  3702  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3703  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3704  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3705  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3706  // Please see the License for the specific language governing rights and
  3707  // limitations under the License.
  3708  //
  3709  // @APPLE_LICENSE_HEADER_END@
  3710  // -
  3711  // Copyright (c) 1990, 1993
  3712  //	The Regents of the University of California.  All rights reserved.
  3713  //
  3714  // Redistribution and use in source and binary forms, with or without
  3715  // modification, are permitted provided that the following conditions
  3716  // are met:
  3717  // 1. Redistributions of source code must retain the above copyright
  3718  //    notice, this list of conditions and the following disclaimer.
  3719  // 2. Redistributions in binary form must reproduce the above copyright
  3720  //    notice, this list of conditions and the following disclaimer in the
  3721  //    documentation and/or other materials provided with the distribution.
  3722  // 3. All advertising materials mentioning features or use of this software
  3723  //    must display the following acknowledgement:
  3724  //	This product includes software developed by the University of
  3725  //	California, Berkeley and its contributors.
  3726  // 4. Neither the name of the University nor the names of its contributors
  3727  //    may be used to endorse or promote products derived from this software
  3728  //    without specific prior written permission.
  3729  //
  3730  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3731  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3732  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3733  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3734  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3735  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3736  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3737  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3738  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3739  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3740  // SUCH DAMAGE.
  3741  //
  3742  //	@(#)string.h	8.1 (Berkeley) 6/2/93
  3743  
  3744  // Security checking functions.
  3745  // Copyright (c) 2017 Apple Inc. All rights reserved.
  3746  //
  3747  // @APPLE_LICENSE_HEADER_START@
  3748  //
  3749  // This file contains Original Code and/or Modifications of Original Code
  3750  // as defined in and that are subject to the Apple Public Source License
  3751  // Version 2.0 (the 'License'). You may not use this file except in
  3752  // compliance with the License. Please obtain a copy of the License at
  3753  // http://www.opensource.apple.com/apsl/ and read it before using this
  3754  // file.
  3755  //
  3756  // The Original Code and all software distributed under the License are
  3757  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3758  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3759  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3760  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3761  // Please see the License for the specific language governing rights and
  3762  // limitations under the License.
  3763  //
  3764  // @APPLE_LICENSE_HEADER_END@
  3765  
  3766  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  3767  //
  3768  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3769  //
  3770  // This file contains Original Code and/or Modifications of Original Code
  3771  // as defined in and that are subject to the Apple Public Source License
  3772  // Version 2.0 (the 'License'). You may not use this file except in
  3773  // compliance with the License. The rights granted to you under the License
  3774  // may not be used to create, or enable the creation or redistribution of,
  3775  // unlawful or unlicensed copies of an Apple operating system, or to
  3776  // circumvent, violate, or enable the circumvention or violation of, any
  3777  // terms of an Apple operating system software license agreement.
  3778  //
  3779  // Please obtain a copy of the License at
  3780  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3781  //
  3782  // The Original Code and all software distributed under the License are
  3783  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3784  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3785  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3786  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3787  // Please see the License for the specific language governing rights and
  3788  // limitations under the License.
  3789  //
  3790  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3791  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3792  // Copyright (c) 1991, 1993
  3793  //	The Regents of the University of California.  All rights reserved.
  3794  //
  3795  // This code is derived from software contributed to Berkeley by
  3796  // Berkeley Software Design, Inc.
  3797  //
  3798  // Redistribution and use in source and binary forms, with or without
  3799  // modification, are permitted provided that the following conditions
  3800  // are met:
  3801  // 1. Redistributions of source code must retain the above copyright
  3802  //    notice, this list of conditions and the following disclaimer.
  3803  // 2. Redistributions in binary form must reproduce the above copyright
  3804  //    notice, this list of conditions and the following disclaimer in the
  3805  //    documentation and/or other materials provided with the distribution.
  3806  // 3. All advertising materials mentioning features or use of this software
  3807  //    must display the following acknowledgement:
  3808  //	This product includes software developed by the University of
  3809  //	California, Berkeley and its contributors.
  3810  // 4. Neither the name of the University nor the names of its contributors
  3811  //    may be used to endorse or promote products derived from this software
  3812  //    without specific prior written permission.
  3813  //
  3814  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3815  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3816  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3817  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3818  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3819  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3820  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3821  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3822  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3823  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3824  // SUCH DAMAGE.
  3825  //
  3826  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  3827  
  3828  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3829  //
  3830  // @APPLE_LICENSE_HEADER_START@
  3831  //
  3832  // This file contains Original Code and/or Modifications of Original Code
  3833  // as defined in and that are subject to the Apple Public Source License
  3834  // Version 2.0 (the 'License'). You may not use this file except in
  3835  // compliance with the License. Please obtain a copy of the License at
  3836  // http://www.opensource.apple.com/apsl/ and read it before using this
  3837  // file.
  3838  //
  3839  // The Original Code and all software distributed under the License are
  3840  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3841  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3842  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3843  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3844  // Please see the License for the specific language governing rights and
  3845  // limitations under the License.
  3846  //
  3847  // @APPLE_LICENSE_HEADER_END@
  3848  
  3849  // Copyright (c) 2007, 2008 Apple Inc. All rights reserved.
  3850  //
  3851  // @APPLE_LICENSE_HEADER_START@
  3852  //
  3853  // This file contains Original Code and/or Modifications of Original Code
  3854  // as defined in and that are subject to the Apple Public Source License
  3855  // Version 2.0 (the 'License'). You may not use this file except in
  3856  // compliance with the License. Please obtain a copy of the License at
  3857  // http://www.opensource.apple.com/apsl/ and read it before using this
  3858  // file.
  3859  //
  3860  // The Original Code and all software distributed under the License are
  3861  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3862  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3863  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3864  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3865  // Please see the License for the specific language governing rights and
  3866  // limitations under the License.
  3867  //
  3868  // @APPLE_LICENSE_HEADER_END@
  3869  
  3870  // bcopy and bzero
  3871  
  3872  // Removed in Issue 7
  3873  
  3874  // void	bcopy(const void *src, void *dst, size_t len)
  3875  
  3876  // void	bzero(void *s, size_t n)
  3877  
  3878  // Security checking functions.
  3879  // Copyright (c) 2007,2017 Apple Inc. All rights reserved.
  3880  //
  3881  // @APPLE_LICENSE_HEADER_START@
  3882  //
  3883  // This file contains Original Code and/or Modifications of Original Code
  3884  // as defined in and that are subject to the Apple Public Source License
  3885  // Version 2.0 (the 'License'). You may not use this file except in
  3886  // compliance with the License. Please obtain a copy of the License at
  3887  // http://www.opensource.apple.com/apsl/ and read it before using this
  3888  // file.
  3889  //
  3890  // The Original Code and all software distributed under the License are
  3891  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3892  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3893  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3894  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3895  // Please see the License for the specific language governing rights and
  3896  // limitations under the License.
  3897  //
  3898  // @APPLE_LICENSE_HEADER_END@
  3899  
  3900  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  3901  //
  3902  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  3903  //
  3904  // This file contains Original Code and/or Modifications of Original Code
  3905  // as defined in and that are subject to the Apple Public Source License
  3906  // Version 2.0 (the 'License'). You may not use this file except in
  3907  // compliance with the License. The rights granted to you under the License
  3908  // may not be used to create, or enable the creation or redistribution of,
  3909  // unlawful or unlicensed copies of an Apple operating system, or to
  3910  // circumvent, violate, or enable the circumvention or violation of, any
  3911  // terms of an Apple operating system software license agreement.
  3912  //
  3913  // Please obtain a copy of the License at
  3914  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  3915  //
  3916  // The Original Code and all software distributed under the License are
  3917  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3918  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3919  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3920  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3921  // Please see the License for the specific language governing rights and
  3922  // limitations under the License.
  3923  //
  3924  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  3925  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  3926  // Copyright (c) 1991, 1993
  3927  //	The Regents of the University of California.  All rights reserved.
  3928  //
  3929  // This code is derived from software contributed to Berkeley by
  3930  // Berkeley Software Design, Inc.
  3931  //
  3932  // Redistribution and use in source and binary forms, with or without
  3933  // modification, are permitted provided that the following conditions
  3934  // are met:
  3935  // 1. Redistributions of source code must retain the above copyright
  3936  //    notice, this list of conditions and the following disclaimer.
  3937  // 2. Redistributions in binary form must reproduce the above copyright
  3938  //    notice, this list of conditions and the following disclaimer in the
  3939  //    documentation and/or other materials provided with the distribution.
  3940  // 3. All advertising materials mentioning features or use of this software
  3941  //    must display the following acknowledgement:
  3942  //	This product includes software developed by the University of
  3943  //	California, Berkeley and its contributors.
  3944  // 4. Neither the name of the University nor the names of its contributors
  3945  //    may be used to endorse or promote products derived from this software
  3946  //    without specific prior written permission.
  3947  //
  3948  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3949  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3950  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3951  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3952  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3953  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3954  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3955  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3956  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3957  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3958  // SUCH DAMAGE.
  3959  //
  3960  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  3961  
  3962  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  3963  //
  3964  // @APPLE_LICENSE_HEADER_START@
  3965  //
  3966  // This file contains Original Code and/or Modifications of Original Code
  3967  // as defined in and that are subject to the Apple Public Source License
  3968  // Version 2.0 (the 'License'). You may not use this file except in
  3969  // compliance with the License. Please obtain a copy of the License at
  3970  // http://www.opensource.apple.com/apsl/ and read it before using this
  3971  // file.
  3972  //
  3973  // The Original Code and all software distributed under the License are
  3974  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3975  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3976  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3977  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3978  // Please see the License for the specific language governing rights and
  3979  // limitations under the License.
  3980  //
  3981  // @APPLE_LICENSE_HEADER_END@
  3982  
  3983  // Copyright (c) 2007, 2008 Apple Inc. All rights reserved.
  3984  //
  3985  // @APPLE_LICENSE_HEADER_START@
  3986  //
  3987  // This file contains Original Code and/or Modifications of Original Code
  3988  // as defined in and that are subject to the Apple Public Source License
  3989  // Version 2.0 (the 'License'). You may not use this file except in
  3990  // compliance with the License. Please obtain a copy of the License at
  3991  // http://www.opensource.apple.com/apsl/ and read it before using this
  3992  // file.
  3993  //
  3994  // The Original Code and all software distributed under the License are
  3995  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  3996  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  3997  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  3998  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  3999  // Please see the License for the specific language governing rights and
  4000  // limitations under the License.
  4001  //
  4002  // @APPLE_LICENSE_HEADER_END@
  4003  
  4004  // <rdar://problem/12622659>
  4005  
  4006  // memccpy, memcpy, mempcpy, memmove, memset, strcpy, strlcpy, stpcpy,
  4007  //    strncpy, stpncpy, strcat, strlcat, and strncat
  4008  
  4009  // void *memcpy(void *dst, const void *src, size_t n)
  4010  
  4011  // void *memmove(void *dst, const void *src, size_t len)
  4012  
  4013  // void *memset(void *b, int c, size_t len)
  4014  
  4015  // char *strcpy(char *dst, const char *src)
  4016  
  4017  // char *stpcpy(char *dst, const char *src)
  4018  
  4019  // char *stpncpy(char *dst, const char *src, size_t n)
  4020  
  4021  // char *strncpy(char *dst, const char *src, size_t n)
  4022  
  4023  // char *strcat(char *s1, const char *s2)
  4024  
  4025  // char *strncat(char *s1, const char *s2, size_t n)
  4026  
  4027  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
  4028  //
  4029  // @APPLE_LICENSE_HEADER_START@
  4030  //
  4031  // This file contains Original Code and/or Modifications of Original Code
  4032  // as defined in and that are subject to the Apple Public Source License
  4033  // Version 2.0 (the 'License'). You may not use this file except in
  4034  // compliance with the License. Please obtain a copy of the License at
  4035  // http://www.opensource.apple.com/apsl/ and read it before using this
  4036  // file.
  4037  //
  4038  // The Original Code and all software distributed under the License are
  4039  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4040  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4041  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4042  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4043  // Please see the License for the specific language governing rights and
  4044  // limitations under the License.
  4045  //
  4046  // @APPLE_LICENSE_HEADER_END@
  4047  // -
  4048  // Copyright (c) 1990, 1993
  4049  //	The Regents of the University of California.  All rights reserved.
  4050  //
  4051  // Redistribution and use in source and binary forms, with or without
  4052  // modification, are permitted provided that the following conditions
  4053  // are met:
  4054  // 1. Redistributions of source code must retain the above copyright
  4055  //    notice, this list of conditions and the following disclaimer.
  4056  // 2. Redistributions in binary form must reproduce the above copyright
  4057  //    notice, this list of conditions and the following disclaimer in the
  4058  //    documentation and/or other materials provided with the distribution.
  4059  // 3. All advertising materials mentioning features or use of this software
  4060  //    must display the following acknowledgement:
  4061  //	This product includes software developed by the University of
  4062  //	California, Berkeley and its contributors.
  4063  // 4. Neither the name of the University nor the names of its contributors
  4064  //    may be used to endorse or promote products derived from this software
  4065  //    without specific prior written permission.
  4066  //
  4067  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4068  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4069  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4070  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4071  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4072  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4073  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4074  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4075  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4076  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4077  // SUCH DAMAGE.
  4078  //
  4079  //	@(#)strings.h	8.1 (Berkeley) 6/2/93
  4080  
  4081  // the new Xfuncs.h
  4082  
  4083  // the ANSI C way
  4084  
  4085  //
  4086  //  O/S-dependent (mis)feature macro definitions
  4087  //
  4088  // Copyright 1991, 1998  The Open Group
  4089  //
  4090  // Permission to use, copy, modify, distribute, and sell this software and its
  4091  // documentation for any purpose is hereby granted without fee, provided that
  4092  // the above copyright notice appear in all copies and that both that
  4093  // copyright notice and this permission notice appear in supporting
  4094  // documentation.
  4095  //
  4096  // The above copyright notice and this permission notice shall be included in
  4097  // all copies or substantial portions of the Software.
  4098  //
  4099  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  4100  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  4101  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  4102  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  4103  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  4104  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  4105  //
  4106  // Except as contained in this notice, the name of The Open Group shall not be
  4107  // used in advertising or otherwise to promote the sale, use or other dealings
  4108  // in this Software without prior written authorization from The Open Group.
  4109  //
  4110  
  4111  // Utek leaves kernel macros around in include files (bleah)
  4112  
  4113  // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved.
  4114  //
  4115  // @APPLE_LICENSE_HEADER_START@
  4116  //
  4117  // This file contains Original Code and/or Modifications of Original Code
  4118  // as defined in and that are subject to the Apple Public Source License
  4119  // Version 2.0 (the 'License'). You may not use this file except in
  4120  // compliance with the License. Please obtain a copy of the License at
  4121  // http://www.opensource.apple.com/apsl/ and read it before using this
  4122  // file.
  4123  //
  4124  // The Original Code and all software distributed under the License are
  4125  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4126  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4127  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4128  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4129  // Please see the License for the specific language governing rights and
  4130  // limitations under the License.
  4131  //
  4132  // @APPLE_LICENSE_HEADER_END@
  4133  // -
  4134  // Copyright (c) 1990, 1993
  4135  //	The Regents of the University of California.  All rights reserved.
  4136  //
  4137  // Redistribution and use in source and binary forms, with or without
  4138  // modification, are permitted provided that the following conditions
  4139  // are met:
  4140  // 1. Redistributions of source code must retain the above copyright
  4141  //    notice, this list of conditions and the following disclaimer.
  4142  // 2. Redistributions in binary form must reproduce the above copyright
  4143  //    notice, this list of conditions and the following disclaimer in the
  4144  //    documentation and/or other materials provided with the distribution.
  4145  // 3. All advertising materials mentioning features or use of this software
  4146  //    must display the following acknowledgement:
  4147  //	This product includes software developed by the University of
  4148  //	California, Berkeley and its contributors.
  4149  // 4. Neither the name of the University nor the names of its contributors
  4150  //    may be used to endorse or promote products derived from this software
  4151  //    without specific prior written permission.
  4152  //
  4153  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4154  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4155  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4156  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4157  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4158  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4159  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4160  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4161  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4162  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4163  // SUCH DAMAGE.
  4164  //
  4165  //	@(#)stdlib.h	8.5 (Berkeley) 5/19/95
  4166  
  4167  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  4168  //
  4169  // @APPLE_LICENSE_HEADER_START@
  4170  //
  4171  // This file contains Original Code and/or Modifications of Original Code
  4172  // as defined in and that are subject to the Apple Public Source License
  4173  // Version 2.0 (the 'License'). You may not use this file except in
  4174  // compliance with the License. Please obtain a copy of the License at
  4175  // http://www.opensource.apple.com/apsl/ and read it before using this
  4176  // file.
  4177  //
  4178  // The Original Code and all software distributed under the License are
  4179  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4180  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4181  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4182  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4183  // Please see the License for the specific language governing rights and
  4184  // limitations under the License.
  4185  //
  4186  // @APPLE_LICENSE_HEADER_END@
  4187  
  4188  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4189  //
  4190  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4191  //
  4192  // This file contains Original Code and/or Modifications of Original Code
  4193  // as defined in and that are subject to the Apple Public Source License
  4194  // Version 2.0 (the 'License'). You may not use this file except in
  4195  // compliance with the License. The rights granted to you under the License
  4196  // may not be used to create, or enable the creation or redistribution of,
  4197  // unlawful or unlicensed copies of an Apple operating system, or to
  4198  // circumvent, violate, or enable the circumvention or violation of, any
  4199  // terms of an Apple operating system software license agreement.
  4200  //
  4201  // Please obtain a copy of the License at
  4202  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4203  //
  4204  // The Original Code and all software distributed under the License are
  4205  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4206  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4207  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4208  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4209  // Please see the License for the specific language governing rights and
  4210  // limitations under the License.
  4211  //
  4212  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4213  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4214  // Copyright (c) 1991, 1993
  4215  //	The Regents of the University of California.  All rights reserved.
  4216  //
  4217  // This code is derived from software contributed to Berkeley by
  4218  // Berkeley Software Design, Inc.
  4219  //
  4220  // Redistribution and use in source and binary forms, with or without
  4221  // modification, are permitted provided that the following conditions
  4222  // are met:
  4223  // 1. Redistributions of source code must retain the above copyright
  4224  //    notice, this list of conditions and the following disclaimer.
  4225  // 2. Redistributions in binary form must reproduce the above copyright
  4226  //    notice, this list of conditions and the following disclaimer in the
  4227  //    documentation and/or other materials provided with the distribution.
  4228  // 3. All advertising materials mentioning features or use of this software
  4229  //    must display the following acknowledgement:
  4230  //	This product includes software developed by the University of
  4231  //	California, Berkeley and its contributors.
  4232  // 4. Neither the name of the University nor the names of its contributors
  4233  //    may be used to endorse or promote products derived from this software
  4234  //    without specific prior written permission.
  4235  //
  4236  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4237  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4238  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4239  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4240  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4241  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4242  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4243  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4244  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4245  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4246  // SUCH DAMAGE.
  4247  //
  4248  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  4249  
  4250  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
  4251  //
  4252  // @APPLE_LICENSE_HEADER_START@
  4253  //
  4254  // This file contains Original Code and/or Modifications of Original Code
  4255  // as defined in and that are subject to the Apple Public Source License
  4256  // Version 2.0 (the 'License'). You may not use this file except in
  4257  // compliance with the License. Please obtain a copy of the License at
  4258  // http://www.opensource.apple.com/apsl/ and read it before using this
  4259  // file.
  4260  //
  4261  // The Original Code and all software distributed under the License are
  4262  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4263  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4264  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4265  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4266  // Please see the License for the specific language governing rights and
  4267  // limitations under the License.
  4268  //
  4269  // @APPLE_LICENSE_HEADER_END@
  4270  
  4271  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  4272  //
  4273  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4274  //
  4275  // This file contains Original Code and/or Modifications of Original Code
  4276  // as defined in and that are subject to the Apple Public Source License
  4277  // Version 2.0 (the 'License'). You may not use this file except in
  4278  // compliance with the License. The rights granted to you under the License
  4279  // may not be used to create, or enable the creation or redistribution of,
  4280  // unlawful or unlicensed copies of an Apple operating system, or to
  4281  // circumvent, violate, or enable the circumvention or violation of, any
  4282  // terms of an Apple operating system software license agreement.
  4283  //
  4284  // Please obtain a copy of the License at
  4285  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4286  //
  4287  // The Original Code and all software distributed under the License are
  4288  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4289  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4290  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4291  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4292  // Please see the License for the specific language governing rights and
  4293  // limitations under the License.
  4294  //
  4295  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4296  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  4297  // Copyright (c) 1982, 1986, 1989, 1993, 1994
  4298  //	The Regents of the University of California.  All rights reserved.
  4299  //
  4300  // Redistribution and use in source and binary forms, with or without
  4301  // modification, are permitted provided that the following conditions
  4302  // are met:
  4303  // 1. Redistributions of source code must retain the above copyright
  4304  //    notice, this list of conditions and the following disclaimer.
  4305  // 2. Redistributions in binary form must reproduce the above copyright
  4306  //    notice, this list of conditions and the following disclaimer in the
  4307  //    documentation and/or other materials provided with the distribution.
  4308  // 3. All advertising materials mentioning features or use of this software
  4309  //    must display the following acknowledgement:
  4310  //	This product includes software developed by the University of
  4311  //	California, Berkeley and its contributors.
  4312  // 4. Neither the name of the University nor the names of its contributors
  4313  //    may be used to endorse or promote products derived from this software
  4314  //    without specific prior written permission.
  4315  //
  4316  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4317  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4318  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4319  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4320  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4321  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4322  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4323  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4324  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4325  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4326  // SUCH DAMAGE.
  4327  //
  4328  //	@(#)wait.h	8.2 (Berkeley) 7/10/94
  4329  
  4330  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4331  //
  4332  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4333  //
  4334  // This file contains Original Code and/or Modifications of Original Code
  4335  // as defined in and that are subject to the Apple Public Source License
  4336  // Version 2.0 (the 'License'). You may not use this file except in
  4337  // compliance with the License. The rights granted to you under the License
  4338  // may not be used to create, or enable the creation or redistribution of,
  4339  // unlawful or unlicensed copies of an Apple operating system, or to
  4340  // circumvent, violate, or enable the circumvention or violation of, any
  4341  // terms of an Apple operating system software license agreement.
  4342  //
  4343  // Please obtain a copy of the License at
  4344  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4345  //
  4346  // The Original Code and all software distributed under the License are
  4347  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4348  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4349  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4350  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4351  // Please see the License for the specific language governing rights and
  4352  // limitations under the License.
  4353  //
  4354  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4355  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4356  // Copyright (c) 1991, 1993
  4357  //	The Regents of the University of California.  All rights reserved.
  4358  //
  4359  // This code is derived from software contributed to Berkeley by
  4360  // Berkeley Software Design, Inc.
  4361  //
  4362  // Redistribution and use in source and binary forms, with or without
  4363  // modification, are permitted provided that the following conditions
  4364  // are met:
  4365  // 1. Redistributions of source code must retain the above copyright
  4366  //    notice, this list of conditions and the following disclaimer.
  4367  // 2. Redistributions in binary form must reproduce the above copyright
  4368  //    notice, this list of conditions and the following disclaimer in the
  4369  //    documentation and/or other materials provided with the distribution.
  4370  // 3. All advertising materials mentioning features or use of this software
  4371  //    must display the following acknowledgement:
  4372  //	This product includes software developed by the University of
  4373  //	California, Berkeley and its contributors.
  4374  // 4. Neither the name of the University nor the names of its contributors
  4375  //    may be used to endorse or promote products derived from this software
  4376  //    without specific prior written permission.
  4377  //
  4378  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4379  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4380  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4381  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4382  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4383  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4384  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4385  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4386  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4387  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4388  // SUCH DAMAGE.
  4389  //
  4390  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  4391  
  4392  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4393  //
  4394  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4395  //
  4396  // This file contains Original Code and/or Modifications of Original Code
  4397  // as defined in and that are subject to the Apple Public Source License
  4398  // Version 2.0 (the 'License'). You may not use this file except in
  4399  // compliance with the License. The rights granted to you under the License
  4400  // may not be used to create, or enable the creation or redistribution of,
  4401  // unlawful or unlicensed copies of an Apple operating system, or to
  4402  // circumvent, violate, or enable the circumvention or violation of, any
  4403  // terms of an Apple operating system software license agreement.
  4404  //
  4405  // Please obtain a copy of the License at
  4406  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4407  //
  4408  // The Original Code and all software distributed under the License are
  4409  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4410  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4411  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4412  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4413  // Please see the License for the specific language governing rights and
  4414  // limitations under the License.
  4415  //
  4416  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4417  
  4418  // This file holds definitions relevent to the wait4 system call
  4419  // and the alternate interfaces that use it (wait, wait3, waitpid).
  4420  
  4421  // [XSI] The type idtype_t shall be defined as an enumeration type whose
  4422  // possible values shall include at least P_ALL, P_PID, and P_PGID.
  4423  const ( /* wait.h:79:1: */
  4424  	P_ALL  = 0
  4425  	P_PID  = 1
  4426  	P_PGID = 2
  4427  )
  4428  
  4429  const ( /* Xlib.h:1126:1: */
  4430  	XOMOrientation_LTR_TTB = 0
  4431  	XOMOrientation_RTL_TTB = 1
  4432  	XOMOrientation_TTB_LTR = 2
  4433  	XOMOrientation_TTB_RTL = 3
  4434  	XOMOrientation_Context = 4
  4435  )
  4436  
  4437  const ( /* Xlib.h:1315:1: */
  4438  	XIMForwardChar      = 0
  4439  	XIMBackwardChar     = 1
  4440  	XIMForwardWord      = 2
  4441  	XIMBackwardWord     = 3
  4442  	XIMCaretUp          = 4
  4443  	XIMCaretDown        = 5
  4444  	XIMNextLine         = 6
  4445  	XIMPreviousLine     = 7
  4446  	XIMLineStart        = 8
  4447  	XIMLineEnd          = 9
  4448  	XIMAbsolutePosition = 10
  4449  	XIMDontChange       = 11
  4450  )
  4451  
  4452  const ( /* Xlib.h:1340:1: */
  4453  	XIMIsInvisible = 0 // Disable caret feedback
  4454  	XIMIsPrimary   = 1 // UI defined caret feedback
  4455  	XIMIsSecondary = 2
  4456  )
  4457  
  4458  const ( /* Xlib.h:1352:1: */
  4459  	XIMTextType   = 0
  4460  	XIMBitmapType = 1
  4461  )
  4462  
  4463  const ( /* Xutil.h:174:1: */
  4464  	XStringStyle       = 0 // STRING
  4465  	XCompoundTextStyle = 1 // COMPOUND_TEXT
  4466  	XTextStyle         = 2 // text in owner's encoding (current locale)
  4467  	XStdICCTextStyle   = 3 // STRING, else COMPOUND_TEXT
  4468  	// The following is an XFree86 extension, introduced in November 2000
  4469  	XUTF8StringStyle = 4
  4470  )
  4471  
  4472  type Ptrdiff_t = int64 /* <builtin>:3:26 */
  4473  
  4474  type Size_t = uint64 /* <builtin>:9:23 */
  4475  
  4476  type Wchar_t = int32 /* <builtin>:15:24 */
  4477  
  4478  type X__int128_t = struct {
  4479  	Flo int64
  4480  	Fhi int64
  4481  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  4482  type X__uint128_t = struct {
  4483  	Flo uint64
  4484  	Fhi uint64
  4485  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  4486  
  4487  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  4488  type X__float128 = float64        /* <builtin>:47:21 */
  4489  
  4490  // Copyright © 2004 Keith Packard
  4491  //
  4492  // Permission to use, copy, modify, distribute, and sell this software and its
  4493  // documentation for any purpose is hereby granted without fee, provided that
  4494  // the above copyright notice appear in all copies and that both that
  4495  // copyright notice and this permission notice appear in supporting
  4496  // documentation, and that the name of Keith Packard not be used in
  4497  // advertising or publicity pertaining to distribution of the software without
  4498  // specific, written prior permission.  Keith Packard makes no
  4499  // representations about the suitability of this software for any purpose.  It
  4500  // is provided "as is" without express or implied warranty.
  4501  //
  4502  // KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  4503  // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  4504  // EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  4505  // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  4506  // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  4507  // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  4508  // PERFORMANCE OF THIS SOFTWARE.
  4509  
  4510  // config.h.  Generated from config.h.in by configure.
  4511  // config.h.in.  Generated from configure.ac by autoheader.
  4512  
  4513  // Define to 1 if you have the <dlfcn.h> header file.
  4514  
  4515  // Define to 1 if you have the <inttypes.h> header file.
  4516  
  4517  // Define to 1 if you have the <memory.h> header file.
  4518  
  4519  // Define to 1 if you have the <stdint.h> header file.
  4520  
  4521  // Define to 1 if you have the <stdlib.h> header file.
  4522  
  4523  // Define to 1 if you have the <strings.h> header file.
  4524  
  4525  // Define to 1 if you have the <string.h> header file.
  4526  
  4527  // Define to 1 if you have the <sys/stat.h> header file.
  4528  
  4529  // Define to 1 if you have the <sys/types.h> header file.
  4530  
  4531  // Define to 1 if you have the <unistd.h> header file.
  4532  
  4533  // Define to the sub-directory in which libtool stores uninstalled libraries.
  4534  
  4535  // Name of package
  4536  
  4537  // Define to the address where bug reports for this package should be sent.
  4538  
  4539  // Define to the full name of this package.
  4540  
  4541  // Define to the full name and version of this package.
  4542  
  4543  // Define to the one symbol short name of this package.
  4544  
  4545  // Define to the home page for this package.
  4546  
  4547  // Define to the version of this package.
  4548  
  4549  // Major version of this package
  4550  
  4551  // Minor version of this package
  4552  
  4553  // Patch version of this package
  4554  
  4555  // Define to 1 if you have the ANSI C header files.
  4556  
  4557  // Version number of package
  4558  //
  4559  // Copyright © 2000 SuSE, Inc.
  4560  //
  4561  // Permission to use, copy, modify, distribute, and sell this software and its
  4562  // documentation for any purpose is hereby granted without fee, provided that
  4563  // the above copyright notice appear in all copies and that both that
  4564  // copyright notice and this permission notice appear in supporting
  4565  // documentation, and that the name of SuSE not be used in advertising or
  4566  // publicity pertaining to distribution of the software without specific,
  4567  // written prior permission.  SuSE makes no representations about the
  4568  // suitability of this software for any purpose.  It is provided "as is"
  4569  // without express or implied warranty.
  4570  //
  4571  // SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  4572  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
  4573  // BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  4574  // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  4575  // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  4576  // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  4577  //
  4578  // Author:  Keith Packard, SuSE, Inc.
  4579  
  4580  // config.h.  Generated from config.h.in by configure.
  4581  // config.h.in.  Generated from configure.ac by autoheader.
  4582  
  4583  // Define to 1 if you have the <dlfcn.h> header file.
  4584  
  4585  // Define to 1 if you have the <inttypes.h> header file.
  4586  
  4587  // Define to 1 if you have the <memory.h> header file.
  4588  
  4589  // Define to 1 if you have the <stdint.h> header file.
  4590  
  4591  // Define to 1 if you have the <stdlib.h> header file.
  4592  
  4593  // Define to 1 if you have the <strings.h> header file.
  4594  
  4595  // Define to 1 if you have the <string.h> header file.
  4596  
  4597  // Define to 1 if you have the <sys/stat.h> header file.
  4598  
  4599  // Define to 1 if you have the <sys/types.h> header file.
  4600  
  4601  // Define to 1 if you have the <unistd.h> header file.
  4602  
  4603  // Define to the sub-directory in which libtool stores uninstalled libraries.
  4604  
  4605  // Name of package
  4606  
  4607  // Define to the address where bug reports for this package should be sent.
  4608  
  4609  // Define to the full name of this package.
  4610  
  4611  // Define to the full name and version of this package.
  4612  
  4613  // Define to the one symbol short name of this package.
  4614  
  4615  // Define to the home page for this package.
  4616  
  4617  // Define to the version of this package.
  4618  
  4619  // Major version of this package
  4620  
  4621  // Minor version of this package
  4622  
  4623  // Patch version of this package
  4624  
  4625  // Define to 1 if you have the ANSI C header files.
  4626  
  4627  // Version number of package
  4628  
  4629  //
  4630  //
  4631  // Copyright 1984, 1985, 1987, 1989, 1998  The Open Group
  4632  //
  4633  // Permission to use, copy, modify, distribute, and sell this software and its
  4634  // documentation for any purpose is hereby granted without fee, provided that
  4635  // the above copyright notice appear in all copies and that both that
  4636  // copyright notice and this permission notice appear in supporting
  4637  // documentation.
  4638  //
  4639  // The above copyright notice and this permission notice shall be included
  4640  // in all copies or substantial portions of the Software.
  4641  //
  4642  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  4643  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  4644  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  4645  // IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
  4646  // OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  4647  // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  4648  // OTHER DEALINGS IN THE SOFTWARE.
  4649  //
  4650  // Except as contained in this notice, the name of The Open Group shall
  4651  // not be used in advertising or otherwise to promote the sale, use or
  4652  // other dealings in this Software without prior written authorization
  4653  // from The Open Group.
  4654  //
  4655  
  4656  //	Xlibint.h - Header definition and support file for the internal
  4657  //	support routines used by the C subroutine interface
  4658  //	library (Xlib) to the X Window System.
  4659  //
  4660  //	Warning, there be dragons here....
  4661  
  4662  //  DO NOT EDIT THIS FILE.
  4663  //
  4664  //     It has been auto-edited by fixincludes from:
  4665  //
  4666  // 	"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/stdint.h"
  4667  //
  4668  //     This had to be done to correct non-standard usages in the
  4669  //     original, manufacturer supplied header file.
  4670  
  4671  // Copyright (c) 2000-2010 Apple Inc.
  4672  // All rights reserved.
  4673  
  4674  // from ISO/IEC 988:1999 spec
  4675  
  4676  // 7.18.1.1 Exact-width integer types
  4677  // Copyright (c) 2012 Apple Inc. All rights reserved.
  4678  //
  4679  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4680  //
  4681  // This file contains Original Code and/or Modifications of Original Code
  4682  // as defined in and that are subject to the Apple Public Source License
  4683  // Version 2.0 (the 'License'). You may not use this file except in
  4684  // compliance with the License. The rights granted to you under the License
  4685  // may not be used to create, or enable the creation or redistribution of,
  4686  // unlawful or unlicensed copies of an Apple operating system, or to
  4687  // circumvent, violate, or enable the circumvention or violation of, any
  4688  // terms of an Apple operating system software license agreement.
  4689  //
  4690  // Please obtain a copy of the License at
  4691  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4692  //
  4693  // The Original Code and all software distributed under the License are
  4694  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4695  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4696  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4697  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4698  // Please see the License for the specific language governing rights and
  4699  // limitations under the License.
  4700  //
  4701  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4702  type Int8_t = int8 /* _int8_t.h:30:31 */
  4703  // Copyright (c) 2012 Apple Inc. All rights reserved.
  4704  //
  4705  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4706  //
  4707  // This file contains Original Code and/or Modifications of Original Code
  4708  // as defined in and that are subject to the Apple Public Source License
  4709  // Version 2.0 (the 'License'). You may not use this file except in
  4710  // compliance with the License. The rights granted to you under the License
  4711  // may not be used to create, or enable the creation or redistribution of,
  4712  // unlawful or unlicensed copies of an Apple operating system, or to
  4713  // circumvent, violate, or enable the circumvention or violation of, any
  4714  // terms of an Apple operating system software license agreement.
  4715  //
  4716  // Please obtain a copy of the License at
  4717  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4718  //
  4719  // The Original Code and all software distributed under the License are
  4720  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4721  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4722  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4723  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4724  // Please see the License for the specific language governing rights and
  4725  // limitations under the License.
  4726  //
  4727  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4728  type Int16_t = int16 /* _int16_t.h:30:33 */
  4729  // Copyright (c) 2012 Apple Inc. All rights reserved.
  4730  //
  4731  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4732  //
  4733  // This file contains Original Code and/or Modifications of Original Code
  4734  // as defined in and that are subject to the Apple Public Source License
  4735  // Version 2.0 (the 'License'). You may not use this file except in
  4736  // compliance with the License. The rights granted to you under the License
  4737  // may not be used to create, or enable the creation or redistribution of,
  4738  // unlawful or unlicensed copies of an Apple operating system, or to
  4739  // circumvent, violate, or enable the circumvention or violation of, any
  4740  // terms of an Apple operating system software license agreement.
  4741  //
  4742  // Please obtain a copy of the License at
  4743  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4744  //
  4745  // The Original Code and all software distributed under the License are
  4746  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4747  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4748  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4749  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4750  // Please see the License for the specific language governing rights and
  4751  // limitations under the License.
  4752  //
  4753  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4754  type Int32_t = int32 /* _int32_t.h:30:33 */
  4755  // Copyright (c) 2012 Apple Inc. All rights reserved.
  4756  //
  4757  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4758  //
  4759  // This file contains Original Code and/or Modifications of Original Code
  4760  // as defined in and that are subject to the Apple Public Source License
  4761  // Version 2.0 (the 'License'). You may not use this file except in
  4762  // compliance with the License. The rights granted to you under the License
  4763  // may not be used to create, or enable the creation or redistribution of,
  4764  // unlawful or unlicensed copies of an Apple operating system, or to
  4765  // circumvent, violate, or enable the circumvention or violation of, any
  4766  // terms of an Apple operating system software license agreement.
  4767  //
  4768  // Please obtain a copy of the License at
  4769  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4770  //
  4771  // The Original Code and all software distributed under the License are
  4772  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4773  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4774  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4775  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4776  // Please see the License for the specific language governing rights and
  4777  // limitations under the License.
  4778  //
  4779  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4780  type Int64_t = int64 /* _int64_t.h:30:33 */
  4781  
  4782  // Copyright (c) 2012 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 Uint8_t = uint8 /* _uint8_t.h:31:23 */
  4809  // Copyright (c) 2012 Apple Inc. All rights reserved.
  4810  //
  4811  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4812  //
  4813  // This file contains Original Code and/or Modifications of Original Code
  4814  // as defined in and that are subject to the Apple Public Source License
  4815  // Version 2.0 (the 'License'). You may not use this file except in
  4816  // compliance with the License. The rights granted to you under the License
  4817  // may not be used to create, or enable the creation or redistribution of,
  4818  // unlawful or unlicensed copies of an Apple operating system, or to
  4819  // circumvent, violate, or enable the circumvention or violation of, any
  4820  // terms of an Apple operating system software license agreement.
  4821  //
  4822  // Please obtain a copy of the License at
  4823  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4824  //
  4825  // The Original Code and all software distributed under the License are
  4826  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4827  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4828  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4829  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4830  // Please see the License for the specific language governing rights and
  4831  // limitations under the License.
  4832  //
  4833  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4834  
  4835  type Uint16_t = uint16 /* _uint16_t.h:31:24 */
  4836  // Copyright (c) 2012 Apple Inc. All rights reserved.
  4837  //
  4838  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4839  //
  4840  // This file contains Original Code and/or Modifications of Original Code
  4841  // as defined in and that are subject to the Apple Public Source License
  4842  // Version 2.0 (the 'License'). You may not use this file except in
  4843  // compliance with the License. The rights granted to you under the License
  4844  // may not be used to create, or enable the creation or redistribution of,
  4845  // unlawful or unlicensed copies of an Apple operating system, or to
  4846  // circumvent, violate, or enable the circumvention or violation of, any
  4847  // terms of an Apple operating system software license agreement.
  4848  //
  4849  // Please obtain a copy of the License at
  4850  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4851  //
  4852  // The Original Code and all software distributed under the License are
  4853  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4854  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4855  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4856  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4857  // Please see the License for the specific language governing rights and
  4858  // limitations under the License.
  4859  //
  4860  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4861  
  4862  type Uint32_t = uint32 /* _uint32_t.h:31:22 */
  4863  // Copyright (c) 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  
  4889  type Uint64_t = uint64 /* _uint64_t.h:31:28 */
  4890  
  4891  // 7.18.1.2 Minimum-width integer types
  4892  type Int_least8_t = Int8_t     /* stdint.h:38:26 */
  4893  type Int_least16_t = Int16_t   /* stdint.h:39:25 */
  4894  type Int_least32_t = Int32_t   /* stdint.h:40:25 */
  4895  type Int_least64_t = Int64_t   /* stdint.h:41:25 */
  4896  type Uint_least8_t = Uint8_t   /* stdint.h:42:25 */
  4897  type Uint_least16_t = Uint16_t /* stdint.h:43:24 */
  4898  type Uint_least32_t = Uint32_t /* stdint.h:44:24 */
  4899  type Uint_least64_t = Uint64_t /* stdint.h:45:24 */
  4900  
  4901  // 7.18.1.3 Fastest-width integer types
  4902  type Int_fast8_t = Int8_t     /* stdint.h:49:27 */
  4903  type Int_fast16_t = Int16_t   /* stdint.h:50:26 */
  4904  type Int_fast32_t = Int32_t   /* stdint.h:51:26 */
  4905  type Int_fast64_t = Int64_t   /* stdint.h:52:26 */
  4906  type Uint_fast8_t = Uint8_t   /* stdint.h:53:26 */
  4907  type Uint_fast16_t = Uint16_t /* stdint.h:54:25 */
  4908  type Uint_fast32_t = Uint32_t /* stdint.h:55:25 */
  4909  type Uint_fast64_t = Uint64_t /* stdint.h:56:25 */
  4910  
  4911  // 7.18.1.4 Integer types capable of holding object pointers
  4912  
  4913  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  4914  //
  4915  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4916  //
  4917  // This file contains Original Code and/or Modifications of Original Code
  4918  // as defined in and that are subject to the Apple Public Source License
  4919  // Version 2.0 (the 'License'). You may not use this file except in
  4920  // compliance with the License. The rights granted to you under the License
  4921  // may not be used to create, or enable the creation or redistribution of,
  4922  // unlawful or unlicensed copies of an Apple operating system, or to
  4923  // circumvent, violate, or enable the circumvention or violation of, any
  4924  // terms of an Apple operating system software license agreement.
  4925  //
  4926  // Please obtain a copy of the License at
  4927  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4928  //
  4929  // The Original Code and all software distributed under the License are
  4930  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4931  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4932  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4933  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4934  // Please see the License for the specific language governing rights and
  4935  // limitations under the License.
  4936  //
  4937  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4938  
  4939  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  4940  //
  4941  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  4942  //
  4943  // This file contains Original Code and/or Modifications of Original Code
  4944  // as defined in and that are subject to the Apple Public Source License
  4945  // Version 2.0 (the 'License'). You may not use this file except in
  4946  // compliance with the License. The rights granted to you under the License
  4947  // may not be used to create, or enable the creation or redistribution of,
  4948  // unlawful or unlicensed copies of an Apple operating system, or to
  4949  // circumvent, violate, or enable the circumvention or violation of, any
  4950  // terms of an Apple operating system software license agreement.
  4951  //
  4952  // Please obtain a copy of the License at
  4953  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  4954  //
  4955  // The Original Code and all software distributed under the License are
  4956  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  4957  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  4958  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  4959  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  4960  // Please see the License for the specific language governing rights and
  4961  // limitations under the License.
  4962  //
  4963  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  4964  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  4965  // Copyright (c) 1991, 1993
  4966  //	The Regents of the University of California.  All rights reserved.
  4967  //
  4968  // This code is derived from software contributed to Berkeley by
  4969  // Berkeley Software Design, Inc.
  4970  //
  4971  // Redistribution and use in source and binary forms, with or without
  4972  // modification, are permitted provided that the following conditions
  4973  // are met:
  4974  // 1. Redistributions of source code must retain the above copyright
  4975  //    notice, this list of conditions and the following disclaimer.
  4976  // 2. Redistributions in binary form must reproduce the above copyright
  4977  //    notice, this list of conditions and the following disclaimer in the
  4978  //    documentation and/or other materials provided with the distribution.
  4979  // 3. All advertising materials mentioning features or use of this software
  4980  //    must display the following acknowledgement:
  4981  //	This product includes software developed by the University of
  4982  //	California, Berkeley and its contributors.
  4983  // 4. Neither the name of the University nor the names of its contributors
  4984  //    may be used to endorse or promote products derived from this software
  4985  //    without specific prior written permission.
  4986  //
  4987  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  4988  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  4989  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  4990  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  4991  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  4992  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  4993  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  4994  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  4995  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  4996  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  4997  // SUCH DAMAGE.
  4998  //
  4999  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  5000  
  5001  // This SDK is designed to work with clang and specific versions of
  5002  // gcc >= 4.0 with Apple's patch sets
  5003  
  5004  // Compatibility with compilers and environments that don't support compiler
  5005  // feature checking function-like macros.
  5006  
  5007  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  5008  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  5009  // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  5010  // in between its arguments.  __CONCAT can also concatenate double-quoted
  5011  // strings produced by the __STRING macro, but this only works with ANSI C.
  5012  
  5013  // __pure2 can be used for functions that are only a function of their scalar
  5014  // arguments (meaning they can't dereference pointers).
  5015  //
  5016  // __stateful_pure can be used for functions that have no side effects,
  5017  // but depend on the state of the memory.
  5018  
  5019  // __unused denotes variables and functions that may not be used, preventing
  5020  // the compiler from warning about it if not used.
  5021  
  5022  // __used forces variables and functions to be included even if it appears
  5023  // to the compiler that they are not used (and would thust be discarded).
  5024  
  5025  // __cold marks code used for debugging or that is rarely taken
  5026  // and tells the compiler to optimize for size and outline code.
  5027  
  5028  // __exported denotes symbols that should be exported even when symbols
  5029  // are hidden by default.
  5030  // __exported_push/_exported_pop are pragmas used to delimit a range of
  5031  //  symbols that should be exported even when symbols are hidden by default.
  5032  
  5033  // __deprecated causes the compiler to produce a warning when encountering
  5034  // code using the deprecated functionality.
  5035  // __deprecated_msg() does the same, and compilers that support it will print
  5036  // a message along with the deprecation warning.
  5037  // This may require turning on such warning with the -Wdeprecated flag.
  5038  // __deprecated_enum_msg() should be used on enums, and compilers that support
  5039  // it will print the deprecation warning.
  5040  // __kpi_deprecated() specifically indicates deprecation of kernel programming
  5041  // interfaces in Kernel.framework used by KEXTs.
  5042  
  5043  // __unavailable causes the compiler to error out when encountering
  5044  // code using the tagged function
  5045  
  5046  // Delete pseudo-keywords wherever they are not available or needed.
  5047  
  5048  // We use `__restrict' as a way to define the `restrict' type qualifier
  5049  // without disturbing older software that is unaware of C99 keywords.
  5050  
  5051  // Compatibility with compilers and environments that don't support the
  5052  // nullability feature.
  5053  
  5054  // __disable_tail_calls causes the compiler to not perform tail call
  5055  // optimization inside the marked function.
  5056  
  5057  // __not_tail_called causes the compiler to prevent tail call optimization
  5058  // on statically bound calls to the function.  It has no effect on indirect
  5059  // calls.  Virtual functions, objective-c methods, and functions marked as
  5060  // "always_inline" cannot be marked as __not_tail_called.
  5061  
  5062  // __result_use_check warns callers of a function that not using the function
  5063  // return value is a bug, i.e. dismissing malloc() return value results in a
  5064  // memory leak.
  5065  
  5066  // __swift_unavailable causes the compiler to mark a symbol as specifically
  5067  // unavailable in Swift, regardless of any other availability in C.
  5068  
  5069  // __abortlike is the attribute to put on functions like abort() that are
  5070  // typically used to mark assertions. These optimize the codegen
  5071  // for outlining while still maintaining debugability.
  5072  
  5073  // Declaring inline functions within headers is error-prone due to differences
  5074  // across various versions of the C language and extensions.  __header_inline
  5075  // can be used to declare inline functions within system headers.  In cases
  5076  // where you want to force inlining instead of letting the compiler make
  5077  // the decision, you can use __header_always_inline.
  5078  //
  5079  // Be aware that using inline for functions which compilers may also provide
  5080  // builtins can behave differently under various compilers.  If you intend to
  5081  // provide an inline version of such a function, you may want to use a macro
  5082  // instead.
  5083  //
  5084  // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  5085  // support c99 inline in some cases:
  5086  // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  5087  
  5088  // Compiler-dependent macros that bracket portions of code where the
  5089  // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  5090  
  5091  // Compiler-dependent macros to declare that functions take printf-like
  5092  // or scanf-like arguments.  They are null except for versions of gcc
  5093  // that are known to support the features properly.  Functions declared
  5094  // with these attributes will cause compilation warnings if there is a
  5095  // mismatch between the format string and subsequent function parameter
  5096  // types.
  5097  
  5098  // Source compatibility only, ID string not emitted in object file
  5099  
  5100  // __alloc_size can be used to label function arguments that represent the
  5101  // size of memory that the function allocates and returns. The one-argument
  5102  // form labels a single argument that gives the allocation size (where the
  5103  // arguments are numbered from 1):
  5104  //
  5105  // void	*malloc(size_t __size) __alloc_size(1);
  5106  //
  5107  // The two-argument form handles the case where the size is calculated as the
  5108  // product of two arguments:
  5109  //
  5110  // void	*calloc(size_t __count, size_t __size) __alloc_size(1,2);
  5111  
  5112  // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  5113  //
  5114  // DEFAULT	By default newly complied code will get POSIX APIs plus
  5115  //		Apple API extensions in scope.
  5116  //
  5117  //		Most users will use this compilation environment to avoid
  5118  //		behavioral differences between 32 and 64 bit code.
  5119  //
  5120  // LEGACY	Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  5121  //		API extensions in scope.
  5122  //
  5123  //		This is generally equivalent to the Tiger release compilation
  5124  //		environment, except that it cannot be applied to 64 bit code;
  5125  //		its use is discouraged.
  5126  //
  5127  //		We expect this environment to be deprecated in the future.
  5128  //
  5129  // STRICT	Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  5130  //		available APIs to exactly the set of APIs defined by the
  5131  //		corresponding standard, based on the value defined.
  5132  //
  5133  //		A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  5134  //		A correct, portable definition for _XOPEN_SOURCE is 600L.
  5135  //
  5136  //		Apple API extensions are not visible in this environment,
  5137  //		which can cause Apple specific code to fail to compile,
  5138  //		or behave incorrectly if prototypes are not in scope or
  5139  //		warnings about missing prototypes are not enabled or ignored.
  5140  //
  5141  // In any compilation environment, for correct symbol resolution to occur,
  5142  // function prototypes must be in scope.  It is recommended that all Apple
  5143  // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  5144  // compiler flags to their projects to be warned when a function is being
  5145  // used without a prototype in scope.
  5146  
  5147  // These settings are particular to each product.
  5148  // Platform: MacOSX
  5149  
  5150  // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  5151  // legacy code to use the old symbol, thus maintaining binary compatibility
  5152  // while new code can use a standards compliant version of the same function.
  5153  //
  5154  // __DARWIN_ALIAS is used by itself if the function signature has not
  5155  // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  5156  // if the signature has changed.  Because the __LP64__ environment
  5157  // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  5158  // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  5159  //
  5160  // As a special case, when XCode is used to target a specific version of the
  5161  // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  5162  // will be defined by the compiler, with the digits representing major version
  5163  // time 100 + minor version times 10 (e.g. 10.5 := 1050).  If we are targeting
  5164  // pre-10.5, and it is the default compilation environment, revert the
  5165  // compilation environment to pre-__DARWIN_UNIX03.
  5166  
  5167  // symbol suffixes used for symbol versioning
  5168  
  5169  // symbol versioning macros
  5170  
  5171  // symbol release macros
  5172  // Copyright (c) 2010 Apple Inc. All rights reserved.
  5173  //
  5174  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5175  //
  5176  // This file contains Original Code and/or Modifications of Original Code
  5177  // as defined in and that are subject to the Apple Public Source License
  5178  // Version 2.0 (the 'License'). You may not use this file except in
  5179  // compliance with the License. The rights granted to you under the License
  5180  // may not be used to create, or enable the creation or redistribution of,
  5181  // unlawful or unlicensed copies of an Apple operating system, or to
  5182  // circumvent, violate, or enable the circumvention or violation of, any
  5183  // terms of an Apple operating system software license agreement.
  5184  //
  5185  // Please obtain a copy of the License at
  5186  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5187  //
  5188  // The Original Code and all software distributed under the License are
  5189  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5190  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5191  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5192  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5193  // Please see the License for the specific language governing rights and
  5194  // limitations under the License.
  5195  //
  5196  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5197  
  5198  // POSIX.1 requires that the macros we test be defined before any standard
  5199  // header file is included.  This permits us to convert values for feature
  5200  // testing, as necessary, using only _POSIX_C_SOURCE.
  5201  //
  5202  // Here's a quick run-down of the versions:
  5203  //  defined(_POSIX_SOURCE)		1003.1-1988
  5204  //  _POSIX_C_SOURCE == 1L		1003.1-1990
  5205  //  _POSIX_C_SOURCE == 2L		1003.2-1992 C Language Binding Option
  5206  //  _POSIX_C_SOURCE == 199309L		1003.1b-1993
  5207  //  _POSIX_C_SOURCE == 199506L		1003.1c-1995, 1003.1i-1995,
  5208  //					and the omnibus ISO/IEC 9945-1: 1996
  5209  //  _POSIX_C_SOURCE == 200112L		1003.1-2001
  5210  //  _POSIX_C_SOURCE == 200809L		1003.1-2008
  5211  //
  5212  // In addition, the X/Open Portability Guide, which is now the Single UNIX
  5213  // Specification, defines a feature-test macro which indicates the version of
  5214  // that specification, and which subsumes _POSIX_C_SOURCE.
  5215  
  5216  // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  5217  
  5218  // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  5219  
  5220  // Deal with various X/Open Portability Guides and Single UNIX Spec.
  5221  
  5222  // Deal with all versions of POSIX.  The ordering relative to the tests above is
  5223  // important.
  5224  
  5225  // POSIX C deprecation macros
  5226  // Copyright (c) 2010 Apple Inc. All rights reserved.
  5227  //
  5228  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5229  //
  5230  // This file contains Original Code and/or Modifications of Original Code
  5231  // as defined in and that are subject to the Apple Public Source License
  5232  // Version 2.0 (the 'License'). You may not use this file except in
  5233  // compliance with the License. The rights granted to you under the License
  5234  // may not be used to create, or enable the creation or redistribution of,
  5235  // unlawful or unlicensed copies of an Apple operating system, or to
  5236  // circumvent, violate, or enable the circumvention or violation of, any
  5237  // terms of an Apple operating system software license agreement.
  5238  //
  5239  // Please obtain a copy of the License at
  5240  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5241  //
  5242  // The Original Code and all software distributed under the License are
  5243  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5244  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5245  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5246  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5247  // Please see the License for the specific language governing rights and
  5248  // limitations under the License.
  5249  //
  5250  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5251  
  5252  // Set a single macro which will always be defined and can be used to determine
  5253  // the appropriate namespace.  For POSIX, these values will correspond to
  5254  // _POSIX_C_SOURCE value.  Currently there are two additional levels corresponding
  5255  // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  5256  
  5257  // If the developer has neither requested a strict language mode nor a version
  5258  // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  5259  // of __DARWIN_C_FULL.
  5260  
  5261  // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  5262  // c99 still want long longs.  While not perfect, we allow long longs for
  5263  // g++.
  5264  
  5265  // ****************************************
  5266  //
  5267  //  Public darwin-specific feature macros
  5268  //
  5269  
  5270  // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  5271  // structures modified for 64-bit inodes (like struct stat) will be used.
  5272  
  5273  // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  5274  // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  5275  // (and non-zero).  There is no struct stat64 either, as the regular
  5276  // struct stat will already be the 64-bit version.
  5277  
  5278  // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  5279  // in 10.5 exists; no pre-10.5 variants are available.
  5280  
  5281  // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  5282  // are available (the legacy BSD APIs are not available)
  5283  
  5284  // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  5285  // and specifies the conformance level (3 is SUSv3)
  5286  
  5287  // This macro casts away the qualifier from the variable
  5288  //
  5289  // Note: use at your own risk, removing qualifiers can result in
  5290  // catastrophic run-time failures.
  5291  
  5292  // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  5293  // used from other compilation units, but not other libraries or executables.
  5294  
  5295  // Architecture validation for current SDK
  5296  
  5297  // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  5298  //
  5299  // This provides more advanced type checking on compilers supporting
  5300  // the proper extensions, even in C.
  5301  
  5302  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  5303  //
  5304  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5305  //
  5306  // This file contains Original Code and/or Modifications of Original Code
  5307  // as defined in and that are subject to the Apple Public Source License
  5308  // Version 2.0 (the 'License'). You may not use this file except in
  5309  // compliance with the License. The rights granted to you under the License
  5310  // may not be used to create, or enable the creation or redistribution of,
  5311  // unlawful or unlicensed copies of an Apple operating system, or to
  5312  // circumvent, violate, or enable the circumvention or violation of, any
  5313  // terms of an Apple operating system software license agreement.
  5314  //
  5315  // Please obtain a copy of the License at
  5316  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5317  //
  5318  // The Original Code and all software distributed under the License are
  5319  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5320  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5321  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5322  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5323  // Please see the License for the specific language governing rights and
  5324  // limitations under the License.
  5325  //
  5326  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5327  
  5328  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5329  
  5330  // This header file contains integer types.  It's intended to also contain
  5331  // flotaing point and other arithmetic types, as needed, later.
  5332  
  5333  type X__int8_t = int8     /* _types.h:15:33 */
  5334  type X__uint8_t = uint8   /* _types.h:19:33 */
  5335  type X__int16_t = int16   /* _types.h:20:33 */
  5336  type X__uint16_t = uint16 /* _types.h:21:33 */
  5337  type X__int32_t = int32   /* _types.h:22:33 */
  5338  type X__uint32_t = uint32 /* _types.h:23:33 */
  5339  type X__int64_t = int64   /* _types.h:24:33 */
  5340  type X__uint64_t = uint64 /* _types.h:25:33 */
  5341  
  5342  type X__darwin_intptr_t = int64   /* _types.h:27:33 */
  5343  type X__darwin_natural_t = uint32 /* _types.h:28:33 */
  5344  
  5345  // The rune type below is declared to be an ``int'' instead of the more natural
  5346  // ``unsigned long'' or ``long''.  Two things are happening here.  It is not
  5347  // unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,
  5348  // it looks like 10646 will be a 31 bit standard.  This means that if your
  5349  // ints cannot hold 32 bits, you will be in trouble.  The reason an int was
  5350  // chosen over a long is that the is*() and to*() routines take ints (says
  5351  // ANSI C), but they use __darwin_ct_rune_t instead of int.  By changing it
  5352  // here, you lose a bit of ANSI conformance, but your programs will still
  5353  // work.
  5354  //
  5355  // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  5356  // be instantiated outside of lib/libc/locale.  Use wchar_t.  wchar_t and
  5357  // rune_t must be the same type.  Also wint_t must be no narrower than
  5358  // wchar_t, and should also be able to hold all members of the largest
  5359  // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  5360  
  5361  type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
  5362  
  5363  // mbstate_t is an opaque object to keep conversion state, during multibyte
  5364  // stream conversions.  The content must not be referenced by user programs.
  5365  type X__mbstate_t = struct {
  5366  	F__ccgo_pad1 [0]uint64
  5367  	F__mbstate8  [128]int8
  5368  } /* _types.h:57:3 */
  5369  
  5370  type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
  5371  
  5372  type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
  5373  
  5374  type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
  5375  
  5376  type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
  5377  
  5378  type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
  5379  
  5380  type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
  5381  
  5382  type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
  5383  
  5384  type X__darwin_clock_t = uint64        /* _types.h:95:33 */ // clock()
  5385  type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
  5386  type X__darwin_ssize_t = int64         /* _types.h:97:33 */ // byte count or error
  5387  type X__darwin_time_t = int64          /* _types.h:98:33 */ // time()
  5388  
  5389  // Type definitions; takes common type definitions that must be used
  5390  // in multiple header files due to [XSI], removes them from the system
  5391  // space, and puts them in the implementation space.
  5392  
  5393  type X__darwin_blkcnt_t = X__int64_t                    /* _types.h:55:25 */ // total blocks
  5394  type X__darwin_blksize_t = X__int32_t                   /* _types.h:56:25 */ // preferred block size
  5395  type X__darwin_dev_t = X__int32_t                       /* _types.h:57:25 */ // dev_t
  5396  type X__darwin_fsblkcnt_t = uint32                      /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  5397  type X__darwin_fsfilcnt_t = uint32                      /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  5398  type X__darwin_gid_t = X__uint32_t                      /* _types.h:60:25 */ // [???] process and group IDs
  5399  type X__darwin_id_t = X__uint32_t                       /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  5400  type X__darwin_ino64_t = X__uint64_t                    /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  5401  type X__darwin_ino_t = X__darwin_ino64_t                /* _types.h:64:26 */ // [???] Used for inodes
  5402  type X__darwin_mach_port_name_t = X__darwin_natural_t   /* _types.h:68:28 */ // Used by mach
  5403  type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  5404  type X__darwin_mode_t = X__uint16_t                     /* _types.h:70:25 */ // [???] Some file attributes
  5405  type X__darwin_off_t = X__int64_t                       /* _types.h:71:25 */ // [???] Used for file sizes
  5406  type X__darwin_pid_t = X__int32_t                       /* _types.h:72:25 */ // [???] process and group IDs
  5407  type X__darwin_sigset_t = X__uint32_t                   /* _types.h:73:25 */ // [???] signal set
  5408  type X__darwin_suseconds_t = X__int32_t                 /* _types.h:74:25 */ // [???] microseconds
  5409  type X__darwin_uid_t = X__uint32_t                      /* _types.h:75:25 */ // [???] user IDs
  5410  type X__darwin_useconds_t = X__uint32_t                 /* _types.h:76:25 */ // [???] microseconds
  5411  type X__darwin_uuid_t = [16]uint8                       /* _types.h:77:25 */
  5412  type X__darwin_uuid_string_t = [37]int8                 /* _types.h:78:17 */
  5413  
  5414  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  5415  //
  5416  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5417  //
  5418  // This file contains Original Code and/or Modifications of Original Code
  5419  // as defined in and that are subject to the Apple Public Source License
  5420  // Version 2.0 (the 'License'). You may not use this file except in
  5421  // compliance with the License. The rights granted to you under the License
  5422  // may not be used to create, or enable the creation or redistribution of,
  5423  // unlawful or unlicensed copies of an Apple operating system, or to
  5424  // circumvent, violate, or enable the circumvention or violation of, any
  5425  // terms of an Apple operating system software license agreement.
  5426  //
  5427  // Please obtain a copy of the License at
  5428  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5429  //
  5430  // The Original Code and all software distributed under the License are
  5431  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5432  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5433  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5434  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5435  // Please see the License for the specific language governing rights and
  5436  // limitations under the License.
  5437  //
  5438  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5439  
  5440  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  5441  //
  5442  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5443  //
  5444  // This file contains Original Code and/or Modifications of Original Code
  5445  // as defined in and that are subject to the Apple Public Source License
  5446  // Version 2.0 (the 'License'). You may not use this file except in
  5447  // compliance with the License. The rights granted to you under the License
  5448  // may not be used to create, or enable the creation or redistribution of,
  5449  // unlawful or unlicensed copies of an Apple operating system, or to
  5450  // circumvent, violate, or enable the circumvention or violation of, any
  5451  // terms of an Apple operating system software license agreement.
  5452  //
  5453  // Please obtain a copy of the License at
  5454  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5455  //
  5456  // The Original Code and all software distributed under the License are
  5457  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5458  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5459  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5460  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5461  // Please see the License for the specific language governing rights and
  5462  // limitations under the License.
  5463  //
  5464  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5465  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5466  // Copyright (c) 1991, 1993
  5467  //	The Regents of the University of California.  All rights reserved.
  5468  //
  5469  // This code is derived from software contributed to Berkeley by
  5470  // Berkeley Software Design, Inc.
  5471  //
  5472  // Redistribution and use in source and binary forms, with or without
  5473  // modification, are permitted provided that the following conditions
  5474  // are met:
  5475  // 1. Redistributions of source code must retain the above copyright
  5476  //    notice, this list of conditions and the following disclaimer.
  5477  // 2. Redistributions in binary form must reproduce the above copyright
  5478  //    notice, this list of conditions and the following disclaimer in the
  5479  //    documentation and/or other materials provided with the distribution.
  5480  // 3. All advertising materials mentioning features or use of this software
  5481  //    must display the following acknowledgement:
  5482  //	This product includes software developed by the University of
  5483  //	California, Berkeley and its contributors.
  5484  // 4. Neither the name of the University nor the names of its contributors
  5485  //    may be used to endorse or promote products derived from this software
  5486  //    without specific prior written permission.
  5487  //
  5488  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5489  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5490  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5491  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5492  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5493  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5494  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5495  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5496  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5497  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5498  // SUCH DAMAGE.
  5499  //
  5500  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  5501  
  5502  // pthread opaque structures
  5503  
  5504  type X__darwin_pthread_handler_rec = struct {
  5505  	F__routine uintptr
  5506  	F__arg     uintptr
  5507  	F__next    uintptr
  5508  } /* _pthread_types.h:57:1 */
  5509  
  5510  type X_opaque_pthread_attr_t = struct {
  5511  	F__sig    int64
  5512  	F__opaque [56]int8
  5513  } /* _pthread_types.h:63:1 */
  5514  
  5515  type X_opaque_pthread_cond_t = struct {
  5516  	F__sig    int64
  5517  	F__opaque [40]int8
  5518  } /* _pthread_types.h:68:1 */
  5519  
  5520  type X_opaque_pthread_condattr_t = struct {
  5521  	F__sig    int64
  5522  	F__opaque [8]int8
  5523  } /* _pthread_types.h:73:1 */
  5524  
  5525  type X_opaque_pthread_mutex_t = struct {
  5526  	F__sig    int64
  5527  	F__opaque [56]int8
  5528  } /* _pthread_types.h:78:1 */
  5529  
  5530  type X_opaque_pthread_mutexattr_t = struct {
  5531  	F__sig    int64
  5532  	F__opaque [8]int8
  5533  } /* _pthread_types.h:83:1 */
  5534  
  5535  type X_opaque_pthread_once_t = struct {
  5536  	F__sig    int64
  5537  	F__opaque [8]int8
  5538  } /* _pthread_types.h:88:1 */
  5539  
  5540  type X_opaque_pthread_rwlock_t = struct {
  5541  	F__sig    int64
  5542  	F__opaque [192]int8
  5543  } /* _pthread_types.h:93:1 */
  5544  
  5545  type X_opaque_pthread_rwlockattr_t = struct {
  5546  	F__sig    int64
  5547  	F__opaque [16]int8
  5548  } /* _pthread_types.h:98:1 */
  5549  
  5550  type X_opaque_pthread_t = struct {
  5551  	F__sig           int64
  5552  	F__cleanup_stack uintptr
  5553  	F__opaque        [8176]int8
  5554  } /* _pthread_types.h:103:1 */
  5555  
  5556  type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t             /* _pthread_types.h:109:39 */
  5557  type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t             /* _pthread_types.h:110:39 */
  5558  type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t     /* _pthread_types.h:111:43 */
  5559  type X__darwin_pthread_key_t = uint64                               /* _pthread_types.h:112:23 */
  5560  type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t           /* _pthread_types.h:113:40 */
  5561  type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t   /* _pthread_types.h:114:44 */
  5562  type X__darwin_pthread_once_t = X_opaque_pthread_once_t             /* _pthread_types.h:115:39 */
  5563  type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t         /* _pthread_types.h:116:41 */
  5564  type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  5565  type X__darwin_pthread_t = uintptr                                  /* _pthread_types.h:118:34 */
  5566  
  5567  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5568  //
  5569  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5570  //
  5571  // This file contains Original Code and/or Modifications of Original Code
  5572  // as defined in and that are subject to the Apple Public Source License
  5573  // Version 2.0 (the 'License'). You may not use this file except in
  5574  // compliance with the License. The rights granted to you under the License
  5575  // may not be used to create, or enable the creation or redistribution of,
  5576  // unlawful or unlicensed copies of an Apple operating system, or to
  5577  // circumvent, violate, or enable the circumvention or violation of, any
  5578  // terms of an Apple operating system software license agreement.
  5579  //
  5580  // Please obtain a copy of the License at
  5581  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5582  //
  5583  // The Original Code and all software distributed under the License are
  5584  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5585  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5586  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5587  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5588  // Please see the License for the specific language governing rights and
  5589  // limitations under the License.
  5590  //
  5591  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5592  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5593  //
  5594  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5595  //
  5596  // This file contains Original Code and/or Modifications of Original Code
  5597  // as defined in and that are subject to the Apple Public Source License
  5598  // Version 2.0 (the 'License'). You may not use this file except in
  5599  // compliance with the License. The rights granted to you under the License
  5600  // may not be used to create, or enable the creation or redistribution of,
  5601  // unlawful or unlicensed copies of an Apple operating system, or to
  5602  // circumvent, violate, or enable the circumvention or violation of, any
  5603  // terms of an Apple operating system software license agreement.
  5604  //
  5605  // Please obtain a copy of the License at
  5606  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5607  //
  5608  // The Original Code and all software distributed under the License are
  5609  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5610  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5611  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5612  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5613  // Please see the License for the specific language governing rights and
  5614  // limitations under the License.
  5615  //
  5616  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5617  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5618  
  5619  // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  5620  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5621  // Copyright (c) 1990, 1993
  5622  //	The Regents of the University of California.  All rights reserved.
  5623  //
  5624  // Redistribution and use in source and binary forms, with or without
  5625  // modification, are permitted provided that the following conditions
  5626  // are met:
  5627  // 1. Redistributions of source code must retain the above copyright
  5628  //    notice, this list of conditions and the following disclaimer.
  5629  // 2. Redistributions in binary form must reproduce the above copyright
  5630  //    notice, this list of conditions and the following disclaimer in the
  5631  //    documentation and/or other materials provided with the distribution.
  5632  // 3. All advertising materials mentioning features or use of this software
  5633  //    must display the following acknowledgement:
  5634  //	This product includes software developed by the University of
  5635  //	California, Berkeley and its contributors.
  5636  // 4. Neither the name of the University nor the names of its contributors
  5637  //    may be used to endorse or promote products derived from this software
  5638  //    without specific prior written permission.
  5639  //
  5640  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5641  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5642  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5643  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5644  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5645  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5646  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5647  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5648  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5649  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5650  // SUCH DAMAGE.
  5651  //
  5652  //	@(#)types.h	8.3 (Berkeley) 1/5/94
  5653  
  5654  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  5655  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  5656  //
  5657  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5658  //
  5659  // This file contains Original Code and/or Modifications of Original Code
  5660  // as defined in and that are subject to the Apple Public Source License
  5661  // Version 2.0 (the 'License'). You may not use this file except in
  5662  // compliance with the License. The rights granted to you under the License
  5663  // may not be used to create, or enable the creation or redistribution of,
  5664  // unlawful or unlicensed copies of an Apple operating system, or to
  5665  // circumvent, violate, or enable the circumvention or violation of, any
  5666  // terms of an Apple operating system software license agreement.
  5667  //
  5668  // Please obtain a copy of the License at
  5669  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5670  //
  5671  // The Original Code and all software distributed under the License are
  5672  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5673  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5674  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5675  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5676  // Please see the License for the specific language governing rights and
  5677  // limitations under the License.
  5678  //
  5679  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5680  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  5681  // Copyright (c) 1991, 1993
  5682  //	The Regents of the University of California.  All rights reserved.
  5683  //
  5684  // This code is derived from software contributed to Berkeley by
  5685  // Berkeley Software Design, Inc.
  5686  //
  5687  // Redistribution and use in source and binary forms, with or without
  5688  // modification, are permitted provided that the following conditions
  5689  // are met:
  5690  // 1. Redistributions of source code must retain the above copyright
  5691  //    notice, this list of conditions and the following disclaimer.
  5692  // 2. Redistributions in binary form must reproduce the above copyright
  5693  //    notice, this list of conditions and the following disclaimer in the
  5694  //    documentation and/or other materials provided with the distribution.
  5695  // 3. All advertising materials mentioning features or use of this software
  5696  //    must display the following acknowledgement:
  5697  //	This product includes software developed by the University of
  5698  //	California, Berkeley and its contributors.
  5699  // 4. Neither the name of the University nor the names of its contributors
  5700  //    may be used to endorse or promote products derived from this software
  5701  //    without specific prior written permission.
  5702  //
  5703  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  5704  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  5705  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  5706  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  5707  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  5708  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  5709  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  5710  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  5711  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  5712  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  5713  // SUCH DAMAGE.
  5714  //
  5715  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  5716  
  5717  // Basic integral types.  Omit the typedef if
  5718  // not possible for a machine/compiler combination.
  5719  // Copyright (c) 2012 Apple Inc. All rights reserved.
  5720  //
  5721  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5722  //
  5723  // This file contains Original Code and/or Modifications of Original Code
  5724  // as defined in and that are subject to the Apple Public Source License
  5725  // Version 2.0 (the 'License'). You may not use this file except in
  5726  // compliance with the License. The rights granted to you under the License
  5727  // may not be used to create, or enable the creation or redistribution of,
  5728  // unlawful or unlicensed copies of an Apple operating system, or to
  5729  // circumvent, violate, or enable the circumvention or violation of, any
  5730  // terms of an Apple operating system software license agreement.
  5731  //
  5732  // Please obtain a copy of the License at
  5733  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5734  //
  5735  // The Original Code and all software distributed under the License are
  5736  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5737  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5738  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5739  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5740  // Please see the License for the specific language governing rights and
  5741  // limitations under the License.
  5742  //
  5743  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5744  // Copyright (c) 2012 Apple Inc. All rights reserved.
  5745  //
  5746  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5747  //
  5748  // This file contains Original Code and/or Modifications of Original Code
  5749  // as defined in and that are subject to the Apple Public Source License
  5750  // Version 2.0 (the 'License'). You may not use this file except in
  5751  // compliance with the License. The rights granted to you under the License
  5752  // may not be used to create, or enable the creation or redistribution of,
  5753  // unlawful or unlicensed copies of an Apple operating system, or to
  5754  // circumvent, violate, or enable the circumvention or violation of, any
  5755  // terms of an Apple operating system software license agreement.
  5756  //
  5757  // Please obtain a copy of the License at
  5758  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5759  //
  5760  // The Original Code and all software distributed under the License are
  5761  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5762  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5763  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5764  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5765  // Please see the License for the specific language governing rights and
  5766  // limitations under the License.
  5767  //
  5768  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5769  // Copyright (c) 2012 Apple Inc. All rights reserved.
  5770  //
  5771  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5772  //
  5773  // This file contains Original Code and/or Modifications of Original Code
  5774  // as defined in and that are subject to the Apple Public Source License
  5775  // Version 2.0 (the 'License'). You may not use this file except in
  5776  // compliance with the License. The rights granted to you under the License
  5777  // may not be used to create, or enable the creation or redistribution of,
  5778  // unlawful or unlicensed copies of an Apple operating system, or to
  5779  // circumvent, violate, or enable the circumvention or violation of, any
  5780  // terms of an Apple operating system software license agreement.
  5781  //
  5782  // Please obtain a copy of the License at
  5783  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5784  //
  5785  // The Original Code and all software distributed under the License are
  5786  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5787  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5788  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5789  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5790  // Please see the License for the specific language governing rights and
  5791  // limitations under the License.
  5792  //
  5793  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5794  // Copyright (c) 2012 Apple Inc. All rights reserved.
  5795  //
  5796  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5797  //
  5798  // This file contains Original Code and/or Modifications of Original Code
  5799  // as defined in and that are subject to the Apple Public Source License
  5800  // Version 2.0 (the 'License'). You may not use this file except in
  5801  // compliance with the License. The rights granted to you under the License
  5802  // may not be used to create, or enable the creation or redistribution of,
  5803  // unlawful or unlicensed copies of an Apple operating system, or to
  5804  // circumvent, violate, or enable the circumvention or violation of, any
  5805  // terms of an Apple operating system software license agreement.
  5806  //
  5807  // Please obtain a copy of the License at
  5808  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5809  //
  5810  // The Original Code and all software distributed under the License are
  5811  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5812  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5813  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5814  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5815  // Please see the License for the specific language governing rights and
  5816  // limitations under the License.
  5817  //
  5818  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5819  
  5820  // Copyright (c) 2016 Apple Inc. All rights reserved.
  5821  //
  5822  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5823  //
  5824  // This file contains Original Code and/or Modifications of Original Code
  5825  // as defined in and that are subject to the Apple Public Source License
  5826  // Version 2.0 (the 'License'). You may not use this file except in
  5827  // compliance with the License. The rights granted to you under the License
  5828  // may not be used to create, or enable the creation or redistribution of,
  5829  // unlawful or unlicensed copies of an Apple operating system, or to
  5830  // circumvent, violate, or enable the circumvention or violation of, any
  5831  // terms of an Apple operating system software license agreement.
  5832  //
  5833  // Please obtain a copy of the License at
  5834  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5835  //
  5836  // The Original Code and all software distributed under the License are
  5837  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5838  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5839  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5840  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5841  // Please see the License for the specific language governing rights and
  5842  // limitations under the License.
  5843  //
  5844  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5845  type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  5846  // Copyright (c) 2012 Apple Inc. All rights reserved.
  5847  //
  5848  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5849  //
  5850  // This file contains Original Code and/or Modifications of Original Code
  5851  // as defined in and that are subject to the Apple Public Source License
  5852  // Version 2.0 (the 'License'). You may not use this file except in
  5853  // compliance with the License. The rights granted to you under the License
  5854  // may not be used to create, or enable the creation or redistribution of,
  5855  // unlawful or unlicensed copies of an Apple operating system, or to
  5856  // circumvent, violate, or enable the circumvention or violation of, any
  5857  // terms of an Apple operating system software license agreement.
  5858  //
  5859  // Please obtain a copy of the License at
  5860  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5861  //
  5862  // The Original Code and all software distributed under the License are
  5863  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5864  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5865  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5866  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5867  // Please see the License for the specific language governing rights and
  5868  // limitations under the License.
  5869  //
  5870  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5871  type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  5872  // Copyright (c) 2012 Apple Inc. All rights reserved.
  5873  //
  5874  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5875  //
  5876  // This file contains Original Code and/or Modifications of Original Code
  5877  // as defined in and that are subject to the Apple Public Source License
  5878  // Version 2.0 (the 'License'). You may not use this file except in
  5879  // compliance with the License. The rights granted to you under the License
  5880  // may not be used to create, or enable the creation or redistribution of,
  5881  // unlawful or unlicensed copies of an Apple operating system, or to
  5882  // circumvent, violate, or enable the circumvention or violation of, any
  5883  // terms of an Apple operating system software license agreement.
  5884  //
  5885  // Please obtain a copy of the License at
  5886  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5887  //
  5888  // The Original Code and all software distributed under the License are
  5889  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5890  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5891  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5892  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5893  // Please see the License for the specific language governing rights and
  5894  // limitations under the License.
  5895  //
  5896  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5897  type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  5898  // Copyright (c) 2012 Apple Inc. All rights reserved.
  5899  //
  5900  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5901  //
  5902  // This file contains Original Code and/or Modifications of Original Code
  5903  // as defined in and that are subject to the Apple Public Source License
  5904  // Version 2.0 (the 'License'). You may not use this file except in
  5905  // compliance with the License. The rights granted to you under the License
  5906  // may not be used to create, or enable the creation or redistribution of,
  5907  // unlawful or unlicensed copies of an Apple operating system, or to
  5908  // circumvent, violate, or enable the circumvention or violation of, any
  5909  // terms of an Apple operating system software license agreement.
  5910  //
  5911  // Please obtain a copy of the License at
  5912  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5913  //
  5914  // The Original Code and all software distributed under the License are
  5915  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5916  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5917  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5918  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5919  // Please see the License for the specific language governing rights and
  5920  // limitations under the License.
  5921  //
  5922  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5923  type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  5924  
  5925  type Register_t = Int64_t /* types.h:66:33 */
  5926  
  5927  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5928  //
  5929  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5930  //
  5931  // This file contains Original Code and/or Modifications of Original Code
  5932  // as defined in and that are subject to the Apple Public Source License
  5933  // Version 2.0 (the 'License'). You may not use this file except in
  5934  // compliance with the License. The rights granted to you under the License
  5935  // may not be used to create, or enable the creation or redistribution of,
  5936  // unlawful or unlicensed copies of an Apple operating system, or to
  5937  // circumvent, violate, or enable the circumvention or violation of, any
  5938  // terms of an Apple operating system software license agreement.
  5939  //
  5940  // Please obtain a copy of the License at
  5941  // http://www.opensource.apple.com/apsl/ and read it before using this 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_OSREFERENCE_LICENSE_HEADER_END@
  5952  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5953  //
  5954  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5955  //
  5956  // This file contains Original Code and/or Modifications of Original Code
  5957  // as defined in and that are subject to the Apple Public Source License
  5958  // Version 2.0 (the 'License'). You may not use this file except in
  5959  // compliance with the License. The rights granted to you under the License
  5960  // may not be used to create, or enable the creation or redistribution of,
  5961  // unlawful or unlicensed copies of an Apple operating system, or to
  5962  // circumvent, violate, or enable the circumvention or violation of, any
  5963  // terms of an Apple operating system software license agreement.
  5964  //
  5965  // Please obtain a copy of the License at
  5966  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  5967  //
  5968  // The Original Code and all software distributed under the License are
  5969  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  5970  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  5971  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  5972  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  5973  // Please see the License for the specific language governing rights and
  5974  // limitations under the License.
  5975  //
  5976  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  5977  
  5978  type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
  5979  
  5980  // These types are used for reserving the largest possible size.
  5981  type User_addr_t = U_int64_t  /* types.h:77:33 */
  5982  type User_size_t = U_int64_t  /* types.h:78:33 */
  5983  type User_ssize_t = Int64_t   /* types.h:79:33 */
  5984  type User_long_t = Int64_t    /* types.h:80:33 */
  5985  type User_ulong_t = U_int64_t /* types.h:81:33 */
  5986  type User_time_t = Int64_t    /* types.h:82:33 */
  5987  type User_off_t = Int64_t     /* types.h:83:33 */
  5988  
  5989  // This defines the size of syscall arguments after copying into the kernel:
  5990  type Syscall_arg_t = U_int64_t /* types.h:104:33 */
  5991  
  5992  type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  5993  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  5994  //
  5995  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  5996  //
  5997  // This file contains Original Code and/or Modifications of Original Code
  5998  // as defined in and that are subject to the Apple Public Source License
  5999  // Version 2.0 (the 'License'). You may not use this file except in
  6000  // compliance with the License. The rights granted to you under the License
  6001  // may not be used to create, or enable the creation or redistribution of,
  6002  // unlawful or unlicensed copies of an Apple operating system, or to
  6003  // circumvent, violate, or enable the circumvention or violation of, any
  6004  // terms of an Apple operating system software license agreement.
  6005  //
  6006  // Please obtain a copy of the License at
  6007  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6008  //
  6009  // The Original Code and all software distributed under the License are
  6010  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6011  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6012  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6013  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6014  // Please see the License for the specific language governing rights and
  6015  // limitations under the License.
  6016  //
  6017  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6018  
  6019  // 7.18.1.5 Greatest-width integer types
  6020  // Copyright (c) 2012 Apple Inc. All rights reserved.
  6021  //
  6022  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6023  //
  6024  // This file contains Original Code and/or Modifications of Original Code
  6025  // as defined in and that are subject to the Apple Public Source License
  6026  // Version 2.0 (the 'License'). You may not use this file except in
  6027  // compliance with the License. The rights granted to you under the License
  6028  // may not be used to create, or enable the creation or redistribution of,
  6029  // unlawful or unlicensed copies of an Apple operating system, or to
  6030  // circumvent, violate, or enable the circumvention or violation of, any
  6031  // terms of an Apple operating system software license agreement.
  6032  //
  6033  // Please obtain a copy of the License at
  6034  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6035  //
  6036  // The Original Code and all software distributed under the License are
  6037  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6038  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6039  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6040  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6041  // Please see the License for the specific language governing rights and
  6042  // limitations under the License.
  6043  //
  6044  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6045  
  6046  type Intmax_t = int64 /* _intmax_t.h:32:25 */
  6047  // Copyright (c) 2012 Apple Inc. All rights reserved.
  6048  //
  6049  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6050  //
  6051  // This file contains Original Code and/or Modifications of Original Code
  6052  // as defined in and that are subject to the Apple Public Source License
  6053  // Version 2.0 (the 'License'). You may not use this file except in
  6054  // compliance with the License. The rights granted to you under the License
  6055  // may not be used to create, or enable the creation or redistribution of,
  6056  // unlawful or unlicensed copies of an Apple operating system, or to
  6057  // circumvent, violate, or enable the circumvention or violation of, any
  6058  // terms of an Apple operating system software license agreement.
  6059  //
  6060  // Please obtain a copy of the License at
  6061  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6062  //
  6063  // The Original Code and all software distributed under the License are
  6064  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6065  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6066  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6067  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6068  // Please see the License for the specific language governing rights and
  6069  // limitations under the License.
  6070  //
  6071  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6072  
  6073  type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */
  6074  
  6075  // 7.18.4 Macros for integer constants
  6076  
  6077  // 7.18.2 Limits of specified-width integer types:
  6078  //   These #defines specify the minimum and maximum limits
  6079  //   of each of the types declared above.
  6080  //
  6081  //   They must have "the same type as would an expression that is an
  6082  //   object of the corresponding type converted according to the integer
  6083  //   promotion".
  6084  
  6085  // 7.18.2.1 Limits of exact-width integer types
  6086  
  6087  //
  6088  //       Note:  the literal "most negative int" cannot be written in C --
  6089  //       the rules in the standard (section 6.4.4.1 in C99) will give it
  6090  //       an unsigned type, so INT32_MIN (and the most negative member of
  6091  //       any larger signed type) must be written via a constant expression.
  6092  //
  6093  
  6094  // 7.18.2.2 Limits of minimum-width integer types
  6095  
  6096  // 7.18.2.3 Limits of fastest minimum-width integer types
  6097  
  6098  // 7.18.2.4 Limits of integer types capable of holding object pointers
  6099  
  6100  // 7.18.2.5 Limits of greatest-width integer types
  6101  
  6102  // 7.18.3 "Other"
  6103  
  6104  // WCHAR_MIN should be 0 if wchar_t is an unsigned type and
  6105  //    (-WCHAR_MAX-1) if wchar_t is a signed type.  Unfortunately,
  6106  //    it turns out that -fshort-wchar changes the signedness of
  6107  //    the type.
  6108  
  6109  //
  6110  //
  6111  // Copyright 1985, 1986, 1987, 1991, 1998  The Open Group
  6112  //
  6113  // Permission to use, copy, modify, distribute, and sell this software and its
  6114  // documentation for any purpose is hereby granted without fee, provided that
  6115  // the above copyright notice appear in all copies and that both that
  6116  // copyright notice and this permission notice appear in supporting
  6117  // documentation.
  6118  //
  6119  // The above copyright notice and this permission notice shall be included in
  6120  // all copies or substantial portions of the Software.
  6121  //
  6122  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  6123  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  6124  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  6125  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  6126  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  6127  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  6128  //
  6129  // Except as contained in this notice, the name of The Open Group shall not be
  6130  // used in advertising or otherwise to promote the sale, use or other dealings
  6131  // in this Software without prior written authorization from The Open Group.
  6132  //
  6133  
  6134  //	Xlib.h - Header definition and support file for the C subroutine
  6135  //	interface library (Xlib) to the X Window System Protocol (V11).
  6136  //	Structures and symbols starting with "_" are private to the library.
  6137  
  6138  // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  6139  //
  6140  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6141  //
  6142  // This file contains Original Code and/or Modifications of Original Code
  6143  // as defined in and that are subject to the Apple Public Source License
  6144  // Version 2.0 (the 'License'). You may not use this file except in
  6145  // compliance with the License. The rights granted to you under the License
  6146  // may not be used to create, or enable the creation or redistribution of,
  6147  // unlawful or unlicensed copies of an Apple operating system, or to
  6148  // circumvent, violate, or enable the circumvention or violation of, any
  6149  // terms of an Apple operating system software license agreement.
  6150  //
  6151  // Please obtain a copy of the License at
  6152  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6153  //
  6154  // The Original Code and all software distributed under the License are
  6155  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6156  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6157  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6158  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6159  // Please see the License for the specific language governing rights and
  6160  // limitations under the License.
  6161  //
  6162  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6163  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  6164  // Copyright (c) 1982, 1986, 1991, 1993, 1994
  6165  //	The Regents of the University of California.  All rights reserved.
  6166  // (c) UNIX System Laboratories, Inc.
  6167  // All or some portions of this file are derived from material licensed
  6168  // to the University of California by American Telephone and Telegraph
  6169  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  6170  // the permission of UNIX System Laboratories, Inc.
  6171  //
  6172  // Redistribution and use in source and binary forms, with or without
  6173  // modification, are permitted provided that the following conditions
  6174  // are met:
  6175  // 1. Redistributions of source code must retain the above copyright
  6176  //    notice, this list of conditions and the following disclaimer.
  6177  // 2. Redistributions in binary form must reproduce the above copyright
  6178  //    notice, this list of conditions and the following disclaimer in the
  6179  //    documentation and/or other materials provided with the distribution.
  6180  // 3. All advertising materials mentioning features or use of this software
  6181  //    must display the following acknowledgement:
  6182  //	This product includes software developed by the University of
  6183  //	California, Berkeley and its contributors.
  6184  // 4. Neither the name of the University nor the names of its contributors
  6185  //    may be used to endorse or promote products derived from this software
  6186  //    without specific prior written permission.
  6187  //
  6188  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6189  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6190  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6191  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6192  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6193  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6194  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6195  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6196  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6197  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6198  // SUCH DAMAGE.
  6199  //
  6200  //	@(#)types.h	8.4 (Berkeley) 1/21/94
  6201  
  6202  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
  6203  //
  6204  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6205  //
  6206  // This file contains Original Code and/or Modifications of Original Code
  6207  // as defined in and that are subject to the Apple Public Source License
  6208  // Version 2.0 (the 'License'). You may not use this file except in
  6209  // compliance with the License. The rights granted to you under the License
  6210  // may not be used to create, or enable the creation or redistribution of,
  6211  // unlawful or unlicensed copies of an Apple operating system, or to
  6212  // circumvent, violate, or enable the circumvention or violation of, any
  6213  // terms of an Apple operating system software license agreement.
  6214  //
  6215  // Please obtain a copy of the License at
  6216  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6217  //
  6218  // The Original Code and all software distributed under the License are
  6219  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6220  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6221  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6222  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6223  // Please see the License for the specific language governing rights and
  6224  // limitations under the License.
  6225  //
  6226  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6227  
  6228  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  6229  //
  6230  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6231  //
  6232  // This file contains Original Code and/or Modifications of Original Code
  6233  // as defined in and that are subject to the Apple Public Source License
  6234  // Version 2.0 (the 'License'). You may not use this file except in
  6235  // compliance with the License. The rights granted to you under the License
  6236  // may not be used to create, or enable the creation or redistribution of,
  6237  // unlawful or unlicensed copies of an Apple operating system, or to
  6238  // circumvent, violate, or enable the circumvention or violation of, any
  6239  // terms of an Apple operating system software license agreement.
  6240  //
  6241  // Please obtain a copy of the License at
  6242  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6243  //
  6244  // The Original Code and all software distributed under the License are
  6245  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6246  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6247  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6248  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6249  // Please see the License for the specific language governing rights and
  6250  // limitations under the License.
  6251  //
  6252  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6253  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6254  // Copyright (c) 1991, 1993
  6255  //	The Regents of the University of California.  All rights reserved.
  6256  //
  6257  // This code is derived from software contributed to Berkeley by
  6258  // Berkeley Software Design, Inc.
  6259  //
  6260  // Redistribution and use in source and binary forms, with or without
  6261  // modification, are permitted provided that the following conditions
  6262  // are met:
  6263  // 1. Redistributions of source code must retain the above copyright
  6264  //    notice, this list of conditions and the following disclaimer.
  6265  // 2. Redistributions in binary form must reproduce the above copyright
  6266  //    notice, this list of conditions and the following disclaimer in the
  6267  //    documentation and/or other materials provided with the distribution.
  6268  // 3. All advertising materials mentioning features or use of this software
  6269  //    must display the following acknowledgement:
  6270  //	This product includes software developed by the University of
  6271  //	California, Berkeley and its contributors.
  6272  // 4. Neither the name of the University nor the names of its contributors
  6273  //    may be used to endorse or promote products derived from this software
  6274  //    without specific prior written permission.
  6275  //
  6276  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6277  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6278  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6279  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6280  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6281  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6282  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6283  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6284  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6285  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6286  // SUCH DAMAGE.
  6287  //
  6288  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  6289  
  6290  // Machine type dependent parameters.
  6291  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  6292  //
  6293  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6294  //
  6295  // This file contains Original Code and/or Modifications of Original Code
  6296  // as defined in and that are subject to the Apple Public Source License
  6297  // Version 2.0 (the 'License'). You may not use this file except in
  6298  // compliance with the License. The rights granted to you under the License
  6299  // may not be used to create, or enable the creation or redistribution of,
  6300  // unlawful or unlicensed copies of an Apple operating system, or to
  6301  // circumvent, violate, or enable the circumvention or violation of, any
  6302  // terms of an Apple operating system software license agreement.
  6303  //
  6304  // Please obtain a copy of the License at
  6305  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6306  //
  6307  // The Original Code and all software distributed under the License are
  6308  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6309  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6310  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6311  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6312  // Please see the License for the specific language governing rights and
  6313  // limitations under the License.
  6314  //
  6315  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6316  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6317  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6318  //
  6319  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6320  //
  6321  // This file contains Original Code and/or Modifications of Original Code
  6322  // as defined in and that are subject to the Apple Public Source License
  6323  // Version 2.0 (the 'License'). You may not use this file except in
  6324  // compliance with the License. The rights granted to you under the License
  6325  // may not be used to create, or enable the creation or redistribution of,
  6326  // unlawful or unlicensed copies of an Apple operating system, or to
  6327  // circumvent, violate, or enable the circumvention or violation of, any
  6328  // terms of an Apple operating system software license agreement.
  6329  //
  6330  // Please obtain a copy of the License at
  6331  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6332  //
  6333  // The Original Code and all software distributed under the License are
  6334  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6335  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6336  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6337  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6338  // Please see the License for the specific language governing rights and
  6339  // limitations under the License.
  6340  //
  6341  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6342  
  6343  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  6344  //
  6345  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6346  //
  6347  // This file contains Original Code and/or Modifications of Original Code
  6348  // as defined in and that are subject to the Apple Public Source License
  6349  // Version 2.0 (the 'License'). You may not use this file except in
  6350  // compliance with the License. The rights granted to you under the License
  6351  // may not be used to create, or enable the creation or redistribution of,
  6352  // unlawful or unlicensed copies of an Apple operating system, or to
  6353  // circumvent, violate, or enable the circumvention or violation of, any
  6354  // terms of an Apple operating system software license agreement.
  6355  //
  6356  // Please obtain a copy of the License at
  6357  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6358  //
  6359  // The Original Code and all software distributed under the License are
  6360  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6361  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6362  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6363  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6364  // Please see the License for the specific language governing rights and
  6365  // limitations under the License.
  6366  //
  6367  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6368  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6369  
  6370  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  6371  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6372  // Copyright (c) 1987, 1991, 1993
  6373  //	The Regents of the University of California.  All rights reserved.
  6374  //
  6375  // Redistribution and use in source and binary forms, with or without
  6376  // modification, are permitted provided that the following conditions
  6377  // are met:
  6378  // 1. Redistributions of source code must retain the above copyright
  6379  //    notice, this list of conditions and the following disclaimer.
  6380  // 2. Redistributions in binary form must reproduce the above copyright
  6381  //    notice, this list of conditions and the following disclaimer in the
  6382  //    documentation and/or other materials provided with the distribution.
  6383  // 3. All advertising materials mentioning features or use of this software
  6384  //    must display the following acknowledgement:
  6385  //	This product includes software developed by the University of
  6386  //	California, Berkeley and its contributors.
  6387  // 4. Neither the name of the University nor the names of its contributors
  6388  //    may be used to endorse or promote products derived from this software
  6389  //    without specific prior written permission.
  6390  //
  6391  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6392  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6393  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6394  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6395  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6396  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6397  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6398  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6399  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6400  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6401  // SUCH DAMAGE.
  6402  //
  6403  //	@(#)endian.h	8.1 (Berkeley) 6/11/93
  6404  
  6405  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  6406  //
  6407  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6408  //
  6409  // This file contains Original Code and/or Modifications of Original Code
  6410  // as defined in and that are subject to the Apple Public Source License
  6411  // Version 2.0 (the 'License'). You may not use this file except in
  6412  // compliance with the License. The rights granted to you under the License
  6413  // may not be used to create, or enable the creation or redistribution of,
  6414  // unlawful or unlicensed copies of an Apple operating system, or to
  6415  // circumvent, violate, or enable the circumvention or violation of, any
  6416  // terms of an Apple operating system software license agreement.
  6417  //
  6418  // Please obtain a copy of the License at
  6419  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6420  //
  6421  // The Original Code and all software distributed under the License are
  6422  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6423  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6424  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6425  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6426  // Please see the License for the specific language governing rights and
  6427  // limitations under the License.
  6428  //
  6429  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6430  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6431  // Copyright (c) 1991, 1993
  6432  //	The Regents of the University of California.  All rights reserved.
  6433  //
  6434  // This code is derived from software contributed to Berkeley by
  6435  // Berkeley Software Design, Inc.
  6436  //
  6437  // Redistribution and use in source and binary forms, with or without
  6438  // modification, are permitted provided that the following conditions
  6439  // are met:
  6440  // 1. Redistributions of source code must retain the above copyright
  6441  //    notice, this list of conditions and the following disclaimer.
  6442  // 2. Redistributions in binary form must reproduce the above copyright
  6443  //    notice, this list of conditions and the following disclaimer in the
  6444  //    documentation and/or other materials provided with the distribution.
  6445  // 3. All advertising materials mentioning features or use of this software
  6446  //    must display the following acknowledgement:
  6447  //	This product includes software developed by the University of
  6448  //	California, Berkeley and its contributors.
  6449  // 4. Neither the name of the University nor the names of its contributors
  6450  //    may be used to endorse or promote products derived from this software
  6451  //    without specific prior written permission.
  6452  //
  6453  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6454  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6455  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6456  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6457  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6458  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6459  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6460  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6461  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6462  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6463  // SUCH DAMAGE.
  6464  //
  6465  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  6466  
  6467  // Define _NOQUAD if the compiler does NOT support 64-bit integers.
  6468  // #define _NOQUAD
  6469  
  6470  // Define the order of 32-bit words in 64-bit words.
  6471  
  6472  // Definitions for byte order, according to byte significance from low
  6473  // address to high.
  6474  
  6475  // Copyright (c) 2004, 2006 Apple Computer, Inc. All rights reserved.
  6476  //
  6477  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6478  //
  6479  // This file contains Original Code and/or Modifications of Original Code
  6480  // as defined in and that are subject to the Apple Public Source License
  6481  // Version 2.0 (the 'License'). You may not use this file except in
  6482  // compliance with the License. The rights granted to you under the License
  6483  // may not be used to create, or enable the creation or redistribution of,
  6484  // unlawful or unlicensed copies of an Apple operating system, or to
  6485  // circumvent, violate, or enable the circumvention or violation of, any
  6486  // terms of an Apple operating system software license agreement.
  6487  //
  6488  // Please obtain a copy of the License at
  6489  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6490  //
  6491  // The Original Code and all software distributed under the License are
  6492  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6493  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6494  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6495  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6496  // Please see the License for the specific language governing rights and
  6497  // limitations under the License.
  6498  //
  6499  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6500  
  6501  // Copyright (c) 1995 NeXT Computer, Inc. All rights reserved.
  6502  // Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
  6503  //
  6504  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6505  //
  6506  // This file contains Original Code and/or Modifications of Original Code
  6507  // as defined in and that are subject to the Apple Public Source License
  6508  // Version 2.0 (the 'License'). You may not use this file except in
  6509  // compliance with the License. The rights granted to you under the License
  6510  // may not be used to create, or enable the creation or redistribution of,
  6511  // unlawful or unlicensed copies of an Apple operating system, or to
  6512  // circumvent, violate, or enable the circumvention or violation of, any
  6513  // terms of an Apple operating system software license agreement.
  6514  //
  6515  // Please obtain a copy of the License at
  6516  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6517  //
  6518  // The Original Code and all software distributed under the License are
  6519  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6520  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6521  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6522  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6523  // Please see the License for the specific language governing rights and
  6524  // limitations under the License.
  6525  //
  6526  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6527  // Copyright (c) 1987, 1991, 1993
  6528  //	The Regents of the University of California.  All rights reserved.
  6529  //
  6530  // Redistribution and use in source and binary forms, with or without
  6531  // modification, are permitted provided that the following conditions
  6532  // are met:
  6533  // 1. Redistributions of source code must retain the above copyright
  6534  //    notice, this list of conditions and the following disclaimer.
  6535  // 2. Redistributions in binary form must reproduce the above copyright
  6536  //    notice, this list of conditions and the following disclaimer in the
  6537  //    documentation and/or other materials provided with the distribution.
  6538  // 3. All advertising materials mentioning features or use of this software
  6539  //    must display the following acknowledgement:
  6540  //	This product includes software developed by the University of
  6541  //	California, Berkeley and its contributors.
  6542  // 4. Neither the name of the University nor the names of its contributors
  6543  //    may be used to endorse or promote products derived from this software
  6544  //    without specific prior written permission.
  6545  //
  6546  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6547  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6548  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6549  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6550  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6551  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6552  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6553  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6554  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6555  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6556  // SUCH DAMAGE.
  6557  
  6558  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  6559  //
  6560  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6561  //
  6562  // This file contains Original Code and/or Modifications of Original Code
  6563  // as defined in and that are subject to the Apple Public Source License
  6564  // Version 2.0 (the 'License'). You may not use this file except in
  6565  // compliance with the License. The rights granted to you under the License
  6566  // may not be used to create, or enable the creation or redistribution of,
  6567  // unlawful or unlicensed copies of an Apple operating system, or to
  6568  // circumvent, violate, or enable the circumvention or violation of, any
  6569  // terms of an Apple operating system software license agreement.
  6570  //
  6571  // Please obtain a copy of the License at
  6572  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6573  //
  6574  // The Original Code and all software distributed under the License are
  6575  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6576  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6577  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6578  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6579  // Please see the License for the specific language governing rights and
  6580  // limitations under the License.
  6581  //
  6582  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6583  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  6584  // Copyright (c) 1991, 1993
  6585  //	The Regents of the University of California.  All rights reserved.
  6586  //
  6587  // This code is derived from software contributed to Berkeley by
  6588  // Berkeley Software Design, Inc.
  6589  //
  6590  // Redistribution and use in source and binary forms, with or without
  6591  // modification, are permitted provided that the following conditions
  6592  // are met:
  6593  // 1. Redistributions of source code must retain the above copyright
  6594  //    notice, this list of conditions and the following disclaimer.
  6595  // 2. Redistributions in binary form must reproduce the above copyright
  6596  //    notice, this list of conditions and the following disclaimer in the
  6597  //    documentation and/or other materials provided with the distribution.
  6598  // 3. All advertising materials mentioning features or use of this software
  6599  //    must display the following acknowledgement:
  6600  //	This product includes software developed by the University of
  6601  //	California, Berkeley and its contributors.
  6602  // 4. Neither the name of the University nor the names of its contributors
  6603  //    may be used to endorse or promote products derived from this software
  6604  //    without specific prior written permission.
  6605  //
  6606  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  6607  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  6608  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  6609  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  6610  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  6611  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  6612  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  6613  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  6614  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  6615  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  6616  // SUCH DAMAGE.
  6617  //
  6618  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
  6619  
  6620  // Macros for network/external number representation conversion.
  6621  
  6622  // Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
  6623  //
  6624  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6625  //
  6626  // This file contains Original Code and/or Modifications of Original Code
  6627  // as defined in and that are subject to the Apple Public Source License
  6628  // Version 2.0 (the 'License'). You may not use this file except in
  6629  // compliance with the License. The rights granted to you under the License
  6630  // may not be used to create, or enable the creation or redistribution of,
  6631  // unlawful or unlicensed copies of an Apple operating system, or to
  6632  // circumvent, violate, or enable the circumvention or violation of, any
  6633  // terms of an Apple operating system software license agreement.
  6634  //
  6635  // Please obtain a copy of the License at
  6636  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6637  //
  6638  // The Original Code and all software distributed under the License are
  6639  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6640  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6641  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6642  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6643  // Please see the License for the specific language governing rights and
  6644  // limitations under the License.
  6645  //
  6646  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6647  
  6648  // This header is normally included from <libkern/OSByteOrder.h>.  However,
  6649  // <sys/_endian.h> also includes this in the case of little-endian
  6650  // architectures, so that we can map OSByteOrder routines to the hton* and ntoh*
  6651  // macros.  This results in the asymmetry below; we only include
  6652  // <libkern/arch/_OSByteOrder.h> for little-endian architectures.
  6653  
  6654  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6655  //
  6656  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6657  //
  6658  // This file contains Original Code and/or Modifications of Original Code
  6659  // as defined in and that are subject to the Apple Public Source License
  6660  // Version 2.0 (the 'License'). You may not use this file except in
  6661  // compliance with the License. The rights granted to you under the License
  6662  // may not be used to create, or enable the creation or redistribution of,
  6663  // unlawful or unlicensed copies of an Apple operating system, or to
  6664  // circumvent, violate, or enable the circumvention or violation of, any
  6665  // terms of an Apple operating system software license agreement.
  6666  //
  6667  // Please obtain a copy of the License at
  6668  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6669  //
  6670  // The Original Code and all software distributed under the License are
  6671  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6672  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6673  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6674  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6675  // Please see the License for the specific language governing rights and
  6676  // limitations under the License.
  6677  //
  6678  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6679  
  6680  // Macros for swapping constant values in the preprocessing stage.
  6681  
  6682  // Copyright (c) 1999-2007 Apple Inc. All rights reserved.
  6683  
  6684  // Copyright (c) 2007 Apple Inc. All rights reserved.
  6685  //
  6686  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6687  //
  6688  // This file contains Original Code and/or Modifications of Original Code
  6689  // as defined in and that are subject to the Apple Public Source License
  6690  // Version 2.0 (the 'License'). You may not use this file except in
  6691  // compliance with the License. The rights granted to you under the License
  6692  // may not be used to create, or enable the creation or redistribution of,
  6693  // unlawful or unlicensed copies of an Apple operating system, or to
  6694  // circumvent, violate, or enable the circumvention or violation of, any
  6695  // terms of an Apple operating system software license agreement.
  6696  //
  6697  // Please obtain a copy of the License at
  6698  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6699  //
  6700  // The Original Code and all software distributed under the License are
  6701  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6702  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6703  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6704  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6705  // Please see the License for the specific language governing rights and
  6706  // limitations under the License.
  6707  //
  6708  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6709  
  6710  // Collect the __ARM_ARCH_*__ compiler flags into something easier to use.
  6711  
  6712  // Generic byte swapping functions.
  6713  
  6714  func _OSSwapInt16(tls *libc.TLS, _data Uint16_t) Uint16_t { /* OSByteOrder.h:15:1: */
  6715  	// Reduces to 'rev16' with clang
  6716  	return Uint16_t(int32(_data)<<8 | int32(_data)>>8)
  6717  }
  6718  
  6719  func _OSSwapInt32(tls *libc.TLS, _data Uint32_t) Uint32_t { /* OSByteOrder.h:25:1: */
  6720  	// This actually generates the best code
  6721  	_data = (_data^(_data>>16|_data<<16))&0xFF00FFFF>>8 ^ (_data>>8 | _data<<24)
  6722  
  6723  	return _data
  6724  }
  6725  
  6726  func _OSSwapInt64(tls *libc.TLS, _data Uint64_t) Uint64_t { /* OSByteOrder.h:41:1: */
  6727  	bp := tls.Alloc(8)
  6728  	defer tls.Free(8)
  6729  
  6730  	// var _u struct {F_ull Uint64_t;} at bp, 8
  6731  
  6732  	// This actually generates the best code
  6733  	*(*Uint32_t)(unsafe.Pointer(bp)) = Uint32_t(_data >> 32)
  6734  	*(*Uint32_t)(unsafe.Pointer(bp + 1*4)) = Uint32_t(_data & uint64(0xffffffff))
  6735  	*(*Uint32_t)(unsafe.Pointer(bp)) = _OSSwapInt32(tls, *(*Uint32_t)(unsafe.Pointer(bp)))
  6736  	*(*Uint32_t)(unsafe.Pointer(bp + 1*4)) = _OSSwapInt32(tls, *(*Uint32_t)(unsafe.Pointer(bp + 1*4)))
  6737  	return *(*Uint64_t)(unsafe.Pointer(bp))
  6738  }
  6739  
  6740  // Functions for byte reversed loads.
  6741  
  6742  type X_OSUnalignedU16 = struct{ F__val Uint16_t } /* OSByteOrder.h:64:1 */
  6743  
  6744  type X_OSUnalignedU32 = struct{ F__val Uint32_t } /* OSByteOrder.h:68:1 */
  6745  
  6746  type X_OSUnalignedU64 = struct{ F__val Uint64_t } /* OSByteOrder.h:72:1 */
  6747  
  6748  // Copyright (c) 2017 Apple Inc. All rights reserved.
  6749  //
  6750  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6751  //
  6752  // This file contains Original Code and/or Modifications of Original Code
  6753  // as defined in and that are subject to the Apple Public Source License
  6754  // Version 2.0 (the 'License'). You may not use this file except in
  6755  // compliance with the License. The rights granted to you under the License
  6756  // may not be used to create, or enable the creation or redistribution of,
  6757  // unlawful or unlicensed copies of an Apple operating system, or to
  6758  // circumvent, violate, or enable the circumvention or violation of, any
  6759  // terms of an Apple operating system software license agreement.
  6760  //
  6761  // Please obtain a copy of the License at
  6762  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6763  //
  6764  // The Original Code and all software distributed under the License are
  6765  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6766  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6767  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6768  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6769  // Please see the License for the specific language governing rights and
  6770  // limitations under the License.
  6771  //
  6772  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6773  type U_char = uint8 /* _u_char.h:30:25 */
  6774  // Copyright (c) 2017 Apple Inc. All rights reserved.
  6775  //
  6776  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6777  //
  6778  // This file contains Original Code and/or Modifications of Original Code
  6779  // as defined in and that are subject to the Apple Public Source License
  6780  // Version 2.0 (the 'License'). You may not use this file except in
  6781  // compliance with the License. The rights granted to you under the License
  6782  // may not be used to create, or enable the creation or redistribution of,
  6783  // unlawful or unlicensed copies of an Apple operating system, or to
  6784  // circumvent, violate, or enable the circumvention or violation of, any
  6785  // terms of an Apple operating system software license agreement.
  6786  //
  6787  // Please obtain a copy of the License at
  6788  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6789  //
  6790  // The Original Code and all software distributed under the License are
  6791  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6792  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6793  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6794  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6795  // Please see the License for the specific language governing rights and
  6796  // limitations under the License.
  6797  //
  6798  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6799  type U_short = uint16 /* _u_short.h:30:25 */
  6800  // Copyright (c) 2017 Apple Inc. All rights reserved.
  6801  //
  6802  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6803  //
  6804  // This file contains Original Code and/or Modifications of Original Code
  6805  // as defined in and that are subject to the Apple Public Source License
  6806  // Version 2.0 (the 'License'). You may not use this file except in
  6807  // compliance with the License. The rights granted to you under the License
  6808  // may not be used to create, or enable the creation or redistribution of,
  6809  // unlawful or unlicensed copies of an Apple operating system, or to
  6810  // circumvent, violate, or enable the circumvention or violation of, any
  6811  // terms of an Apple operating system software license agreement.
  6812  //
  6813  // Please obtain a copy of the License at
  6814  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6815  //
  6816  // The Original Code and all software distributed under the License are
  6817  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6818  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6819  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6820  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6821  // Please see the License for the specific language governing rights and
  6822  // limitations under the License.
  6823  //
  6824  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6825  type U_int = uint32  /* _u_int.h:30:25 */
  6826  type U_long = uint64 /* types.h:88:33 */
  6827  type Ushort = uint16 /* types.h:91:33 */ // Sys V compatibility
  6828  type Uint = uint32   /* types.h:92:33 */ // Sys V compatibility
  6829  
  6830  type U_quad_t = U_int64_t /* types.h:95:33 */ // quads
  6831  type Quad_t = Int64_t     /* types.h:96:33 */
  6832  type Qaddr_t = uintptr    /* types.h:97:16 */
  6833  
  6834  // Copyright (c) 2017 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  type Caddr_t = uintptr /* _caddr_t.h:30:14 */
  6860  
  6861  type Daddr_t = Int32_t /* types.h:101:33 */ // disk address
  6862  
  6863  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6864  //
  6865  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6866  //
  6867  // This file contains Original Code and/or Modifications of Original Code
  6868  // as defined in and that are subject to the Apple Public Source License
  6869  // Version 2.0 (the 'License'). You may not use this file except in
  6870  // compliance with the License. The rights granted to you under the License
  6871  // may not be used to create, or enable the creation or redistribution of,
  6872  // unlawful or unlicensed copies of an Apple operating system, or to
  6873  // circumvent, violate, or enable the circumvention or violation of, any
  6874  // terms of an Apple operating system software license agreement.
  6875  //
  6876  // Please obtain a copy of the License at
  6877  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6878  //
  6879  // The Original Code and all software distributed under the License are
  6880  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6881  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6882  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6883  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6884  // Please see the License for the specific language governing rights and
  6885  // limitations under the License.
  6886  //
  6887  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6888  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6889  //
  6890  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6891  //
  6892  // This file contains Original Code and/or Modifications of Original Code
  6893  // as defined in and that are subject to the Apple Public Source License
  6894  // Version 2.0 (the 'License'). You may not use this file except in
  6895  // compliance with the License. The rights granted to you under the License
  6896  // may not be used to create, or enable the creation or redistribution of,
  6897  // unlawful or unlicensed copies of an Apple operating system, or to
  6898  // circumvent, violate, or enable the circumvention or violation of, any
  6899  // terms of an Apple operating system software license agreement.
  6900  //
  6901  // Please obtain a copy of the License at
  6902  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6903  //
  6904  // The Original Code and all software distributed under the License are
  6905  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6906  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6907  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6908  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6909  // Please see the License for the specific language governing rights and
  6910  // limitations under the License.
  6911  //
  6912  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6913  
  6914  type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number
  6915  
  6916  type Fixpt_t = U_int32_t /* types.h:105:33 */ // fixed point number
  6917  
  6918  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6919  //
  6920  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6921  //
  6922  // This file contains Original Code and/or Modifications of Original Code
  6923  // as defined in and that are subject to the Apple Public Source License
  6924  // Version 2.0 (the 'License'). You may not use this file except in
  6925  // compliance with the License. The rights granted to you under the License
  6926  // may not be used to create, or enable the creation or redistribution of,
  6927  // unlawful or unlicensed copies of an Apple operating system, or to
  6928  // circumvent, violate, or enable the circumvention or violation of, any
  6929  // terms of an Apple operating system software license agreement.
  6930  //
  6931  // Please obtain a copy of the License at
  6932  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6933  //
  6934  // The Original Code and all software distributed under the License are
  6935  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6936  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6937  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6938  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6939  // Please see the License for the specific language governing rights and
  6940  // limitations under the License.
  6941  //
  6942  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6943  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6944  //
  6945  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6946  //
  6947  // This file contains Original Code and/or Modifications of Original Code
  6948  // as defined in and that are subject to the Apple Public Source License
  6949  // Version 2.0 (the 'License'). You may not use this file except in
  6950  // compliance with the License. The rights granted to you under the License
  6951  // may not be used to create, or enable the creation or redistribution of,
  6952  // unlawful or unlicensed copies of an Apple operating system, or to
  6953  // circumvent, violate, or enable the circumvention or violation of, any
  6954  // terms of an Apple operating system software license agreement.
  6955  //
  6956  // Please obtain a copy of the License at
  6957  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6958  //
  6959  // The Original Code and all software distributed under the License are
  6960  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6961  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6962  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6963  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6964  // Please see the License for the specific language governing rights and
  6965  // limitations under the License.
  6966  //
  6967  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6968  
  6969  type Blkcnt_t = X__darwin_blkcnt_t /* _blkcnt_t.h:31:34 */
  6970  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  6971  //
  6972  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6973  //
  6974  // This file contains Original Code and/or Modifications of Original Code
  6975  // as defined in and that are subject to the Apple Public Source License
  6976  // Version 2.0 (the 'License'). You may not use this file except in
  6977  // compliance with the License. The rights granted to you under the License
  6978  // may not be used to create, or enable the creation or redistribution of,
  6979  // unlawful or unlicensed copies of an Apple operating system, or to
  6980  // circumvent, violate, or enable the circumvention or violation of, any
  6981  // terms of an Apple operating system software license agreement.
  6982  //
  6983  // Please obtain a copy of the License at
  6984  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  6985  //
  6986  // The Original Code and all software distributed under the License are
  6987  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  6988  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  6989  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  6990  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  6991  // Please see the License for the specific language governing rights and
  6992  // limitations under the License.
  6993  //
  6994  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  6995  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  6996  //
  6997  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  6998  //
  6999  // This file contains Original Code and/or Modifications of Original Code
  7000  // as defined in and that are subject to the Apple Public Source License
  7001  // Version 2.0 (the 'License'). You may not use this file except in
  7002  // compliance with the License. The rights granted to you under the License
  7003  // may not be used to create, or enable the creation or redistribution of,
  7004  // unlawful or unlicensed copies of an Apple operating system, or to
  7005  // circumvent, violate, or enable the circumvention or violation of, any
  7006  // terms of an Apple operating system software license agreement.
  7007  //
  7008  // Please obtain a copy of the License at
  7009  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7010  //
  7011  // The Original Code and all software distributed under the License are
  7012  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7013  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7014  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7015  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7016  // Please see the License for the specific language governing rights and
  7017  // limitations under the License.
  7018  //
  7019  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7020  
  7021  type Blksize_t = X__darwin_blksize_t /* _blksize_t.h:31:35 */
  7022  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7023  //
  7024  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7025  //
  7026  // This file contains Original Code and/or Modifications of Original Code
  7027  // as defined in and that are subject to the Apple Public Source License
  7028  // Version 2.0 (the 'License'). You may not use this file except in
  7029  // compliance with the License. The rights granted to you under the License
  7030  // may not be used to create, or enable the creation or redistribution of,
  7031  // unlawful or unlicensed copies of an Apple operating system, or to
  7032  // circumvent, violate, or enable the circumvention or violation of, any
  7033  // terms of an Apple operating system software license agreement.
  7034  //
  7035  // Please obtain a copy of the License at
  7036  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7037  //
  7038  // The Original Code and all software distributed under the License are
  7039  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7040  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7041  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7042  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7043  // Please see the License for the specific language governing rights and
  7044  // limitations under the License.
  7045  //
  7046  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7047  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7048  //
  7049  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7050  //
  7051  // This file contains Original Code and/or Modifications of Original Code
  7052  // as defined in and that are subject to the Apple Public Source License
  7053  // Version 2.0 (the 'License'). You may not use this file except in
  7054  // compliance with the License. The rights granted to you under the License
  7055  // may not be used to create, or enable the creation or redistribution of,
  7056  // unlawful or unlicensed copies of an Apple operating system, or to
  7057  // circumvent, violate, or enable the circumvention or violation of, any
  7058  // terms of an Apple operating system software license agreement.
  7059  //
  7060  // Please obtain a copy of the License at
  7061  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7062  //
  7063  // The Original Code and all software distributed under the License are
  7064  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7065  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7066  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7067  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7068  // Please see the License for the specific language governing rights and
  7069  // limitations under the License.
  7070  //
  7071  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7072  
  7073  type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
  7074  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7075  //
  7076  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7077  //
  7078  // This file contains Original Code and/or Modifications of Original Code
  7079  // as defined in and that are subject to the Apple Public Source License
  7080  // Version 2.0 (the 'License'). You may not use this file except in
  7081  // compliance with the License. The rights granted to you under the License
  7082  // may not be used to create, or enable the creation or redistribution of,
  7083  // unlawful or unlicensed copies of an Apple operating system, or to
  7084  // circumvent, violate, or enable the circumvention or violation of, any
  7085  // terms of an Apple operating system software license agreement.
  7086  //
  7087  // Please obtain a copy of the License at
  7088  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7089  //
  7090  // The Original Code and all software distributed under the License are
  7091  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7092  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7093  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7094  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7095  // Please see the License for the specific language governing rights and
  7096  // limitations under the License.
  7097  //
  7098  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7099  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7100  //
  7101  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7102  //
  7103  // This file contains Original Code and/or Modifications of Original Code
  7104  // as defined in and that are subject to the Apple Public Source License
  7105  // Version 2.0 (the 'License'). You may not use this file except in
  7106  // compliance with the License. The rights granted to you under the License
  7107  // may not be used to create, or enable the creation or redistribution of,
  7108  // unlawful or unlicensed copies of an Apple operating system, or to
  7109  // circumvent, violate, or enable the circumvention or violation of, any
  7110  // terms of an Apple operating system software license agreement.
  7111  //
  7112  // Please obtain a copy of the License at
  7113  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7114  //
  7115  // The Original Code and all software distributed under the License are
  7116  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7117  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7118  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7119  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7120  // Please see the License for the specific language governing rights and
  7121  // limitations under the License.
  7122  //
  7123  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7124  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7125  type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address
  7126  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7127  //
  7128  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7129  //
  7130  // This file contains Original Code and/or Modifications of Original Code
  7131  // as defined in and that are subject to the Apple Public Source License
  7132  // Version 2.0 (the 'License'). You may not use this file except in
  7133  // compliance with the License. The rights granted to you under the License
  7134  // may not be used to create, or enable the creation or redistribution of,
  7135  // unlawful or unlicensed copies of an Apple operating system, or to
  7136  // circumvent, violate, or enable the circumvention or violation of, any
  7137  // terms of an Apple operating system software license agreement.
  7138  //
  7139  // Please obtain a copy of the License at
  7140  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7141  //
  7142  // The Original Code and all software distributed under the License are
  7143  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7144  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7145  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7146  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7147  // Please see the License for the specific language governing rights and
  7148  // limitations under the License.
  7149  //
  7150  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7151  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7152  //
  7153  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7154  //
  7155  // This file contains Original Code and/or Modifications of Original Code
  7156  // as defined in and that are subject to the Apple Public Source License
  7157  // Version 2.0 (the 'License'). You may not use this file except in
  7158  // compliance with the License. The rights granted to you under the License
  7159  // may not be used to create, or enable the creation or redistribution of,
  7160  // unlawful or unlicensed copies of an Apple operating system, or to
  7161  // circumvent, violate, or enable the circumvention or violation of, any
  7162  // terms of an Apple operating system software license agreement.
  7163  //
  7164  // Please obtain a copy of the License at
  7165  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7166  //
  7167  // The Original Code and all software distributed under the License are
  7168  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7169  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7170  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7171  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7172  // Please see the License for the specific language governing rights and
  7173  // limitations under the License.
  7174  //
  7175  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7176  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7177  type In_port_t = X__uint16_t /* _in_port_t.h:31:33 */
  7178  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7179  //
  7180  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7181  //
  7182  // This file contains Original Code and/or Modifications of Original Code
  7183  // as defined in and that are subject to the Apple Public Source License
  7184  // Version 2.0 (the 'License'). You may not use this file except in
  7185  // compliance with the License. The rights granted to you under the License
  7186  // may not be used to create, or enable the creation or redistribution of,
  7187  // unlawful or unlicensed copies of an Apple operating system, or to
  7188  // circumvent, violate, or enable the circumvention or violation of, any
  7189  // terms of an Apple operating system software license agreement.
  7190  //
  7191  // Please obtain a copy of the License at
  7192  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7193  //
  7194  // The Original Code and all software distributed under the License are
  7195  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7196  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7197  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7198  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7199  // Please see the License for the specific language governing rights and
  7200  // limitations under the License.
  7201  //
  7202  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7203  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7204  //
  7205  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7206  //
  7207  // This file contains Original Code and/or Modifications of Original Code
  7208  // as defined in and that are subject to the Apple Public Source License
  7209  // Version 2.0 (the 'License'). You may not use this file except in
  7210  // compliance with the License. The rights granted to you under the License
  7211  // may not be used to create, or enable the creation or redistribution of,
  7212  // unlawful or unlicensed copies of an Apple operating system, or to
  7213  // circumvent, violate, or enable the circumvention or violation of, any
  7214  // terms of an Apple operating system software license agreement.
  7215  //
  7216  // Please obtain a copy of the License at
  7217  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7218  //
  7219  // The Original Code and all software distributed under the License are
  7220  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7221  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7222  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7223  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7224  // Please see the License for the specific language governing rights and
  7225  // limitations under the License.
  7226  //
  7227  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7228  
  7229  type Ino_t = X__darwin_ino_t /* _ino_t.h:31:33 */ // inode number
  7230  
  7231  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7232  //
  7233  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7234  //
  7235  // This file contains Original Code and/or Modifications of Original Code
  7236  // as defined in and that are subject to the Apple Public Source License
  7237  // Version 2.0 (the 'License'). You may not use this file except in
  7238  // compliance with the License. The rights granted to you under the License
  7239  // may not be used to create, or enable the creation or redistribution of,
  7240  // unlawful or unlicensed copies of an Apple operating system, or to
  7241  // circumvent, violate, or enable the circumvention or violation of, any
  7242  // terms of an Apple operating system software license agreement.
  7243  //
  7244  // Please obtain a copy of the License at
  7245  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7246  //
  7247  // The Original Code and all software distributed under the License are
  7248  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7249  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7250  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7251  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7252  // Please see the License for the specific language governing rights and
  7253  // limitations under the License.
  7254  //
  7255  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7256  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7257  //
  7258  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7259  //
  7260  // This file contains Original Code and/or Modifications of Original Code
  7261  // as defined in and that are subject to the Apple Public Source License
  7262  // Version 2.0 (the 'License'). You may not use this file except in
  7263  // compliance with the License. The rights granted to you under the License
  7264  // may not be used to create, or enable the creation or redistribution of,
  7265  // unlawful or unlicensed copies of an Apple operating system, or to
  7266  // circumvent, violate, or enable the circumvention or violation of, any
  7267  // terms of an Apple operating system software license agreement.
  7268  //
  7269  // Please obtain a copy of the License at
  7270  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7271  //
  7272  // The Original Code and all software distributed under the License are
  7273  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7274  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7275  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7276  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7277  // Please see the License for the specific language governing rights and
  7278  // limitations under the License.
  7279  //
  7280  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7281  
  7282  type Ino64_t = X__darwin_ino64_t /* _ino64_t.h:31:33 */ // 64bit inode number
  7283  
  7284  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7285  //
  7286  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7287  //
  7288  // This file contains Original Code and/or Modifications of Original Code
  7289  // as defined in and that are subject to the Apple Public Source License
  7290  // Version 2.0 (the 'License'). You may not use this file except in
  7291  // compliance with the License. The rights granted to you under the License
  7292  // may not be used to create, or enable the creation or redistribution of,
  7293  // unlawful or unlicensed copies of an Apple operating system, or to
  7294  // circumvent, violate, or enable the circumvention or violation of, any
  7295  // terms of an Apple operating system software license agreement.
  7296  //
  7297  // Please obtain a copy of the License at
  7298  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7299  //
  7300  // The Original Code and all software distributed under the License are
  7301  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7302  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7303  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7304  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7305  // Please see the License for the specific language governing rights and
  7306  // limitations under the License.
  7307  //
  7308  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7309  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7310  //
  7311  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7312  //
  7313  // This file contains Original Code and/or Modifications of Original Code
  7314  // as defined in and that are subject to the Apple Public Source License
  7315  // Version 2.0 (the 'License'). You may not use this file except in
  7316  // compliance with the License. The rights granted to you under the License
  7317  // may not be used to create, or enable the creation or redistribution of,
  7318  // unlawful or unlicensed copies of an Apple operating system, or to
  7319  // circumvent, violate, or enable the circumvention or violation of, any
  7320  // terms of an Apple operating system software license agreement.
  7321  //
  7322  // Please obtain a copy of the License at
  7323  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7324  //
  7325  // The Original Code and all software distributed under the License are
  7326  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7327  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7328  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7329  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7330  // Please see the License for the specific language governing rights and
  7331  // limitations under the License.
  7332  //
  7333  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7334  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7335  type Key_t = X__int32_t /* _key_t.h:31:26 */ // IPC key (for Sys V IPC)
  7336  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7337  //
  7338  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7339  //
  7340  // This file contains Original Code and/or Modifications of Original Code
  7341  // as defined in and that are subject to the Apple Public Source License
  7342  // Version 2.0 (the 'License'). You may not use this file except in
  7343  // compliance with the License. The rights granted to you under the License
  7344  // may not be used to create, or enable the creation or redistribution of,
  7345  // unlawful or unlicensed copies of an Apple operating system, or to
  7346  // circumvent, violate, or enable the circumvention or violation of, any
  7347  // terms of an Apple operating system software license agreement.
  7348  //
  7349  // Please obtain a copy of the License at
  7350  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7351  //
  7352  // The Original Code and all software distributed under the License are
  7353  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7354  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7355  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7356  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7357  // Please see the License for the specific language governing rights and
  7358  // limitations under the License.
  7359  //
  7360  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7361  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7362  //
  7363  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7364  //
  7365  // This file contains Original Code and/or Modifications of Original Code
  7366  // as defined in and that are subject to the Apple Public Source License
  7367  // Version 2.0 (the 'License'). You may not use this file except in
  7368  // compliance with the License. The rights granted to you under the License
  7369  // may not be used to create, or enable the creation or redistribution of,
  7370  // unlawful or unlicensed copies of an Apple operating system, or to
  7371  // circumvent, violate, or enable the circumvention or violation of, any
  7372  // terms of an Apple operating system software license agreement.
  7373  //
  7374  // Please obtain a copy of the License at
  7375  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7376  //
  7377  // The Original Code and all software distributed under the License are
  7378  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7379  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7380  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7381  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7382  // Please see the License for the specific language governing rights and
  7383  // limitations under the License.
  7384  //
  7385  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7386  
  7387  type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */
  7388  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7389  //
  7390  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7391  //
  7392  // This file contains Original Code and/or Modifications of Original Code
  7393  // as defined in and that are subject to the Apple Public Source License
  7394  // Version 2.0 (the 'License'). You may not use this file except in
  7395  // compliance with the License. The rights granted to you under the License
  7396  // may not be used to create, or enable the creation or redistribution of,
  7397  // unlawful or unlicensed copies of an Apple operating system, or to
  7398  // circumvent, violate, or enable the circumvention or violation of, any
  7399  // terms of an Apple operating system software license agreement.
  7400  //
  7401  // Please obtain a copy of the License at
  7402  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7403  //
  7404  // The Original Code and all software distributed under the License are
  7405  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7406  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7407  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7408  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7409  // Please see the License for the specific language governing rights and
  7410  // limitations under the License.
  7411  //
  7412  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7413  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7414  //
  7415  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7416  //
  7417  // This file contains Original Code and/or Modifications of Original Code
  7418  // as defined in and that are subject to the Apple Public Source License
  7419  // Version 2.0 (the 'License'). You may not use this file except in
  7420  // compliance with the License. The rights granted to you under the License
  7421  // may not be used to create, or enable the creation or redistribution of,
  7422  // unlawful or unlicensed copies of an Apple operating system, or to
  7423  // circumvent, violate, or enable the circumvention or violation of, any
  7424  // terms of an Apple operating system software license agreement.
  7425  //
  7426  // Please obtain a copy of the License at
  7427  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7428  //
  7429  // The Original Code and all software distributed under the License are
  7430  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7431  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7432  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7433  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7434  // Please see the License for the specific language governing rights and
  7435  // limitations under the License.
  7436  //
  7437  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7438  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7439  type Nlink_t = X__uint16_t /* _nlink_t.h:31:27 */ // link count
  7440  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7441  //
  7442  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7443  //
  7444  // This file contains Original Code and/or Modifications of Original Code
  7445  // as defined in and that are subject to the Apple Public Source License
  7446  // Version 2.0 (the 'License'). You may not use this file except in
  7447  // compliance with the License. The rights granted to you under the License
  7448  // may not be used to create, or enable the creation or redistribution of,
  7449  // unlawful or unlicensed copies of an Apple operating system, or to
  7450  // circumvent, violate, or enable the circumvention or violation of, any
  7451  // terms of an Apple operating system software license agreement.
  7452  //
  7453  // Please obtain a copy of the License at
  7454  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7455  //
  7456  // The Original Code and all software distributed under the License are
  7457  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7458  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7459  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7460  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7461  // Please see the License for the specific language governing rights and
  7462  // limitations under the License.
  7463  //
  7464  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7465  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7466  //
  7467  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7468  //
  7469  // This file contains Original Code and/or Modifications of Original Code
  7470  // as defined in and that are subject to the Apple Public Source License
  7471  // Version 2.0 (the 'License'). You may not use this file except in
  7472  // compliance with the License. The rights granted to you under the License
  7473  // may not be used to create, or enable the creation or redistribution of,
  7474  // unlawful or unlicensed copies of an Apple operating system, or to
  7475  // circumvent, violate, or enable the circumvention or violation of, any
  7476  // terms of an Apple operating system software license agreement.
  7477  //
  7478  // Please obtain a copy of the License at
  7479  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7480  //
  7481  // The Original Code and all software distributed under the License are
  7482  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7483  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7484  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7485  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7486  // Please see the License for the specific language governing rights and
  7487  // limitations under the License.
  7488  //
  7489  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7490  
  7491  type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t
  7492  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7493  //
  7494  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7495  //
  7496  // This file contains Original Code and/or Modifications of Original Code
  7497  // as defined in and that are subject to the Apple Public Source License
  7498  // Version 2.0 (the 'License'). You may not use this file except in
  7499  // compliance with the License. The rights granted to you under the License
  7500  // may not be used to create, or enable the creation or redistribution of,
  7501  // unlawful or unlicensed copies of an Apple operating system, or to
  7502  // circumvent, violate, or enable the circumvention or violation of, any
  7503  // terms of an Apple operating system software license agreement.
  7504  //
  7505  // Please obtain a copy of the License at
  7506  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7507  //
  7508  // The Original Code and all software distributed under the License are
  7509  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7510  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7511  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7512  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7513  // Please see the License for the specific language governing rights and
  7514  // limitations under the License.
  7515  //
  7516  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7517  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7518  //
  7519  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7520  //
  7521  // This file contains Original Code and/or Modifications of Original Code
  7522  // as defined in and that are subject to the Apple Public Source License
  7523  // Version 2.0 (the 'License'). You may not use this file except in
  7524  // compliance with the License. The rights granted to you under the License
  7525  // may not be used to create, or enable the creation or redistribution of,
  7526  // unlawful or unlicensed copies of an Apple operating system, or to
  7527  // circumvent, violate, or enable the circumvention or violation of, any
  7528  // terms of an Apple operating system software license agreement.
  7529  //
  7530  // Please obtain a copy of the License at
  7531  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7532  //
  7533  // The Original Code and all software distributed under the License are
  7534  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7535  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7536  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7537  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7538  // Please see the License for the specific language governing rights and
  7539  // limitations under the License.
  7540  //
  7541  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7542  
  7543  type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */
  7544  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7545  //
  7546  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7547  //
  7548  // This file contains Original Code and/or Modifications of Original Code
  7549  // as defined in and that are subject to the Apple Public Source License
  7550  // Version 2.0 (the 'License'). You may not use this file except in
  7551  // compliance with the License. The rights granted to you under the License
  7552  // may not be used to create, or enable the creation or redistribution of,
  7553  // unlawful or unlicensed copies of an Apple operating system, or to
  7554  // circumvent, violate, or enable the circumvention or violation of, any
  7555  // terms of an Apple operating system software license agreement.
  7556  //
  7557  // Please obtain a copy of the License at
  7558  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7559  //
  7560  // The Original Code and all software distributed under the License are
  7561  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7562  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7563  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7564  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7565  // Please see the License for the specific language governing rights and
  7566  // limitations under the License.
  7567  //
  7568  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7569  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7570  //
  7571  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7572  //
  7573  // This file contains Original Code and/or Modifications of Original Code
  7574  // as defined in and that are subject to the Apple Public Source License
  7575  // Version 2.0 (the 'License'). You may not use this file except in
  7576  // compliance with the License. The rights granted to you under the License
  7577  // may not be used to create, or enable the creation or redistribution of,
  7578  // unlawful or unlicensed copies of an Apple operating system, or to
  7579  // circumvent, violate, or enable the circumvention or violation of, any
  7580  // terms of an Apple operating system software license agreement.
  7581  //
  7582  // Please obtain a copy of the License at
  7583  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7584  //
  7585  // The Original Code and all software distributed under the License are
  7586  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7587  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7588  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7589  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7590  // Please see the License for the specific language governing rights and
  7591  // limitations under the License.
  7592  //
  7593  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7594  
  7595  type Off_t = X__darwin_off_t /* _off_t.h:31:33 */
  7596  
  7597  type Segsz_t = Int32_t /* types.h:125:33 */ // segment size
  7598  type Swblk_t = Int32_t /* types.h:126:33 */ // swap offset
  7599  
  7600  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7601  //
  7602  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7603  //
  7604  // This file contains Original Code and/or Modifications of Original Code
  7605  // as defined in and that are subject to the Apple Public Source License
  7606  // Version 2.0 (the 'License'). You may not use this file except in
  7607  // compliance with the License. The rights granted to you under the License
  7608  // may not be used to create, or enable the creation or redistribution of,
  7609  // unlawful or unlicensed copies of an Apple operating system, or to
  7610  // circumvent, violate, or enable the circumvention or violation of, any
  7611  // terms of an Apple operating system software license agreement.
  7612  //
  7613  // Please obtain a copy of the License at
  7614  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7615  //
  7616  // The Original Code and all software distributed under the License are
  7617  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7618  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7619  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7620  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7621  // Please see the License for the specific language governing rights and
  7622  // limitations under the License.
  7623  //
  7624  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7625  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7626  //
  7627  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7628  //
  7629  // This file contains Original Code and/or Modifications of Original Code
  7630  // as defined in and that are subject to the Apple Public Source License
  7631  // Version 2.0 (the 'License'). You may not use this file except in
  7632  // compliance with the License. The rights granted to you under the License
  7633  // may not be used to create, or enable the creation or redistribution of,
  7634  // unlawful or unlicensed copies of an Apple operating system, or to
  7635  // circumvent, violate, or enable the circumvention or violation of, any
  7636  // terms of an Apple operating system software license agreement.
  7637  //
  7638  // Please obtain a copy of the License at
  7639  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7640  //
  7641  // The Original Code and all software distributed under the License are
  7642  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7643  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7644  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7645  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7646  // Please see the License for the specific language governing rights and
  7647  // limitations under the License.
  7648  //
  7649  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7650  
  7651  type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  7652  
  7653  // Major, minor numbers, dev_t's.
  7654  
  7655  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7656  //
  7657  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7658  //
  7659  // This file contains Original Code and/or Modifications of Original Code
  7660  // as defined in and that are subject to the Apple Public Source License
  7661  // Version 2.0 (the 'License'). You may not use this file except in
  7662  // compliance with the License. The rights granted to you under the License
  7663  // may not be used to create, or enable the creation or redistribution of,
  7664  // unlawful or unlicensed copies of an Apple operating system, or to
  7665  // circumvent, violate, or enable the circumvention or violation of, any
  7666  // terms of an Apple operating system software license agreement.
  7667  //
  7668  // Please obtain a copy of the License at
  7669  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7670  //
  7671  // The Original Code and all software distributed under the License are
  7672  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7673  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7674  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7675  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7676  // Please see the License for the specific language governing rights and
  7677  // limitations under the License.
  7678  //
  7679  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7680  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7681  //
  7682  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7683  //
  7684  // This file contains Original Code and/or Modifications of Original Code
  7685  // as defined in and that are subject to the Apple Public Source License
  7686  // Version 2.0 (the 'License'). You may not use this file except in
  7687  // compliance with the License. The rights granted to you under the License
  7688  // may not be used to create, or enable the creation or redistribution of,
  7689  // unlawful or unlicensed copies of an Apple operating system, or to
  7690  // circumvent, violate, or enable the circumvention or violation of, any
  7691  // terms of an Apple operating system software license agreement.
  7692  //
  7693  // Please obtain a copy of the License at
  7694  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7695  //
  7696  // The Original Code and all software distributed under the License are
  7697  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7698  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7699  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7700  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7701  // Please see the License for the specific language governing rights and
  7702  // limitations under the License.
  7703  //
  7704  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7705  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7706  type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */
  7707  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7708  //
  7709  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7710  //
  7711  // This file contains Original Code and/or Modifications of Original Code
  7712  // as defined in and that are subject to the Apple Public Source License
  7713  // Version 2.0 (the 'License'). You may not use this file except in
  7714  // compliance with the License. The rights granted to you under the License
  7715  // may not be used to create, or enable the creation or redistribution of,
  7716  // unlawful or unlicensed copies of an Apple operating system, or to
  7717  // circumvent, violate, or enable the circumvention or violation of, any
  7718  // terms of an Apple operating system software license agreement.
  7719  //
  7720  // Please obtain a copy of the License at
  7721  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7722  //
  7723  // The Original Code and all software distributed under the License are
  7724  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7725  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7726  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7727  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7728  // Please see the License for the specific language governing rights and
  7729  // limitations under the License.
  7730  //
  7731  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7732  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7733  //
  7734  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7735  //
  7736  // This file contains Original Code and/or Modifications of Original Code
  7737  // as defined in and that are subject to the Apple Public Source License
  7738  // Version 2.0 (the 'License'). You may not use this file except in
  7739  // compliance with the License. The rights granted to you under the License
  7740  // may not be used to create, or enable the creation or redistribution of,
  7741  // unlawful or unlicensed copies of an Apple operating system, or to
  7742  // circumvent, violate, or enable the circumvention or violation of, any
  7743  // terms of an Apple operating system software license agreement.
  7744  //
  7745  // Please obtain a copy of the License at
  7746  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7747  //
  7748  // The Original Code and all software distributed under the License are
  7749  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7750  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7751  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7752  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7753  // Please see the License for the specific language governing rights and
  7754  // limitations under the License.
  7755  //
  7756  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7757  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7758  type Ssize_t = X__darwin_ssize_t /* _ssize_t.h:31:33 */
  7759  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7760  //
  7761  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7762  //
  7763  // This file contains Original Code and/or Modifications of Original Code
  7764  // as defined in and that are subject to the Apple Public Source License
  7765  // Version 2.0 (the 'License'). You may not use this file except in
  7766  // compliance with the License. The rights granted to you under the License
  7767  // may not be used to create, or enable the creation or redistribution of,
  7768  // unlawful or unlicensed copies of an Apple operating system, or to
  7769  // circumvent, violate, or enable the circumvention or violation of, any
  7770  // terms of an Apple operating system software license agreement.
  7771  //
  7772  // Please obtain a copy of the License at
  7773  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7774  //
  7775  // The Original Code and all software distributed under the License are
  7776  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7777  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7778  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7779  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7780  // Please see the License for the specific language governing rights and
  7781  // limitations under the License.
  7782  //
  7783  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7784  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7785  //
  7786  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7787  //
  7788  // This file contains Original Code and/or Modifications of Original Code
  7789  // as defined in and that are subject to the Apple Public Source License
  7790  // Version 2.0 (the 'License'). You may not use this file except in
  7791  // compliance with the License. The rights granted to you under the License
  7792  // may not be used to create, or enable the creation or redistribution of,
  7793  // unlawful or unlicensed copies of an Apple operating system, or to
  7794  // circumvent, violate, or enable the circumvention or violation of, any
  7795  // terms of an Apple operating system software license agreement.
  7796  //
  7797  // Please obtain a copy of the License at
  7798  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7799  //
  7800  // The Original Code and all software distributed under the License are
  7801  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7802  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7803  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7804  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7805  // Please see the License for the specific language governing rights and
  7806  // limitations under the License.
  7807  //
  7808  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7809  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7810  type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
  7811  
  7812  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7813  //
  7814  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7815  //
  7816  // This file contains Original Code and/or Modifications of Original Code
  7817  // as defined in and that are subject to the Apple Public Source License
  7818  // Version 2.0 (the 'License'). You may not use this file except in
  7819  // compliance with the License. The rights granted to you under the License
  7820  // may not be used to create, or enable the creation or redistribution of,
  7821  // unlawful or unlicensed copies of an Apple operating system, or to
  7822  // circumvent, violate, or enable the circumvention or violation of, any
  7823  // terms of an Apple operating system software license agreement.
  7824  //
  7825  // Please obtain a copy of the License at
  7826  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7827  //
  7828  // The Original Code and all software distributed under the License are
  7829  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7830  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7831  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7832  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7833  // Please see the License for the specific language governing rights and
  7834  // limitations under the License.
  7835  //
  7836  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7837  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7838  //
  7839  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7840  //
  7841  // This file contains Original Code and/or Modifications of Original Code
  7842  // as defined in and that are subject to the Apple Public Source License
  7843  // Version 2.0 (the 'License'). You may not use this file except in
  7844  // compliance with the License. The rights granted to you under the License
  7845  // may not be used to create, or enable the creation or redistribution of,
  7846  // unlawful or unlicensed copies of an Apple operating system, or to
  7847  // circumvent, violate, or enable the circumvention or violation of, any
  7848  // terms of an Apple operating system software license agreement.
  7849  //
  7850  // Please obtain a copy of the License at
  7851  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7852  //
  7853  // The Original Code and all software distributed under the License are
  7854  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7855  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7856  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7857  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7858  // Please see the License for the specific language governing rights and
  7859  // limitations under the License.
  7860  //
  7861  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7862  
  7863  type Useconds_t = X__darwin_useconds_t /* _useconds_t.h:31:33 */
  7864  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7865  //
  7866  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7867  //
  7868  // This file contains Original Code and/or Modifications of Original Code
  7869  // as defined in and that are subject to the Apple Public Source License
  7870  // Version 2.0 (the 'License'). You may not use this file except in
  7871  // compliance with the License. The rights granted to you under the License
  7872  // may not be used to create, or enable the creation or redistribution of,
  7873  // unlawful or unlicensed copies of an Apple operating system, or to
  7874  // circumvent, violate, or enable the circumvention or violation of, any
  7875  // terms of an Apple operating system software license agreement.
  7876  //
  7877  // Please obtain a copy of the License at
  7878  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7879  //
  7880  // The Original Code and all software distributed under the License are
  7881  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7882  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7883  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7884  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7885  // Please see the License for the specific language governing rights and
  7886  // limitations under the License.
  7887  //
  7888  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7889  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  7890  //
  7891  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7892  //
  7893  // This file contains Original Code and/or Modifications of Original Code
  7894  // as defined in and that are subject to the Apple Public Source License
  7895  // Version 2.0 (the 'License'). You may not use this file except in
  7896  // compliance with the License. The rights granted to you under the License
  7897  // may not be used to create, or enable the creation or redistribution of,
  7898  // unlawful or unlicensed copies of an Apple operating system, or to
  7899  // circumvent, violate, or enable the circumvention or violation of, any
  7900  // terms of an Apple operating system software license agreement.
  7901  //
  7902  // Please obtain a copy of the License at
  7903  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7904  //
  7905  // The Original Code and all software distributed under the License are
  7906  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7907  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7908  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7909  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7910  // Please see the License for the specific language governing rights and
  7911  // limitations under the License.
  7912  //
  7913  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7914  
  7915  type Suseconds_t = X__darwin_suseconds_t /* _suseconds_t.h:31:33 */
  7916  
  7917  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7918  //
  7919  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7920  //
  7921  // This file contains Original Code and/or Modifications of Original Code
  7922  // as defined in and that are subject to the Apple Public Source License
  7923  // Version 2.0 (the 'License'). You may not use this file except in
  7924  // compliance with the License. The rights granted to you under the License
  7925  // may not be used to create, or enable the creation or redistribution of,
  7926  // unlawful or unlicensed copies of an Apple operating system, or to
  7927  // circumvent, violate, or enable the circumvention or violation of, any
  7928  // terms of an Apple operating system software license agreement.
  7929  //
  7930  // Please obtain a copy of the License at
  7931  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7932  //
  7933  // The Original Code and all software distributed under the License are
  7934  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7935  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7936  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7937  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7938  // Please see the License for the specific language governing rights and
  7939  // limitations under the License.
  7940  //
  7941  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7942  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  7943  //
  7944  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7945  //
  7946  // This file contains Original Code and/or Modifications of Original Code
  7947  // as defined in and that are subject to the Apple Public Source License
  7948  // Version 2.0 (the 'License'). You may not use this file except in
  7949  // compliance with the License. The rights granted to you under the License
  7950  // may not be used to create, or enable the creation or redistribution of,
  7951  // unlawful or unlicensed copies of an Apple operating system, or to
  7952  // circumvent, violate, or enable the circumvention or violation of, any
  7953  // terms of an Apple operating system software license agreement.
  7954  //
  7955  // Please obtain a copy of the License at
  7956  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7957  //
  7958  // The Original Code and all software distributed under the License are
  7959  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7960  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7961  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7962  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7963  // Please see the License for the specific language governing rights and
  7964  // limitations under the License.
  7965  //
  7966  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7967  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  7968  type Rsize_t = X__darwin_size_t /* _rsize_t.h:31:32 */
  7969  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  7970  //
  7971  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  7972  //
  7973  // This file contains Original Code and/or Modifications of Original Code
  7974  // as defined in and that are subject to the Apple Public Source License
  7975  // Version 2.0 (the 'License'). You may not use this file except in
  7976  // compliance with the License. The rights granted to you under the License
  7977  // may not be used to create, or enable the creation or redistribution of,
  7978  // unlawful or unlicensed copies of an Apple operating system, or to
  7979  // circumvent, violate, or enable the circumvention or violation of, any
  7980  // terms of an Apple operating system software license agreement.
  7981  //
  7982  // Please obtain a copy of the License at
  7983  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  7984  //
  7985  // The Original Code and all software distributed under the License are
  7986  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  7987  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  7988  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  7989  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  7990  // Please see the License for the specific language governing rights and
  7991  // limitations under the License.
  7992  //
  7993  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  7994  type Errno_t = int32 /* _errno_t.h:30:32 */
  7995  
  7996  // This code is present here in order to maintain historical backward
  7997  // compatability, and is intended to be removed at some point in the
  7998  // future; please include <sys/select.h> instead.
  7999  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8000  //
  8001  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8002  //
  8003  // This file contains Original Code and/or Modifications of Original Code
  8004  // as defined in and that are subject to the Apple Public Source License
  8005  // Version 2.0 (the 'License'). You may not use this file except in
  8006  // compliance with the License. The rights granted to you under the License
  8007  // may not be used to create, or enable the creation or redistribution of,
  8008  // unlawful or unlicensed copies of an Apple operating system, or to
  8009  // circumvent, violate, or enable the circumvention or violation of, any
  8010  // terms of an Apple operating system software license agreement.
  8011  //
  8012  // Please obtain a copy of the License at
  8013  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8014  //
  8015  // The Original Code and all software distributed under the License are
  8016  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8017  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8018  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8019  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8020  // Please see the License for the specific language governing rights and
  8021  // limitations under the License.
  8022  //
  8023  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8024  
  8025  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  8026  //
  8027  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8028  //
  8029  // This file contains Original Code and/or Modifications of Original Code
  8030  // as defined in and that are subject to the Apple Public Source License
  8031  // Version 2.0 (the 'License'). You may not use this file except in
  8032  // compliance with the License. The rights granted to you under the License
  8033  // may not be used to create, or enable the creation or redistribution of,
  8034  // unlawful or unlicensed copies of an Apple operating system, or to
  8035  // circumvent, violate, or enable the circumvention or violation of, any
  8036  // terms of an Apple operating system software license agreement.
  8037  //
  8038  // Please obtain a copy of the License at
  8039  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8040  //
  8041  // The Original Code and all software distributed under the License are
  8042  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8043  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8044  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8045  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8046  // Please see the License for the specific language governing rights and
  8047  // limitations under the License.
  8048  //
  8049  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8050  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8051  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  8052  //
  8053  // @APPLE_LICENSE_HEADER_START@
  8054  //
  8055  // This file contains Original Code and/or Modifications of Original Code
  8056  // as defined in and that are subject to the Apple Public Source License
  8057  // Version 2.0 (the 'License'). You may not use this file except in
  8058  // compliance with the License. Please obtain a copy of the License at
  8059  // http://www.opensource.apple.com/apsl/ and read it before using this
  8060  // file.
  8061  //
  8062  // The Original Code and all software distributed under the License are
  8063  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8064  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8065  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8066  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8067  // Please see the License for the specific language governing rights and
  8068  // limitations under the License.
  8069  //
  8070  // @APPLE_LICENSE_HEADER_END@
  8071  
  8072  //
  8073  //     These macros are for use in OS header files. They enable function prototypes
  8074  //     and Objective-C methods to be tagged with the OS version in which they
  8075  //     were first available; and, if applicable, the OS version in which they
  8076  //     became deprecated.
  8077  //
  8078  //     The desktop Mac OS X and iOS each have different version numbers.
  8079  //     The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  8080  //     and iOS version numbers.  For instance:
  8081  //         __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  8082  //     means the function/method was first available on Mac OS X 10.2 on the desktop
  8083  //     and first available in iOS 2.0 on the iPhone.
  8084  //
  8085  //     If a function is available on one platform, but not the other a _NA (not
  8086  //     applicable) parameter is used.  For instance:
  8087  //             __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  8088  //     means that the function/method was first available on Mac OS X 10.3, and it
  8089  //     currently not implemented on the iPhone.
  8090  //
  8091  //     At some point, a function/method may be deprecated.  That means Apple
  8092  //     recommends applications stop using the function, either because there is a
  8093  //     better replacement or the functionality is being phased out.  Deprecated
  8094  //     functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  8095  //     macro which specifies the OS version where the function became available
  8096  //     as well as the OS version in which it became deprecated.  For instance:
  8097  //         __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  8098  //     means that the function/method was introduced in Mac OS X 10.0, then
  8099  //     became deprecated beginning in Mac OS X 10.5.  On iOS the function
  8100  //     has never been available.
  8101  //
  8102  //     For these macros to function properly, a program must specify the OS version range
  8103  //     it is targeting.  The min OS version is specified as an option to the compiler:
  8104  //     -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  8105  //     when building for the iPhone.  The upper bound for the OS version is rarely needed,
  8106  //     but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  8107  //     Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  8108  //
  8109  //     Examples:
  8110  //
  8111  //         A function available in Mac OS X 10.5 and later, but not on the phone:
  8112  //
  8113  //             extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  8114  //
  8115  //
  8116  //         An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  8117  //
  8118  //             @interface MyClass : NSObject
  8119  //             -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  8120  //             @end
  8121  //
  8122  //
  8123  //         An enum available on the phone, but not available on Mac OS X:
  8124  //
  8125  //             #if __IPHONE_OS_VERSION_MIN_REQUIRED
  8126  //                 enum { myEnum = 1 };
  8127  //             #endif
  8128  //            Note: this works when targeting the Mac OS X platform because
  8129  //            __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  8130  //
  8131  //
  8132  //         An enum with values added in different iPhoneOS versions:
  8133  //
  8134  // 			enum {
  8135  // 			    myX  = 1,	// Usable on iPhoneOS 2.1 and later
  8136  // 			    myY  = 2,	// Usable on iPhoneOS 3.0 and later
  8137  // 			    myZ  = 3,	// Usable on iPhoneOS 3.0 and later
  8138  // 				...
  8139  // 		      Note: you do not want to use #if with enumeration values
  8140  // 			  when a client needs to see all values at compile time
  8141  // 			  and use runtime logic to only use the viable values.
  8142  //
  8143  //
  8144  //     It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  8145  //     source base that can be compiled to target a range of OS versions.  It is best
  8146  //     to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  8147  //     That is because you might get compiled on an old OS that does not define a later
  8148  //     OS version macro, and in the C preprocessor undefined values evaluate to zero
  8149  //     in expresssions, which could cause the #if expression to evaluate in an unexpected
  8150  //     way.
  8151  //
  8152  //         #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  8153  //             // code only compiled when targeting Mac OS X and not iPhone
  8154  //             // note use of 1050 instead of __MAC_10_5
  8155  //             #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  8156  //                 // code in here might run on pre-Leopard OS
  8157  //             #else
  8158  //                 // code here can assume Leopard or later
  8159  //             #endif
  8160  //         #endif
  8161  //
  8162  //
  8163  
  8164  // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  8165  // in an upcoming release. This soft deprecation is an intermediate step before formal
  8166  // deprecation to notify developers about the API before compiler warnings are generated.
  8167  // You can find all places in your code that use soft deprecated API by redefining the
  8168  // value of this macro to your current minimum deployment target, for example:
  8169  // (macOS)
  8170  //   clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  8171  // (iOS)
  8172  //   clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  8173  
  8174  // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  8175  //
  8176  // @APPLE_LICENSE_HEADER_START@
  8177  //
  8178  // This file contains Original Code and/or Modifications of Original Code
  8179  // as defined in and that are subject to the Apple Public Source License
  8180  // Version 2.0 (the 'License'). You may not use this file except in
  8181  // compliance with the License. Please obtain a copy of the License at
  8182  // http://www.opensource.apple.com/apsl/ and read it before using this
  8183  // file.
  8184  //
  8185  // The Original Code and all software distributed under the License are
  8186  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8187  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8188  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8189  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8190  // Please see the License for the specific language governing rights and
  8191  // limitations under the License.
  8192  //
  8193  // @APPLE_LICENSE_HEADER_END@
  8194  
  8195  // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  8196  
  8197  // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  8198  
  8199  // Set up standard Mac OS X versions
  8200  
  8201  //  DO NOT EDIT THIS FILE.
  8202  //
  8203  //     It has been auto-edited by fixincludes from:
  8204  //
  8205  // 	"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/AvailabilityInternal.h"
  8206  //
  8207  //     This had to be done to correct non-standard usages in the
  8208  //     original, manufacturer supplied header file.
  8209  
  8210  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  8211  //
  8212  // @APPLE_LICENSE_HEADER_START@
  8213  //
  8214  // This file contains Original Code and/or Modifications of Original Code
  8215  // as defined in and that are subject to the Apple Public Source License
  8216  // Version 2.0 (the 'License'). You may not use this file except in
  8217  // compliance with the License. Please obtain a copy of the License at
  8218  // http://www.opensource.apple.com/apsl/ and read it before using this
  8219  // file.
  8220  //
  8221  // The Original Code and all software distributed under the License are
  8222  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8223  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8224  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8225  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8226  // Please see the License for the specific language governing rights and
  8227  // limitations under the License.
  8228  //
  8229  // @APPLE_LICENSE_HEADER_END@
  8230  
  8231  //
  8232  //     File:       AvailabilityInternal.h
  8233  //
  8234  //     Contains:   implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  8235  //
  8236  
  8237  // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  8238  
  8239  // make sure a default max version is set
  8240  
  8241  //
  8242  //  Macros for defining which versions/platform a given symbol can be used.
  8243  //
  8244  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  8245  //
  8246  
  8247  // Evaluate to nothing for compilers that don't support availability.
  8248  
  8249  // Swift compiler version
  8250  // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  8251  // Example:
  8252  //
  8253  //  #if __swift_compiler_version_at_least(800, 2, 20)
  8254  //  - (nonnull NSString *)description;
  8255  //  #else
  8256  //  - (NSString *)description;
  8257  //  #endif
  8258  
  8259  // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  8260  
  8261  // for use to document app extension usage
  8262  
  8263  // for use marking APIs available info for Mac OSX
  8264  
  8265  // for use marking APIs available info for iOS
  8266  
  8267  // for use marking APIs available info for tvOS
  8268  
  8269  // for use marking APIs available info for Watch OS
  8270  
  8271  // for use marking APIs unavailable for swift
  8272  
  8273  //
  8274  //  Macros for defining which versions/platform a given symbol can be used.
  8275  //
  8276  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  8277  //
  8278  //  * Note that these macros are only compatible with clang compilers that
  8279  //  * support the following target selection options:
  8280  //  *
  8281  //  * -mmacosx-version-min
  8282  //  * -miphoneos-version-min
  8283  //  * -mwatchos-version-min
  8284  //  * -mtvos-version-min
  8285  //
  8286  
  8287  // Evaluate to nothing for compilers that don't support availability.
  8288  
  8289  // If SPI decorations have not been defined elsewhere, disable them.
  8290  
  8291  // Select uses bit masks of file descriptors in longs.  These macros
  8292  // manipulate such bit fields (the filesystem macros use chars).  The
  8293  // extra protection here is to permit application redefinition above
  8294  // the default size.
  8295  
  8296  type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
  8297  
  8298  // This code is present here in order to maintain historical backward
  8299  // compatability, and is intended to be removed at some point in the
  8300  // future; please include <sys/select.h> instead.
  8301  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8302  //
  8303  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8304  //
  8305  // This file contains Original Code and/or Modifications of Original Code
  8306  // as defined in and that are subject to the Apple Public Source License
  8307  // Version 2.0 (the 'License'). You may not use this file except in
  8308  // compliance with the License. The rights granted to you under the License
  8309  // may not be used to create, or enable the creation or redistribution of,
  8310  // unlawful or unlicensed copies of an Apple operating system, or to
  8311  // circumvent, violate, or enable the circumvention or violation of, any
  8312  // terms of an Apple operating system software license agreement.
  8313  //
  8314  // Please obtain a copy of the License at
  8315  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8316  //
  8317  // The Original Code and all software distributed under the License are
  8318  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8319  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8320  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8321  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8322  // Please see the License for the specific language governing rights and
  8323  // limitations under the License.
  8324  //
  8325  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8326  
  8327  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  8328  //
  8329  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8330  //
  8331  // This file contains Original Code and/or Modifications of Original Code
  8332  // as defined in and that are subject to the Apple Public Source License
  8333  // Version 2.0 (the 'License'). You may not use this file except in
  8334  // compliance with the License. The rights granted to you under the License
  8335  // may not be used to create, or enable the creation or redistribution of,
  8336  // unlawful or unlicensed copies of an Apple operating system, or to
  8337  // circumvent, violate, or enable the circumvention or violation of, any
  8338  // terms of an Apple operating system software license agreement.
  8339  //
  8340  // Please obtain a copy of the License at
  8341  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8342  //
  8343  // The Original Code and all software distributed under the License are
  8344  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8345  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8346  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8347  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8348  // Please see the License for the specific language governing rights and
  8349  // limitations under the License.
  8350  //
  8351  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8352  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  8353  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  8354  //
  8355  // @APPLE_LICENSE_HEADER_START@
  8356  //
  8357  // This file contains Original Code and/or Modifications of Original Code
  8358  // as defined in and that are subject to the Apple Public Source License
  8359  // Version 2.0 (the 'License'). You may not use this file except in
  8360  // compliance with the License. Please obtain a copy of the License at
  8361  // http://www.opensource.apple.com/apsl/ and read it before using this
  8362  // file.
  8363  //
  8364  // The Original Code and all software distributed under the License are
  8365  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8366  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8367  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8368  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8369  // Please see the License for the specific language governing rights and
  8370  // limitations under the License.
  8371  //
  8372  // @APPLE_LICENSE_HEADER_END@
  8373  
  8374  //
  8375  //     These macros are for use in OS header files. They enable function prototypes
  8376  //     and Objective-C methods to be tagged with the OS version in which they
  8377  //     were first available; and, if applicable, the OS version in which they
  8378  //     became deprecated.
  8379  //
  8380  //     The desktop Mac OS X and iOS each have different version numbers.
  8381  //     The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  8382  //     and iOS version numbers.  For instance:
  8383  //         __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  8384  //     means the function/method was first available on Mac OS X 10.2 on the desktop
  8385  //     and first available in iOS 2.0 on the iPhone.
  8386  //
  8387  //     If a function is available on one platform, but not the other a _NA (not
  8388  //     applicable) parameter is used.  For instance:
  8389  //             __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  8390  //     means that the function/method was first available on Mac OS X 10.3, and it
  8391  //     currently not implemented on the iPhone.
  8392  //
  8393  //     At some point, a function/method may be deprecated.  That means Apple
  8394  //     recommends applications stop using the function, either because there is a
  8395  //     better replacement or the functionality is being phased out.  Deprecated
  8396  //     functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  8397  //     macro which specifies the OS version where the function became available
  8398  //     as well as the OS version in which it became deprecated.  For instance:
  8399  //         __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  8400  //     means that the function/method was introduced in Mac OS X 10.0, then
  8401  //     became deprecated beginning in Mac OS X 10.5.  On iOS the function
  8402  //     has never been available.
  8403  //
  8404  //     For these macros to function properly, a program must specify the OS version range
  8405  //     it is targeting.  The min OS version is specified as an option to the compiler:
  8406  //     -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  8407  //     when building for the iPhone.  The upper bound for the OS version is rarely needed,
  8408  //     but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  8409  //     Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  8410  //
  8411  //     Examples:
  8412  //
  8413  //         A function available in Mac OS X 10.5 and later, but not on the phone:
  8414  //
  8415  //             extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  8416  //
  8417  //
  8418  //         An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  8419  //
  8420  //             @interface MyClass : NSObject
  8421  //             -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  8422  //             @end
  8423  //
  8424  //
  8425  //         An enum available on the phone, but not available on Mac OS X:
  8426  //
  8427  //             #if __IPHONE_OS_VERSION_MIN_REQUIRED
  8428  //                 enum { myEnum = 1 };
  8429  //             #endif
  8430  //            Note: this works when targeting the Mac OS X platform because
  8431  //            __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  8432  //
  8433  //
  8434  //         An enum with values added in different iPhoneOS versions:
  8435  //
  8436  // 			enum {
  8437  // 			    myX  = 1,	// Usable on iPhoneOS 2.1 and later
  8438  // 			    myY  = 2,	// Usable on iPhoneOS 3.0 and later
  8439  // 			    myZ  = 3,	// Usable on iPhoneOS 3.0 and later
  8440  // 				...
  8441  // 		      Note: you do not want to use #if with enumeration values
  8442  // 			  when a client needs to see all values at compile time
  8443  // 			  and use runtime logic to only use the viable values.
  8444  //
  8445  //
  8446  //     It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  8447  //     source base that can be compiled to target a range of OS versions.  It is best
  8448  //     to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  8449  //     That is because you might get compiled on an old OS that does not define a later
  8450  //     OS version macro, and in the C preprocessor undefined values evaluate to zero
  8451  //     in expresssions, which could cause the #if expression to evaluate in an unexpected
  8452  //     way.
  8453  //
  8454  //         #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  8455  //             // code only compiled when targeting Mac OS X and not iPhone
  8456  //             // note use of 1050 instead of __MAC_10_5
  8457  //             #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  8458  //                 // code in here might run on pre-Leopard OS
  8459  //             #else
  8460  //                 // code here can assume Leopard or later
  8461  //             #endif
  8462  //         #endif
  8463  //
  8464  //
  8465  
  8466  // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  8467  // in an upcoming release. This soft deprecation is an intermediate step before formal
  8468  // deprecation to notify developers about the API before compiler warnings are generated.
  8469  // You can find all places in your code that use soft deprecated API by redefining the
  8470  // value of this macro to your current minimum deployment target, for example:
  8471  // (macOS)
  8472  //   clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  8473  // (iOS)
  8474  //   clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  8475  
  8476  // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  8477  //
  8478  // @APPLE_LICENSE_HEADER_START@
  8479  //
  8480  // This file contains Original Code and/or Modifications of Original Code
  8481  // as defined in and that are subject to the Apple Public Source License
  8482  // Version 2.0 (the 'License'). You may not use this file except in
  8483  // compliance with the License. Please obtain a copy of the License at
  8484  // http://www.opensource.apple.com/apsl/ and read it before using this
  8485  // file.
  8486  //
  8487  // The Original Code and all software distributed under the License are
  8488  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8489  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8490  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8491  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8492  // Please see the License for the specific language governing rights and
  8493  // limitations under the License.
  8494  //
  8495  // @APPLE_LICENSE_HEADER_END@
  8496  
  8497  // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  8498  
  8499  // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  8500  
  8501  // Set up standard Mac OS X versions
  8502  
  8503  //  DO NOT EDIT THIS FILE.
  8504  //
  8505  //     It has been auto-edited by fixincludes from:
  8506  //
  8507  // 	"/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/AvailabilityInternal.h"
  8508  //
  8509  //     This had to be done to correct non-standard usages in the
  8510  //     original, manufacturer supplied header file.
  8511  
  8512  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  8513  //
  8514  // @APPLE_LICENSE_HEADER_START@
  8515  //
  8516  // This file contains Original Code and/or Modifications of Original Code
  8517  // as defined in and that are subject to the Apple Public Source License
  8518  // Version 2.0 (the 'License'). You may not use this file except in
  8519  // compliance with the License. Please obtain a copy of the License at
  8520  // http://www.opensource.apple.com/apsl/ and read it before using this
  8521  // file.
  8522  //
  8523  // The Original Code and all software distributed under the License are
  8524  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8525  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8526  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8527  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8528  // Please see the License for the specific language governing rights and
  8529  // limitations under the License.
  8530  //
  8531  // @APPLE_LICENSE_HEADER_END@
  8532  
  8533  //
  8534  //     File:       AvailabilityInternal.h
  8535  //
  8536  //     Contains:   implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  8537  //
  8538  
  8539  // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  8540  
  8541  // make sure a default max version is set
  8542  
  8543  //
  8544  //  Macros for defining which versions/platform a given symbol can be used.
  8545  //
  8546  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  8547  //
  8548  
  8549  // Evaluate to nothing for compilers that don't support availability.
  8550  
  8551  // Swift compiler version
  8552  // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  8553  // Example:
  8554  //
  8555  //  #if __swift_compiler_version_at_least(800, 2, 20)
  8556  //  - (nonnull NSString *)description;
  8557  //  #else
  8558  //  - (NSString *)description;
  8559  //  #endif
  8560  
  8561  // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  8562  
  8563  // for use to document app extension usage
  8564  
  8565  // for use marking APIs available info for Mac OSX
  8566  
  8567  // for use marking APIs available info for iOS
  8568  
  8569  // for use marking APIs available info for tvOS
  8570  
  8571  // for use marking APIs available info for Watch OS
  8572  
  8573  // for use marking APIs unavailable for swift
  8574  
  8575  //
  8576  //  Macros for defining which versions/platform a given symbol can be used.
  8577  //
  8578  //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
  8579  //
  8580  //  * Note that these macros are only compatible with clang compilers that
  8581  //  * support the following target selection options:
  8582  //  *
  8583  //  * -mmacosx-version-min
  8584  //  * -miphoneos-version-min
  8585  //  * -mwatchos-version-min
  8586  //  * -mtvos-version-min
  8587  //
  8588  
  8589  // Evaluate to nothing for compilers that don't support availability.
  8590  
  8591  // If SPI decorations have not been defined elsewhere, disable them.
  8592  
  8593  // Select uses bit masks of file descriptors in longs.  These macros
  8594  // manipulate such bit fields (the filesystem macros use chars).  The
  8595  // extra protection here is to permit application redefinition above
  8596  // the default size.
  8597  
  8598  type Fd_set = Fd_set1 /* _fd_def.h:52:3 */
  8599  
  8600  // Use the built-in bzero function instead of the library version so that
  8601  // we do not pollute the namespace or introduce prototype warnings.
  8602  
  8603  type Fd_mask = X__int32_t /* types.h:189:25 */
  8604  
  8605  // Select uses bit masks of file descriptors in longs.  These macros
  8606  // manipulate such bit fields (the filesystem macros use chars).  The
  8607  // extra protection here is to permit application redefinition above
  8608  // the default size.
  8609  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8610  //
  8611  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8612  //
  8613  // This file contains Original Code and/or Modifications of Original Code
  8614  // as defined in and that are subject to the Apple Public Source License
  8615  // Version 2.0 (the 'License'). You may not use this file except in
  8616  // compliance with the License. The rights granted to you under the License
  8617  // may not be used to create, or enable the creation or redistribution of,
  8618  // unlawful or unlicensed copies of an Apple operating system, or to
  8619  // circumvent, violate, or enable the circumvention or violation of, any
  8620  // terms of an Apple operating system software license agreement.
  8621  //
  8622  // Please obtain a copy of the License at
  8623  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8624  //
  8625  // The Original Code and all software distributed under the License are
  8626  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8627  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8628  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8629  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8630  // Please see the License for the specific language governing rights and
  8631  // limitations under the License.
  8632  //
  8633  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8634  // Copyright (c) 2003-2012 Apple 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) 2003-2012 Apple Inc. All rights reserved.
  8660  //
  8661  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8662  //
  8663  // This file contains Original Code and/or Modifications of Original Code
  8664  // as defined in and that are subject to the Apple Public Source License
  8665  // Version 2.0 (the 'License'). You may not use this file except in
  8666  // compliance with the License. The rights granted to you under the License
  8667  // may not be used to create, or enable the creation or redistribution of,
  8668  // unlawful or unlicensed copies of an Apple operating system, or to
  8669  // circumvent, violate, or enable the circumvention or violation of, any
  8670  // terms of an Apple operating system software license agreement.
  8671  //
  8672  // Please obtain a copy of the License at
  8673  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8674  //
  8675  // The Original Code and all software distributed under the License are
  8676  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8677  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8678  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8679  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8680  // Please see the License for the specific language governing rights and
  8681  // limitations under the License.
  8682  //
  8683  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8684  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8685  //
  8686  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8687  //
  8688  // This file contains Original Code and/or Modifications of Original Code
  8689  // as defined in and that are subject to the Apple Public Source License
  8690  // Version 2.0 (the 'License'). You may not use this file except in
  8691  // compliance with the License. The rights granted to you under the License
  8692  // may not be used to create, or enable the creation or redistribution of,
  8693  // unlawful or unlicensed copies of an Apple operating system, or to
  8694  // circumvent, violate, or enable the circumvention or violation of, any
  8695  // terms of an Apple operating system software license agreement.
  8696  //
  8697  // Please obtain a copy of the License at
  8698  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8699  //
  8700  // The Original Code and all software distributed under the License are
  8701  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8702  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8703  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8704  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8705  // Please see the License for the specific language governing rights and
  8706  // limitations under the License.
  8707  //
  8708  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8709  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8710  //
  8711  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8712  //
  8713  // This file contains Original Code and/or Modifications of Original Code
  8714  // as defined in and that are subject to the Apple Public Source License
  8715  // Version 2.0 (the 'License'). You may not use this file except in
  8716  // compliance with the License. The rights granted to you under the License
  8717  // may not be used to create, or enable the creation or redistribution of,
  8718  // unlawful or unlicensed copies of an Apple operating system, or to
  8719  // circumvent, violate, or enable the circumvention or violation of, any
  8720  // terms of an Apple operating system software license agreement.
  8721  //
  8722  // Please obtain a copy of the License at
  8723  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8724  //
  8725  // The Original Code and all software distributed under the License are
  8726  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8727  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8728  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8729  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8730  // Please see the License for the specific language governing rights and
  8731  // limitations under the License.
  8732  //
  8733  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8734  
  8735  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8736  //
  8737  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8738  //
  8739  // This file contains Original Code and/or Modifications of Original Code
  8740  // as defined in and that are subject to the Apple Public Source License
  8741  // Version 2.0 (the 'License'). You may not use this file except in
  8742  // compliance with the License. The rights granted to you under the License
  8743  // may not be used to create, or enable the creation or redistribution of,
  8744  // unlawful or unlicensed copies of an Apple operating system, or to
  8745  // circumvent, violate, or enable the circumvention or violation of, any
  8746  // terms of an Apple operating system software license agreement.
  8747  //
  8748  // Please obtain a copy of the License at
  8749  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8750  //
  8751  // The Original Code and all software distributed under the License are
  8752  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8753  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8754  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8755  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8756  // Please see the License for the specific language governing rights and
  8757  // limitations under the License.
  8758  //
  8759  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8760  
  8761  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8762  //
  8763  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8764  //
  8765  // This file contains Original Code and/or Modifications of Original Code
  8766  // as defined in and that are subject to the Apple Public Source License
  8767  // Version 2.0 (the 'License'). You may not use this file except in
  8768  // compliance with the License. The rights granted to you under the License
  8769  // may not be used to create, or enable the creation or redistribution of,
  8770  // unlawful or unlicensed copies of an Apple operating system, or to
  8771  // circumvent, violate, or enable the circumvention or violation of, any
  8772  // terms of an Apple operating system software license agreement.
  8773  //
  8774  // Please obtain a copy of the License at
  8775  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8776  //
  8777  // The Original Code and all software distributed under the License are
  8778  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8779  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8780  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8781  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8782  // Please see the License for the specific language governing rights and
  8783  // limitations under the License.
  8784  //
  8785  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8786  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  8787  //
  8788  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8789  //
  8790  // This file contains Original Code and/or Modifications of Original Code
  8791  // as defined in and that are subject to the Apple Public Source License
  8792  // Version 2.0 (the 'License'). You may not use this file except in
  8793  // compliance with the License. The rights granted to you under the License
  8794  // may not be used to create, or enable the creation or redistribution of,
  8795  // unlawful or unlicensed copies of an Apple operating system, or to
  8796  // circumvent, violate, or enable the circumvention or violation of, any
  8797  // terms of an Apple operating system software license agreement.
  8798  //
  8799  // Please obtain a copy of the License at
  8800  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8801  //
  8802  // The Original Code and all software distributed under the License are
  8803  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8804  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8805  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8806  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8807  // Please see the License for the specific language governing rights and
  8808  // limitations under the License.
  8809  //
  8810  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8811  
  8812  type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
  8813  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8814  //
  8815  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8816  //
  8817  // This file contains Original Code and/or Modifications of Original Code
  8818  // as defined in and that are subject to the Apple Public Source License
  8819  // Version 2.0 (the 'License'). You may not use this file except in
  8820  // compliance with the License. The rights granted to you under the License
  8821  // may not be used to create, or enable the creation or redistribution of,
  8822  // unlawful or unlicensed copies of an Apple operating system, or to
  8823  // circumvent, violate, or enable the circumvention or violation of, any
  8824  // terms of an Apple operating system software license agreement.
  8825  //
  8826  // Please obtain a copy of the License at
  8827  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8828  //
  8829  // The Original Code and all software distributed under the License are
  8830  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8831  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8832  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8833  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8834  // Please see the License for the specific language governing rights and
  8835  // limitations under the License.
  8836  //
  8837  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8838  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  8839  //
  8840  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8841  //
  8842  // This file contains Original Code and/or Modifications of Original Code
  8843  // as defined in and that are subject to the Apple Public Source License
  8844  // Version 2.0 (the 'License'). You may not use this file except in
  8845  // compliance with the License. The rights granted to you under the License
  8846  // may not be used to create, or enable the creation or redistribution of,
  8847  // unlawful or unlicensed copies of an Apple operating system, or to
  8848  // circumvent, violate, or enable the circumvention or violation of, any
  8849  // terms of an Apple operating system software license agreement.
  8850  //
  8851  // Please obtain a copy of the License at
  8852  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8853  //
  8854  // The Original Code and all software distributed under the License are
  8855  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8856  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8857  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8858  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8859  // Please see the License for the specific language governing rights and
  8860  // limitations under the License.
  8861  //
  8862  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8863  
  8864  type Pthread_cond_t = X__darwin_pthread_cond_t /* _pthread_cond_t.h:31:33 */
  8865  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8866  //
  8867  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8868  //
  8869  // This file contains Original Code and/or Modifications of Original Code
  8870  // as defined in and that are subject to the Apple Public Source License
  8871  // Version 2.0 (the 'License'). You may not use this file except in
  8872  // compliance with the License. The rights granted to you under the License
  8873  // may not be used to create, or enable the creation or redistribution of,
  8874  // unlawful or unlicensed copies of an Apple operating system, or to
  8875  // circumvent, violate, or enable the circumvention or violation of, any
  8876  // terms of an Apple operating system software license agreement.
  8877  //
  8878  // Please obtain a copy of the License at
  8879  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8880  //
  8881  // The Original Code and all software distributed under the License are
  8882  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8883  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8884  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8885  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8886  // Please see the License for the specific language governing rights and
  8887  // limitations under the License.
  8888  //
  8889  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8890  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  8891  //
  8892  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8893  //
  8894  // This file contains Original Code and/or Modifications of Original Code
  8895  // as defined in and that are subject to the Apple Public Source License
  8896  // Version 2.0 (the 'License'). You may not use this file except in
  8897  // compliance with the License. The rights granted to you under the License
  8898  // may not be used to create, or enable the creation or redistribution of,
  8899  // unlawful or unlicensed copies of an Apple operating system, or to
  8900  // circumvent, violate, or enable the circumvention or violation of, any
  8901  // terms of an Apple operating system software license agreement.
  8902  //
  8903  // Please obtain a copy of the License at
  8904  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8905  //
  8906  // The Original Code and all software distributed under the License are
  8907  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8908  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8909  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8910  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8911  // Please see the License for the specific language governing rights and
  8912  // limitations under the License.
  8913  //
  8914  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8915  
  8916  type Pthread_condattr_t = X__darwin_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */
  8917  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8918  //
  8919  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8920  //
  8921  // This file contains Original Code and/or Modifications of Original Code
  8922  // as defined in and that are subject to the Apple Public Source License
  8923  // Version 2.0 (the 'License'). You may not use this file except in
  8924  // compliance with the License. The rights granted to you under the License
  8925  // may not be used to create, or enable the creation or redistribution of,
  8926  // unlawful or unlicensed copies of an Apple operating system, or to
  8927  // circumvent, violate, or enable the circumvention or violation of, any
  8928  // terms of an Apple operating system software license agreement.
  8929  //
  8930  // Please obtain a copy of the License at
  8931  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8932  //
  8933  // The Original Code and all software distributed under the License are
  8934  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8935  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8936  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8937  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8938  // Please see the License for the specific language governing rights and
  8939  // limitations under the License.
  8940  //
  8941  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8942  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  8943  //
  8944  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8945  //
  8946  // This file contains Original Code and/or Modifications of Original Code
  8947  // as defined in and that are subject to the Apple Public Source License
  8948  // Version 2.0 (the 'License'). You may not use this file except in
  8949  // compliance with the License. The rights granted to you under the License
  8950  // may not be used to create, or enable the creation or redistribution of,
  8951  // unlawful or unlicensed copies of an Apple operating system, or to
  8952  // circumvent, violate, or enable the circumvention or violation of, any
  8953  // terms of an Apple operating system software license agreement.
  8954  //
  8955  // Please obtain a copy of the License at
  8956  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8957  //
  8958  // The Original Code and all software distributed under the License are
  8959  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8960  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8961  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8962  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8963  // Please see the License for the specific language governing rights and
  8964  // limitations under the License.
  8965  //
  8966  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8967  
  8968  type Pthread_mutex_t = X__darwin_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */
  8969  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  8970  //
  8971  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8972  //
  8973  // This file contains Original Code and/or Modifications of Original Code
  8974  // as defined in and that are subject to the Apple Public Source License
  8975  // Version 2.0 (the 'License'). You may not use this file except in
  8976  // compliance with the License. The rights granted to you under the License
  8977  // may not be used to create, or enable the creation or redistribution of,
  8978  // unlawful or unlicensed copies of an Apple operating system, or to
  8979  // circumvent, violate, or enable the circumvention or violation of, any
  8980  // terms of an Apple operating system software license agreement.
  8981  //
  8982  // Please obtain a copy of the License at
  8983  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  8984  //
  8985  // The Original Code and all software distributed under the License are
  8986  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  8987  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  8988  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  8989  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  8990  // Please see the License for the specific language governing rights and
  8991  // limitations under the License.
  8992  //
  8993  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  8994  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  8995  //
  8996  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  8997  //
  8998  // This file contains Original Code and/or Modifications of Original Code
  8999  // as defined in and that are subject to the Apple Public Source License
  9000  // Version 2.0 (the 'License'). You may not use this file except in
  9001  // compliance with the License. The rights granted to you under the License
  9002  // may not be used to create, or enable the creation or redistribution of,
  9003  // unlawful or unlicensed copies of an Apple operating system, or to
  9004  // circumvent, violate, or enable the circumvention or violation of, any
  9005  // terms of an Apple operating system software license agreement.
  9006  //
  9007  // Please obtain a copy of the License at
  9008  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9009  //
  9010  // The Original Code and all software distributed under the License are
  9011  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9012  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9013  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9014  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9015  // Please see the License for the specific language governing rights and
  9016  // limitations under the License.
  9017  //
  9018  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9019  
  9020  type Pthread_mutexattr_t = X__darwin_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */
  9021  // Copyright (c) 2003-2012 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  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  9047  //
  9048  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9049  //
  9050  // This file contains Original Code and/or Modifications of Original Code
  9051  // as defined in and that are subject to the Apple Public Source License
  9052  // Version 2.0 (the 'License'). You may not use this file except in
  9053  // compliance with the License. The rights granted to you under the License
  9054  // may not be used to create, or enable the creation or redistribution of,
  9055  // unlawful or unlicensed copies of an Apple operating system, or to
  9056  // circumvent, violate, or enable the circumvention or violation of, any
  9057  // terms of an Apple operating system software license agreement.
  9058  //
  9059  // Please obtain a copy of the License at
  9060  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9061  //
  9062  // The Original Code and all software distributed under the License are
  9063  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9064  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9065  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9066  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9067  // Please see the License for the specific language governing rights and
  9068  // limitations under the License.
  9069  //
  9070  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9071  
  9072  type Pthread_once_t = X__darwin_pthread_once_t /* _pthread_once_t.h:31:33 */
  9073  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9074  //
  9075  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9076  //
  9077  // This file contains Original Code and/or Modifications of Original Code
  9078  // as defined in and that are subject to the Apple Public Source License
  9079  // Version 2.0 (the 'License'). You may not use this file except in
  9080  // compliance with the License. The rights granted to you under the License
  9081  // may not be used to create, or enable the creation or redistribution of,
  9082  // unlawful or unlicensed copies of an Apple operating system, or to
  9083  // circumvent, violate, or enable the circumvention or violation of, any
  9084  // terms of an Apple operating system software license agreement.
  9085  //
  9086  // Please obtain a copy of the License at
  9087  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9088  //
  9089  // The Original Code and all software distributed under the License are
  9090  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9091  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9092  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9093  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9094  // Please see the License for the specific language governing rights and
  9095  // limitations under the License.
  9096  //
  9097  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9098  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  9099  //
  9100  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9101  //
  9102  // This file contains Original Code and/or Modifications of Original Code
  9103  // as defined in and that are subject to the Apple Public Source License
  9104  // Version 2.0 (the 'License'). You may not use this file except in
  9105  // compliance with the License. The rights granted to you under the License
  9106  // may not be used to create, or enable the creation or redistribution of,
  9107  // unlawful or unlicensed copies of an Apple operating system, or to
  9108  // circumvent, violate, or enable the circumvention or violation of, any
  9109  // terms of an Apple operating system software license agreement.
  9110  //
  9111  // Please obtain a copy of the License at
  9112  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9113  //
  9114  // The Original Code and all software distributed under the License are
  9115  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9116  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9117  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9118  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9119  // Please see the License for the specific language governing rights and
  9120  // limitations under the License.
  9121  //
  9122  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9123  
  9124  type Pthread_rwlock_t = X__darwin_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */
  9125  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9126  //
  9127  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9128  //
  9129  // This file contains Original Code and/or Modifications of Original Code
  9130  // as defined in and that are subject to the Apple Public Source License
  9131  // Version 2.0 (the 'License'). You may not use this file except in
  9132  // compliance with the License. The rights granted to you under the License
  9133  // may not be used to create, or enable the creation or redistribution of,
  9134  // unlawful or unlicensed copies of an Apple operating system, or to
  9135  // circumvent, violate, or enable the circumvention or violation of, any
  9136  // terms of an Apple operating system software license agreement.
  9137  //
  9138  // Please obtain a copy of the License at
  9139  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9140  //
  9141  // The Original Code and all software distributed under the License are
  9142  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9143  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9144  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9145  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9146  // Please see the License for the specific language governing rights and
  9147  // limitations under the License.
  9148  //
  9149  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9150  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  9151  //
  9152  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9153  //
  9154  // This file contains Original Code and/or Modifications of Original Code
  9155  // as defined in and that are subject to the Apple Public Source License
  9156  // Version 2.0 (the 'License'). You may not use this file except in
  9157  // compliance with the License. The rights granted to you under the License
  9158  // may not be used to create, or enable the creation or redistribution of,
  9159  // unlawful or unlicensed copies of an Apple operating system, or to
  9160  // circumvent, violate, or enable the circumvention or violation of, any
  9161  // terms of an Apple operating system software license agreement.
  9162  //
  9163  // Please obtain a copy of the License at
  9164  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9165  //
  9166  // The Original Code and all software distributed under the License are
  9167  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9168  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9169  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9170  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9171  // Please see the License for the specific language governing rights and
  9172  // limitations under the License.
  9173  //
  9174  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9175  
  9176  type Pthread_rwlockattr_t = X__darwin_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */
  9177  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9178  //
  9179  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9180  //
  9181  // This file contains Original Code and/or Modifications of Original Code
  9182  // as defined in and that are subject to the Apple Public Source License
  9183  // Version 2.0 (the 'License'). You may not use this file except in
  9184  // compliance with the License. The rights granted to you under the License
  9185  // may not be used to create, or enable the creation or redistribution of,
  9186  // unlawful or unlicensed copies of an Apple operating system, or to
  9187  // circumvent, violate, or enable the circumvention or violation of, any
  9188  // terms of an Apple operating system software license agreement.
  9189  //
  9190  // Please obtain a copy of the License at
  9191  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9192  //
  9193  // The Original Code and all software distributed under the License are
  9194  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9195  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9196  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9197  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9198  // Please see the License for the specific language governing rights and
  9199  // limitations under the License.
  9200  //
  9201  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9202  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  9203  //
  9204  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9205  //
  9206  // This file contains Original Code and/or Modifications of Original Code
  9207  // as defined in and that are subject to the Apple Public Source License
  9208  // Version 2.0 (the 'License'). You may not use this file except in
  9209  // compliance with the License. The rights granted to you under the License
  9210  // may not be used to create, or enable the creation or redistribution of,
  9211  // unlawful or unlicensed copies of an Apple operating system, or to
  9212  // circumvent, violate, or enable the circumvention or violation of, any
  9213  // terms of an Apple operating system software license agreement.
  9214  //
  9215  // Please obtain a copy of the License at
  9216  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9217  //
  9218  // The Original Code and all software distributed under the License are
  9219  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9220  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9221  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9222  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9223  // Please see the License for the specific language governing rights and
  9224  // limitations under the License.
  9225  //
  9226  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9227  
  9228  type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */
  9229  
  9230  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9231  //
  9232  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9233  //
  9234  // This file contains Original Code and/or Modifications of Original Code
  9235  // as defined in and that are subject to the Apple Public Source License
  9236  // Version 2.0 (the 'License'). You may not use this file except in
  9237  // compliance with the License. The rights granted to you under the License
  9238  // may not be used to create, or enable the creation or redistribution of,
  9239  // unlawful or unlicensed copies of an Apple operating system, or to
  9240  // circumvent, violate, or enable the circumvention or violation of, any
  9241  // terms of an Apple operating system software license agreement.
  9242  //
  9243  // Please obtain a copy of the License at
  9244  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9245  //
  9246  // The Original Code and all software distributed under the License are
  9247  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9248  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9249  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9250  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9251  // Please see the License for the specific language governing rights and
  9252  // limitations under the License.
  9253  //
  9254  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9255  // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  9256  //
  9257  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9258  //
  9259  // This file contains Original Code and/or Modifications of Original Code
  9260  // as defined in and that are subject to the Apple Public Source License
  9261  // Version 2.0 (the 'License'). You may not use this file except in
  9262  // compliance with the License. The rights granted to you under the License
  9263  // may not be used to create, or enable the creation or redistribution of,
  9264  // unlawful or unlicensed copies of an Apple operating system, or to
  9265  // circumvent, violate, or enable the circumvention or violation of, any
  9266  // terms of an Apple operating system software license agreement.
  9267  //
  9268  // Please obtain a copy of the License at
  9269  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9270  //
  9271  // The Original Code and all software distributed under the License are
  9272  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9273  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9274  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9275  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9276  // Please see the License for the specific language governing rights and
  9277  // limitations under the License.
  9278  //
  9279  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9280  
  9281  type Pthread_key_t = X__darwin_pthread_key_t /* _pthread_key_t.h:31:32 */
  9282  
  9283  // statvfs and fstatvfs
  9284  
  9285  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9286  //
  9287  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9288  //
  9289  // This file contains Original Code and/or Modifications of Original Code
  9290  // as defined in and that are subject to the Apple Public Source License
  9291  // Version 2.0 (the 'License'). You may not use this file except in
  9292  // compliance with the License. The rights granted to you under the License
  9293  // may not be used to create, or enable the creation or redistribution of,
  9294  // unlawful or unlicensed copies of an Apple operating system, or to
  9295  // circumvent, violate, or enable the circumvention or violation of, any
  9296  // terms of an Apple operating system software license agreement.
  9297  //
  9298  // Please obtain a copy of the License at
  9299  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9300  //
  9301  // The Original Code and all software distributed under the License are
  9302  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9303  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9304  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9305  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9306  // Please see the License for the specific language governing rights and
  9307  // limitations under the License.
  9308  //
  9309  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9310  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  9311  //
  9312  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9313  //
  9314  // This file contains Original Code and/or Modifications of Original Code
  9315  // as defined in and that are subject to the Apple Public Source License
  9316  // Version 2.0 (the 'License'). You may not use this file except in
  9317  // compliance with the License. The rights granted to you under the License
  9318  // may not be used to create, or enable the creation or redistribution of,
  9319  // unlawful or unlicensed copies of an Apple operating system, or to
  9320  // circumvent, violate, or enable the circumvention or violation of, any
  9321  // terms of an Apple operating system software license agreement.
  9322  //
  9323  // Please obtain a copy of the License at
  9324  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9325  //
  9326  // The Original Code and all software distributed under the License are
  9327  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9328  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9329  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9330  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9331  // Please see the License for the specific language governing rights and
  9332  // limitations under the License.
  9333  //
  9334  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9335  
  9336  type Fsblkcnt_t = X__darwin_fsblkcnt_t /* _fsblkcnt_t.h:31:41 */
  9337  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  9338  //
  9339  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9340  //
  9341  // This file contains Original Code and/or Modifications of Original Code
  9342  // as defined in and that are subject to the Apple Public Source License
  9343  // Version 2.0 (the 'License'). You may not use this file except in
  9344  // compliance with the License. The rights granted to you under the License
  9345  // may not be used to create, or enable the creation or redistribution of,
  9346  // unlawful or unlicensed copies of an Apple operating system, or to
  9347  // circumvent, violate, or enable the circumvention or violation of, any
  9348  // terms of an Apple operating system software license agreement.
  9349  //
  9350  // Please obtain a copy of the License at
  9351  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9352  //
  9353  // The Original Code and all software distributed under the License are
  9354  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9355  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9356  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9357  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9358  // Please see the License for the specific language governing rights and
  9359  // limitations under the License.
  9360  //
  9361  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9362  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  9363  //
  9364  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  9365  //
  9366  // This file contains Original Code and/or Modifications of Original Code
  9367  // as defined in and that are subject to the Apple Public Source License
  9368  // Version 2.0 (the 'License'). You may not use this file except in
  9369  // compliance with the License. The rights granted to you under the License
  9370  // may not be used to create, or enable the creation or redistribution of,
  9371  // unlawful or unlicensed copies of an Apple operating system, or to
  9372  // circumvent, violate, or enable the circumvention or violation of, any
  9373  // terms of an Apple operating system software license agreement.
  9374  //
  9375  // Please obtain a copy of the License at
  9376  // http://www.opensource.apple.com/apsl/ and read it before using this file.
  9377  //
  9378  // The Original Code and all software distributed under the License are
  9379  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  9380  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  9381  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  9382  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  9383  // Please see the License for the specific language governing rights and
  9384  // limitations under the License.
  9385  //
  9386  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  9387  
  9388  type Fsfilcnt_t = X__darwin_fsfilcnt_t /* _fsfilcnt_t.h:31:41 */
  9389  
  9390  // Definitions for the X window system likely to be used by applications
  9391  
  9392  //**********************************************************
  9393  //
  9394  // Copyright 1987, 1998  The Open Group
  9395  //
  9396  // Permission to use, copy, modify, distribute, and sell this software and its
  9397  // documentation for any purpose is hereby granted without fee, provided that
  9398  // the above copyright notice appear in all copies and that both that
  9399  // copyright notice and this permission notice appear in supporting
  9400  // documentation.
  9401  //
  9402  // The above copyright notice and this permission notice shall be included in
  9403  // all copies or substantial portions of the Software.
  9404  //
  9405  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  9406  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  9407  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  9408  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  9409  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  9410  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  9411  //
  9412  // Except as contained in this notice, the name of The Open Group shall not be
  9413  // used in advertising or otherwise to promote the sale, use or other dealings
  9414  // in this Software without prior written authorization from The Open Group.
  9415  //
  9416  //
  9417  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  9418  //
  9419  //                         All Rights Reserved
  9420  //
  9421  // Permission to use, copy, modify, and distribute this software and its
  9422  // documentation for any purpose and without fee is hereby granted,
  9423  // provided that the above copyright notice appear in all copies and that
  9424  // both that copyright notice and this permission notice appear in
  9425  // supporting documentation, and that the name of Digital not be
  9426  // used in advertising or publicity pertaining to distribution of the
  9427  // software without specific, written prior permission.
  9428  //
  9429  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  9430  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  9431  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  9432  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  9433  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  9434  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  9435  // SOFTWARE.
  9436  //
  9437  // *****************************************************************
  9438  
  9439  // Resources
  9440  
  9441  // _XSERVER64 must ONLY be defined when compiling X server sources on
  9442  // systems where unsigned long is not 32 bits, must NOT be used in
  9443  // client or library code.
  9444  type XID = uint64      /* X.h:66:23 */
  9445  type Mask = uint64     /* X.h:70:23 */
  9446  type Atom = uint64     /* X.h:74:23 */ // Also in Xdefs.h
  9447  type VisualID = uint64 /* X.h:76:23 */
  9448  type Time = uint64     /* X.h:77:23 */
  9449  
  9450  type Window = XID   /* X.h:96:13 */
  9451  type Drawable = XID /* X.h:97:13 */
  9452  type Font = XID     /* X.h:100:13 */
  9453  type Pixmap = XID   /* X.h:102:13 */
  9454  type Cursor = XID   /* X.h:103:13 */
  9455  type Colormap = XID /* X.h:104:13 */
  9456  type GContext = XID /* X.h:105:13 */
  9457  type KeySym = XID   /* X.h:106:13 */
  9458  
  9459  type KeyCode = uint8 /* X.h:108:23 */
  9460  
  9461  // A null pointer constant.
  9462  
  9463  // Offset of member MEMBER in a struct of type TYPE.
  9464  
  9465  // Type whose alignment is supported in every context and is at least
  9466  //    as great as that of any standard type not using alignment
  9467  //    specifiers.
  9468  type Max_align_t = struct {
  9469  	F__max_align_ll int64
  9470  	F__max_align_ld float64
  9471  } /* stddef.h:426:3 */
  9472  
  9473  // API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in
  9474  //    November 2000. Its presence is indicated through the following macro.
  9475  
  9476  // The Xlib structs are full of implicit padding to properly align members.
  9477  //    We can't clean that up without breaking ABI, so tell clang not to bother
  9478  //    complaining about it.
  9479  
  9480  type XPointer = uintptr /* Xlib.h:80:14 */
  9481  
  9482  // macros for screen oriented applications (toolkit)
  9483  
  9484  // Extensions need a way to hang private data on some structures.
  9485  type X_XExtData = struct {
  9486  	Fnumber       int32
  9487  	F__ccgo_pad1  [4]byte
  9488  	Fnext         uintptr
  9489  	Ffree_private uintptr
  9490  	Fprivate_data XPointer
  9491  } /* Xlib.h:148:9 */
  9492  
  9493  // macros for screen oriented applications (toolkit)
  9494  
  9495  // Extensions need a way to hang private data on some structures.
  9496  type XExtData = X_XExtData /* Xlib.h:155:3 */
  9497  
  9498  // This file contains structures used by the extension mechanism.
  9499  type XExtCodes = struct {
  9500  	Fextension    int32
  9501  	Fmajor_opcode int32
  9502  	Ffirst_event  int32
  9503  	Ffirst_error  int32
  9504  } /* Xlib.h:165:3 */
  9505  
  9506  // Data structure for retrieving info about pixmap formats.
  9507  
  9508  type XPixmapFormatValues = struct {
  9509  	Fdepth          int32
  9510  	Fbits_per_pixel int32
  9511  	Fscanline_pad   int32
  9512  } /* Xlib.h:175:3 */
  9513  
  9514  // Data structure for setting graphics context.
  9515  type XGCValues = struct {
  9516  	Ffunction           int32
  9517  	F__ccgo_pad1        [4]byte
  9518  	Fplane_mask         uint64
  9519  	Fforeground         uint64
  9520  	Fbackground         uint64
  9521  	Fline_width         int32
  9522  	Fline_style         int32
  9523  	Fcap_style          int32
  9524  	Fjoin_style         int32
  9525  	Ffill_style         int32
  9526  	Ffill_rule          int32
  9527  	Farc_mode           int32
  9528  	F__ccgo_pad2        [4]byte
  9529  	Ftile               Pixmap
  9530  	Fstipple            Pixmap
  9531  	Fts_x_origin        int32
  9532  	Fts_y_origin        int32
  9533  	Ffont               Font
  9534  	Fsubwindow_mode     int32
  9535  	Fgraphics_exposures int32
  9536  	Fclip_x_origin      int32
  9537  	Fclip_y_origin      int32
  9538  	Fclip_mask          Pixmap
  9539  	Fdash_offset        int32
  9540  	Fdashes             int8
  9541  	F__ccgo_pad3        [3]byte
  9542  } /* Xlib.h:207:3 */
  9543  
  9544  // Graphics context.  The contents of this structure are implementation
  9545  // dependent.  A GC should be treated as opaque by application code.
  9546  
  9547  type X_XGC = struct {
  9548  	Fext_data uintptr
  9549  	Fgid      GContext
  9550  	Frects    int32
  9551  	Fdashes   int32
  9552  	Fdirty    uint64
  9553  	Fvalues   XGCValues
  9554  } /* Xlib.h:214:9 */
  9555  
  9556  // Graphics context.  The contents of this structure are implementation
  9557  // dependent.  A GC should be treated as opaque by application code.
  9558  
  9559  type GC = uintptr /* Xlib.h:222:1 */
  9560  
  9561  // Visual structure; contains information about colormapping possible.
  9562  type Visual = struct {
  9563  	Fext_data     uintptr
  9564  	Fvisualid     VisualID
  9565  	Fclass        int32
  9566  	F__ccgo_pad1  [4]byte
  9567  	Fred_mask     uint64
  9568  	Fgreen_mask   uint64
  9569  	Fblue_mask    uint64
  9570  	Fbits_per_rgb int32
  9571  	Fmap_entries  int32
  9572  } /* Xlib.h:238:3 */
  9573  
  9574  // Depth structure; contains information for each possible depth.
  9575  type Depth = struct {
  9576  	Fdepth    int32
  9577  	Fnvisuals int32
  9578  	Fvisuals  uintptr
  9579  } /* Xlib.h:247:3 */
  9580  
  9581  // Information about the screen.  The contents of this structure are
  9582  // implementation dependent.  A Screen should be treated as opaque
  9583  // by application code.
  9584  
  9585  type X_XDisplay = struct {
  9586  	Fext_data            uintptr
  9587  	Ffree_funcs          uintptr
  9588  	Ffd                  int32
  9589  	Fconn_checker        int32
  9590  	Fproto_major_version int32
  9591  	Fproto_minor_version int32
  9592  	Fvendor              uintptr
  9593  	Fresource_base       XID
  9594  	Fresource_mask       XID
  9595  	Fresource_id         XID
  9596  	Fresource_shift      int32
  9597  	F__ccgo_pad1         [4]byte
  9598  	Fresource_alloc      uintptr
  9599  	Fbyte_order          int32
  9600  	Fbitmap_unit         int32
  9601  	Fbitmap_pad          int32
  9602  	Fbitmap_bit_order    int32
  9603  	Fnformats            int32
  9604  	F__ccgo_pad2         [4]byte
  9605  	Fpixmap_format       uintptr
  9606  	Fvnumber             int32
  9607  	Frelease             int32
  9608  	Fhead                uintptr
  9609  	Ftail                uintptr
  9610  	Fqlen                int32
  9611  	F__ccgo_pad3         [4]byte
  9612  	Flast_request_read   uint64
  9613  	Frequest             uint64
  9614  	Flast_req            uintptr
  9615  	Fbuffer              uintptr
  9616  	Fbufptr              uintptr
  9617  	Fbufmax              uintptr
  9618  	Fmax_request_size    uint32
  9619  	F__ccgo_pad4         [4]byte
  9620  	Fdb                  uintptr
  9621  	Fsynchandler         uintptr
  9622  	Fdisplay_name        uintptr
  9623  	Fdefault_screen      int32
  9624  	Fnscreens            int32
  9625  	Fscreens             uintptr
  9626  	Fmotion_buffer       uint64
  9627  	Fflags               uint64
  9628  	Fmin_keycode         int32
  9629  	Fmax_keycode         int32
  9630  	Fkeysyms             uintptr
  9631  	Fmodifiermap         uintptr
  9632  	Fkeysyms_per_keycode int32
  9633  	F__ccgo_pad5         [4]byte
  9634  	Fxdefaults           uintptr
  9635  	Fscratch_buffer      uintptr
  9636  	Fscratch_length      uint64
  9637  	Fext_number          int32
  9638  	F__ccgo_pad6         [4]byte
  9639  	Fext_procs           uintptr
  9640  	Fevent_vec           [128]uintptr
  9641  	Fwire_vec            [128]uintptr
  9642  	Flock_meaning        KeySym
  9643  	Flock                uintptr
  9644  	Fasync_handlers      uintptr
  9645  	Fbigreq_size         uint64
  9646  	Flock_fns            uintptr
  9647  	Fidlist_alloc        uintptr
  9648  	Fkey_bindings        uintptr
  9649  	Fcursor_font         Font
  9650  	Fatoms               uintptr
  9651  	Fmode_switch         uint32
  9652  	Fnum_lock            uint32
  9653  	Fcontext_db          uintptr
  9654  	Ferror_vec           uintptr
  9655  	Fcms                 struct {
  9656  		FdefaultCCCs            XPointer
  9657  		FclientCmaps            XPointer
  9658  		FperVisualIntensityMaps XPointer
  9659  	}
  9660  	Fim_filters             uintptr
  9661  	Fqfree                  uintptr
  9662  	Fnext_event_serial_num  uint64
  9663  	Fflushes                uintptr
  9664  	Fim_fd_info             uintptr
  9665  	Fim_fd_length           int32
  9666  	F__ccgo_pad7            [4]byte
  9667  	Fconn_watchers          uintptr
  9668  	Fwatcher_count          int32
  9669  	F__ccgo_pad8            [4]byte
  9670  	Ffiledes                XPointer
  9671  	Fsavedsynchandler       uintptr
  9672  	Fresource_max           XID
  9673  	Fxcmisc_opcode          int32
  9674  	F__ccgo_pad9            [4]byte
  9675  	Fxkb_info               uintptr
  9676  	Ftrans_conn             uintptr
  9677  	Fxcb                    uintptr
  9678  	Fnext_cookie            uint32
  9679  	F__ccgo_pad10           [4]byte
  9680  	Fgeneric_event_vec      [128]uintptr
  9681  	Fgeneric_event_copy_vec [128]uintptr
  9682  	Fcookiejar              uintptr
  9683  	Ferror_threads          uintptr
  9684  	Fexit_handler           XIOErrorExitHandler
  9685  	Fexit_handler_data      uintptr
  9686  } /* Xlib.h:255:1 */
  9687  
  9688  // Forward declare before use for C++
  9689  
  9690  type Screen = struct {
  9691  	Fext_data        uintptr
  9692  	Fdisplay         uintptr
  9693  	Froot            Window
  9694  	Fwidth           int32
  9695  	Fheight          int32
  9696  	Fmwidth          int32
  9697  	Fmheight         int32
  9698  	Fndepths         int32
  9699  	F__ccgo_pad1     [4]byte
  9700  	Fdepths          uintptr
  9701  	Froot_depth      int32
  9702  	F__ccgo_pad2     [4]byte
  9703  	Froot_visual     uintptr
  9704  	Fdefault_gc      GC
  9705  	Fcmap            Colormap
  9706  	Fwhite_pixel     uint64
  9707  	Fblack_pixel     uint64
  9708  	Fmax_maps        int32
  9709  	Fmin_maps        int32
  9710  	Fbacking_store   int32
  9711  	Fsave_unders     int32
  9712  	Froot_input_mask int64
  9713  } /* Xlib.h:275:3 */
  9714  
  9715  // Format structure; describes ZFormat data the screen will understand.
  9716  type ScreenFormat = struct {
  9717  	Fext_data       uintptr
  9718  	Fdepth          int32
  9719  	Fbits_per_pixel int32
  9720  	Fscanline_pad   int32
  9721  	F__ccgo_pad1    [4]byte
  9722  } /* Xlib.h:285:3 */
  9723  
  9724  // Data structure for setting window attributes.
  9725  type XSetWindowAttributes = struct {
  9726  	Fbackground_pixmap     Pixmap
  9727  	Fbackground_pixel      uint64
  9728  	Fborder_pixmap         Pixmap
  9729  	Fborder_pixel          uint64
  9730  	Fbit_gravity           int32
  9731  	Fwin_gravity           int32
  9732  	Fbacking_store         int32
  9733  	F__ccgo_pad1           [4]byte
  9734  	Fbacking_planes        uint64
  9735  	Fbacking_pixel         uint64
  9736  	Fsave_under            int32
  9737  	F__ccgo_pad2           [4]byte
  9738  	Fevent_mask            int64
  9739  	Fdo_not_propagate_mask int64
  9740  	Foverride_redirect     int32
  9741  	F__ccgo_pad3           [4]byte
  9742  	Fcolormap              Colormap
  9743  	Fcursor                Cursor
  9744  } /* Xlib.h:306:3 */
  9745  
  9746  type XWindowAttributes = struct {
  9747  	Fx                     int32
  9748  	Fy                     int32
  9749  	Fwidth                 int32
  9750  	Fheight                int32
  9751  	Fborder_width          int32
  9752  	Fdepth                 int32
  9753  	Fvisual                uintptr
  9754  	Froot                  Window
  9755  	Fclass                 int32
  9756  	Fbit_gravity           int32
  9757  	Fwin_gravity           int32
  9758  	Fbacking_store         int32
  9759  	Fbacking_planes        uint64
  9760  	Fbacking_pixel         uint64
  9761  	Fsave_under            int32
  9762  	F__ccgo_pad1           [4]byte
  9763  	Fcolormap              Colormap
  9764  	Fmap_installed         int32
  9765  	Fmap_state             int32
  9766  	Fall_event_masks       int64
  9767  	Fyour_event_mask       int64
  9768  	Fdo_not_propagate_mask int64
  9769  	Foverride_redirect     int32
  9770  	F__ccgo_pad2           [4]byte
  9771  	Fscreen                uintptr
  9772  } /* Xlib.h:334:3 */
  9773  
  9774  // Data structure for host setting; getting routines.
  9775  //
  9776  
  9777  type XHostAddress = struct {
  9778  	Ffamily  int32
  9779  	Flength  int32
  9780  	Faddress uintptr
  9781  } /* Xlib.h:345:3 */
  9782  
  9783  // Data structure for ServerFamilyInterpreted addresses in host routines
  9784  type XServerInterpretedAddress = struct {
  9785  	Ftypelength  int32
  9786  	Fvaluelength int32
  9787  	Ftype        uintptr
  9788  	Fvalue       uintptr
  9789  } /* Xlib.h:355:3 */
  9790  
  9791  // Data structure for "image" data, used by image manipulation routines.
  9792  type X_XImage = struct {
  9793  	Fwidth            int32
  9794  	Fheight           int32
  9795  	Fxoffset          int32
  9796  	Fformat           int32
  9797  	Fdata             uintptr
  9798  	Fbyte_order       int32
  9799  	Fbitmap_unit      int32
  9800  	Fbitmap_bit_order int32
  9801  	Fbitmap_pad       int32
  9802  	Fdepth            int32
  9803  	Fbytes_per_line   int32
  9804  	Fbits_per_pixel   int32
  9805  	F__ccgo_pad1      [4]byte
  9806  	Fred_mask         uint64
  9807  	Fgreen_mask       uint64
  9808  	Fblue_mask        uint64
  9809  	Fobdata           XPointer
  9810  	Ff                struct {
  9811  		Fcreate_image  uintptr
  9812  		Fdestroy_image uintptr
  9813  		Fget_pixel     uintptr
  9814  		Fput_pixel     uintptr
  9815  		Fsub_image     uintptr
  9816  		Fadd_pixel     uintptr
  9817  	}
  9818  } /* Xlib.h:360:9 */
  9819  
  9820  // Data structure for "image" data, used by image manipulation routines.
  9821  type Funcs = struct {
  9822  	Fcreate_image  uintptr
  9823  	Fdestroy_image uintptr
  9824  	Fget_pixel     uintptr
  9825  	Fput_pixel     uintptr
  9826  	Fsub_image     uintptr
  9827  	Fadd_pixel     uintptr
  9828  } /* Xlib.h:360:9 */
  9829  
  9830  // Data structure for "image" data, used by image manipulation routines.
  9831  type XImage = X_XImage /* Xlib.h:394:3 */
  9832  
  9833  // Data structure for XReconfigureWindow
  9834  type XWindowChanges = struct {
  9835  	Fx            int32
  9836  	Fy            int32
  9837  	Fwidth        int32
  9838  	Fheight       int32
  9839  	Fborder_width int32
  9840  	F__ccgo_pad1  [4]byte
  9841  	Fsibling      Window
  9842  	Fstack_mode   int32
  9843  	F__ccgo_pad2  [4]byte
  9844  } /* Xlib.h:405:3 */
  9845  
  9846  // Data structure used by color operations
  9847  type XColor = struct {
  9848  	Fpixel uint64
  9849  	Fred   uint16
  9850  	Fgreen uint16
  9851  	Fblue  uint16
  9852  	Fflags int8
  9853  	Fpad   int8
  9854  } /* Xlib.h:415:3 */
  9855  
  9856  // Data structures for graphics operations.  On most machines, these are
  9857  // congruent with the wire protocol structures, so reformatting the data
  9858  // can be avoided on these architectures.
  9859  type XSegment = struct {
  9860  	Fx1 int16
  9861  	Fy1 int16
  9862  	Fx2 int16
  9863  	Fy2 int16
  9864  } /* Xlib.h:424:3 */
  9865  
  9866  type XPoint = struct {
  9867  	Fx int16
  9868  	Fy int16
  9869  } /* Xlib.h:428:3 */
  9870  
  9871  type XRectangle = struct {
  9872  	Fx      int16
  9873  	Fy      int16
  9874  	Fwidth  uint16
  9875  	Fheight uint16
  9876  } /* Xlib.h:433:3 */
  9877  
  9878  type XArc = struct {
  9879  	Fx      int16
  9880  	Fy      int16
  9881  	Fwidth  uint16
  9882  	Fheight uint16
  9883  	Fangle1 int16
  9884  	Fangle2 int16
  9885  } /* Xlib.h:439:3 */
  9886  
  9887  // Data structure for XChangeKeyboardControl
  9888  
  9889  type XKeyboardControl = struct {
  9890  	Fkey_click_percent int32
  9891  	Fbell_percent      int32
  9892  	Fbell_pitch        int32
  9893  	Fbell_duration     int32
  9894  	Fled               int32
  9895  	Fled_mode          int32
  9896  	Fkey               int32
  9897  	Fauto_repeat_mode  int32
  9898  } /* Xlib.h:453:3 */
  9899  
  9900  // Data structure for XGetKeyboardControl
  9901  
  9902  type XKeyboardState = struct {
  9903  	Fkey_click_percent  int32
  9904  	Fbell_percent       int32
  9905  	Fbell_pitch         uint32
  9906  	Fbell_duration      uint32
  9907  	Fled_mask           uint64
  9908  	Fglobal_auto_repeat int32
  9909  	Fauto_repeats       [32]int8
  9910  	F__ccgo_pad1        [4]byte
  9911  } /* Xlib.h:464:3 */
  9912  
  9913  // Data structure for XGetMotionEvents.
  9914  
  9915  type XTimeCoord = struct {
  9916  	Ftime        Time
  9917  	Fx           int16
  9918  	Fy           int16
  9919  	F__ccgo_pad1 [4]byte
  9920  } /* Xlib.h:471:3 */
  9921  
  9922  // Data structure for X{Set,Get}ModifierMapping
  9923  
  9924  type XModifierKeymap = struct {
  9925  	Fmax_keypermod int32
  9926  	F__ccgo_pad1   [4]byte
  9927  	Fmodifiermap   uintptr
  9928  } /* Xlib.h:478:3 */
  9929  
  9930  // Display datatype maintaining display specific data.
  9931  // The contents of this structure are implementation dependent.
  9932  // A Display should be treated as opaque by application code.
  9933  type Display = X_XDisplay /* Xlib.h:487:26 */
  9934  
  9935  type X_XPrivDisplay = uintptr /* Xlib.h:550:1 */
  9936  
  9937  // Definitions of specific events.
  9938  type XKeyEvent = struct {
  9939  	Ftype        int32
  9940  	F__ccgo_pad1 [4]byte
  9941  	Fserial      uint64
  9942  	Fsend_event  int32
  9943  	F__ccgo_pad2 [4]byte
  9944  	Fdisplay     uintptr
  9945  	Fwindow      Window
  9946  	Froot        Window
  9947  	Fsubwindow   Window
  9948  	Ftime        Time
  9949  	Fx           int32
  9950  	Fy           int32
  9951  	Fx_root      int32
  9952  	Fy_root      int32
  9953  	Fstate       uint32
  9954  	Fkeycode     uint32
  9955  	Fsame_screen int32
  9956  	F__ccgo_pad3 [4]byte
  9957  }                                  /* Xlib.h:571:3 */
  9958  type XKeyPressedEvent = XKeyEvent  /* Xlib.h:572:19 */
  9959  type XKeyReleasedEvent = XKeyEvent /* Xlib.h:573:19 */
  9960  
  9961  type XButtonEvent = struct {
  9962  	Ftype        int32
  9963  	F__ccgo_pad1 [4]byte
  9964  	Fserial      uint64
  9965  	Fsend_event  int32
  9966  	F__ccgo_pad2 [4]byte
  9967  	Fdisplay     uintptr
  9968  	Fwindow      Window
  9969  	Froot        Window
  9970  	Fsubwindow   Window
  9971  	Ftime        Time
  9972  	Fx           int32
  9973  	Fy           int32
  9974  	Fx_root      int32
  9975  	Fy_root      int32
  9976  	Fstate       uint32
  9977  	Fbutton      uint32
  9978  	Fsame_screen int32
  9979  	F__ccgo_pad3 [4]byte
  9980  }                                        /* Xlib.h:589:3 */
  9981  type XButtonPressedEvent = XButtonEvent  /* Xlib.h:590:22 */
  9982  type XButtonReleasedEvent = XButtonEvent /* Xlib.h:591:22 */
  9983  
  9984  type XMotionEvent = struct {
  9985  	Ftype        int32
  9986  	F__ccgo_pad1 [4]byte
  9987  	Fserial      uint64
  9988  	Fsend_event  int32
  9989  	F__ccgo_pad2 [4]byte
  9990  	Fdisplay     uintptr
  9991  	Fwindow      Window
  9992  	Froot        Window
  9993  	Fsubwindow   Window
  9994  	Ftime        Time
  9995  	Fx           int32
  9996  	Fy           int32
  9997  	Fx_root      int32
  9998  	Fy_root      int32
  9999  	Fstate       uint32
 10000  	Fis_hint     int8
 10001  	F__ccgo_pad3 [3]byte
 10002  	Fsame_screen int32
 10003  	F__ccgo_pad4 [4]byte
 10004  }                                      /* Xlib.h:607:3 */
 10005  type XPointerMovedEvent = XMotionEvent /* Xlib.h:608:22 */
 10006  
 10007  type XCrossingEvent = struct {
 10008  	Ftype        int32
 10009  	F__ccgo_pad1 [4]byte
 10010  	Fserial      uint64
 10011  	Fsend_event  int32
 10012  	F__ccgo_pad2 [4]byte
 10013  	Fdisplay     uintptr
 10014  	Fwindow      Window
 10015  	Froot        Window
 10016  	Fsubwindow   Window
 10017  	Ftime        Time
 10018  	Fx           int32
 10019  	Fy           int32
 10020  	Fx_root      int32
 10021  	Fy_root      int32
 10022  	Fmode        int32
 10023  	Fdetail      int32
 10024  	Fsame_screen int32
 10025  	Ffocus       int32
 10026  	Fstate       uint32
 10027  	F__ccgo_pad3 [4]byte
 10028  }                                       /* Xlib.h:630:3 */
 10029  type XEnterWindowEvent = XCrossingEvent /* Xlib.h:631:24 */
 10030  type XLeaveWindowEvent = XCrossingEvent /* Xlib.h:632:24 */
 10031  
 10032  type XFocusChangeEvent = struct {
 10033  	Ftype        int32
 10034  	F__ccgo_pad1 [4]byte
 10035  	Fserial      uint64
 10036  	Fsend_event  int32
 10037  	F__ccgo_pad2 [4]byte
 10038  	Fdisplay     uintptr
 10039  	Fwindow      Window
 10040  	Fmode        int32
 10041  	Fdetail      int32
 10042  }                                       /* Xlib.h:648:3 */
 10043  type XFocusInEvent = XFocusChangeEvent  /* Xlib.h:649:27 */
 10044  type XFocusOutEvent = XFocusChangeEvent /* Xlib.h:650:27 */
 10045  
 10046  // generated on EnterWindow and FocusIn  when KeyMapState selected
 10047  type XKeymapEvent = struct {
 10048  	Ftype        int32
 10049  	F__ccgo_pad1 [4]byte
 10050  	Fserial      uint64
 10051  	Fsend_event  int32
 10052  	F__ccgo_pad2 [4]byte
 10053  	Fdisplay     uintptr
 10054  	Fwindow      Window
 10055  	Fkey_vector  [32]int8
 10056  } /* Xlib.h:660:3 */
 10057  
 10058  type XExposeEvent = struct {
 10059  	Ftype        int32
 10060  	F__ccgo_pad1 [4]byte
 10061  	Fserial      uint64
 10062  	Fsend_event  int32
 10063  	F__ccgo_pad2 [4]byte
 10064  	Fdisplay     uintptr
 10065  	Fwindow      Window
 10066  	Fx           int32
 10067  	Fy           int32
 10068  	Fwidth       int32
 10069  	Fheight      int32
 10070  	Fcount       int32
 10071  	F__ccgo_pad3 [4]byte
 10072  } /* Xlib.h:671:3 */
 10073  
 10074  type XGraphicsExposeEvent = struct {
 10075  	Ftype        int32
 10076  	F__ccgo_pad1 [4]byte
 10077  	Fserial      uint64
 10078  	Fsend_event  int32
 10079  	F__ccgo_pad2 [4]byte
 10080  	Fdisplay     uintptr
 10081  	Fdrawable    Drawable
 10082  	Fx           int32
 10083  	Fy           int32
 10084  	Fwidth       int32
 10085  	Fheight      int32
 10086  	Fcount       int32
 10087  	Fmajor_code  int32
 10088  	Fminor_code  int32
 10089  	F__ccgo_pad3 [4]byte
 10090  } /* Xlib.h:684:3 */
 10091  
 10092  type XNoExposeEvent = struct {
 10093  	Ftype        int32
 10094  	F__ccgo_pad1 [4]byte
 10095  	Fserial      uint64
 10096  	Fsend_event  int32
 10097  	F__ccgo_pad2 [4]byte
 10098  	Fdisplay     uintptr
 10099  	Fdrawable    Drawable
 10100  	Fmajor_code  int32
 10101  	Fminor_code  int32
 10102  } /* Xlib.h:694:3 */
 10103  
 10104  type XVisibilityEvent = struct {
 10105  	Ftype        int32
 10106  	F__ccgo_pad1 [4]byte
 10107  	Fserial      uint64
 10108  	Fsend_event  int32
 10109  	F__ccgo_pad2 [4]byte
 10110  	Fdisplay     uintptr
 10111  	Fwindow      Window
 10112  	Fstate       int32
 10113  	F__ccgo_pad3 [4]byte
 10114  } /* Xlib.h:703:3 */
 10115  
 10116  type XCreateWindowEvent = struct {
 10117  	Ftype              int32
 10118  	F__ccgo_pad1       [4]byte
 10119  	Fserial            uint64
 10120  	Fsend_event        int32
 10121  	F__ccgo_pad2       [4]byte
 10122  	Fdisplay           uintptr
 10123  	Fparent            Window
 10124  	Fwindow            Window
 10125  	Fx                 int32
 10126  	Fy                 int32
 10127  	Fwidth             int32
 10128  	Fheight            int32
 10129  	Fborder_width      int32
 10130  	Foverride_redirect int32
 10131  } /* Xlib.h:716:3 */
 10132  
 10133  type XDestroyWindowEvent = struct {
 10134  	Ftype        int32
 10135  	F__ccgo_pad1 [4]byte
 10136  	Fserial      uint64
 10137  	Fsend_event  int32
 10138  	F__ccgo_pad2 [4]byte
 10139  	Fdisplay     uintptr
 10140  	Fevent       Window
 10141  	Fwindow      Window
 10142  } /* Xlib.h:725:3 */
 10143  
 10144  type XUnmapEvent = struct {
 10145  	Ftype           int32
 10146  	F__ccgo_pad1    [4]byte
 10147  	Fserial         uint64
 10148  	Fsend_event     int32
 10149  	F__ccgo_pad2    [4]byte
 10150  	Fdisplay        uintptr
 10151  	Fevent          Window
 10152  	Fwindow         Window
 10153  	Ffrom_configure int32
 10154  	F__ccgo_pad3    [4]byte
 10155  } /* Xlib.h:735:3 */
 10156  
 10157  type XMapEvent = struct {
 10158  	Ftype              int32
 10159  	F__ccgo_pad1       [4]byte
 10160  	Fserial            uint64
 10161  	Fsend_event        int32
 10162  	F__ccgo_pad2       [4]byte
 10163  	Fdisplay           uintptr
 10164  	Fevent             Window
 10165  	Fwindow            Window
 10166  	Foverride_redirect int32
 10167  	F__ccgo_pad3       [4]byte
 10168  } /* Xlib.h:745:3 */
 10169  
 10170  type XMapRequestEvent = struct {
 10171  	Ftype        int32
 10172  	F__ccgo_pad1 [4]byte
 10173  	Fserial      uint64
 10174  	Fsend_event  int32
 10175  	F__ccgo_pad2 [4]byte
 10176  	Fdisplay     uintptr
 10177  	Fparent      Window
 10178  	Fwindow      Window
 10179  } /* Xlib.h:754:3 */
 10180  
 10181  type XReparentEvent = struct {
 10182  	Ftype              int32
 10183  	F__ccgo_pad1       [4]byte
 10184  	Fserial            uint64
 10185  	Fsend_event        int32
 10186  	F__ccgo_pad2       [4]byte
 10187  	Fdisplay           uintptr
 10188  	Fevent             Window
 10189  	Fwindow            Window
 10190  	Fparent            Window
 10191  	Fx                 int32
 10192  	Fy                 int32
 10193  	Foverride_redirect int32
 10194  	F__ccgo_pad3       [4]byte
 10195  } /* Xlib.h:766:3 */
 10196  
 10197  type XConfigureEvent = struct {
 10198  	Ftype              int32
 10199  	F__ccgo_pad1       [4]byte
 10200  	Fserial            uint64
 10201  	Fsend_event        int32
 10202  	F__ccgo_pad2       [4]byte
 10203  	Fdisplay           uintptr
 10204  	Fevent             Window
 10205  	Fwindow            Window
 10206  	Fx                 int32
 10207  	Fy                 int32
 10208  	Fwidth             int32
 10209  	Fheight            int32
 10210  	Fborder_width      int32
 10211  	F__ccgo_pad3       [4]byte
 10212  	Fabove             Window
 10213  	Foverride_redirect int32
 10214  	F__ccgo_pad4       [4]byte
 10215  } /* Xlib.h:780:3 */
 10216  
 10217  type XGravityEvent = struct {
 10218  	Ftype        int32
 10219  	F__ccgo_pad1 [4]byte
 10220  	Fserial      uint64
 10221  	Fsend_event  int32
 10222  	F__ccgo_pad2 [4]byte
 10223  	Fdisplay     uintptr
 10224  	Fevent       Window
 10225  	Fwindow      Window
 10226  	Fx           int32
 10227  	Fy           int32
 10228  } /* Xlib.h:790:3 */
 10229  
 10230  type XResizeRequestEvent = struct {
 10231  	Ftype        int32
 10232  	F__ccgo_pad1 [4]byte
 10233  	Fserial      uint64
 10234  	Fsend_event  int32
 10235  	F__ccgo_pad2 [4]byte
 10236  	Fdisplay     uintptr
 10237  	Fwindow      Window
 10238  	Fwidth       int32
 10239  	Fheight      int32
 10240  } /* Xlib.h:799:3 */
 10241  
 10242  type XConfigureRequestEvent = struct {
 10243  	Ftype         int32
 10244  	F__ccgo_pad1  [4]byte
 10245  	Fserial       uint64
 10246  	Fsend_event   int32
 10247  	F__ccgo_pad2  [4]byte
 10248  	Fdisplay      uintptr
 10249  	Fparent       Window
 10250  	Fwindow       Window
 10251  	Fx            int32
 10252  	Fy            int32
 10253  	Fwidth        int32
 10254  	Fheight       int32
 10255  	Fborder_width int32
 10256  	F__ccgo_pad3  [4]byte
 10257  	Fabove        Window
 10258  	Fdetail       int32
 10259  	F__ccgo_pad4  [4]byte
 10260  	Fvalue_mask   uint64
 10261  } /* Xlib.h:814:3 */
 10262  
 10263  type XCirculateEvent = struct {
 10264  	Ftype        int32
 10265  	F__ccgo_pad1 [4]byte
 10266  	Fserial      uint64
 10267  	Fsend_event  int32
 10268  	F__ccgo_pad2 [4]byte
 10269  	Fdisplay     uintptr
 10270  	Fevent       Window
 10271  	Fwindow      Window
 10272  	Fplace       int32
 10273  	F__ccgo_pad3 [4]byte
 10274  } /* Xlib.h:824:3 */
 10275  
 10276  type XCirculateRequestEvent = struct {
 10277  	Ftype        int32
 10278  	F__ccgo_pad1 [4]byte
 10279  	Fserial      uint64
 10280  	Fsend_event  int32
 10281  	F__ccgo_pad2 [4]byte
 10282  	Fdisplay     uintptr
 10283  	Fparent      Window
 10284  	Fwindow      Window
 10285  	Fplace       int32
 10286  	F__ccgo_pad3 [4]byte
 10287  } /* Xlib.h:834:3 */
 10288  
 10289  type XPropertyEvent = struct {
 10290  	Ftype        int32
 10291  	F__ccgo_pad1 [4]byte
 10292  	Fserial      uint64
 10293  	Fsend_event  int32
 10294  	F__ccgo_pad2 [4]byte
 10295  	Fdisplay     uintptr
 10296  	Fwindow      Window
 10297  	Fatom        Atom
 10298  	Ftime        Time
 10299  	Fstate       int32
 10300  	F__ccgo_pad3 [4]byte
 10301  } /* Xlib.h:845:3 */
 10302  
 10303  type XSelectionClearEvent = struct {
 10304  	Ftype        int32
 10305  	F__ccgo_pad1 [4]byte
 10306  	Fserial      uint64
 10307  	Fsend_event  int32
 10308  	F__ccgo_pad2 [4]byte
 10309  	Fdisplay     uintptr
 10310  	Fwindow      Window
 10311  	Fselection   Atom
 10312  	Ftime        Time
 10313  } /* Xlib.h:855:3 */
 10314  
 10315  type XSelectionRequestEvent = struct {
 10316  	Ftype        int32
 10317  	F__ccgo_pad1 [4]byte
 10318  	Fserial      uint64
 10319  	Fsend_event  int32
 10320  	F__ccgo_pad2 [4]byte
 10321  	Fdisplay     uintptr
 10322  	Fowner       Window
 10323  	Frequestor   Window
 10324  	Fselection   Atom
 10325  	Ftarget      Atom
 10326  	Fproperty    Atom
 10327  	Ftime        Time
 10328  } /* Xlib.h:868:3 */
 10329  
 10330  type XSelectionEvent = struct {
 10331  	Ftype        int32
 10332  	F__ccgo_pad1 [4]byte
 10333  	Fserial      uint64
 10334  	Fsend_event  int32
 10335  	F__ccgo_pad2 [4]byte
 10336  	Fdisplay     uintptr
 10337  	Frequestor   Window
 10338  	Fselection   Atom
 10339  	Ftarget      Atom
 10340  	Fproperty    Atom
 10341  	Ftime        Time
 10342  } /* Xlib.h:880:3 */
 10343  
 10344  type XColormapEvent = struct {
 10345  	Ftype        int32
 10346  	F__ccgo_pad1 [4]byte
 10347  	Fserial      uint64
 10348  	Fsend_event  int32
 10349  	F__ccgo_pad2 [4]byte
 10350  	Fdisplay     uintptr
 10351  	Fwindow      Window
 10352  	Fcolormap    Colormap
 10353  	Fnew         int32
 10354  	Fstate       int32
 10355  } /* Xlib.h:895:3 */
 10356  
 10357  type XClientMessageEvent = struct {
 10358  	Ftype         int32
 10359  	F__ccgo_pad1  [4]byte
 10360  	Fserial       uint64
 10361  	Fsend_event   int32
 10362  	F__ccgo_pad2  [4]byte
 10363  	Fdisplay      uintptr
 10364  	Fwindow       Window
 10365  	Fmessage_type Atom
 10366  	Fformat       int32
 10367  	F__ccgo_pad3  [4]byte
 10368  	Fdata         struct {
 10369  		F__ccgo_pad1 [0]uint64
 10370  		Fb           [20]int8
 10371  		F__ccgo_pad2 [20]byte
 10372  	}
 10373  } /* Xlib.h:910:3 */
 10374  
 10375  type XMappingEvent = struct {
 10376  	Ftype          int32
 10377  	F__ccgo_pad1   [4]byte
 10378  	Fserial        uint64
 10379  	Fsend_event    int32
 10380  	F__ccgo_pad2   [4]byte
 10381  	Fdisplay       uintptr
 10382  	Fwindow        Window
 10383  	Frequest       int32
 10384  	Ffirst_keycode int32
 10385  	Fcount         int32
 10386  	F__ccgo_pad3   [4]byte
 10387  } /* Xlib.h:922:3 */
 10388  
 10389  type XErrorEvent = struct {
 10390  	Ftype         int32
 10391  	F__ccgo_pad1  [4]byte
 10392  	Fdisplay      uintptr
 10393  	Fresourceid   XID
 10394  	Fserial       uint64
 10395  	Ferror_code   uint8
 10396  	Frequest_code uint8
 10397  	Fminor_code   uint8
 10398  	F__ccgo_pad2  [5]byte
 10399  } /* Xlib.h:932:3 */
 10400  
 10401  type XAnyEvent = struct {
 10402  	Ftype        int32
 10403  	F__ccgo_pad1 [4]byte
 10404  	Fserial      uint64
 10405  	Fsend_event  int32
 10406  	F__ccgo_pad2 [4]byte
 10407  	Fdisplay     uintptr
 10408  	Fwindow      Window
 10409  } /* Xlib.h:940:3 */
 10410  
 10411  // **************************************************************
 10412  //
 10413  //
 10414  // GenericEvent.  This event is the standard event for all newer extensions.
 10415  
 10416  type XGenericEvent = struct {
 10417  	Ftype        int32
 10418  	F__ccgo_pad1 [4]byte
 10419  	Fserial      uint64
 10420  	Fsend_event  int32
 10421  	F__ccgo_pad2 [4]byte
 10422  	Fdisplay     uintptr
 10423  	Fextension   int32
 10424  	Fevtype      int32
 10425  } /* Xlib.h:956:7 */
 10426  
 10427  type XGenericEventCookie = struct {
 10428  	Ftype        int32
 10429  	F__ccgo_pad1 [4]byte
 10430  	Fserial      uint64
 10431  	Fsend_event  int32
 10432  	F__ccgo_pad2 [4]byte
 10433  	Fdisplay     uintptr
 10434  	Fextension   int32
 10435  	Fevtype      int32
 10436  	Fcookie      uint32
 10437  	F__ccgo_pad3 [4]byte
 10438  	Fdata        uintptr
 10439  } /* Xlib.h:967:3 */
 10440  
 10441  // this union is defined so Xlib can always use the same sized
 10442  // event structure internally, to avoid memory fragmentation.
 10443  type X_XEvent = struct {
 10444  	F__ccgo_pad1 [0]uint64
 10445  	Ftype        int32
 10446  	F__ccgo_pad2 [188]byte
 10447  } /* Xlib.h:255:1 */
 10448  
 10449  // this union is defined so Xlib can always use the same sized
 10450  // event structure internally, to avoid memory fragmentation.
 10451  type XEvent = X_XEvent /* Xlib.h:1009:3 */
 10452  
 10453  // per character font metric information.
 10454  type XCharStruct = struct {
 10455  	Flbearing   int16
 10456  	Frbearing   int16
 10457  	Fwidth      int16
 10458  	Fascent     int16
 10459  	Fdescent    int16
 10460  	Fattributes uint16
 10461  } /* Xlib.h:1024:3 */
 10462  
 10463  // To allow arbitrary information with fonts, there are additional properties
 10464  // returned.
 10465  type XFontProp = struct {
 10466  	Fname   Atom
 10467  	Fcard32 uint64
 10468  } /* Xlib.h:1033:3 */
 10469  
 10470  type XFontStruct = struct {
 10471  	Fext_data          uintptr
 10472  	Ffid               Font
 10473  	Fdirection         uint32
 10474  	Fmin_char_or_byte2 uint32
 10475  	Fmax_char_or_byte2 uint32
 10476  	Fmin_byte1         uint32
 10477  	Fmax_byte1         uint32
 10478  	Fall_chars_exist   int32
 10479  	Fdefault_char      uint32
 10480  	Fn_properties      int32
 10481  	Fproperties        uintptr
 10482  	Fmin_bounds        XCharStruct
 10483  	Fmax_bounds        XCharStruct
 10484  	Fper_char          uintptr
 10485  	Fascent            int32
 10486  	Fdescent           int32
 10487  } /* Xlib.h:1052:3 */
 10488  
 10489  // PolyText routines take these as arguments.
 10490  type XTextItem = struct {
 10491  	Fchars  uintptr
 10492  	Fnchars int32
 10493  	Fdelta  int32
 10494  	Ffont   Font
 10495  } /* Xlib.h:1062:3 */
 10496  
 10497  type XChar2b = struct {
 10498  	Fbyte1 uint8
 10499  	Fbyte2 uint8
 10500  } /* Xlib.h:1067:3 */
 10501  
 10502  type XTextItem16 = struct {
 10503  	Fchars  uintptr
 10504  	Fnchars int32
 10505  	Fdelta  int32
 10506  	Ffont   Font
 10507  } /* Xlib.h:1074:3 */
 10508  
 10509  type XEDataObject = struct{ Fdisplay uintptr } /* Xlib.h:1082:24 */
 10510  
 10511  type XFontSetExtents = struct {
 10512  	Fmax_ink_extent     XRectangle
 10513  	Fmax_logical_extent XRectangle
 10514  } /* Xlib.h:1087:3 */
 10515  
 10516  // unused:
 10517  // typedef void (*XOMProc)();
 10518  //
 10519  
 10520  type XOM = uintptr      /* Xlib.h:1093:21 */
 10521  type XOC = uintptr      /* Xlib.h:1094:21 */
 10522  type XFontSet = uintptr /* Xlib.h:1094:27 */
 10523  
 10524  type XmbTextItem = struct {
 10525  	Fchars    uintptr
 10526  	Fnchars   int32
 10527  	Fdelta    int32
 10528  	Ffont_set XFontSet
 10529  } /* Xlib.h:1101:3 */
 10530  
 10531  type XwcTextItem = struct {
 10532  	Fchars    uintptr
 10533  	Fnchars   int32
 10534  	Fdelta    int32
 10535  	Ffont_set XFontSet
 10536  } /* Xlib.h:1108:3 */
 10537  
 10538  type XOMCharSetList = struct {
 10539  	Fcharset_count int32
 10540  	F__ccgo_pad1   [4]byte
 10541  	Fcharset_list  uintptr
 10542  } /* Xlib.h:1124:3 */
 10543  
 10544  type XOrientation = uint32 /* Xlib.h:1132:3 */
 10545  
 10546  type XOMOrientation = struct {
 10547  	Fnum_orientation int32
 10548  	F__ccgo_pad1     [4]byte
 10549  	Forientation     uintptr
 10550  } /* Xlib.h:1137:3 */
 10551  
 10552  type XOMFontInfo = struct {
 10553  	Fnum_font         int32
 10554  	F__ccgo_pad1      [4]byte
 10555  	Ffont_struct_list uintptr
 10556  	Ffont_name_list   uintptr
 10557  } /* Xlib.h:1143:3 */
 10558  
 10559  type XIM = uintptr /* Xlib.h:1145:21 */
 10560  type XIC = uintptr /* Xlib.h:1146:21 */
 10561  
 10562  type XIMProc = uintptr /* Xlib.h:1148:14 */
 10563  
 10564  type XICProc = uintptr /* Xlib.h:1154:14 */
 10565  
 10566  type XIDProc = uintptr /* Xlib.h:1160:14 */
 10567  
 10568  type XIMStyle = uint64 /* Xlib.h:1166:23 */
 10569  
 10570  type XIMStyles = struct {
 10571  	Fcount_styles     uint16
 10572  	F__ccgo_pad1      [6]byte
 10573  	Fsupported_styles uintptr
 10574  } /* Xlib.h:1171:3 */
 10575  
 10576  type XVaNestedList = uintptr /* Xlib.h:1233:14 */
 10577  
 10578  type XIMCallback = struct {
 10579  	Fclient_data XPointer
 10580  	Fcallback    XIMProc
 10581  } /* Xlib.h:1238:3 */
 10582  
 10583  type XICCallback = struct {
 10584  	Fclient_data XPointer
 10585  	Fcallback    XICProc
 10586  } /* Xlib.h:1243:3 */
 10587  
 10588  type XIMFeedback = uint64 /* Xlib.h:1245:23 */
 10589  
 10590  type X_XIMText = struct {
 10591  	Flength            uint16
 10592  	F__ccgo_pad1       [6]byte
 10593  	Ffeedback          uintptr
 10594  	Fencoding_is_wchar int32
 10595  	F__ccgo_pad2       [4]byte
 10596  	Fstring            struct{ Fmulti_byte uintptr }
 10597  } /* Xlib.h:1257:9 */
 10598  
 10599  type XIMText = X_XIMText /* Xlib.h:1265:3 */
 10600  
 10601  type XIMPreeditState = uint64 /* Xlib.h:1267:24 */
 10602  
 10603  type X_XIMPreeditStateNotifyCallbackStruct = struct{ Fstate XIMPreeditState } /* Xlib.h:1273:9 */
 10604  
 10605  type XIMPreeditStateNotifyCallbackStruct = X_XIMPreeditStateNotifyCallbackStruct /* Xlib.h:1275:3 */
 10606  
 10607  type XIMResetState = uint64 /* Xlib.h:1277:24 */
 10608  
 10609  type XIMStringConversionFeedback = uint64 /* Xlib.h:1282:23 */
 10610  
 10611  type X_XIMStringConversionText = struct {
 10612  	Flength            uint16
 10613  	F__ccgo_pad1       [6]byte
 10614  	Ffeedback          uintptr
 10615  	Fencoding_is_wchar int32
 10616  	F__ccgo_pad2       [4]byte
 10617  	Fstring            struct{ Fmbs uintptr }
 10618  } /* Xlib.h:1291:9 */
 10619  
 10620  type XIMStringConversionText = X_XIMStringConversionText /* Xlib.h:1299:3 */
 10621  
 10622  type XIMStringConversionPosition = uint16 /* Xlib.h:1301:24 */
 10623  
 10624  type XIMStringConversionType = uint16 /* Xlib.h:1303:24 */
 10625  
 10626  type XIMStringConversionOperation = uint16 /* Xlib.h:1310:24 */
 10627  
 10628  type XIMCaretDirection = uint32 /* Xlib.h:1323:3 */
 10629  
 10630  type X_XIMStringConversionCallbackStruct = struct {
 10631  	Fposition    XIMStringConversionPosition
 10632  	F__ccgo_pad1 [2]byte
 10633  	Fdirection   XIMCaretDirection
 10634  	Foperation   XIMStringConversionOperation
 10635  	Ffactor      uint16
 10636  	F__ccgo_pad2 [4]byte
 10637  	Ftext        uintptr
 10638  } /* Xlib.h:1325:9 */
 10639  
 10640  type XIMStringConversionCallbackStruct = X_XIMStringConversionCallbackStruct /* Xlib.h:1331:3 */
 10641  
 10642  type X_XIMPreeditDrawCallbackStruct = struct {
 10643  	Fcaret       int32
 10644  	Fchg_first   int32
 10645  	Fchg_length  int32
 10646  	F__ccgo_pad1 [4]byte
 10647  	Ftext        uintptr
 10648  } /* Xlib.h:1333:9 */
 10649  
 10650  type XIMPreeditDrawCallbackStruct = X_XIMPreeditDrawCallbackStruct /* Xlib.h:1338:3 */
 10651  
 10652  type XIMCaretStyle = uint32 /* Xlib.h:1344:3 */
 10653  
 10654  type X_XIMPreeditCaretCallbackStruct = struct {
 10655  	Fposition  int32
 10656  	Fdirection XIMCaretDirection
 10657  	Fstyle     XIMCaretStyle
 10658  } /* Xlib.h:1346:9 */
 10659  
 10660  type XIMPreeditCaretCallbackStruct = X_XIMPreeditCaretCallbackStruct /* Xlib.h:1350:3 */
 10661  
 10662  type XIMStatusDataType = uint32 /* Xlib.h:1355:3 */
 10663  
 10664  type X_XIMStatusDrawCallbackStruct = struct {
 10665  	Ftype        XIMStatusDataType
 10666  	F__ccgo_pad1 [4]byte
 10667  	Fdata        struct{ Ftext uintptr }
 10668  } /* Xlib.h:1357:9 */
 10669  
 10670  type XIMStatusDrawCallbackStruct = X_XIMStatusDrawCallbackStruct /* Xlib.h:1363:3 */
 10671  
 10672  type X_XIMHotKeyTrigger = struct {
 10673  	Fkeysym        KeySym
 10674  	Fmodifier      int32
 10675  	Fmodifier_mask int32
 10676  } /* Xlib.h:1365:9 */
 10677  
 10678  type XIMHotKeyTrigger = X_XIMHotKeyTrigger /* Xlib.h:1369:3 */
 10679  
 10680  type X_XIMHotKeyTriggers = struct {
 10681  	Fnum_hot_key int32
 10682  	F__ccgo_pad1 [4]byte
 10683  	Fkey         uintptr
 10684  } /* Xlib.h:1371:9 */
 10685  
 10686  type XIMHotKeyTriggers = X_XIMHotKeyTriggers /* Xlib.h:1374:3 */
 10687  
 10688  type XIMHotKeyState = uint64 /* Xlib.h:1376:24 */
 10689  
 10690  type XIMValuesList = struct {
 10691  	Fcount_values     uint16
 10692  	F__ccgo_pad1      [6]byte
 10693  	Fsupported_values uintptr
 10694  } /* Xlib.h:1384:3 */
 10695  
 10696  type XErrorHandler = uintptr /* Xlib.h:1843:13 */
 10697  
 10698  type XIOErrorHandler = uintptr /* Xlib.h:1853:13 */
 10699  
 10700  type XIOErrorExitHandler = uintptr /* Xlib.h:1861:14 */
 10701  
 10702  type XConnectionWatchProc = uintptr /* Xlib.h:3959:14 */
 10703  
 10704  // Definitions for the X window system used by server and c bindings
 10705  
 10706  // This packet-construction scheme makes the following assumptions:
 10707  //
 10708  // 1. The compiler is able
 10709  // to generate code which addresses one- and two-byte quantities.
 10710  // In the worst case, this would be done with bit-fields.  If bit-fields
 10711  // are used it may be necessary to reorder the request fields in this file,
 10712  // depending on the order in which the machine assigns bit fields to
 10713  // machine words.  There may also be a problem with sign extension,
 10714  // as K+R specify that bitfields are always unsigned.
 10715  //
 10716  // 2. 2- and 4-byte fields in packet structures must be ordered by hand
 10717  // such that they are naturally-aligned, so that no compiler will ever
 10718  // insert padding bytes.
 10719  //
 10720  // 3. All packets are hand-padded to a multiple of 4 bytes, for
 10721  // the same reason.
 10722  
 10723  //**********************************************************
 10724  //
 10725  // Copyright 1987, 1998  The Open Group
 10726  //
 10727  // Permission to use, copy, modify, distribute, and sell this software and its
 10728  // documentation for any purpose is hereby granted without fee, provided that
 10729  // the above copyright notice appear in all copies and that both that
 10730  // copyright notice and this permission notice appear in supporting
 10731  // documentation.
 10732  //
 10733  // The above copyright notice and this permission notice shall be included in
 10734  // all copies or substantial portions of the Software.
 10735  //
 10736  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 10737  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 10738  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 10739  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 10740  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 10741  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 10742  //
 10743  // Except as contained in this notice, the name of The Open Group shall not be
 10744  // used in advertising or otherwise to promote the sale, use or other dealings
 10745  // in this Software without prior written authorization from The Open Group.
 10746  //
 10747  //
 10748  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 10749  //
 10750  //                         All Rights Reserved
 10751  //
 10752  // Permission to use, copy, modify, and distribute this software and its
 10753  // documentation for any purpose and without fee is hereby granted,
 10754  // provided that the above copyright notice appear in all copies and that
 10755  // both that copyright notice and this permission notice appear in
 10756  // supporting documentation, and that the name of Digital not be
 10757  // used in advertising or publicity pertaining to distribution of the
 10758  // software without specific, written prior permission.
 10759  //
 10760  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 10761  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 10762  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 10763  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 10764  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 10765  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 10766  // SOFTWARE.
 10767  //
 10768  // *****************************************************************
 10769  
 10770  //**********************************************************
 10771  //
 10772  // Copyright 1987, 1998  The Open Group
 10773  //
 10774  // Permission to use, copy, modify, distribute, and sell this software and its
 10775  // documentation for any purpose is hereby granted without fee, provided that
 10776  // the above copyright notice appear in all copies and that both that
 10777  // copyright notice and this permission notice appear in supporting
 10778  // documentation.
 10779  //
 10780  // The above copyright notice and this permission notice shall be included in
 10781  // all copies or substantial portions of the Software.
 10782  //
 10783  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 10784  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 10785  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 10786  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 10787  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 10788  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 10789  //
 10790  // Except as contained in this notice, the name of The Open Group shall not be
 10791  // used in advertising or otherwise to promote the sale, use or other dealings
 10792  // in this Software without prior written authorization from The Open Group.
 10793  //
 10794  //
 10795  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 10796  //
 10797  //                         All Rights Reserved
 10798  //
 10799  // Permission to use, copy, modify, and distribute this software and its
 10800  // documentation for any purpose and without fee is hereby granted,
 10801  // provided that the above copyright notice appear in all copies and that
 10802  // both that copyright notice and this permission notice appear in
 10803  // supporting documentation, and that the name of Digital not be
 10804  // used in advertising or publicity pertaining to distribution of the
 10805  // software without specific, written prior permission.
 10806  //
 10807  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 10808  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 10809  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 10810  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 10811  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 10812  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 10813  // SOFTWARE.
 10814  //
 10815  // *****************************************************************
 10816  //  Xmd.h: MACHINE DEPENDENT DECLARATIONS.
 10817  
 10818  // Special per-machine configuration flags.
 10819  
 10820  // Definition of macro used to set constants for size of network structures;
 10821  // machines with preprocessors that can't handle all of the sz_ symbols
 10822  // can define this macro to be sizeof(x) if and only if their compiler doesn't
 10823  // pad out structures (esp. the xTextElt structure which contains only two
 10824  // one-byte fields).  Network structures should always define sz_symbols.
 10825  //
 10826  // The sz_ prefix is used instead of something more descriptive so that the
 10827  // symbols are no more than 32 characters long (which causes problems for some
 10828  // compilers and preprocessors).
 10829  //
 10830  // The extra indirection is to get macro arguments to expand correctly before
 10831  // the concatenation, rather than afterward.
 10832  
 10833  // Bitfield suffixes for the protocol structure elements, if you
 10834  // need them.  Note that bitfields are not guaranteed to be signed
 10835  // (or even unsigned) according to ANSI C.
 10836  type INT64 = int64 /* Xmd.h:97:14 */
 10837  type INT32 = int32 /* Xmd.h:98:13 */
 10838  type INT16 = int16 /* Xmd.h:102:15 */
 10839  
 10840  type INT8 = int8 /* Xmd.h:104:24 */
 10841  
 10842  type CARD64 = uint64 /* Xmd.h:107:23 */
 10843  type CARD32 = uint32 /* Xmd.h:108:22 */
 10844  type CARD16 = uint16 /* Xmd.h:113:24 */
 10845  type CARD8 = uint8   /* Xmd.h:114:24 */
 10846  
 10847  type BITS32 = CARD32 /* Xmd.h:116:17 */
 10848  type BITS16 = CARD16 /* Xmd.h:117:17 */
 10849  
 10850  type BYTE = CARD8 /* Xmd.h:119:16 */
 10851  type BOOL = CARD8 /* Xmd.h:120:16 */
 10852  
 10853  // was definitions for sign-extending bitfields on architectures without
 10854  // native types smaller than 64-bit, now just backwards compatibility
 10855  
 10856  // this version should leave result of type (t *), but that should only be
 10857  // used when not in MUSTCOPY
 10858  
 10859  //**********************************************************
 10860  //
 10861  // Copyright 1987, 1998  The Open Group
 10862  //
 10863  // Permission to use, copy, modify, distribute, and sell this software and its
 10864  // documentation for any purpose is hereby granted without fee, provided that
 10865  // the above copyright notice appear in all copies and that both that
 10866  // copyright notice and this permission notice appear in supporting
 10867  // documentation.
 10868  //
 10869  // The above copyright notice and this permission notice shall be included in
 10870  // all copies or substantial portions of the Software.
 10871  //
 10872  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 10873  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 10874  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 10875  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 10876  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 10877  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 10878  //
 10879  // Except as contained in this notice, the name of The Open Group shall not be
 10880  // used in advertising or otherwise to promote the sale, use or other dealings
 10881  // in this Software without prior written authorization from The Open Group.
 10882  //
 10883  //
 10884  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 10885  //
 10886  //                         All Rights Reserved
 10887  //
 10888  // Permission to use, copy, modify, and distribute this software and its
 10889  // documentation for any purpose and without fee is hereby granted,
 10890  // provided that the above copyright notice appear in all copies and that
 10891  // both that copyright notice and this permission notice appear in
 10892  // supporting documentation, and that the name of Digital not be
 10893  // used in advertising or publicity pertaining to distribution of the
 10894  // software without specific, written prior permission.
 10895  //
 10896  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 10897  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 10898  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 10899  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 10900  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 10901  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 10902  // SOFTWARE.
 10903  //
 10904  // *****************************************************************
 10905  //**********************************************************
 10906  //
 10907  // Copyright 1987, 1998  The Open Group
 10908  //
 10909  // Permission to use, copy, modify, distribute, and sell this software and its
 10910  // documentation for any purpose is hereby granted without fee, provided that
 10911  // the above copyright notice appear in all copies and that both that
 10912  // copyright notice and this permission notice appear in supporting
 10913  // documentation.
 10914  //
 10915  // The above copyright notice and this permission notice shall be included in
 10916  // all copies or substantial portions of the Software.
 10917  //
 10918  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 10919  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 10920  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 10921  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 10922  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 10923  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 10924  //
 10925  // Except as contained in this notice, the name of The Open Group shall not be
 10926  // used in advertising or otherwise to promote the sale, use or other dealings
 10927  // in this Software without prior written authorization from The Open Group.
 10928  //
 10929  //
 10930  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 10931  //
 10932  //                         All Rights Reserved
 10933  //
 10934  // Permission to use, copy, modify, and distribute this software and its
 10935  // documentation for any purpose and without fee is hereby granted,
 10936  // provided that the above copyright notice appear in all copies and that
 10937  // both that copyright notice and this permission notice appear in
 10938  // supporting documentation, and that the name of Digital not be
 10939  // used in advertising or publicity pertaining to distribution of the
 10940  // software without specific, written prior permission.
 10941  //
 10942  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 10943  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 10944  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 10945  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 10946  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 10947  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 10948  // SOFTWARE.
 10949  //
 10950  // *****************************************************************
 10951  
 10952  // Used by PolySegment
 10953  
 10954  type X_xSegment = struct {
 10955  	Fx1 INT16
 10956  	Fy1 INT16
 10957  	Fx2 INT16
 10958  	Fy2 INT16
 10959  } /* Xprotostr.h:54:9 */
 10960  
 10961  // was definitions for sign-extending bitfields on architectures without
 10962  // native types smaller than 64-bit, now just backwards compatibility
 10963  
 10964  // this version should leave result of type (t *), but that should only be
 10965  // used when not in MUSTCOPY
 10966  
 10967  //**********************************************************
 10968  //
 10969  // Copyright 1987, 1998  The Open Group
 10970  //
 10971  // Permission to use, copy, modify, distribute, and sell this software and its
 10972  // documentation for any purpose is hereby granted without fee, provided that
 10973  // the above copyright notice appear in all copies and that both that
 10974  // copyright notice and this permission notice appear in supporting
 10975  // documentation.
 10976  //
 10977  // The above copyright notice and this permission notice shall be included in
 10978  // all copies or substantial portions of the Software.
 10979  //
 10980  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 10981  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 10982  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 10983  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 10984  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 10985  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 10986  //
 10987  // Except as contained in this notice, the name of The Open Group shall not be
 10988  // used in advertising or otherwise to promote the sale, use or other dealings
 10989  // in this Software without prior written authorization from The Open Group.
 10990  //
 10991  //
 10992  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 10993  //
 10994  //                         All Rights Reserved
 10995  //
 10996  // Permission to use, copy, modify, and distribute this software and its
 10997  // documentation for any purpose and without fee is hereby granted,
 10998  // provided that the above copyright notice appear in all copies and that
 10999  // both that copyright notice and this permission notice appear in
 11000  // supporting documentation, and that the name of Digital not be
 11001  // used in advertising or publicity pertaining to distribution of the
 11002  // software without specific, written prior permission.
 11003  //
 11004  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 11005  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 11006  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 11007  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 11008  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 11009  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 11010  // SOFTWARE.
 11011  //
 11012  // *****************************************************************
 11013  //**********************************************************
 11014  //
 11015  // Copyright 1987, 1998  The Open Group
 11016  //
 11017  // Permission to use, copy, modify, distribute, and sell this software and its
 11018  // documentation for any purpose is hereby granted without fee, provided that
 11019  // the above copyright notice appear in all copies and that both that
 11020  // copyright notice and this permission notice appear in supporting
 11021  // documentation.
 11022  //
 11023  // The above copyright notice and this permission notice shall be included in
 11024  // all copies or substantial portions of the Software.
 11025  //
 11026  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 11027  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 11028  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 11029  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 11030  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 11031  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 11032  //
 11033  // Except as contained in this notice, the name of The Open Group shall not be
 11034  // used in advertising or otherwise to promote the sale, use or other dealings
 11035  // in this Software without prior written authorization from The Open Group.
 11036  //
 11037  //
 11038  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 11039  //
 11040  //                         All Rights Reserved
 11041  //
 11042  // Permission to use, copy, modify, and distribute this software and its
 11043  // documentation for any purpose and without fee is hereby granted,
 11044  // provided that the above copyright notice appear in all copies and that
 11045  // both that copyright notice and this permission notice appear in
 11046  // supporting documentation, and that the name of Digital not be
 11047  // used in advertising or publicity pertaining to distribution of the
 11048  // software without specific, written prior permission.
 11049  //
 11050  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 11051  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 11052  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 11053  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 11054  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 11055  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 11056  // SOFTWARE.
 11057  //
 11058  // *****************************************************************
 11059  
 11060  // Used by PolySegment
 11061  
 11062  type XSegment1 = X_xSegment /* Xprotostr.h:56:3 */
 11063  
 11064  // POINT
 11065  
 11066  type X_xPoint = struct {
 11067  	Fx INT16
 11068  	Fy INT16
 11069  } /* Xprotostr.h:60:9 */
 11070  
 11071  // POINT
 11072  
 11073  type XPoint1 = X_xPoint /* Xprotostr.h:62:3 */
 11074  
 11075  type X_xRectangle = struct {
 11076  	Fx      INT16
 11077  	Fy      INT16
 11078  	Fwidth  CARD16
 11079  	Fheight CARD16
 11080  } /* Xprotostr.h:64:9 */
 11081  
 11082  type XRectangle1 = X_xRectangle /* Xprotostr.h:67:3 */
 11083  
 11084  //  ARC
 11085  
 11086  type X_xArc = struct {
 11087  	Fx      INT16
 11088  	Fy      INT16
 11089  	Fwidth  CARD16
 11090  	Fheight CARD16
 11091  	Fangle1 INT16
 11092  	Fangle2 INT16
 11093  } /* Xprotostr.h:71:9 */
 11094  
 11095  //  ARC
 11096  
 11097  type XArc1 = X_xArc /* Xprotostr.h:75:3 */
 11098  
 11099  // Define constants for the sizes of the network packets.  The sz_ prefix is
 11100  // used instead of something more descriptive so that the symbols are no more
 11101  // than 32 characters in length (which causes problems for some compilers).
 11102  
 11103  // For the purpose of the structure definitions in this file,
 11104  // we must redefine the following types in terms of Xmd.h's types, which may
 11105  // include bit fields.  All of these are #undef'd at the end of this file,
 11106  // restoring the definitions in X.h.
 11107  
 11108  type KeyButMask = CARD16 /* Xproto.h:259:16 */
 11109  
 11110  //****************
 11111  //    Connection setup structures.  See Chapter 8: Connection Setup
 11112  //    of the X Window System Protocol specification for details.
 11113  // ****************
 11114  
 11115  // Client initiates handshake with this data, followed by the strings
 11116  // for the auth protocol & data.
 11117  type XConnClientPrefix = struct {
 11118  	FbyteOrder        CARD8
 11119  	Fpad              BYTE
 11120  	FmajorVersion     CARD16
 11121  	FminorVersion     CARD16
 11122  	FnbytesAuthProto  CARD16
 11123  	FnbytesAuthString CARD16
 11124  	Fpad2             CARD16
 11125  } /* Xproto.h:276:3 */
 11126  
 11127  // Server response to xConnClientPrefix.
 11128  //
 11129  // If success == Success, this is followed by xConnSetup and
 11130  // numRoots xWindowRoot structs.
 11131  //
 11132  // If success == Failure, this is followed by a reason string.
 11133  //
 11134  // The protocol also defines a case of success == Authenticate, but
 11135  // that doesn't seem to have ever been implemented by the X Consortium.
 11136  type XConnSetupPrefix = struct {
 11137  	Fsuccess      CARD8
 11138  	FlengthReason BYTE
 11139  	FmajorVersion CARD16
 11140  	FminorVersion CARD16
 11141  	Flength       CARD16
 11142  } /* Xproto.h:294:3 */
 11143  
 11144  type XConnSetup = struct {
 11145  	Frelease            CARD32
 11146  	FridBase            CARD32
 11147  	FridMask            CARD32
 11148  	FmotionBufferSize   CARD32
 11149  	FnbytesVendor       CARD16
 11150  	FmaxRequestSize     CARD16
 11151  	FnumRoots           CARD8
 11152  	FnumFormats         CARD8
 11153  	FimageByteOrder     CARD8
 11154  	FbitmapBitOrder     CARD8
 11155  	FbitmapScanlineUnit CARD8
 11156  	FbitmapScanlinePad  CARD8
 11157  	FminKeyCode         CARD8
 11158  	FmaxKeyCode         CARD8
 11159  	Fpad2               CARD32
 11160  } /* Xproto.h:312:3 */
 11161  
 11162  type XPixmapFormat = struct {
 11163  	Fdepth        CARD8
 11164  	FbitsPerPixel CARD8
 11165  	FscanLinePad  CARD8
 11166  	Fpad1         CARD8
 11167  	Fpad2         CARD32
 11168  } /* Xproto.h:320:3 */
 11169  
 11170  // window root
 11171  
 11172  type XDepth = struct {
 11173  	Fdepth    CARD8
 11174  	Fpad1     CARD8
 11175  	FnVisuals CARD16
 11176  	Fpad2     CARD32
 11177  } /* Xproto.h:329:7 */
 11178  
 11179  type XVisualType = struct {
 11180  	FvisualID        CARD32
 11181  	Fclass           CARD8
 11182  	FbitsPerRGB      CARD8
 11183  	FcolormapEntries CARD16
 11184  	FredMask         CARD32
 11185  	FgreenMask       CARD32
 11186  	FblueMask        CARD32
 11187  	Fpad             CARD32
 11188  } /* Xproto.h:342:7 */
 11189  
 11190  type XWindowRoot = struct {
 11191  	FwindowId         CARD32
 11192  	FdefaultColormap  CARD32
 11193  	FwhitePixel       CARD32
 11194  	FblackPixel       CARD32
 11195  	FcurrentInputMask CARD32
 11196  	FpixWidth         CARD16
 11197  	FpixHeight        CARD16
 11198  	FmmWidth          CARD16
 11199  	FmmHeight         CARD16
 11200  	FminInstalledMaps CARD16
 11201  	FmaxInstalledMaps CARD16
 11202  	FrootVisualID     CARD32
 11203  	FbackingStore     CARD8
 11204  	FsaveUnders       BOOL
 11205  	FrootDepth        CARD8
 11206  	FnDepths          CARD8
 11207  } /* Xproto.h:357:3 */
 11208  
 11209  // ****************************************************************
 11210  //
 11211  // Structure Defns
 11212  //   Structures needed for replies
 11213  //
 11214  
 11215  // Used in GetMotionEvents
 11216  
 11217  type XTimecoord = struct {
 11218  	Ftime CARD32
 11219  	Fx    INT16
 11220  	Fy    INT16
 11221  } /* Xproto.h:370:3 */
 11222  
 11223  type XHostEntry = struct {
 11224  	Ffamily CARD8
 11225  	Fpad    BYTE
 11226  	Flength CARD16
 11227  } /* Xproto.h:376:3 */
 11228  
 11229  type XCharInfo = struct {
 11230  	FleftSideBearing  INT16
 11231  	FrightSideBearing INT16
 11232  	FcharacterWidth   INT16
 11233  	Fascent           INT16
 11234  	Fdescent          INT16
 11235  	Fattributes       CARD16
 11236  } /* Xproto.h:385:3 */
 11237  
 11238  type XFontProp1 = struct {
 11239  	Fname  CARD32
 11240  	Fvalue CARD32
 11241  } /* Xproto.h:390:3 */
 11242  
 11243  // non-aligned big-endian font ID follows this struct
 11244  type XTextElt = struct {
 11245  	Flen   CARD8
 11246  	Fdelta INT8
 11247  } /* Xproto.h:399:3 */
 11248  
 11249  type XColorItem = struct {
 11250  	Fpixel CARD32
 11251  	Fred   CARD16
 11252  	Fgreen CARD16
 11253  	Fblue  CARD16
 11254  	Fflags CARD8
 11255  	Fpad   CARD8
 11256  } /* Xproto.h:407:3 */
 11257  
 11258  type Xrgb = struct {
 11259  	Fred   CARD16
 11260  	Fgreen CARD16
 11261  	Fblue  CARD16
 11262  	Fpad   CARD16
 11263  } /* Xproto.h:412:3 */
 11264  
 11265  type KEYCODE = CARD8 /* Xproto.h:414:15 */
 11266  
 11267  // ****************
 11268  //
 11269  // XRep:
 11270  //    meant to be 32 byte quantity
 11271  //
 11272  
 11273  // GenericReply is the common format of all replies.  The "data" items
 11274  //    are specific to each individual reply type.
 11275  
 11276  type XGenericReply = struct {
 11277  	Ftype           BYTE
 11278  	Fdata1          BYTE
 11279  	FsequenceNumber CARD16
 11280  	Flength         CARD32
 11281  	Fdata00         CARD32
 11282  	Fdata01         CARD32
 11283  	Fdata02         CARD32
 11284  	Fdata03         CARD32
 11285  	Fdata04         CARD32
 11286  	Fdata05         CARD32
 11287  } /* Xproto.h:436:7 */
 11288  
 11289  // Individual reply formats.
 11290  
 11291  type XGetWindowAttributesReply = struct {
 11292  	Ftype               BYTE
 11293  	FbackingStore       CARD8
 11294  	FsequenceNumber     CARD16
 11295  	Flength             CARD32
 11296  	FvisualID           CARD32
 11297  	Fclass              CARD16
 11298  	FbitGravity         CARD8
 11299  	FwinGravity         CARD8
 11300  	FbackingBitPlanes   CARD32
 11301  	FbackingPixel       CARD32
 11302  	FsaveUnder          BOOL
 11303  	FmapInstalled       BOOL
 11304  	FmapState           CARD8
 11305  	Foverride           BOOL
 11306  	Fcolormap           CARD32
 11307  	FallEventMasks      CARD32
 11308  	FyourEventMask      CARD32
 11309  	FdoNotPropagateMask CARD16
 11310  	Fpad                CARD16
 11311  } /* Xproto.h:464:7 */
 11312  
 11313  type XGetGeometryReply = struct {
 11314  	Ftype           BYTE
 11315  	Fdepth          CARD8
 11316  	FsequenceNumber CARD16
 11317  	Flength         CARD32
 11318  	Froot           CARD32
 11319  	Fx              INT16
 11320  	Fy              INT16
 11321  	Fwidth          CARD16
 11322  	Fheight         CARD16
 11323  	FborderWidth    CARD16
 11324  	Fpad1           CARD16
 11325  	Fpad2           CARD32
 11326  	Fpad3           CARD32
 11327  } /* Xproto.h:478:7 */
 11328  
 11329  type XQueryTreeReply = struct {
 11330  	Ftype           BYTE
 11331  	Fpad1           BYTE
 11332  	FsequenceNumber CARD16
 11333  	Flength         CARD32
 11334  	Froot           CARD32
 11335  	Fparent         CARD32
 11336  	FnChildren      CARD16
 11337  	Fpad2           CARD16
 11338  	Fpad3           CARD32
 11339  	Fpad4           CARD32
 11340  	Fpad5           CARD32
 11341  } /* Xproto.h:491:7 */
 11342  
 11343  type XInternAtomReply = struct {
 11344  	Ftype           BYTE
 11345  	Fpad1           BYTE
 11346  	FsequenceNumber CARD16
 11347  	Flength         CARD32
 11348  	Fatom           CARD32
 11349  	Fpad2           CARD32
 11350  	Fpad3           CARD32
 11351  	Fpad4           CARD32
 11352  	Fpad5           CARD32
 11353  	Fpad6           CARD32
 11354  } /* Xproto.h:504:7 */
 11355  
 11356  type XGetAtomNameReply = struct {
 11357  	Ftype           BYTE
 11358  	Fpad1           BYTE
 11359  	FsequenceNumber CARD16
 11360  	Flength         CARD32
 11361  	FnameLength     CARD16
 11362  	Fpad2           CARD16
 11363  	Fpad3           CARD32
 11364  	Fpad4           CARD32
 11365  	Fpad5           CARD32
 11366  	Fpad6           CARD32
 11367  	Fpad7           CARD32
 11368  } /* Xproto.h:518:7 */
 11369  
 11370  type XGetPropertyReply = struct {
 11371  	Ftype           BYTE
 11372  	Fformat         CARD8
 11373  	FsequenceNumber CARD16
 11374  	Flength         CARD32
 11375  	FpropertyType   CARD32
 11376  	FbytesAfter     CARD32
 11377  	FnItems         CARD32
 11378  	Fpad1           CARD32
 11379  	Fpad2           CARD32
 11380  	Fpad3           CARD32
 11381  } /* Xproto.h:531:7 */
 11382  
 11383  type XListPropertiesReply = struct {
 11384  	Ftype           BYTE
 11385  	Fpad1           BYTE
 11386  	FsequenceNumber CARD16
 11387  	Flength         CARD32
 11388  	FnProperties    CARD16
 11389  	Fpad2           CARD16
 11390  	Fpad3           CARD32
 11391  	Fpad4           CARD32
 11392  	Fpad5           CARD32
 11393  	Fpad6           CARD32
 11394  	Fpad7           CARD32
 11395  } /* Xproto.h:545:7 */
 11396  
 11397  type XGetSelectionOwnerReply = struct {
 11398  	Ftype           BYTE
 11399  	Fpad1           BYTE
 11400  	FsequenceNumber CARD16
 11401  	Flength         CARD32
 11402  	Fowner          CARD32
 11403  	Fpad2           CARD32
 11404  	Fpad3           CARD32
 11405  	Fpad4           CARD32
 11406  	Fpad5           CARD32
 11407  	Fpad6           CARD32
 11408  } /* Xproto.h:558:7 */
 11409  
 11410  type XGrabPointerReply = struct {
 11411  	Ftype           BYTE
 11412  	Fstatus         BYTE
 11413  	FsequenceNumber CARD16
 11414  	Flength         CARD32
 11415  	Fpad1           CARD32
 11416  	Fpad2           CARD32
 11417  	Fpad3           CARD32
 11418  	Fpad4           CARD32
 11419  	Fpad5           CARD32
 11420  	Fpad6           CARD32
 11421  } /* Xproto.h:571:7 */
 11422  
 11423  type XGrabKeyboardReply = XGrabPointerReply /* Xproto.h:573:27 */
 11424  
 11425  type XQueryPointerReply = struct {
 11426  	Ftype           BYTE
 11427  	FsameScreen     BOOL
 11428  	FsequenceNumber CARD16
 11429  	Flength         CARD32
 11430  	Froot           CARD32
 11431  	Fchild          CARD32
 11432  	FrootX          INT16
 11433  	FrootY          INT16
 11434  	FwinX           INT16
 11435  	FwinY           INT16
 11436  	Fmask           CARD16
 11437  	Fpad1           CARD16
 11438  	Fpad            CARD32
 11439  } /* Xproto.h:585:7 */
 11440  
 11441  type XGetMotionEventsReply = struct {
 11442  	Ftype           BYTE
 11443  	Fpad1           BYTE
 11444  	FsequenceNumber CARD16
 11445  	Flength         CARD32
 11446  	FnEvents        CARD32
 11447  	Fpad2           CARD32
 11448  	Fpad3           CARD32
 11449  	Fpad4           CARD32
 11450  	Fpad5           CARD32
 11451  	Fpad6           CARD32
 11452  } /* Xproto.h:598:7 */
 11453  
 11454  type XTranslateCoordsReply = struct {
 11455  	Ftype           BYTE
 11456  	FsameScreen     BOOL
 11457  	FsequenceNumber CARD16
 11458  	Flength         CARD32
 11459  	Fchild          CARD32
 11460  	FdstX           INT16
 11461  	FdstY           INT16
 11462  	Fpad2           CARD32
 11463  	Fpad3           CARD32
 11464  	Fpad4           CARD32
 11465  	Fpad5           CARD32
 11466  } /* Xproto.h:611:7 */
 11467  
 11468  type XGetInputFocusReply = struct {
 11469  	Ftype           BYTE
 11470  	FrevertTo       CARD8
 11471  	FsequenceNumber CARD16
 11472  	Flength         CARD32
 11473  	Ffocus          CARD32
 11474  	Fpad1           CARD32
 11475  	Fpad2           CARD32
 11476  	Fpad3           CARD32
 11477  	Fpad4           CARD32
 11478  	Fpad5           CARD32
 11479  } /* Xproto.h:624:7 */
 11480  
 11481  type XQueryKeymapReply = struct {
 11482  	Ftype           BYTE
 11483  	Fpad1           BYTE
 11484  	FsequenceNumber CARD16
 11485  	Flength         CARD32
 11486  	Fmap            [32]BYTE
 11487  } /* Xproto.h:632:7 */
 11488  
 11489  // Warning: this MUST match (up to component renaming) xListFontsWithInfoReply
 11490  type X_xQueryFontReply = struct {
 11491  	Ftype           BYTE
 11492  	Fpad1           BYTE
 11493  	FsequenceNumber CARD16
 11494  	Flength         CARD32
 11495  	FminBounds      XCharInfo
 11496  	Fwalign1        CARD32
 11497  	FmaxBounds      XCharInfo
 11498  	Fwalign2        CARD32
 11499  	FminCharOrByte2 CARD16
 11500  	FmaxCharOrByte2 CARD16
 11501  	FdefaultChar    CARD16
 11502  	FnFontProps     CARD16
 11503  	FdrawDirection  CARD8
 11504  	FminByte1       CARD8
 11505  	FmaxByte1       CARD8
 11506  	FallCharsExist  BOOL
 11507  	FfontAscent     INT16
 11508  	FfontDescent    INT16
 11509  	FnCharInfos     CARD32
 11510  } /* Xproto.h:635:9 */
 11511  
 11512  // Warning: this MUST match (up to component renaming) xListFontsWithInfoReply
 11513  type XQueryFontReply = X_xQueryFontReply /* Xproto.h:652:3 */
 11514  
 11515  type XQueryTextExtentsReply = struct {
 11516  	Ftype           BYTE
 11517  	FdrawDirection  CARD8
 11518  	FsequenceNumber CARD16
 11519  	Flength         CARD32
 11520  	FfontAscent     INT16
 11521  	FfontDescent    INT16
 11522  	FoverallAscent  INT16
 11523  	FoverallDescent INT16
 11524  	FoverallWidth   INT32
 11525  	FoverallLeft    INT32
 11526  	FoverallRight   INT32
 11527  	Fpad            CARD32
 11528  } /* Xproto.h:663:7 */
 11529  
 11530  type XListFontsReply = struct {
 11531  	Ftype           BYTE
 11532  	Fpad1           BYTE
 11533  	FsequenceNumber CARD16
 11534  	Flength         CARD32
 11535  	FnFonts         CARD16
 11536  	Fpad2           CARD16
 11537  	Fpad3           CARD32
 11538  	Fpad4           CARD32
 11539  	Fpad5           CARD32
 11540  	Fpad6           CARD32
 11541  	Fpad7           CARD32
 11542  } /* Xproto.h:677:7 */
 11543  
 11544  // Warning: this MUST match (up to component renaming) xQueryFontReply
 11545  type XListFontsWithInfoReply = struct {
 11546  	Ftype           BYTE
 11547  	FnameLength     CARD8
 11548  	FsequenceNumber CARD16
 11549  	Flength         CARD32
 11550  	FminBounds      XCharInfo
 11551  	Fwalign1        CARD32
 11552  	FmaxBounds      XCharInfo
 11553  	Fwalign2        CARD32
 11554  	FminCharOrByte2 CARD16
 11555  	FmaxCharOrByte2 CARD16
 11556  	FdefaultChar    CARD16
 11557  	FnFontProps     CARD16
 11558  	FdrawDirection  CARD8
 11559  	FminByte1       CARD8
 11560  	FmaxByte1       CARD8
 11561  	FallCharsExist  BOOL
 11562  	FfontAscent     INT16
 11563  	FfontDescent    INT16
 11564  	FnReplies       CARD32
 11565  } /* Xproto.h:697:3 */
 11566  
 11567  type XGetFontPathReply = struct {
 11568  	Ftype           BYTE
 11569  	Fpad1           BYTE
 11570  	FsequenceNumber CARD16
 11571  	Flength         CARD32
 11572  	FnPaths         CARD16
 11573  	Fpad2           CARD16
 11574  	Fpad3           CARD32
 11575  	Fpad4           CARD32
 11576  	Fpad5           CARD32
 11577  	Fpad6           CARD32
 11578  	Fpad7           CARD32
 11579  } /* Xproto.h:711:7 */
 11580  
 11581  type XGetImageReply = struct {
 11582  	Ftype           BYTE
 11583  	Fdepth          CARD8
 11584  	FsequenceNumber CARD16
 11585  	Flength         CARD32
 11586  	Fvisual         CARD32
 11587  	Fpad3           CARD32
 11588  	Fpad4           CARD32
 11589  	Fpad5           CARD32
 11590  	Fpad6           CARD32
 11591  	Fpad7           CARD32
 11592  } /* Xproto.h:724:7 */
 11593  
 11594  type XListInstalledColormapsReply = struct {
 11595  	Ftype           BYTE
 11596  	Fpad1           BYTE
 11597  	FsequenceNumber CARD16
 11598  	Flength         CARD32
 11599  	FnColormaps     CARD16
 11600  	Fpad2           CARD16
 11601  	Fpad3           CARD32
 11602  	Fpad4           CARD32
 11603  	Fpad5           CARD32
 11604  	Fpad6           CARD32
 11605  	Fpad7           CARD32
 11606  } /* Xproto.h:738:7 */
 11607  
 11608  type XAllocColorReply = struct {
 11609  	Ftype           BYTE
 11610  	Fpad1           BYTE
 11611  	FsequenceNumber CARD16
 11612  	Flength         CARD32
 11613  	Fred            CARD16
 11614  	Fgreen          CARD16
 11615  	Fblue           CARD16
 11616  	Fpad2           CARD16
 11617  	Fpixel          CARD32
 11618  	Fpad3           CARD32
 11619  	Fpad4           CARD32
 11620  	Fpad5           CARD32
 11621  } /* Xproto.h:751:7 */
 11622  
 11623  type XAllocNamedColorReply = struct {
 11624  	Ftype           BYTE
 11625  	Fpad1           BYTE
 11626  	FsequenceNumber CARD16
 11627  	Flength         CARD32
 11628  	Fpixel          CARD32
 11629  	FexactRed       CARD16
 11630  	FexactGreen     CARD16
 11631  	FexactBlue      CARD16
 11632  	FscreenRed      CARD16
 11633  	FscreenGreen    CARD16
 11634  	FscreenBlue     CARD16
 11635  	Fpad2           CARD32
 11636  	Fpad3           CARD32
 11637  } /* Xproto.h:763:7 */
 11638  
 11639  type XAllocColorCellsReply = struct {
 11640  	Ftype           BYTE
 11641  	Fpad1           BYTE
 11642  	FsequenceNumber CARD16
 11643  	Flength         CARD32
 11644  	FnPixels        CARD16
 11645  	FnMasks         CARD16
 11646  	Fpad3           CARD32
 11647  	Fpad4           CARD32
 11648  	Fpad5           CARD32
 11649  	Fpad6           CARD32
 11650  	Fpad7           CARD32
 11651  } /* Xproto.h:776:7 */
 11652  
 11653  type XAllocColorPlanesReply = struct {
 11654  	Ftype           BYTE
 11655  	Fpad1           BYTE
 11656  	FsequenceNumber CARD16
 11657  	Flength         CARD32
 11658  	FnPixels        CARD16
 11659  	Fpad2           CARD16
 11660  	FredMask        CARD32
 11661  	FgreenMask      CARD32
 11662  	FblueMask       CARD32
 11663  	Fpad3           CARD32
 11664  	Fpad4           CARD32
 11665  } /* Xproto.h:788:7 */
 11666  
 11667  type XQueryColorsReply = struct {
 11668  	Ftype           BYTE
 11669  	Fpad1           BYTE
 11670  	FsequenceNumber CARD16
 11671  	Flength         CARD32
 11672  	FnColors        CARD16
 11673  	Fpad2           CARD16
 11674  	Fpad3           CARD32
 11675  	Fpad4           CARD32
 11676  	Fpad5           CARD32
 11677  	Fpad6           CARD32
 11678  	Fpad7           CARD32
 11679  } /* Xproto.h:802:7 */
 11680  
 11681  type XLookupColorReply = struct {
 11682  	Ftype           BYTE
 11683  	Fpad1           BYTE
 11684  	FsequenceNumber CARD16
 11685  	Flength         CARD32
 11686  	FexactRed       CARD16
 11687  	FexactGreen     CARD16
 11688  	FexactBlue      CARD16
 11689  	FscreenRed      CARD16
 11690  	FscreenGreen    CARD16
 11691  	FscreenBlue     CARD16
 11692  	Fpad3           CARD32
 11693  	Fpad4           CARD32
 11694  	Fpad5           CARD32
 11695  } /* Xproto.h:814:7 */
 11696  
 11697  type XQueryBestSizeReply = struct {
 11698  	Ftype           BYTE
 11699  	Fpad1           BYTE
 11700  	FsequenceNumber CARD16
 11701  	Flength         CARD32
 11702  	Fwidth          CARD16
 11703  	Fheight         CARD16
 11704  	Fpad3           CARD32
 11705  	Fpad4           CARD32
 11706  	Fpad5           CARD32
 11707  	Fpad6           CARD32
 11708  	Fpad7           CARD32
 11709  } /* Xproto.h:827:7 */
 11710  
 11711  type XQueryExtensionReply = struct {
 11712  	Ftype           BYTE
 11713  	Fpad1           BYTE
 11714  	FsequenceNumber CARD16
 11715  	Flength         CARD32
 11716  	Fpresent        BOOL
 11717  	Fmajor_opcode   CARD8
 11718  	Ffirst_event    CARD8
 11719  	Ffirst_error    CARD8
 11720  	Fpad3           CARD32
 11721  	Fpad4           CARD32
 11722  	Fpad5           CARD32
 11723  	Fpad6           CARD32
 11724  	Fpad7           CARD32
 11725  } /* Xproto.h:843:7 */
 11726  
 11727  type XListExtensionsReply = struct {
 11728  	Ftype           BYTE
 11729  	FnExtensions    CARD8
 11730  	FsequenceNumber CARD16
 11731  	Flength         CARD32
 11732  	Fpad2           CARD32
 11733  	Fpad3           CARD32
 11734  	Fpad4           CARD32
 11735  	Fpad5           CARD32
 11736  	Fpad6           CARD32
 11737  	Fpad7           CARD32
 11738  } /* Xproto.h:856:7 */
 11739  
 11740  type XSetMappingReply = struct {
 11741  	Ftype           BYTE
 11742  	Fsuccess        CARD8
 11743  	FsequenceNumber CARD16
 11744  	Flength         CARD32
 11745  	Fpad2           CARD32
 11746  	Fpad3           CARD32
 11747  	Fpad4           CARD32
 11748  	Fpad5           CARD32
 11749  	Fpad6           CARD32
 11750  	Fpad7           CARD32
 11751  }                                                /* Xproto.h:870:7 */
 11752  type XSetPointerMappingReply = XSetMappingReply  /* Xproto.h:871:26 */
 11753  type XSetModifierMappingReply = XSetMappingReply /* Xproto.h:872:26 */
 11754  
 11755  type XGetPointerMappingReply = struct {
 11756  	Ftype           BYTE
 11757  	FnElts          CARD8
 11758  	FsequenceNumber CARD16
 11759  	Flength         CARD32
 11760  	Fpad2           CARD32
 11761  	Fpad3           CARD32
 11762  	Fpad4           CARD32
 11763  	Fpad5           CARD32
 11764  	Fpad6           CARD32
 11765  	Fpad7           CARD32
 11766  } /* Xproto.h:885:7 */
 11767  
 11768  type XGetKeyboardMappingReply = struct {
 11769  	Ftype              BYTE
 11770  	FkeySymsPerKeyCode CARD8
 11771  	FsequenceNumber    CARD16
 11772  	Flength            CARD32
 11773  	Fpad2              CARD32
 11774  	Fpad3              CARD32
 11775  	Fpad4              CARD32
 11776  	Fpad5              CARD32
 11777  	Fpad6              CARD32
 11778  	Fpad7              CARD32
 11779  } /* Xproto.h:898:3 */
 11780  
 11781  type XGetModifierMappingReply = struct {
 11782  	Ftype              BYTE
 11783  	FnumKeyPerModifier CARD8
 11784  	FsequenceNumber    CARD16
 11785  	Flength            CARD32
 11786  	Fpad1              CARD32
 11787  	Fpad2              CARD32
 11788  	Fpad3              CARD32
 11789  	Fpad4              CARD32
 11790  	Fpad5              CARD32
 11791  	Fpad6              CARD32
 11792  } /* Xproto.h:911:3 */
 11793  
 11794  type XGetKeyboardControlReply = struct {
 11795  	Ftype             BYTE
 11796  	FglobalAutoRepeat BOOL
 11797  	FsequenceNumber   CARD16
 11798  	Flength           CARD32
 11799  	FledMask          CARD32
 11800  	FkeyClickPercent  CARD8
 11801  	FbellPercent      CARD8
 11802  	FbellPitch        CARD16
 11803  	FbellDuration     CARD16
 11804  	Fpad              CARD16
 11805  	Fmap              [32]BYTE
 11806  } /* Xproto.h:923:7 */
 11807  
 11808  type XGetPointerControlReply = struct {
 11809  	Ftype             BYTE
 11810  	Fpad1             BYTE
 11811  	FsequenceNumber   CARD16
 11812  	Flength           CARD32
 11813  	FaccelNumerator   CARD16
 11814  	FaccelDenominator CARD16
 11815  	Fthreshold        CARD16
 11816  	Fpad2             CARD16
 11817  	Fpad3             CARD32
 11818  	Fpad4             CARD32
 11819  	Fpad5             CARD32
 11820  	Fpad6             CARD32
 11821  } /* Xproto.h:937:7 */
 11822  
 11823  type XGetScreenSaverReply = struct {
 11824  	Ftype           BYTE
 11825  	Fpad1           BYTE
 11826  	FsequenceNumber CARD16
 11827  	Flength         CARD32
 11828  	Ftimeout        CARD16
 11829  	Finterval       CARD16
 11830  	FpreferBlanking BOOL
 11831  	FallowExposures BOOL
 11832  	Fpad2           CARD16
 11833  	Fpad3           CARD32
 11834  	Fpad4           CARD32
 11835  	Fpad5           CARD32
 11836  	Fpad6           CARD32
 11837  } /* Xproto.h:952:7 */
 11838  
 11839  type XListHostsReply = struct {
 11840  	Ftype           BYTE
 11841  	Fenabled        BOOL
 11842  	FsequenceNumber CARD16
 11843  	Flength         CARD32
 11844  	FnHosts         CARD16
 11845  	Fpad1           CARD16
 11846  	Fpad3           CARD32
 11847  	Fpad4           CARD32
 11848  	Fpad5           CARD32
 11849  	Fpad6           CARD32
 11850  	Fpad7           CARD32
 11851  } /* Xproto.h:966:7 */
 11852  
 11853  // ****************************************************************
 11854  //
 11855  // Xerror
 11856  //    All errors  are 32 bytes
 11857  //
 11858  
 11859  type XError = struct {
 11860  	Ftype           BYTE
 11861  	FerrorCode      BYTE
 11862  	FsequenceNumber CARD16
 11863  	FresourceID     CARD32
 11864  	FminorCode      CARD16
 11865  	FmajorCode      CARD8
 11866  	Fpad1           BYTE
 11867  	Fpad3           CARD32
 11868  	Fpad4           CARD32
 11869  	Fpad5           CARD32
 11870  	Fpad6           CARD32
 11871  	Fpad7           CARD32
 11872  } /* Xproto.h:989:3 */
 11873  
 11874  // ****************************************************************
 11875  //
 11876  // xEvent
 11877  //    All events are 32 bytes
 11878  //
 11879  
 11880  type X_xEvent = struct {
 11881  	Fu struct {
 11882  		F__ccgo_pad1 [0]uint32
 11883  		Fu           struct {
 11884  			Ftype           BYTE
 11885  			Fdetail         BYTE
 11886  			FsequenceNumber CARD16
 11887  		}
 11888  		F__ccgo_pad2 [28]byte
 11889  	}
 11890  } /* Xproto.h:996:9 */
 11891  
 11892  // ****************************************************************
 11893  //
 11894  // xEvent
 11895  //    All events are 32 bytes
 11896  //
 11897  
 11898  type XEvent1 = X_xEvent /* Xproto.h:1214:3 */
 11899  
 11900  // ********************************************************
 11901  //
 11902  //
 11903  // Generic event
 11904  //
 11905  // Those events are not part of the core protocol spec and can be used by
 11906  // various extensions.
 11907  // type is always GenericEvent
 11908  // extension is the minor opcode of the extension the event belongs to.
 11909  // evtype is the actual event type, unique __per extension__.
 11910  //
 11911  // GenericEvents can be longer than 32 bytes, with the length field
 11912  // specifying the number of 4 byte blocks after the first 32 bytes.
 11913  //
 11914  //
 11915  type XGenericEvent1 = struct {
 11916  	Ftype           BYTE
 11917  	Fextension      CARD8
 11918  	FsequenceNumber CARD16
 11919  	Flength         CARD32
 11920  	Fevtype         CARD16
 11921  	Fpad2           CARD16
 11922  	Fpad3           CARD32
 11923  	Fpad4           CARD32
 11924  	Fpad5           CARD32
 11925  	Fpad6           CARD32
 11926  	Fpad7           CARD32
 11927  } /* Xproto.h:1244:3 */
 11928  
 11929  // KeymapNotify events are not included in the above union because they
 11930  //    are different from all other events: they do not have a "detail"
 11931  //    or "sequenceNumber", so there is room for a 248-bit key mask.
 11932  
 11933  type XKeymapEvent1 = struct {
 11934  	Ftype BYTE
 11935  	Fmap  [31]BYTE
 11936  } /* Xproto.h:1255:7 */
 11937  
 11938  // XReply is the union of all the replies above whose "fixed part"
 11939  // fits in 32 bytes.  It does NOT include GetWindowAttributesReply,
 11940  // QueryFontReply, QueryKeymapReply, or GetKeyboardControlReply
 11941  // ListFontsWithInfoReply
 11942  
 11943  type XReply = struct{ Fgeneric XGenericReply } /* Xproto.h:1303:3 */
 11944  
 11945  // ****************************************************************
 11946  //
 11947  // REQUESTS
 11948  //
 11949  
 11950  // Request structure
 11951  
 11952  type X_xReq = struct {
 11953  	FreqType CARD8
 11954  	Fdata    CARD8
 11955  	Flength  CARD16
 11956  } /* Xproto.h:1314:9 */
 11957  
 11958  // ****************************************************************
 11959  //
 11960  // REQUESTS
 11961  //
 11962  
 11963  // Request structure
 11964  
 11965  type XReq = X_xReq /* Xproto.h:1319:3 */
 11966  
 11967  // ****************************************************************
 11968  //
 11969  //  structures that follow request.
 11970  //
 11971  
 11972  // ResourceReq is used for any request which has a resource ID
 11973  //    (or Atom or Time) as its one and only argument.
 11974  
 11975  type XResourceReq = struct {
 11976  	FreqType CARD8
 11977  	Fpad     BYTE
 11978  	Flength  CARD16
 11979  	Fid      CARD32
 11980  } /* Xproto.h:1333:7 */
 11981  
 11982  type XCreateWindowReq = struct {
 11983  	FreqType     CARD8
 11984  	Fdepth       CARD8
 11985  	Flength      CARD16
 11986  	Fwid         CARD32
 11987  	Fparent      CARD32
 11988  	Fx           INT16
 11989  	Fy           INT16
 11990  	Fwidth       CARD16
 11991  	Fheight      CARD16
 11992  	FborderWidth CARD16
 11993  	Fclass       CARD16
 11994  	Fvisual      CARD32
 11995  	Fmask        CARD32
 11996  } /* Xproto.h:1349:3 */
 11997  
 11998  type XChangeWindowAttributesReq = struct {
 11999  	FreqType   CARD8
 12000  	Fpad       BYTE
 12001  	Flength    CARD16
 12002  	Fwindow    CARD32
 12003  	FvalueMask CARD32
 12004  } /* Xproto.h:1357:3 */
 12005  
 12006  type XChangeSaveSetReq = struct {
 12007  	FreqType CARD8
 12008  	Fmode    BYTE
 12009  	Flength  CARD16
 12010  	Fwindow  CARD32
 12011  } /* Xproto.h:1364:3 */
 12012  
 12013  type XReparentWindowReq = struct {
 12014  	FreqType CARD8
 12015  	Fpad     BYTE
 12016  	Flength  CARD16
 12017  	Fwindow  CARD32
 12018  	Fparent  CARD32
 12019  	Fx       INT16
 12020  	Fy       INT16
 12021  } /* Xproto.h:1372:3 */
 12022  
 12023  type XConfigureWindowReq = struct {
 12024  	FreqType CARD8
 12025  	Fpad     CARD8
 12026  	Flength  CARD16
 12027  	Fwindow  CARD32
 12028  	Fmask    CARD16
 12029  	Fpad2    CARD16
 12030  } /* Xproto.h:1381:3 */
 12031  
 12032  type XCirculateWindowReq = struct {
 12033  	FreqType   CARD8
 12034  	Fdirection CARD8
 12035  	Flength    CARD16
 12036  	Fwindow    CARD32
 12037  } /* Xproto.h:1388:3 */
 12038  
 12039  type XInternAtomReq = struct {
 12040  	FreqType      CARD8
 12041  	FonlyIfExists BOOL
 12042  	Flength       CARD16
 12043  	Fnbytes       CARD16
 12044  	Fpad          CARD16
 12045  } /* Xproto.h:1396:3 */
 12046  
 12047  type XChangePropertyReq = struct {
 12048  	FreqType  CARD8
 12049  	Fmode     CARD8
 12050  	Flength   CARD16
 12051  	Fwindow   CARD32
 12052  	Fproperty CARD32
 12053  	Ftype     CARD32
 12054  	Fformat   CARD8
 12055  	Fpad      [3]BYTE
 12056  	FnUnits   CARD32
 12057  } /* Xproto.h:1407:3 */
 12058  
 12059  type XDeletePropertyReq = struct {
 12060  	FreqType  CARD8
 12061  	Fpad      BYTE
 12062  	Flength   CARD16
 12063  	Fwindow   CARD32
 12064  	Fproperty CARD32
 12065  } /* Xproto.h:1415:3 */
 12066  
 12067  type XGetPropertyReq = struct {
 12068  	FreqType    CARD8
 12069  	Fdelete     BOOL
 12070  	Flength     CARD16
 12071  	Fwindow     CARD32
 12072  	Fproperty   CARD32
 12073  	Ftype       CARD32
 12074  	FlongOffset CARD32
 12075  	FlongLength CARD32
 12076  } /* Xproto.h:1429:3 */
 12077  
 12078  type XSetSelectionOwnerReq = struct {
 12079  	FreqType   CARD8
 12080  	Fpad       BYTE
 12081  	Flength    CARD16
 12082  	Fwindow    CARD32
 12083  	Fselection CARD32
 12084  	Ftime      CARD32
 12085  } /* Xproto.h:1438:3 */
 12086  
 12087  type XConvertSelectionReq = struct {
 12088  	FreqType   CARD8
 12089  	Fpad       BYTE
 12090  	Flength    CARD16
 12091  	Frequestor CARD32
 12092  	Fselection CARD32
 12093  	Ftarget    CARD32
 12094  	Fproperty  CARD32
 12095  	Ftime      CARD32
 12096  } /* Xproto.h:1447:7 */
 12097  
 12098  type XSendEventReq = struct {
 12099  	FreqType     CARD8
 12100  	Fpropagate   BOOL
 12101  	Flength      CARD16
 12102  	Fdestination CARD32
 12103  	FeventMask   CARD32
 12104  	Fevent       XEvent1
 12105  } /* Xproto.h:1456:3 */
 12106  
 12107  type XGrabPointerReq = struct {
 12108  	FreqType      CARD8
 12109  	FownerEvents  BOOL
 12110  	Flength       CARD16
 12111  	FgrabWindow   CARD32
 12112  	FeventMask    CARD16
 12113  	FpointerMode  BYTE
 12114  	FkeyboardMode BYTE
 12115  	FconfineTo    CARD32
 12116  	Fcursor       CARD32
 12117  	Ftime         CARD32
 12118  } /* Xproto.h:1468:3 */
 12119  
 12120  type XGrabButtonReq = struct {
 12121  	FreqType      CARD8
 12122  	FownerEvents  BOOL
 12123  	Flength       CARD16
 12124  	FgrabWindow   CARD32
 12125  	FeventMask    CARD16
 12126  	FpointerMode  BYTE
 12127  	FkeyboardMode BYTE
 12128  	FconfineTo    CARD32
 12129  	Fcursor       CARD32
 12130  	Fbutton       CARD8
 12131  	Fpad          BYTE
 12132  	Fmodifiers    CARD16
 12133  } /* Xproto.h:1482:3 */
 12134  
 12135  type XUngrabButtonReq = struct {
 12136  	FreqType    CARD8
 12137  	Fbutton     CARD8
 12138  	Flength     CARD16
 12139  	FgrabWindow CARD32
 12140  	Fmodifiers  CARD16
 12141  	Fpad        CARD16
 12142  } /* Xproto.h:1491:3 */
 12143  
 12144  type XChangeActivePointerGrabReq = struct {
 12145  	FreqType   CARD8
 12146  	Fpad       BYTE
 12147  	Flength    CARD16
 12148  	Fcursor    CARD32
 12149  	Ftime      CARD32
 12150  	FeventMask CARD16
 12151  	Fpad2      CARD16
 12152  } /* Xproto.h:1501:3 */
 12153  
 12154  type XGrabKeyboardReq = struct {
 12155  	FreqType      CARD8
 12156  	FownerEvents  BOOL
 12157  	Flength       CARD16
 12158  	FgrabWindow   CARD32
 12159  	Ftime         CARD32
 12160  	FpointerMode  BYTE
 12161  	FkeyboardMode BYTE
 12162  	Fpad          CARD16
 12163  } /* Xproto.h:1511:3 */
 12164  
 12165  type XGrabKeyReq = struct {
 12166  	FreqType      CARD8
 12167  	FownerEvents  BOOL
 12168  	Flength       CARD16
 12169  	FgrabWindow   CARD32
 12170  	Fmodifiers    CARD16
 12171  	Fkey          CARD8
 12172  	FpointerMode  BYTE
 12173  	FkeyboardMode BYTE
 12174  	Fpad1         BYTE
 12175  	Fpad2         BYTE
 12176  	Fpad3         BYTE
 12177  } /* Xproto.h:1522:3 */
 12178  
 12179  type XUngrabKeyReq = struct {
 12180  	FreqType    CARD8
 12181  	Fkey        CARD8
 12182  	Flength     CARD16
 12183  	FgrabWindow CARD32
 12184  	Fmodifiers  CARD16
 12185  	Fpad        CARD16
 12186  } /* Xproto.h:1531:3 */
 12187  
 12188  type XAllowEventsReq = struct {
 12189  	FreqType CARD8
 12190  	Fmode    CARD8
 12191  	Flength  CARD16
 12192  	Ftime    CARD32
 12193  } /* Xproto.h:1538:3 */
 12194  
 12195  type XGetMotionEventsReq = struct {
 12196  	FreqType CARD8
 12197  	Fpad     BYTE
 12198  	Flength  CARD16
 12199  	Fwindow  CARD32
 12200  	Fstart   CARD32
 12201  	Fstop    CARD32
 12202  } /* Xproto.h:1546:3 */
 12203  
 12204  type XTranslateCoordsReq = struct {
 12205  	FreqType CARD8
 12206  	Fpad     BYTE
 12207  	Flength  CARD16
 12208  	FsrcWid  CARD32
 12209  	FdstWid  CARD32
 12210  	FsrcX    INT16
 12211  	FsrcY    INT16
 12212  } /* Xproto.h:1554:3 */
 12213  
 12214  type XWarpPointerReq = struct {
 12215  	FreqType   CARD8
 12216  	Fpad       BYTE
 12217  	Flength    CARD16
 12218  	FsrcWid    CARD32
 12219  	FdstWid    CARD32
 12220  	FsrcX      INT16
 12221  	FsrcY      INT16
 12222  	FsrcWidth  CARD16
 12223  	FsrcHeight CARD16
 12224  	FdstX      INT16
 12225  	FdstY      INT16
 12226  } /* Xproto.h:1564:3 */
 12227  
 12228  type XSetInputFocusReq = struct {
 12229  	FreqType  CARD8
 12230  	FrevertTo CARD8
 12231  	Flength   CARD16
 12232  	Ffocus    CARD32
 12233  	Ftime     CARD32
 12234  } /* Xproto.h:1572:3 */
 12235  
 12236  type XOpenFontReq = struct {
 12237  	FreqType CARD8
 12238  	Fpad     BYTE
 12239  	Flength  CARD16
 12240  	Ffid     CARD32
 12241  	Fnbytes  CARD16
 12242  	Fpad1    BYTE
 12243  	Fpad2    BYTE
 12244  } /* Xproto.h:1581:3 */
 12245  
 12246  type XQueryTextExtentsReq = struct {
 12247  	FreqType   CARD8
 12248  	FoddLength BOOL
 12249  	Flength    CARD16
 12250  	Ffid       CARD32
 12251  } /* Xproto.h:1588:7 */
 12252  
 12253  type XListFontsReq = struct {
 12254  	FreqType  CARD8
 12255  	Fpad      BYTE
 12256  	Flength   CARD16
 12257  	FmaxNames CARD16
 12258  	Fnbytes   CARD16
 12259  } /* Xproto.h:1596:3 */
 12260  
 12261  type XListFontsWithInfoReq = XListFontsReq /* Xproto.h:1598:23 */
 12262  
 12263  type XSetFontPathReq = struct {
 12264  	FreqType CARD8
 12265  	Fpad     BYTE
 12266  	Flength  CARD16
 12267  	FnFonts  CARD16
 12268  	Fpad1    BYTE
 12269  	Fpad2    BYTE
 12270  } /* Xproto.h:1606:3 */
 12271  
 12272  type XCreatePixmapReq = struct {
 12273  	FreqType  CARD8
 12274  	Fdepth    CARD8
 12275  	Flength   CARD16
 12276  	Fpid      CARD32
 12277  	Fdrawable CARD32
 12278  	Fwidth    CARD16
 12279  	Fheight   CARD16
 12280  } /* Xproto.h:1615:3 */
 12281  
 12282  type XCreateGCReq = struct {
 12283  	FreqType  CARD8
 12284  	Fpad      BYTE
 12285  	Flength   CARD16
 12286  	Fgc       CARD32
 12287  	Fdrawable CARD32
 12288  	Fmask     CARD32
 12289  } /* Xproto.h:1624:3 */
 12290  
 12291  type XChangeGCReq = struct {
 12292  	FreqType CARD8
 12293  	Fpad     BYTE
 12294  	Flength  CARD16
 12295  	Fgc      CARD32
 12296  	Fmask    CARD32
 12297  } /* Xproto.h:1632:3 */
 12298  
 12299  type XCopyGCReq = struct {
 12300  	FreqType CARD8
 12301  	Fpad     BYTE
 12302  	Flength  CARD16
 12303  	FsrcGC   CARD32
 12304  	FdstGC   CARD32
 12305  	Fmask    CARD32
 12306  } /* Xproto.h:1640:3 */
 12307  
 12308  type XSetDashesReq = struct {
 12309  	FreqType    CARD8
 12310  	Fpad        BYTE
 12311  	Flength     CARD16
 12312  	Fgc         CARD32
 12313  	FdashOffset CARD16
 12314  	FnDashes    CARD16
 12315  } /* Xproto.h:1649:3 */
 12316  
 12317  type XSetClipRectanglesReq = struct {
 12318  	FreqType  CARD8
 12319  	Fordering BYTE
 12320  	Flength   CARD16
 12321  	Fgc       CARD32
 12322  	FxOrigin  INT16
 12323  	FyOrigin  INT16
 12324  } /* Xproto.h:1657:3 */
 12325  
 12326  type XClearAreaReq = struct {
 12327  	FreqType   CARD8
 12328  	Fexposures BOOL
 12329  	Flength    CARD16
 12330  	Fwindow    CARD32
 12331  	Fx         INT16
 12332  	Fy         INT16
 12333  	Fwidth     CARD16
 12334  	Fheight    CARD16
 12335  } /* Xproto.h:1666:3 */
 12336  
 12337  type XCopyAreaReq = struct {
 12338  	FreqType     CARD8
 12339  	Fpad         BYTE
 12340  	Flength      CARD16
 12341  	FsrcDrawable CARD32
 12342  	FdstDrawable CARD32
 12343  	Fgc          CARD32
 12344  	FsrcX        INT16
 12345  	FsrcY        INT16
 12346  	FdstX        INT16
 12347  	FdstY        INT16
 12348  	Fwidth       CARD16
 12349  	Fheight      CARD16
 12350  } /* Xproto.h:1676:3 */
 12351  
 12352  type XCopyPlaneReq = struct {
 12353  	FreqType     CARD8
 12354  	Fpad         BYTE
 12355  	Flength      CARD16
 12356  	FsrcDrawable CARD32
 12357  	FdstDrawable CARD32
 12358  	Fgc          CARD32
 12359  	FsrcX        INT16
 12360  	FsrcY        INT16
 12361  	FdstX        INT16
 12362  	FdstY        INT16
 12363  	Fwidth       CARD16
 12364  	Fheight      CARD16
 12365  	FbitPlane    CARD32
 12366  } /* Xproto.h:1687:3 */
 12367  
 12368  type XPolyPointReq = struct {
 12369  	FreqType   CARD8
 12370  	FcoordMode BYTE
 12371  	Flength    CARD16
 12372  	Fdrawable  CARD32
 12373  	Fgc        CARD32
 12374  } /* Xproto.h:1695:3 */
 12375  
 12376  type XPolyLineReq = XPolyPointReq /* Xproto.h:1697:23 */ // same request structure
 12377  
 12378  // The following used for PolySegment, PolyRectangle, PolyArc, PolyFillRectangle, PolyFillArc
 12379  
 12380  type XPolySegmentReq = struct {
 12381  	FreqType  CARD8
 12382  	Fpad      BYTE
 12383  	Flength   CARD16
 12384  	Fdrawable CARD32
 12385  	Fgc       CARD32
 12386  } /* Xproto.h:1707:3 */
 12387  
 12388  type XPolyArcReq = XPolySegmentReq           /* Xproto.h:1709:25 */
 12389  type XPolyRectangleReq = XPolySegmentReq     /* Xproto.h:1710:25 */
 12390  type XPolyFillRectangleReq = XPolySegmentReq /* Xproto.h:1711:25 */
 12391  type XPolyFillArcReq = XPolySegmentReq       /* Xproto.h:1712:25 */
 12392  
 12393  type X_FillPolyReq = struct {
 12394  	FreqType   CARD8
 12395  	Fpad       BYTE
 12396  	Flength    CARD16
 12397  	Fdrawable  CARD32
 12398  	Fgc        CARD32
 12399  	Fshape     BYTE
 12400  	FcoordMode BYTE
 12401  	Fpad1      CARD16
 12402  } /* Xproto.h:1714:9 */
 12403  
 12404  type XFillPolyReq = X_FillPolyReq /* Xproto.h:1723:3 */
 12405  
 12406  type X_PutImageReq = struct {
 12407  	FreqType  CARD8
 12408  	Fformat   CARD8
 12409  	Flength   CARD16
 12410  	Fdrawable CARD32
 12411  	Fgc       CARD32
 12412  	Fwidth    CARD16
 12413  	Fheight   CARD16
 12414  	FdstX     INT16
 12415  	FdstY     INT16
 12416  	FleftPad  CARD8
 12417  	Fdepth    CARD8
 12418  	Fpad      CARD16
 12419  } /* Xproto.h:1726:9 */
 12420  
 12421  type XPutImageReq = X_PutImageReq /* Xproto.h:1737:3 */
 12422  
 12423  type XGetImageReq = struct {
 12424  	FreqType   CARD8
 12425  	Fformat    CARD8
 12426  	Flength    CARD16
 12427  	Fdrawable  CARD32
 12428  	Fx         INT16
 12429  	Fy         INT16
 12430  	Fwidth     CARD16
 12431  	Fheight    CARD16
 12432  	FplaneMask CARD32
 12433  } /* Xproto.h:1747:3 */
 12434  
 12435  // the following used by PolyText8 and PolyText16
 12436  
 12437  type XPolyTextReq = struct {
 12438  	FreqType  CARD8
 12439  	Fpad      CARD8
 12440  	Flength   CARD16
 12441  	Fdrawable CARD32
 12442  	Fgc       CARD32
 12443  	Fx        INT16
 12444  	Fy        INT16
 12445  } /* Xproto.h:1758:3 */
 12446  
 12447  type XPolyText8Req = XPolyTextReq  /* Xproto.h:1760:22 */
 12448  type XPolyText16Req = XPolyTextReq /* Xproto.h:1761:22 */
 12449  
 12450  type XImageTextReq = struct {
 12451  	FreqType  CARD8
 12452  	FnChars   BYTE
 12453  	Flength   CARD16
 12454  	Fdrawable CARD32
 12455  	Fgc       CARD32
 12456  	Fx        INT16
 12457  	Fy        INT16
 12458  } /* Xproto.h:1770:3 */
 12459  
 12460  type XImageText8Req = XImageTextReq  /* Xproto.h:1772:23 */
 12461  type XImageText16Req = XImageTextReq /* Xproto.h:1773:23 */
 12462  
 12463  type XCreateColormapReq = struct {
 12464  	FreqType CARD8
 12465  	Falloc   BYTE
 12466  	Flength  CARD16
 12467  	Fmid     CARD32
 12468  	Fwindow  CARD32
 12469  	Fvisual  CARD32
 12470  } /* Xproto.h:1782:3 */
 12471  
 12472  type XCopyColormapAndFreeReq = struct {
 12473  	FreqType CARD8
 12474  	Fpad     BYTE
 12475  	Flength  CARD16
 12476  	Fmid     CARD32
 12477  	FsrcCmap CARD32
 12478  } /* Xproto.h:1790:3 */
 12479  
 12480  type XAllocColorReq = struct {
 12481  	FreqType CARD8
 12482  	Fpad     BYTE
 12483  	Flength  CARD16
 12484  	Fcmap    CARD32
 12485  	Fred     CARD16
 12486  	Fgreen   CARD16
 12487  	Fblue    CARD16
 12488  	Fpad2    CARD16
 12489  } /* Xproto.h:1799:3 */
 12490  
 12491  type XAllocNamedColorReq = struct {
 12492  	FreqType CARD8
 12493  	Fpad     BYTE
 12494  	Flength  CARD16
 12495  	Fcmap    CARD32
 12496  	Fnbytes  CARD16
 12497  	Fpad1    BYTE
 12498  	Fpad2    BYTE
 12499  } /* Xproto.h:1808:3 */
 12500  
 12501  type XAllocColorCellsReq = struct {
 12502  	FreqType    CARD8
 12503  	Fcontiguous BOOL
 12504  	Flength     CARD16
 12505  	Fcmap       CARD32
 12506  	Fcolors     CARD16
 12507  	Fplanes     CARD16
 12508  } /* Xproto.h:1816:3 */
 12509  
 12510  type XAllocColorPlanesReq = struct {
 12511  	FreqType    CARD8
 12512  	Fcontiguous BOOL
 12513  	Flength     CARD16
 12514  	Fcmap       CARD32
 12515  	Fcolors     CARD16
 12516  	Fred        CARD16
 12517  	Fgreen      CARD16
 12518  	Fblue       CARD16
 12519  } /* Xproto.h:1824:3 */
 12520  
 12521  type XFreeColorsReq = struct {
 12522  	FreqType   CARD8
 12523  	Fpad       BYTE
 12524  	Flength    CARD16
 12525  	Fcmap      CARD32
 12526  	FplaneMask CARD32
 12527  } /* Xproto.h:1832:3 */
 12528  
 12529  type XStoreColorsReq = struct {
 12530  	FreqType CARD8
 12531  	Fpad     BYTE
 12532  	Flength  CARD16
 12533  	Fcmap    CARD32
 12534  } /* Xproto.h:1839:3 */
 12535  
 12536  type XStoreNamedColorReq = struct {
 12537  	FreqType CARD8
 12538  	Fflags   CARD8
 12539  	Flength  CARD16
 12540  	Fcmap    CARD32
 12541  	Fpixel   CARD32
 12542  	Fnbytes  CARD16
 12543  	Fpad1    BYTE
 12544  	Fpad2    BYTE
 12545  } /* Xproto.h:1849:7 */
 12546  
 12547  type XQueryColorsReq = struct {
 12548  	FreqType CARD8
 12549  	Fpad     BYTE
 12550  	Flength  CARD16
 12551  	Fcmap    CARD32
 12552  } /* Xproto.h:1856:3 */
 12553  
 12554  type XLookupColorReq = struct {
 12555  	FreqType CARD8
 12556  	Fpad     BYTE
 12557  	Flength  CARD16
 12558  	Fcmap    CARD32
 12559  	Fnbytes  CARD16
 12560  	Fpad1    BYTE
 12561  	Fpad2    BYTE
 12562  } /* Xproto.h:1865:3 */
 12563  
 12564  type XCreateCursorReq = struct {
 12565  	FreqType   CARD8
 12566  	Fpad       BYTE
 12567  	Flength    CARD16
 12568  	Fcid       CARD32
 12569  	Fsource    CARD32
 12570  	Fmask      CARD32
 12571  	FforeRed   CARD16
 12572  	FforeGreen CARD16
 12573  	FforeBlue  CARD16
 12574  	FbackRed   CARD16
 12575  	FbackGreen CARD16
 12576  	FbackBlue  CARD16
 12577  	Fx         CARD16
 12578  	Fy         CARD16
 12579  } /* Xproto.h:1876:3 */
 12580  
 12581  type XCreateGlyphCursorReq = struct {
 12582  	FreqType    CARD8
 12583  	Fpad        BYTE
 12584  	Flength     CARD16
 12585  	Fcid        CARD32
 12586  	Fsource     CARD32
 12587  	Fmask       CARD32
 12588  	FsourceChar CARD16
 12589  	FmaskChar   CARD16
 12590  	FforeRed    CARD16
 12591  	FforeGreen  CARD16
 12592  	FforeBlue   CARD16
 12593  	FbackRed    CARD16
 12594  	FbackGreen  CARD16
 12595  	FbackBlue   CARD16
 12596  } /* Xproto.h:1887:3 */
 12597  
 12598  type XRecolorCursorReq = struct {
 12599  	FreqType   CARD8
 12600  	Fpad       BYTE
 12601  	Flength    CARD16
 12602  	Fcursor    CARD32
 12603  	FforeRed   CARD16
 12604  	FforeGreen CARD16
 12605  	FforeBlue  CARD16
 12606  	FbackRed   CARD16
 12607  	FbackGreen CARD16
 12608  	FbackBlue  CARD16
 12609  } /* Xproto.h:1896:3 */
 12610  
 12611  type XQueryBestSizeReq = struct {
 12612  	FreqType  CARD8
 12613  	Fclass    CARD8
 12614  	Flength   CARD16
 12615  	Fdrawable CARD32
 12616  	Fwidth    CARD16
 12617  	Fheight   CARD16
 12618  } /* Xproto.h:1908:3 */
 12619  
 12620  type XQueryExtensionReq = struct {
 12621  	FreqType CARD8
 12622  	Fpad     BYTE
 12623  	Flength  CARD16
 12624  	Fnbytes  CARD16
 12625  	Fpad1    BYTE
 12626  	Fpad2    BYTE
 12627  } /* Xproto.h:1916:3 */
 12628  
 12629  type XSetModifierMappingReq = struct {
 12630  	FreqType           CARD8
 12631  	FnumKeyPerModifier CARD8
 12632  	Flength            CARD16
 12633  } /* Xproto.h:1922:3 */
 12634  
 12635  type XSetPointerMappingReq = struct {
 12636  	FreqType CARD8
 12637  	FnElts   CARD8
 12638  	Flength  CARD16
 12639  } /* Xproto.h:1928:3 */
 12640  
 12641  type XGetKeyboardMappingReq = struct {
 12642  	FreqType      CARD8
 12643  	Fpad          BYTE
 12644  	Flength       CARD16
 12645  	FfirstKeyCode CARD8
 12646  	Fcount        CARD8
 12647  	Fpad1         CARD16
 12648  } /* Xproto.h:1937:3 */
 12649  
 12650  type XChangeKeyboardMappingReq = struct {
 12651  	FreqType           CARD8
 12652  	FkeyCodes          CARD8
 12653  	Flength            CARD16
 12654  	FfirstKeyCode      CARD8
 12655  	FkeySymsPerKeyCode CARD8
 12656  	Fpad1              CARD16
 12657  } /* Xproto.h:1946:3 */
 12658  
 12659  type XChangeKeyboardControlReq = struct {
 12660  	FreqType CARD8
 12661  	Fpad     BYTE
 12662  	Flength  CARD16
 12663  	Fmask    CARD32
 12664  } /* Xproto.h:1953:3 */
 12665  
 12666  type XBellReq = struct {
 12667  	FreqType CARD8
 12668  	Fpercent INT8
 12669  	Flength  CARD16
 12670  } /* Xproto.h:1959:3 */
 12671  
 12672  type XChangePointerControlReq = struct {
 12673  	FreqType    CARD8
 12674  	Fpad        BYTE
 12675  	Flength     CARD16
 12676  	FaccelNum   INT16
 12677  	FaccelDenum INT16
 12678  	Fthreshold  INT16
 12679  	FdoAccel    BOOL
 12680  	FdoThresh   BOOL
 12681  } /* Xproto.h:1968:3 */
 12682  
 12683  type XSetScreenSaverReq = struct {
 12684  	FreqType     CARD8
 12685  	Fpad         BYTE
 12686  	Flength      CARD16
 12687  	Ftimeout     INT16
 12688  	Finterval    INT16
 12689  	FpreferBlank BYTE
 12690  	FallowExpose BYTE
 12691  	Fpad2        CARD16
 12692  } /* Xproto.h:1977:3 */
 12693  
 12694  type XChangeHostsReq = struct {
 12695  	FreqType    CARD8
 12696  	Fmode       BYTE
 12697  	Flength     CARD16
 12698  	FhostFamily CARD8
 12699  	Fpad        BYTE
 12700  	FhostLength CARD16
 12701  } /* Xproto.h:1986:3 */
 12702  
 12703  type XListHostsReq = struct {
 12704  	FreqType CARD8
 12705  	Fpad     BYTE
 12706  	Flength  CARD16
 12707  } /* Xproto.h:1992:7 */
 12708  
 12709  type XChangeModeReq = struct {
 12710  	FreqType CARD8
 12711  	Fmode    BYTE
 12712  	Flength  CARD16
 12713  } /* Xproto.h:1998:7 */
 12714  
 12715  type XSetAccessControlReq = XChangeModeReq /* Xproto.h:2000:24 */
 12716  type XSetCloseDownModeReq = XChangeModeReq /* Xproto.h:2001:24 */
 12717  type XForceScreenSaverReq = XChangeModeReq /* Xproto.h:2002:24 */
 12718  
 12719  type XRotatePropertiesReq = struct {
 12720  	FreqType    CARD8
 12721  	Fpad        BYTE
 12722  	Flength     CARD16
 12723  	Fwindow     CARD32
 12724  	FnAtoms     CARD16
 12725  	FnPositions INT16
 12726  } /* Xproto.h:2011:7 */
 12727  
 12728  type X_XFreeFuncs = struct {
 12729  	Fatoms         FreeFuncType
 12730  	Fmodifiermap   FreeModmapType
 12731  	Fkey_bindings  FreeFuncType
 12732  	Fcontext_db    FreeFuncType
 12733  	FdefaultCCCs   FreeFuncType
 12734  	FclientCmaps   FreeFuncType
 12735  	FintensityMaps FreeFuncType
 12736  	Fim_filters    FreeFuncType
 12737  	Fxkb           FreeFuncType
 12738  } /* Xlib.h:255:1 */
 12739  
 12740  type X_XSQEvent = struct {
 12741  	Fnext        uintptr
 12742  	Fevent       XEvent
 12743  	Fqserial_num uint64
 12744  } /* Xlib.h:255:1 */
 12745  
 12746  type X_XExten = struct {
 12747  	Fnext          uintptr
 12748  	Fcodes         XExtCodes
 12749  	Fcreate_GC     CreateGCType
 12750  	Fcopy_GC       CopyGCType
 12751  	Fflush_GC      FlushGCType
 12752  	Ffree_GC       FreeGCType
 12753  	Fcreate_Font   CreateFontType
 12754  	Ffree_Font     FreeFontType
 12755  	Fclose_display CloseDisplayType
 12756  	Ferror         ErrorType
 12757  	Ferror_string  ErrorStringType
 12758  	Fname          uintptr
 12759  	Ferror_values  PrintErrorType
 12760  	Fbefore_flush  BeforeFlushType
 12761  	Fnext_flush    uintptr
 12762  } /* Xlib.h:255:1 */
 12763  
 12764  type X_XInternalAsync = struct {
 12765  	Fnext    uintptr
 12766  	Fhandler uintptr
 12767  	Fdata    XPointer
 12768  } /* Xlib.h:255:1 */
 12769  
 12770  type X_XLockPtrs = struct {
 12771  	Flock_display   uintptr
 12772  	Funlock_display uintptr
 12773  } /* Xlib.h:255:1 */
 12774  
 12775  type X_XConnectionInfo = struct {
 12776  	Ffd            int32
 12777  	F__ccgo_pad1   [4]byte
 12778  	Fread_callback X_XInternalConnectionProc
 12779  	Fcall_data     XPointer
 12780  	Fwatch_data    uintptr
 12781  	Fnext          uintptr
 12782  } /* Xlib.h:255:1 */
 12783  
 12784  type X_XConnWatchInfo = struct {
 12785  	Ffn          XConnectionWatchProc
 12786  	Fclient_data XPointer
 12787  	Fnext        uintptr
 12788  } /* Xlib.h:255:1 */
 12789  
 12790  // access "last_request_read" and "request" with 64bit
 12791  // warning: the value argument of the SET-macros must not
 12792  // have any side-effects because it may get called twice.
 12793  // accessors for 64-bit unsigned long
 12794  
 12795  // _QEvent datatype for use in input queueing.
 12796  type X_XQEvent = X_XSQEvent /* Xlibint.h:331:3 */
 12797  
 12798  // Error codes
 12799  
 12800  // 11 was EAGAIN
 12801  
 12802  // math software
 12803  
 12804  // non-blocking and interrupt i/o
 12805  
 12806  // ipc/network software -- argument errors
 12807  
 12808  // ipc/network software -- operational errors
 12809  
 12810  // should be rearranged
 12811  
 12812  // quotas & mush
 12813  
 12814  // Network File System
 12815  
 12816  // Intelligent device errors
 12817  
 12818  // Program loading errors
 12819  
 12820  // This value is only discrete when compiling __DARWIN_UNIX03, or KERNEL
 12821  
 12822  //
 12823  //
 12824  // Copyright 1990, 1998  The Open Group
 12825  //
 12826  // Permission to use, copy, modify, distribute, and sell this software and its
 12827  // documentation for any purpose is hereby granted without fee, provided that
 12828  // the above copyright notice appear in all copies and that both that
 12829  // copyright notice and this permission notice appear in supporting
 12830  // documentation.
 12831  //
 12832  // The above copyright notice and this permission notice shall be included in
 12833  // all copies or substantial portions of the Software.
 12834  //
 12835  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 12836  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 12837  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 12838  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 12839  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 12840  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 12841  //
 12842  // Except as contained in this notice, the name of The Open Group shall not be
 12843  // used in advertising or otherwise to promote the sale, use or other dealings
 12844  // in this Software without prior written authorization from The Open Group.
 12845  //  *
 12846  //
 12847  
 12848  //
 12849  //  O/S-dependent (mis)feature macro definitions
 12850  //
 12851  // Copyright 1991, 1998  The Open Group
 12852  //
 12853  // Permission to use, copy, modify, distribute, and sell this software and its
 12854  // documentation for any purpose is hereby granted without fee, provided that
 12855  // the above copyright notice appear in all copies and that both that
 12856  // copyright notice and this permission notice appear in supporting
 12857  // documentation.
 12858  //
 12859  // The above copyright notice and this permission notice shall be included in
 12860  // all copies or substantial portions of the Software.
 12861  //
 12862  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 12863  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 12864  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 12865  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 12866  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 12867  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 12868  //
 12869  // Except as contained in this notice, the name of The Open Group shall not be
 12870  // used in advertising or otherwise to promote the sale, use or other dealings
 12871  // in this Software without prior written authorization from The Open Group.
 12872  //
 12873  
 12874  // the old Xfuncs.h, for pre-R6
 12875  
 12876  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
 12877  //
 12878  // @APPLE_LICENSE_HEADER_START@
 12879  //
 12880  // This file contains Original Code and/or Modifications of Original Code
 12881  // as defined in and that are subject to the Apple Public Source License
 12882  // Version 2.0 (the 'License'). You may not use this file except in
 12883  // compliance with the License. Please obtain a copy of the License at
 12884  // http://www.opensource.apple.com/apsl/ and read it before using this
 12885  // file.
 12886  //
 12887  // The Original Code and all software distributed under the License are
 12888  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12889  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12890  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12891  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12892  // Please see the License for the specific language governing rights and
 12893  // limitations under the License.
 12894  //
 12895  // @APPLE_LICENSE_HEADER_END@
 12896  // -
 12897  // Copyright (c) 1990, 1993
 12898  //	The Regents of the University of California.  All rights reserved.
 12899  //
 12900  // Redistribution and use in source and binary forms, with or without
 12901  // modification, are permitted provided that the following conditions
 12902  // are met:
 12903  // 1. Redistributions of source code must retain the above copyright
 12904  //    notice, this list of conditions and the following disclaimer.
 12905  // 2. Redistributions in binary form must reproduce the above copyright
 12906  //    notice, this list of conditions and the following disclaimer in the
 12907  //    documentation and/or other materials provided with the distribution.
 12908  // 3. All advertising materials mentioning features or use of this software
 12909  //    must display the following acknowledgement:
 12910  //	This product includes software developed by the University of
 12911  //	California, Berkeley and its contributors.
 12912  // 4. Neither the name of the University nor the names of its contributors
 12913  //    may be used to endorse or promote products derived from this software
 12914  //    without specific prior written permission.
 12915  //
 12916  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 12917  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 12918  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 12919  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 12920  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 12921  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 12922  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 12923  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 12924  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 12925  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 12926  // SUCH DAMAGE.
 12927  //
 12928  //	@(#)string.h	8.1 (Berkeley) 6/2/93
 12929  
 12930  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
 12931  //
 12932  // @APPLE_LICENSE_HEADER_START@
 12933  //
 12934  // This file contains Original Code and/or Modifications of Original Code
 12935  // as defined in and that are subject to the Apple Public Source License
 12936  // Version 2.0 (the 'License'). You may not use this file except in
 12937  // compliance with the License. Please obtain a copy of the License at
 12938  // http://www.opensource.apple.com/apsl/ and read it before using this
 12939  // file.
 12940  //
 12941  // The Original Code and all software distributed under the License are
 12942  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12943  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12944  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12945  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12946  // Please see the License for the specific language governing rights and
 12947  // limitations under the License.
 12948  //
 12949  // @APPLE_LICENSE_HEADER_END@
 12950  
 12951  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 12952  //
 12953  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12954  //
 12955  // This file contains Original Code and/or Modifications of Original Code
 12956  // as defined in and that are subject to the Apple Public Source License
 12957  // Version 2.0 (the 'License'). You may not use this file except in
 12958  // compliance with the License. The rights granted to you under the License
 12959  // may not be used to create, or enable the creation or redistribution of,
 12960  // unlawful or unlicensed copies of an Apple operating system, or to
 12961  // circumvent, violate, or enable the circumvention or violation of, any
 12962  // terms of an Apple operating system software license agreement.
 12963  //
 12964  // Please obtain a copy of the License at
 12965  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12966  //
 12967  // The Original Code and all software distributed under the License are
 12968  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12969  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12970  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12971  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12972  // Please see the License for the specific language governing rights and
 12973  // limitations under the License.
 12974  //
 12975  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 12976  
 12977  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 12978  //
 12979  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 12980  //
 12981  // This file contains Original Code and/or Modifications of Original Code
 12982  // as defined in and that are subject to the Apple Public Source License
 12983  // Version 2.0 (the 'License'). You may not use this file except in
 12984  // compliance with the License. The rights granted to you under the License
 12985  // may not be used to create, or enable the creation or redistribution of,
 12986  // unlawful or unlicensed copies of an Apple operating system, or to
 12987  // circumvent, violate, or enable the circumvention or violation of, any
 12988  // terms of an Apple operating system software license agreement.
 12989  //
 12990  // Please obtain a copy of the License at
 12991  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 12992  //
 12993  // The Original Code and all software distributed under the License are
 12994  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 12995  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 12996  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 12997  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 12998  // Please see the License for the specific language governing rights and
 12999  // limitations under the License.
 13000  //
 13001  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13002  
 13003  type X__darwin_nl_item = int32        /* _types.h:40:14 */
 13004  type X__darwin_wctrans_t = int32      /* _types.h:41:14 */
 13005  type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
 13006  
 13007  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
 13008  //
 13009  // @APPLE_LICENSE_HEADER_START@
 13010  //
 13011  // This file contains Original Code and/or Modifications of Original Code
 13012  // as defined in and that are subject to the Apple Public Source License
 13013  // Version 2.0 (the 'License'). You may not use this file except in
 13014  // compliance with the License. Please obtain a copy of the License at
 13015  // http://www.opensource.apple.com/apsl/ and read it before using this
 13016  // file.
 13017  //
 13018  // The Original Code and all software distributed under the License are
 13019  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13020  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13021  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13022  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13023  // Please see the License for the specific language governing rights and
 13024  // limitations under the License.
 13025  //
 13026  // @APPLE_LICENSE_HEADER_END@
 13027  // -
 13028  // Copyright (c) 1990, 1993
 13029  //	The Regents of the University of California.  All rights reserved.
 13030  //
 13031  // Redistribution and use in source and binary forms, with or without
 13032  // modification, are permitted provided that the following conditions
 13033  // are met:
 13034  // 1. Redistributions of source code must retain the above copyright
 13035  //    notice, this list of conditions and the following disclaimer.
 13036  // 2. Redistributions in binary form must reproduce the above copyright
 13037  //    notice, this list of conditions and the following disclaimer in the
 13038  //    documentation and/or other materials provided with the distribution.
 13039  // 3. All advertising materials mentioning features or use of this software
 13040  //    must display the following acknowledgement:
 13041  //	This product includes software developed by the University of
 13042  //	California, Berkeley and its contributors.
 13043  // 4. Neither the name of the University nor the names of its contributors
 13044  //    may be used to endorse or promote products derived from this software
 13045  //    without specific prior written permission.
 13046  //
 13047  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13048  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13049  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13050  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13051  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13052  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13053  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13054  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13055  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13056  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13057  // SUCH DAMAGE.
 13058  //
 13059  //	@(#)string.h	8.1 (Berkeley) 6/2/93
 13060  
 13061  // Security checking functions.
 13062  // Copyright (c) 2017 Apple Inc. All rights reserved.
 13063  //
 13064  // @APPLE_LICENSE_HEADER_START@
 13065  //
 13066  // This file contains Original Code and/or Modifications of Original Code
 13067  // as defined in and that are subject to the Apple Public Source License
 13068  // Version 2.0 (the 'License'). You may not use this file except in
 13069  // compliance with the License. Please obtain a copy of the License at
 13070  // http://www.opensource.apple.com/apsl/ and read it before using this
 13071  // file.
 13072  //
 13073  // The Original Code and all software distributed under the License are
 13074  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13075  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13076  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13077  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13078  // Please see the License for the specific language governing rights and
 13079  // limitations under the License.
 13080  //
 13081  // @APPLE_LICENSE_HEADER_END@
 13082  
 13083  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 13084  //
 13085  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13086  //
 13087  // This file contains Original Code and/or Modifications of Original Code
 13088  // as defined in and that are subject to the Apple Public Source License
 13089  // Version 2.0 (the 'License'). You may not use this file except in
 13090  // compliance with the License. The rights granted to you under the License
 13091  // may not be used to create, or enable the creation or redistribution of,
 13092  // unlawful or unlicensed copies of an Apple operating system, or to
 13093  // circumvent, violate, or enable the circumvention or violation of, any
 13094  // terms of an Apple operating system software license agreement.
 13095  //
 13096  // Please obtain a copy of the License at
 13097  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13098  //
 13099  // The Original Code and all software distributed under the License are
 13100  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13101  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13102  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13103  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13104  // Please see the License for the specific language governing rights and
 13105  // limitations under the License.
 13106  //
 13107  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13108  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 13109  // Copyright (c) 1991, 1993
 13110  //	The Regents of the University of California.  All rights reserved.
 13111  //
 13112  // This code is derived from software contributed to Berkeley by
 13113  // Berkeley Software Design, Inc.
 13114  //
 13115  // Redistribution and use in source and binary forms, with or without
 13116  // modification, are permitted provided that the following conditions
 13117  // are met:
 13118  // 1. Redistributions of source code must retain the above copyright
 13119  //    notice, this list of conditions and the following disclaimer.
 13120  // 2. Redistributions in binary form must reproduce the above copyright
 13121  //    notice, this list of conditions and the following disclaimer in the
 13122  //    documentation and/or other materials provided with the distribution.
 13123  // 3. All advertising materials mentioning features or use of this software
 13124  //    must display the following acknowledgement:
 13125  //	This product includes software developed by the University of
 13126  //	California, Berkeley and its contributors.
 13127  // 4. Neither the name of the University nor the names of its contributors
 13128  //    may be used to endorse or promote products derived from this software
 13129  //    without specific prior written permission.
 13130  //
 13131  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13132  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13133  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13134  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13135  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13136  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13137  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13138  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13139  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13140  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13141  // SUCH DAMAGE.
 13142  //
 13143  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 13144  
 13145  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
 13146  //
 13147  // @APPLE_LICENSE_HEADER_START@
 13148  //
 13149  // This file contains Original Code and/or Modifications of Original Code
 13150  // as defined in and that are subject to the Apple Public Source License
 13151  // Version 2.0 (the 'License'). You may not use this file except in
 13152  // compliance with the License. Please obtain a copy of the License at
 13153  // http://www.opensource.apple.com/apsl/ and read it before using this
 13154  // file.
 13155  //
 13156  // The Original Code and all software distributed under the License are
 13157  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13158  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13159  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13160  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13161  // Please see the License for the specific language governing rights and
 13162  // limitations under the License.
 13163  //
 13164  // @APPLE_LICENSE_HEADER_END@
 13165  
 13166  // Copyright (c) 2007, 2008 Apple Inc. All rights reserved.
 13167  //
 13168  // @APPLE_LICENSE_HEADER_START@
 13169  //
 13170  // This file contains Original Code and/or Modifications of Original Code
 13171  // as defined in and that are subject to the Apple Public Source License
 13172  // Version 2.0 (the 'License'). You may not use this file except in
 13173  // compliance with the License. Please obtain a copy of the License at
 13174  // http://www.opensource.apple.com/apsl/ and read it before using this
 13175  // file.
 13176  //
 13177  // The Original Code and all software distributed under the License are
 13178  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13179  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13180  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13181  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13182  // Please see the License for the specific language governing rights and
 13183  // limitations under the License.
 13184  //
 13185  // @APPLE_LICENSE_HEADER_END@
 13186  
 13187  // bcopy and bzero
 13188  
 13189  // Removed in Issue 7
 13190  
 13191  // void	bcopy(const void *src, void *dst, size_t len)
 13192  
 13193  // void	bzero(void *s, size_t n)
 13194  
 13195  // Security checking functions.
 13196  // Copyright (c) 2007,2017 Apple Inc. All rights reserved.
 13197  //
 13198  // @APPLE_LICENSE_HEADER_START@
 13199  //
 13200  // This file contains Original Code and/or Modifications of Original Code
 13201  // as defined in and that are subject to the Apple Public Source License
 13202  // Version 2.0 (the 'License'). You may not use this file except in
 13203  // compliance with the License. Please obtain a copy of the License at
 13204  // http://www.opensource.apple.com/apsl/ and read it before using this
 13205  // file.
 13206  //
 13207  // The Original Code and all software distributed under the License are
 13208  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13209  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13210  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13211  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13212  // Please see the License for the specific language governing rights and
 13213  // limitations under the License.
 13214  //
 13215  // @APPLE_LICENSE_HEADER_END@
 13216  
 13217  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 13218  //
 13219  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13220  //
 13221  // This file contains Original Code and/or Modifications of Original Code
 13222  // as defined in and that are subject to the Apple Public Source License
 13223  // Version 2.0 (the 'License'). You may not use this file except in
 13224  // compliance with the License. The rights granted to you under the License
 13225  // may not be used to create, or enable the creation or redistribution of,
 13226  // unlawful or unlicensed copies of an Apple operating system, or to
 13227  // circumvent, violate, or enable the circumvention or violation of, any
 13228  // terms of an Apple operating system software license agreement.
 13229  //
 13230  // Please obtain a copy of the License at
 13231  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13232  //
 13233  // The Original Code and all software distributed under the License are
 13234  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13235  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13236  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13237  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13238  // Please see the License for the specific language governing rights and
 13239  // limitations under the License.
 13240  //
 13241  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13242  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 13243  // Copyright (c) 1991, 1993
 13244  //	The Regents of the University of California.  All rights reserved.
 13245  //
 13246  // This code is derived from software contributed to Berkeley by
 13247  // Berkeley Software Design, Inc.
 13248  //
 13249  // Redistribution and use in source and binary forms, with or without
 13250  // modification, are permitted provided that the following conditions
 13251  // are met:
 13252  // 1. Redistributions of source code must retain the above copyright
 13253  //    notice, this list of conditions and the following disclaimer.
 13254  // 2. Redistributions in binary form must reproduce the above copyright
 13255  //    notice, this list of conditions and the following disclaimer in the
 13256  //    documentation and/or other materials provided with the distribution.
 13257  // 3. All advertising materials mentioning features or use of this software
 13258  //    must display the following acknowledgement:
 13259  //	This product includes software developed by the University of
 13260  //	California, Berkeley and its contributors.
 13261  // 4. Neither the name of the University nor the names of its contributors
 13262  //    may be used to endorse or promote products derived from this software
 13263  //    without specific prior written permission.
 13264  //
 13265  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13266  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13267  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13268  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13269  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13270  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13271  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13272  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13273  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13274  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13275  // SUCH DAMAGE.
 13276  //
 13277  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 13278  
 13279  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
 13280  //
 13281  // @APPLE_LICENSE_HEADER_START@
 13282  //
 13283  // This file contains Original Code and/or Modifications of Original Code
 13284  // as defined in and that are subject to the Apple Public Source License
 13285  // Version 2.0 (the 'License'). You may not use this file except in
 13286  // compliance with the License. Please obtain a copy of the License at
 13287  // http://www.opensource.apple.com/apsl/ and read it before using this
 13288  // file.
 13289  //
 13290  // The Original Code and all software distributed under the License are
 13291  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13292  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13293  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13294  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13295  // Please see the License for the specific language governing rights and
 13296  // limitations under the License.
 13297  //
 13298  // @APPLE_LICENSE_HEADER_END@
 13299  
 13300  // Copyright (c) 2007, 2008 Apple Inc. All rights reserved.
 13301  //
 13302  // @APPLE_LICENSE_HEADER_START@
 13303  //
 13304  // This file contains Original Code and/or Modifications of Original Code
 13305  // as defined in and that are subject to the Apple Public Source License
 13306  // Version 2.0 (the 'License'). You may not use this file except in
 13307  // compliance with the License. Please obtain a copy of the License at
 13308  // http://www.opensource.apple.com/apsl/ and read it before using this
 13309  // file.
 13310  //
 13311  // The Original Code and all software distributed under the License are
 13312  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13313  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13314  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13315  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13316  // Please see the License for the specific language governing rights and
 13317  // limitations under the License.
 13318  //
 13319  // @APPLE_LICENSE_HEADER_END@
 13320  
 13321  // <rdar://problem/12622659>
 13322  
 13323  // memccpy, memcpy, mempcpy, memmove, memset, strcpy, strlcpy, stpcpy,
 13324  //    strncpy, stpncpy, strcat, strlcat, and strncat
 13325  
 13326  // void *memcpy(void *dst, const void *src, size_t n)
 13327  
 13328  // void *memmove(void *dst, const void *src, size_t len)
 13329  
 13330  // void *memset(void *b, int c, size_t len)
 13331  
 13332  // char *strcpy(char *dst, const char *src)
 13333  
 13334  // char *stpcpy(char *dst, const char *src)
 13335  
 13336  // char *stpncpy(char *dst, const char *src, size_t n)
 13337  
 13338  // char *strncpy(char *dst, const char *src, size_t n)
 13339  
 13340  // char *strcat(char *s1, const char *s2)
 13341  
 13342  // char *strncat(char *s1, const char *s2, size_t n)
 13343  
 13344  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
 13345  //
 13346  // @APPLE_LICENSE_HEADER_START@
 13347  //
 13348  // This file contains Original Code and/or Modifications of Original Code
 13349  // as defined in and that are subject to the Apple Public Source License
 13350  // Version 2.0 (the 'License'). You may not use this file except in
 13351  // compliance with the License. Please obtain a copy of the License at
 13352  // http://www.opensource.apple.com/apsl/ and read it before using this
 13353  // file.
 13354  //
 13355  // The Original Code and all software distributed under the License are
 13356  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13357  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13358  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13359  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13360  // Please see the License for the specific language governing rights and
 13361  // limitations under the License.
 13362  //
 13363  // @APPLE_LICENSE_HEADER_END@
 13364  // -
 13365  // Copyright (c) 1990, 1993
 13366  //	The Regents of the University of California.  All rights reserved.
 13367  //
 13368  // Redistribution and use in source and binary forms, with or without
 13369  // modification, are permitted provided that the following conditions
 13370  // are met:
 13371  // 1. Redistributions of source code must retain the above copyright
 13372  //    notice, this list of conditions and the following disclaimer.
 13373  // 2. Redistributions in binary form must reproduce the above copyright
 13374  //    notice, this list of conditions and the following disclaimer in the
 13375  //    documentation and/or other materials provided with the distribution.
 13376  // 3. All advertising materials mentioning features or use of this software
 13377  //    must display the following acknowledgement:
 13378  //	This product includes software developed by the University of
 13379  //	California, Berkeley and its contributors.
 13380  // 4. Neither the name of the University nor the names of its contributors
 13381  //    may be used to endorse or promote products derived from this software
 13382  //    without specific prior written permission.
 13383  //
 13384  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13385  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13386  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13387  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13388  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13389  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13390  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13391  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13392  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13393  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13394  // SUCH DAMAGE.
 13395  //
 13396  //	@(#)strings.h	8.1 (Berkeley) 6/2/93
 13397  
 13398  // the new Xfuncs.h
 13399  
 13400  // the ANSI C way
 13401  
 13402  //
 13403  //  O/S-dependent (mis)feature macro definitions
 13404  //
 13405  // Copyright 1991, 1998  The Open Group
 13406  //
 13407  // Permission to use, copy, modify, distribute, and sell this software and its
 13408  // documentation for any purpose is hereby granted without fee, provided that
 13409  // the above copyright notice appear in all copies and that both that
 13410  // copyright notice and this permission notice appear in supporting
 13411  // documentation.
 13412  //
 13413  // The above copyright notice and this permission notice shall be included in
 13414  // all copies or substantial portions of the Software.
 13415  //
 13416  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 13417  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 13418  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 13419  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 13420  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 13421  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 13422  //
 13423  // Except as contained in this notice, the name of The Open Group shall not be
 13424  // used in advertising or otherwise to promote the sale, use or other dealings
 13425  // in this Software without prior written authorization from The Open Group.
 13426  //
 13427  
 13428  // Utek leaves kernel macros around in include files (bleah)
 13429  
 13430  // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved.
 13431  //
 13432  // @APPLE_LICENSE_HEADER_START@
 13433  //
 13434  // This file contains Original Code and/or Modifications of Original Code
 13435  // as defined in and that are subject to the Apple Public Source License
 13436  // Version 2.0 (the 'License'). You may not use this file except in
 13437  // compliance with the License. Please obtain a copy of the License at
 13438  // http://www.opensource.apple.com/apsl/ and read it before using this
 13439  // file.
 13440  //
 13441  // The Original Code and all software distributed under the License are
 13442  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13443  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13444  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13445  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13446  // Please see the License for the specific language governing rights and
 13447  // limitations under the License.
 13448  //
 13449  // @APPLE_LICENSE_HEADER_END@
 13450  // -
 13451  // Copyright (c) 1990, 1993
 13452  //	The Regents of the University of California.  All rights reserved.
 13453  //
 13454  // Redistribution and use in source and binary forms, with or without
 13455  // modification, are permitted provided that the following conditions
 13456  // are met:
 13457  // 1. Redistributions of source code must retain the above copyright
 13458  //    notice, this list of conditions and the following disclaimer.
 13459  // 2. Redistributions in binary form must reproduce the above copyright
 13460  //    notice, this list of conditions and the following disclaimer in the
 13461  //    documentation and/or other materials provided with the distribution.
 13462  // 3. All advertising materials mentioning features or use of this software
 13463  //    must display the following acknowledgement:
 13464  //	This product includes software developed by the University of
 13465  //	California, Berkeley and its contributors.
 13466  // 4. Neither the name of the University nor the names of its contributors
 13467  //    may be used to endorse or promote products derived from this software
 13468  //    without specific prior written permission.
 13469  //
 13470  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13471  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13472  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13473  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13474  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13475  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13476  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13477  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13478  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13479  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13480  // SUCH DAMAGE.
 13481  //
 13482  //	@(#)stdlib.h	8.5 (Berkeley) 5/19/95
 13483  
 13484  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
 13485  //
 13486  // @APPLE_LICENSE_HEADER_START@
 13487  //
 13488  // This file contains Original Code and/or Modifications of Original Code
 13489  // as defined in and that are subject to the Apple Public Source License
 13490  // Version 2.0 (the 'License'). You may not use this file except in
 13491  // compliance with the License. Please obtain a copy of the License at
 13492  // http://www.opensource.apple.com/apsl/ and read it before using this
 13493  // file.
 13494  //
 13495  // The Original Code and all software distributed under the License are
 13496  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13497  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13498  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13499  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13500  // Please see the License for the specific language governing rights and
 13501  // limitations under the License.
 13502  //
 13503  // @APPLE_LICENSE_HEADER_END@
 13504  
 13505  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 13506  //
 13507  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13508  //
 13509  // This file contains Original Code and/or Modifications of Original Code
 13510  // as defined in and that are subject to the Apple Public Source License
 13511  // Version 2.0 (the 'License'). You may not use this file except in
 13512  // compliance with the License. The rights granted to you under the License
 13513  // may not be used to create, or enable the creation or redistribution of,
 13514  // unlawful or unlicensed copies of an Apple operating system, or to
 13515  // circumvent, violate, or enable the circumvention or violation of, any
 13516  // terms of an Apple operating system software license agreement.
 13517  //
 13518  // Please obtain a copy of the License at
 13519  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13520  //
 13521  // The Original Code and all software distributed under the License are
 13522  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13523  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13524  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13525  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13526  // Please see the License for the specific language governing rights and
 13527  // limitations under the License.
 13528  //
 13529  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13530  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 13531  // Copyright (c) 1991, 1993
 13532  //	The Regents of the University of California.  All rights reserved.
 13533  //
 13534  // This code is derived from software contributed to Berkeley by
 13535  // Berkeley Software Design, Inc.
 13536  //
 13537  // Redistribution and use in source and binary forms, with or without
 13538  // modification, are permitted provided that the following conditions
 13539  // are met:
 13540  // 1. Redistributions of source code must retain the above copyright
 13541  //    notice, this list of conditions and the following disclaimer.
 13542  // 2. Redistributions in binary form must reproduce the above copyright
 13543  //    notice, this list of conditions and the following disclaimer in the
 13544  //    documentation and/or other materials provided with the distribution.
 13545  // 3. All advertising materials mentioning features or use of this software
 13546  //    must display the following acknowledgement:
 13547  //	This product includes software developed by the University of
 13548  //	California, Berkeley and its contributors.
 13549  // 4. Neither the name of the University nor the names of its contributors
 13550  //    may be used to endorse or promote products derived from this software
 13551  //    without specific prior written permission.
 13552  //
 13553  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13554  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13555  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13556  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13557  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13558  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13559  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13560  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13561  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13562  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13563  // SUCH DAMAGE.
 13564  //
 13565  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 13566  
 13567  // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
 13568  //
 13569  // @APPLE_LICENSE_HEADER_START@
 13570  //
 13571  // This file contains Original Code and/or Modifications of Original Code
 13572  // as defined in and that are subject to the Apple Public Source License
 13573  // Version 2.0 (the 'License'). You may not use this file except in
 13574  // compliance with the License. Please obtain a copy of the License at
 13575  // http://www.opensource.apple.com/apsl/ and read it before using this
 13576  // file.
 13577  //
 13578  // The Original Code and all software distributed under the License are
 13579  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13580  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13581  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13582  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13583  // Please see the License for the specific language governing rights and
 13584  // limitations under the License.
 13585  //
 13586  // @APPLE_LICENSE_HEADER_END@
 13587  
 13588  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
 13589  //
 13590  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13591  //
 13592  // This file contains Original Code and/or Modifications of Original Code
 13593  // as defined in and that are subject to the Apple Public Source License
 13594  // Version 2.0 (the 'License'). You may not use this file except in
 13595  // compliance with the License. The rights granted to you under the License
 13596  // may not be used to create, or enable the creation or redistribution of,
 13597  // unlawful or unlicensed copies of an Apple operating system, or to
 13598  // circumvent, violate, or enable the circumvention or violation of, any
 13599  // terms of an Apple operating system software license agreement.
 13600  //
 13601  // Please obtain a copy of the License at
 13602  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13603  //
 13604  // The Original Code and all software distributed under the License are
 13605  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13606  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13607  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13608  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13609  // Please see the License for the specific language governing rights and
 13610  // limitations under the License.
 13611  //
 13612  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13613  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
 13614  // Copyright (c) 1982, 1986, 1989, 1993, 1994
 13615  //	The Regents of the University of California.  All rights reserved.
 13616  //
 13617  // Redistribution and use in source and binary forms, with or without
 13618  // modification, are permitted provided that the following conditions
 13619  // are met:
 13620  // 1. Redistributions of source code must retain the above copyright
 13621  //    notice, this list of conditions and the following disclaimer.
 13622  // 2. Redistributions in binary form must reproduce the above copyright
 13623  //    notice, this list of conditions and the following disclaimer in the
 13624  //    documentation and/or other materials provided with the distribution.
 13625  // 3. All advertising materials mentioning features or use of this software
 13626  //    must display the following acknowledgement:
 13627  //	This product includes software developed by the University of
 13628  //	California, Berkeley and its contributors.
 13629  // 4. Neither the name of the University nor the names of its contributors
 13630  //    may be used to endorse or promote products derived from this software
 13631  //    without specific prior written permission.
 13632  //
 13633  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13634  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13635  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13636  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13637  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13638  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13639  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13640  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13641  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13642  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13643  // SUCH DAMAGE.
 13644  //
 13645  //	@(#)wait.h	8.2 (Berkeley) 7/10/94
 13646  
 13647  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 13648  //
 13649  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13650  //
 13651  // This file contains Original Code and/or Modifications of Original Code
 13652  // as defined in and that are subject to the Apple Public Source License
 13653  // Version 2.0 (the 'License'). You may not use this file except in
 13654  // compliance with the License. The rights granted to you under the License
 13655  // may not be used to create, or enable the creation or redistribution of,
 13656  // unlawful or unlicensed copies of an Apple operating system, or to
 13657  // circumvent, violate, or enable the circumvention or violation of, any
 13658  // terms of an Apple operating system software license agreement.
 13659  //
 13660  // Please obtain a copy of the License at
 13661  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13662  //
 13663  // The Original Code and all software distributed under the License are
 13664  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13665  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13666  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13667  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13668  // Please see the License for the specific language governing rights and
 13669  // limitations under the License.
 13670  //
 13671  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13672  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 13673  // Copyright (c) 1991, 1993
 13674  //	The Regents of the University of California.  All rights reserved.
 13675  //
 13676  // This code is derived from software contributed to Berkeley by
 13677  // Berkeley Software Design, Inc.
 13678  //
 13679  // Redistribution and use in source and binary forms, with or without
 13680  // modification, are permitted provided that the following conditions
 13681  // are met:
 13682  // 1. Redistributions of source code must retain the above copyright
 13683  //    notice, this list of conditions and the following disclaimer.
 13684  // 2. Redistributions in binary form must reproduce the above copyright
 13685  //    notice, this list of conditions and the following disclaimer in the
 13686  //    documentation and/or other materials provided with the distribution.
 13687  // 3. All advertising materials mentioning features or use of this software
 13688  //    must display the following acknowledgement:
 13689  //	This product includes software developed by the University of
 13690  //	California, Berkeley and its contributors.
 13691  // 4. Neither the name of the University nor the names of its contributors
 13692  //    may be used to endorse or promote products derived from this software
 13693  //    without specific prior written permission.
 13694  //
 13695  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13696  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13697  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13698  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13699  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13700  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13701  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13702  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13703  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13704  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13705  // SUCH DAMAGE.
 13706  //
 13707  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 13708  
 13709  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 13710  //
 13711  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13712  //
 13713  // This file contains Original Code and/or Modifications of Original Code
 13714  // as defined in and that are subject to the Apple Public Source License
 13715  // Version 2.0 (the 'License'). You may not use this file except in
 13716  // compliance with the License. The rights granted to you under the License
 13717  // may not be used to create, or enable the creation or redistribution of,
 13718  // unlawful or unlicensed copies of an Apple operating system, or to
 13719  // circumvent, violate, or enable the circumvention or violation of, any
 13720  // terms of an Apple operating system software license agreement.
 13721  //
 13722  // Please obtain a copy of the License at
 13723  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13724  //
 13725  // The Original Code and all software distributed under the License are
 13726  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13727  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13728  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13729  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13730  // Please see the License for the specific language governing rights and
 13731  // limitations under the License.
 13732  //
 13733  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13734  
 13735  // This file holds definitions relevent to the wait4 system call
 13736  // and the alternate interfaces that use it (wait, wait3, waitpid).
 13737  
 13738  // [XSI] The type idtype_t shall be defined as an enumeration type whose
 13739  // possible values shall include at least P_ALL, P_PID, and P_PGID.
 13740  type Idtype_t = uint32 /* wait.h:83:3 */
 13741  
 13742  // [XSI] The id_t and pid_t types shall be defined as described
 13743  // in <sys/types.h>
 13744  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 13745  //
 13746  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13747  //
 13748  // This file contains Original Code and/or Modifications of Original Code
 13749  // as defined in and that are subject to the Apple Public Source License
 13750  // Version 2.0 (the 'License'). You may not use this file except in
 13751  // compliance with the License. The rights granted to you under the License
 13752  // may not be used to create, or enable the creation or redistribution of,
 13753  // unlawful or unlicensed copies of an Apple operating system, or to
 13754  // circumvent, violate, or enable the circumvention or violation of, any
 13755  // terms of an Apple operating system software license agreement.
 13756  //
 13757  // Please obtain a copy of the License at
 13758  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13759  //
 13760  // The Original Code and all software distributed under the License are
 13761  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13762  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13763  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13764  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13765  // Please see the License for the specific language governing rights and
 13766  // limitations under the License.
 13767  //
 13768  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13769  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 13770  //
 13771  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13772  //
 13773  // This file contains Original Code and/or Modifications of Original Code
 13774  // as defined in and that are subject to the Apple Public Source License
 13775  // Version 2.0 (the 'License'). You may not use this file except in
 13776  // compliance with the License. The rights granted to you under the License
 13777  // may not be used to create, or enable the creation or redistribution of,
 13778  // unlawful or unlicensed copies of an Apple operating system, or to
 13779  // circumvent, violate, or enable the circumvention or violation of, any
 13780  // terms of an Apple operating system software license agreement.
 13781  //
 13782  // Please obtain a copy of the License at
 13783  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13784  //
 13785  // The Original Code and all software distributed under the License are
 13786  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13787  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13788  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13789  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13790  // Please see the License for the specific language governing rights and
 13791  // limitations under the License.
 13792  //
 13793  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13794  
 13795  // [XSI] The siginfo_t type shall be defined as described in <signal.h>
 13796  // [XSI] The rusage structure shall be defined as described in <sys/resource.h>
 13797  // [XSI] Inclusion of the <sys/wait.h> header may also make visible all
 13798  // symbols from <signal.h> and <sys/resource.h>
 13799  //
 13800  // NOTE:	This requirement is currently being satisfied by the direct
 13801  //		inclusion of <sys/signal.h> and <sys/resource.h>, below.
 13802  //
 13803  //		Software should not depend on the exposure of anything other
 13804  //		than the types siginfo_t and struct rusage as a result of
 13805  //		this inclusion.  If you depend on any types or manifest
 13806  //		values othe than siginfo_t and struct rusage from either of
 13807  //		those files, you should explicitly include them yourself, as
 13808  //		well, or in future releases your stware may not compile
 13809  //		without modification.
 13810  // Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
 13811  //
 13812  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13813  //
 13814  // This file contains Original Code and/or Modifications of Original Code
 13815  // as defined in and that are subject to the Apple Public Source License
 13816  // Version 2.0 (the 'License'). You may not use this file except in
 13817  // compliance with the License. The rights granted to you under the License
 13818  // may not be used to create, or enable the creation or redistribution of,
 13819  // unlawful or unlicensed copies of an Apple operating system, or to
 13820  // circumvent, violate, or enable the circumvention or violation of, any
 13821  // terms of an Apple operating system software license agreement.
 13822  //
 13823  // Please obtain a copy of the License at
 13824  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13825  //
 13826  // The Original Code and all software distributed under the License are
 13827  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13828  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13829  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13830  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13831  // Please see the License for the specific language governing rights and
 13832  // limitations under the License.
 13833  //
 13834  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13835  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
 13836  // Copyright (c) 1982, 1986, 1989, 1991, 1993
 13837  //	The Regents of the University of California.  All rights reserved.
 13838  // (c) UNIX System Laboratories, Inc.
 13839  // All or some portions of this file are derived from material licensed
 13840  // to the University of California by American Telephone and Telegraph
 13841  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
 13842  // the permission of UNIX System Laboratories, Inc.
 13843  //
 13844  // Redistribution and use in source and binary forms, with or without
 13845  // modification, are permitted provided that the following conditions
 13846  // are met:
 13847  // 1. Redistributions of source code must retain the above copyright
 13848  //    notice, this list of conditions and the following disclaimer.
 13849  // 2. Redistributions in binary form must reproduce the above copyright
 13850  //    notice, this list of conditions and the following disclaimer in the
 13851  //    documentation and/or other materials provided with the distribution.
 13852  // 3. All advertising materials mentioning features or use of this software
 13853  //    must display the following acknowledgement:
 13854  //	This product includes software developed by the University of
 13855  //	California, Berkeley and its contributors.
 13856  // 4. Neither the name of the University nor the names of its contributors
 13857  //    may be used to endorse or promote products derived from this software
 13858  //    without specific prior written permission.
 13859  //
 13860  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13861  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13862  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13863  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13864  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13865  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13866  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13867  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13868  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13869  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13870  // SUCH DAMAGE.
 13871  //
 13872  //	@(#)signal.h	8.2 (Berkeley) 1/21/94
 13873  
 13874  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 13875  //
 13876  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13877  //
 13878  // This file contains Original Code and/or Modifications of Original Code
 13879  // as defined in and that are subject to the Apple Public Source License
 13880  // Version 2.0 (the 'License'). You may not use this file except in
 13881  // compliance with the License. The rights granted to you under the License
 13882  // may not be used to create, or enable the creation or redistribution of,
 13883  // unlawful or unlicensed copies of an Apple operating system, or to
 13884  // circumvent, violate, or enable the circumvention or violation of, any
 13885  // terms of an Apple operating system software license agreement.
 13886  //
 13887  // Please obtain a copy of the License at
 13888  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13889  //
 13890  // The Original Code and all software distributed under the License are
 13891  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13892  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13893  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13894  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13895  // Please see the License for the specific language governing rights and
 13896  // limitations under the License.
 13897  //
 13898  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13899  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 13900  // Copyright (c) 1991, 1993
 13901  //	The Regents of the University of California.  All rights reserved.
 13902  //
 13903  // This code is derived from software contributed to Berkeley by
 13904  // Berkeley Software Design, Inc.
 13905  //
 13906  // Redistribution and use in source and binary forms, with or without
 13907  // modification, are permitted provided that the following conditions
 13908  // are met:
 13909  // 1. Redistributions of source code must retain the above copyright
 13910  //    notice, this list of conditions and the following disclaimer.
 13911  // 2. Redistributions in binary form must reproduce the above copyright
 13912  //    notice, this list of conditions and the following disclaimer in the
 13913  //    documentation and/or other materials provided with the distribution.
 13914  // 3. All advertising materials mentioning features or use of this software
 13915  //    must display the following acknowledgement:
 13916  //	This product includes software developed by the University of
 13917  //	California, Berkeley and its contributors.
 13918  // 4. Neither the name of the University nor the names of its contributors
 13919  //    may be used to endorse or promote products derived from this software
 13920  //    without specific prior written permission.
 13921  //
 13922  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 13923  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 13924  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 13925  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 13926  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 13927  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 13928  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 13929  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 13930  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 13931  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 13932  // SUCH DAMAGE.
 13933  //
 13934  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 13935  
 13936  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
 13937  //
 13938  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13939  //
 13940  // This file contains Original Code and/or Modifications of Original Code
 13941  // as defined in and that are subject to the Apple Public Source License
 13942  // Version 2.0 (the 'License'). You may not use this file except in
 13943  // compliance with the License. The rights granted to you under the License
 13944  // may not be used to create, or enable the creation or redistribution of,
 13945  // unlawful or unlicensed copies of an Apple operating system, or to
 13946  // circumvent, violate, or enable the circumvention or violation of, any
 13947  // terms of an Apple operating system software license agreement.
 13948  //
 13949  // Please obtain a copy of the License at
 13950  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13951  //
 13952  // The Original Code and all software distributed under the License are
 13953  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13954  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13955  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13956  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13957  // Please see the License for the specific language governing rights and
 13958  // limitations under the License.
 13959  //
 13960  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 13961  
 13962  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
 13963  //
 13964  // @APPLE_LICENSE_HEADER_START@
 13965  //
 13966  // This file contains Original Code and/or Modifications of Original Code
 13967  // as defined in and that are subject to the Apple Public Source License
 13968  // Version 2.0 (the 'License'). You may not use this file except in
 13969  // compliance with the License. Please obtain a copy of the License at
 13970  // http://www.opensource.apple.com/apsl/ and read it before using this
 13971  // file.
 13972  //
 13973  // The Original Code and all software distributed under the License are
 13974  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 13975  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 13976  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 13977  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 13978  // Please see the License for the specific language governing rights and
 13979  // limitations under the License.
 13980  //
 13981  // @APPLE_LICENSE_HEADER_END@
 13982  
 13983  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 13984  //
 13985  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 13986  //
 13987  // This file contains Original Code and/or Modifications of Original Code
 13988  // as defined in and that are subject to the Apple Public Source License
 13989  // Version 2.0 (the 'License'). You may not use this file except in
 13990  // compliance with the License. The rights granted to you under the License
 13991  // may not be used to create, or enable the creation or redistribution of,
 13992  // unlawful or unlicensed copies of an Apple operating system, or to
 13993  // circumvent, violate, or enable the circumvention or violation of, any
 13994  // terms of an Apple operating system software license agreement.
 13995  //
 13996  // Please obtain a copy of the License at
 13997  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 13998  //
 13999  // The Original Code and all software distributed under the License are
 14000  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14001  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14002  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14003  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14004  // Please see the License for the specific language governing rights and
 14005  // limitations under the License.
 14006  //
 14007  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14008  
 14009  // Copyright (c) 2000-2009 Apple, Inc. All rights reserved.
 14010  // Copyright (c) 1992 NeXT Computer, Inc.
 14011  //
 14012  
 14013  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 14014  //
 14015  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14016  //
 14017  // This file contains Original Code and/or Modifications of Original Code
 14018  // as defined in and that are subject to the Apple Public Source License
 14019  // Version 2.0 (the 'License'). You may not use this file except in
 14020  // compliance with the License. The rights granted to you under the License
 14021  // may not be used to create, or enable the creation or redistribution of,
 14022  // unlawful or unlicensed copies of an Apple operating system, or to
 14023  // circumvent, violate, or enable the circumvention or violation of, any
 14024  // terms of an Apple operating system software license agreement.
 14025  //
 14026  // Please obtain a copy of the License at
 14027  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14028  //
 14029  // The Original Code and all software distributed under the License are
 14030  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14031  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14032  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14033  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14034  // Please see the License for the specific language governing rights and
 14035  // limitations under the License.
 14036  //
 14037  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14038  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 14039  // Copyright (c) 1991, 1993
 14040  //	The Regents of the University of California.  All rights reserved.
 14041  //
 14042  // This code is derived from software contributed to Berkeley by
 14043  // Berkeley Software Design, Inc.
 14044  //
 14045  // Redistribution and use in source and binary forms, with or without
 14046  // modification, are permitted provided that the following conditions
 14047  // are met:
 14048  // 1. Redistributions of source code must retain the above copyright
 14049  //    notice, this list of conditions and the following disclaimer.
 14050  // 2. Redistributions in binary form must reproduce the above copyright
 14051  //    notice, this list of conditions and the following disclaimer in the
 14052  //    documentation and/or other materials provided with the distribution.
 14053  // 3. All advertising materials mentioning features or use of this software
 14054  //    must display the following acknowledgement:
 14055  //	This product includes software developed by the University of
 14056  //	California, Berkeley and its contributors.
 14057  // 4. Neither the name of the University nor the names of its contributors
 14058  //    may be used to endorse or promote products derived from this software
 14059  //    without specific prior written permission.
 14060  //
 14061  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 14062  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 14063  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 14064  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 14065  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 14066  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 14067  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 14068  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 14069  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 14070  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 14071  // SUCH DAMAGE.
 14072  //
 14073  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 14074  
 14075  type Sig_atomic_t = int32 /* signal.h:17:13 */
 14076  
 14077  // Language spec sez we must list exactly one parameter, even though we
 14078  // actually supply three.  Ugh!
 14079  // SIG_HOLD is chosen to avoid KERN_SIG_* values in <sys/signalvar.h>
 14080  
 14081  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 14082  //
 14083  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14084  //
 14085  // This file contains Original Code and/or Modifications of Original Code
 14086  // as defined in and that are subject to the Apple Public Source License
 14087  // Version 2.0 (the 'License'). You may not use this file except in
 14088  // compliance with the License. The rights granted to you under the License
 14089  // may not be used to create, or enable the creation or redistribution of,
 14090  // unlawful or unlicensed copies of an Apple operating system, or to
 14091  // circumvent, violate, or enable the circumvention or violation of, any
 14092  // terms of an Apple operating system software license agreement.
 14093  //
 14094  // Please obtain a copy of the License at
 14095  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14096  //
 14097  // The Original Code and all software distributed under the License are
 14098  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14099  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14100  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14101  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14102  // Please see the License for the specific language governing rights and
 14103  // limitations under the License.
 14104  //
 14105  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14106  
 14107  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 14108  //
 14109  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14110  //
 14111  // This file contains Original Code and/or Modifications of Original Code
 14112  // as defined in and that are subject to the Apple Public Source License
 14113  // Version 2.0 (the 'License'). You may not use this file except in
 14114  // compliance with the License. The rights granted to you under the License
 14115  // may not be used to create, or enable the creation or redistribution of,
 14116  // unlawful or unlicensed copies of an Apple operating system, or to
 14117  // circumvent, violate, or enable the circumvention or violation of, any
 14118  // terms of an Apple operating system software license agreement.
 14119  //
 14120  // Please obtain a copy of the License at
 14121  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14122  //
 14123  // The Original Code and all software distributed under the License are
 14124  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14125  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14126  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14127  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14128  // Please see the License for the specific language governing rights and
 14129  // limitations under the License.
 14130  //
 14131  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14132  
 14133  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 14134  //
 14135  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14136  //
 14137  // This file contains Original Code and/or Modifications of Original Code
 14138  // as defined in and that are subject to the Apple Public Source License
 14139  // Version 2.0 (the 'License'). You may not use this file except in
 14140  // compliance with the License. The rights granted to you under the License
 14141  // may not be used to create, or enable the creation or redistribution of,
 14142  // unlawful or unlicensed copies of an Apple operating system, or to
 14143  // circumvent, violate, or enable the circumvention or violation of, any
 14144  // terms of an Apple operating system software license agreement.
 14145  //
 14146  // Please obtain a copy of the License at
 14147  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14148  //
 14149  // The Original Code and all software distributed under the License are
 14150  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14151  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14152  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14153  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14154  // Please see the License for the specific language governing rights and
 14155  // limitations under the License.
 14156  //
 14157  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14158  
 14159  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 14160  //
 14161  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14162  //
 14163  // This file contains Original Code and/or Modifications of Original Code
 14164  // as defined in and that are subject to the Apple Public Source License
 14165  // Version 2.0 (the 'License'). You may not use this file except in
 14166  // compliance with the License. The rights granted to you under the License
 14167  // may not be used to create, or enable the creation or redistribution of,
 14168  // unlawful or unlicensed copies of an Apple operating system, or to
 14169  // circumvent, violate, or enable the circumvention or violation of, any
 14170  // terms of an Apple operating system software license agreement.
 14171  //
 14172  // Please obtain a copy of the License at
 14173  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14174  //
 14175  // The Original Code and all software distributed under the License are
 14176  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14177  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14178  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14179  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14180  // Please see the License for the specific language governing rights and
 14181  // limitations under the License.
 14182  //
 14183  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14184  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 14185  // Copyright (c) 1991, 1993
 14186  //	The Regents of the University of California.  All rights reserved.
 14187  //
 14188  // This code is derived from software contributed to Berkeley by
 14189  // Berkeley Software Design, Inc.
 14190  //
 14191  // Redistribution and use in source and binary forms, with or without
 14192  // modification, are permitted provided that the following conditions
 14193  // are met:
 14194  // 1. Redistributions of source code must retain the above copyright
 14195  //    notice, this list of conditions and the following disclaimer.
 14196  // 2. Redistributions in binary form must reproduce the above copyright
 14197  //    notice, this list of conditions and the following disclaimer in the
 14198  //    documentation and/or other materials provided with the distribution.
 14199  // 3. All advertising materials mentioning features or use of this software
 14200  //    must display the following acknowledgement:
 14201  //	This product includes software developed by the University of
 14202  //	California, Berkeley and its contributors.
 14203  // 4. Neither the name of the University nor the names of its contributors
 14204  //    may be used to endorse or promote products derived from this software
 14205  //    without specific prior written permission.
 14206  //
 14207  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 14208  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 14209  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 14210  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 14211  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 14212  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 14213  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 14214  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 14215  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 14216  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 14217  // SUCH DAMAGE.
 14218  //
 14219  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 14220  
 14221  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
 14222  //
 14223  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14224  //
 14225  // This file contains Original Code and/or Modifications of Original Code
 14226  // as defined in and that are subject to the Apple Public Source License
 14227  // Version 2.0 (the 'License'). You may not use this file except in
 14228  // compliance with the License. The rights granted to you under the License
 14229  // may not be used to create, or enable the creation or redistribution of,
 14230  // unlawful or unlicensed copies of an Apple operating system, or to
 14231  // circumvent, violate, or enable the circumvention or violation of, any
 14232  // terms of an Apple operating system software license agreement.
 14233  //
 14234  // Please obtain a copy of the License at
 14235  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14236  //
 14237  // The Original Code and all software distributed under the License are
 14238  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14239  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14240  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14241  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14242  // Please see the License for the specific language governing rights and
 14243  // limitations under the License.
 14244  //
 14245  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14246  
 14247  // Copyright (c) 2017 Apple Inc. All rights reserved.
 14248  //
 14249  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14250  //
 14251  // This file contains Original Code and/or Modifications of Original Code
 14252  // as defined in and that are subject to the Apple Public Source License
 14253  // Version 2.0 (the 'License'). You may not use this file except in
 14254  // compliance with the License. The rights granted to you under the License
 14255  // may not be used to create, or enable the creation or redistribution of,
 14256  // unlawful or unlicensed copies of an Apple operating system, or to
 14257  // circumvent, violate, or enable the circumvention or violation of, any
 14258  // terms of an Apple operating system software license agreement.
 14259  //
 14260  // Please obtain a copy of the License at
 14261  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14262  //
 14263  // The Original Code and all software distributed under the License are
 14264  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14265  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14266  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14267  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14268  // Please see the License for the specific language governing rights and
 14269  // limitations under the License.
 14270  //
 14271  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14272  
 14273  // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
 14274  //
 14275  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14276  //
 14277  // This file contains Original Code and/or Modifications of Original Code
 14278  // as defined in and that are subject to the Apple Public Source License
 14279  // Version 2.0 (the 'License'). You may not use this file except in
 14280  // compliance with the License. The rights granted to you under the License
 14281  // may not be used to create, or enable the creation or redistribution of,
 14282  // unlawful or unlicensed copies of an Apple operating system, or to
 14283  // circumvent, violate, or enable the circumvention or violation of, any
 14284  // terms of an Apple operating system software license agreement.
 14285  //
 14286  // Please obtain a copy of the License at
 14287  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14288  //
 14289  // The Original Code and all software distributed under the License are
 14290  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14291  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14292  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14293  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14294  // Please see the License for the specific language governing rights and
 14295  // limitations under the License.
 14296  //
 14297  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14298  // @OSF_COPYRIGHT@
 14299  
 14300  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 14301  //
 14302  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14303  //
 14304  // This file contains Original Code and/or Modifications of Original Code
 14305  // as defined in and that are subject to the Apple Public Source License
 14306  // Version 2.0 (the 'License'). You may not use this file except in
 14307  // compliance with the License. The rights granted to you under the License
 14308  // may not be used to create, or enable the creation or redistribution of,
 14309  // unlawful or unlicensed copies of an Apple operating system, or to
 14310  // circumvent, violate, or enable the circumvention or violation of, any
 14311  // terms of an Apple operating system software license agreement.
 14312  //
 14313  // Please obtain a copy of the License at
 14314  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14315  //
 14316  // The Original Code and all software distributed under the License are
 14317  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14318  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14319  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14320  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14321  // Please see the License for the specific language governing rights and
 14322  // limitations under the License.
 14323  //
 14324  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14325  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 14326  // Copyright (c) 1991, 1993
 14327  //	The Regents of the University of California.  All rights reserved.
 14328  //
 14329  // This code is derived from software contributed to Berkeley by
 14330  // Berkeley Software Design, Inc.
 14331  //
 14332  // Redistribution and use in source and binary forms, with or without
 14333  // modification, are permitted provided that the following conditions
 14334  // are met:
 14335  // 1. Redistributions of source code must retain the above copyright
 14336  //    notice, this list of conditions and the following disclaimer.
 14337  // 2. Redistributions in binary form must reproduce the above copyright
 14338  //    notice, this list of conditions and the following disclaimer in the
 14339  //    documentation and/or other materials provided with the distribution.
 14340  // 3. All advertising materials mentioning features or use of this software
 14341  //    must display the following acknowledgement:
 14342  //	This product includes software developed by the University of
 14343  //	California, Berkeley and its contributors.
 14344  // 4. Neither the name of the University nor the names of its contributors
 14345  //    may be used to endorse or promote products derived from this software
 14346  //    without specific prior written permission.
 14347  //
 14348  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 14349  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 14350  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 14351  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 14352  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 14353  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 14354  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 14355  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 14356  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 14357  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 14358  // SUCH DAMAGE.
 14359  //
 14360  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 14361  
 14362  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 14363  //
 14364  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14365  //
 14366  // This file contains Original Code and/or Modifications of Original Code
 14367  // as defined in and that are subject to the Apple Public Source License
 14368  // Version 2.0 (the 'License'). You may not use this file except in
 14369  // compliance with the License. The rights granted to you under the License
 14370  // may not be used to create, or enable the creation or redistribution of,
 14371  // unlawful or unlicensed copies of an Apple operating system, or to
 14372  // circumvent, violate, or enable the circumvention or violation of, any
 14373  // terms of an Apple operating system software license agreement.
 14374  //
 14375  // Please obtain a copy of the License at
 14376  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14377  //
 14378  // The Original Code and all software distributed under the License are
 14379  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14380  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14381  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14382  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14383  // Please see the License for the specific language governing rights and
 14384  // limitations under the License.
 14385  //
 14386  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14387  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 14388  
 14389  type X__darwin_arm_exception_state = struct {
 14390  	F__exception X__uint32_t
 14391  	F__fsr       X__uint32_t
 14392  	F__far       X__uint32_t
 14393  } /* _structs.h:41:1 */
 14394  
 14395  type X__darwin_arm_exception_state64 = struct {
 14396  	F__far       X__uint64_t
 14397  	F__esr       X__uint32_t
 14398  	F__exception X__uint32_t
 14399  } /* _structs.h:59:1 */
 14400  
 14401  type X__darwin_arm_thread_state = struct {
 14402  	F__r    [13]X__uint32_t
 14403  	F__sp   X__uint32_t
 14404  	F__lr   X__uint32_t
 14405  	F__pc   X__uint32_t
 14406  	F__cpsr X__uint32_t
 14407  } /* _structs.h:77:1 */
 14408  
 14409  // By default, the pointer fields in the arm_thread_state64_t structure are
 14410  // opaque on the arm64e architecture and require the use of accessor macros.
 14411  // This mode can also be enabled on the arm64 architecture by building with
 14412  // -D__DARWIN_OPAQUE_ARM_THREAD_STATE64=1.
 14413  
 14414  type X__darwin_arm_thread_state64 = struct {
 14415  	F__x    [29]X__uint64_t
 14416  	F__fp   X__uint64_t
 14417  	F__lr   X__uint64_t
 14418  	F__sp   X__uint64_t
 14419  	F__pc   X__uint64_t
 14420  	F__cpsr X__uint32_t
 14421  	F__pad  X__uint32_t
 14422  } /* _structs.h:136:1 */
 14423  
 14424  // Accessor macros for arm_thread_state64_t pointer fields
 14425  
 14426  // Return pc field of arm_thread_state64_t as a data pointer value
 14427  // Return pc field of arm_thread_state64_t as a function pointer
 14428  // Set pc field of arm_thread_state64_t to a function pointer
 14429  // Return lr field of arm_thread_state64_t as a data pointer value
 14430  // Return lr field of arm_thread_state64_t as a function pointer
 14431  // Set lr field of arm_thread_state64_t to a function pointer
 14432  // Return sp field of arm_thread_state64_t as a data pointer value
 14433  // Set sp field of arm_thread_state64_t to a data pointer value
 14434  // Return fp field of arm_thread_state64_t as a data pointer value
 14435  // Set fp field of arm_thread_state64_t to a data pointer value
 14436  // Strip ptr auth bits from pc, lr, sp and fp field of arm_thread_state64_t
 14437  
 14438  type X__darwin_arm_vfp_state = struct {
 14439  	F__r     [64]X__uint32_t
 14440  	F__fpscr X__uint32_t
 14441  } /* _structs.h:424:1 */
 14442  
 14443  type X__darwin_arm_neon_state64 = struct {
 14444  	F__v    [32]X__uint128_t
 14445  	F__fpsr X__uint32_t
 14446  	F__fpcr X__uint32_t
 14447  } /* _structs.h:443:1 */
 14448  
 14449  type X__darwin_arm_neon_state = struct {
 14450  	F__v    [16]X__uint128_t
 14451  	F__fpsr X__uint32_t
 14452  	F__fpcr X__uint32_t
 14453  } /* _structs.h:450:1 */
 14454  
 14455  type X__arm_pagein_state = struct{ F__pagein_error int32 } /* _structs.h:514:1 */
 14456  
 14457  // Debug State
 14458  
 14459  // ARM's arm_debug_state is ARM64's arm_legacy_debug_state
 14460  
 14461  type X__arm_legacy_debug_state = struct {
 14462  	F__bvr [16]X__uint32_t
 14463  	F__bcr [16]X__uint32_t
 14464  	F__wvr [16]X__uint32_t
 14465  	F__wcr [16]X__uint32_t
 14466  } /* _structs.h:551:1 */
 14467  
 14468  type X__darwin_arm_debug_state32 = struct {
 14469  	F__bvr       [16]X__uint32_t
 14470  	F__bcr       [16]X__uint32_t
 14471  	F__wvr       [16]X__uint32_t
 14472  	F__wcr       [16]X__uint32_t
 14473  	F__mdscr_el1 X__uint64_t
 14474  } /* _structs.h:574:1 */
 14475  
 14476  type X__darwin_arm_debug_state64 = struct {
 14477  	F__bvr       [16]X__uint64_t
 14478  	F__bcr       [16]X__uint64_t
 14479  	F__wvr       [16]X__uint64_t
 14480  	F__wcr       [16]X__uint64_t
 14481  	F__mdscr_el1 X__uint64_t
 14482  } /* _structs.h:584:1 */
 14483  
 14484  type X__darwin_arm_cpmu_state64 = struct{ F__ctrs [16]X__uint64_t } /* _structs.h:616:1 */
 14485  
 14486  type X__darwin_mcontext32 = struct {
 14487  	F__es struct {
 14488  		F__exception X__uint32_t
 14489  		F__fsr       X__uint32_t
 14490  		F__far       X__uint32_t
 14491  	}
 14492  	F__ss struct {
 14493  		F__r    [13]X__uint32_t
 14494  		F__sp   X__uint32_t
 14495  		F__lr   X__uint32_t
 14496  		F__pc   X__uint32_t
 14497  		F__cpsr X__uint32_t
 14498  	}
 14499  	F__fs struct {
 14500  		F__r     [64]X__uint32_t
 14501  		F__fpscr X__uint32_t
 14502  	}
 14503  } /* _mcontext.h:41:1 */
 14504  
 14505  type X__darwin_mcontext64 = struct {
 14506  	F__es struct {
 14507  		F__far       X__uint64_t
 14508  		F__esr       X__uint32_t
 14509  		F__exception X__uint32_t
 14510  	}
 14511  	F__ss struct {
 14512  		F__x    [29]X__uint64_t
 14513  		F__fp   X__uint64_t
 14514  		F__lr   X__uint64_t
 14515  		F__sp   X__uint64_t
 14516  		F__pc   X__uint64_t
 14517  		F__cpsr X__uint32_t
 14518  		F__pad  X__uint32_t
 14519  	}
 14520  	F__ns struct {
 14521  		F__v    [32]X__uint128_t
 14522  		F__fpsr X__uint32_t
 14523  		F__fpcr X__uint32_t
 14524  	}
 14525  } /* _mcontext.h:64:1 */
 14526  
 14527  type Mcontext_t = uintptr /* _mcontext.h:85:33 */
 14528  
 14529  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 14530  //
 14531  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14532  //
 14533  // This file contains Original Code and/or Modifications of Original Code
 14534  // as defined in and that are subject to the Apple Public Source License
 14535  // Version 2.0 (the 'License'). You may not use this file except in
 14536  // compliance with the License. The rights granted to you under the License
 14537  // may not be used to create, or enable the creation or redistribution of,
 14538  // unlawful or unlicensed copies of an Apple operating system, or to
 14539  // circumvent, violate, or enable the circumvention or violation of, any
 14540  // terms of an Apple operating system software license agreement.
 14541  //
 14542  // Please obtain a copy of the License at
 14543  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14544  //
 14545  // The Original Code and all software distributed under the License are
 14546  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14547  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14548  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14549  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14550  // Please see the License for the specific language governing rights and
 14551  // limitations under the License.
 14552  //
 14553  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14554  
 14555  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 14556  //
 14557  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14558  //
 14559  // This file contains Original Code and/or Modifications of Original Code
 14560  // as defined in and that are subject to the Apple Public Source License
 14561  // Version 2.0 (the 'License'). You may not use this file except in
 14562  // compliance with the License. The rights granted to you under the License
 14563  // may not be used to create, or enable the creation or redistribution of,
 14564  // unlawful or unlicensed copies of an Apple operating system, or to
 14565  // circumvent, violate, or enable the circumvention or violation of, any
 14566  // terms of an Apple operating system software license agreement.
 14567  //
 14568  // Please obtain a copy of the License at
 14569  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14570  //
 14571  // The Original Code and all software distributed under the License are
 14572  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14573  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14574  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14575  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14576  // Please see the License for the specific language governing rights and
 14577  // limitations under the License.
 14578  //
 14579  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14580  
 14581  // Structure used in sigaltstack call.
 14582  
 14583  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 14584  //
 14585  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14586  //
 14587  // This file contains Original Code and/or Modifications of Original Code
 14588  // as defined in and that are subject to the Apple Public Source License
 14589  // Version 2.0 (the 'License'). You may not use this file except in
 14590  // compliance with the License. The rights granted to you under the License
 14591  // may not be used to create, or enable the creation or redistribution of,
 14592  // unlawful or unlicensed copies of an Apple operating system, or to
 14593  // circumvent, violate, or enable the circumvention or violation of, any
 14594  // terms of an Apple operating system software license agreement.
 14595  //
 14596  // Please obtain a copy of the License at
 14597  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14598  //
 14599  // The Original Code and all software distributed under the License are
 14600  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14601  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14602  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14603  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14604  // Please see the License for the specific language governing rights and
 14605  // limitations under the License.
 14606  //
 14607  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14608  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 14609  // Copyright (c) 1991, 1993
 14610  //	The Regents of the University of California.  All rights reserved.
 14611  //
 14612  // This code is derived from software contributed to Berkeley by
 14613  // Berkeley Software Design, Inc.
 14614  //
 14615  // Redistribution and use in source and binary forms, with or without
 14616  // modification, are permitted provided that the following conditions
 14617  // are met:
 14618  // 1. Redistributions of source code must retain the above copyright
 14619  //    notice, this list of conditions and the following disclaimer.
 14620  // 2. Redistributions in binary form must reproduce the above copyright
 14621  //    notice, this list of conditions and the following disclaimer in the
 14622  //    documentation and/or other materials provided with the distribution.
 14623  // 3. All advertising materials mentioning features or use of this software
 14624  //    must display the following acknowledgement:
 14625  //	This product includes software developed by the University of
 14626  //	California, Berkeley and its contributors.
 14627  // 4. Neither the name of the University nor the names of its contributors
 14628  //    may be used to endorse or promote products derived from this software
 14629  //    without specific prior written permission.
 14630  //
 14631  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 14632  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 14633  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 14634  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 14635  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 14636  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 14637  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 14638  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 14639  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 14640  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 14641  // SUCH DAMAGE.
 14642  //
 14643  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 14644  
 14645  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 14646  //
 14647  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14648  //
 14649  // This file contains Original Code and/or Modifications of Original Code
 14650  // as defined in and that are subject to the Apple Public Source License
 14651  // Version 2.0 (the 'License'). You may not use this file except in
 14652  // compliance with the License. The rights granted to you under the License
 14653  // may not be used to create, or enable the creation or redistribution of,
 14654  // unlawful or unlicensed copies of an Apple operating system, or to
 14655  // circumvent, violate, or enable the circumvention or violation of, any
 14656  // terms of an Apple operating system software license agreement.
 14657  //
 14658  // Please obtain a copy of the License at
 14659  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14660  //
 14661  // The Original Code and all software distributed under the License are
 14662  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14663  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14664  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14665  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14666  // Please see the License for the specific language governing rights and
 14667  // limitations under the License.
 14668  //
 14669  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14670  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 14671  
 14672  type X__darwin_sigaltstack = struct {
 14673  	Fss_sp       uintptr
 14674  	Fss_size     X__darwin_size_t
 14675  	Fss_flags    int32
 14676  	F__ccgo_pad1 [4]byte
 14677  } /* _sigaltstack.h:42:1 */
 14678  
 14679  type Stack_t = X__darwin_sigaltstack /* _sigaltstack.h:48:33 */ // [???] signal stack
 14680  
 14681  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 14682  //
 14683  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14684  //
 14685  // This file contains Original Code and/or Modifications of Original Code
 14686  // as defined in and that are subject to the Apple Public Source License
 14687  // Version 2.0 (the 'License'). You may not use this file except in
 14688  // compliance with the License. The rights granted to you under the License
 14689  // may not be used to create, or enable the creation or redistribution of,
 14690  // unlawful or unlicensed copies of an Apple operating system, or to
 14691  // circumvent, violate, or enable the circumvention or violation of, any
 14692  // terms of an Apple operating system software license agreement.
 14693  //
 14694  // Please obtain a copy of the License at
 14695  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14696  //
 14697  // The Original Code and all software distributed under the License are
 14698  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14699  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14700  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14701  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14702  // Please see the License for the specific language governing rights and
 14703  // limitations under the License.
 14704  //
 14705  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14706  
 14707  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 14708  //
 14709  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14710  //
 14711  // This file contains Original Code and/or Modifications of Original Code
 14712  // as defined in and that are subject to the Apple Public Source License
 14713  // Version 2.0 (the 'License'). You may not use this file except in
 14714  // compliance with the License. The rights granted to you under the License
 14715  // may not be used to create, or enable the creation or redistribution of,
 14716  // unlawful or unlicensed copies of an Apple operating system, or to
 14717  // circumvent, violate, or enable the circumvention or violation of, any
 14718  // terms of an Apple operating system software license agreement.
 14719  //
 14720  // Please obtain a copy of the License at
 14721  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14722  //
 14723  // The Original Code and all software distributed under the License are
 14724  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14725  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14726  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14727  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14728  // Please see the License for the specific language governing rights and
 14729  // limitations under the License.
 14730  //
 14731  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14732  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 14733  // Copyright (c) 1991, 1993
 14734  //	The Regents of the University of California.  All rights reserved.
 14735  //
 14736  // This code is derived from software contributed to Berkeley by
 14737  // Berkeley Software Design, Inc.
 14738  //
 14739  // Redistribution and use in source and binary forms, with or without
 14740  // modification, are permitted provided that the following conditions
 14741  // are met:
 14742  // 1. Redistributions of source code must retain the above copyright
 14743  //    notice, this list of conditions and the following disclaimer.
 14744  // 2. Redistributions in binary form must reproduce the above copyright
 14745  //    notice, this list of conditions and the following disclaimer in the
 14746  //    documentation and/or other materials provided with the distribution.
 14747  // 3. All advertising materials mentioning features or use of this software
 14748  //    must display the following acknowledgement:
 14749  //	This product includes software developed by the University of
 14750  //	California, Berkeley and its contributors.
 14751  // 4. Neither the name of the University nor the names of its contributors
 14752  //    may be used to endorse or promote products derived from this software
 14753  //    without specific prior written permission.
 14754  //
 14755  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 14756  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 14757  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 14758  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 14759  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 14760  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 14761  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 14762  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 14763  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 14764  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 14765  // SUCH DAMAGE.
 14766  //
 14767  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 14768  
 14769  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 14770  //
 14771  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14772  //
 14773  // This file contains Original Code and/or Modifications of Original Code
 14774  // as defined in and that are subject to the Apple Public Source License
 14775  // Version 2.0 (the 'License'). You may not use this file except in
 14776  // compliance with the License. The rights granted to you under the License
 14777  // may not be used to create, or enable the creation or redistribution of,
 14778  // unlawful or unlicensed copies of an Apple operating system, or to
 14779  // circumvent, violate, or enable the circumvention or violation of, any
 14780  // terms of an Apple operating system software license agreement.
 14781  //
 14782  // Please obtain a copy of the License at
 14783  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14784  //
 14785  // The Original Code and all software distributed under the License are
 14786  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14787  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14788  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14789  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14790  // Please see the License for the specific language governing rights and
 14791  // limitations under the License.
 14792  //
 14793  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14794  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 14795  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 14796  //
 14797  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14798  //
 14799  // This file contains Original Code and/or Modifications of Original Code
 14800  // as defined in and that are subject to the Apple Public Source License
 14801  // Version 2.0 (the 'License'). You may not use this file except in
 14802  // compliance with the License. The rights granted to you under the License
 14803  // may not be used to create, or enable the creation or redistribution of,
 14804  // unlawful or unlicensed copies of an Apple operating system, or to
 14805  // circumvent, violate, or enable the circumvention or violation of, any
 14806  // terms of an Apple operating system software license agreement.
 14807  //
 14808  // Please obtain a copy of the License at
 14809  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14810  //
 14811  // The Original Code and all software distributed under the License are
 14812  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14813  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14814  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14815  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14816  // Please see the License for the specific language governing rights and
 14817  // limitations under the License.
 14818  //
 14819  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14820  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 14821  //
 14822  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14823  //
 14824  // This file contains Original Code and/or Modifications of Original Code
 14825  // as defined in and that are subject to the Apple Public Source License
 14826  // Version 2.0 (the 'License'). You may not use this file except in
 14827  // compliance with the License. The rights granted to you under the License
 14828  // may not be used to create, or enable the creation or redistribution of,
 14829  // unlawful or unlicensed copies of an Apple operating system, or to
 14830  // circumvent, violate, or enable the circumvention or violation of, any
 14831  // terms of an Apple operating system software license agreement.
 14832  //
 14833  // Please obtain a copy of the License at
 14834  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14835  //
 14836  // The Original Code and all software distributed under the License are
 14837  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14838  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14839  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14840  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14841  // Please see the License for the specific language governing rights and
 14842  // limitations under the License.
 14843  //
 14844  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14845  
 14846  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 14847  //
 14848  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14849  //
 14850  // This file contains Original Code and/or Modifications of Original Code
 14851  // as defined in and that are subject to the Apple Public Source License
 14852  // Version 2.0 (the 'License'). You may not use this file except in
 14853  // compliance with the License. The rights granted to you under the License
 14854  // may not be used to create, or enable the creation or redistribution of,
 14855  // unlawful or unlicensed copies of an Apple operating system, or to
 14856  // circumvent, violate, or enable the circumvention or violation of, any
 14857  // terms of an Apple operating system software license agreement.
 14858  //
 14859  // Please obtain a copy of the License at
 14860  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14861  //
 14862  // The Original Code and all software distributed under the License are
 14863  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14864  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14865  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14866  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14867  // Please see the License for the specific language governing rights and
 14868  // limitations under the License.
 14869  //
 14870  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14871  
 14872  // Structure used in sigaltstack call.
 14873  
 14874  type X__darwin_ucontext = struct {
 14875  	Fuc_onstack int32
 14876  	Fuc_sigmask X__darwin_sigset_t
 14877  	Fuc_stack   struct {
 14878  		Fss_sp       uintptr
 14879  		Fss_size     X__darwin_size_t
 14880  		Fss_flags    int32
 14881  		F__ccgo_pad1 [4]byte
 14882  	}
 14883  	Fuc_link     uintptr
 14884  	Fuc_mcsize   X__darwin_size_t
 14885  	Fuc_mcontext uintptr
 14886  } /* _ucontext.h:43:1 */
 14887  
 14888  // user context
 14889  type Ucontext_t = X__darwin_ucontext /* _ucontext.h:57:33 */ // [???] user context
 14890  
 14891  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 14892  //
 14893  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14894  //
 14895  // This file contains Original Code and/or Modifications of Original Code
 14896  // as defined in and that are subject to the Apple Public Source License
 14897  // Version 2.0 (the 'License'). You may not use this file except in
 14898  // compliance with the License. The rights granted to you under the License
 14899  // may not be used to create, or enable the creation or redistribution of,
 14900  // unlawful or unlicensed copies of an Apple operating system, or to
 14901  // circumvent, violate, or enable the circumvention or violation of, any
 14902  // terms of an Apple operating system software license agreement.
 14903  //
 14904  // Please obtain a copy of the License at
 14905  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14906  //
 14907  // The Original Code and all software distributed under the License are
 14908  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14909  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14910  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14911  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14912  // Please see the License for the specific language governing rights and
 14913  // limitations under the License.
 14914  //
 14915  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14916  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 14917  //
 14918  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14919  //
 14920  // This file contains Original Code and/or Modifications of Original Code
 14921  // as defined in and that are subject to the Apple Public Source License
 14922  // Version 2.0 (the 'License'). You may not use this file except in
 14923  // compliance with the License. The rights granted to you under the License
 14924  // may not be used to create, or enable the creation or redistribution of,
 14925  // unlawful or unlicensed copies of an Apple operating system, or to
 14926  // circumvent, violate, or enable the circumvention or violation of, any
 14927  // terms of an Apple operating system software license agreement.
 14928  //
 14929  // Please obtain a copy of the License at
 14930  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14931  //
 14932  // The Original Code and all software distributed under the License are
 14933  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14934  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14935  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14936  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14937  // Please see the License for the specific language governing rights and
 14938  // limitations under the License.
 14939  //
 14940  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14941  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 14942  //
 14943  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14944  //
 14945  // This file contains Original Code and/or Modifications of Original Code
 14946  // as defined in and that are subject to the Apple Public Source License
 14947  // Version 2.0 (the 'License'). You may not use this file except in
 14948  // compliance with the License. The rights granted to you under the License
 14949  // may not be used to create, or enable the creation or redistribution of,
 14950  // unlawful or unlicensed copies of an Apple operating system, or to
 14951  // circumvent, violate, or enable the circumvention or violation of, any
 14952  // terms of an Apple operating system software license agreement.
 14953  //
 14954  // Please obtain a copy of the License at
 14955  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14956  //
 14957  // The Original Code and all software distributed under the License are
 14958  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14959  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14960  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14961  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14962  // Please see the License for the specific language governing rights and
 14963  // limitations under the License.
 14964  //
 14965  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14966  
 14967  type Sigset_t = X__darwin_sigset_t /* _sigset_t.h:31:41 */
 14968  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 14969  //
 14970  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14971  //
 14972  // This file contains Original Code and/or Modifications of Original Code
 14973  // as defined in and that are subject to the Apple Public Source License
 14974  // Version 2.0 (the 'License'). You may not use this file except in
 14975  // compliance with the License. The rights granted to you under the License
 14976  // may not be used to create, or enable the creation or redistribution of,
 14977  // unlawful or unlicensed copies of an Apple operating system, or to
 14978  // circumvent, violate, or enable the circumvention or violation of, any
 14979  // terms of an Apple operating system software license agreement.
 14980  //
 14981  // Please obtain a copy of the License at
 14982  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 14983  //
 14984  // The Original Code and all software distributed under the License are
 14985  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 14986  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 14987  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 14988  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 14989  // Please see the License for the specific language governing rights and
 14990  // limitations under the License.
 14991  //
 14992  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 14993  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 14994  //
 14995  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 14996  //
 14997  // This file contains Original Code and/or Modifications of Original Code
 14998  // as defined in and that are subject to the Apple Public Source License
 14999  // Version 2.0 (the 'License'). You may not use this file except in
 15000  // compliance with the License. The rights granted to you under the License
 15001  // may not be used to create, or enable the creation or redistribution of,
 15002  // unlawful or unlicensed copies of an Apple operating system, or to
 15003  // circumvent, violate, or enable the circumvention or violation of, any
 15004  // terms of an Apple operating system software license agreement.
 15005  //
 15006  // Please obtain a copy of the License at
 15007  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15008  //
 15009  // The Original Code and all software distributed under the License are
 15010  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15011  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15012  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15013  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15014  // Please see the License for the specific language governing rights and
 15015  // limitations under the License.
 15016  //
 15017  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15018  
 15019  type Sigval = struct {
 15020  	F__ccgo_pad1 [0]uint64
 15021  	Fsival_int   int32
 15022  	F__ccgo_pad2 [4]byte
 15023  } /* signal.h:158:1 */
 15024  
 15025  type Sigevent = struct {
 15026  	Fsigev_notify int32
 15027  	Fsigev_signo  int32
 15028  	Fsigev_value  struct {
 15029  		F__ccgo_pad1 [0]uint64
 15030  		Fsival_int   int32
 15031  		F__ccgo_pad2 [4]byte
 15032  	}
 15033  	Fsigev_notify_function   uintptr
 15034  	Fsigev_notify_attributes uintptr
 15035  } /* signal.h:168:1 */
 15036  
 15037  type X__siginfo = struct {
 15038  	Fsi_signo  int32
 15039  	Fsi_errno  int32
 15040  	Fsi_code   int32
 15041  	Fsi_pid    Pid_t
 15042  	Fsi_uid    Uid_t
 15043  	Fsi_status int32
 15044  	Fsi_addr   uintptr
 15045  	Fsi_value  struct {
 15046  		F__ccgo_pad1 [0]uint64
 15047  		Fsival_int   int32
 15048  		F__ccgo_pad2 [4]byte
 15049  	}
 15050  	Fsi_band int64
 15051  	F__pad   [7]uint64
 15052  } /* signal.h:177:9 */
 15053  
 15054  type Siginfo_t = X__siginfo /* signal.h:188:3 */
 15055  
 15056  // When the signal is SIGILL or SIGFPE, si_addr contains the address of
 15057  // the faulting instruction.
 15058  // When the signal is SIGSEGV or SIGBUS, si_addr contains the address of
 15059  // the faulting memory reference. Although for x86 there are cases of SIGSEGV
 15060  // for which si_addr cannot be determined and is NULL.
 15061  // If the signal is SIGCHLD, the si_pid field will contain the child process ID,
 15062  //  si_status contains the exit value or signal and
 15063  //  si_uid contains the real user ID of the process that sent the signal.
 15064  
 15065  // Values for si_code
 15066  
 15067  // Codes for SIGILL
 15068  
 15069  // Codes for SIGFPE
 15070  
 15071  // Codes for SIGSEGV
 15072  
 15073  // Codes for SIGBUS
 15074  
 15075  // Codes for SIGTRAP
 15076  
 15077  // Codes for SIGCHLD
 15078  
 15079  // Codes for SIGPOLL
 15080  
 15081  // union for signal handlers
 15082  type X__sigaction_u = struct{ F__sa_handler uintptr } /* signal.h:269:1 */
 15083  
 15084  // Signal vector template for Kernel user boundary
 15085  type X__sigaction = struct {
 15086  	F__sigaction_u struct{ F__sa_handler uintptr }
 15087  	Fsa_tramp      uintptr
 15088  	Fsa_mask       Sigset_t
 15089  	Fsa_flags      int32
 15090  } /* signal.h:276:1 */
 15091  
 15092  // Signal vector "template" used in sigaction call.
 15093  type Sigaction = struct {
 15094  	F__sigaction_u struct{ F__sa_handler uintptr }
 15095  	Fsa_mask       Sigset_t
 15096  	Fsa_flags      int32
 15097  } /* signal.h:286:1 */
 15098  
 15099  // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler.
 15100  
 15101  // This will provide 64bit register set in a 32bit user address space
 15102  
 15103  // the following are the only bits we support from user space, the
 15104  // rest are for kernel use only.
 15105  
 15106  // Flags for sigprocmask:
 15107  
 15108  // POSIX 1003.1b required values.
 15109  
 15110  type Sig_t = uintptr /* signal.h:331:14 */ // type of signal function
 15111  
 15112  // Structure used in sigaltstack call.
 15113  
 15114  // 4.3 compatibility:
 15115  // Signal vector "template" used in sigvec call.
 15116  type Sigvec = struct {
 15117  	Fsv_handler uintptr
 15118  	Fsv_mask    int32
 15119  	Fsv_flags   int32
 15120  } /* signal.h:348:1 */
 15121  
 15122  // Structure used in sigstack call.
 15123  type Sigstack = struct {
 15124  	Fss_sp       uintptr
 15125  	Fss_onstack  int32
 15126  	F__ccgo_pad1 [4]byte
 15127  } /* signal.h:367:1 */
 15128  
 15129  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 15130  //
 15131  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15132  //
 15133  // This file contains Original Code and/or Modifications of Original Code
 15134  // as defined in and that are subject to the Apple Public Source License
 15135  // Version 2.0 (the 'License'). You may not use this file except in
 15136  // compliance with the License. The rights granted to you under the License
 15137  // may not be used to create, or enable the creation or redistribution of,
 15138  // unlawful or unlicensed copies of an Apple operating system, or to
 15139  // circumvent, violate, or enable the circumvention or violation of, any
 15140  // terms of an Apple operating system software license agreement.
 15141  //
 15142  // Please obtain a copy of the License at
 15143  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15144  //
 15145  // The Original Code and all software distributed under the License are
 15146  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15147  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15148  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15149  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15150  // Please see the License for the specific language governing rights and
 15151  // limitations under the License.
 15152  //
 15153  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15154  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
 15155  // Copyright (c) 1982, 1986, 1993
 15156  //	The Regents of the University of California.  All rights reserved.
 15157  //
 15158  // Redistribution and use in source and binary forms, with or without
 15159  // modification, are permitted provided that the following conditions
 15160  // are met:
 15161  // 1. Redistributions of source code must retain the above copyright
 15162  //    notice, this list of conditions and the following disclaimer.
 15163  // 2. Redistributions in binary form must reproduce the above copyright
 15164  //    notice, this list of conditions and the following disclaimer in the
 15165  //    documentation and/or other materials provided with the distribution.
 15166  // 3. All advertising materials mentioning features or use of this software
 15167  //    must display the following acknowledgement:
 15168  //	This product includes software developed by the University of
 15169  //	California, Berkeley and its contributors.
 15170  // 4. Neither the name of the University nor the names of its contributors
 15171  //    may be used to endorse or promote products derived from this software
 15172  //    without specific prior written permission.
 15173  //
 15174  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 15175  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 15176  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 15177  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 15178  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 15179  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 15180  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 15181  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 15182  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 15183  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 15184  // SUCH DAMAGE.
 15185  //
 15186  //	@(#)resource.h	8.2 (Berkeley) 1/4/94
 15187  
 15188  // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
 15189  //
 15190  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15191  //
 15192  // This file contains Original Code and/or Modifications of Original Code
 15193  // as defined in and that are subject to the Apple Public Source License
 15194  // Version 2.0 (the 'License'). You may not use this file except in
 15195  // compliance with the License. The rights granted to you under the License
 15196  // may not be used to create, or enable the creation or redistribution of,
 15197  // unlawful or unlicensed copies of an Apple operating system, or to
 15198  // circumvent, violate, or enable the circumvention or violation of, any
 15199  // terms of an Apple operating system software license agreement.
 15200  //
 15201  // Please obtain a copy of the License at
 15202  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15203  //
 15204  // The Original Code and all software distributed under the License are
 15205  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15206  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15207  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15208  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15209  // Please see the License for the specific language governing rights and
 15210  // limitations under the License.
 15211  //
 15212  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15213  
 15214  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 15215  //
 15216  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15217  //
 15218  // This file contains Original Code and/or Modifications of Original Code
 15219  // as defined in and that are subject to the Apple Public Source License
 15220  // Version 2.0 (the 'License'). You may not use this file except in
 15221  // compliance with the License. The rights granted to you under the License
 15222  // may not be used to create, or enable the creation or redistribution of,
 15223  // unlawful or unlicensed copies of an Apple operating system, or to
 15224  // circumvent, violate, or enable the circumvention or violation of, any
 15225  // terms of an Apple operating system software license agreement.
 15226  //
 15227  // Please obtain a copy of the License at
 15228  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15229  //
 15230  // The Original Code and all software distributed under the License are
 15231  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15232  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15233  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15234  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15235  // Please see the License for the specific language governing rights and
 15236  // limitations under the License.
 15237  //
 15238  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15239  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 15240  // Copyright (c) 1991, 1993
 15241  //	The Regents of the University of California.  All rights reserved.
 15242  //
 15243  // This code is derived from software contributed to Berkeley by
 15244  // Berkeley Software Design, Inc.
 15245  //
 15246  // Redistribution and use in source and binary forms, with or without
 15247  // modification, are permitted provided that the following conditions
 15248  // are met:
 15249  // 1. Redistributions of source code must retain the above copyright
 15250  //    notice, this list of conditions and the following disclaimer.
 15251  // 2. Redistributions in binary form must reproduce the above copyright
 15252  //    notice, this list of conditions and the following disclaimer in the
 15253  //    documentation and/or other materials provided with the distribution.
 15254  // 3. All advertising materials mentioning features or use of this software
 15255  //    must display the following acknowledgement:
 15256  //	This product includes software developed by the University of
 15257  //	California, Berkeley and its contributors.
 15258  // 4. Neither the name of the University nor the names of its contributors
 15259  //    may be used to endorse or promote products derived from this software
 15260  //    without specific prior written permission.
 15261  //
 15262  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 15263  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 15264  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 15265  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 15266  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 15267  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 15268  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 15269  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 15270  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 15271  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 15272  // SUCH DAMAGE.
 15273  //
 15274  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 15275  
 15276  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 15277  //
 15278  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15279  //
 15280  // This file contains Original Code and/or Modifications of Original Code
 15281  // as defined in and that are subject to the Apple Public Source License
 15282  // Version 2.0 (the 'License'). You may not use this file except in
 15283  // compliance with the License. The rights granted to you under the License
 15284  // may not be used to create, or enable the creation or redistribution of,
 15285  // unlawful or unlicensed copies of an Apple operating system, or to
 15286  // circumvent, violate, or enable the circumvention or violation of, any
 15287  // terms of an Apple operating system software license agreement.
 15288  //
 15289  // Please obtain a copy of the License at
 15290  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15291  //
 15292  // The Original Code and all software distributed under the License are
 15293  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15294  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15295  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15296  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15297  // Please see the License for the specific language governing rights and
 15298  // limitations under the License.
 15299  //
 15300  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15301  
 15302  // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
 15303  //
 15304  // @APPLE_LICENSE_HEADER_START@
 15305  //
 15306  // This file contains Original Code and/or Modifications of Original Code
 15307  // as defined in and that are subject to the Apple Public Source License
 15308  // Version 2.0 (the 'License'). You may not use this file except in
 15309  // compliance with the License. Please obtain a copy of the License at
 15310  // http://www.opensource.apple.com/apsl/ and read it before using this
 15311  // file.
 15312  //
 15313  // The Original Code and all software distributed under the License are
 15314  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15315  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15316  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15317  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15318  // Please see the License for the specific language governing rights and
 15319  // limitations under the License.
 15320  //
 15321  // @APPLE_LICENSE_HEADER_END@
 15322  
 15323  // [XSI] The timeval structure shall be defined as described in
 15324  // <sys/time.h>
 15325  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 15326  //
 15327  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15328  //
 15329  // This file contains Original Code and/or Modifications of Original Code
 15330  // as defined in and that are subject to the Apple Public Source License
 15331  // Version 2.0 (the 'License'). You may not use this file except in
 15332  // compliance with the License. The rights granted to you under the License
 15333  // may not be used to create, or enable the creation or redistribution of,
 15334  // unlawful or unlicensed copies of an Apple operating system, or to
 15335  // circumvent, violate, or enable the circumvention or violation of, any
 15336  // terms of an Apple operating system software license agreement.
 15337  //
 15338  // Please obtain a copy of the License at
 15339  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15340  //
 15341  // The Original Code and all software distributed under the License are
 15342  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15343  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15344  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15345  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15346  // Please see the License for the specific language governing rights and
 15347  // limitations under the License.
 15348  //
 15349  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15350  
 15351  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 15352  //
 15353  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15354  //
 15355  // This file contains Original Code and/or Modifications of Original Code
 15356  // as defined in and that are subject to the Apple Public Source License
 15357  // Version 2.0 (the 'License'). You may not use this file except in
 15358  // compliance with the License. The rights granted to you under the License
 15359  // may not be used to create, or enable the creation or redistribution of,
 15360  // unlawful or unlicensed copies of an Apple operating system, or to
 15361  // circumvent, violate, or enable the circumvention or violation of, any
 15362  // terms of an Apple operating system software license agreement.
 15363  //
 15364  // Please obtain a copy of the License at
 15365  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15366  //
 15367  // The Original Code and all software distributed under the License are
 15368  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15369  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15370  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15371  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15372  // Please see the License for the specific language governing rights and
 15373  // limitations under the License.
 15374  //
 15375  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15376  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 15377  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 15378  //
 15379  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15380  //
 15381  // This file contains Original Code and/or Modifications of Original Code
 15382  // as defined in and that are subject to the Apple Public Source License
 15383  // Version 2.0 (the 'License'). You may not use this file except in
 15384  // compliance with the License. The rights granted to you under the License
 15385  // may not be used to create, or enable the creation or redistribution of,
 15386  // unlawful or unlicensed copies of an Apple operating system, or to
 15387  // circumvent, violate, or enable the circumvention or violation of, any
 15388  // terms of an Apple operating system software license agreement.
 15389  //
 15390  // Please obtain a copy of the License at
 15391  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15392  //
 15393  // The Original Code and all software distributed under the License are
 15394  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15395  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15396  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15397  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15398  // Please see the License for the specific language governing rights and
 15399  // limitations under the License.
 15400  //
 15401  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15402  
 15403  type Timeval = struct {
 15404  	Ftv_sec      X__darwin_time_t
 15405  	Ftv_usec     X__darwin_suseconds_t
 15406  	F__ccgo_pad1 [4]byte
 15407  } /* _timeval.h:34:1 */
 15408  
 15409  // The id_t type shall be defined as described in <sys/types.h>
 15410  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 15411  //
 15412  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15413  //
 15414  // This file contains Original Code and/or Modifications of Original Code
 15415  // as defined in and that are subject to the Apple Public Source License
 15416  // Version 2.0 (the 'License'). You may not use this file except in
 15417  // compliance with the License. The rights granted to you under the License
 15418  // may not be used to create, or enable the creation or redistribution of,
 15419  // unlawful or unlicensed copies of an Apple operating system, or to
 15420  // circumvent, violate, or enable the circumvention or violation of, any
 15421  // terms of an Apple operating system software license agreement.
 15422  //
 15423  // Please obtain a copy of the License at
 15424  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15425  //
 15426  // The Original Code and all software distributed under the License are
 15427  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15428  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15429  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15430  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15431  // Please see the License for the specific language governing rights and
 15432  // limitations under the License.
 15433  //
 15434  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15435  
 15436  // Resource limit type (low 63 bits, excluding the sign bit)
 15437  type Rlim_t = X__uint64_t /* resource.h:89:25 */
 15438  
 15439  // ****
 15440  //
 15441  // PRIORITY
 15442  
 15443  // Possible values of the first parameter to getpriority()/setpriority(),
 15444  // used to indicate the type of the second parameter.
 15445  
 15446  // Range limitations for the value of the third parameter to setpriority().
 15447  
 15448  // use PRIO_DARWIN_BG to set the current thread into "background" state
 15449  // which lowers CPU, disk IO, and networking priorites until thread terminates
 15450  // or "background" state is revoked
 15451  
 15452  // use PRIO_DARWIN_NONUI to restrict a process's ability to make calls to
 15453  // the GPU. (deprecated)
 15454  
 15455  // ****
 15456  //
 15457  // RESOURCE USAGE
 15458  
 15459  // Possible values of the first parameter to getrusage(), used to indicate
 15460  // the scope of the information to be returned.
 15461  
 15462  // A structure representing an accounting of resource utilization.  The
 15463  // address of an instance of this structure is the second parameter to
 15464  // getrusage().
 15465  //
 15466  // Note: All values other than ru_utime and ru_stime are implementaiton
 15467  //       defined and subject to change in a future release.  Their use
 15468  //       is discouraged for standards compliant programs.
 15469  type Rusage = struct {
 15470  	Fru_utime struct {
 15471  		Ftv_sec      X__darwin_time_t
 15472  		Ftv_usec     X__darwin_suseconds_t
 15473  		F__ccgo_pad1 [4]byte
 15474  	}
 15475  	Fru_stime struct {
 15476  		Ftv_sec      X__darwin_time_t
 15477  		Ftv_usec     X__darwin_suseconds_t
 15478  		F__ccgo_pad1 [4]byte
 15479  	}
 15480  	Fru_maxrss   int64
 15481  	Fru_ixrss    int64
 15482  	Fru_idrss    int64
 15483  	Fru_isrss    int64
 15484  	Fru_minflt   int64
 15485  	Fru_majflt   int64
 15486  	Fru_nswap    int64
 15487  	Fru_inblock  int64
 15488  	Fru_oublock  int64
 15489  	Fru_msgsnd   int64
 15490  	Fru_msgrcv   int64
 15491  	Fru_nsignals int64
 15492  	Fru_nvcsw    int64
 15493  	Fru_nivcsw   int64
 15494  } /* resource.h:152:1 */
 15495  
 15496  // Flavors for proc_pid_rusage().
 15497  
 15498  // Flags for RUSAGE_INFO_V5
 15499  
 15500  type Rusage_info_t = uintptr /* resource.h:199:14 */
 15501  
 15502  type Rusage_info_v0 = struct {
 15503  	Fri_uuid               [16]Uint8_t
 15504  	Fri_user_time          Uint64_t
 15505  	Fri_system_time        Uint64_t
 15506  	Fri_pkg_idle_wkups     Uint64_t
 15507  	Fri_interrupt_wkups    Uint64_t
 15508  	Fri_pageins            Uint64_t
 15509  	Fri_wired_size         Uint64_t
 15510  	Fri_resident_size      Uint64_t
 15511  	Fri_phys_footprint     Uint64_t
 15512  	Fri_proc_start_abstime Uint64_t
 15513  	Fri_proc_exit_abstime  Uint64_t
 15514  } /* resource.h:201:1 */
 15515  
 15516  type Rusage_info_v1 = struct {
 15517  	Fri_uuid                  [16]Uint8_t
 15518  	Fri_user_time             Uint64_t
 15519  	Fri_system_time           Uint64_t
 15520  	Fri_pkg_idle_wkups        Uint64_t
 15521  	Fri_interrupt_wkups       Uint64_t
 15522  	Fri_pageins               Uint64_t
 15523  	Fri_wired_size            Uint64_t
 15524  	Fri_resident_size         Uint64_t
 15525  	Fri_phys_footprint        Uint64_t
 15526  	Fri_proc_start_abstime    Uint64_t
 15527  	Fri_proc_exit_abstime     Uint64_t
 15528  	Fri_child_user_time       Uint64_t
 15529  	Fri_child_system_time     Uint64_t
 15530  	Fri_child_pkg_idle_wkups  Uint64_t
 15531  	Fri_child_interrupt_wkups Uint64_t
 15532  	Fri_child_pageins         Uint64_t
 15533  	Fri_child_elapsed_abstime Uint64_t
 15534  } /* resource.h:215:1 */
 15535  
 15536  type Rusage_info_v2 = struct {
 15537  	Fri_uuid                  [16]Uint8_t
 15538  	Fri_user_time             Uint64_t
 15539  	Fri_system_time           Uint64_t
 15540  	Fri_pkg_idle_wkups        Uint64_t
 15541  	Fri_interrupt_wkups       Uint64_t
 15542  	Fri_pageins               Uint64_t
 15543  	Fri_wired_size            Uint64_t
 15544  	Fri_resident_size         Uint64_t
 15545  	Fri_phys_footprint        Uint64_t
 15546  	Fri_proc_start_abstime    Uint64_t
 15547  	Fri_proc_exit_abstime     Uint64_t
 15548  	Fri_child_user_time       Uint64_t
 15549  	Fri_child_system_time     Uint64_t
 15550  	Fri_child_pkg_idle_wkups  Uint64_t
 15551  	Fri_child_interrupt_wkups Uint64_t
 15552  	Fri_child_pageins         Uint64_t
 15553  	Fri_child_elapsed_abstime Uint64_t
 15554  	Fri_diskio_bytesread      Uint64_t
 15555  	Fri_diskio_byteswritten   Uint64_t
 15556  } /* resource.h:235:1 */
 15557  
 15558  type Rusage_info_v3 = struct {
 15559  	Fri_uuid                          [16]Uint8_t
 15560  	Fri_user_time                     Uint64_t
 15561  	Fri_system_time                   Uint64_t
 15562  	Fri_pkg_idle_wkups                Uint64_t
 15563  	Fri_interrupt_wkups               Uint64_t
 15564  	Fri_pageins                       Uint64_t
 15565  	Fri_wired_size                    Uint64_t
 15566  	Fri_resident_size                 Uint64_t
 15567  	Fri_phys_footprint                Uint64_t
 15568  	Fri_proc_start_abstime            Uint64_t
 15569  	Fri_proc_exit_abstime             Uint64_t
 15570  	Fri_child_user_time               Uint64_t
 15571  	Fri_child_system_time             Uint64_t
 15572  	Fri_child_pkg_idle_wkups          Uint64_t
 15573  	Fri_child_interrupt_wkups         Uint64_t
 15574  	Fri_child_pageins                 Uint64_t
 15575  	Fri_child_elapsed_abstime         Uint64_t
 15576  	Fri_diskio_bytesread              Uint64_t
 15577  	Fri_diskio_byteswritten           Uint64_t
 15578  	Fri_cpu_time_qos_default          Uint64_t
 15579  	Fri_cpu_time_qos_maintenance      Uint64_t
 15580  	Fri_cpu_time_qos_background       Uint64_t
 15581  	Fri_cpu_time_qos_utility          Uint64_t
 15582  	Fri_cpu_time_qos_legacy           Uint64_t
 15583  	Fri_cpu_time_qos_user_initiated   Uint64_t
 15584  	Fri_cpu_time_qos_user_interactive Uint64_t
 15585  	Fri_billed_system_time            Uint64_t
 15586  	Fri_serviced_system_time          Uint64_t
 15587  } /* resource.h:257:1 */
 15588  
 15589  type Rusage_info_v4 = struct {
 15590  	Fri_uuid                          [16]Uint8_t
 15591  	Fri_user_time                     Uint64_t
 15592  	Fri_system_time                   Uint64_t
 15593  	Fri_pkg_idle_wkups                Uint64_t
 15594  	Fri_interrupt_wkups               Uint64_t
 15595  	Fri_pageins                       Uint64_t
 15596  	Fri_wired_size                    Uint64_t
 15597  	Fri_resident_size                 Uint64_t
 15598  	Fri_phys_footprint                Uint64_t
 15599  	Fri_proc_start_abstime            Uint64_t
 15600  	Fri_proc_exit_abstime             Uint64_t
 15601  	Fri_child_user_time               Uint64_t
 15602  	Fri_child_system_time             Uint64_t
 15603  	Fri_child_pkg_idle_wkups          Uint64_t
 15604  	Fri_child_interrupt_wkups         Uint64_t
 15605  	Fri_child_pageins                 Uint64_t
 15606  	Fri_child_elapsed_abstime         Uint64_t
 15607  	Fri_diskio_bytesread              Uint64_t
 15608  	Fri_diskio_byteswritten           Uint64_t
 15609  	Fri_cpu_time_qos_default          Uint64_t
 15610  	Fri_cpu_time_qos_maintenance      Uint64_t
 15611  	Fri_cpu_time_qos_background       Uint64_t
 15612  	Fri_cpu_time_qos_utility          Uint64_t
 15613  	Fri_cpu_time_qos_legacy           Uint64_t
 15614  	Fri_cpu_time_qos_user_initiated   Uint64_t
 15615  	Fri_cpu_time_qos_user_interactive Uint64_t
 15616  	Fri_billed_system_time            Uint64_t
 15617  	Fri_serviced_system_time          Uint64_t
 15618  	Fri_logical_writes                Uint64_t
 15619  	Fri_lifetime_max_phys_footprint   Uint64_t
 15620  	Fri_instructions                  Uint64_t
 15621  	Fri_cycles                        Uint64_t
 15622  	Fri_billed_energy                 Uint64_t
 15623  	Fri_serviced_energy               Uint64_t
 15624  	Fri_interval_max_phys_footprint   Uint64_t
 15625  	Fri_runnable_time                 Uint64_t
 15626  } /* resource.h:288:1 */
 15627  
 15628  type Rusage_info_v5 = struct {
 15629  	Fri_uuid                          [16]Uint8_t
 15630  	Fri_user_time                     Uint64_t
 15631  	Fri_system_time                   Uint64_t
 15632  	Fri_pkg_idle_wkups                Uint64_t
 15633  	Fri_interrupt_wkups               Uint64_t
 15634  	Fri_pageins                       Uint64_t
 15635  	Fri_wired_size                    Uint64_t
 15636  	Fri_resident_size                 Uint64_t
 15637  	Fri_phys_footprint                Uint64_t
 15638  	Fri_proc_start_abstime            Uint64_t
 15639  	Fri_proc_exit_abstime             Uint64_t
 15640  	Fri_child_user_time               Uint64_t
 15641  	Fri_child_system_time             Uint64_t
 15642  	Fri_child_pkg_idle_wkups          Uint64_t
 15643  	Fri_child_interrupt_wkups         Uint64_t
 15644  	Fri_child_pageins                 Uint64_t
 15645  	Fri_child_elapsed_abstime         Uint64_t
 15646  	Fri_diskio_bytesread              Uint64_t
 15647  	Fri_diskio_byteswritten           Uint64_t
 15648  	Fri_cpu_time_qos_default          Uint64_t
 15649  	Fri_cpu_time_qos_maintenance      Uint64_t
 15650  	Fri_cpu_time_qos_background       Uint64_t
 15651  	Fri_cpu_time_qos_utility          Uint64_t
 15652  	Fri_cpu_time_qos_legacy           Uint64_t
 15653  	Fri_cpu_time_qos_user_initiated   Uint64_t
 15654  	Fri_cpu_time_qos_user_interactive Uint64_t
 15655  	Fri_billed_system_time            Uint64_t
 15656  	Fri_serviced_system_time          Uint64_t
 15657  	Fri_logical_writes                Uint64_t
 15658  	Fri_lifetime_max_phys_footprint   Uint64_t
 15659  	Fri_instructions                  Uint64_t
 15660  	Fri_cycles                        Uint64_t
 15661  	Fri_billed_energy                 Uint64_t
 15662  	Fri_serviced_energy               Uint64_t
 15663  	Fri_interval_max_phys_footprint   Uint64_t
 15664  	Fri_runnable_time                 Uint64_t
 15665  	Fri_flags                         Uint64_t
 15666  } /* resource.h:327:1 */
 15667  
 15668  type Rusage_info_current = Rusage_info_v5 /* resource.h:367:31 */
 15669  
 15670  // ****
 15671  //
 15672  // RESOURCE LIMITS
 15673  
 15674  // Symbolic constants for resource limits; since all limits are representable
 15675  // as a type rlim_t, we are permitted to define RLIM_SAVED_* in terms of
 15676  // RLIM_INFINITY.
 15677  
 15678  // Possible values of the first parameter to getrlimit()/setrlimit(), to
 15679  // indicate for which resource the operation is being performed.
 15680  
 15681  // A structure representing a resource limit.  The address of an instance
 15682  // of this structure is the second parameter to getrlimit()/setrlimit().
 15683  type Rlimit = struct {
 15684  	Frlim_cur Rlim_t
 15685  	Frlim_max Rlim_t
 15686  } /* resource.h:411:1 */
 15687  
 15688  // proc_rlimit_control()
 15689  //
 15690  // Resource limit flavors
 15691  
 15692  // Flags for wakeups monitor control.
 15693  
 15694  // Flags for CPU usage monitor control.
 15695  
 15696  // Flags for memory footprint interval tracking.
 15697  
 15698  type Proc_rlimit_control_wakeupmon = struct {
 15699  	Fwm_flags Uint32_t
 15700  	Fwm_rate  Int32_t
 15701  } /* resource.h:446:1 */
 15702  
 15703  // Option bits for the third argument of wait4.  WNOHANG causes the
 15704  // wait to not hang if there are no stopped or terminated processes, rather
 15705  // returning an error indication in this case (pid==0).  WUNTRACED
 15706  // indicates that the caller should receive status about untraced children
 15707  // which stop due to signals.  If children are stopped and a wait without
 15708  // this option is done, it is as though they were still running... nothing
 15709  // about them is returned.
 15710  
 15711  // Macros to test the exit status returned by wait
 15712  // and extract the relevant values.
 15713  
 15714  // These macros are permited, as they are in the implementation namespace
 15715  
 15716  // [XSI] The <sys/wait.h> header shall define the following macros for
 15717  // analysis of process status values
 15718  // 0x13 == SIGCONT
 15719  
 15720  // [XSI] The following symbolic constants shall be defined as possible
 15721  // values for the fourth argument to waitid().
 15722  // WNOHANG already defined for wait4()
 15723  // WUNTRACED defined for wait4() but not for waitid()
 15724  // waitid() parameter
 15725  
 15726  // POSIX extensions and 4.2/4.3 compatability:
 15727  
 15728  // Tokens for special values of the "pid" parameter to wait4.
 15729  
 15730  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 15731  //
 15732  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15733  //
 15734  // This file contains Original Code and/or Modifications of Original Code
 15735  // as defined in and that are subject to the Apple Public Source License
 15736  // Version 2.0 (the 'License'). You may not use this file except in
 15737  // compliance with the License. The rights granted to you under the License
 15738  // may not be used to create, or enable the creation or redistribution of,
 15739  // unlawful or unlicensed copies of an Apple operating system, or to
 15740  // circumvent, violate, or enable the circumvention or violation of, any
 15741  // terms of an Apple operating system software license agreement.
 15742  //
 15743  // Please obtain a copy of the License at
 15744  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15745  //
 15746  // The Original Code and all software distributed under the License are
 15747  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15748  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15749  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15750  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15751  // Please see the License for the specific language governing rights and
 15752  // limitations under the License.
 15753  //
 15754  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15755  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 15756  
 15757  // Deprecated:
 15758  // Structure of the information in the status word returned by wait4.
 15759  // If w_stopval==_WSTOPPED, then the second structure describes
 15760  // the information returned, else the first.
 15761  type Wait = struct{ Fw_status int32 } /* wait.h:194:1 */
 15762  
 15763  // built-in for gcc
 15764  
 15765  // built-in for gcc 3
 15766  
 15767  // DO NOT REMOVE THIS COMMENT: fixincludes needs to see:
 15768  // _GCC_SIZE_T
 15769  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
 15770  //
 15771  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15772  //
 15773  // This file contains Original Code and/or Modifications of Original Code
 15774  // as defined in and that are subject to the Apple Public Source License
 15775  // Version 2.0 (the 'License'). You may not use this file except in
 15776  // compliance with the License. The rights granted to you under the License
 15777  // may not be used to create, or enable the creation or redistribution of,
 15778  // unlawful or unlicensed copies of an Apple operating system, or to
 15779  // circumvent, violate, or enable the circumvention or violation of, any
 15780  // terms of an Apple operating system software license agreement.
 15781  //
 15782  // Please obtain a copy of the License at
 15783  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15784  //
 15785  // The Original Code and all software distributed under the License are
 15786  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15787  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15788  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15789  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15790  // Please see the License for the specific language governing rights and
 15791  // limitations under the License.
 15792  //
 15793  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15794  
 15795  // Copyright (c) 2012 Apple Inc. All rights reserved.
 15796  //
 15797  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15798  //
 15799  // This file contains Original Code and/or Modifications of Original Code
 15800  // as defined in and that are subject to the Apple Public Source License
 15801  // Version 2.0 (the 'License'). You may not use this file except in
 15802  // compliance with the License. The rights granted to you under the License
 15803  // may not be used to create, or enable the creation or redistribution of,
 15804  // unlawful or unlicensed copies of an Apple operating system, or to
 15805  // circumvent, violate, or enable the circumvention or violation of, any
 15806  // terms of an Apple operating system software license agreement.
 15807  //
 15808  // Please obtain a copy of the License at
 15809  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15810  //
 15811  // The Original Code and all software distributed under the License are
 15812  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15813  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15814  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15815  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15816  // Please see the License for the specific language governing rights and
 15817  // limitations under the License.
 15818  //
 15819  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15820  
 15821  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 15822  //
 15823  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15824  //
 15825  // This file contains Original Code and/or Modifications of Original Code
 15826  // as defined in and that are subject to the Apple Public Source License
 15827  // Version 2.0 (the 'License'). You may not use this file except in
 15828  // compliance with the License. The rights granted to you under the License
 15829  // may not be used to create, or enable the creation or redistribution of,
 15830  // unlawful or unlicensed copies of an Apple operating system, or to
 15831  // circumvent, violate, or enable the circumvention or violation of, any
 15832  // terms of an Apple operating system software license agreement.
 15833  //
 15834  // Please obtain a copy of the License at
 15835  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15836  //
 15837  // The Original Code and all software distributed under the License are
 15838  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15839  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15840  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15841  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15842  // Please see the License for the specific language governing rights and
 15843  // limitations under the License.
 15844  //
 15845  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15846  type Ct_rune_t = X__darwin_ct_rune_t /* _ct_rune_t.h:32:28 */
 15847  // Copyright (c) 2012 Apple Inc. All rights reserved.
 15848  //
 15849  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15850  //
 15851  // This file contains Original Code and/or Modifications of Original Code
 15852  // as defined in and that are subject to the Apple Public Source License
 15853  // Version 2.0 (the 'License'). You may not use this file except in
 15854  // compliance with the License. The rights granted to you under the License
 15855  // may not be used to create, or enable the creation or redistribution of,
 15856  // unlawful or unlicensed copies of an Apple operating system, or to
 15857  // circumvent, violate, or enable the circumvention or violation of, any
 15858  // terms of an Apple operating system software license agreement.
 15859  //
 15860  // Please obtain a copy of the License at
 15861  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15862  //
 15863  // The Original Code and all software distributed under the License are
 15864  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15865  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15866  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15867  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15868  // Please see the License for the specific language governing rights and
 15869  // limitations under the License.
 15870  //
 15871  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15872  // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
 15873  //
 15874  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15875  //
 15876  // This file contains Original Code and/or Modifications of Original Code
 15877  // as defined in and that are subject to the Apple Public Source License
 15878  // Version 2.0 (the 'License'). You may not use this file except in
 15879  // compliance with the License. The rights granted to you under the License
 15880  // may not be used to create, or enable the creation or redistribution of,
 15881  // unlawful or unlicensed copies of an Apple operating system, or to
 15882  // circumvent, violate, or enable the circumvention or violation of, any
 15883  // terms of an Apple operating system software license agreement.
 15884  //
 15885  // Please obtain a copy of the License at
 15886  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15887  //
 15888  // The Original Code and all software distributed under the License are
 15889  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15890  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15891  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15892  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15893  // Please see the License for the specific language governing rights and
 15894  // limitations under the License.
 15895  //
 15896  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15897  type Rune_t = X__darwin_rune_t /* _rune_t.h:31:25 */
 15898  
 15899  // Copyright (c) 2012 Apple Inc. All rights reserved.
 15900  //
 15901  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 15902  //
 15903  // This file contains Original Code and/or Modifications of Original Code
 15904  // as defined in and that are subject to the Apple Public Source License
 15905  // Version 2.0 (the 'License'). You may not use this file except in
 15906  // compliance with the License. The rights granted to you under the License
 15907  // may not be used to create, or enable the creation or redistribution of,
 15908  // unlawful or unlicensed copies of an Apple operating system, or to
 15909  // circumvent, violate, or enable the circumvention or violation of, any
 15910  // terms of an Apple operating system software license agreement.
 15911  //
 15912  // Please obtain a copy of the License at
 15913  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 15914  //
 15915  // The Original Code and all software distributed under the License are
 15916  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15917  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15918  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15919  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15920  // Please see the License for the specific language governing rights and
 15921  // limitations under the License.
 15922  //
 15923  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 15924  
 15925  // wchar_t is a built-in type in C++
 15926  
 15927  type Div_t = struct {
 15928  	Fquot int32
 15929  	Frem  int32
 15930  } /* stdlib.h:86:3 */
 15931  
 15932  type Ldiv_t = struct {
 15933  	Fquot int64
 15934  	Frem  int64
 15935  } /* stdlib.h:91:3 */
 15936  
 15937  type Lldiv_t = struct {
 15938  	Fquot int64
 15939  	Frem  int64
 15940  } /* stdlib.h:97:3 */ // getsubopt(3) external variable
 15941  // valloc is now declared in _malloc.h
 15942  
 15943  // Poison the following routines if -fshort-wchar is set
 15944  
 15945  // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved.
 15946  //
 15947  // @APPLE_LICENSE_HEADER_START@
 15948  //
 15949  // This file contains Original Code and/or Modifications of Original Code
 15950  // as defined in and that are subject to the Apple Public Source License
 15951  // Version 2.0 (the 'License'). You may not use this file except in
 15952  // compliance with the License. Please obtain a copy of the License at
 15953  // http://www.opensource.apple.com/apsl/ and read it before using this
 15954  // file.
 15955  //
 15956  // The Original Code and all software distributed under the License are
 15957  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 15958  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 15959  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 15960  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 15961  // Please see the License for the specific language governing rights and
 15962  // limitations under the License.
 15963  //
 15964  // @APPLE_LICENSE_HEADER_END@
 15965  // -
 15966  // Copyright (c) 1990, 1993
 15967  //	The Regents of the University of California.  All rights reserved.
 15968  //
 15969  // Redistribution and use in source and binary forms, with or without
 15970  // modification, are permitted provided that the following conditions
 15971  // are met:
 15972  // 1. Redistributions of source code must retain the above copyright
 15973  //    notice, this list of conditions and the following disclaimer.
 15974  // 2. Redistributions in binary form must reproduce the above copyright
 15975  //    notice, this list of conditions and the following disclaimer in the
 15976  //    documentation and/or other materials provided with the distribution.
 15977  // 3. All advertising materials mentioning features or use of this software
 15978  //    must display the following acknowledgement:
 15979  //	This product includes software developed by the University of
 15980  //	California, Berkeley and its contributors.
 15981  // 4. Neither the name of the University nor the names of its contributors
 15982  //    may be used to endorse or promote products derived from this software
 15983  //    without specific prior written permission.
 15984  //
 15985  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 15986  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 15987  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 15988  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 15989  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 15990  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 15991  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 15992  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 15993  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 15994  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 15995  // SUCH DAMAGE.
 15996  //
 15997  //	@(#)string.h	8.1 (Berkeley) 6/2/93
 15998  
 15999  //
 16000  //
 16001  // Copyright 1989, 1991, 1998  The Open Group
 16002  //
 16003  // Permission to use, copy, modify, distribute, and sell this software and its
 16004  // documentation for any purpose is hereby granted without fee, provided that
 16005  // the above copyright notice appear in all copies and that both that
 16006  // copyright notice and this permission notice appear in supporting
 16007  // documentation.
 16008  //
 16009  // The above copyright notice and this permission notice shall be included in
 16010  // all copies or substantial portions of the Software.
 16011  //
 16012  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 16013  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 16014  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 16015  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 16016  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 16017  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 16018  //
 16019  // Except as contained in this notice, the name of The Open Group shall not be
 16020  // used in advertising or otherwise to promote the sale, use or other dealings
 16021  // in this Software without prior written authorization from The Open Group.
 16022  //  *
 16023  //
 16024  
 16025  // Definitions to make function prototypes manageable
 16026  
 16027  // The following definitions can be used for locking requests in multi-threaded
 16028  // address spaces.
 16029  // Author: Stephen Gildea, MIT X Consortium
 16030  //
 16031  // declarations for C Threads locking
 16032  
 16033  type LockInfoPtr = uintptr /* Xlibint.h:365:29 */
 16034  
 16035  // Xlib manual is bogus
 16036  
 16037  // CI_GET_CHAR_INFO_1D - return the charinfo struct for the indicated 8bit
 16038  // character.  If the character is in the column and exists, then return the
 16039  // appropriate metrics (note that fonts with common per-character metrics will
 16040  // return min_bounds).  If none of these hold true, try again with the default
 16041  // char.
 16042  
 16043  // CI_GET_CHAR_INFO_2D - return the charinfo struct for the indicated row and
 16044  // column.  This is used for fonts that have more than row zero.
 16045  
 16046  // srcvar must be a variable for large architecture version
 16047  
 16048  type X_XAsyncHandler = X_XInternalAsync /* Xlibint.h:784:3 */
 16049  
 16050  // This struct is part of the ABI and is defined by value
 16051  // in user-code. This means that we cannot make
 16052  // the sequence-numbers 64bit.
 16053  type X_XAsyncEState = struct {
 16054  	Fmin_sequence_number uint64
 16055  	Fmax_sequence_number uint64
 16056  	Ferror_code          uint8
 16057  	Fmajor_opcode        uint8
 16058  	Fminor_opcode        uint16
 16059  	Flast_error_received uint8
 16060  	F__ccgo_pad1         [3]byte
 16061  	Ferror_count         int32
 16062  	F__ccgo_pad2         [4]byte
 16063  } /* Xlibint.h:791:9 */
 16064  
 16065  // This struct is part of the ABI and is defined by value
 16066  // in user-code. This means that we cannot make
 16067  // the sequence-numbers 64bit.
 16068  type X_XAsyncErrorState = X_XAsyncEState /* Xlibint.h:799:3 */
 16069  
 16070  type FreeFuncType = uintptr /* Xlibint.h:809:14 */
 16071  
 16072  type FreeModmapType = uintptr /* Xlibint.h:813:13 */
 16073  
 16074  // This structure is private to the library.
 16075  type X_XFreeFuncRec = X_XFreeFuncs /* Xlibint.h:830:3 */
 16076  
 16077  // types for InitExt.c
 16078  type CreateGCType = uintptr /* Xlibint.h:833:13 */
 16079  
 16080  type CopyGCType = uintptr /* Xlibint.h:839:13 */
 16081  
 16082  type FlushGCType = uintptr /* Xlibint.h:845:13 */
 16083  
 16084  type FreeGCType = uintptr /* Xlibint.h:851:13 */
 16085  
 16086  type CreateFontType = uintptr /* Xlibint.h:857:13 */
 16087  
 16088  type FreeFontType = uintptr /* Xlibint.h:863:13 */
 16089  
 16090  type CloseDisplayType = uintptr /* Xlibint.h:869:13 */
 16091  
 16092  type ErrorType = uintptr /* Xlibint.h:874:13 */
 16093  
 16094  type ErrorStringType = uintptr /* Xlibint.h:881:13 */
 16095  
 16096  type PrintErrorType = uintptr /* Xlibint.h:889:14 */
 16097  
 16098  type BeforeFlushType = uintptr /* Xlibint.h:895:14 */
 16099  
 16100  // This structure is private to the library.
 16101  type X_XExtension = X_XExten /* Xlibint.h:921:3 */
 16102  
 16103  // internal connections for IMs
 16104  
 16105  type X_XInternalConnectionProc = uintptr /* Xlibint.h:1282:14 */
 16106  
 16107  //**********************************************************
 16108  //
 16109  // Copyright 1987, 1998  The Open Group
 16110  //
 16111  // Permission to use, copy, modify, distribute, and sell this software and its
 16112  // documentation for any purpose is hereby granted without fee, provided that
 16113  // the above copyright notice appear in all copies and that both that
 16114  // copyright notice and this permission notice appear in supporting
 16115  // documentation.
 16116  //
 16117  // The above copyright notice and this permission notice shall be included in
 16118  // all copies or substantial portions of the Software.
 16119  //
 16120  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 16121  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 16122  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 16123  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 16124  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 16125  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 16126  //
 16127  // Except as contained in this notice, the name of The Open Group shall not be
 16128  // used in advertising or otherwise to promote the sale, use or other dealings
 16129  // in this Software without prior written authorization from The Open Group.
 16130  //
 16131  //
 16132  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 16133  //
 16134  //                         All Rights Reserved
 16135  //
 16136  // Permission to use, copy, modify, and distribute this software and its
 16137  // documentation for any purpose and without fee is hereby granted,
 16138  // provided that the above copyright notice appear in all copies and that
 16139  // both that copyright notice and this permission notice appear in
 16140  // supporting documentation, and that the name of Digital not be
 16141  // used in advertising or publicity pertaining to distribution of the
 16142  // software without specific, written prior permission.
 16143  //
 16144  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 16145  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 16146  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 16147  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 16148  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 16149  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 16150  // SOFTWARE.
 16151  //
 16152  // *****************************************************************
 16153  
 16154  // You must include <X11/Xlib.h> before including this file
 16155  //
 16156  //
 16157  // Copyright 1985, 1986, 1987, 1991, 1998  The Open Group
 16158  //
 16159  // Permission to use, copy, modify, distribute, and sell this software and its
 16160  // documentation for any purpose is hereby granted without fee, provided that
 16161  // the above copyright notice appear in all copies and that both that
 16162  // copyright notice and this permission notice appear in supporting
 16163  // documentation.
 16164  //
 16165  // The above copyright notice and this permission notice shall be included in
 16166  // all copies or substantial portions of the Software.
 16167  //
 16168  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 16169  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 16170  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 16171  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 16172  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 16173  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 16174  //
 16175  // Except as contained in this notice, the name of The Open Group shall not be
 16176  // used in advertising or otherwise to promote the sale, use or other dealings
 16177  // in this Software without prior written authorization from The Open Group.
 16178  //
 16179  
 16180  //	Xlib.h - Header definition and support file for the C subroutine
 16181  //	interface library (Xlib) to the X Window System Protocol (V11).
 16182  //	Structures and symbols starting with "_" are private to the library.
 16183  //**********************************************************
 16184  //
 16185  // Copyright 1987, 1998  The Open Group
 16186  //
 16187  // Permission to use, copy, modify, distribute, and sell this software and its
 16188  // documentation for any purpose is hereby granted without fee, provided that
 16189  // the above copyright notice appear in all copies and that both that
 16190  // copyright notice and this permission notice appear in supporting
 16191  // documentation.
 16192  //
 16193  // The above copyright notice and this permission notice shall be included in
 16194  // all copies or substantial portions of the Software.
 16195  //
 16196  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 16197  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 16198  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 16199  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 16200  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 16201  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 16202  //
 16203  // Except as contained in this notice, the name of The Open Group shall not be
 16204  // used in advertising or otherwise to promote the sale, use or other dealings
 16205  // in this Software without prior written authorization from The Open Group.
 16206  //
 16207  //
 16208  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 16209  //
 16210  //                         All Rights Reserved
 16211  //
 16212  // Permission to use, copy, modify, and distribute this software and its
 16213  // documentation for any purpose and without fee is hereby granted,
 16214  // provided that the above copyright notice appear in all copies and that
 16215  // both that copyright notice and this permission notice appear in
 16216  // supporting documentation, and that the name of Digital not be
 16217  // used in advertising or publicity pertaining to distribution of the
 16218  // software without specific, written prior permission.
 16219  //
 16220  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 16221  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 16222  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 16223  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 16224  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 16225  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 16226  // SOFTWARE.
 16227  //
 16228  // *****************************************************************
 16229  
 16230  // default keysyms
 16231  
 16232  //**********************************************************
 16233  // Copyright 1987, 1994, 1998  The Open Group
 16234  //
 16235  // Permission to use, copy, modify, distribute, and sell this software and its
 16236  // documentation for any purpose is hereby granted without fee, provided that
 16237  // the above copyright notice appear in all copies and that both that
 16238  // copyright notice and this permission notice appear in supporting
 16239  // documentation.
 16240  //
 16241  // The above copyright notice and this permission notice shall be included
 16242  // in all copies or substantial portions of the Software.
 16243  //
 16244  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 16245  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 16246  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 16247  // IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
 16248  // OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 16249  // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 16250  // OTHER DEALINGS IN THE SOFTWARE.
 16251  //
 16252  // Except as contained in this notice, the name of The Open Group shall
 16253  // not be used in advertising or otherwise to promote the sale, use or
 16254  // other dealings in this Software without prior written authorization
 16255  // from The Open Group.
 16256  //
 16257  //
 16258  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts
 16259  //
 16260  //                         All Rights Reserved
 16261  //
 16262  // Permission to use, copy, modify, and distribute this software and its
 16263  // documentation for any purpose and without fee is hereby granted,
 16264  // provided that the above copyright notice appear in all copies and that
 16265  // both that copyright notice and this permission notice appear in
 16266  // supporting documentation, and that the name of Digital not be
 16267  // used in advertising or publicity pertaining to distribution of the
 16268  // software without specific, written prior permission.
 16269  //
 16270  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 16271  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 16272  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 16273  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 16274  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 16275  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 16276  // SOFTWARE.
 16277  //
 16278  // *****************************************************************
 16279  
 16280  // The "X11 Window System Protocol" standard defines in Appendix A the
 16281  // keysym codes. These 29-bit integer values identify characters or
 16282  // functions associated with each key (e.g., via the visible
 16283  // engraving) of a keyboard layout. This file assigns mnemonic macro
 16284  // names for these keysyms.
 16285  //
 16286  // This file is also compiled (by src/util/makekeys.c in libX11) into
 16287  // hash tables that can be accessed with X11 library functions such as
 16288  // XStringToKeysym() and XKeysymToString().
 16289  //
 16290  // Where a keysym corresponds one-to-one to an ISO 10646 / Unicode
 16291  // character, this is noted in a comment that provides both the U+xxxx
 16292  // Unicode position, as well as the official Unicode name of the
 16293  // character.
 16294  //
 16295  // Where the correspondence is either not one-to-one or semantically
 16296  // unclear, the Unicode position and name are enclosed in
 16297  // parentheses. Such legacy keysyms should be considered deprecated
 16298  // and are not recommended for use in future keyboard mappings.
 16299  //
 16300  // For any future extension of the keysyms with characters already
 16301  // found in ISO 10646 / Unicode, the following algorithm shall be
 16302  // used. The new keysym code position will simply be the character's
 16303  // Unicode number plus 0x01000000. The keysym values in the range
 16304  // 0x01000100 to 0x0110ffff are reserved to represent Unicode
 16305  // characters in the range U+0100 to U+10FFFF.
 16306  //
 16307  // While most newer Unicode-based X11 clients do already accept
 16308  // Unicode-mapped keysyms in the range 0x01000100 to 0x0110ffff, it
 16309  // will remain necessary for clients -- in the interest of
 16310  // compatibility with existing servers -- to also understand the
 16311  // existing legacy keysym values in the range 0x0100 to 0x20ff.
 16312  //
 16313  // Where several mnemonic names are defined for the same keysym in this
 16314  // file, all but the first one listed should be considered deprecated.
 16315  //
 16316  // Mnemonic names for keysyms are defined in this file with lines
 16317  // that match one of these Perl regular expressions:
 16318  //
 16319  //    /^\#define XK_([a-zA-Z_0-9]+)\s+0x([0-9a-f]+)\s*\/\* U\+([0-9A-F]{4,6}) (.*) \*\/\s*$/
 16320  //    /^\#define XK_([a-zA-Z_0-9]+)\s+0x([0-9a-f]+)\s*\/\*\(U\+([0-9A-F]{4,6}) (.*)\)\*\/\s*$/
 16321  //    /^\#define XK_([a-zA-Z_0-9]+)\s+0x([0-9a-f]+)\s*(\/\*\s*(.*)\s*\*\/)?\s*$/
 16322  //
 16323  // Before adding new keysyms, please do consider the following: In
 16324  // addition to the keysym names defined in this file, the
 16325  // XStringToKeysym() and XKeysymToString() functions will also handle
 16326  // any keysym string of the form "U0020" to "U007E" and "U00A0" to
 16327  // "U10FFFF" for all possible Unicode characters. In other words,
 16328  // every possible Unicode character has already a keysym string
 16329  // defined algorithmically, even if it is not listed here. Therefore,
 16330  // defining an additional keysym macro is only necessary where a
 16331  // non-hexadecimal mnemonic name is needed, or where the new keysym
 16332  // does not represent any existing Unicode character.
 16333  //
 16334  // When adding new keysyms to this file, do not forget to also update the
 16335  // following as needed:
 16336  //
 16337  //   - the mappings in src/KeyBind.c in the libX11 repo
 16338  //     https://gitlab.freedesktop.org/xorg/lib/libx11
 16339  //
 16340  //   - the protocol specification in specs/keysyms.xml in this repo
 16341  //     https://gitlab.freedesktop.org/xorg/proto/xorgproto
 16342  //
 16343  
 16344  // TTY function keys, cleverly chosen to map to ASCII, for convenience of
 16345  // programming, but could have been arbitrary (at the cost of lookup
 16346  // tables in client code).
 16347  
 16348  // International & multi-key character composition
 16349  
 16350  // Japanese keyboard support
 16351  
 16352  // 0xff31 thru 0xff3f are under XK_KOREAN
 16353  
 16354  // Cursor control & motion
 16355  
 16356  // Misc functions
 16357  
 16358  // Keypad functions, keypad numbers cleverly chosen to map to ASCII
 16359  
 16360  // Auxiliary functions; note the duplicate definitions for left and right
 16361  // function keys;  Sun keyboards and a few other manufacturers have such
 16362  // function key groups on the left and/or right sides of the keyboard.
 16363  // We've not found a keyboard with more than 35 function keys total.
 16364  
 16365  // Modifiers
 16366  
 16367  // Keyboard (XKB) Extension function and modifier keys
 16368  // (from Appendix C of "The X Keyboard Extension: Protocol Specification")
 16369  // Byte 3 = 0xfe
 16370  
 16371  // extra dead elements for German T3 layout
 16372  
 16373  // dead vowels for universal syllable entry
 16374  
 16375  // Single-Stroke Multiple-Character N-Graph Keysyms For The X Input Method
 16376  
 16377  // 3270 Terminal Keys
 16378  // Byte 3 = 0xfd
 16379  
 16380  // Latin 1
 16381  // (ISO/IEC 8859-1 = Unicode U+0020..U+00FF)
 16382  // Byte 3 = 0
 16383  
 16384  // Latin 2
 16385  // Byte 3 = 1
 16386  
 16387  // Latin 3
 16388  // Byte 3 = 2
 16389  
 16390  // Latin 4
 16391  // Byte 3 = 3
 16392  
 16393  // Latin 8
 16394  
 16395  // Latin 9
 16396  // Byte 3 = 0x13
 16397  
 16398  // Katakana
 16399  // Byte 3 = 4
 16400  
 16401  // Arabic
 16402  // Byte 3 = 5
 16403  
 16404  // Cyrillic
 16405  // Byte 3 = 6
 16406  
 16407  // Greek
 16408  // (based on an early draft of, and not quite identical to, ISO/IEC 8859-7)
 16409  // Byte 3 = 7
 16410  
 16411  // Technical
 16412  // (from the DEC VT330/VT420 Technical Character Set, http://vt100.net/charsets/technical.html)
 16413  // Byte 3 = 8
 16414  
 16415  // Special
 16416  // (from the DEC VT100 Special Graphics Character Set)
 16417  // Byte 3 = 9
 16418  
 16419  // Publishing
 16420  // (these are probably from a long forgotten DEC Publishing
 16421  // font that once shipped with DECwrite)
 16422  // Byte 3 = 0x0a
 16423  
 16424  // APL
 16425  // Byte 3 = 0x0b
 16426  
 16427  // Hebrew
 16428  // Byte 3 = 0x0c
 16429  
 16430  // Thai
 16431  // Byte 3 = 0x0d
 16432  
 16433  // Korean
 16434  // Byte 3 = 0x0e
 16435  
 16436  // Hangul Consonant Characters
 16437  
 16438  // Hangul Vowel Characters
 16439  
 16440  // Hangul syllable-final (JongSeong) Characters
 16441  
 16442  // Ancient Hangul Consonant Characters
 16443  
 16444  // Ancient Hangul Vowel Characters
 16445  
 16446  // Ancient Hangul syllable-final (JongSeong) Characters
 16447  
 16448  // Korean currency symbol
 16449  
 16450  // Armenian
 16451  
 16452  // Georgian
 16453  
 16454  // Azeri (and other Turkic or Caucasian languages)
 16455  
 16456  // latin
 16457  // those are not really Caucasus
 16458  // For Inupiak
 16459  
 16460  // Vietnamese
 16461  
 16462  // one, two and three are defined above.
 16463  
 16464  // Sinhala (http://unicode.org/charts/PDF/U0D80.pdf)
 16465  // http://www.nongnu.org/sinhala/doc/transliteration/sinhala-transliteration_6.html
 16466  
 16467  // The Xlib structs are full of implicit padding to properly align members.
 16468  //    We can't clean that up without breaking ABI, so tell clang not to bother
 16469  //    complaining about it.
 16470  
 16471  // Bitmask returned by XParseGeometry().  Each bit tells if the corresponding
 16472  // value (x, y, width, height) was found in the parsed string.
 16473  
 16474  // new version containing base_width, base_height, and win_gravity fields;
 16475  // used with WM_NORMAL_HINTS.
 16476  type XSizeHints = struct {
 16477  	Fflags      int64
 16478  	Fx          int32
 16479  	Fy          int32
 16480  	Fwidth      int32
 16481  	Fheight     int32
 16482  	Fmin_width  int32
 16483  	Fmin_height int32
 16484  	Fmax_width  int32
 16485  	Fmax_height int32
 16486  	Fwidth_inc  int32
 16487  	Fheight_inc int32
 16488  	Fmin_aspect struct {
 16489  		Fx int32
 16490  		Fy int32
 16491  	}
 16492  	Fmax_aspect struct {
 16493  		Fx int32
 16494  		Fy int32
 16495  	}
 16496  	Fbase_width  int32
 16497  	Fbase_height int32
 16498  	Fwin_gravity int32
 16499  	F__ccgo_pad1 [4]byte
 16500  } /* Xutil.h:94:3 */
 16501  
 16502  // The next block of definitions are for window manager properties that
 16503  // clients and applications use for communication.
 16504  
 16505  // flags argument in size hints
 16506  
 16507  // obsolete
 16508  
 16509  type XWMHints = struct {
 16510  	Fflags         int64
 16511  	Finput         int32
 16512  	Finitial_state int32
 16513  	Ficon_pixmap   Pixmap
 16514  	Ficon_window   Window
 16515  	Ficon_x        int32
 16516  	Ficon_y        int32
 16517  	Ficon_mask     Pixmap
 16518  	Fwindow_group  XID
 16519  } /* Xutil.h:130:3 */
 16520  
 16521  // definition for flags of XWMHints
 16522  
 16523  // definitions for initial window state
 16524  
 16525  // Obsolete states no longer defined by ICCCM
 16526  // some wm's may put it on inactive menu
 16527  
 16528  // new structure for manipulating TEXT properties; used with WM_NAME,
 16529  // WM_ICON_NAME, WM_CLIENT_MACHINE, and WM_COMMAND.
 16530  type XTextProperty = struct {
 16531  	Fvalue       uintptr
 16532  	Fencoding    Atom
 16533  	Fformat      int32
 16534  	F__ccgo_pad1 [4]byte
 16535  	Fnitems      uint64
 16536  } /* Xutil.h:168:3 */
 16537  
 16538  type XICCEncodingStyle = uint32 /* Xutil.h:181:3 */
 16539  
 16540  type XIconSize = struct {
 16541  	Fmin_width  int32
 16542  	Fmin_height int32
 16543  	Fmax_width  int32
 16544  	Fmax_height int32
 16545  	Fwidth_inc  int32
 16546  	Fheight_inc int32
 16547  } /* Xutil.h:187:3 */
 16548  
 16549  type XClassHint = struct {
 16550  	Fres_name  uintptr
 16551  	Fres_class uintptr
 16552  } /* Xutil.h:192:3 */
 16553  
 16554  // These macros are used to give some sugar to the image routines so that
 16555  // naive people are more comfortable with them.
 16556  
 16557  // Compose sequence status structure, used in calling XLookupString.
 16558  type X_XComposeStatus = struct {
 16559  	Fcompose_ptr   XPointer
 16560  	Fchars_matched int32
 16561  	F__ccgo_pad1   [4]byte
 16562  } /* Xutil.h:231:9 */
 16563  
 16564  // These macros are used to give some sugar to the image routines so that
 16565  // naive people are more comfortable with them.
 16566  
 16567  // Compose sequence status structure, used in calling XLookupString.
 16568  type XComposeStatus = X_XComposeStatus /* Xutil.h:234:3 */
 16569  
 16570  // Keysym macros, used on Keysyms to test for classes of symbols
 16571  
 16572  // opaque reference to Region data type
 16573  type X_XRegion = struct {
 16574  	Fsize     int64
 16575  	FnumRects int64
 16576  	Frects    uintptr
 16577  	Fextents  BOX
 16578  } /* Xutil.h:273:9 */
 16579  
 16580  // Keysym macros, used on Keysyms to test for classes of symbols
 16581  
 16582  // opaque reference to Region data type
 16583  type Region = uintptr /* Xutil.h:273:25 */
 16584  
 16585  // Return values from XRectInRegion()
 16586  
 16587  // Information used by the visual utility routines to find desired visual
 16588  // type from the many visuals a display may support.
 16589  
 16590  type XVisualInfo = struct {
 16591  	Fvisual        uintptr
 16592  	Fvisualid      VisualID
 16593  	Fscreen        int32
 16594  	Fdepth         int32
 16595  	Fclass         int32
 16596  	F__ccgo_pad1   [4]byte
 16597  	Fred_mask      uint64
 16598  	Fgreen_mask    uint64
 16599  	Fblue_mask     uint64
 16600  	Fcolormap_size int32
 16601  	Fbits_per_rgb  int32
 16602  } /* Xutil.h:302:3 */
 16603  
 16604  // This defines a window manager property that clients may use to
 16605  // share standard color maps of type RGB_COLOR_MAP:
 16606  type XStandardColormap = struct {
 16607  	Fcolormap   Colormap
 16608  	Fred_max    uint64
 16609  	Fred_mult   uint64
 16610  	Fgreen_max  uint64
 16611  	Fgreen_mult uint64
 16612  	Fblue_max   uint64
 16613  	Fblue_mult  uint64
 16614  	Fbase_pixel uint64
 16615  	Fvisualid   VisualID
 16616  	Fkillid     XID
 16617  } /* Xutil.h:331:3 */
 16618  
 16619  // return codes for XReadBitmapFile and XWriteBitmapFile
 16620  
 16621  // ***************************************************************
 16622  //
 16623  //
 16624  // Context Management
 16625  //
 16626  //
 16627  
 16628  // Associative lookup table return codes
 16629  
 16630  type XContext = int32 /* Xutil.h:357:13 */
 16631  
 16632  // Copyright © 2000 SuSE, Inc.
 16633  //
 16634  // Permission to use, copy, modify, distribute, and sell this software and its
 16635  // documentation for any purpose is hereby granted without fee, provided that
 16636  // the above copyright notice appear in all copies and that both that
 16637  // copyright notice and this permission notice appear in supporting
 16638  // documentation, and that the name of SuSE not be used in advertising or
 16639  // publicity pertaining to distribution of the software without specific,
 16640  // written prior permission.  SuSE makes no representations about the
 16641  // suitability of this software for any purpose.  It is provided "as is"
 16642  // without express or implied warranty.
 16643  //
 16644  // SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
 16645  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
 16646  // BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 16647  // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 16648  // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 16649  // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 16650  //
 16651  // Author:  Keith Packard, SuSE, Inc.
 16652  
 16653  //**********************************************************
 16654  //
 16655  // Copyright 1987, 1998  The Open Group
 16656  //
 16657  // Permission to use, copy, modify, distribute, and sell this software and its
 16658  // documentation for any purpose is hereby granted without fee, provided that
 16659  // the above copyright notice appear in all copies and that both that
 16660  // copyright notice and this permission notice appear in supporting
 16661  // documentation.
 16662  //
 16663  // The above copyright notice and this permission notice shall be included in
 16664  // all copies or substantial portions of the Software.
 16665  //
 16666  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 16667  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 16668  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 16669  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 16670  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 16671  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 16672  //
 16673  // Except as contained in this notice, the name of The Open Group shall not be
 16674  // used in advertising or otherwise to promote the sale, use or other dealings
 16675  // in this Software without prior written authorization from The Open Group.
 16676  //
 16677  //
 16678  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 16679  //
 16680  //                         All Rights Reserved
 16681  //
 16682  // Permission to use, copy, modify, and distribute this software and its
 16683  // documentation for any purpose and without fee is hereby granted,
 16684  // provided that the above copyright notice appear in all copies and that
 16685  // both that copyright notice and this permission notice appear in
 16686  // supporting documentation, and that the name of Digital not be
 16687  // used in advertising or publicity pertaining to distribution of the
 16688  // software without specific, written prior permission.
 16689  //
 16690  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 16691  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 16692  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 16693  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 16694  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 16695  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 16696  // SOFTWARE.
 16697  //
 16698  // *****************************************************************
 16699  // Copyright © 2000 SuSE, Inc.
 16700  //
 16701  // Permission to use, copy, modify, distribute, and sell this software and its
 16702  // documentation for any purpose is hereby granted without fee, provided that
 16703  // the above copyright notice appear in all copies and that both that
 16704  // copyright notice and this permission notice appear in supporting
 16705  // documentation, and that the name of SuSE not be used in advertising or
 16706  // publicity pertaining to distribution of the software without specific,
 16707  // written prior permission.  SuSE makes no representations about the
 16708  // suitability of this software for any purpose.  It is provided "as is"
 16709  // without express or implied warranty.
 16710  //
 16711  // SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
 16712  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
 16713  // BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 16714  // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 16715  // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 16716  // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 16717  //
 16718  // Author:  Keith Packard, SuSE, Inc.
 16719  
 16720  //**********************************************************
 16721  //
 16722  // Copyright (c) 1999  The XFree86 Project Inc.
 16723  //
 16724  // All Rights Reserved.
 16725  //
 16726  // The above copyright notice and this permission notice shall be included in
 16727  // all copies or substantial portions of the Software.
 16728  //
 16729  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 16730  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 16731  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 16732  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 16733  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 16734  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 16735  //
 16736  // Except as contained in this notice, the name of The XFree86 Project
 16737  // Inc. shall not be used in advertising or otherwise to promote the
 16738  // sale, use or other dealings in this Software without prior written
 16739  // authorization from The XFree86 Project Inc..
 16740  //
 16741  
 16742  // *
 16743  // Types definitions shared between server and clients
 16744  //
 16745  
 16746  type Pointer = uintptr /* Xdefs.h:53:14 */
 16747  
 16748  type ClientPtr = uintptr /* Xdefs.h:57:24 */
 16749  
 16750  type FontPtr = uintptr /* Xdefs.h:81:22 */ // also in fonts/include/font.h
 16751  
 16752  type FSID = uint64 /* Xdefs.h:91:23 */
 16753  
 16754  type AccContext = FSID /* Xdefs.h:97:14 */
 16755  
 16756  // OS independent time value
 16757  //    XXX Should probably go in Xos.h
 16758  type OSTimePtr = uintptr /* Xdefs.h:101:24 */
 16759  
 16760  type BlockHandlerProcPtr = uintptr /* Xdefs.h:104:14 */
 16761  
 16762  type Glyph = XID      /* render.h:29:14 */
 16763  type GlyphSet = XID   /* render.h:30:14 */
 16764  type Picture = XID    /* render.h:31:14 */
 16765  type PictFormat = XID /* render.h:32:14 */
 16766  
 16767  // #define X_RenderTransform		    16
 16768  // 0.5
 16769  // 0.6
 16770  // 0.8
 16771  // 0.9
 16772  // 0.10
 16773  
 16774  // Operators only available in version 0.2
 16775  
 16776  // Operators only available in version 0.11
 16777  
 16778  // Filters included in 0.6
 16779  // Filters included in 0.10
 16780  
 16781  // Subpixel orders included in 0.6
 16782  
 16783  // Extended repeat attributes included in 0.10
 16784  
 16785  // data structures
 16786  
 16787  type XDirectFormat = struct {
 16788  	Fred       CARD16
 16789  	FredMask   CARD16
 16790  	Fgreen     CARD16
 16791  	FgreenMask CARD16
 16792  	Fblue      CARD16
 16793  	FblueMask  CARD16
 16794  	Falpha     CARD16
 16795  	FalphaMask CARD16
 16796  } /* renderproto.h:61:3 */
 16797  
 16798  type XPictFormInfo = struct {
 16799  	Fid       CARD32
 16800  	Ftype     CARD8
 16801  	Fdepth    CARD8
 16802  	Fpad1     CARD16
 16803  	Fdirect   XDirectFormat
 16804  	Fcolormap CARD32
 16805  } /* renderproto.h:72:3 */
 16806  
 16807  type XPictVisual = struct {
 16808  	Fvisual CARD32
 16809  	Fformat CARD32
 16810  } /* renderproto.h:79:3 */
 16811  
 16812  type XPictDepth = struct {
 16813  	Fdepth        CARD8
 16814  	Fpad1         CARD8
 16815  	FnPictVisuals CARD16
 16816  	Fpad2         CARD32
 16817  } /* renderproto.h:88:3 */
 16818  
 16819  type XPictScreen = struct {
 16820  	FnDepth   CARD32
 16821  	Ffallback CARD32
 16822  } /* renderproto.h:95:3 */
 16823  
 16824  type XIndexValue = struct {
 16825  	Fpixel CARD32
 16826  	Fred   CARD16
 16827  	Fgreen CARD16
 16828  	Fblue  CARD16
 16829  	Falpha CARD16
 16830  } /* renderproto.h:105:3 */
 16831  
 16832  type XRenderColor = struct {
 16833  	Fred   CARD16
 16834  	Fgreen CARD16
 16835  	Fblue  CARD16
 16836  	Falpha CARD16
 16837  } /* renderproto.h:114:3 */
 16838  
 16839  type XPointFixed = struct {
 16840  	Fx INT32
 16841  	Fy INT32
 16842  } /* renderproto.h:121:3 */
 16843  
 16844  type XLineFixed = struct {
 16845  	Fp1 XPointFixed
 16846  	Fp2 XPointFixed
 16847  } /* renderproto.h:128:3 */
 16848  
 16849  type XTriangle = struct {
 16850  	Fp1 XPointFixed
 16851  	Fp2 XPointFixed
 16852  	Fp3 XPointFixed
 16853  } /* renderproto.h:134:3 */
 16854  
 16855  type XTrapezoid = struct {
 16856  	Ftop    INT32
 16857  	Fbottom INT32
 16858  	Fleft   XLineFixed
 16859  	Fright  XLineFixed
 16860  } /* renderproto.h:143:3 */
 16861  
 16862  type XGlyphInfo = struct {
 16863  	Fwidth  CARD16
 16864  	Fheight CARD16
 16865  	Fx      INT16
 16866  	Fy      INT16
 16867  	FxOff   INT16
 16868  	FyOff   INT16
 16869  } /* renderproto.h:154:3 */
 16870  
 16871  type XGlyphElt = struct {
 16872  	Flen    CARD8
 16873  	Fpad1   CARD8
 16874  	Fpad2   CARD16
 16875  	Fdeltax INT16
 16876  	Fdeltay INT16
 16877  } /* renderproto.h:164:3 */
 16878  
 16879  type XSpanFix = struct {
 16880  	Fl INT32
 16881  	Fr INT32
 16882  	Fy INT32
 16883  } /* renderproto.h:170:3 */
 16884  
 16885  type XTrap = struct {
 16886  	Ftop XSpanFix
 16887  	Fbot XSpanFix
 16888  } /* renderproto.h:176:3 */
 16889  
 16890  // requests and replies
 16891  type XRenderQueryVersionReq = struct {
 16892  	FreqType       CARD8
 16893  	FrenderReqType CARD8
 16894  	Flength        CARD16
 16895  	FmajorVersion  CARD32
 16896  	FminorVersion  CARD32
 16897  } /* renderproto.h:189:3 */
 16898  
 16899  type XRenderQueryVersionReply = struct {
 16900  	Ftype           BYTE
 16901  	Fpad1           BYTE
 16902  	FsequenceNumber CARD16
 16903  	Flength         CARD32
 16904  	FmajorVersion   CARD32
 16905  	FminorVersion   CARD32
 16906  	Fpad2           CARD32
 16907  	Fpad3           CARD32
 16908  	Fpad4           CARD32
 16909  	Fpad5           CARD32
 16910  } /* renderproto.h:204:3 */
 16911  
 16912  type XRenderQueryPictFormatsReq = struct {
 16913  	FreqType       CARD8
 16914  	FrenderReqType CARD8
 16915  	Flength        CARD16
 16916  } /* renderproto.h:212:3 */
 16917  
 16918  type XRenderQueryPictFormatsReply = struct {
 16919  	Ftype           BYTE
 16920  	Fpad1           BYTE
 16921  	FsequenceNumber CARD16
 16922  	Flength         CARD32
 16923  	FnumFormats     CARD32
 16924  	FnumScreens     CARD32
 16925  	FnumDepths      CARD32
 16926  	FnumVisuals     CARD32
 16927  	FnumSubpixel    CARD32
 16928  	Fpad5           CARD32
 16929  } /* renderproto.h:227:3 */
 16930  
 16931  type XRenderQueryPictIndexValuesReq = struct {
 16932  	FreqType       CARD8
 16933  	FrenderReqType CARD8
 16934  	Flength        CARD16
 16935  	Fformat        CARD32
 16936  } /* renderproto.h:236:3 */
 16937  
 16938  type XRenderQueryPictIndexValuesReply = struct {
 16939  	Ftype           BYTE
 16940  	Fpad1           BYTE
 16941  	FsequenceNumber CARD16
 16942  	Flength         CARD32
 16943  	FnumIndexValues CARD32
 16944  	Fpad2           CARD32
 16945  	Fpad3           CARD32
 16946  	Fpad4           CARD32
 16947  	Fpad5           CARD32
 16948  	Fpad6           CARD32
 16949  } /* renderproto.h:251:3 */
 16950  
 16951  type XRenderCreatePictureReq = struct {
 16952  	FreqType       CARD8
 16953  	FrenderReqType CARD8
 16954  	Flength        CARD16
 16955  	Fpid           CARD32
 16956  	Fdrawable      CARD32
 16957  	Fformat        CARD32
 16958  	Fmask          CARD32
 16959  } /* renderproto.h:263:3 */
 16960  
 16961  type XRenderChangePictureReq = struct {
 16962  	FreqType       CARD8
 16963  	FrenderReqType CARD8
 16964  	Flength        CARD16
 16965  	Fpicture       CARD32
 16966  	Fmask          CARD32
 16967  } /* renderproto.h:273:3 */
 16968  
 16969  type XRenderSetPictureClipRectanglesReq = struct {
 16970  	FreqType       CARD8
 16971  	FrenderReqType CARD8
 16972  	Flength        CARD16
 16973  	Fpicture       CARD32
 16974  	FxOrigin       INT16
 16975  	FyOrigin       INT16
 16976  } /* renderproto.h:284:3 */
 16977  
 16978  type XRenderFreePictureReq = struct {
 16979  	FreqType       CARD8
 16980  	FrenderReqType CARD8
 16981  	Flength        CARD16
 16982  	Fpicture       CARD32
 16983  } /* renderproto.h:293:3 */
 16984  
 16985  type XRenderCompositeReq = struct {
 16986  	FreqType       CARD8
 16987  	FrenderReqType CARD8
 16988  	Flength        CARD16
 16989  	Fop            CARD8
 16990  	Fpad1          CARD8
 16991  	Fpad2          CARD16
 16992  	Fsrc           CARD32
 16993  	Fmask          CARD32
 16994  	Fdst           CARD32
 16995  	FxSrc          INT16
 16996  	FySrc          INT16
 16997  	FxMask         INT16
 16998  	FyMask         INT16
 16999  	FxDst          INT16
 17000  	FyDst          INT16
 17001  	Fwidth         CARD16
 17002  	Fheight        CARD16
 17003  } /* renderproto.h:315:3 */
 17004  
 17005  type XRenderScaleReq = struct {
 17006  	FreqType       CARD8
 17007  	FrenderReqType CARD8
 17008  	Flength        CARD16
 17009  	Fsrc           CARD32
 17010  	Fdst           CARD32
 17011  	FcolorScale    CARD32
 17012  	FalphaScale    CARD32
 17013  	FxSrc          INT16
 17014  	FySrc          INT16
 17015  	FxDst          INT16
 17016  	FyDst          INT16
 17017  	Fwidth         CARD16
 17018  	Fheight        CARD16
 17019  } /* renderproto.h:333:3 */
 17020  
 17021  type XRenderTrapezoidsReq = struct {
 17022  	FreqType       CARD8
 17023  	FrenderReqType CARD8
 17024  	Flength        CARD16
 17025  	Fop            CARD8
 17026  	Fpad1          CARD8
 17027  	Fpad2          CARD16
 17028  	Fsrc           CARD32
 17029  	Fdst           CARD32
 17030  	FmaskFormat    CARD32
 17031  	FxSrc          INT16
 17032  	FySrc          INT16
 17033  } /* renderproto.h:349:3 */
 17034  
 17035  type XRenderTrianglesReq = struct {
 17036  	FreqType       CARD8
 17037  	FrenderReqType CARD8
 17038  	Flength        CARD16
 17039  	Fop            CARD8
 17040  	Fpad1          CARD8
 17041  	Fpad2          CARD16
 17042  	Fsrc           CARD32
 17043  	Fdst           CARD32
 17044  	FmaskFormat    CARD32
 17045  	FxSrc          INT16
 17046  	FySrc          INT16
 17047  } /* renderproto.h:365:3 */
 17048  
 17049  type XRenderTriStripReq = struct {
 17050  	FreqType       CARD8
 17051  	FrenderReqType CARD8
 17052  	Flength        CARD16
 17053  	Fop            CARD8
 17054  	Fpad1          CARD8
 17055  	Fpad2          CARD16
 17056  	Fsrc           CARD32
 17057  	Fdst           CARD32
 17058  	FmaskFormat    CARD32
 17059  	FxSrc          INT16
 17060  	FySrc          INT16
 17061  } /* renderproto.h:381:3 */
 17062  
 17063  type XRenderTriFanReq = struct {
 17064  	FreqType       CARD8
 17065  	FrenderReqType CARD8
 17066  	Flength        CARD16
 17067  	Fop            CARD8
 17068  	Fpad1          CARD8
 17069  	Fpad2          CARD16
 17070  	Fsrc           CARD32
 17071  	Fdst           CARD32
 17072  	FmaskFormat    CARD32
 17073  	FxSrc          INT16
 17074  	FySrc          INT16
 17075  } /* renderproto.h:397:3 */
 17076  
 17077  type XRenderCreateGlyphSetReq = struct {
 17078  	FreqType       CARD8
 17079  	FrenderReqType CARD8
 17080  	Flength        CARD16
 17081  	Fgsid          CARD32
 17082  	Fformat        CARD32
 17083  } /* renderproto.h:407:3 */
 17084  
 17085  type XRenderReferenceGlyphSetReq = struct {
 17086  	FreqType       CARD8
 17087  	FrenderReqType CARD8
 17088  	Flength        CARD16
 17089  	Fgsid          CARD32
 17090  	Fexisting      CARD32
 17091  } /* renderproto.h:417:3 */
 17092  
 17093  type XRenderFreeGlyphSetReq = struct {
 17094  	FreqType       CARD8
 17095  	FrenderReqType CARD8
 17096  	Flength        CARD16
 17097  	Fglyphset      CARD32
 17098  } /* renderproto.h:426:3 */
 17099  
 17100  type XRenderAddGlyphsReq = struct {
 17101  	FreqType       CARD8
 17102  	FrenderReqType CARD8
 17103  	Flength        CARD16
 17104  	Fglyphset      CARD32
 17105  	Fnglyphs       CARD32
 17106  } /* renderproto.h:436:3 */
 17107  
 17108  type XRenderFreeGlyphsReq = struct {
 17109  	FreqType       CARD8
 17110  	FrenderReqType CARD8
 17111  	Flength        CARD16
 17112  	Fglyphset      CARD32
 17113  } /* renderproto.h:445:3 */
 17114  
 17115  type XRenderCompositeGlyphsReq = struct {
 17116  	FreqType       CARD8
 17117  	FrenderReqType CARD8
 17118  	Flength        CARD16
 17119  	Fop            CARD8
 17120  	Fpad1          CARD8
 17121  	Fpad2          CARD16
 17122  	Fsrc           CARD32
 17123  	Fdst           CARD32
 17124  	FmaskFormat    CARD32
 17125  	Fglyphset      CARD32
 17126  	FxSrc          INT16
 17127  	FySrc          INT16
 17128  } /* renderproto.h:462:3 */
 17129  type XRenderCompositeGlyphs8Req = struct {
 17130  	FreqType       CARD8
 17131  	FrenderReqType CARD8
 17132  	Flength        CARD16
 17133  	Fop            CARD8
 17134  	Fpad1          CARD8
 17135  	Fpad2          CARD16
 17136  	Fsrc           CARD32
 17137  	Fdst           CARD32
 17138  	FmaskFormat    CARD32
 17139  	Fglyphset      CARD32
 17140  	FxSrc          INT16
 17141  	FySrc          INT16
 17142  } /* renderproto.h:462:30 */
 17143  type XRenderCompositeGlyphs16Req = struct {
 17144  	FreqType       CARD8
 17145  	FrenderReqType CARD8
 17146  	Flength        CARD16
 17147  	Fop            CARD8
 17148  	Fpad1          CARD8
 17149  	Fpad2          CARD16
 17150  	Fsrc           CARD32
 17151  	Fdst           CARD32
 17152  	FmaskFormat    CARD32
 17153  	Fglyphset      CARD32
 17154  	FxSrc          INT16
 17155  	FySrc          INT16
 17156  } /* renderproto.h:463:1 */
 17157  type XRenderCompositeGlyphs32Req = struct {
 17158  	FreqType       CARD8
 17159  	FrenderReqType CARD8
 17160  	Flength        CARD16
 17161  	Fop            CARD8
 17162  	Fpad1          CARD8
 17163  	Fpad2          CARD16
 17164  	Fsrc           CARD32
 17165  	Fdst           CARD32
 17166  	FmaskFormat    CARD32
 17167  	Fglyphset      CARD32
 17168  	FxSrc          INT16
 17169  	FySrc          INT16
 17170  } /* renderproto.h:463:30 */
 17171  
 17172  // 0.1 and higher
 17173  
 17174  type XRenderFillRectanglesReq = struct {
 17175  	FreqType       CARD8
 17176  	FrenderReqType CARD8
 17177  	Flength        CARD16
 17178  	Fop            CARD8
 17179  	Fpad1          CARD8
 17180  	Fpad2          CARD16
 17181  	Fdst           CARD32
 17182  	Fcolor         XRenderColor
 17183  } /* renderproto.h:480:3 */
 17184  
 17185  // 0.5 and higher
 17186  
 17187  type XRenderCreateCursorReq = struct {
 17188  	FreqType       CARD8
 17189  	FrenderReqType CARD8
 17190  	Flength        CARD16
 17191  	Fcid           CARD32
 17192  	Fsrc           CARD32
 17193  	Fx             CARD16
 17194  	Fy             CARD16
 17195  } /* renderproto.h:494:3 */
 17196  
 17197  // 0.6 and higher
 17198  
 17199  // This can't use an array because 32-bit values may be in bitfields
 17200  type XRenderTransform = struct {
 17201  	Fmatrix11 INT32
 17202  	Fmatrix12 INT32
 17203  	Fmatrix13 INT32
 17204  	Fmatrix21 INT32
 17205  	Fmatrix22 INT32
 17206  	Fmatrix23 INT32
 17207  	Fmatrix31 INT32
 17208  	Fmatrix32 INT32
 17209  	Fmatrix33 INT32
 17210  } /* renderproto.h:513:3 */
 17211  
 17212  type XRenderSetPictureTransformReq = struct {
 17213  	FreqType       CARD8
 17214  	FrenderReqType CARD8
 17215  	Flength        CARD16
 17216  	Fpicture       CARD32
 17217  	Ftransform     XRenderTransform
 17218  } /* renderproto.h:523:3 */
 17219  
 17220  type XRenderQueryFiltersReq = struct {
 17221  	FreqType       CARD8
 17222  	FrenderReqType CARD8
 17223  	Flength        CARD16
 17224  	Fdrawable      CARD32
 17225  } /* renderproto.h:532:3 */
 17226  
 17227  type XRenderQueryFiltersReply = struct {
 17228  	Ftype           BYTE
 17229  	Fpad1           BYTE
 17230  	FsequenceNumber CARD16
 17231  	Flength         CARD32
 17232  	FnumAliases     CARD32
 17233  	FnumFilters     CARD32
 17234  	Fpad2           CARD32
 17235  	Fpad3           CARD32
 17236  	Fpad4           CARD32
 17237  	Fpad5           CARD32
 17238  } /* renderproto.h:547:3 */
 17239  
 17240  type XRenderSetPictureFilterReq = struct {
 17241  	FreqType       CARD8
 17242  	FrenderReqType CARD8
 17243  	Flength        CARD16
 17244  	Fpicture       CARD32
 17245  	Fnbytes        CARD16
 17246  	Fpad           CARD16
 17247  } /* renderproto.h:558:3 */
 17248  
 17249  // 0.8 and higher
 17250  
 17251  type XAnimCursorElt = struct {
 17252  	Fcursor CARD32
 17253  	Fdelay  CARD32
 17254  } /* renderproto.h:567:3 */
 17255  
 17256  type XRenderCreateAnimCursorReq = struct {
 17257  	FreqType       CARD8
 17258  	FrenderReqType CARD8
 17259  	Flength        CARD16
 17260  	Fcid           CARD32
 17261  } /* renderproto.h:576:3 */
 17262  
 17263  // 0.9 and higher
 17264  
 17265  type XRenderAddTrapsReq = struct {
 17266  	FreqType       CARD8
 17267  	FrenderReqType CARD8
 17268  	Flength        CARD16
 17269  	Fpicture       CARD32
 17270  	FxOff          INT16
 17271  	FyOff          INT16
 17272  } /* renderproto.h:589:3 */
 17273  
 17274  // 0.10 and higher
 17275  
 17276  type XRenderCreateSolidFillReq = struct {
 17277  	FreqType       CARD8
 17278  	FrenderReqType CARD8
 17279  	Flength        CARD16
 17280  	Fpid           CARD32
 17281  	Fcolor         XRenderColor
 17282  } /* renderproto.h:601:3 */
 17283  
 17284  type XRenderCreateLinearGradientReq = struct {
 17285  	FreqType       CARD8
 17286  	FrenderReqType CARD8
 17287  	Flength        CARD16
 17288  	Fpid           CARD32
 17289  	Fp1            XPointFixed
 17290  	Fp2            XPointFixed
 17291  	FnStops        CARD32
 17292  } /* renderproto.h:613:3 */
 17293  
 17294  type XRenderCreateRadialGradientReq = struct {
 17295  	FreqType       CARD8
 17296  	FrenderReqType CARD8
 17297  	Flength        CARD16
 17298  	Fpid           CARD32
 17299  	Finner         XPointFixed
 17300  	Fouter         XPointFixed
 17301  	Finner_radius  INT32
 17302  	Fouter_radius  INT32
 17303  	FnStops        CARD32
 17304  } /* renderproto.h:627:3 */
 17305  
 17306  type XRenderCreateConicalGradientReq = struct {
 17307  	FreqType       CARD8
 17308  	FrenderReqType CARD8
 17309  	Flength        CARD16
 17310  	Fpid           CARD32
 17311  	Fcenter        XPointFixed
 17312  	Fangle         INT32
 17313  	FnStops        CARD32
 17314  } /* renderproto.h:639:3 */
 17315  
 17316  //
 17317  // Copyright © 2000 SuSE, Inc.
 17318  //
 17319  // Permission to use, copy, modify, distribute, and sell this software and its
 17320  // documentation for any purpose is hereby granted without fee, provided that
 17321  // the above copyright notice appear in all copies and that both that
 17322  // copyright notice and this permission notice appear in supporting
 17323  // documentation, and that the name of SuSE not be used in advertising or
 17324  // publicity pertaining to distribution of the software without specific,
 17325  // written prior permission.  SuSE makes no representations about the
 17326  // suitability of this software for any purpose.  It is provided "as is"
 17327  // without express or implied warranty.
 17328  //
 17329  // SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
 17330  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
 17331  // BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 17332  // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 17333  // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 17334  // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 17335  //
 17336  // Author:  Keith Packard, SuSE, Inc.
 17337  
 17338  //
 17339  //
 17340  // Copyright 1985, 1986, 1987, 1991, 1998  The Open Group
 17341  //
 17342  // Permission to use, copy, modify, distribute, and sell this software and its
 17343  // documentation for any purpose is hereby granted without fee, provided that
 17344  // the above copyright notice appear in all copies and that both that
 17345  // copyright notice and this permission notice appear in supporting
 17346  // documentation.
 17347  //
 17348  // The above copyright notice and this permission notice shall be included in
 17349  // all copies or substantial portions of the Software.
 17350  //
 17351  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 17352  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 17353  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 17354  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 17355  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 17356  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 17357  //
 17358  // Except as contained in this notice, the name of The Open Group shall not be
 17359  // used in advertising or otherwise to promote the sale, use or other dealings
 17360  // in this Software without prior written authorization from The Open Group.
 17361  //
 17362  
 17363  //	Xlib.h - Header definition and support file for the C subroutine
 17364  //	interface library (Xlib) to the X Window System Protocol (V11).
 17365  //	Structures and symbols starting with "_" are private to the library.
 17366  //
 17367  //
 17368  // Copyright 1989, 1991, 1998  The Open Group
 17369  //
 17370  // Permission to use, copy, modify, distribute, and sell this software and its
 17371  // documentation for any purpose is hereby granted without fee, provided that
 17372  // the above copyright notice appear in all copies and that both that
 17373  // copyright notice and this permission notice appear in supporting
 17374  // documentation.
 17375  //
 17376  // The above copyright notice and this permission notice shall be included in
 17377  // all copies or substantial portions of the Software.
 17378  //
 17379  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 17380  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 17381  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 17382  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 17383  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 17384  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 17385  //
 17386  // Except as contained in this notice, the name of The Open Group shall not be
 17387  // used in advertising or otherwise to promote the sale, use or other dealings
 17388  // in this Software without prior written authorization from The Open Group.
 17389  //  *
 17390  //
 17391  
 17392  // Definitions to make function prototypes manageable
 17393  
 17394  //
 17395  //  O/S-dependent (mis)feature macro definitions
 17396  //
 17397  // Copyright 1991, 1998  The Open Group
 17398  //
 17399  // Permission to use, copy, modify, distribute, and sell this software and its
 17400  // documentation for any purpose is hereby granted without fee, provided that
 17401  // the above copyright notice appear in all copies and that both that
 17402  // copyright notice and this permission notice appear in supporting
 17403  // documentation.
 17404  //
 17405  // The above copyright notice and this permission notice shall be included in
 17406  // all copies or substantial portions of the Software.
 17407  //
 17408  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 17409  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 17410  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 17411  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 17412  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 17413  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 17414  //
 17415  // Except as contained in this notice, the name of The Open Group shall not be
 17416  // used in advertising or otherwise to promote the sale, use or other dealings
 17417  // in this Software without prior written authorization from The Open Group.
 17418  //
 17419  
 17420  //**********************************************************
 17421  //
 17422  // Copyright 1987, 1998  The Open Group
 17423  //
 17424  // Permission to use, copy, modify, distribute, and sell this software and its
 17425  // documentation for any purpose is hereby granted without fee, provided that
 17426  // the above copyright notice appear in all copies and that both that
 17427  // copyright notice and this permission notice appear in supporting
 17428  // documentation.
 17429  //
 17430  // The above copyright notice and this permission notice shall be included in
 17431  // all copies or substantial portions of the Software.
 17432  //
 17433  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 17434  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 17435  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 17436  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 17437  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 17438  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 17439  //
 17440  // Except as contained in this notice, the name of The Open Group shall not be
 17441  // used in advertising or otherwise to promote the sale, use or other dealings
 17442  // in this Software without prior written authorization from The Open Group.
 17443  //
 17444  //
 17445  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 17446  //
 17447  //                         All Rights Reserved
 17448  //
 17449  // Permission to use, copy, modify, and distribute this software and its
 17450  // documentation for any purpose and without fee is hereby granted,
 17451  // provided that the above copyright notice appear in all copies and that
 17452  // both that copyright notice and this permission notice appear in
 17453  // supporting documentation, and that the name of Digital not be
 17454  // used in advertising or publicity pertaining to distribution of the
 17455  // software without specific, written prior permission.
 17456  //
 17457  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 17458  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 17459  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 17460  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 17461  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 17462  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 17463  // SOFTWARE.
 17464  //
 17465  // *****************************************************************
 17466  
 17467  // Copyright © 2000 SuSE, Inc.
 17468  //
 17469  // Permission to use, copy, modify, distribute, and sell this software and its
 17470  // documentation for any purpose is hereby granted without fee, provided that
 17471  // the above copyright notice appear in all copies and that both that
 17472  // copyright notice and this permission notice appear in supporting
 17473  // documentation, and that the name of SuSE not be used in advertising or
 17474  // publicity pertaining to distribution of the software without specific,
 17475  // written prior permission.  SuSE makes no representations about the
 17476  // suitability of this software for any purpose.  It is provided "as is"
 17477  // without express or implied warranty.
 17478  //
 17479  // SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
 17480  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
 17481  // BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 17482  // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 17483  // OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 17484  // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 17485  //
 17486  // Author:  Keith Packard, SuSE, Inc.
 17487  
 17488  type XRenderDirectFormat = struct {
 17489  	Fred       int16
 17490  	FredMask   int16
 17491  	Fgreen     int16
 17492  	FgreenMask int16
 17493  	Fblue      int16
 17494  	FblueMask  int16
 17495  	Falpha     int16
 17496  	FalphaMask int16
 17497  } /* Xrender.h:44:3 */
 17498  
 17499  type XRenderPictFormat = struct {
 17500  	Fid       PictFormat
 17501  	Ftype     int32
 17502  	Fdepth    int32
 17503  	Fdirect   XRenderDirectFormat
 17504  	Fcolormap Colormap
 17505  } /* Xrender.h:52:3 */
 17506  
 17507  type X_XRenderPictureAttributes = struct {
 17508  	Frepeat             int32
 17509  	F__ccgo_pad1        [4]byte
 17510  	Falpha_map          Picture
 17511  	Falpha_x_origin     int32
 17512  	Falpha_y_origin     int32
 17513  	Fclip_x_origin      int32
 17514  	Fclip_y_origin      int32
 17515  	Fclip_mask          Pixmap
 17516  	Fgraphics_exposures int32
 17517  	Fsubwindow_mode     int32
 17518  	Fpoly_edge          int32
 17519  	Fpoly_mode          int32
 17520  	Fdither             Atom
 17521  	Fcomponent_alpha    int32
 17522  	F__ccgo_pad2        [4]byte
 17523  } /* Xrender.h:67:9 */
 17524  
 17525  type XRenderPictureAttributes = X_XRenderPictureAttributes /* Xrender.h:81:3 */
 17526  
 17527  type XRenderColor1 = struct {
 17528  	Fred   uint16
 17529  	Fgreen uint16
 17530  	Fblue  uint16
 17531  	Falpha uint16
 17532  } /* Xrender.h:88:3 */
 17533  
 17534  type X_XGlyphInfo = struct {
 17535  	Fwidth  uint16
 17536  	Fheight uint16
 17537  	Fx      int16
 17538  	Fy      int16
 17539  	FxOff   int16
 17540  	FyOff   int16
 17541  } /* Xrender.h:90:9 */
 17542  
 17543  type XGlyphInfo1 = X_XGlyphInfo /* Xrender.h:97:3 */
 17544  
 17545  type X_XGlyphElt8 = struct {
 17546  	Fglyphset    GlyphSet
 17547  	Fchars       uintptr
 17548  	Fnchars      int32
 17549  	FxOff        int32
 17550  	FyOff        int32
 17551  	F__ccgo_pad1 [4]byte
 17552  } /* Xrender.h:99:9 */
 17553  
 17554  type XGlyphElt8 = X_XGlyphElt8 /* Xrender.h:105:3 */
 17555  
 17556  type X_XGlyphElt16 = struct {
 17557  	Fglyphset    GlyphSet
 17558  	Fchars       uintptr
 17559  	Fnchars      int32
 17560  	FxOff        int32
 17561  	FyOff        int32
 17562  	F__ccgo_pad1 [4]byte
 17563  } /* Xrender.h:107:9 */
 17564  
 17565  type XGlyphElt16 = X_XGlyphElt16 /* Xrender.h:113:3 */
 17566  
 17567  type X_XGlyphElt32 = struct {
 17568  	Fglyphset    GlyphSet
 17569  	Fchars       uintptr
 17570  	Fnchars      int32
 17571  	FxOff        int32
 17572  	FyOff        int32
 17573  	F__ccgo_pad1 [4]byte
 17574  } /* Xrender.h:115:9 */
 17575  
 17576  type XGlyphElt32 = X_XGlyphElt32 /* Xrender.h:121:3 */
 17577  
 17578  type XDouble = float64 /* Xrender.h:123:16 */
 17579  
 17580  type X_XPointDouble = struct {
 17581  	Fx XDouble
 17582  	Fy XDouble
 17583  } /* Xrender.h:125:9 */
 17584  
 17585  type XPointDouble = X_XPointDouble /* Xrender.h:127:3 */
 17586  
 17587  type XFixed = int32 /* Xrender.h:132:13 */
 17588  
 17589  type X_XPointFixed = struct {
 17590  	Fx XFixed
 17591  	Fy XFixed
 17592  } /* Xrender.h:134:9 */
 17593  
 17594  type XPointFixed1 = X_XPointFixed /* Xrender.h:136:3 */
 17595  
 17596  type X_XLineFixed = struct {
 17597  	Fp1 XPointFixed1
 17598  	Fp2 XPointFixed1
 17599  } /* Xrender.h:138:9 */
 17600  
 17601  type XLineFixed1 = X_XLineFixed /* Xrender.h:140:3 */
 17602  
 17603  type X_XTriangle = struct {
 17604  	Fp1 XPointFixed1
 17605  	Fp2 XPointFixed1
 17606  	Fp3 XPointFixed1
 17607  } /* Xrender.h:142:9 */
 17608  
 17609  type XTriangle1 = X_XTriangle /* Xrender.h:144:3 */
 17610  
 17611  type X_XCircle = struct {
 17612  	Fx      XFixed
 17613  	Fy      XFixed
 17614  	Fradius XFixed
 17615  } /* Xrender.h:146:9 */
 17616  
 17617  type XCircle = X_XCircle /* Xrender.h:150:3 */
 17618  
 17619  type X_XTrapezoid = struct {
 17620  	Ftop    XFixed
 17621  	Fbottom XFixed
 17622  	Fleft   XLineFixed1
 17623  	Fright  XLineFixed1
 17624  } /* Xrender.h:152:9 */
 17625  
 17626  type XTrapezoid1 = X_XTrapezoid /* Xrender.h:155:3 */
 17627  
 17628  type X_XTransform = struct{ Fmatrix [3][3]XFixed } /* Xrender.h:157:9 */
 17629  
 17630  type XTransform = X_XTransform /* Xrender.h:159:3 */
 17631  
 17632  type X_XFilters = struct {
 17633  	Fnfilter     int32
 17634  	F__ccgo_pad1 [4]byte
 17635  	Ffilter      uintptr
 17636  	Fnalias      int32
 17637  	F__ccgo_pad2 [4]byte
 17638  	Falias       uintptr
 17639  } /* Xrender.h:161:9 */
 17640  
 17641  type XFilters = X_XFilters /* Xrender.h:166:3 */
 17642  
 17643  type X_XIndexValue = struct {
 17644  	Fpixel uint64
 17645  	Fred   uint16
 17646  	Fgreen uint16
 17647  	Fblue  uint16
 17648  	Falpha uint16
 17649  } /* Xrender.h:168:9 */
 17650  
 17651  type XIndexValue1 = X_XIndexValue /* Xrender.h:171:3 */
 17652  
 17653  type X_XAnimCursor = struct {
 17654  	Fcursor Cursor
 17655  	Fdelay  uint64
 17656  } /* Xrender.h:173:9 */
 17657  
 17658  type XAnimCursor = X_XAnimCursor /* Xrender.h:176:3 */
 17659  
 17660  type X_XSpanFix = struct {
 17661  	Fleft  XFixed
 17662  	Fright XFixed
 17663  	Fy     XFixed
 17664  } /* Xrender.h:178:9 */
 17665  
 17666  type XSpanFix1 = X_XSpanFix /* Xrender.h:180:3 */
 17667  
 17668  type X_XTrap = struct {
 17669  	Ftop    XSpanFix1
 17670  	Fbottom XSpanFix1
 17671  } /* Xrender.h:182:9 */
 17672  
 17673  type XTrap1 = X_XTrap /* Xrender.h:184:3 */
 17674  
 17675  type X_XLinearGradient = struct {
 17676  	Fp1 XPointFixed1
 17677  	Fp2 XPointFixed1
 17678  } /* Xrender.h:186:9 */
 17679  
 17680  type XLinearGradient = X_XLinearGradient /* Xrender.h:189:3 */
 17681  
 17682  type X_XRadialGradient = struct {
 17683  	Finner XCircle
 17684  	Fouter XCircle
 17685  } /* Xrender.h:191:9 */
 17686  
 17687  type XRadialGradient = X_XRadialGradient /* Xrender.h:194:3 */
 17688  
 17689  type X_XConicalGradient = struct {
 17690  	Fcenter XPointFixed1
 17691  	Fangle  XFixed
 17692  } /* Xrender.h:196:9 */
 17693  
 17694  type XConicalGradient = X_XConicalGradient /* Xrender.h:199:3 */
 17695  
 17696  type XRenderVisual = struct {
 17697  	Fvisual uintptr
 17698  	Fformat uintptr
 17699  } /* Xrenderint.h:37:3 */
 17700  
 17701  type XRenderDepth = struct {
 17702  	Fdepth    int32
 17703  	Fnvisuals int32
 17704  	Fvisuals  uintptr
 17705  } /* Xrenderint.h:43:3 */
 17706  
 17707  type XRenderScreen = struct {
 17708  	Fdepths      uintptr
 17709  	Fndepths     int32
 17710  	F__ccgo_pad1 [4]byte
 17711  	Ffallback    uintptr
 17712  	Fsubpixel    int32
 17713  	F__ccgo_pad2 [4]byte
 17714  } /* Xrenderint.h:50:3 */
 17715  
 17716  type X_XRenderInfo = struct {
 17717  	Fmajor_version int32
 17718  	Fminor_version int32
 17719  	Fformat        uintptr
 17720  	Fnformat       int32
 17721  	F__ccgo_pad1   [4]byte
 17722  	Fscreen        uintptr
 17723  	Fnscreen       int32
 17724  	F__ccgo_pad2   [4]byte
 17725  	Fdepth         uintptr
 17726  	Fndepth        int32
 17727  	F__ccgo_pad3   [4]byte
 17728  	Fvisual        uintptr
 17729  	Fnvisual       int32
 17730  	F__ccgo_pad4   [4]byte
 17731  	Fsubpixel      uintptr
 17732  	Fnsubpixel     int32
 17733  	F__ccgo_pad5   [4]byte
 17734  	Ffilter        uintptr
 17735  	Fnfilter       int32
 17736  	F__ccgo_pad6   [4]byte
 17737  	Ffilter_alias  uintptr
 17738  	Fnfilter_alias int32
 17739  	F__ccgo_pad7   [4]byte
 17740  } /* Xrenderint.h:52:9 */
 17741  
 17742  type XRenderInfo = X_XRenderInfo /* Xrenderint.h:69:3 */
 17743  
 17744  // replaces XRenderExtDisplayInfo
 17745  type X_XRenderExtDisplayInfo = struct {
 17746  	Fnext    uintptr
 17747  	Fdisplay uintptr
 17748  	Fcodes   uintptr
 17749  	Finfo    uintptr
 17750  } /* Xrenderint.h:72:9 */
 17751  
 17752  // replaces XRenderExtDisplayInfo
 17753  type XRenderExtDisplayInfo = X_XRenderExtDisplayInfo /* Xrenderint.h:77:3 */
 17754  
 17755  // replaces XExtensionInfo
 17756  type X_XRenderExtInfo = struct {
 17757  	Fhead        uintptr
 17758  	Fcur         uintptr
 17759  	Fndisplays   int32
 17760  	F__ccgo_pad1 [4]byte
 17761  } /* Xrenderint.h:80:9 */
 17762  
 17763  // replaces XExtensionInfo
 17764  type XRenderExtInfo = X_XRenderExtInfo /* Xrenderint.h:84:3 */
 17765  
 17766  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 17767  // matters on alpha.  Note that this macro assumes that int is 32 bits
 17768  // except on WORD64 machines where it is 64 bits.
 17769  
 17770  func XXRenderAddTraps(tls *libc.TLS, dpy uintptr, picture Picture, xOff int32, yOff int32, traps uintptr, ntrap int32) { /* AddTrap.c:31:1: */
 17771  	bp := tls.Alloc(8)
 17772  	defer tls.Free(8)
 17773  
 17774  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 17775  	var req uintptr
 17776  	var n int32
 17777  	var len int64
 17778  	var max_req uint64
 17779  	if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 17780  		max_req = (*Display)(unsafe.Pointer(dpy)).Fbigreq_size
 17781  	} else {
 17782  		max_req = uint64((*Display)(unsafe.Pointer(dpy)).Fmax_request_size)
 17783  	}
 17784  
 17785  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 17786  		return
 17787  	}
 17788  
 17789  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 17790  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 17791  	}
 17792  	for ntrap != 0 {
 17793  		req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderAddTraps), uint64(Sz_xRenderAddTrapsReq))
 17794  		(*XRenderAddTrapsReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 17795  		(*XRenderAddTrapsReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderAddTraps)
 17796  		(*XRenderAddTrapsReq)(unsafe.Pointer(req)).Fpicture = CARD32(picture)
 17797  		(*XRenderAddTrapsReq)(unsafe.Pointer(req)).FxOff = INT16(xOff)
 17798  		(*XRenderAddTrapsReq)(unsafe.Pointer(req)).FyOff = INT16(yOff)
 17799  		n = ntrap
 17800  		len = int64(n) * int64(int32(Sz_xTrap)>>2)
 17801  		if uint64(len) > max_req-uint64((*XRenderAddTrapsReq)(unsafe.Pointer(req)).Flength) {
 17802  			n = int32((max_req - uint64((*XRenderAddTrapsReq)(unsafe.Pointer(req)).Flength)) / uint64(int32(Sz_xTrap)>>2))
 17803  			len = int64(n) * int64(int32(Sz_xTrap)>>2)
 17804  		}
 17805  		if int64((*XRenderAddTrapsReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 17806  			if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 17807  				{
 17808  					// var _BRdat CARD64 at bp, 8
 17809  					var _BRlen CARD32 = CARD32(int32((*XRenderAddTrapsReq)(unsafe.Pointer(req)).Flength) - 1)
 17810  					(*XRenderAddTrapsReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 17811  					*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 17812  					libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 17813  					*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 17814  					x11.X_XData32(tls, dpy, bp, uint32(4))
 17815  				}
 17816  			} else {
 17817  				len = len
 17818  				*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 17819  			}
 17820  		} else {
 17821  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 17822  		}
 17823  		len <<= 2
 17824  		{
 17825  			if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 17826  				libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, traps, uint64(int32(len)), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 17827  				*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len + int64(3)) & int64(libc.CplInt32(3)))
 17828  			} else {
 17829  				x11.X_XSend(tls, dpy, traps, len)
 17830  			}
 17831  		}
 17832  
 17833  		ntrap = ntrap - n
 17834  		traps += 24 * uintptr(n)
 17835  	}
 17836  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 17837  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 17838  	}
 17839  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 17840  		(*struct {
 17841  			f func(*libc.TLS, uintptr) int32
 17842  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 17843  	}
 17844  }
 17845  
 17846  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 17847  // matters on alpha.  Note that this macro assumes that int is 32 bits
 17848  // except on WORD64 machines where it is 64 bits.
 17849  
 17850  func XXRenderParseColor(tls *libc.TLS, dpy uintptr, spec uintptr, def uintptr) int32 { /* Color.c:30:1: */
 17851  	bp := tls.Alloc(24)
 17852  	defer tls.Free(24)
 17853  
 17854  	if !(libc.Xstrncmp(tls, spec, ts, uint64(5)) != 0) {
 17855  		// var elements [4]uint16 at bp, 8
 17856  
 17857  		var pShort uintptr
 17858  		var i int32
 17859  		var n int32
 17860  		var c int8
 17861  
 17862  		spec += uintptr(5)
 17863  		// Attempt to parse the value portion.
 17864  		pShort = bp /* &elements[0] */
 17865  		i = 0
 17866  	__1:
 17867  		if !(i < 4) {
 17868  			goto __3
 17869  		}
 17870  		{
 17871  			n = 0
 17872  			*(*uint16)(unsafe.Pointer(pShort)) = uint16(0)
 17873  			for int32(*(*int8)(unsafe.Pointer(spec))) != '/' && int32(*(*int8)(unsafe.Pointer(spec))) != 0 {
 17874  				if libc.PreIncInt32(&n, 1) > 4 {
 17875  					return 0
 17876  				}
 17877  				c = *(*int8)(unsafe.Pointer(libc.PostIncUintptr(&spec, 1)))
 17878  				libc.AssignShlPtrUint16(pShort, int(4))
 17879  				if int32(c) >= '0' && int32(c) <= '9' {
 17880  					*(*uint16)(unsafe.Pointer(pShort)) |= uint16(int32(c) - '0')
 17881  				} else if int32(c) >= 'a' && int32(c) <= 'f' {
 17882  					*(*uint16)(unsafe.Pointer(pShort)) |= uint16(int32(c) - ('a' - 10))
 17883  				} else {
 17884  					return 0
 17885  				}
 17886  			}
 17887  			if n == 0 {
 17888  				return 0
 17889  			}
 17890  			if n < 4 {
 17891  				*(*uint16)(unsafe.Pointer(pShort)) = uint16(uint64(*(*uint16)(unsafe.Pointer(pShort))) * uint64(0xFFFF) / uint64(int32(1)<<(n*4)-1))
 17892  			}
 17893  
 17894  		}
 17895  		goto __2
 17896  	__2:
 17897  		i++
 17898  		pShort += 2
 17899  		spec++
 17900  		goto __1
 17901  		goto __3
 17902  	__3:
 17903  		;
 17904  		(*XRenderColor1)(unsafe.Pointer(def)).Fred = *(*uint16)(unsafe.Pointer(bp))
 17905  		(*XRenderColor1)(unsafe.Pointer(def)).Fgreen = *(*uint16)(unsafe.Pointer(bp + 1*2))
 17906  		(*XRenderColor1)(unsafe.Pointer(def)).Fblue = *(*uint16)(unsafe.Pointer(bp + 2*2))
 17907  		(*XRenderColor1)(unsafe.Pointer(def)).Falpha = *(*uint16)(unsafe.Pointer(bp + 3*2))
 17908  	} else {
 17909  		// var coreColor XColor at bp+8, 16
 17910  
 17911  		var colormap Colormap
 17912  
 17913  		colormap = (*Screen)(unsafe.Pointer((*struct {
 17914  			Fext_data            uintptr
 17915  			Fprivate1            uintptr
 17916  			Ffd                  int32
 17917  			Fprivate2            int32
 17918  			Fproto_major_version int32
 17919  			Fproto_minor_version int32
 17920  			Fvendor              uintptr
 17921  			Fprivate3            XID
 17922  			Fprivate4            XID
 17923  			Fprivate5            XID
 17924  			Fprivate6            int32
 17925  			F__ccgo_pad1         [4]byte
 17926  			Fresource_alloc      uintptr
 17927  			Fbyte_order          int32
 17928  			Fbitmap_unit         int32
 17929  			Fbitmap_pad          int32
 17930  			Fbitmap_bit_order    int32
 17931  			Fnformats            int32
 17932  			F__ccgo_pad2         [4]byte
 17933  			Fpixmap_format       uintptr
 17934  			Fprivate8            int32
 17935  			Frelease             int32
 17936  			Fprivate9            uintptr
 17937  			Fprivate10           uintptr
 17938  			Fqlen                int32
 17939  			F__ccgo_pad3         [4]byte
 17940  			Flast_request_read   uint64
 17941  			Frequest             uint64
 17942  			Fprivate11           XPointer
 17943  			Fprivate12           XPointer
 17944  			Fprivate13           XPointer
 17945  			Fprivate14           XPointer
 17946  			Fmax_request_size    uint32
 17947  			F__ccgo_pad4         [4]byte
 17948  			Fdb                  uintptr
 17949  			Fprivate15           uintptr
 17950  			Fdisplay_name        uintptr
 17951  			Fdefault_screen      int32
 17952  			Fnscreens            int32
 17953  			Fscreens             uintptr
 17954  			Fmotion_buffer       uint64
 17955  			Fprivate16           uint64
 17956  			Fmin_keycode         int32
 17957  			Fmax_keycode         int32
 17958  			Fprivate17           XPointer
 17959  			Fprivate18           XPointer
 17960  			Fprivate19           int32
 17961  			F__ccgo_pad5         [4]byte
 17962  			Fxdefaults           uintptr
 17963  		})(unsafe.Pointer(dpy)).Fscreens + uintptr((*struct {
 17964  			Fext_data            uintptr
 17965  			Fprivate1            uintptr
 17966  			Ffd                  int32
 17967  			Fprivate2            int32
 17968  			Fproto_major_version int32
 17969  			Fproto_minor_version int32
 17970  			Fvendor              uintptr
 17971  			Fprivate3            XID
 17972  			Fprivate4            XID
 17973  			Fprivate5            XID
 17974  			Fprivate6            int32
 17975  			F__ccgo_pad1         [4]byte
 17976  			Fresource_alloc      uintptr
 17977  			Fbyte_order          int32
 17978  			Fbitmap_unit         int32
 17979  			Fbitmap_pad          int32
 17980  			Fbitmap_bit_order    int32
 17981  			Fnformats            int32
 17982  			F__ccgo_pad2         [4]byte
 17983  			Fpixmap_format       uintptr
 17984  			Fprivate8            int32
 17985  			Frelease             int32
 17986  			Fprivate9            uintptr
 17987  			Fprivate10           uintptr
 17988  			Fqlen                int32
 17989  			F__ccgo_pad3         [4]byte
 17990  			Flast_request_read   uint64
 17991  			Frequest             uint64
 17992  			Fprivate11           XPointer
 17993  			Fprivate12           XPointer
 17994  			Fprivate13           XPointer
 17995  			Fprivate14           XPointer
 17996  			Fmax_request_size    uint32
 17997  			F__ccgo_pad4         [4]byte
 17998  			Fdb                  uintptr
 17999  			Fprivate15           uintptr
 18000  			Fdisplay_name        uintptr
 18001  			Fdefault_screen      int32
 18002  			Fnscreens            int32
 18003  			Fscreens             uintptr
 18004  			Fmotion_buffer       uint64
 18005  			Fprivate16           uint64
 18006  			Fmin_keycode         int32
 18007  			Fmax_keycode         int32
 18008  			Fprivate17           XPointer
 18009  			Fprivate18           XPointer
 18010  			Fprivate19           int32
 18011  			F__ccgo_pad5         [4]byte
 18012  			Fxdefaults           uintptr
 18013  		})(unsafe.Pointer(dpy)).Fdefault_screen)*128)).Fcmap
 18014  		if !(x11.XXParseColor(tls, dpy, colormap, spec, bp+8) != 0) {
 18015  			return 0
 18016  		}
 18017  		(*XRenderColor1)(unsafe.Pointer(def)).Fred = (*XColor)(unsafe.Pointer(bp + 8 /* &coreColor */)).Fred
 18018  		(*XRenderColor1)(unsafe.Pointer(def)).Fgreen = (*XColor)(unsafe.Pointer(bp + 8 /* &coreColor */)).Fgreen
 18019  		(*XRenderColor1)(unsafe.Pointer(def)).Fblue = (*XColor)(unsafe.Pointer(bp + 8 /* &coreColor */)).Fblue
 18020  		(*XRenderColor1)(unsafe.Pointer(def)).Falpha = uint16(0xffff)
 18021  	}
 18022  	(*XRenderColor1)(unsafe.Pointer(def)).Fred = uint16(uint32(int32((*XRenderColor1)(unsafe.Pointer(def)).Fred)*int32((*XRenderColor1)(unsafe.Pointer(def)).Falpha)) / 0xffff)
 18023  	(*XRenderColor1)(unsafe.Pointer(def)).Fgreen = uint16(uint32(int32((*XRenderColor1)(unsafe.Pointer(def)).Fgreen)*int32((*XRenderColor1)(unsafe.Pointer(def)).Falpha)) / 0xffff)
 18024  	(*XRenderColor1)(unsafe.Pointer(def)).Fblue = uint16(uint32(int32((*XRenderColor1)(unsafe.Pointer(def)).Fblue)*int32((*XRenderColor1)(unsafe.Pointer(def)).Falpha)) / 0xffff)
 18025  	return 1
 18026  }
 18027  
 18028  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 18029  // matters on alpha.  Note that this macro assumes that int is 32 bits
 18030  // except on WORD64 machines where it is 64 bits.
 18031  
 18032  func XXRenderComposite(tls *libc.TLS, dpy uintptr, op int32, src Picture, mask Picture, dst Picture, src_x int32, src_y int32, mask_x int32, mask_y int32, dst_x int32, dst_y int32, width uint32, height uint32) { /* Composite.c:31:1: */
 18033  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 18034  	var req uintptr
 18035  
 18036  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 18037  		return
 18038  	}
 18039  
 18040  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18041  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 18042  	}
 18043  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderComposite), uint64(Sz_xRenderCompositeReq))
 18044  	(*XRenderCompositeReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 18045  	(*XRenderCompositeReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderComposite)
 18046  	(*XRenderCompositeReq)(unsafe.Pointer(req)).Fop = CARD8(op)
 18047  	(*XRenderCompositeReq)(unsafe.Pointer(req)).Fsrc = CARD32(src)
 18048  	(*XRenderCompositeReq)(unsafe.Pointer(req)).Fmask = CARD32(mask)
 18049  	(*XRenderCompositeReq)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 18050  	(*XRenderCompositeReq)(unsafe.Pointer(req)).FxSrc = INT16(src_x)
 18051  	(*XRenderCompositeReq)(unsafe.Pointer(req)).FySrc = INT16(src_y)
 18052  	(*XRenderCompositeReq)(unsafe.Pointer(req)).FxMask = INT16(mask_x)
 18053  	(*XRenderCompositeReq)(unsafe.Pointer(req)).FyMask = INT16(mask_y)
 18054  	(*XRenderCompositeReq)(unsafe.Pointer(req)).FxDst = INT16(dst_x)
 18055  	(*XRenderCompositeReq)(unsafe.Pointer(req)).FyDst = INT16(dst_y)
 18056  	(*XRenderCompositeReq)(unsafe.Pointer(req)).Fwidth = CARD16(width)
 18057  	(*XRenderCompositeReq)(unsafe.Pointer(req)).Fheight = CARD16(height)
 18058  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18059  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 18060  	}
 18061  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 18062  		(*struct {
 18063  			f func(*libc.TLS, uintptr) int32
 18064  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 18065  	}
 18066  }
 18067  
 18068  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 18069  // matters on alpha.  Note that this macro assumes that int is 32 bits
 18070  // except on WORD64 machines where it is 64 bits.
 18071  
 18072  func XXRenderCreateCursor(tls *libc.TLS, dpy uintptr, source Picture, x uint32, y uint32) Cursor { /* Cursor.c:30:1: */
 18073  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 18074  	var cid Cursor
 18075  	var req uintptr
 18076  
 18077  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 18078  		return uint64(0)
 18079  	}
 18080  
 18081  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18082  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 18083  	}
 18084  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCreateCursor), uint64(Sz_xRenderCreateCursorReq))
 18085  	(*XRenderCreateCursorReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 18086  	(*XRenderCreateCursorReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCreateCursor)
 18087  	(*XRenderCreateCursorReq)(unsafe.Pointer(req)).Fcid = CARD32(libc.AssignUint64(&cid, (*struct{ f func(*libc.TLS, uintptr) XID })(unsafe.Pointer(&struct{ uintptr }{(*struct {
 18088  		Fext_data            uintptr
 18089  		Fprivate1            uintptr
 18090  		Ffd                  int32
 18091  		Fprivate2            int32
 18092  		Fproto_major_version int32
 18093  		Fproto_minor_version int32
 18094  		Fvendor              uintptr
 18095  		Fprivate3            XID
 18096  		Fprivate4            XID
 18097  		Fprivate5            XID
 18098  		Fprivate6            int32
 18099  		F__ccgo_pad1         [4]byte
 18100  		Fresource_alloc      uintptr
 18101  		Fbyte_order          int32
 18102  		Fbitmap_unit         int32
 18103  		Fbitmap_pad          int32
 18104  		Fbitmap_bit_order    int32
 18105  		Fnformats            int32
 18106  		F__ccgo_pad2         [4]byte
 18107  		Fpixmap_format       uintptr
 18108  		Fprivate8            int32
 18109  		Frelease             int32
 18110  		Fprivate9            uintptr
 18111  		Fprivate10           uintptr
 18112  		Fqlen                int32
 18113  		F__ccgo_pad3         [4]byte
 18114  		Flast_request_read   uint64
 18115  		Frequest             uint64
 18116  		Fprivate11           XPointer
 18117  		Fprivate12           XPointer
 18118  		Fprivate13           XPointer
 18119  		Fprivate14           XPointer
 18120  		Fmax_request_size    uint32
 18121  		F__ccgo_pad4         [4]byte
 18122  		Fdb                  uintptr
 18123  		Fprivate15           uintptr
 18124  		Fdisplay_name        uintptr
 18125  		Fdefault_screen      int32
 18126  		Fnscreens            int32
 18127  		Fscreens             uintptr
 18128  		Fmotion_buffer       uint64
 18129  		Fprivate16           uint64
 18130  		Fmin_keycode         int32
 18131  		Fmax_keycode         int32
 18132  		Fprivate17           XPointer
 18133  		Fprivate18           XPointer
 18134  		Fprivate19           int32
 18135  		F__ccgo_pad5         [4]byte
 18136  		Fxdefaults           uintptr
 18137  	})(unsafe.Pointer(dpy)).Fresource_alloc})).f(tls, dpy)))
 18138  	(*XRenderCreateCursorReq)(unsafe.Pointer(req)).Fsrc = CARD32(source)
 18139  	(*XRenderCreateCursorReq)(unsafe.Pointer(req)).Fx = CARD16(x)
 18140  	(*XRenderCreateCursorReq)(unsafe.Pointer(req)).Fy = CARD16(y)
 18141  
 18142  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18143  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 18144  	}
 18145  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 18146  		(*struct {
 18147  			f func(*libc.TLS, uintptr) int32
 18148  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 18149  	}
 18150  	return cid
 18151  }
 18152  
 18153  func XXRenderCreateAnimCursor(tls *libc.TLS, dpy uintptr, ncursor int32, cursors uintptr) Cursor { /* Cursor.c:55:1: */
 18154  	bp := tls.Alloc(8)
 18155  	defer tls.Free(8)
 18156  
 18157  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 18158  	var cid Cursor
 18159  	var req uintptr
 18160  	var len int64
 18161  
 18162  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 18163  		return uint64(0)
 18164  	}
 18165  
 18166  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18167  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 18168  	}
 18169  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCreateAnimCursor), uint64(Sz_xRenderCreateAnimCursorReq))
 18170  	(*XRenderCreateAnimCursorReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 18171  	(*XRenderCreateAnimCursorReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCreateAnimCursor)
 18172  	(*XRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Fcid = CARD32(libc.AssignUint64(&cid, (*struct{ f func(*libc.TLS, uintptr) XID })(unsafe.Pointer(&struct{ uintptr }{(*struct {
 18173  		Fext_data            uintptr
 18174  		Fprivate1            uintptr
 18175  		Ffd                  int32
 18176  		Fprivate2            int32
 18177  		Fproto_major_version int32
 18178  		Fproto_minor_version int32
 18179  		Fvendor              uintptr
 18180  		Fprivate3            XID
 18181  		Fprivate4            XID
 18182  		Fprivate5            XID
 18183  		Fprivate6            int32
 18184  		F__ccgo_pad1         [4]byte
 18185  		Fresource_alloc      uintptr
 18186  		Fbyte_order          int32
 18187  		Fbitmap_unit         int32
 18188  		Fbitmap_pad          int32
 18189  		Fbitmap_bit_order    int32
 18190  		Fnformats            int32
 18191  		F__ccgo_pad2         [4]byte
 18192  		Fpixmap_format       uintptr
 18193  		Fprivate8            int32
 18194  		Frelease             int32
 18195  		Fprivate9            uintptr
 18196  		Fprivate10           uintptr
 18197  		Fqlen                int32
 18198  		F__ccgo_pad3         [4]byte
 18199  		Flast_request_read   uint64
 18200  		Frequest             uint64
 18201  		Fprivate11           XPointer
 18202  		Fprivate12           XPointer
 18203  		Fprivate13           XPointer
 18204  		Fprivate14           XPointer
 18205  		Fmax_request_size    uint32
 18206  		F__ccgo_pad4         [4]byte
 18207  		Fdb                  uintptr
 18208  		Fprivate15           uintptr
 18209  		Fdisplay_name        uintptr
 18210  		Fdefault_screen      int32
 18211  		Fnscreens            int32
 18212  		Fscreens             uintptr
 18213  		Fmotion_buffer       uint64
 18214  		Fprivate16           uint64
 18215  		Fmin_keycode         int32
 18216  		Fmax_keycode         int32
 18217  		Fprivate17           XPointer
 18218  		Fprivate18           XPointer
 18219  		Fprivate19           int32
 18220  		F__ccgo_pad5         [4]byte
 18221  		Fxdefaults           uintptr
 18222  	})(unsafe.Pointer(dpy)).Fresource_alloc})).f(tls, dpy)))
 18223  
 18224  	len = int64(ncursor) * int64(Sz_xAnimCursorElt) >> 2
 18225  	if int64((*XRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 18226  		if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 18227  			{
 18228  				// var _BRdat CARD64 at bp, 8
 18229  				var _BRlen CARD32 = CARD32(int32((*XRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength) - 1)
 18230  				(*XRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 18231  				*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 18232  				libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 18233  				*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 18234  				x11.X_XData32(tls, dpy, bp, uint32(4))
 18235  			}
 18236  		} else {
 18237  			len = len
 18238  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 18239  		}
 18240  	} else {
 18241  		*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 18242  	}
 18243  	len <<= 2
 18244  	x11.X_XData32(tls, dpy, cursors, uint32(len))
 18245  
 18246  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18247  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 18248  	}
 18249  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 18250  		(*struct {
 18251  			f func(*libc.TLS, uintptr) int32
 18252  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 18253  	}
 18254  	return cid
 18255  }
 18256  
 18257  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 18258  // matters on alpha.  Note that this macro assumes that int is 32 bits
 18259  // except on WORD64 machines where it is 64 bits.
 18260  
 18261  // precompute the maximum size of batching request allowed
 18262  
 18263  func XXRenderFillRectangle(tls *libc.TLS, dpy uintptr, op int32, dst Picture, color uintptr, x int32, y int32, width uint32, height uint32) { /* FillRect.c:35:1: */
 18264  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 18265  	var rect uintptr
 18266  	var req uintptr
 18267  
 18268  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 18269  		return
 18270  	}
 18271  
 18272  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18273  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 18274  	}
 18275  
 18276  	req = (*Display)(unsafe.Pointer(dpy)).Flast_req
 18277  	// if same as previous request, with same drawable, batch requests
 18278  	if int32((*XRenderFillRectanglesReq)(unsafe.Pointer(req)).FreqType) == (*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode && int32((*XRenderFillRectanglesReq)(unsafe.Pointer(req)).FrenderReqType) == X_RenderFillRectangles && int32((*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fop) == op && Picture((*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fdst) == dst && int32((*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fred) == int32((*XRenderColor1)(unsafe.Pointer(color)).Fred) && int32((*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fgreen) == int32((*XRenderColor1)(unsafe.Pointer(color)).Fgreen) && int32((*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fblue) == int32((*XRenderColor1)(unsafe.Pointer(color)).Fblue) && int32((*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Falpha) == int32((*XRenderColor1)(unsafe.Pointer(color)).Falpha) && (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(Sz_xRectangle) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax && (int64((*Display)(unsafe.Pointer(dpy)).Fbufptr)-int64(req))/1 < int64(Sz_xRenderFillRectanglesReq+FRCTSPERBATCH*Sz_xRectangle) {
 18279  		*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(int32(Sz_xRectangle) >> 2)
 18280  		rect = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 18281  		*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(Sz_xRectangle)
 18282  	} else {
 18283  		req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderFillRectangles), uint64(Sz_xRenderFillRectanglesReq+Sz_xRectangle))
 18284  
 18285  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 18286  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderFillRectangles)
 18287  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fop = CARD8(op)
 18288  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 18289  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fred = (*XRenderColor1)(unsafe.Pointer(color)).Fred
 18290  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fgreen = (*XRenderColor1)(unsafe.Pointer(color)).Fgreen
 18291  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fblue = (*XRenderColor1)(unsafe.Pointer(color)).Fblue
 18292  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Falpha = (*XRenderColor1)(unsafe.Pointer(color)).Falpha
 18293  
 18294  		rect = req + uintptr(1)*20
 18295  	}
 18296  	(*XRectangle1)(unsafe.Pointer(rect)).Fx = INT16(x)
 18297  	(*XRectangle1)(unsafe.Pointer(rect)).Fy = INT16(y)
 18298  	(*XRectangle1)(unsafe.Pointer(rect)).Fwidth = CARD16(width)
 18299  	(*XRectangle1)(unsafe.Pointer(rect)).Fheight = CARD16(height)
 18300  
 18301  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18302  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 18303  	}
 18304  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 18305  		(*struct {
 18306  			f func(*libc.TLS, uintptr) int32
 18307  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 18308  	}
 18309  }
 18310  
 18311  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 18312  // matters on alpha.  Note that this macro assumes that int is 32 bits
 18313  // except on WORD64 machines where it is 64 bits.
 18314  
 18315  // precompute the maximum size of batching request allowed
 18316  
 18317  func XXRenderFillRectangles(tls *libc.TLS, dpy uintptr, op int32, dst Picture, color uintptr, rectangles uintptr, n_rects int32) { /* FillRects.c:35:1: */
 18318  	bp := tls.Alloc(8)
 18319  	defer tls.Free(8)
 18320  
 18321  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 18322  	var req uintptr
 18323  	var len int64
 18324  	var n int32
 18325  
 18326  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 18327  		return
 18328  	}
 18329  
 18330  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18331  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 18332  	}
 18333  
 18334  	for n_rects != 0 {
 18335  		req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderFillRectangles), uint64(Sz_xRenderFillRectanglesReq))
 18336  
 18337  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 18338  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderFillRectangles)
 18339  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fop = CARD8(op)
 18340  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 18341  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fred = (*XRenderColor1)(unsafe.Pointer(color)).Fred
 18342  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fgreen = (*XRenderColor1)(unsafe.Pointer(color)).Fgreen
 18343  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fblue = (*XRenderColor1)(unsafe.Pointer(color)).Fblue
 18344  		(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Falpha = (*XRenderColor1)(unsafe.Pointer(color)).Falpha
 18345  
 18346  		n = n_rects
 18347  		len = int64(n) << 1
 18348  		if !(int32((*Display)(unsafe.Pointer(dpy)).Fbigreq_size) != 0) && len > int64((*Display)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength)) {
 18349  			n = int32(((*Display)(unsafe.Pointer(dpy)).Fmax_request_size - uint32((*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength)) >> 1)
 18350  			len = int64(n) << 1
 18351  		}
 18352  		if int64((*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 18353  			if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 18354  				{
 18355  					// var _BRdat CARD64 at bp, 8
 18356  					var _BRlen CARD32 = CARD32(int32((*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength) - 1)
 18357  					(*XRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 18358  					*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 18359  					libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 18360  					*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 18361  					x11.X_XData32(tls, dpy, bp, uint32(4))
 18362  				}
 18363  			} else {
 18364  				len = len
 18365  				*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 18366  			}
 18367  		} else {
 18368  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 18369  		}
 18370  		len <<= 2 /* watch out for macros... */
 18371  		{
 18372  			if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 18373  				libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, rectangles, uint64(int32(len)), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 18374  				*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len + int64(3)) & int64(libc.CplInt32(3)))
 18375  			} else {
 18376  				x11.X_XSend(tls, dpy, rectangles, len)
 18377  			}
 18378  		}
 18379  
 18380  		n_rects = n_rects - n
 18381  		rectangles += 8 * uintptr(n)
 18382  	}
 18383  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18384  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 18385  	}
 18386  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 18387  		(*struct {
 18388  			f func(*libc.TLS, uintptr) int32
 18389  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 18390  	}
 18391  }
 18392  
 18393  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 18394  // matters on alpha.  Note that this macro assumes that int is 32 bits
 18395  // except on WORD64 machines where it is 64 bits.
 18396  
 18397  // Copyright (C) 1992-2021 Free Software Foundation, Inc.
 18398  //
 18399  // This file is part of GCC.
 18400  //
 18401  // GCC is free software; you can redistribute it and/or modify it under
 18402  // the terms of the GNU General Public License as published by the Free
 18403  // Software Foundation; either version 3, or (at your option) any later
 18404  // version.
 18405  //
 18406  // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
 18407  // WARRANTY; without even the implied warranty of MERCHANTABILITY or
 18408  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 18409  // for more details.
 18410  //
 18411  // Under Section 7 of GPL version 3, you are granted additional
 18412  // permissions described in the GCC Runtime Library Exception, version
 18413  // 3.1, as published by the Free Software Foundation.
 18414  //
 18415  // You should have received a copy of the GNU General Public License and
 18416  // a copy of the GCC Runtime Library Exception along with this program;
 18417  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 18418  // <http://www.gnu.org/licenses/>.
 18419  
 18420  // This administrivia gets added to the beginning of limits.h
 18421  //    if the system has its own version of limits.h.
 18422  
 18423  // We use _GCC_LIMITS_H_ because we want this not to match
 18424  //    any macros that the system's limits.h uses for its own purposes.
 18425  
 18426  // Use "..." so that we find syslimits.h only in this same directory.
 18427  // syslimits.h stands for the system's own limits.h file.
 18428  //    If we can use it ok unmodified, then we install this text.
 18429  //    If fixincludes fixes it, then the fixed version is installed
 18430  //    instead of this text.
 18431  
 18432  // Copyright (c) 2000, 2004-2007, 2009 Apple Inc. All rights reserved.
 18433  //
 18434  // @APPLE_LICENSE_HEADER_START@
 18435  //
 18436  // This file contains Original Code and/or Modifications of Original Code
 18437  // as defined in and that are subject to the Apple Public Source License
 18438  // Version 2.0 (the 'License'). You may not use this file except in
 18439  // compliance with the License. Please obtain a copy of the License at
 18440  // http://www.opensource.apple.com/apsl/ and read it before using this
 18441  // file.
 18442  //
 18443  // The Original Code and all software distributed under the License are
 18444  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 18445  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 18446  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 18447  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 18448  // Please see the License for the specific language governing rights and
 18449  // limitations under the License.
 18450  //
 18451  // @APPLE_LICENSE_HEADER_END@
 18452  //	$NetBSD: limits.h,v 1.8 1996/10/21 05:10:50 jtc Exp $
 18453  
 18454  // Copyright (c) 1988, 1993
 18455  //	The Regents of the University of California.  All rights reserved.
 18456  //
 18457  // Redistribution and use in source and binary forms, with or without
 18458  // modification, are permitted provided that the following conditions
 18459  // are met:
 18460  // 1. Redistributions of source code must retain the above copyright
 18461  //    notice, this list of conditions and the following disclaimer.
 18462  // 2. Redistributions in binary form must reproduce the above copyright
 18463  //    notice, this list of conditions and the following disclaimer in the
 18464  //    documentation and/or other materials provided with the distribution.
 18465  // 3. All advertising materials mentioning features or use of this software
 18466  //    must display the following acknowledgement:
 18467  //	This product includes software developed by the University of
 18468  //	California, Berkeley and its contributors.
 18469  // 4. Neither the name of the University nor the names of its contributors
 18470  //    may be used to endorse or promote products derived from this software
 18471  //    without specific prior written permission.
 18472  //
 18473  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 18474  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 18475  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 18476  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 18477  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 18478  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 18479  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 18480  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 18481  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 18482  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 18483  // SUCH DAMAGE.
 18484  //
 18485  //	@(#)limits.h	8.2 (Berkeley) 1/4/94
 18486  
 18487  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 18488  //
 18489  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 18490  //
 18491  // This file contains Original Code and/or Modifications of Original Code
 18492  // as defined in and that are subject to the Apple Public Source License
 18493  // Version 2.0 (the 'License'). You may not use this file except in
 18494  // compliance with the License. The rights granted to you under the License
 18495  // may not be used to create, or enable the creation or redistribution of,
 18496  // unlawful or unlicensed copies of an Apple operating system, or to
 18497  // circumvent, violate, or enable the circumvention or violation of, any
 18498  // terms of an Apple operating system software license agreement.
 18499  //
 18500  // Please obtain a copy of the License at
 18501  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 18502  //
 18503  // The Original Code and all software distributed under the License are
 18504  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 18505  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 18506  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 18507  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 18508  // Please see the License for the specific language governing rights and
 18509  // limitations under the License.
 18510  //
 18511  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 18512  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 18513  // Copyright (c) 1991, 1993
 18514  //	The Regents of the University of California.  All rights reserved.
 18515  //
 18516  // This code is derived from software contributed to Berkeley by
 18517  // Berkeley Software Design, Inc.
 18518  //
 18519  // Redistribution and use in source and binary forms, with or without
 18520  // modification, are permitted provided that the following conditions
 18521  // are met:
 18522  // 1. Redistributions of source code must retain the above copyright
 18523  //    notice, this list of conditions and the following disclaimer.
 18524  // 2. Redistributions in binary form must reproduce the above copyright
 18525  //    notice, this list of conditions and the following disclaimer in the
 18526  //    documentation and/or other materials provided with the distribution.
 18527  // 3. All advertising materials mentioning features or use of this software
 18528  //    must display the following acknowledgement:
 18529  //	This product includes software developed by the University of
 18530  //	California, Berkeley and its contributors.
 18531  // 4. Neither the name of the University nor the names of its contributors
 18532  //    may be used to endorse or promote products derived from this software
 18533  //    without specific prior written permission.
 18534  //
 18535  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 18536  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 18537  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 18538  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 18539  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 18540  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 18541  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 18542  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 18543  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 18544  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 18545  // SUCH DAMAGE.
 18546  //
 18547  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 18548  
 18549  // This is the `system' limits.h, independent of any particular
 18550  //  compiler.  GCC provides its own limits.h which can be found in
 18551  //  /usr/lib/gcc, although it is not very informative.
 18552  //  This file is public domain.
 18553  
 18554  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 18555  // Copyright (c) 1988, 1993
 18556  //	The Regents of the University of California.  All rights reserved.
 18557  //
 18558  // Redistribution and use in source and binary forms, with or without
 18559  // modification, are permitted provided that the following conditions
 18560  // are met:
 18561  // 1. Redistributions of source code must retain the above copyright
 18562  //    notice, this list of conditions and the following disclaimer.
 18563  // 2. Redistributions in binary form must reproduce the above copyright
 18564  //    notice, this list of conditions and the following disclaimer in the
 18565  //    documentation and/or other materials provided with the distribution.
 18566  // 3. All advertising materials mentioning features or use of this software
 18567  //    must display the following acknowledgement:
 18568  //	This product includes software developed by the University of
 18569  //	California, Berkeley and its contributors.
 18570  // 4. Neither the name of the University nor the names of its contributors
 18571  //    may be used to endorse or promote products derived from this software
 18572  //    without specific prior written permission.
 18573  //
 18574  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 18575  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 18576  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 18577  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 18578  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 18579  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 18580  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 18581  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 18582  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 18583  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 18584  // SUCH DAMAGE.
 18585  //
 18586  //	@(#)limits.h	8.3 (Berkeley) 1/4/94
 18587  
 18588  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 18589  //
 18590  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 18591  //
 18592  // This file contains Original Code and/or Modifications of Original Code
 18593  // as defined in and that are subject to the Apple Public Source License
 18594  // Version 2.0 (the 'License'). You may not use this file except in
 18595  // compliance with the License. The rights granted to you under the License
 18596  // may not be used to create, or enable the creation or redistribution of,
 18597  // unlawful or unlicensed copies of an Apple operating system, or to
 18598  // circumvent, violate, or enable the circumvention or violation of, any
 18599  // terms of an Apple operating system software license agreement.
 18600  //
 18601  // Please obtain a copy of the License at
 18602  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 18603  //
 18604  // The Original Code and all software distributed under the License are
 18605  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 18606  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 18607  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 18608  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 18609  // Please see the License for the specific language governing rights and
 18610  // limitations under the License.
 18611  //
 18612  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 18613  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 18614  // Copyright (c) 1991, 1993
 18615  //	The Regents of the University of California.  All rights reserved.
 18616  //
 18617  // This code is derived from software contributed to Berkeley by
 18618  // Berkeley Software Design, Inc.
 18619  //
 18620  // Redistribution and use in source and binary forms, with or without
 18621  // modification, are permitted provided that the following conditions
 18622  // are met:
 18623  // 1. Redistributions of source code must retain the above copyright
 18624  //    notice, this list of conditions and the following disclaimer.
 18625  // 2. Redistributions in binary form must reproduce the above copyright
 18626  //    notice, this list of conditions and the following disclaimer in the
 18627  //    documentation and/or other materials provided with the distribution.
 18628  // 3. All advertising materials mentioning features or use of this software
 18629  //    must display the following acknowledgement:
 18630  //	This product includes software developed by the University of
 18631  //	California, Berkeley and its contributors.
 18632  // 4. Neither the name of the University nor the names of its contributors
 18633  //    may be used to endorse or promote products derived from this software
 18634  //    without specific prior written permission.
 18635  //
 18636  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 18637  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 18638  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 18639  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 18640  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 18641  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 18642  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 18643  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 18644  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 18645  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 18646  // SUCH DAMAGE.
 18647  //
 18648  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 18649  
 18650  // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
 18651  
 18652  // According to ANSI (section 2.2.4.2), the values below must be usable by
 18653  // #if preprocessing directives.  Additionally, the expression must have the
 18654  // same type as would an expression that is an object of the corresponding
 18655  // type converted according to the integral promotions.  The subtraction for
 18656  // INT_MIN and LONG_MIN is so the value is not unsigned; 2147483648 is an
 18657  // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
 18658  // These numbers work for pcc as well.  The UINT_MAX and ULONG_MAX values
 18659  // are written as hex so that GCC will be quiet about large integer constants.
 18660  
 18661  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
 18662  //
 18663  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 18664  //
 18665  // This file contains Original Code and/or Modifications of Original Code
 18666  // as defined in and that are subject to the Apple Public Source License
 18667  // Version 2.0 (the 'License'). You may not use this file except in
 18668  // compliance with the License. The rights granted to you under the License
 18669  // may not be used to create, or enable the creation or redistribution of,
 18670  // unlawful or unlicensed copies of an Apple operating system, or to
 18671  // circumvent, violate, or enable the circumvention or violation of, any
 18672  // terms of an Apple operating system software license agreement.
 18673  //
 18674  // Please obtain a copy of the License at
 18675  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 18676  //
 18677  // The Original Code and all software distributed under the License are
 18678  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 18679  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 18680  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 18681  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 18682  // Please see the License for the specific language governing rights and
 18683  // limitations under the License.
 18684  //
 18685  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 18686  //	$NetBSD: syslimits.h,v 1.15 1997/06/25 00:48:09 lukem Exp $
 18687  
 18688  // Copyright (c) 1988, 1993
 18689  //	The Regents of the University of California.  All rights reserved.
 18690  //
 18691  // Redistribution and use in source and binary forms, with or without
 18692  // modification, are permitted provided that the following conditions
 18693  // are met:
 18694  // 1. Redistributions of source code must retain the above copyright
 18695  //    notice, this list of conditions and the following disclaimer.
 18696  // 2. Redistributions in binary form must reproduce the above copyright
 18697  //    notice, this list of conditions and the following disclaimer in the
 18698  //    documentation and/or other materials provided with the distribution.
 18699  // 3. All advertising materials mentioning features or use of this software
 18700  //    must display the following acknowledgement:
 18701  //	This product includes software developed by the University of
 18702  //	California, Berkeley and its contributors.
 18703  // 4. Neither the name of the University nor the names of its contributors
 18704  //    may be used to endorse or promote products derived from this software
 18705  //    without specific prior written permission.
 18706  //
 18707  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 18708  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 18709  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 18710  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 18711  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 18712  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 18713  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 18714  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 18715  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 18716  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 18717  // SUCH DAMAGE.
 18718  //
 18719  //	@(#)syslimits.h	8.1 (Berkeley) 6/2/93
 18720  
 18721  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 18722  //
 18723  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 18724  //
 18725  // This file contains Original Code and/or Modifications of Original Code
 18726  // as defined in and that are subject to the Apple Public Source License
 18727  // Version 2.0 (the 'License'). You may not use this file except in
 18728  // compliance with the License. The rights granted to you under the License
 18729  // may not be used to create, or enable the creation or redistribution of,
 18730  // unlawful or unlicensed copies of an Apple operating system, or to
 18731  // circumvent, violate, or enable the circumvention or violation of, any
 18732  // terms of an Apple operating system software license agreement.
 18733  //
 18734  // Please obtain a copy of the License at
 18735  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 18736  //
 18737  // The Original Code and all software distributed under the License are
 18738  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 18739  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 18740  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 18741  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 18742  // Please see the License for the specific language governing rights and
 18743  // limitations under the License.
 18744  //
 18745  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 18746  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 18747  // Copyright (c) 1991, 1993
 18748  //	The Regents of the University of California.  All rights reserved.
 18749  //
 18750  // This code is derived from software contributed to Berkeley by
 18751  // Berkeley Software Design, Inc.
 18752  //
 18753  // Redistribution and use in source and binary forms, with or without
 18754  // modification, are permitted provided that the following conditions
 18755  // are met:
 18756  // 1. Redistributions of source code must retain the above copyright
 18757  //    notice, this list of conditions and the following disclaimer.
 18758  // 2. Redistributions in binary form must reproduce the above copyright
 18759  //    notice, this list of conditions and the following disclaimer in the
 18760  //    documentation and/or other materials provided with the distribution.
 18761  // 3. All advertising materials mentioning features or use of this software
 18762  //    must display the following acknowledgement:
 18763  //	This product includes software developed by the University of
 18764  //	California, Berkeley and its contributors.
 18765  // 4. Neither the name of the University nor the names of its contributors
 18766  //    may be used to endorse or promote products derived from this software
 18767  //    without specific prior written permission.
 18768  //
 18769  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 18770  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 18771  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 18772  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 18773  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 18774  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 18775  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 18776  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 18777  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 18778  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 18779  // SUCH DAMAGE.
 18780  //
 18781  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 18782  
 18783  // max bytes for an exec function
 18784  
 18785  // Note: CHILD_MAX *must* be less than hard_maxproc, which is set at
 18786  // compile time; you *cannot* set it higher than the hard limit!!
 18787  
 18788  // = ((PRIO_MAX - PRIO_MIN) / 2) + 1
 18789  // range: 0 - 39 [(2 * NZERO) - 1]
 18790  // 0 is not actually used
 18791  
 18792  // Actually for XSI Visible
 18793  
 18794  // Removed in Issue 6
 18795  
 18796  // NZERO to be defined here. TBD. See also sys/param.h
 18797  
 18798  // Copyright (C) 1991-2021 Free Software Foundation, Inc.
 18799  //
 18800  // This file is part of GCC.
 18801  //
 18802  // GCC is free software; you can redistribute it and/or modify it under
 18803  // the terms of the GNU General Public License as published by the Free
 18804  // Software Foundation; either version 3, or (at your option) any later
 18805  // version.
 18806  //
 18807  // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
 18808  // WARRANTY; without even the implied warranty of MERCHANTABILITY or
 18809  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 18810  // for more details.
 18811  //
 18812  // Under Section 7 of GPL version 3, you are granted additional
 18813  // permissions described in the GCC Runtime Library Exception, version
 18814  // 3.1, as published by the Free Software Foundation.
 18815  //
 18816  // You should have received a copy of the GNU General Public License and
 18817  // a copy of the GCC Runtime Library Exception along with this program;
 18818  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 18819  // <http://www.gnu.org/licenses/>.
 18820  
 18821  // Number of bits in a `char'.
 18822  
 18823  // Maximum length of a multibyte character.
 18824  
 18825  // Minimum and maximum values a `signed char' can hold.
 18826  
 18827  // Maximum value an `unsigned char' can hold.  (Minimum is 0).
 18828  
 18829  // Minimum and maximum values a `char' can hold.
 18830  
 18831  // Minimum and maximum values a `signed short int' can hold.
 18832  
 18833  // Maximum value an `unsigned short int' can hold.  (Minimum is 0).
 18834  
 18835  // Minimum and maximum values a `signed int' can hold.
 18836  
 18837  // Maximum value an `unsigned int' can hold.  (Minimum is 0).
 18838  
 18839  // Minimum and maximum values a `signed long int' can hold.
 18840  //    (Same as `int').
 18841  
 18842  // Maximum value an `unsigned long int' can hold.  (Minimum is 0).
 18843  
 18844  // Minimum and maximum values a `signed long long int' can hold.
 18845  
 18846  // Maximum value an `unsigned long long int' can hold.  (Minimum is 0).
 18847  
 18848  // Minimum and maximum values a `signed long long int' can hold.
 18849  
 18850  // Maximum value an `unsigned long long int' can hold.  (Minimum is 0).
 18851  
 18852  // This administrivia gets added to the end of limits.h
 18853  //    if the system has its own version of limits.h.
 18854  
 18855  func XXRenderQueryFilters(tls *libc.TLS, dpy uintptr, drawable Drawable) uintptr { /* Filter.c:30:10: */
 18856  	bp := tls.Alloc(33)
 18857  	defer tls.Free(33)
 18858  
 18859  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 18860  	var xri uintptr
 18861  	var req uintptr
 18862  	// var rep XRenderQueryFiltersReply at bp, 32
 18863  
 18864  	var filters uintptr
 18865  	var name uintptr
 18866  	// var len int8 at bp+32, 1
 18867  
 18868  	var i int32
 18869  	var nbytes uint64
 18870  	var nbytesAlias uint64
 18871  	var nbytesName uint64
 18872  	var reply_left uint64
 18873  
 18874  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 18875  		return uintptr(0)
 18876  	}
 18877  
 18878  	if !(XXRenderQueryFormats(tls, dpy) != 0) {
 18879  		return uintptr(0)
 18880  	}
 18881  
 18882  	xri = (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
 18883  	if (*XRenderInfo)(unsafe.Pointer(xri)).Fminor_version < 6 {
 18884  		return uintptr(0)
 18885  	}
 18886  
 18887  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18888  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 18889  	}
 18890  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderQueryFilters), uint64(Sz_xRenderQueryFiltersReq))
 18891  	(*XRenderQueryFiltersReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 18892  	(*XRenderQueryFiltersReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderQueryFilters)
 18893  	(*XRenderQueryFiltersReq)(unsafe.Pointer(req)).Fdrawable = CARD32(drawable)
 18894  	if !(x11.X_XReply(tls, dpy, bp, 0, XFalse) != 0) {
 18895  		if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18896  			(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 18897  		}
 18898  		if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 18899  			(*struct {
 18900  				f func(*libc.TLS, uintptr) int32
 18901  			})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 18902  		}
 18903  		return uintptr(0)
 18904  	}
 18905  
 18906  	// Limit each component of combined size to 1/4 the max, which is far
 18907  	// more than they should ever possibly need.
 18908  	if (*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).Flength < CARD32(int32(0x7fffffff)>>2) && uint64((*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).FnumFilters) < uint64(0x7fffffff/4)/uint64(unsafe.Sizeof(uintptr(0))) && uint64((*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).FnumAliases) < uint64(0x7fffffff/4)/uint64(unsafe.Sizeof(int16(0))) {
 18909  		// Compute total number of bytes for filter names
 18910  		nbytes = uint64((*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).Flength) << 2
 18911  		nbytesAlias = uint64((*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).FnumAliases * CARD32(2))
 18912  		if (*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).FnumAliases&CARD32(1) != 0 {
 18913  			nbytesAlias = nbytesAlias + uint64(2)
 18914  		}
 18915  		nbytesName = nbytes - nbytesAlias
 18916  
 18917  		// Allocate one giant block for the whole data structure
 18918  		filters = libc.Xmalloc(tls, uint64(unsafe.Sizeof(XFilters{}))+uint64((*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).FnumFilters)*uint64(unsafe.Sizeof(uintptr(0)))+uint64((*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).FnumAliases)*uint64(unsafe.Sizeof(int16(0)))+nbytesName)
 18919  	} else {
 18920  		filters = uintptr(0)
 18921  	}
 18922  
 18923  	if !(filters != 0) {
 18924  		x11.X_XEatDataWords(tls, dpy, uint64((*XRenderQueryFiltersReply)(unsafe.Pointer(bp /* &rep */)).Flength))
 18925  		if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18926  			(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 18927  		}
 18928  		if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 18929  			(*struct {
 18930  				f func(*libc.TLS, uintptr) int32
 18931  			})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 18932  		}
 18933  		return uintptr(0)
 18934  	}
 18935  
 18936  	// Layout:
 18937  	//	XFilters
 18938  	//	numFilters  char * pointers to filter names
 18939  	//	numAliases  short alias values
 18940  	//	nbytesName  char strings
 18941  
 18942  	(*XFilters)(unsafe.Pointer(filters)).Fnfilter = int32((*XRenderQueryFiltersReply)(unsafe.Pointer(bp /* &rep */)).FnumFilters)
 18943  	(*XFilters)(unsafe.Pointer(filters)).Fnalias = int32((*XRenderQueryFiltersReply)(unsafe.Pointer(bp /* &rep */)).FnumAliases)
 18944  	(*XFilters)(unsafe.Pointer(filters)).Ffilter = filters + uintptr(1)*32
 18945  	(*XFilters)(unsafe.Pointer(filters)).Falias = (*XFilters)(unsafe.Pointer(filters)).Ffilter + uintptr((*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).FnumFilters)*8
 18946  	name = (*XFilters)(unsafe.Pointer(filters)).Falias + uintptr((*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).FnumAliases)*2
 18947  
 18948  	// Read the filter aliases
 18949  	x11.X_XReadPad(tls, dpy, (*XFilters)(unsafe.Pointer(filters)).Falias, int64(CARD32(2)*(*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).FnumAliases))
 18950  	reply_left = uint64(CARD32(8) + (*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).Flength - CARD32(2)*(*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).FnumAliases)
 18951  
 18952  	// Read the filter names
 18953  	for i = 0; CARD32(i) < (*XRenderQueryFiltersReply)(unsafe.Pointer(bp /* &rep */)).FnumFilters; i++ {
 18954  		var l int32
 18955  		x11.X_XRead(tls, dpy, bp+32, int64(1))
 18956  		reply_left--
 18957  		l = int32(*(*int8)(unsafe.Pointer(bp + 32))) & 0xff
 18958  		if uint64(l)+uint64(1) > nbytesName {
 18959  			x11.X_XEatDataWords(tls, dpy, reply_left)
 18960  			libc.Xfree(tls, filters)
 18961  			if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18962  				(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 18963  			}
 18964  			if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 18965  				(*struct {
 18966  					f func(*libc.TLS, uintptr) int32
 18967  				})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 18968  			}
 18969  			return uintptr(0)
 18970  		}
 18971  		nbytesName = nbytesName - uint64(l+1)
 18972  		*(*uintptr)(unsafe.Pointer((*XFilters)(unsafe.Pointer(filters)).Ffilter + uintptr(i)*8)) = name
 18973  		x11.X_XRead(tls, dpy, name, int64(l))
 18974  		reply_left = reply_left - uint64(l)
 18975  		*(*int8)(unsafe.Pointer(name + uintptr(l))) = int8(0)
 18976  		name += uintptr(l + 1)
 18977  	}
 18978  	i = int32((int64(name) - int64((*XFilters)(unsafe.Pointer(filters)).Falias+uintptr((*XRenderQueryFiltersReply)(unsafe.Pointer(bp)).FnumAliases)*2)) / 1)
 18979  
 18980  	if i&3 != 0 {
 18981  		x11.X_XEatData(tls, dpy, uint64(4-i&3))
 18982  	}
 18983  
 18984  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 18985  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 18986  	}
 18987  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 18988  		(*struct {
 18989  			f func(*libc.TLS, uintptr) int32
 18990  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 18991  	}
 18992  	return filters
 18993  }
 18994  
 18995  func XXRenderSetPictureFilter(tls *libc.TLS, dpy uintptr, picture Picture, filter uintptr, params uintptr, nparams int32) { /* Filter.c:153:1: */
 18996  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 18997  	var req uintptr
 18998  	var nbytes int32 = int32(libc.Xstrlen(tls, filter))
 18999  
 19000  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 19001  		return
 19002  	}
 19003  
 19004  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19005  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 19006  	}
 19007  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderSetPictureFilter), uint64(Sz_xRenderSetPictureFilterReq))
 19008  	(*XRenderSetPictureFilterReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 19009  	(*XRenderSetPictureFilterReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderSetPictureFilter)
 19010  	(*XRenderSetPictureFilterReq)(unsafe.Pointer(req)).Fpicture = CARD32(picture)
 19011  	(*XRenderSetPictureFilterReq)(unsafe.Pointer(req)).Fnbytes = CARD16(nbytes)
 19012  	*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16((nbytes+3)>>2 + nparams)
 19013  	{
 19014  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19015  			libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, filter, uint64(nbytes), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 19016  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nbytes + 3) & libc.CplInt32(3))
 19017  		} else {
 19018  			x11.X_XSend(tls, dpy, filter, int64(nbytes))
 19019  		}
 19020  	}
 19021  
 19022  	{
 19023  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nparams<<2) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19024  			libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, params, uint64(nparams<<2), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 19025  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nparams<<2 + 3) & libc.CplInt32(3))
 19026  		} else {
 19027  			x11.X_XSend(tls, dpy, params, int64(nparams<<2))
 19028  		}
 19029  	}
 19030  
 19031  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19032  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 19033  	}
 19034  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 19035  		(*struct {
 19036  			f func(*libc.TLS, uintptr) int32
 19037  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 19038  	}
 19039  }
 19040  
 19041  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 19042  // matters on alpha.  Note that this macro assumes that int is 32 bits
 19043  // except on WORD64 machines where it is 64 bits.
 19044  
 19045  func XXRenderCreateGlyphSet(tls *libc.TLS, dpy uintptr, format uintptr) GlyphSet { /* Glyph.c:31:1: */
 19046  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 19047  	var gsid GlyphSet
 19048  	var req uintptr
 19049  
 19050  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 19051  		return uint64(0)
 19052  	}
 19053  
 19054  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19055  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 19056  	}
 19057  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCreateGlyphSet), uint64(Sz_xRenderCreateGlyphSetReq))
 19058  	(*XRenderCreateGlyphSetReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 19059  	(*XRenderCreateGlyphSetReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCreateGlyphSet)
 19060  	(*XRenderCreateGlyphSetReq)(unsafe.Pointer(req)).Fgsid = CARD32(libc.AssignUint64(&gsid, (*struct{ f func(*libc.TLS, uintptr) XID })(unsafe.Pointer(&struct{ uintptr }{(*struct {
 19061  		Fext_data            uintptr
 19062  		Fprivate1            uintptr
 19063  		Ffd                  int32
 19064  		Fprivate2            int32
 19065  		Fproto_major_version int32
 19066  		Fproto_minor_version int32
 19067  		Fvendor              uintptr
 19068  		Fprivate3            XID
 19069  		Fprivate4            XID
 19070  		Fprivate5            XID
 19071  		Fprivate6            int32
 19072  		F__ccgo_pad1         [4]byte
 19073  		Fresource_alloc      uintptr
 19074  		Fbyte_order          int32
 19075  		Fbitmap_unit         int32
 19076  		Fbitmap_pad          int32
 19077  		Fbitmap_bit_order    int32
 19078  		Fnformats            int32
 19079  		F__ccgo_pad2         [4]byte
 19080  		Fpixmap_format       uintptr
 19081  		Fprivate8            int32
 19082  		Frelease             int32
 19083  		Fprivate9            uintptr
 19084  		Fprivate10           uintptr
 19085  		Fqlen                int32
 19086  		F__ccgo_pad3         [4]byte
 19087  		Flast_request_read   uint64
 19088  		Frequest             uint64
 19089  		Fprivate11           XPointer
 19090  		Fprivate12           XPointer
 19091  		Fprivate13           XPointer
 19092  		Fprivate14           XPointer
 19093  		Fmax_request_size    uint32
 19094  		F__ccgo_pad4         [4]byte
 19095  		Fdb                  uintptr
 19096  		Fprivate15           uintptr
 19097  		Fdisplay_name        uintptr
 19098  		Fdefault_screen      int32
 19099  		Fnscreens            int32
 19100  		Fscreens             uintptr
 19101  		Fmotion_buffer       uint64
 19102  		Fprivate16           uint64
 19103  		Fmin_keycode         int32
 19104  		Fmax_keycode         int32
 19105  		Fprivate17           XPointer
 19106  		Fprivate18           XPointer
 19107  		Fprivate19           int32
 19108  		F__ccgo_pad5         [4]byte
 19109  		Fxdefaults           uintptr
 19110  	})(unsafe.Pointer(dpy)).Fresource_alloc})).f(tls, dpy)))
 19111  	(*XRenderCreateGlyphSetReq)(unsafe.Pointer(req)).Fformat = CARD32((*XRenderPictFormat)(unsafe.Pointer(format)).Fid)
 19112  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19113  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 19114  	}
 19115  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 19116  		(*struct {
 19117  			f func(*libc.TLS, uintptr) int32
 19118  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 19119  	}
 19120  	return gsid
 19121  }
 19122  
 19123  func XXRenderReferenceGlyphSet(tls *libc.TLS, dpy uintptr, existing GlyphSet) GlyphSet { /* Glyph.c:50:1: */
 19124  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 19125  	var gsid GlyphSet
 19126  	var req uintptr
 19127  
 19128  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 19129  		return uint64(0)
 19130  	}
 19131  
 19132  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19133  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 19134  	}
 19135  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderReferenceGlyphSet), uint64(Sz_xRenderReferenceGlyphSetReq))
 19136  	(*XRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 19137  	(*XRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderReferenceGlyphSet)
 19138  	(*XRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).Fgsid = CARD32(libc.AssignUint64(&gsid, (*struct{ f func(*libc.TLS, uintptr) XID })(unsafe.Pointer(&struct{ uintptr }{(*struct {
 19139  		Fext_data            uintptr
 19140  		Fprivate1            uintptr
 19141  		Ffd                  int32
 19142  		Fprivate2            int32
 19143  		Fproto_major_version int32
 19144  		Fproto_minor_version int32
 19145  		Fvendor              uintptr
 19146  		Fprivate3            XID
 19147  		Fprivate4            XID
 19148  		Fprivate5            XID
 19149  		Fprivate6            int32
 19150  		F__ccgo_pad1         [4]byte
 19151  		Fresource_alloc      uintptr
 19152  		Fbyte_order          int32
 19153  		Fbitmap_unit         int32
 19154  		Fbitmap_pad          int32
 19155  		Fbitmap_bit_order    int32
 19156  		Fnformats            int32
 19157  		F__ccgo_pad2         [4]byte
 19158  		Fpixmap_format       uintptr
 19159  		Fprivate8            int32
 19160  		Frelease             int32
 19161  		Fprivate9            uintptr
 19162  		Fprivate10           uintptr
 19163  		Fqlen                int32
 19164  		F__ccgo_pad3         [4]byte
 19165  		Flast_request_read   uint64
 19166  		Frequest             uint64
 19167  		Fprivate11           XPointer
 19168  		Fprivate12           XPointer
 19169  		Fprivate13           XPointer
 19170  		Fprivate14           XPointer
 19171  		Fmax_request_size    uint32
 19172  		F__ccgo_pad4         [4]byte
 19173  		Fdb                  uintptr
 19174  		Fprivate15           uintptr
 19175  		Fdisplay_name        uintptr
 19176  		Fdefault_screen      int32
 19177  		Fnscreens            int32
 19178  		Fscreens             uintptr
 19179  		Fmotion_buffer       uint64
 19180  		Fprivate16           uint64
 19181  		Fmin_keycode         int32
 19182  		Fmax_keycode         int32
 19183  		Fprivate17           XPointer
 19184  		Fprivate18           XPointer
 19185  		Fprivate19           int32
 19186  		F__ccgo_pad5         [4]byte
 19187  		Fxdefaults           uintptr
 19188  	})(unsafe.Pointer(dpy)).Fresource_alloc})).f(tls, dpy)))
 19189  	(*XRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).Fexisting = CARD32(existing)
 19190  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19191  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 19192  	}
 19193  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 19194  		(*struct {
 19195  			f func(*libc.TLS, uintptr) int32
 19196  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 19197  	}
 19198  	return gsid
 19199  }
 19200  
 19201  func XXRenderFreeGlyphSet(tls *libc.TLS, dpy uintptr, glyphset GlyphSet) { /* Glyph.c:69:1: */
 19202  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 19203  	var req uintptr
 19204  
 19205  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 19206  		return
 19207  	}
 19208  
 19209  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19210  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 19211  	}
 19212  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderFreeGlyphSet), uint64(Sz_xRenderFreeGlyphSetReq))
 19213  	(*XRenderFreeGlyphSetReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 19214  	(*XRenderFreeGlyphSetReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderFreeGlyphSet)
 19215  	(*XRenderFreeGlyphSetReq)(unsafe.Pointer(req)).Fglyphset = CARD32(glyphset)
 19216  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19217  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 19218  	}
 19219  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 19220  		(*struct {
 19221  			f func(*libc.TLS, uintptr) int32
 19222  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 19223  	}
 19224  }
 19225  
 19226  func XXRenderAddGlyphs(tls *libc.TLS, dpy uintptr, glyphset GlyphSet, gids uintptr, glyphs uintptr, nglyphs int32, images uintptr, nbyte_images int32) { /* Glyph.c:85:1: */
 19227  	bp := tls.Alloc(8)
 19228  	defer tls.Free(8)
 19229  
 19230  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 19231  	var req uintptr
 19232  	var len int64
 19233  
 19234  	if nbyte_images&3 != 0 {
 19235  		nbyte_images = nbyte_images + (4 - nbyte_images&3)
 19236  	}
 19237  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 19238  		return
 19239  	}
 19240  
 19241  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19242  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 19243  	}
 19244  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderAddGlyphs), uint64(Sz_xRenderAddGlyphsReq))
 19245  	(*XRenderAddGlyphsReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 19246  	(*XRenderAddGlyphsReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderAddGlyphs)
 19247  	(*XRenderAddGlyphsReq)(unsafe.Pointer(req)).Fglyphset = CARD32(glyphset)
 19248  	(*XRenderAddGlyphsReq)(unsafe.Pointer(req)).Fnglyphs = CARD32(nglyphs)
 19249  	len = int64((nglyphs*(Sz_xGlyphInfo+4) + nbyte_images) >> 2)
 19250  	if int64((*XRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 19251  		if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 19252  			{
 19253  				// var _BRdat CARD64 at bp, 8
 19254  				var _BRlen CARD32 = CARD32(int32((*XRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength) - 1)
 19255  				(*XRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 19256  				*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 19257  				libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 19258  				*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 19259  				x11.X_XData32(tls, dpy, bp, uint32(4))
 19260  			}
 19261  		} else {
 19262  			len = len
 19263  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 19264  		}
 19265  	} else {
 19266  		*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 19267  	}
 19268  	x11.X_XData32(tls, dpy, gids, uint32(nglyphs*4))
 19269  	{
 19270  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nglyphs*Sz_xGlyphInfo) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19271  			libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, glyphs, uint64(nglyphs*Sz_xGlyphInfo), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 19272  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nglyphs*Sz_xGlyphInfo + 3) & libc.CplInt32(3))
 19273  		} else {
 19274  			x11.X_XSend(tls, dpy, glyphs, int64(nglyphs*Sz_xGlyphInfo))
 19275  		}
 19276  	}
 19277  
 19278  	{
 19279  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbyte_images) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19280  			libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, images, uint64(nbyte_images), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 19281  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nbyte_images + 3) & libc.CplInt32(3))
 19282  		} else {
 19283  			x11.X_XSend(tls, dpy, images, int64(nbyte_images))
 19284  		}
 19285  	}
 19286  
 19287  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19288  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 19289  	}
 19290  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 19291  		(*struct {
 19292  			f func(*libc.TLS, uintptr) int32
 19293  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 19294  	}
 19295  }
 19296  
 19297  func XXRenderFreeGlyphs(tls *libc.TLS, dpy uintptr, glyphset GlyphSet, gids uintptr, nglyphs int32) { /* Glyph.c:116:1: */
 19298  	bp := tls.Alloc(8)
 19299  	defer tls.Free(8)
 19300  
 19301  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 19302  	var req uintptr
 19303  	var len int64
 19304  
 19305  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 19306  		return
 19307  	}
 19308  
 19309  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19310  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 19311  	}
 19312  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderFreeGlyphs), uint64(Sz_xRenderFreeGlyphsReq))
 19313  	(*XRenderFreeGlyphsReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 19314  	(*XRenderFreeGlyphsReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderFreeGlyphs)
 19315  	(*XRenderFreeGlyphsReq)(unsafe.Pointer(req)).Fglyphset = CARD32(glyphset)
 19316  	len = int64(nglyphs)
 19317  	if int64((*XRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 19318  		if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 19319  			{
 19320  				// var _BRdat CARD64 at bp, 8
 19321  				var _BRlen CARD32 = CARD32(int32((*XRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength) - 1)
 19322  				(*XRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 19323  				*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 19324  				libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 19325  				*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 19326  				x11.X_XData32(tls, dpy, bp, uint32(4))
 19327  			}
 19328  		} else {
 19329  			len = len
 19330  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 19331  		}
 19332  	} else {
 19333  		*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 19334  	}
 19335  	len <<= 2
 19336  	x11.X_XData32(tls, dpy, gids, uint32(len))
 19337  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19338  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 19339  	}
 19340  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 19341  		(*struct {
 19342  			f func(*libc.TLS, uintptr) int32
 19343  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 19344  	}
 19345  }
 19346  
 19347  func XXRenderCompositeString8(tls *libc.TLS, dpy uintptr, op int32, src Picture, dst Picture, maskFormat uintptr, glyphset GlyphSet, xSrc int32, ySrc int32, xDst int32, yDst int32, string uintptr, nchar int32) { /* Glyph.c:140:1: */
 19348  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 19349  	var req uintptr
 19350  	var len int64
 19351  	var elt uintptr
 19352  	var nbytes int32
 19353  
 19354  	if !(nchar != 0) {
 19355  		return
 19356  	}
 19357  
 19358  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 19359  		return
 19360  	}
 19361  
 19362  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19363  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 19364  	}
 19365  
 19366  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCompositeGlyphs8), uint64(Sz_xRenderCompositeGlyphs8Req))
 19367  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 19368  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCompositeGlyphs8)
 19369  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = CARD8(op)
 19370  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = CARD32(src)
 19371  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 19372  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = func() uint32 {
 19373  		if maskFormat != 0 {
 19374  			return uint32((*XRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid)
 19375  		}
 19376  		return uint32(None)
 19377  	}()
 19378  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = CARD32(glyphset)
 19379  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = INT16(xSrc)
 19380  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = INT16(ySrc)
 19381  
 19382  	// xGlyphElt must be aligned on a 32-bit boundary; this is
 19383  	// easily done by filling no more than 252 glyphs in each
 19384  	// bucket
 19385  
 19386  	len = int64(Sz_xGlyphElt*((nchar+252-1)/252) + nchar)
 19387  
 19388  	*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16((len + int64(3)) >> 2) // convert to number of 32-bit words
 19389  
 19390  	// If the entire request does not fit into the remaining space in the
 19391  	// buffer, flush the buffer first.
 19392  
 19393  	if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19394  		x11.X_XFlush(tls, dpy)
 19395  	}
 19396  
 19397  	for nchar > 252 {
 19398  		nbytes = 252 + Sz_xGlyphElt
 19399  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19400  			x11.X_XFlush(tls, dpy)
 19401  		}
 19402  		elt = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 19403  		libc.X__builtin___memset_chk(tls, elt, 0, uint64(nbytes), libc.X__builtin_object_size(tls, elt, 0))
 19404  		*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
 19405  
 19406  		(*XGlyphElt)(unsafe.Pointer(elt)).Flen = CARD8(252)
 19407  		(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltax = INT16(xDst)
 19408  		(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltay = INT16(yDst)
 19409  		xDst = 0
 19410  		yDst = 0
 19411  		libc.X__builtin___memcpy_chk(tls, elt+uintptr(1)*8, string, uint64(252), libc.X__builtin_object_size(tls, elt+uintptr(1)*8, 0))
 19412  		nchar = nchar - 252
 19413  		string += uintptr(252)
 19414  	}
 19415  
 19416  	if nchar != 0 {
 19417  		nbytes = (nchar + Sz_xGlyphElt + 3) & libc.CplInt32(3)
 19418  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19419  			x11.X_XFlush(tls, dpy)
 19420  		}
 19421  		elt = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 19422  		libc.X__builtin___memset_chk(tls, elt, 0, uint64(nbytes), libc.X__builtin_object_size(tls, elt, 0))
 19423  		*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
 19424  
 19425  		(*XGlyphElt)(unsafe.Pointer(elt)).Flen = CARD8(nchar)
 19426  		(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltax = INT16(xDst)
 19427  		(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltay = INT16(yDst)
 19428  		libc.X__builtin___memcpy_chk(tls, elt+uintptr(1)*8, string, uint64(nchar), libc.X__builtin_object_size(tls, elt+uintptr(1)*8, 0))
 19429  	}
 19430  
 19431  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19432  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 19433  	}
 19434  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 19435  		(*struct {
 19436  			f func(*libc.TLS, uintptr) int32
 19437  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 19438  	}
 19439  }
 19440  
 19441  func XXRenderCompositeString16(tls *libc.TLS, dpy uintptr, op int32, src Picture, dst Picture, maskFormat uintptr, glyphset GlyphSet, xSrc int32, ySrc int32, xDst int32, yDst int32, string uintptr, nchar int32) { /* Glyph.c:225:1: */
 19442  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 19443  	var req uintptr
 19444  	var len int64
 19445  	var elt uintptr
 19446  	var nbytes int32
 19447  
 19448  	if !(nchar != 0) {
 19449  		return
 19450  	}
 19451  
 19452  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 19453  		return
 19454  	}
 19455  
 19456  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19457  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 19458  	}
 19459  
 19460  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCompositeGlyphs16), uint64(Sz_xRenderCompositeGlyphs16Req))
 19461  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 19462  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCompositeGlyphs16)
 19463  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = CARD8(op)
 19464  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = CARD32(src)
 19465  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 19466  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = func() uint32 {
 19467  		if maskFormat != 0 {
 19468  			return uint32((*XRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid)
 19469  		}
 19470  		return uint32(None)
 19471  	}()
 19472  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = CARD32(glyphset)
 19473  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = INT16(xSrc)
 19474  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = INT16(ySrc)
 19475  
 19476  	len = int64(Sz_xGlyphElt*((nchar+254-1)/254) + nchar*2)
 19477  
 19478  	*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16((len + int64(3)) >> 2) // convert to number of 32-bit words
 19479  
 19480  	// If the entire request does not fit into the remaining space in the
 19481  	// buffer, flush the buffer first.
 19482  
 19483  	if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19484  		x11.X_XFlush(tls, dpy)
 19485  	}
 19486  
 19487  	for nchar > 254 {
 19488  		nbytes = 254*2 + Sz_xGlyphElt
 19489  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19490  			x11.X_XFlush(tls, dpy)
 19491  		}
 19492  		elt = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 19493  		libc.X__builtin___memset_chk(tls, elt, 0, uint64(nbytes), libc.X__builtin_object_size(tls, elt, 0))
 19494  		*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
 19495  
 19496  		(*XGlyphElt)(unsafe.Pointer(elt)).Flen = CARD8(254)
 19497  		(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltax = INT16(xDst)
 19498  		(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltay = INT16(yDst)
 19499  		xDst = 0
 19500  		yDst = 0
 19501  		libc.X__builtin___memcpy_chk(tls, elt+uintptr(1)*8, string, uint64(254*2), libc.X__builtin_object_size(tls, elt+uintptr(1)*8, 0))
 19502  		nchar = nchar - 254
 19503  		string += 2 * uintptr(254)
 19504  	}
 19505  
 19506  	if nchar != 0 {
 19507  		nbytes = (nchar*2 + Sz_xGlyphElt + 3) & libc.CplInt32(3)
 19508  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19509  			x11.X_XFlush(tls, dpy)
 19510  		}
 19511  		elt = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 19512  		libc.X__builtin___memset_chk(tls, elt, 0, uint64(nbytes), libc.X__builtin_object_size(tls, elt, 0))
 19513  		*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
 19514  
 19515  		(*XGlyphElt)(unsafe.Pointer(elt)).Flen = CARD8(nchar)
 19516  		(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltax = INT16(xDst)
 19517  		(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltay = INT16(yDst)
 19518  		libc.X__builtin___memcpy_chk(tls, elt+uintptr(1)*8, string, uint64(nchar*2), libc.X__builtin_object_size(tls, elt+uintptr(1)*8, 0))
 19519  	}
 19520  
 19521  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19522  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 19523  	}
 19524  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 19525  		(*struct {
 19526  			f func(*libc.TLS, uintptr) int32
 19527  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 19528  	}
 19529  }
 19530  
 19531  func XXRenderCompositeString32(tls *libc.TLS, dpy uintptr, op int32, src Picture, dst Picture, maskFormat uintptr, glyphset GlyphSet, xSrc int32, ySrc int32, xDst int32, yDst int32, string uintptr, nchar int32) { /* Glyph.c:305:1: */
 19532  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 19533  	var req uintptr
 19534  	var len int64
 19535  	var elt uintptr
 19536  	var nbytes int32
 19537  
 19538  	if !(nchar != 0) {
 19539  		return
 19540  	}
 19541  
 19542  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 19543  		return
 19544  	}
 19545  
 19546  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19547  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 19548  	}
 19549  
 19550  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCompositeGlyphs32), uint64(Sz_xRenderCompositeGlyphs32Req))
 19551  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 19552  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCompositeGlyphs32)
 19553  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = CARD8(op)
 19554  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = CARD32(src)
 19555  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 19556  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = func() uint32 {
 19557  		if maskFormat != 0 {
 19558  			return uint32((*XRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid)
 19559  		}
 19560  		return uint32(None)
 19561  	}()
 19562  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = CARD32(glyphset)
 19563  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = INT16(xSrc)
 19564  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = INT16(ySrc)
 19565  
 19566  	len = int64(Sz_xGlyphElt*((nchar+254-1)/254) + nchar*4)
 19567  
 19568  	*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16((len + int64(3)) >> 2) // convert to number of 32-bit words
 19569  
 19570  	// If the entire request does not fit into the remaining space in the
 19571  	// buffer, flush the buffer first.
 19572  
 19573  	if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19574  		x11.X_XFlush(tls, dpy)
 19575  	}
 19576  
 19577  	for nchar > 254 {
 19578  		nbytes = 254*4 + Sz_xGlyphElt
 19579  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19580  			x11.X_XFlush(tls, dpy)
 19581  		}
 19582  		elt = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 19583  		libc.X__builtin___memset_chk(tls, elt, 0, uint64(nbytes), libc.X__builtin_object_size(tls, elt, 0))
 19584  		*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
 19585  
 19586  		(*XGlyphElt)(unsafe.Pointer(elt)).Flen = CARD8(254)
 19587  		(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltax = INT16(xDst)
 19588  		(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltay = INT16(yDst)
 19589  		xDst = 0
 19590  		yDst = 0
 19591  		libc.X__builtin___memcpy_chk(tls, elt+uintptr(1)*8, string, uint64(254*4), libc.X__builtin_object_size(tls, elt+uintptr(1)*8, 0))
 19592  		nchar = nchar - 254
 19593  		string += 4 * uintptr(254)
 19594  	}
 19595  
 19596  	if nchar != 0 {
 19597  		nbytes = nchar*4 + Sz_xGlyphElt
 19598  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19599  			x11.X_XFlush(tls, dpy)
 19600  		}
 19601  		elt = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 19602  		libc.X__builtin___memset_chk(tls, elt, 0, uint64(nbytes), libc.X__builtin_object_size(tls, elt, 0))
 19603  		*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
 19604  
 19605  		(*XGlyphElt)(unsafe.Pointer(elt)).Flen = CARD8(nchar)
 19606  		(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltax = INT16(xDst)
 19607  		(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltay = INT16(yDst)
 19608  		libc.X__builtin___memcpy_chk(tls, elt+uintptr(1)*8, string, uint64(nchar*4), libc.X__builtin_object_size(tls, elt+uintptr(1)*8, 0))
 19609  	}
 19610  
 19611  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19612  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 19613  	}
 19614  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 19615  		(*struct {
 19616  			f func(*libc.TLS, uintptr) int32
 19617  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 19618  	}
 19619  }
 19620  
 19621  func XXRenderCompositeText8(tls *libc.TLS, dpy uintptr, op int32, src Picture, dst Picture, maskFormat uintptr, xSrc int32, ySrc int32, xDst int32, yDst int32, elts uintptr, nelt int32) { /* Glyph.c:385:1: */
 19622  	bp := tls.Alloc(8)
 19623  	defer tls.Free(8)
 19624  
 19625  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 19626  	var req uintptr
 19627  	// var glyphset GlyphSet at bp, 8
 19628  
 19629  	var len int64
 19630  	var elen int64
 19631  	var elt uintptr
 19632  	var i int32
 19633  	var chars uintptr
 19634  	var nchars int32
 19635  
 19636  	if !(nelt != 0) {
 19637  		return
 19638  	}
 19639  
 19640  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 19641  		return
 19642  	}
 19643  
 19644  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19645  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 19646  	}
 19647  
 19648  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCompositeGlyphs8), uint64(Sz_xRenderCompositeGlyphs8Req))
 19649  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 19650  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCompositeGlyphs8)
 19651  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = CARD8(op)
 19652  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = CARD32(src)
 19653  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 19654  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = func() uint32 {
 19655  		if maskFormat != 0 {
 19656  			return uint32((*XRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid)
 19657  		}
 19658  		return uint32(None)
 19659  	}()
 19660  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = CARD32((*XGlyphElt8)(unsafe.Pointer(elts)).Fglyphset)
 19661  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = INT16(xSrc)
 19662  	(*XRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = INT16(ySrc)
 19663  
 19664  	// Compute the space necessary
 19665  	len = int64(0)
 19666  
 19667  	*(*GlyphSet)(unsafe.Pointer(bp /* glyphset */)) = (*XGlyphElt8)(unsafe.Pointer(elts)).Fglyphset
 19668  	for i = 0; i < nelt; i++ {
 19669  		// Check for glyphset change
 19670  		if (*XGlyphElt8)(unsafe.Pointer(elts+uintptr(i)*32)).Fglyphset != *(*GlyphSet)(unsafe.Pointer(bp)) {
 19671  			*(*GlyphSet)(unsafe.Pointer(bp /* glyphset */)) = (*XGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32)).Fglyphset
 19672  			len = len + int64(int32(Sz_xGlyphElt+4)>>2)
 19673  		}
 19674  		nchars = (*XGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32)).Fnchars
 19675  		// xGlyphElt must be aligned on a 32-bit boundary; this is
 19676  		// easily done by filling no more than 252 glyphs in each
 19677  		// bucket
 19678  		elen = int64(Sz_xGlyphElt*((nchars+252-1)/252) + nchars)
 19679  		len = len + (elen+int64(3))>>2
 19680  	}
 19681  
 19682  	*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 19683  
 19684  	// Send the glyphs
 19685  	*(*GlyphSet)(unsafe.Pointer(bp /* glyphset */)) = (*XGlyphElt8)(unsafe.Pointer(elts)).Fglyphset
 19686  	for i = 0; i < nelt; i++ {
 19687  		// Switch glyphsets
 19688  		if (*XGlyphElt8)(unsafe.Pointer(elts+uintptr(i)*32)).Fglyphset != *(*GlyphSet)(unsafe.Pointer(bp)) {
 19689  			*(*GlyphSet)(unsafe.Pointer(bp /* glyphset */)) = (*XGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32)).Fglyphset
 19690  			if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(Sz_xGlyphElt) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19691  				x11.X_XFlush(tls, dpy)
 19692  			}
 19693  			elt = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 19694  			libc.X__builtin___memset_chk(tls, elt, 0, uint64(Sz_xGlyphElt), libc.X__builtin_object_size(tls, elt, 0))
 19695  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(Sz_xGlyphElt)
 19696  
 19697  			(*XGlyphElt)(unsafe.Pointer(elt)).Flen = CARD8(0xff)
 19698  			(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(0)
 19699  			(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(0)
 19700  			x11.X_XData32(tls, dpy, bp, uint32(4))
 19701  		}
 19702  		nchars = (*XGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32)).Fnchars
 19703  		xDst = (*XGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32)).FxOff
 19704  		yDst = (*XGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32)).FyOff
 19705  		chars = (*XGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32)).Fchars
 19706  		for nchars != 0 {
 19707  			var this_chars int32
 19708  			if nchars > 252 {
 19709  				this_chars = 252
 19710  			} else {
 19711  				this_chars = nchars
 19712  			}
 19713  
 19714  			if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(Sz_xGlyphElt) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19715  				x11.X_XFlush(tls, dpy)
 19716  			}
 19717  			elt = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 19718  			libc.X__builtin___memset_chk(tls, elt, 0, uint64(Sz_xGlyphElt), libc.X__builtin_object_size(tls, elt, 0))
 19719  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(Sz_xGlyphElt)
 19720  			(*XGlyphElt)(unsafe.Pointer(elt)).Flen = CARD8(this_chars)
 19721  			(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltax = INT16(xDst)
 19722  			(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltay = INT16(yDst)
 19723  			xDst = 0
 19724  			yDst = 0
 19725  			{
 19726  				if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(this_chars) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19727  					libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, chars, uint64(this_chars), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 19728  					*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((this_chars + 3) & libc.CplInt32(3))
 19729  				} else {
 19730  					x11.X_XSend(tls, dpy, chars, int64(this_chars))
 19731  				}
 19732  			}
 19733  
 19734  			nchars = nchars - this_chars
 19735  			chars += uintptr(this_chars)
 19736  		}
 19737  	}
 19738  
 19739  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19740  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 19741  	}
 19742  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 19743  		(*struct {
 19744  			f func(*libc.TLS, uintptr) int32
 19745  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 19746  	}
 19747  }
 19748  
 19749  func XXRenderCompositeText16(tls *libc.TLS, dpy uintptr, op int32, src Picture, dst Picture, maskFormat uintptr, xSrc int32, ySrc int32, xDst int32, yDst int32, elts uintptr, nelt int32) { /* Glyph.c:498:1: */
 19750  	bp := tls.Alloc(8)
 19751  	defer tls.Free(8)
 19752  
 19753  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 19754  	var req uintptr
 19755  	// var glyphset GlyphSet at bp, 8
 19756  
 19757  	var len int64
 19758  	var elen int64
 19759  	var elt uintptr
 19760  	var i int32
 19761  	var chars uintptr
 19762  	var nchars int32
 19763  
 19764  	if !(nelt != 0) {
 19765  		return
 19766  	}
 19767  
 19768  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 19769  		return
 19770  	}
 19771  
 19772  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19773  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 19774  	}
 19775  
 19776  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCompositeGlyphs16), uint64(Sz_xRenderCompositeGlyphs16Req))
 19777  	(*XRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 19778  	(*XRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCompositeGlyphs16)
 19779  	(*XRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fop = CARD8(op)
 19780  	(*XRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fsrc = CARD32(src)
 19781  	(*XRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 19782  	(*XRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FmaskFormat = func() uint32 {
 19783  		if maskFormat != 0 {
 19784  			return uint32((*XRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid)
 19785  		}
 19786  		return uint32(None)
 19787  	}()
 19788  	(*XRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fglyphset = CARD32((*XGlyphElt16)(unsafe.Pointer(elts)).Fglyphset)
 19789  	(*XRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FxSrc = INT16(xSrc)
 19790  	(*XRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FySrc = INT16(ySrc)
 19791  
 19792  	// Compute the space necessary
 19793  	len = int64(0)
 19794  
 19795  	*(*GlyphSet)(unsafe.Pointer(bp /* glyphset */)) = (*XGlyphElt16)(unsafe.Pointer(elts)).Fglyphset
 19796  	for i = 0; i < nelt; i++ {
 19797  		// Check for glyphset change
 19798  		if (*XGlyphElt16)(unsafe.Pointer(elts+uintptr(i)*32)).Fglyphset != *(*GlyphSet)(unsafe.Pointer(bp)) {
 19799  			*(*GlyphSet)(unsafe.Pointer(bp /* glyphset */)) = (*XGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32)).Fglyphset
 19800  			len = len + int64(int32(Sz_xGlyphElt+4)>>2)
 19801  		}
 19802  		nchars = (*XGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32)).Fnchars
 19803  		// xGlyphElt must be aligned on a 32-bit boundary; this is
 19804  		// easily done by filling no more than 254 glyphs in each
 19805  		// bucket
 19806  		elen = int64(Sz_xGlyphElt*((nchars+254-1)/254) + nchars*2)
 19807  		len = len + (elen+int64(3))>>2
 19808  	}
 19809  
 19810  	*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 19811  
 19812  	*(*GlyphSet)(unsafe.Pointer(bp /* glyphset */)) = (*XGlyphElt16)(unsafe.Pointer(elts)).Fglyphset
 19813  	for i = 0; i < nelt; i++ {
 19814  		// Switch glyphsets
 19815  		if (*XGlyphElt16)(unsafe.Pointer(elts+uintptr(i)*32)).Fglyphset != *(*GlyphSet)(unsafe.Pointer(bp)) {
 19816  			*(*GlyphSet)(unsafe.Pointer(bp /* glyphset */)) = (*XGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32)).Fglyphset
 19817  			if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(Sz_xGlyphElt) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19818  				x11.X_XFlush(tls, dpy)
 19819  			}
 19820  			elt = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 19821  			libc.X__builtin___memset_chk(tls, elt, 0, uint64(Sz_xGlyphElt), libc.X__builtin_object_size(tls, elt, 0))
 19822  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(Sz_xGlyphElt)
 19823  
 19824  			(*XGlyphElt)(unsafe.Pointer(elt)).Flen = CARD8(0xff)
 19825  			(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(0)
 19826  			(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(0)
 19827  			x11.X_XData32(tls, dpy, bp, uint32(4))
 19828  		}
 19829  		nchars = (*XGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32)).Fnchars
 19830  		xDst = (*XGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32)).FxOff
 19831  		yDst = (*XGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32)).FyOff
 19832  		chars = (*XGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32)).Fchars
 19833  		for nchars != 0 {
 19834  			var this_chars int32
 19835  			if nchars > 254 {
 19836  				this_chars = 254
 19837  			} else {
 19838  				this_chars = nchars
 19839  			}
 19840  			var this_bytes int32 = this_chars * 2
 19841  
 19842  			if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(Sz_xGlyphElt) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19843  				x11.X_XFlush(tls, dpy)
 19844  			}
 19845  			elt = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 19846  			libc.X__builtin___memset_chk(tls, elt, 0, uint64(Sz_xGlyphElt), libc.X__builtin_object_size(tls, elt, 0))
 19847  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(Sz_xGlyphElt)
 19848  			(*XGlyphElt)(unsafe.Pointer(elt)).Flen = CARD8(this_chars)
 19849  			(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltax = INT16(xDst)
 19850  			(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltay = INT16(yDst)
 19851  			xDst = 0
 19852  			yDst = 0
 19853  			{
 19854  				if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(this_bytes) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19855  					libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, chars, uint64(this_bytes), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 19856  					*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((this_bytes + 3) & libc.CplInt32(3))
 19857  				} else {
 19858  					x11.X_XSend(tls, dpy, chars, int64(this_bytes))
 19859  				}
 19860  			}
 19861  
 19862  			nchars = nchars - this_chars
 19863  			chars += 2 * uintptr(this_chars)
 19864  		}
 19865  	}
 19866  
 19867  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19868  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 19869  	}
 19870  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 19871  		(*struct {
 19872  			f func(*libc.TLS, uintptr) int32
 19873  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 19874  	}
 19875  }
 19876  
 19877  func XXRenderCompositeText32(tls *libc.TLS, dpy uintptr, op int32, src Picture, dst Picture, maskFormat uintptr, xSrc int32, ySrc int32, xDst int32, yDst int32, elts uintptr, nelt int32) { /* Glyph.c:609:1: */
 19878  	bp := tls.Alloc(8)
 19879  	defer tls.Free(8)
 19880  
 19881  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 19882  	var req uintptr
 19883  	// var glyphset GlyphSet at bp, 8
 19884  
 19885  	var len int64
 19886  	var elen int64
 19887  	var elt uintptr
 19888  	var i int32
 19889  	var chars uintptr
 19890  	var nchars int32
 19891  
 19892  	if !(nelt != 0) {
 19893  		return
 19894  	}
 19895  
 19896  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 19897  		return
 19898  	}
 19899  
 19900  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19901  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 19902  	}
 19903  
 19904  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCompositeGlyphs32), uint64(Sz_xRenderCompositeGlyphs32Req))
 19905  	(*XRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 19906  	(*XRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCompositeGlyphs32)
 19907  	(*XRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fop = CARD8(op)
 19908  	(*XRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fsrc = CARD32(src)
 19909  	(*XRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 19910  	(*XRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FmaskFormat = func() uint32 {
 19911  		if maskFormat != 0 {
 19912  			return uint32((*XRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid)
 19913  		}
 19914  		return uint32(None)
 19915  	}()
 19916  	(*XRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fglyphset = CARD32((*XGlyphElt32)(unsafe.Pointer(elts)).Fglyphset)
 19917  	(*XRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FxSrc = INT16(xSrc)
 19918  	(*XRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FySrc = INT16(ySrc)
 19919  
 19920  	// Compute the space necessary
 19921  	len = int64(0)
 19922  
 19923  	*(*GlyphSet)(unsafe.Pointer(bp /* glyphset */)) = (*XGlyphElt32)(unsafe.Pointer(elts)).Fglyphset
 19924  	for i = 0; i < nelt; i++ {
 19925  		// Check for glyphset change
 19926  		if (*XGlyphElt32)(unsafe.Pointer(elts+uintptr(i)*32)).Fglyphset != *(*GlyphSet)(unsafe.Pointer(bp)) {
 19927  			*(*GlyphSet)(unsafe.Pointer(bp /* glyphset */)) = (*XGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32)).Fglyphset
 19928  			len = len + int64(int32(Sz_xGlyphElt+4)>>2)
 19929  		}
 19930  		nchars = (*XGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32)).Fnchars
 19931  		elen = int64(Sz_xGlyphElt*((nchars+254-1)/254) + nchars*4)
 19932  		len = len + (elen+int64(3))>>2
 19933  	}
 19934  
 19935  	*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 19936  
 19937  	*(*GlyphSet)(unsafe.Pointer(bp /* glyphset */)) = (*XGlyphElt32)(unsafe.Pointer(elts)).Fglyphset
 19938  	for i = 0; i < nelt; i++ {
 19939  		// Switch glyphsets
 19940  		if (*XGlyphElt32)(unsafe.Pointer(elts+uintptr(i)*32)).Fglyphset != *(*GlyphSet)(unsafe.Pointer(bp)) {
 19941  			*(*GlyphSet)(unsafe.Pointer(bp /* glyphset */)) = (*XGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32)).Fglyphset
 19942  			if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(Sz_xGlyphElt) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19943  				x11.X_XFlush(tls, dpy)
 19944  			}
 19945  			elt = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 19946  			libc.X__builtin___memset_chk(tls, elt, 0, uint64(Sz_xGlyphElt), libc.X__builtin_object_size(tls, elt, 0))
 19947  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(Sz_xGlyphElt)
 19948  
 19949  			(*XGlyphElt)(unsafe.Pointer(elt)).Flen = CARD8(0xff)
 19950  			(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(0)
 19951  			(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(0)
 19952  			x11.X_XData32(tls, dpy, bp, uint32(4))
 19953  		}
 19954  		nchars = (*XGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32)).Fnchars
 19955  		xDst = (*XGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32)).FxOff
 19956  		yDst = (*XGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32)).FyOff
 19957  		chars = (*XGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32)).Fchars
 19958  		for nchars != 0 {
 19959  			var this_chars int32
 19960  			if nchars > 254 {
 19961  				this_chars = 254
 19962  			} else {
 19963  				this_chars = nchars
 19964  			}
 19965  			var this_bytes int32 = this_chars * 4
 19966  			if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(Sz_xGlyphElt) > (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19967  				x11.X_XFlush(tls, dpy)
 19968  			}
 19969  			elt = (*Display)(unsafe.Pointer(dpy)).Fbufptr
 19970  			libc.X__builtin___memset_chk(tls, elt, 0, uint64(Sz_xGlyphElt), libc.X__builtin_object_size(tls, elt, 0))
 19971  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(Sz_xGlyphElt)
 19972  			(*XGlyphElt)(unsafe.Pointer(elt)).Flen = CARD8(this_chars)
 19973  			(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltax = INT16(xDst)
 19974  			(*XGlyphElt)(unsafe.Pointer(elt)).Fdeltay = INT16(yDst)
 19975  			xDst = 0
 19976  			yDst = 0
 19977  			{
 19978  				if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(this_bytes) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 19979  					libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, chars, uint64(this_bytes), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 19980  					*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((this_bytes + 3) & libc.CplInt32(3))
 19981  				} else {
 19982  					x11.X_XSend(tls, dpy, chars, int64(this_bytes))
 19983  				}
 19984  			}
 19985  
 19986  			nchars = nchars - this_chars
 19987  			chars += 4 * uintptr(this_chars)
 19988  		}
 19989  	}
 19990  
 19991  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 19992  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 19993  	}
 19994  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 19995  		(*struct {
 19996  			f func(*libc.TLS, uintptr) int32
 19997  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 19998  	}
 19999  }
 20000  
 20001  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 20002  // matters on alpha.  Note that this macro assumes that int is 32 bits
 20003  // except on WORD64 machines where it is 64 bits.
 20004  
 20005  //***********************************************************************
 20006  //
 20007  // Copyright 1987, 1998  The Open Group
 20008  //
 20009  // Permission to use, copy, modify, distribute, and sell this software and its
 20010  // documentation for any purpose is hereby granted without fee, provided that
 20011  // the above copyright notice appear in all copies and that both that
 20012  // copyright notice and this permission notice appear in supporting
 20013  // documentation.
 20014  //
 20015  // The above copyright notice and this permission notice shall be included in
 20016  // all copies or substantial portions of the Software.
 20017  //
 20018  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 20019  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 20020  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 20021  // OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 20022  // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 20023  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 20024  //
 20025  // Except as contained in this notice, the name of The Open Group shall not be
 20026  // used in advertising or otherwise to promote the sale, use or other dealings
 20027  // in this Software without prior written authorization from The Open Group.
 20028  //
 20029  //
 20030  // Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 20031  //
 20032  //                         All Rights Reserved
 20033  //
 20034  // Permission to use, copy, modify, and distribute this software and its
 20035  // documentation for any purpose and without fee is hereby granted,
 20036  // provided that the above copyright notice appear in all copies and that
 20037  // both that copyright notice and this permission notice appear in
 20038  // supporting documentation, and that the name of Digital not be
 20039  // used in advertising or publicity pertaining to distribution of the
 20040  // software without specific, written prior permission.
 20041  //
 20042  // DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 20043  // ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 20044  // DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 20045  // ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 20046  // WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 20047  // ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 20048  // SOFTWARE.
 20049  //
 20050  // ***********************************************************************
 20051  
 20052  type Box = struct {
 20053  	Fx1 int16
 20054  	Fx2 int16
 20055  	Fy1 int16
 20056  	Fy2 int16
 20057  } /* Xregion.h:53:3 */
 20058  type BOX = struct {
 20059  	Fx1 int16
 20060  	Fx2 int16
 20061  	Fy1 int16
 20062  	Fy2 int16
 20063  } /* Xregion.h:53:8 */
 20064  type BoxRec = struct {
 20065  	Fx1 int16
 20066  	Fx2 int16
 20067  	Fy1 int16
 20068  	Fy2 int16
 20069  }                     /* Xregion.h:53:13 */
 20070  type BoxPtr = uintptr /* Xregion.h:53:21 */
 20071  
 20072  type RECTANGLE = struct {
 20073  	Fx      int16
 20074  	Fy      int16
 20075  	Fwidth  int16
 20076  	Fheight int16
 20077  } /* Xregion.h:57:2 */
 20078  type RectangleRec = struct {
 20079  	Fx      int16
 20080  	Fy      int16
 20081  	Fwidth  int16
 20082  	Fheight int16
 20083  }                           /* Xregion.h:57:13 */
 20084  type RectanglePtr = uintptr /* Xregion.h:57:27 */
 20085  
 20086  //   clip region
 20087  
 20088  type REGION = X_XRegion /* Xregion.h:80:3 */
 20089  
 20090  // Xutil.h contains the declaration:
 20091  // typedef struct _XRegion *Region;
 20092  
 20093  // 1 if two BOXs overlap.
 20094  //  0 if two BOXs do not overlap.
 20095  //  Remember, x2 and y2 are not in the region
 20096  
 20097  //  update region extents
 20098  
 20099  //   Check to see if there is enough memory in the present region.
 20100  
 20101  // this routine checks to see if the previous rectangle is the same
 20102  //  or subsumes the new rectangle to add.
 20103  
 20104  //  add a rectangle to the given Region
 20105  
 20106  //  add a rectangle to the given Region
 20107  
 20108  // number of points to buffer before sending them off
 20109  // to scanlines() :  Must be an even number
 20110  
 20111  // used to allocate buffers for points and link
 20112  // the buffers together
 20113  type X_POINTBLOCK = struct {
 20114  	Fpts  [200]XPoint
 20115  	Fnext uintptr
 20116  } /* Xregion.h:185:9 */
 20117  
 20118  // Xutil.h contains the declaration:
 20119  // typedef struct _XRegion *Region;
 20120  
 20121  // 1 if two BOXs overlap.
 20122  //  0 if two BOXs do not overlap.
 20123  //  Remember, x2 and y2 are not in the region
 20124  
 20125  //  update region extents
 20126  
 20127  //   Check to see if there is enough memory in the present region.
 20128  
 20129  // this routine checks to see if the previous rectangle is the same
 20130  //  or subsumes the new rectangle to add.
 20131  
 20132  //  add a rectangle to the given Region
 20133  
 20134  //  add a rectangle to the given Region
 20135  
 20136  // number of points to buffer before sending them off
 20137  // to scanlines() :  Must be an even number
 20138  
 20139  // used to allocate buffers for points and link
 20140  // the buffers together
 20141  type POINTBLOCK = X_POINTBLOCK /* Xregion.h:188:3 */
 20142  
 20143  func _XRenderProcessPictureAttributes(tls *libc.TLS, dpy uintptr, req uintptr, valuemask uint64, attributes uintptr) { /* Picture.c:32:1: */
 20144  	bp := tls.Alloc(256)
 20145  	defer tls.Free(256)
 20146  
 20147  	// var values [32]uint64 at bp, 256
 20148  
 20149  	var value uintptr = bp /* values */
 20150  	var nvalues uint32
 20151  
 20152  	if valuemask&uint64(int32(1)<<0) != 0 {
 20153  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = uint64((*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Frepeat)
 20154  	}
 20155  	if valuemask&uint64(int32(1)<<1) != 0 {
 20156  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = (*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Falpha_map
 20157  	}
 20158  	if valuemask&uint64(int32(1)<<2) != 0 {
 20159  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = uint64((*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Falpha_x_origin)
 20160  	}
 20161  	if valuemask&uint64(int32(1)<<3) != 0 {
 20162  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = uint64((*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Falpha_y_origin)
 20163  	}
 20164  	if valuemask&uint64(int32(1)<<4) != 0 {
 20165  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = uint64((*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Fclip_x_origin)
 20166  	}
 20167  	if valuemask&uint64(int32(1)<<5) != 0 {
 20168  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = uint64((*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Fclip_y_origin)
 20169  	}
 20170  	if valuemask&uint64(int32(1)<<6) != 0 {
 20171  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = (*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Fclip_mask
 20172  	}
 20173  	if valuemask&uint64(int32(1)<<7) != 0 {
 20174  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = uint64((*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Fgraphics_exposures)
 20175  	}
 20176  	if valuemask&uint64(int32(1)<<8) != 0 {
 20177  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = uint64((*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Fsubwindow_mode)
 20178  	}
 20179  	if valuemask&uint64(int32(1)<<9) != 0 {
 20180  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = uint64((*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Fpoly_edge)
 20181  	}
 20182  	if valuemask&uint64(int32(1)<<10) != 0 {
 20183  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = uint64((*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Fpoly_mode)
 20184  	}
 20185  	if valuemask&uint64(int32(1)<<11) != 0 {
 20186  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = (*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Fdither
 20187  	}
 20188  	if valuemask&uint64(int32(1)<<12) != 0 {
 20189  		*(*uint64)(unsafe.Pointer(libc.PostIncUintptr(&value, 8))) = uint64((*XRenderPictureAttributes)(unsafe.Pointer(attributes)).Fcomponent_alpha)
 20190  	}
 20191  
 20192  	*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(libc.AssignUint32(&nvalues, uint32(int64((value-bp)/8))))
 20193  
 20194  	nvalues <<= 2 // watch out for macros...
 20195  	x11.X_XData32(tls, dpy, bp, uint32(int64(nvalues)))
 20196  }
 20197  
 20198  func XXRenderCreatePicture(tls *libc.TLS, dpy uintptr, drawable Drawable, format uintptr, valuemask uint64, attributes uintptr) Picture { /* Picture.c:75:1: */
 20199  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 20200  	var pid Picture
 20201  	var req uintptr
 20202  
 20203  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 20204  		return uint64(0)
 20205  	}
 20206  
 20207  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20208  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 20209  	}
 20210  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCreatePicture), uint64(Sz_xRenderCreatePictureReq))
 20211  	(*XRenderCreatePictureReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 20212  	(*XRenderCreatePictureReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCreatePicture)
 20213  	(*XRenderCreatePictureReq)(unsafe.Pointer(req)).Fpid = CARD32(libc.AssignUint64(&pid, (*struct{ f func(*libc.TLS, uintptr) XID })(unsafe.Pointer(&struct{ uintptr }{(*struct {
 20214  		Fext_data            uintptr
 20215  		Fprivate1            uintptr
 20216  		Ffd                  int32
 20217  		Fprivate2            int32
 20218  		Fproto_major_version int32
 20219  		Fproto_minor_version int32
 20220  		Fvendor              uintptr
 20221  		Fprivate3            XID
 20222  		Fprivate4            XID
 20223  		Fprivate5            XID
 20224  		Fprivate6            int32
 20225  		F__ccgo_pad1         [4]byte
 20226  		Fresource_alloc      uintptr
 20227  		Fbyte_order          int32
 20228  		Fbitmap_unit         int32
 20229  		Fbitmap_pad          int32
 20230  		Fbitmap_bit_order    int32
 20231  		Fnformats            int32
 20232  		F__ccgo_pad2         [4]byte
 20233  		Fpixmap_format       uintptr
 20234  		Fprivate8            int32
 20235  		Frelease             int32
 20236  		Fprivate9            uintptr
 20237  		Fprivate10           uintptr
 20238  		Fqlen                int32
 20239  		F__ccgo_pad3         [4]byte
 20240  		Flast_request_read   uint64
 20241  		Frequest             uint64
 20242  		Fprivate11           XPointer
 20243  		Fprivate12           XPointer
 20244  		Fprivate13           XPointer
 20245  		Fprivate14           XPointer
 20246  		Fmax_request_size    uint32
 20247  		F__ccgo_pad4         [4]byte
 20248  		Fdb                  uintptr
 20249  		Fprivate15           uintptr
 20250  		Fdisplay_name        uintptr
 20251  		Fdefault_screen      int32
 20252  		Fnscreens            int32
 20253  		Fscreens             uintptr
 20254  		Fmotion_buffer       uint64
 20255  		Fprivate16           uint64
 20256  		Fmin_keycode         int32
 20257  		Fmax_keycode         int32
 20258  		Fprivate17           XPointer
 20259  		Fprivate18           XPointer
 20260  		Fprivate19           int32
 20261  		F__ccgo_pad5         [4]byte
 20262  		Fxdefaults           uintptr
 20263  	})(unsafe.Pointer(dpy)).Fresource_alloc})).f(tls, dpy)))
 20264  	(*XRenderCreatePictureReq)(unsafe.Pointer(req)).Fdrawable = CARD32(drawable)
 20265  	(*XRenderCreatePictureReq)(unsafe.Pointer(req)).Fformat = CARD32((*XRenderPictFormat)(unsafe.Pointer(format)).Fid)
 20266  	if libc.AssignPtrUint32(req+16, CARD32(valuemask)) != 0 {
 20267  		_XRenderProcessPictureAttributes(tls, dpy,
 20268  			req,
 20269  			valuemask,
 20270  			attributes)
 20271  	}
 20272  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20273  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 20274  	}
 20275  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 20276  		(*struct {
 20277  			f func(*libc.TLS, uintptr) int32
 20278  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 20279  	}
 20280  	return pid
 20281  }
 20282  
 20283  func XXRenderChangePicture(tls *libc.TLS, dpy uintptr, picture Picture, valuemask uint64, attributes uintptr) { /* Picture.c:104:1: */
 20284  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 20285  	var req uintptr
 20286  
 20287  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 20288  		return
 20289  	}
 20290  
 20291  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20292  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 20293  	}
 20294  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderChangePicture), uint64(Sz_xRenderChangePictureReq))
 20295  	(*XRenderChangePictureReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 20296  	(*XRenderChangePictureReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderChangePicture)
 20297  	(*XRenderChangePictureReq)(unsafe.Pointer(req)).Fpicture = CARD32(picture)
 20298  	(*XRenderChangePictureReq)(unsafe.Pointer(req)).Fmask = CARD32(valuemask)
 20299  	_XRenderProcessPictureAttributes(tls, dpy,
 20300  		req,
 20301  		valuemask,
 20302  		attributes)
 20303  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20304  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 20305  	}
 20306  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 20307  		(*struct {
 20308  			f func(*libc.TLS, uintptr) int32
 20309  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 20310  	}
 20311  }
 20312  
 20313  func _XRenderSetPictureClipRectangles(tls *libc.TLS, dpy uintptr, info uintptr, picture Picture, xOrigin int32, yOrigin int32, rects uintptr, n int32) { /* Picture.c:128:1: */
 20314  	bp := tls.Alloc(8)
 20315  	defer tls.Free(8)
 20316  
 20317  	var req uintptr
 20318  	var len int64
 20319  
 20320  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderSetPictureClipRectangles), uint64(Sz_xRenderSetPictureClipRectanglesReq))
 20321  	(*XRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 20322  	(*XRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderSetPictureClipRectangles)
 20323  	(*XRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Fpicture = CARD32(picture)
 20324  	(*XRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FxOrigin = INT16(xOrigin)
 20325  	(*XRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FyOrigin = INT16(yOrigin)
 20326  	len = int64(n) << 1
 20327  	if int64((*XRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 20328  		if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 20329  			{
 20330  				// var _BRdat CARD64 at bp, 8
 20331  				var _BRlen CARD32 = CARD32(int32((*XRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength) - 1)
 20332  				(*XRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 20333  				*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 20334  				libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 20335  				*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 20336  				x11.X_XData32(tls, dpy, bp, uint32(4))
 20337  			}
 20338  		} else {
 20339  			len = int64(1)
 20340  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 20341  		}
 20342  	} else {
 20343  		*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 20344  	}
 20345  	len <<= 2
 20346  	{
 20347  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 20348  			libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, rects, uint64(int32(len)), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 20349  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len + int64(3)) & int64(libc.CplInt32(3)))
 20350  		} else {
 20351  			x11.X_XSend(tls, dpy, rects, len)
 20352  		}
 20353  	}
 20354  
 20355  }
 20356  
 20357  func XXRenderSetPictureClipRectangles(tls *libc.TLS, dpy uintptr, picture Picture, xOrigin int32, yOrigin int32, rects uintptr, n int32) { /* Picture.c:152:1: */
 20358  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 20359  
 20360  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 20361  		return
 20362  	}
 20363  
 20364  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20365  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 20366  	}
 20367  	_XRenderSetPictureClipRectangles(tls, dpy, info, picture,
 20368  		xOrigin, yOrigin, rects, n)
 20369  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20370  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 20371  	}
 20372  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 20373  		(*struct {
 20374  			f func(*libc.TLS, uintptr) int32
 20375  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 20376  	}
 20377  }
 20378  
 20379  func XXRenderSetPictureClipRegion(tls *libc.TLS, dpy uintptr, picture Picture, r Region) { /* Picture.c:170:1: */
 20380  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 20381  	var i int32
 20382  	var xr uintptr
 20383  	var pr uintptr
 20384  	var pb uintptr
 20385  	var total uint64
 20386  
 20387  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 20388  		return
 20389  	}
 20390  
 20391  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20392  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 20393  	}
 20394  	total = uint64((*X_XRegion)(unsafe.Pointer(r)).FnumRects) * uint64(unsafe.Sizeof(XRectangle{}))
 20395  	if libc.AssignUintptr(&xr, x11.X_XAllocTemp(tls, dpy, total)) != 0 {
 20396  		pr = xr
 20397  		pb = (*X_XRegion)(unsafe.Pointer(r)).Frects
 20398  		i = int32((*X_XRegion)(unsafe.Pointer(r)).FnumRects)
 20399  	__1:
 20400  		if !(libc.PreDecInt32(&i, 1) >= 0) {
 20401  			goto __3
 20402  		}
 20403  		{
 20404  			(*XRectangle)(unsafe.Pointer(pr)).Fx = (*BOX)(unsafe.Pointer(pb)).Fx1
 20405  			(*XRectangle)(unsafe.Pointer(pr)).Fy = (*BOX)(unsafe.Pointer(pb)).Fy1
 20406  			(*XRectangle)(unsafe.Pointer(pr)).Fwidth = uint16(int32((*BOX)(unsafe.Pointer(pb)).Fx2) - int32((*BOX)(unsafe.Pointer(pb)).Fx1))
 20407  			(*XRectangle)(unsafe.Pointer(pr)).Fheight = uint16(int32((*BOX)(unsafe.Pointer(pb)).Fy2) - int32((*BOX)(unsafe.Pointer(pb)).Fy1))
 20408  
 20409  		}
 20410  		goto __2
 20411  	__2:
 20412  		pr += 8
 20413  		pb += 8
 20414  		goto __1
 20415  		goto __3
 20416  	__3:
 20417  	}
 20418  	if xr != 0 || !(int32((*X_XRegion)(unsafe.Pointer(r)).FnumRects) != 0) {
 20419  		_XRenderSetPictureClipRectangles(tls, dpy, info, picture, 0, 0,
 20420  			xr, int32((*X_XRegion)(unsafe.Pointer(r)).FnumRects))
 20421  	}
 20422  	if xr != 0 {
 20423  		x11.X_XFreeTemp(tls, dpy, xr, total)
 20424  	}
 20425  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20426  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 20427  	}
 20428  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 20429  		(*struct {
 20430  			f func(*libc.TLS, uintptr) int32
 20431  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 20432  	}
 20433  }
 20434  
 20435  func XXRenderSetPictureTransform(tls *libc.TLS, dpy uintptr, picture Picture, transform uintptr) { /* Picture.c:201:1: */
 20436  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 20437  	var req uintptr
 20438  
 20439  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 20440  		return
 20441  	}
 20442  
 20443  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20444  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 20445  	}
 20446  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderSetPictureTransform), uint64(Sz_xRenderSetPictureTransformReq))
 20447  	(*XRenderSetPictureTransformReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 20448  	(*XRenderSetPictureTransformReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderSetPictureTransform)
 20449  	(*XRenderSetPictureTransformReq)(unsafe.Pointer(req)).Fpicture = CARD32(picture)
 20450  	(*XRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix11 = *(*XFixed)(unsafe.Pointer(transform))
 20451  	(*XRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix12 = *(*XFixed)(unsafe.Pointer(transform + 1*4))
 20452  	(*XRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix13 = *(*XFixed)(unsafe.Pointer(transform + 2*4))
 20453  	(*XRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix21 = *(*XFixed)(unsafe.Pointer(transform + 1*12))
 20454  	(*XRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix22 = *(*XFixed)(unsafe.Pointer(transform + 1*12 + 1*4))
 20455  	(*XRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix23 = *(*XFixed)(unsafe.Pointer(transform + 1*12 + 2*4))
 20456  	(*XRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix31 = *(*XFixed)(unsafe.Pointer(transform + 2*12))
 20457  	(*XRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix32 = *(*XFixed)(unsafe.Pointer(transform + 2*12 + 1*4))
 20458  	(*XRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix33 = *(*XFixed)(unsafe.Pointer(transform + 2*12 + 2*4))
 20459  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20460  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 20461  	}
 20462  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 20463  		(*struct {
 20464  			f func(*libc.TLS, uintptr) int32
 20465  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 20466  	}
 20467  
 20468  }
 20469  
 20470  func XXRenderFreePicture(tls *libc.TLS, dpy uintptr, picture Picture) { /* Picture.c:229:1: */
 20471  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 20472  	var req uintptr
 20473  
 20474  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 20475  		return
 20476  	}
 20477  
 20478  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20479  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 20480  	}
 20481  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderFreePicture), uint64(Sz_xRenderFreePictureReq))
 20482  	(*XRenderFreePictureReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 20483  	(*XRenderFreePictureReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderFreePicture)
 20484  	(*XRenderFreePictureReq)(unsafe.Pointer(req)).Fpicture = CARD32(picture)
 20485  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20486  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 20487  	}
 20488  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 20489  		(*struct {
 20490  			f func(*libc.TLS, uintptr) int32
 20491  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 20492  	}
 20493  }
 20494  
 20495  func XXRenderCreateSolidFill(tls *libc.TLS, dpy uintptr, color uintptr) Picture { /* Picture.c:246:9: */
 20496  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 20497  	var pid Picture
 20498  	var req uintptr
 20499  
 20500  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 20501  		return uint64(0)
 20502  	}
 20503  
 20504  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20505  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 20506  	}
 20507  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCreateSolidFill), uint64(Sz_xRenderCreateSolidFillReq))
 20508  	(*XRenderCreateSolidFillReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 20509  	(*XRenderCreateSolidFillReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCreateSolidFill)
 20510  
 20511  	(*XRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fpid = CARD32(libc.AssignUint64(&pid, (*struct{ f func(*libc.TLS, uintptr) XID })(unsafe.Pointer(&struct{ uintptr }{(*struct {
 20512  		Fext_data            uintptr
 20513  		Fprivate1            uintptr
 20514  		Ffd                  int32
 20515  		Fprivate2            int32
 20516  		Fproto_major_version int32
 20517  		Fproto_minor_version int32
 20518  		Fvendor              uintptr
 20519  		Fprivate3            XID
 20520  		Fprivate4            XID
 20521  		Fprivate5            XID
 20522  		Fprivate6            int32
 20523  		F__ccgo_pad1         [4]byte
 20524  		Fresource_alloc      uintptr
 20525  		Fbyte_order          int32
 20526  		Fbitmap_unit         int32
 20527  		Fbitmap_pad          int32
 20528  		Fbitmap_bit_order    int32
 20529  		Fnformats            int32
 20530  		F__ccgo_pad2         [4]byte
 20531  		Fpixmap_format       uintptr
 20532  		Fprivate8            int32
 20533  		Frelease             int32
 20534  		Fprivate9            uintptr
 20535  		Fprivate10           uintptr
 20536  		Fqlen                int32
 20537  		F__ccgo_pad3         [4]byte
 20538  		Flast_request_read   uint64
 20539  		Frequest             uint64
 20540  		Fprivate11           XPointer
 20541  		Fprivate12           XPointer
 20542  		Fprivate13           XPointer
 20543  		Fprivate14           XPointer
 20544  		Fmax_request_size    uint32
 20545  		F__ccgo_pad4         [4]byte
 20546  		Fdb                  uintptr
 20547  		Fprivate15           uintptr
 20548  		Fdisplay_name        uintptr
 20549  		Fdefault_screen      int32
 20550  		Fnscreens            int32
 20551  		Fscreens             uintptr
 20552  		Fmotion_buffer       uint64
 20553  		Fprivate16           uint64
 20554  		Fmin_keycode         int32
 20555  		Fmax_keycode         int32
 20556  		Fprivate17           XPointer
 20557  		Fprivate18           XPointer
 20558  		Fprivate19           int32
 20559  		F__ccgo_pad5         [4]byte
 20560  		Fxdefaults           uintptr
 20561  	})(unsafe.Pointer(dpy)).Fresource_alloc})).f(tls, dpy)))
 20562  	(*XRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Fred = (*XRenderColor1)(unsafe.Pointer(color)).Fred
 20563  	(*XRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Fgreen = (*XRenderColor1)(unsafe.Pointer(color)).Fgreen
 20564  	(*XRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Fblue = (*XRenderColor1)(unsafe.Pointer(color)).Fblue
 20565  	(*XRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Falpha = (*XRenderColor1)(unsafe.Pointer(color)).Falpha
 20566  
 20567  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20568  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 20569  	}
 20570  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 20571  		(*struct {
 20572  			f func(*libc.TLS, uintptr) int32
 20573  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 20574  	}
 20575  	return pid
 20576  }
 20577  
 20578  func XXRenderCreateLinearGradient(tls *libc.TLS, dpy uintptr, gradient uintptr, stops uintptr, colors uintptr, nStops int32) Picture { /* Picture.c:271:9: */
 20579  	bp := tls.Alloc(8)
 20580  	defer tls.Free(8)
 20581  
 20582  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 20583  	var pid Picture
 20584  	var req uintptr
 20585  	var len int64
 20586  
 20587  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 20588  		return uint64(0)
 20589  	}
 20590  
 20591  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20592  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 20593  	}
 20594  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCreateLinearGradient), uint64(Sz_xRenderCreateLinearGradientReq))
 20595  	(*XRenderCreateLinearGradientReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 20596  	(*XRenderCreateLinearGradientReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCreateLinearGradient)
 20597  
 20598  	(*XRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fpid = CARD32(libc.AssignUint64(&pid, (*struct{ f func(*libc.TLS, uintptr) XID })(unsafe.Pointer(&struct{ uintptr }{(*struct {
 20599  		Fext_data            uintptr
 20600  		Fprivate1            uintptr
 20601  		Ffd                  int32
 20602  		Fprivate2            int32
 20603  		Fproto_major_version int32
 20604  		Fproto_minor_version int32
 20605  		Fvendor              uintptr
 20606  		Fprivate3            XID
 20607  		Fprivate4            XID
 20608  		Fprivate5            XID
 20609  		Fprivate6            int32
 20610  		F__ccgo_pad1         [4]byte
 20611  		Fresource_alloc      uintptr
 20612  		Fbyte_order          int32
 20613  		Fbitmap_unit         int32
 20614  		Fbitmap_pad          int32
 20615  		Fbitmap_bit_order    int32
 20616  		Fnformats            int32
 20617  		F__ccgo_pad2         [4]byte
 20618  		Fpixmap_format       uintptr
 20619  		Fprivate8            int32
 20620  		Frelease             int32
 20621  		Fprivate9            uintptr
 20622  		Fprivate10           uintptr
 20623  		Fqlen                int32
 20624  		F__ccgo_pad3         [4]byte
 20625  		Flast_request_read   uint64
 20626  		Frequest             uint64
 20627  		Fprivate11           XPointer
 20628  		Fprivate12           XPointer
 20629  		Fprivate13           XPointer
 20630  		Fprivate14           XPointer
 20631  		Fmax_request_size    uint32
 20632  		F__ccgo_pad4         [4]byte
 20633  		Fdb                  uintptr
 20634  		Fprivate15           uintptr
 20635  		Fdisplay_name        uintptr
 20636  		Fdefault_screen      int32
 20637  		Fnscreens            int32
 20638  		Fscreens             uintptr
 20639  		Fmotion_buffer       uint64
 20640  		Fprivate16           uint64
 20641  		Fmin_keycode         int32
 20642  		Fmax_keycode         int32
 20643  		Fprivate17           XPointer
 20644  		Fprivate18           XPointer
 20645  		Fprivate19           int32
 20646  		F__ccgo_pad5         [4]byte
 20647  		Fxdefaults           uintptr
 20648  	})(unsafe.Pointer(dpy)).Fresource_alloc})).f(tls, dpy)))
 20649  	(*XRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp1.Fx = (*XLinearGradient)(unsafe.Pointer(gradient)).Fp1.Fx
 20650  	(*XRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp1.Fy = (*XLinearGradient)(unsafe.Pointer(gradient)).Fp1.Fy
 20651  	(*XRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp2.Fx = (*XLinearGradient)(unsafe.Pointer(gradient)).Fp2.Fx
 20652  	(*XRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp2.Fy = (*XLinearGradient)(unsafe.Pointer(gradient)).Fp2.Fy
 20653  
 20654  	(*XRenderCreateLinearGradientReq)(unsafe.Pointer(req)).FnStops = CARD32(nStops)
 20655  	len = int64(nStops) * int64(3)
 20656  	if int64((*XRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 20657  		if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 20658  			{
 20659  				// var _BRdat CARD64 at bp, 8
 20660  				var _BRlen CARD32 = CARD32(int32((*XRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength) - 1)
 20661  				(*XRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 20662  				*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 20663  				libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 20664  				*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 20665  				x11.X_XData32(tls, dpy, bp, uint32(4))
 20666  			}
 20667  		} else {
 20668  			len = int64(6)
 20669  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 20670  		}
 20671  	} else {
 20672  		*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 20673  	}
 20674  	{
 20675  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*4) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 20676  			libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, stops, uint64(nStops*4), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 20677  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*4 + 3) & libc.CplInt32(3))
 20678  		} else {
 20679  			x11.X_XSend(tls, dpy, stops, int64(nStops*4))
 20680  		}
 20681  	}
 20682  
 20683  	{
 20684  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*8) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 20685  			libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, colors, uint64(nStops*8), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 20686  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*8 + 3) & libc.CplInt32(3))
 20687  		} else {
 20688  			x11.X_XSend(tls, dpy, colors, int64(nStops*8))
 20689  		}
 20690  	}
 20691  
 20692  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20693  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 20694  	}
 20695  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 20696  		(*struct {
 20697  			f func(*libc.TLS, uintptr) int32
 20698  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 20699  	}
 20700  	return pid
 20701  }
 20702  
 20703  func XXRenderCreateRadialGradient(tls *libc.TLS, dpy uintptr, gradient uintptr, stops uintptr, colors uintptr, nStops int32) Picture { /* Picture.c:305:9: */
 20704  	bp := tls.Alloc(8)
 20705  	defer tls.Free(8)
 20706  
 20707  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 20708  	var pid Picture
 20709  	var req uintptr
 20710  	var len int64
 20711  
 20712  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 20713  		return uint64(0)
 20714  	}
 20715  
 20716  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20717  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 20718  	}
 20719  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCreateRadialGradient), uint64(Sz_xRenderCreateRadialGradientReq))
 20720  	(*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 20721  	(*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCreateRadialGradient)
 20722  
 20723  	(*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fpid = CARD32(libc.AssignUint64(&pid, (*struct{ f func(*libc.TLS, uintptr) XID })(unsafe.Pointer(&struct{ uintptr }{(*struct {
 20724  		Fext_data            uintptr
 20725  		Fprivate1            uintptr
 20726  		Ffd                  int32
 20727  		Fprivate2            int32
 20728  		Fproto_major_version int32
 20729  		Fproto_minor_version int32
 20730  		Fvendor              uintptr
 20731  		Fprivate3            XID
 20732  		Fprivate4            XID
 20733  		Fprivate5            XID
 20734  		Fprivate6            int32
 20735  		F__ccgo_pad1         [4]byte
 20736  		Fresource_alloc      uintptr
 20737  		Fbyte_order          int32
 20738  		Fbitmap_unit         int32
 20739  		Fbitmap_pad          int32
 20740  		Fbitmap_bit_order    int32
 20741  		Fnformats            int32
 20742  		F__ccgo_pad2         [4]byte
 20743  		Fpixmap_format       uintptr
 20744  		Fprivate8            int32
 20745  		Frelease             int32
 20746  		Fprivate9            uintptr
 20747  		Fprivate10           uintptr
 20748  		Fqlen                int32
 20749  		F__ccgo_pad3         [4]byte
 20750  		Flast_request_read   uint64
 20751  		Frequest             uint64
 20752  		Fprivate11           XPointer
 20753  		Fprivate12           XPointer
 20754  		Fprivate13           XPointer
 20755  		Fprivate14           XPointer
 20756  		Fmax_request_size    uint32
 20757  		F__ccgo_pad4         [4]byte
 20758  		Fdb                  uintptr
 20759  		Fprivate15           uintptr
 20760  		Fdisplay_name        uintptr
 20761  		Fdefault_screen      int32
 20762  		Fnscreens            int32
 20763  		Fscreens             uintptr
 20764  		Fmotion_buffer       uint64
 20765  		Fprivate16           uint64
 20766  		Fmin_keycode         int32
 20767  		Fmax_keycode         int32
 20768  		Fprivate17           XPointer
 20769  		Fprivate18           XPointer
 20770  		Fprivate19           int32
 20771  		F__ccgo_pad5         [4]byte
 20772  		Fxdefaults           uintptr
 20773  	})(unsafe.Pointer(dpy)).Fresource_alloc})).f(tls, dpy)))
 20774  	(*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Finner.Fx = (*XRadialGradient)(unsafe.Pointer(gradient)).Finner.Fx
 20775  	(*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Finner.Fy = (*XRadialGradient)(unsafe.Pointer(gradient)).Finner.Fy
 20776  	(*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fouter.Fx = (*XRadialGradient)(unsafe.Pointer(gradient)).Fouter.Fx
 20777  	(*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fouter.Fy = (*XRadialGradient)(unsafe.Pointer(gradient)).Fouter.Fy
 20778  	(*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Finner_radius = (*XRadialGradient)(unsafe.Pointer(gradient)).Finner.Fradius
 20779  	(*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fouter_radius = (*XRadialGradient)(unsafe.Pointer(gradient)).Fouter.Fradius
 20780  
 20781  	(*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).FnStops = CARD32(nStops)
 20782  	len = int64(nStops) * int64(3)
 20783  	if int64((*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 20784  		if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 20785  			{
 20786  				// var _BRdat CARD64 at bp, 8
 20787  				var _BRlen CARD32 = CARD32(int32((*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength) - 1)
 20788  				(*XRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 20789  				*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 20790  				libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 20791  				*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 20792  				x11.X_XData32(tls, dpy, bp, uint32(4))
 20793  			}
 20794  		} else {
 20795  			len = int64(6)
 20796  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 20797  		}
 20798  	} else {
 20799  		*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 20800  	}
 20801  	{
 20802  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*4) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 20803  			libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, stops, uint64(nStops*4), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 20804  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*4 + 3) & libc.CplInt32(3))
 20805  		} else {
 20806  			x11.X_XSend(tls, dpy, stops, int64(nStops*4))
 20807  		}
 20808  	}
 20809  
 20810  	{
 20811  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*8) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 20812  			libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, colors, uint64(nStops*8), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 20813  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*8 + 3) & libc.CplInt32(3))
 20814  		} else {
 20815  			x11.X_XSend(tls, dpy, colors, int64(nStops*8))
 20816  		}
 20817  	}
 20818  
 20819  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20820  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 20821  	}
 20822  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 20823  		(*struct {
 20824  			f func(*libc.TLS, uintptr) int32
 20825  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 20826  	}
 20827  	return pid
 20828  }
 20829  
 20830  func XXRenderCreateConicalGradient(tls *libc.TLS, dpy uintptr, gradient uintptr, stops uintptr, colors uintptr, nStops int32) Picture { /* Picture.c:341:9: */
 20831  	bp := tls.Alloc(8)
 20832  	defer tls.Free(8)
 20833  
 20834  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 20835  	var pid Picture
 20836  	var req uintptr
 20837  	var len int64
 20838  
 20839  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 20840  		return uint64(0)
 20841  	}
 20842  
 20843  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20844  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 20845  	}
 20846  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderCreateConicalGradient), uint64(Sz_xRenderCreateConicalGradientReq))
 20847  	(*XRenderCreateConicalGradientReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 20848  	(*XRenderCreateConicalGradientReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderCreateConicalGradient)
 20849  
 20850  	(*XRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fpid = CARD32(libc.AssignUint64(&pid, (*struct{ f func(*libc.TLS, uintptr) XID })(unsafe.Pointer(&struct{ uintptr }{(*struct {
 20851  		Fext_data            uintptr
 20852  		Fprivate1            uintptr
 20853  		Ffd                  int32
 20854  		Fprivate2            int32
 20855  		Fproto_major_version int32
 20856  		Fproto_minor_version int32
 20857  		Fvendor              uintptr
 20858  		Fprivate3            XID
 20859  		Fprivate4            XID
 20860  		Fprivate5            XID
 20861  		Fprivate6            int32
 20862  		F__ccgo_pad1         [4]byte
 20863  		Fresource_alloc      uintptr
 20864  		Fbyte_order          int32
 20865  		Fbitmap_unit         int32
 20866  		Fbitmap_pad          int32
 20867  		Fbitmap_bit_order    int32
 20868  		Fnformats            int32
 20869  		F__ccgo_pad2         [4]byte
 20870  		Fpixmap_format       uintptr
 20871  		Fprivate8            int32
 20872  		Frelease             int32
 20873  		Fprivate9            uintptr
 20874  		Fprivate10           uintptr
 20875  		Fqlen                int32
 20876  		F__ccgo_pad3         [4]byte
 20877  		Flast_request_read   uint64
 20878  		Frequest             uint64
 20879  		Fprivate11           XPointer
 20880  		Fprivate12           XPointer
 20881  		Fprivate13           XPointer
 20882  		Fprivate14           XPointer
 20883  		Fmax_request_size    uint32
 20884  		F__ccgo_pad4         [4]byte
 20885  		Fdb                  uintptr
 20886  		Fprivate15           uintptr
 20887  		Fdisplay_name        uintptr
 20888  		Fdefault_screen      int32
 20889  		Fnscreens            int32
 20890  		Fscreens             uintptr
 20891  		Fmotion_buffer       uint64
 20892  		Fprivate16           uint64
 20893  		Fmin_keycode         int32
 20894  		Fmax_keycode         int32
 20895  		Fprivate17           XPointer
 20896  		Fprivate18           XPointer
 20897  		Fprivate19           int32
 20898  		F__ccgo_pad5         [4]byte
 20899  		Fxdefaults           uintptr
 20900  	})(unsafe.Pointer(dpy)).Fresource_alloc})).f(tls, dpy)))
 20901  	(*XRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fcenter.Fx = (*XConicalGradient)(unsafe.Pointer(gradient)).Fcenter.Fx
 20902  	(*XRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fcenter.Fy = (*XConicalGradient)(unsafe.Pointer(gradient)).Fcenter.Fy
 20903  	(*XRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fangle = (*XConicalGradient)(unsafe.Pointer(gradient)).Fangle
 20904  
 20905  	(*XRenderCreateConicalGradientReq)(unsafe.Pointer(req)).FnStops = CARD32(nStops)
 20906  	len = int64(nStops) * int64(3)
 20907  	if int64((*XRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 20908  		if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 20909  			{
 20910  				// var _BRdat CARD64 at bp, 8
 20911  				var _BRlen CARD32 = CARD32(int32((*XRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength) - 1)
 20912  				(*XRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 20913  				*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 20914  				libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 20915  				*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 20916  				x11.X_XData32(tls, dpy, bp, uint32(4))
 20917  			}
 20918  		} else {
 20919  			len = int64(6)
 20920  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 20921  		}
 20922  	} else {
 20923  		*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 20924  	}
 20925  	{
 20926  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*4) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 20927  			libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, stops, uint64(nStops*4), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 20928  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*4 + 3) & libc.CplInt32(3))
 20929  		} else {
 20930  			x11.X_XSend(tls, dpy, stops, int64(nStops*4))
 20931  		}
 20932  	}
 20933  
 20934  	{
 20935  		if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*8) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 20936  			libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, colors, uint64(nStops*8), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 20937  			*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*8 + 3) & libc.CplInt32(3))
 20938  		} else {
 20939  			x11.X_XSend(tls, dpy, colors, int64(nStops*8))
 20940  		}
 20941  	}
 20942  
 20943  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 20944  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 20945  	}
 20946  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 20947  		(*struct {
 20948  			f func(*libc.TLS, uintptr) int32
 20949  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 20950  	}
 20951  	return pid
 20952  }
 20953  
 20954  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 20955  // matters on alpha.  Note that this macro assumes that int is 32 bits
 20956  // except on WORD64 machines where it is 64 bits.
 20957  
 20958  type X_Edge = struct {
 20959  	Fedge      XLineFixed1
 20960  	Fcurrent_x XFixed
 20961  	FclockWise int32
 20962  	Fnext      uintptr
 20963  	Fprev      uintptr
 20964  } /* Poly.c:29:9 */
 20965  
 20966  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 20967  // matters on alpha.  Note that this macro assumes that int is 32 bits
 20968  // except on WORD64 machines where it is 64 bits.
 20969  
 20970  type Edge = X_Edge /* Poly.c:29:22 */
 20971  
 20972  func sCompareEdge(tls *libc.TLS, o1 uintptr, o2 uintptr) int32 { /* Poly.c:39:1: */
 20973  	var e1 uintptr = o1
 20974  	var e2 uintptr = o2
 20975  
 20976  	return (*Edge)(unsafe.Pointer(e1)).Fedge.Fp1.Fy - (*Edge)(unsafe.Pointer(e2)).Fedge.Fp1.Fy
 20977  }
 20978  
 20979  func sXRenderComputeX(tls *libc.TLS, line uintptr, y XFixed) XFixed { /* Poly.c:47:1: */
 20980  	var dx XFixed = (*XLineFixed1)(unsafe.Pointer(line)).Fp2.Fx - (*XLineFixed1)(unsafe.Pointer(line)).Fp1.Fx
 20981  	var ex float64 = float64(y-(*XLineFixed1)(unsafe.Pointer(line)).Fp1.Fy) * float64(dx)
 20982  	var dy XFixed = (*XLineFixed1)(unsafe.Pointer(line)).Fp2.Fy - (*XLineFixed1)(unsafe.Pointer(line)).Fp1.Fy
 20983  
 20984  	return (*XLineFixed1)(unsafe.Pointer(line)).Fp1.Fx + libc.Int32FromFloat64(ex/float64(dy))
 20985  }
 20986  
 20987  func sXRenderComputeInverseSlope(tls *libc.TLS, l uintptr) float64 { /* Poly.c:57:1: */
 20988  	return XDouble((*XLineFixed1)(unsafe.Pointer(l)).Fp2.Fx-(*XLineFixed1)(unsafe.Pointer(l)).Fp1.Fx) / float64(65536) / (XDouble((*XLineFixed1)(unsafe.Pointer(l)).Fp2.Fy-(*XLineFixed1)(unsafe.Pointer(l)).Fp1.Fy) / float64(65536))
 20989  }
 20990  
 20991  func sXRenderComputeXIntercept(tls *libc.TLS, l uintptr, inverse_slope float64) float64 { /* Poly.c:64:1: */
 20992  	return XDouble((*XLineFixed1)(unsafe.Pointer(l)).Fp1.Fx)/float64(65536) - inverse_slope*(XDouble((*XLineFixed1)(unsafe.Pointer(l)).Fp1.Fy)/float64(65536))
 20993  }
 20994  
 20995  func sXRenderComputeIntersect(tls *libc.TLS, l1 uintptr, l2 uintptr) XFixed { /* Poly.c:70:1: */
 20996  	// x = m1y + b1
 20997  	// x = m2y + b2
 20998  	// m1y + b1 = m2y + b2
 20999  	// y * (m1 - m2) = b2 - b1
 21000  	// y = (b2 - b1) / (m1 - m2)
 21001  	var m1 float64 = sXRenderComputeInverseSlope(tls, l1)
 21002  	var b1 float64 = sXRenderComputeXIntercept(tls, l1, m1)
 21003  	var m2 float64 = sXRenderComputeInverseSlope(tls, l2)
 21004  	var b2 float64 = sXRenderComputeXIntercept(tls, l2, m2)
 21005  
 21006  	return libc.Int32FromFloat64((b2 - b1) / (m1 - m2) * float64(65536))
 21007  }
 21008  
 21009  func sXRenderComputeTrapezoids(tls *libc.TLS, edges uintptr, nedges int32, winding int32, traps uintptr) int32 { /* Poly.c:88:1: */
 21010  	var ntraps int32 = 0
 21011  	var inactive int32
 21012  	var active uintptr
 21013  	var e uintptr
 21014  	var en uintptr
 21015  	var next uintptr
 21016  	var y XFixed
 21017  	var next_y XFixed
 21018  	var intersect XFixed
 21019  
 21020  	libc.Xqsort(tls, edges, uint64(nedges), uint64(unsafe.Sizeof(Edge{})), *(*uintptr)(unsafe.Pointer(&struct {
 21021  		f func(*libc.TLS, uintptr, uintptr) int32
 21022  	}{sCompareEdge})))
 21023  
 21024  	y = (*Edge)(unsafe.Pointer(edges)).Fedge.Fp1.Fy
 21025  	active = uintptr(0)
 21026  	inactive = 0
 21027  	for active != 0 || inactive < nedges {
 21028  		// insert new active edges into list
 21029  		for inactive < nedges {
 21030  			e = edges + uintptr(inactive)*40
 21031  			if (*Edge)(unsafe.Pointer(e)).Fedge.Fp1.Fy > y {
 21032  				break
 21033  			}
 21034  			// move this edge into the active list
 21035  			inactive++
 21036  			(*Edge)(unsafe.Pointer(e)).Fnext = active
 21037  			(*Edge)(unsafe.Pointer(e)).Fprev = uintptr(0)
 21038  			if active != 0 {
 21039  				(*Edge)(unsafe.Pointer(active)).Fprev = e
 21040  			}
 21041  			active = e
 21042  		}
 21043  		// compute x coordinates along this group
 21044  		for e = active; e != 0; e = (*Edge)(unsafe.Pointer(e)).Fnext {
 21045  			(*Edge)(unsafe.Pointer(e)).Fcurrent_x = sXRenderComputeX(tls, e, y)
 21046  		}
 21047  
 21048  		// sort active list
 21049  		for e = active; e != 0; e = next {
 21050  			next = (*Edge)(unsafe.Pointer(e)).Fnext
 21051  			// Find one later in the list that belongs before the
 21052  			// current one
 21053  			for en = next; en != 0; en = (*Edge)(unsafe.Pointer(en)).Fnext {
 21054  				if (*Edge)(unsafe.Pointer(en)).Fcurrent_x < (*Edge)(unsafe.Pointer(e)).Fcurrent_x || (*Edge)(unsafe.Pointer(en)).Fcurrent_x == (*Edge)(unsafe.Pointer(e)).Fcurrent_x && (*Edge)(unsafe.Pointer(en)).Fedge.Fp2.Fx < (*Edge)(unsafe.Pointer(e)).Fedge.Fp2.Fx {
 21055  					// insert en before e
 21056  					//
 21057  					// extract en
 21058  					(*Edge)(unsafe.Pointer((*Edge)(unsafe.Pointer(en)).Fprev)).Fnext = (*Edge)(unsafe.Pointer(en)).Fnext
 21059  					if (*Edge)(unsafe.Pointer(en)).Fnext != 0 {
 21060  						(*Edge)(unsafe.Pointer((*Edge)(unsafe.Pointer(en)).Fnext)).Fprev = (*Edge)(unsafe.Pointer(en)).Fprev
 21061  					}
 21062  					// insert en
 21063  					if (*Edge)(unsafe.Pointer(e)).Fprev != 0 {
 21064  						(*Edge)(unsafe.Pointer((*Edge)(unsafe.Pointer(e)).Fprev)).Fnext = en
 21065  					} else {
 21066  						active = en
 21067  					}
 21068  					(*Edge)(unsafe.Pointer(en)).Fprev = (*Edge)(unsafe.Pointer(e)).Fprev
 21069  					(*Edge)(unsafe.Pointer(e)).Fprev = en
 21070  					(*Edge)(unsafe.Pointer(en)).Fnext = e
 21071  					// start over at en
 21072  					next = en
 21073  					break
 21074  				}
 21075  			}
 21076  		}
 21077  		// find next inflection point
 21078  		next_y = (*Edge)(unsafe.Pointer(active)).Fedge.Fp2.Fy
 21079  		for e = active; e != 0; e = en {
 21080  			if (*Edge)(unsafe.Pointer(e)).Fedge.Fp2.Fy < next_y {
 21081  				next_y = (*Edge)(unsafe.Pointer(e)).Fedge.Fp2.Fy
 21082  			}
 21083  			en = (*Edge)(unsafe.Pointer(e)).Fnext
 21084  			// check intersect
 21085  			if en != 0 && (*Edge)(unsafe.Pointer(e)).Fedge.Fp2.Fx > (*Edge)(unsafe.Pointer(en)).Fedge.Fp2.Fx {
 21086  				intersect = sXRenderComputeIntersect(tls, e, (*Edge)(unsafe.Pointer(e)).Fnext)
 21087  				// make sure this point is below the actual intersection
 21088  				intersect = intersect + 1
 21089  				if intersect < next_y {
 21090  					next_y = intersect
 21091  				}
 21092  			}
 21093  		}
 21094  		// check next inactive point
 21095  		if inactive < nedges && (*Edge)(unsafe.Pointer(edges+uintptr(inactive)*40)).Fedge.Fp1.Fy < next_y {
 21096  			next_y = (*Edge)(unsafe.Pointer(edges + uintptr(inactive)*40)).Fedge.Fp1.Fy
 21097  		}
 21098  
 21099  		// walk the list generating trapezoids
 21100  		for e = active; e != 0 && libc.AssignUintptr(&en, (*Edge)(unsafe.Pointer(e)).Fnext) != 0; e = (*Edge)(unsafe.Pointer(en)).Fnext {
 21101  			(*XTrapezoid1)(unsafe.Pointer(traps)).Ftop = y
 21102  			(*XTrapezoid1)(unsafe.Pointer(traps)).Fbottom = next_y
 21103  			(*XTrapezoid1)(unsafe.Pointer(traps)).Fleft = (*Edge)(unsafe.Pointer(e)).Fedge
 21104  			(*XTrapezoid1)(unsafe.Pointer(traps)).Fright = (*Edge)(unsafe.Pointer(en)).Fedge
 21105  			traps += 40
 21106  			ntraps++
 21107  		}
 21108  
 21109  		y = next_y
 21110  
 21111  		// delete inactive edges from list
 21112  		for e = active; e != 0; e = next {
 21113  			next = (*Edge)(unsafe.Pointer(e)).Fnext
 21114  			if (*Edge)(unsafe.Pointer(e)).Fedge.Fp2.Fy <= y {
 21115  				if (*Edge)(unsafe.Pointer(e)).Fprev != 0 {
 21116  					(*Edge)(unsafe.Pointer((*Edge)(unsafe.Pointer(e)).Fprev)).Fnext = (*Edge)(unsafe.Pointer(e)).Fnext
 21117  				} else {
 21118  					active = (*Edge)(unsafe.Pointer(e)).Fnext
 21119  				}
 21120  				if (*Edge)(unsafe.Pointer(e)).Fnext != 0 {
 21121  					(*Edge)(unsafe.Pointer((*Edge)(unsafe.Pointer(e)).Fnext)).Fprev = (*Edge)(unsafe.Pointer(e)).Fprev
 21122  				}
 21123  			}
 21124  		}
 21125  	}
 21126  	return ntraps
 21127  }
 21128  
 21129  func XXRenderCompositeDoublePoly(tls *libc.TLS, dpy uintptr, op int32, src Picture, dst Picture, maskFormat uintptr, xSrc int32, ySrc int32, xDst int32, yDst int32, fpoints uintptr, npoints int32, winding int32) { /* Poly.c:225:1: */
 21130  	var edges uintptr
 21131  	var traps uintptr
 21132  	var i int32
 21133  	var nedges int32
 21134  	var ntraps int32
 21135  	var x XFixed
 21136  	var y XFixed
 21137  	var prevx XFixed = 0
 21138  	var prevy XFixed = 0
 21139  	var firstx XFixed = 0
 21140  	var firsty XFixed = 0
 21141  	var top XFixed = 0
 21142  	var bottom XFixed = 0 // GCCism
 21143  
 21144  	edges = libc.Xmalloc(tls, uint64(npoints)*uint64(unsafe.Sizeof(Edge{}))+uint64(npoints*npoints)*uint64(unsafe.Sizeof(XTrapezoid1{})))
 21145  	if !(edges != 0) {
 21146  		return
 21147  	}
 21148  	traps = edges + uintptr(npoints)*40
 21149  	nedges = 0
 21150  	for i = 0; i <= npoints; i++ {
 21151  		if i == npoints {
 21152  			x = firstx
 21153  			y = firsty
 21154  		} else {
 21155  			x = libc.Int32FromFloat64((*XPointDouble)(unsafe.Pointer(fpoints+uintptr(i)*16)).Fx * float64(65536))
 21156  			y = libc.Int32FromFloat64((*XPointDouble)(unsafe.Pointer(fpoints+uintptr(i)*16)).Fy * float64(65536))
 21157  		}
 21158  		if i != 0 {
 21159  			if y < top {
 21160  				top = y
 21161  			} else if y > bottom {
 21162  				bottom = y
 21163  			}
 21164  			if prevy < y {
 21165  				(*Edge)(unsafe.Pointer(edges + uintptr(nedges)*40)).Fedge.Fp1.Fx = prevx
 21166  				(*Edge)(unsafe.Pointer(edges + uintptr(nedges)*40)).Fedge.Fp1.Fy = prevy
 21167  				(*Edge)(unsafe.Pointer(edges + uintptr(nedges)*40)).Fedge.Fp2.Fx = x
 21168  				(*Edge)(unsafe.Pointer(edges + uintptr(nedges)*40)).Fedge.Fp2.Fy = y
 21169  				(*Edge)(unsafe.Pointer(edges + uintptr(nedges)*40)).FclockWise = True
 21170  				nedges++
 21171  			} else if prevy > y {
 21172  				(*Edge)(unsafe.Pointer(edges + uintptr(nedges)*40)).Fedge.Fp1.Fx = x
 21173  				(*Edge)(unsafe.Pointer(edges + uintptr(nedges)*40)).Fedge.Fp1.Fy = y
 21174  				(*Edge)(unsafe.Pointer(edges + uintptr(nedges)*40)).Fedge.Fp2.Fx = prevx
 21175  				(*Edge)(unsafe.Pointer(edges + uintptr(nedges)*40)).Fedge.Fp2.Fy = prevy
 21176  				(*Edge)(unsafe.Pointer(edges + uintptr(nedges)*40)).FclockWise = False
 21177  				nedges++
 21178  			}
 21179  			// drop horizontal edges
 21180  		} else {
 21181  			top = y
 21182  			bottom = y
 21183  			firstx = x
 21184  			firsty = y
 21185  		}
 21186  		prevx = x
 21187  		prevy = y
 21188  	}
 21189  	ntraps = sXRenderComputeTrapezoids(tls, edges, nedges, winding, traps)
 21190  	// XXX adjust xSrc/xDst
 21191  	XXRenderCompositeTrapezoids(tls, dpy, op, src, dst, maskFormat, xSrc, ySrc, traps, ntraps)
 21192  	libc.Xfree(tls, edges)
 21193  }
 21194  
 21195  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 21196  // matters on alpha.  Note that this macro assumes that int is 32 bits
 21197  // except on WORD64 machines where it is 64 bits.
 21198  
 21199  func XXRenderCompositeTrapezoids(tls *libc.TLS, dpy uintptr, op int32, src Picture, dst Picture, maskFormat uintptr, xSrc int32, ySrc int32, traps uintptr, ntrap int32) { /* Trap.c:30:1: */
 21200  	bp := tls.Alloc(8)
 21201  	defer tls.Free(8)
 21202  
 21203  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 21204  	var req uintptr
 21205  	var n int32
 21206  	var len int64
 21207  	var max_req uint64
 21208  	if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 21209  		max_req = (*Display)(unsafe.Pointer(dpy)).Fbigreq_size
 21210  	} else {
 21211  		max_req = uint64((*Display)(unsafe.Pointer(dpy)).Fmax_request_size)
 21212  	}
 21213  
 21214  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 21215  		return
 21216  	}
 21217  
 21218  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 21219  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 21220  	}
 21221  	for ntrap != 0 {
 21222  		req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderTrapezoids), uint64(Sz_xRenderTrapezoidsReq))
 21223  		(*XRenderTrapezoidsReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 21224  		(*XRenderTrapezoidsReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderTrapezoids)
 21225  		(*XRenderTrapezoidsReq)(unsafe.Pointer(req)).Fop = CARD8(op)
 21226  		(*XRenderTrapezoidsReq)(unsafe.Pointer(req)).Fsrc = CARD32(src)
 21227  		(*XRenderTrapezoidsReq)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 21228  		(*XRenderTrapezoidsReq)(unsafe.Pointer(req)).FmaskFormat = func() uint32 {
 21229  			if maskFormat != 0 {
 21230  				return uint32((*XRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid)
 21231  			}
 21232  			return uint32(0)
 21233  		}()
 21234  		(*XRenderTrapezoidsReq)(unsafe.Pointer(req)).FxSrc = INT16(xSrc)
 21235  		(*XRenderTrapezoidsReq)(unsafe.Pointer(req)).FySrc = INT16(ySrc)
 21236  		n = ntrap
 21237  		len = int64(n) * int64(int32(Sz_xTrapezoid)>>2)
 21238  		if uint64(len) > max_req-uint64((*XRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength) {
 21239  			n = int32((max_req - uint64((*XRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength)) / uint64(int32(Sz_xTrapezoid)>>2))
 21240  			len = int64(n) * int64(int32(Sz_xTrapezoid)>>2)
 21241  		}
 21242  		if int64((*XRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 21243  			if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 21244  				{
 21245  					// var _BRdat CARD64 at bp, 8
 21246  					var _BRlen CARD32 = CARD32(int32((*XRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength) - 1)
 21247  					(*XRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 21248  					*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 21249  					libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 21250  					*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 21251  					x11.X_XData32(tls, dpy, bp, uint32(4))
 21252  				}
 21253  			} else {
 21254  				len = len
 21255  				*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 21256  			}
 21257  		} else {
 21258  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 21259  		}
 21260  		len <<= 2
 21261  		{
 21262  			if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 21263  				libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, traps, uint64(int32(len)), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 21264  				*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len + int64(3)) & int64(libc.CplInt32(3)))
 21265  			} else {
 21266  				x11.X_XSend(tls, dpy, traps, len)
 21267  			}
 21268  		}
 21269  
 21270  		ntrap = ntrap - n
 21271  		traps += 40 * uintptr(n)
 21272  	}
 21273  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 21274  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 21275  	}
 21276  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 21277  		(*struct {
 21278  			f func(*libc.TLS, uintptr) int32
 21279  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 21280  	}
 21281  }
 21282  
 21283  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 21284  // matters on alpha.  Note that this macro assumes that int is 32 bits
 21285  // except on WORD64 machines where it is 64 bits.
 21286  
 21287  func XXRenderCompositeTriangles(tls *libc.TLS, dpy uintptr, op int32, src Picture, dst Picture, maskFormat uintptr, xSrc int32, ySrc int32, triangles uintptr, ntriangle int32) { /* Tri.c:30:1: */
 21288  	bp := tls.Alloc(8)
 21289  	defer tls.Free(8)
 21290  
 21291  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 21292  	var req uintptr
 21293  	var n int32
 21294  	var len int64
 21295  
 21296  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 21297  		return
 21298  	}
 21299  
 21300  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 21301  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 21302  	}
 21303  	for ntriangle != 0 {
 21304  		req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderTriangles), uint64(Sz_xRenderTrianglesReq))
 21305  		(*XRenderTrianglesReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 21306  		(*XRenderTrianglesReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderTriangles)
 21307  		(*XRenderTrianglesReq)(unsafe.Pointer(req)).Fop = CARD8(op)
 21308  		(*XRenderTrianglesReq)(unsafe.Pointer(req)).Fsrc = CARD32(src)
 21309  		(*XRenderTrianglesReq)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 21310  		(*XRenderTrianglesReq)(unsafe.Pointer(req)).FmaskFormat = func() uint32 {
 21311  			if maskFormat != 0 {
 21312  				return uint32((*XRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid)
 21313  			}
 21314  			return uint32(0)
 21315  		}()
 21316  		(*XRenderTrianglesReq)(unsafe.Pointer(req)).FxSrc = INT16(xSrc)
 21317  		(*XRenderTrianglesReq)(unsafe.Pointer(req)).FySrc = INT16(ySrc)
 21318  		n = ntriangle
 21319  		len = int64(n) * int64(int32(Sz_xTriangle)>>2)
 21320  		if !(int32((*Display)(unsafe.Pointer(dpy)).Fbigreq_size) != 0) && len > int64((*Display)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*XRenderTrianglesReq)(unsafe.Pointer(req)).Flength)) {
 21321  			n = int32(((*Display)(unsafe.Pointer(dpy)).Fmax_request_size - uint32((*XRenderTrianglesReq)(unsafe.Pointer(req)).Flength)) / uint32(int32(Sz_xTriangle)>>2))
 21322  			len = int64(n) * int64(int32(Sz_xTriangle)>>2)
 21323  		}
 21324  		if int64((*XRenderTrianglesReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 21325  			if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 21326  				{
 21327  					// var _BRdat CARD64 at bp, 8
 21328  					var _BRlen CARD32 = CARD32(int32((*XRenderTrianglesReq)(unsafe.Pointer(req)).Flength) - 1)
 21329  					(*XRenderTrianglesReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 21330  					*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 21331  					libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 21332  					*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 21333  					x11.X_XData32(tls, dpy, bp, uint32(4))
 21334  				}
 21335  			} else {
 21336  				len = len
 21337  				*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 21338  			}
 21339  		} else {
 21340  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 21341  		}
 21342  		len <<= 2
 21343  		{
 21344  			if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 21345  				libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, triangles, uint64(int32(len)), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 21346  				*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len + int64(3)) & int64(libc.CplInt32(3)))
 21347  			} else {
 21348  				x11.X_XSend(tls, dpy, triangles, len)
 21349  			}
 21350  		}
 21351  
 21352  		ntriangle = ntriangle - n
 21353  		triangles += 24 * uintptr(n)
 21354  	}
 21355  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 21356  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 21357  	}
 21358  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 21359  		(*struct {
 21360  			f func(*libc.TLS, uintptr) int32
 21361  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 21362  	}
 21363  }
 21364  
 21365  func XXRenderCompositeTriStrip(tls *libc.TLS, dpy uintptr, op int32, src Picture, dst Picture, maskFormat uintptr, xSrc int32, ySrc int32, points uintptr, npoint int32) { /* Tri.c:75:1: */
 21366  	bp := tls.Alloc(8)
 21367  	defer tls.Free(8)
 21368  
 21369  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 21370  	var req uintptr
 21371  	var n int32
 21372  	var len int64
 21373  
 21374  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 21375  		return
 21376  	}
 21377  
 21378  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 21379  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 21380  	}
 21381  	for npoint > 2 {
 21382  		req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderTriStrip), uint64(Sz_xRenderTriStripReq))
 21383  		(*XRenderTriStripReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 21384  		(*XRenderTriStripReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderTriStrip)
 21385  		(*XRenderTriStripReq)(unsafe.Pointer(req)).Fop = CARD8(op)
 21386  		(*XRenderTriStripReq)(unsafe.Pointer(req)).Fsrc = CARD32(src)
 21387  		(*XRenderTriStripReq)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 21388  		(*XRenderTriStripReq)(unsafe.Pointer(req)).FmaskFormat = func() uint32 {
 21389  			if maskFormat != 0 {
 21390  				return uint32((*XRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid)
 21391  			}
 21392  			return uint32(0)
 21393  		}()
 21394  		(*XRenderTriStripReq)(unsafe.Pointer(req)).FxSrc = INT16(xSrc)
 21395  		(*XRenderTriStripReq)(unsafe.Pointer(req)).FySrc = INT16(ySrc)
 21396  		n = npoint
 21397  		len = int64(n) * int64(int32(Sz_xPointFixed)>>2)
 21398  		if !(int32((*Display)(unsafe.Pointer(dpy)).Fbigreq_size) != 0) && len > int64((*Display)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*XRenderTriStripReq)(unsafe.Pointer(req)).Flength)) {
 21399  			n = int32(((*Display)(unsafe.Pointer(dpy)).Fmax_request_size - uint32((*XRenderTriStripReq)(unsafe.Pointer(req)).Flength)) / uint32(int32(Sz_xPointFixed)>>2))
 21400  			len = int64(n) * int64(int32(Sz_xPointFixed)>>2)
 21401  		}
 21402  		if int64((*XRenderTriStripReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 21403  			if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 21404  				{
 21405  					// var _BRdat CARD64 at bp, 8
 21406  					var _BRlen CARD32 = CARD32(int32((*XRenderTriStripReq)(unsafe.Pointer(req)).Flength) - 1)
 21407  					(*XRenderTriStripReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 21408  					*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 21409  					libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 21410  					*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 21411  					x11.X_XData32(tls, dpy, bp, uint32(4))
 21412  				}
 21413  			} else {
 21414  				len = len
 21415  				*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 21416  			}
 21417  		} else {
 21418  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 21419  		}
 21420  		len <<= 2
 21421  		{
 21422  			if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 21423  				libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, points, uint64(int32(len)), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 21424  				*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len + int64(3)) & int64(libc.CplInt32(3)))
 21425  			} else {
 21426  				x11.X_XSend(tls, dpy, points, len)
 21427  			}
 21428  		}
 21429  
 21430  		npoint = npoint - (n - 2)
 21431  		points += 8 * uintptr(n-2)
 21432  	}
 21433  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 21434  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 21435  	}
 21436  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 21437  		(*struct {
 21438  			f func(*libc.TLS, uintptr) int32
 21439  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 21440  	}
 21441  }
 21442  
 21443  func XXRenderCompositeTriFan(tls *libc.TLS, dpy uintptr, op int32, src Picture, dst Picture, maskFormat uintptr, xSrc int32, ySrc int32, points uintptr, npoint int32) { /* Tri.c:120:1: */
 21444  	bp := tls.Alloc(8)
 21445  	defer tls.Free(8)
 21446  
 21447  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 21448  	var first uintptr = points
 21449  	var p uintptr
 21450  	var req uintptr
 21451  	var n int32
 21452  	var len int64
 21453  
 21454  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 21455  		return
 21456  	}
 21457  
 21458  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 21459  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 21460  	}
 21461  	points += 8
 21462  	npoint--
 21463  	for npoint > 1 {
 21464  		req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderTriFan), uint64(Sz_xRenderTriFanReq+Sz_xPointFixed))
 21465  		(*XRenderTriFanReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 21466  		(*XRenderTriFanReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderTriFan)
 21467  		(*XRenderTriFanReq)(unsafe.Pointer(req)).Fop = CARD8(op)
 21468  		(*XRenderTriFanReq)(unsafe.Pointer(req)).Fsrc = CARD32(src)
 21469  		(*XRenderTriFanReq)(unsafe.Pointer(req)).Fdst = CARD32(dst)
 21470  		(*XRenderTriFanReq)(unsafe.Pointer(req)).FmaskFormat = func() uint32 {
 21471  			if maskFormat != 0 {
 21472  				return uint32((*XRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid)
 21473  			}
 21474  			return uint32(0)
 21475  		}()
 21476  		(*XRenderTriFanReq)(unsafe.Pointer(req)).FxSrc = INT16(xSrc)
 21477  		(*XRenderTriFanReq)(unsafe.Pointer(req)).FySrc = INT16(ySrc)
 21478  		p = req + uintptr(1)*24
 21479  		(*XPointFixed)(unsafe.Pointer(p)).Fx = (*XPointFixed1)(unsafe.Pointer(first)).Fx
 21480  		(*XPointFixed)(unsafe.Pointer(p)).Fy = (*XPointFixed1)(unsafe.Pointer(first)).Fy
 21481  		n = npoint
 21482  		len = int64(n) * int64(int32(Sz_xPointFixed)>>2)
 21483  		if !(int32((*Display)(unsafe.Pointer(dpy)).Fbigreq_size) != 0) && len > int64((*Display)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*XRenderTriFanReq)(unsafe.Pointer(req)).Flength)) {
 21484  			n = int32(((*Display)(unsafe.Pointer(dpy)).Fmax_request_size - uint32((*XRenderTriFanReq)(unsafe.Pointer(req)).Flength)) / uint32(int32(Sz_xPointFixed)>>2))
 21485  			len = int64(n) * int64(int32(Sz_xPointFixed)>>2)
 21486  		}
 21487  		if int64((*XRenderTriFanReq)(unsafe.Pointer(req)).Flength)+len > int64(uint32(65535)) {
 21488  			if (*Display)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
 21489  				{
 21490  					// var _BRdat CARD64 at bp, 8
 21491  					var _BRlen CARD32 = CARD32(int32((*XRenderTriFanReq)(unsafe.Pointer(req)).Flength) - 1)
 21492  					(*XRenderTriFanReq)(unsafe.Pointer(req)).Flength = CARD16(0)
 21493  					*(*CARD64)(unsafe.Pointer(bp /* _BRdat */)) = CARD64(*(*CARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
 21494  					libc.X__builtin___memmove_chk(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-CARD32(1))<<2), libc.X__builtin_object_size(tls, req+uintptr(8), 0))
 21495  					*(*CARD32)(unsafe.Pointer(req + 1*4)) = CARD32(int64(_BRlen) + len + int64(2))
 21496  					x11.X_XData32(tls, dpy, bp, uint32(4))
 21497  				}
 21498  			} else {
 21499  				len = len
 21500  				*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 21501  			}
 21502  		} else {
 21503  			*(*CARD16)(unsafe.Pointer(req + 2)) += CARD16(len)
 21504  		}
 21505  		len <<= 2
 21506  		{
 21507  			if (*Display)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len) <= (*Display)(unsafe.Pointer(dpy)).Fbufmax {
 21508  				libc.X__builtin___memcpy_chk(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, points, uint64(int32(len)), libc.X__builtin_object_size(tls, (*Display)(unsafe.Pointer(dpy)).Fbufptr, 0))
 21509  				*(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len + int64(3)) & int64(libc.CplInt32(3)))
 21510  			} else {
 21511  				x11.X_XSend(tls, dpy, points, len)
 21512  			}
 21513  		}
 21514  
 21515  		npoint = npoint - (n - 1)
 21516  		points += 8 * uintptr(n-1)
 21517  	}
 21518  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 21519  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 21520  	}
 21521  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 21522  		(*struct {
 21523  			f func(*libc.TLS, uintptr) int32
 21524  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 21525  	}
 21526  }
 21527  
 21528  // Xlib uses long for 32-bit values.  Xrender uses int.  This
 21529  // matters on alpha.  Note that this macro assumes that int is 32 bits
 21530  // except on WORD64 machines where it is 64 bits.
 21531  
 21532  // Copyright (C) 1992-2021 Free Software Foundation, Inc.
 21533  //
 21534  // This file is part of GCC.
 21535  //
 21536  // GCC is free software; you can redistribute it and/or modify it under
 21537  // the terms of the GNU General Public License as published by the Free
 21538  // Software Foundation; either version 3, or (at your option) any later
 21539  // version.
 21540  //
 21541  // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
 21542  // WARRANTY; without even the implied warranty of MERCHANTABILITY or
 21543  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 21544  // for more details.
 21545  //
 21546  // Under Section 7 of GPL version 3, you are granted additional
 21547  // permissions described in the GCC Runtime Library Exception, version
 21548  // 3.1, as published by the Free Software Foundation.
 21549  //
 21550  // You should have received a copy of the GNU General Public License and
 21551  // a copy of the GCC Runtime Library Exception along with this program;
 21552  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 21553  // <http://www.gnu.org/licenses/>.
 21554  
 21555  // This administrivia gets added to the beginning of limits.h
 21556  //    if the system has its own version of limits.h.
 21557  
 21558  // We use _GCC_LIMITS_H_ because we want this not to match
 21559  //    any macros that the system's limits.h uses for its own purposes.
 21560  
 21561  // Use "..." so that we find syslimits.h only in this same directory.
 21562  // syslimits.h stands for the system's own limits.h file.
 21563  //    If we can use it ok unmodified, then we install this text.
 21564  //    If fixincludes fixes it, then the fixed version is installed
 21565  //    instead of this text.
 21566  
 21567  // Copyright (c) 2000, 2004-2007, 2009 Apple Inc. All rights reserved.
 21568  //
 21569  // @APPLE_LICENSE_HEADER_START@
 21570  //
 21571  // This file contains Original Code and/or Modifications of Original Code
 21572  // as defined in and that are subject to the Apple Public Source License
 21573  // Version 2.0 (the 'License'). You may not use this file except in
 21574  // compliance with the License. Please obtain a copy of the License at
 21575  // http://www.opensource.apple.com/apsl/ and read it before using this
 21576  // file.
 21577  //
 21578  // The Original Code and all software distributed under the License are
 21579  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 21580  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 21581  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 21582  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 21583  // Please see the License for the specific language governing rights and
 21584  // limitations under the License.
 21585  //
 21586  // @APPLE_LICENSE_HEADER_END@
 21587  //	$NetBSD: limits.h,v 1.8 1996/10/21 05:10:50 jtc Exp $
 21588  
 21589  // Copyright (c) 1988, 1993
 21590  //	The Regents of the University of California.  All rights reserved.
 21591  //
 21592  // Redistribution and use in source and binary forms, with or without
 21593  // modification, are permitted provided that the following conditions
 21594  // are met:
 21595  // 1. Redistributions of source code must retain the above copyright
 21596  //    notice, this list of conditions and the following disclaimer.
 21597  // 2. Redistributions in binary form must reproduce the above copyright
 21598  //    notice, this list of conditions and the following disclaimer in the
 21599  //    documentation and/or other materials provided with the distribution.
 21600  // 3. All advertising materials mentioning features or use of this software
 21601  //    must display the following acknowledgement:
 21602  //	This product includes software developed by the University of
 21603  //	California, Berkeley and its contributors.
 21604  // 4. Neither the name of the University nor the names of its contributors
 21605  //    may be used to endorse or promote products derived from this software
 21606  //    without specific prior written permission.
 21607  //
 21608  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 21609  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 21610  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 21611  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 21612  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 21613  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 21614  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 21615  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 21616  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 21617  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 21618  // SUCH DAMAGE.
 21619  //
 21620  //	@(#)limits.h	8.2 (Berkeley) 1/4/94
 21621  
 21622  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 21623  //
 21624  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 21625  //
 21626  // This file contains Original Code and/or Modifications of Original Code
 21627  // as defined in and that are subject to the Apple Public Source License
 21628  // Version 2.0 (the 'License'). You may not use this file except in
 21629  // compliance with the License. The rights granted to you under the License
 21630  // may not be used to create, or enable the creation or redistribution of,
 21631  // unlawful or unlicensed copies of an Apple operating system, or to
 21632  // circumvent, violate, or enable the circumvention or violation of, any
 21633  // terms of an Apple operating system software license agreement.
 21634  //
 21635  // Please obtain a copy of the License at
 21636  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 21637  //
 21638  // The Original Code and all software distributed under the License are
 21639  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 21640  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 21641  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 21642  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 21643  // Please see the License for the specific language governing rights and
 21644  // limitations under the License.
 21645  //
 21646  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 21647  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 21648  // Copyright (c) 1991, 1993
 21649  //	The Regents of the University of California.  All rights reserved.
 21650  //
 21651  // This code is derived from software contributed to Berkeley by
 21652  // Berkeley Software Design, Inc.
 21653  //
 21654  // Redistribution and use in source and binary forms, with or without
 21655  // modification, are permitted provided that the following conditions
 21656  // are met:
 21657  // 1. Redistributions of source code must retain the above copyright
 21658  //    notice, this list of conditions and the following disclaimer.
 21659  // 2. Redistributions in binary form must reproduce the above copyright
 21660  //    notice, this list of conditions and the following disclaimer in the
 21661  //    documentation and/or other materials provided with the distribution.
 21662  // 3. All advertising materials mentioning features or use of this software
 21663  //    must display the following acknowledgement:
 21664  //	This product includes software developed by the University of
 21665  //	California, Berkeley and its contributors.
 21666  // 4. Neither the name of the University nor the names of its contributors
 21667  //    may be used to endorse or promote products derived from this software
 21668  //    without specific prior written permission.
 21669  //
 21670  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 21671  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 21672  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 21673  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 21674  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 21675  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 21676  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 21677  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 21678  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 21679  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 21680  // SUCH DAMAGE.
 21681  //
 21682  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 21683  
 21684  // This is the `system' limits.h, independent of any particular
 21685  //  compiler.  GCC provides its own limits.h which can be found in
 21686  //  /usr/lib/gcc, although it is not very informative.
 21687  //  This file is public domain.
 21688  
 21689  // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
 21690  // Copyright (c) 1988, 1993
 21691  //	The Regents of the University of California.  All rights reserved.
 21692  //
 21693  // Redistribution and use in source and binary forms, with or without
 21694  // modification, are permitted provided that the following conditions
 21695  // are met:
 21696  // 1. Redistributions of source code must retain the above copyright
 21697  //    notice, this list of conditions and the following disclaimer.
 21698  // 2. Redistributions in binary form must reproduce the above copyright
 21699  //    notice, this list of conditions and the following disclaimer in the
 21700  //    documentation and/or other materials provided with the distribution.
 21701  // 3. All advertising materials mentioning features or use of this software
 21702  //    must display the following acknowledgement:
 21703  //	This product includes software developed by the University of
 21704  //	California, Berkeley and its contributors.
 21705  // 4. Neither the name of the University nor the names of its contributors
 21706  //    may be used to endorse or promote products derived from this software
 21707  //    without specific prior written permission.
 21708  //
 21709  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 21710  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 21711  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 21712  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 21713  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 21714  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 21715  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 21716  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 21717  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 21718  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 21719  // SUCH DAMAGE.
 21720  //
 21721  //	@(#)limits.h	8.3 (Berkeley) 1/4/94
 21722  
 21723  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 21724  //
 21725  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 21726  //
 21727  // This file contains Original Code and/or Modifications of Original Code
 21728  // as defined in and that are subject to the Apple Public Source License
 21729  // Version 2.0 (the 'License'). You may not use this file except in
 21730  // compliance with the License. The rights granted to you under the License
 21731  // may not be used to create, or enable the creation or redistribution of,
 21732  // unlawful or unlicensed copies of an Apple operating system, or to
 21733  // circumvent, violate, or enable the circumvention or violation of, any
 21734  // terms of an Apple operating system software license agreement.
 21735  //
 21736  // Please obtain a copy of the License at
 21737  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 21738  //
 21739  // The Original Code and all software distributed under the License are
 21740  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 21741  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 21742  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 21743  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 21744  // Please see the License for the specific language governing rights and
 21745  // limitations under the License.
 21746  //
 21747  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 21748  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 21749  // Copyright (c) 1991, 1993
 21750  //	The Regents of the University of California.  All rights reserved.
 21751  //
 21752  // This code is derived from software contributed to Berkeley by
 21753  // Berkeley Software Design, Inc.
 21754  //
 21755  // Redistribution and use in source and binary forms, with or without
 21756  // modification, are permitted provided that the following conditions
 21757  // are met:
 21758  // 1. Redistributions of source code must retain the above copyright
 21759  //    notice, this list of conditions and the following disclaimer.
 21760  // 2. Redistributions in binary form must reproduce the above copyright
 21761  //    notice, this list of conditions and the following disclaimer in the
 21762  //    documentation and/or other materials provided with the distribution.
 21763  // 3. All advertising materials mentioning features or use of this software
 21764  //    must display the following acknowledgement:
 21765  //	This product includes software developed by the University of
 21766  //	California, Berkeley and its contributors.
 21767  // 4. Neither the name of the University nor the names of its contributors
 21768  //    may be used to endorse or promote products derived from this software
 21769  //    without specific prior written permission.
 21770  //
 21771  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 21772  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 21773  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 21774  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 21775  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 21776  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 21777  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 21778  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 21779  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 21780  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 21781  // SUCH DAMAGE.
 21782  //
 21783  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 21784  
 21785  // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
 21786  
 21787  // According to ANSI (section 2.2.4.2), the values below must be usable by
 21788  // #if preprocessing directives.  Additionally, the expression must have the
 21789  // same type as would an expression that is an object of the corresponding
 21790  // type converted according to the integral promotions.  The subtraction for
 21791  // INT_MIN and LONG_MIN is so the value is not unsigned; 2147483648 is an
 21792  // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
 21793  // These numbers work for pcc as well.  The UINT_MAX and ULONG_MAX values
 21794  // are written as hex so that GCC will be quiet about large integer constants.
 21795  
 21796  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
 21797  //
 21798  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 21799  //
 21800  // This file contains Original Code and/or Modifications of Original Code
 21801  // as defined in and that are subject to the Apple Public Source License
 21802  // Version 2.0 (the 'License'). You may not use this file except in
 21803  // compliance with the License. The rights granted to you under the License
 21804  // may not be used to create, or enable the creation or redistribution of,
 21805  // unlawful or unlicensed copies of an Apple operating system, or to
 21806  // circumvent, violate, or enable the circumvention or violation of, any
 21807  // terms of an Apple operating system software license agreement.
 21808  //
 21809  // Please obtain a copy of the License at
 21810  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 21811  //
 21812  // The Original Code and all software distributed under the License are
 21813  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 21814  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 21815  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 21816  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 21817  // Please see the License for the specific language governing rights and
 21818  // limitations under the License.
 21819  //
 21820  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 21821  //	$NetBSD: syslimits.h,v 1.15 1997/06/25 00:48:09 lukem Exp $
 21822  
 21823  // Copyright (c) 1988, 1993
 21824  //	The Regents of the University of California.  All rights reserved.
 21825  //
 21826  // Redistribution and use in source and binary forms, with or without
 21827  // modification, are permitted provided that the following conditions
 21828  // are met:
 21829  // 1. Redistributions of source code must retain the above copyright
 21830  //    notice, this list of conditions and the following disclaimer.
 21831  // 2. Redistributions in binary form must reproduce the above copyright
 21832  //    notice, this list of conditions and the following disclaimer in the
 21833  //    documentation and/or other materials provided with the distribution.
 21834  // 3. All advertising materials mentioning features or use of this software
 21835  //    must display the following acknowledgement:
 21836  //	This product includes software developed by the University of
 21837  //	California, Berkeley and its contributors.
 21838  // 4. Neither the name of the University nor the names of its contributors
 21839  //    may be used to endorse or promote products derived from this software
 21840  //    without specific prior written permission.
 21841  //
 21842  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 21843  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 21844  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 21845  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 21846  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 21847  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 21848  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 21849  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 21850  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 21851  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 21852  // SUCH DAMAGE.
 21853  //
 21854  //	@(#)syslimits.h	8.1 (Berkeley) 6/2/93
 21855  
 21856  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
 21857  //
 21858  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
 21859  //
 21860  // This file contains Original Code and/or Modifications of Original Code
 21861  // as defined in and that are subject to the Apple Public Source License
 21862  // Version 2.0 (the 'License'). You may not use this file except in
 21863  // compliance with the License. The rights granted to you under the License
 21864  // may not be used to create, or enable the creation or redistribution of,
 21865  // unlawful or unlicensed copies of an Apple operating system, or to
 21866  // circumvent, violate, or enable the circumvention or violation of, any
 21867  // terms of an Apple operating system software license agreement.
 21868  //
 21869  // Please obtain a copy of the License at
 21870  // http://www.opensource.apple.com/apsl/ and read it before using this file.
 21871  //
 21872  // The Original Code and all software distributed under the License are
 21873  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 21874  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 21875  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 21876  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 21877  // Please see the License for the specific language governing rights and
 21878  // limitations under the License.
 21879  //
 21880  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
 21881  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
 21882  // Copyright (c) 1991, 1993
 21883  //	The Regents of the University of California.  All rights reserved.
 21884  //
 21885  // This code is derived from software contributed to Berkeley by
 21886  // Berkeley Software Design, Inc.
 21887  //
 21888  // Redistribution and use in source and binary forms, with or without
 21889  // modification, are permitted provided that the following conditions
 21890  // are met:
 21891  // 1. Redistributions of source code must retain the above copyright
 21892  //    notice, this list of conditions and the following disclaimer.
 21893  // 2. Redistributions in binary form must reproduce the above copyright
 21894  //    notice, this list of conditions and the following disclaimer in the
 21895  //    documentation and/or other materials provided with the distribution.
 21896  // 3. All advertising materials mentioning features or use of this software
 21897  //    must display the following acknowledgement:
 21898  //	This product includes software developed by the University of
 21899  //	California, Berkeley and its contributors.
 21900  // 4. Neither the name of the University nor the names of its contributors
 21901  //    may be used to endorse or promote products derived from this software
 21902  //    without specific prior written permission.
 21903  //
 21904  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 21905  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 21906  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 21907  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 21908  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 21909  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 21910  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 21911  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 21912  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 21913  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 21914  // SUCH DAMAGE.
 21915  //
 21916  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
 21917  
 21918  // max bytes for an exec function
 21919  
 21920  // Note: CHILD_MAX *must* be less than hard_maxproc, which is set at
 21921  // compile time; you *cannot* set it higher than the hard limit!!
 21922  
 21923  // = ((PRIO_MAX - PRIO_MIN) / 2) + 1
 21924  // range: 0 - 39 [(2 * NZERO) - 1]
 21925  // 0 is not actually used
 21926  
 21927  // Actually for XSI Visible
 21928  
 21929  // Removed in Issue 6
 21930  
 21931  // NZERO to be defined here. TBD. See also sys/param.h
 21932  
 21933  // Copyright (C) 1991-2021 Free Software Foundation, Inc.
 21934  //
 21935  // This file is part of GCC.
 21936  //
 21937  // GCC is free software; you can redistribute it and/or modify it under
 21938  // the terms of the GNU General Public License as published by the Free
 21939  // Software Foundation; either version 3, or (at your option) any later
 21940  // version.
 21941  //
 21942  // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
 21943  // WARRANTY; without even the implied warranty of MERCHANTABILITY or
 21944  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 21945  // for more details.
 21946  //
 21947  // Under Section 7 of GPL version 3, you are granted additional
 21948  // permissions described in the GCC Runtime Library Exception, version
 21949  // 3.1, as published by the Free Software Foundation.
 21950  //
 21951  // You should have received a copy of the GNU General Public License and
 21952  // a copy of the GCC Runtime Library Exception along with this program;
 21953  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 21954  // <http://www.gnu.org/licenses/>.
 21955  
 21956  // Number of bits in a `char'.
 21957  
 21958  // Maximum length of a multibyte character.
 21959  
 21960  // Minimum and maximum values a `signed char' can hold.
 21961  
 21962  // Maximum value an `unsigned char' can hold.  (Minimum is 0).
 21963  
 21964  // Minimum and maximum values a `char' can hold.
 21965  
 21966  // Minimum and maximum values a `signed short int' can hold.
 21967  
 21968  // Maximum value an `unsigned short int' can hold.  (Minimum is 0).
 21969  
 21970  // Minimum and maximum values a `signed int' can hold.
 21971  
 21972  // Maximum value an `unsigned int' can hold.  (Minimum is 0).
 21973  
 21974  // Minimum and maximum values a `signed long int' can hold.
 21975  //    (Same as `int').
 21976  
 21977  // Maximum value an `unsigned long int' can hold.  (Minimum is 0).
 21978  
 21979  // Minimum and maximum values a `signed long long int' can hold.
 21980  
 21981  // Maximum value an `unsigned long long int' can hold.  (Minimum is 0).
 21982  
 21983  // Minimum and maximum values a `signed long long int' can hold.
 21984  
 21985  // Maximum value an `unsigned long long int' can hold.  (Minimum is 0).
 21986  
 21987  // This administrivia gets added to the end of limits.h
 21988  //    if the system has its own version of limits.h.
 21989  
 21990  var XXRenderExtensionInfo XRenderExtInfo                                       /* Xrender.c:31:16: */
 21991  var XXRenderExtensionName = *(*[7]int8)(unsafe.Pointer(ts + 6 /* "RENDER" */)) /* Xrender.c:32:6 */
 21992  
 21993  // XRenderExtFindDisplay - look for a display in this extension; keeps a
 21994  // cache of the most-recently used for efficiency. (Replaces
 21995  // XextFindDisplay.)
 21996  func sXRenderExtFindDisplay(tls *libc.TLS, extinfo uintptr, dpy uintptr) uintptr { /* Xrender.c:41:30: */
 21997  	var dpyinfo uintptr
 21998  
 21999  	// see if this was the most recently accessed display
 22000  	if libc.AssignUintptr(&dpyinfo, (*XRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur) != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay == dpy {
 22001  		return dpyinfo
 22002  	}
 22003  
 22004  	// look for display in list
 22005  	if x11.X_XLockMutex_fn != 0 {
 22006  		(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XLockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22007  	}
 22008  	for dpyinfo = (*XRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead; dpyinfo != 0; dpyinfo = (*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext {
 22009  		if (*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay == dpy {
 22010  			(*XRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur = dpyinfo // cache most recently used
 22011  			if x11.X_XUnlockMutex_fn != 0 {
 22012  				(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XUnlockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22013  			}
 22014  			return dpyinfo
 22015  		}
 22016  	}
 22017  	if x11.X_XUnlockMutex_fn != 0 {
 22018  		(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XUnlockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22019  	}
 22020  
 22021  	return uintptr(0)
 22022  }
 22023  
 22024  // If the server is missing support for any of the required depths on
 22025  // any screen, tell the application that Render is not present.
 22026  
 22027  // Render requires support for depth 1, 4, 8, 24 and 32 pixmaps
 22028  
 22029  type X_DepthCheckRec = struct {
 22030  	Fnext        uintptr
 22031  	Fdpy         uintptr
 22032  	Fmissing     CARD32
 22033  	F__ccgo_pad1 [4]byte
 22034  	Fserial      uint64
 22035  } /* Xrender.c:86:9 */
 22036  
 22037  // If the server is missing support for any of the required depths on
 22038  // any screen, tell the application that Render is not present.
 22039  
 22040  // Render requires support for depth 1, 4, 8, 24 and 32 pixmaps
 22041  
 22042  type DepthCheckRec = X_DepthCheckRec /* Xrender.c:91:3 */
 22043  type DepthCheckPtr = uintptr         /* Xrender.c:91:18 */
 22044  
 22045  var depthChecks DepthCheckPtr /* Xrender.c:93:22: */
 22046  
 22047  func sXRenderDepthCheckErrorHandler(tls *libc.TLS, dpy uintptr, evt uintptr) int32 { /* Xrender.c:96:1: */
 22048  	if int32((*XErrorEvent)(unsafe.Pointer(evt)).Frequest_code) == X_CreatePixmap && int32((*XErrorEvent)(unsafe.Pointer(evt)).Ferror_code) == BadValue {
 22049  		var d DepthCheckPtr
 22050  		if x11.X_XLockMutex_fn != 0 {
 22051  			(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XLockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22052  		}
 22053  		for d = depthChecks; d != 0; d = (*X_DepthCheckRec)(unsafe.Pointer(d)).Fnext {
 22054  			if (*X_DepthCheckRec)(unsafe.Pointer(d)).Fdpy == dpy {
 22055  				if int64((*XErrorEvent)(unsafe.Pointer(evt)).Fserial-(*X_DepthCheckRec)(unsafe.Pointer(d)).Fserial) >= int64(0) {
 22056  					*(*CARD32)(unsafe.Pointer(d + 16)) |= uint32(1) << ((*XErrorEvent)(unsafe.Pointer(evt)).Fresourceid - uint64(1))
 22057  				}
 22058  				break
 22059  			}
 22060  		}
 22061  		if x11.X_XUnlockMutex_fn != 0 {
 22062  			(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XUnlockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22063  		}
 22064  	}
 22065  	return 0
 22066  }
 22067  
 22068  func sXRenderHasDepths(tls *libc.TLS, dpy uintptr) int32 { /* Xrender.c:115:1: */
 22069  	bp := tls.Alloc(32)
 22070  	defer tls.Free(32)
 22071  
 22072  	var s int32
 22073  
 22074  	for s = 0; s < (*struct {
 22075  		Fext_data            uintptr
 22076  		Fprivate1            uintptr
 22077  		Ffd                  int32
 22078  		Fprivate2            int32
 22079  		Fproto_major_version int32
 22080  		Fproto_minor_version int32
 22081  		Fvendor              uintptr
 22082  		Fprivate3            XID
 22083  		Fprivate4            XID
 22084  		Fprivate5            XID
 22085  		Fprivate6            int32
 22086  		F__ccgo_pad1         [4]byte
 22087  		Fresource_alloc      uintptr
 22088  		Fbyte_order          int32
 22089  		Fbitmap_unit         int32
 22090  		Fbitmap_pad          int32
 22091  		Fbitmap_bit_order    int32
 22092  		Fnformats            int32
 22093  		F__ccgo_pad2         [4]byte
 22094  		Fpixmap_format       uintptr
 22095  		Fprivate8            int32
 22096  		Frelease             int32
 22097  		Fprivate9            uintptr
 22098  		Fprivate10           uintptr
 22099  		Fqlen                int32
 22100  		F__ccgo_pad3         [4]byte
 22101  		Flast_request_read   uint64
 22102  		Frequest             uint64
 22103  		Fprivate11           XPointer
 22104  		Fprivate12           XPointer
 22105  		Fprivate13           XPointer
 22106  		Fprivate14           XPointer
 22107  		Fmax_request_size    uint32
 22108  		F__ccgo_pad4         [4]byte
 22109  		Fdb                  uintptr
 22110  		Fprivate15           uintptr
 22111  		Fdisplay_name        uintptr
 22112  		Fdefault_screen      int32
 22113  		Fnscreens            int32
 22114  		Fscreens             uintptr
 22115  		Fmotion_buffer       uint64
 22116  		Fprivate16           uint64
 22117  		Fmin_keycode         int32
 22118  		Fmax_keycode         int32
 22119  		Fprivate17           XPointer
 22120  		Fprivate18           XPointer
 22121  		Fprivate19           int32
 22122  		F__ccgo_pad5         [4]byte
 22123  		Fxdefaults           uintptr
 22124  	})(unsafe.Pointer(dpy)).Fnscreens; s++ {
 22125  		var depths CARD32 = CARD32(0)
 22126  		var missing CARD32
 22127  		var scr uintptr = (*struct {
 22128  			Fext_data            uintptr
 22129  			Fprivate1            uintptr
 22130  			Ffd                  int32
 22131  			Fprivate2            int32
 22132  			Fproto_major_version int32
 22133  			Fproto_minor_version int32
 22134  			Fvendor              uintptr
 22135  			Fprivate3            XID
 22136  			Fprivate4            XID
 22137  			Fprivate5            XID
 22138  			Fprivate6            int32
 22139  			F__ccgo_pad1         [4]byte
 22140  			Fresource_alloc      uintptr
 22141  			Fbyte_order          int32
 22142  			Fbitmap_unit         int32
 22143  			Fbitmap_pad          int32
 22144  			Fbitmap_bit_order    int32
 22145  			Fnformats            int32
 22146  			F__ccgo_pad2         [4]byte
 22147  			Fpixmap_format       uintptr
 22148  			Fprivate8            int32
 22149  			Frelease             int32
 22150  			Fprivate9            uintptr
 22151  			Fprivate10           uintptr
 22152  			Fqlen                int32
 22153  			F__ccgo_pad3         [4]byte
 22154  			Flast_request_read   uint64
 22155  			Frequest             uint64
 22156  			Fprivate11           XPointer
 22157  			Fprivate12           XPointer
 22158  			Fprivate13           XPointer
 22159  			Fprivate14           XPointer
 22160  			Fmax_request_size    uint32
 22161  			F__ccgo_pad4         [4]byte
 22162  			Fdb                  uintptr
 22163  			Fprivate15           uintptr
 22164  			Fdisplay_name        uintptr
 22165  			Fdefault_screen      int32
 22166  			Fnscreens            int32
 22167  			Fscreens             uintptr
 22168  			Fmotion_buffer       uint64
 22169  			Fprivate16           uint64
 22170  			Fmin_keycode         int32
 22171  			Fmax_keycode         int32
 22172  			Fprivate17           XPointer
 22173  			Fprivate18           XPointer
 22174  			Fprivate19           int32
 22175  			F__ccgo_pad5         [4]byte
 22176  			Fxdefaults           uintptr
 22177  		})(unsafe.Pointer(dpy)).Fscreens + uintptr(s)*128
 22178  		var d int32
 22179  
 22180  		for d = 0; d < (*Screen)(unsafe.Pointer(scr)).Fndepths; d++ {
 22181  			depths = depths | uint32(1)<<((*Depth)(unsafe.Pointer((*Screen)(unsafe.Pointer(scr)).Fdepths+uintptr(d)*16)).Fdepth-1)
 22182  		}
 22183  		missing = ^depths & (uint32(1)<<(1-1) | uint32(1)<<(4-1) | uint32(1)<<(8-1) | uint32(1)<<(24-1) | uint32(1)<<(32-1))
 22184  		if missing != 0 {
 22185  			// var dc DepthCheckRec at bp, 32
 22186  
 22187  			var dp uintptr
 22188  			var previousHandler XErrorHandler
 22189  
 22190  			// Ok, this is ugly.  It should be sufficient at this
 22191  			// point to just return False, but Xinerama is broken at
 22192  			// this point and only advertises depths which have an
 22193  			// associated visual.  Of course, the other depths still
 22194  			// work, but the only way to find out is to try them.
 22195  			(*DepthCheckRec)(unsafe.Pointer(bp /* &dc */)).Fdpy = dpy
 22196  			(*DepthCheckRec)(unsafe.Pointer(bp /* &dc */)).Fmissing = CARD32(0)
 22197  			(*DepthCheckRec)(unsafe.Pointer(bp /* &dc */)).Fserial = x11.XXNextRequest(tls, dpy)
 22198  			if x11.X_XLockMutex_fn != 0 {
 22199  				(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XLockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22200  			}
 22201  			(*DepthCheckRec)(unsafe.Pointer(bp /* &dc */)).Fnext = depthChecks
 22202  			depthChecks = bp /* &dc */
 22203  			if x11.X_XUnlockMutex_fn != 0 {
 22204  				(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XUnlockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22205  			}
 22206  			// I suspect this is not really thread safe, but Xlib doesn't
 22207  			// provide a lot of options here
 22208  			previousHandler = x11.XXSetErrorHandler(tls, *(*uintptr)(unsafe.Pointer(&struct {
 22209  				f func(*libc.TLS, uintptr, uintptr) int32
 22210  			}{sXRenderDepthCheckErrorHandler})))
 22211  			// Try each missing depth and see if pixmap creation succeeds
 22212  			for d = 1; d <= 32; d++ {
 22213  				// don't check depth 1 == Xcursor recurses...
 22214  				if missing&(uint32(1)<<(d-1)) != 0 && d != 1 {
 22215  					var p Pixmap
 22216  					p = x11.XXCreatePixmap(tls, dpy, (*Screen)(unsafe.Pointer((*struct {
 22217  						Fext_data            uintptr
 22218  						Fprivate1            uintptr
 22219  						Ffd                  int32
 22220  						Fprivate2            int32
 22221  						Fproto_major_version int32
 22222  						Fproto_minor_version int32
 22223  						Fvendor              uintptr
 22224  						Fprivate3            XID
 22225  						Fprivate4            XID
 22226  						Fprivate5            XID
 22227  						Fprivate6            int32
 22228  						F__ccgo_pad1         [4]byte
 22229  						Fresource_alloc      uintptr
 22230  						Fbyte_order          int32
 22231  						Fbitmap_unit         int32
 22232  						Fbitmap_pad          int32
 22233  						Fbitmap_bit_order    int32
 22234  						Fnformats            int32
 22235  						F__ccgo_pad2         [4]byte
 22236  						Fpixmap_format       uintptr
 22237  						Fprivate8            int32
 22238  						Frelease             int32
 22239  						Fprivate9            uintptr
 22240  						Fprivate10           uintptr
 22241  						Fqlen                int32
 22242  						F__ccgo_pad3         [4]byte
 22243  						Flast_request_read   uint64
 22244  						Frequest             uint64
 22245  						Fprivate11           XPointer
 22246  						Fprivate12           XPointer
 22247  						Fprivate13           XPointer
 22248  						Fprivate14           XPointer
 22249  						Fmax_request_size    uint32
 22250  						F__ccgo_pad4         [4]byte
 22251  						Fdb                  uintptr
 22252  						Fprivate15           uintptr
 22253  						Fdisplay_name        uintptr
 22254  						Fdefault_screen      int32
 22255  						Fnscreens            int32
 22256  						Fscreens             uintptr
 22257  						Fmotion_buffer       uint64
 22258  						Fprivate16           uint64
 22259  						Fmin_keycode         int32
 22260  						Fmax_keycode         int32
 22261  						Fprivate17           XPointer
 22262  						Fprivate18           XPointer
 22263  						Fprivate19           int32
 22264  						F__ccgo_pad5         [4]byte
 22265  						Fxdefaults           uintptr
 22266  					})(unsafe.Pointer(dpy)).Fscreens+uintptr(s)*128)).Froot, uint32(1), uint32(1), uint32(d))
 22267  					x11.XXFreePixmap(tls, dpy, p)
 22268  				}
 22269  			}
 22270  			x11.XXSync(tls, dpy, False)
 22271  			x11.XXSetErrorHandler(tls, previousHandler)
 22272  			// Unhook from the list of depth check records
 22273  			if x11.X_XLockMutex_fn != 0 {
 22274  				(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XLockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22275  			}
 22276  			for dp = uintptr(unsafe.Pointer(&depthChecks)); *(*uintptr)(unsafe.Pointer(dp)) != 0; dp = *(*uintptr)(unsafe.Pointer(dp)) {
 22277  				if *(*uintptr)(unsafe.Pointer(dp)) == bp {
 22278  					*(*uintptr)(unsafe.Pointer(dp)) = (*DepthCheckRec)(unsafe.Pointer(bp /* &dc */)).Fnext
 22279  					break
 22280  				}
 22281  			}
 22282  			if x11.X_XUnlockMutex_fn != 0 {
 22283  				(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XUnlockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22284  			}
 22285  			if (*DepthCheckRec)(unsafe.Pointer(bp)).Fmissing != 0 {
 22286  				return False
 22287  			}
 22288  		}
 22289  	}
 22290  	return True
 22291  }
 22292  
 22293  // XRenderExtAddDisplay - add a display to this extension. (Replaces
 22294  // XextAddDisplay)
 22295  func sXRenderExtAddDisplay(tls *libc.TLS, extinfo uintptr, dpy uintptr, ext_name uintptr) uintptr { /* Xrender.c:190:30: */
 22296  	var dpyinfo uintptr
 22297  
 22298  	dpyinfo = libc.Xmalloc(tls, Size_t(unsafe.Sizeof(XRenderExtDisplayInfo{})))
 22299  	if !(dpyinfo != 0) {
 22300  		return uintptr(0)
 22301  	}
 22302  	(*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay = dpy
 22303  	(*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Finfo = uintptr(0)
 22304  
 22305  	if sXRenderHasDepths(tls, dpy) != 0 {
 22306  		(*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes = x11.XXInitExtension(tls, dpy, ext_name)
 22307  	} else {
 22308  		(*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes = uintptr(0)
 22309  	}
 22310  
 22311  	// if the server has the extension, then we can initialize the
 22312  	// appropriate function vectors
 22313  	if (*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes != 0 {
 22314  		x11.XXESetCloseDisplay(tls, dpy, (*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes)).Fextension,
 22315  			*(*uintptr)(unsafe.Pointer(&struct {
 22316  				f func(*libc.TLS, uintptr, uintptr) int32
 22317  			}{sXRenderCloseDisplay})))
 22318  	} else {
 22319  		// The server doesn't have this extension.
 22320  		// Use a private Xlib-internal extension to hang the close_display
 22321  		// hook on so that the "cache" (extinfo->cur) is properly cleaned.
 22322  		// (XBUG 7955)
 22323  		var codes uintptr = x11.XXAddExtension(tls, dpy)
 22324  		if !(codes != 0) {
 22325  			x11.XXFree(tls, dpyinfo)
 22326  			return uintptr(0)
 22327  		}
 22328  		x11.XXESetCloseDisplay(tls, dpy, (*XExtCodes)(unsafe.Pointer(codes)).Fextension, *(*uintptr)(unsafe.Pointer(&struct {
 22329  			f func(*libc.TLS, uintptr, uintptr) int32
 22330  		}{sXRenderCloseDisplay})))
 22331  	}
 22332  
 22333  	// now, chain it onto the list
 22334  	if x11.X_XLockMutex_fn != 0 {
 22335  		(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XLockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22336  	}
 22337  	(*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext = (*XRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead
 22338  	(*XRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead = dpyinfo
 22339  	(*XRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur = dpyinfo
 22340  	(*XRenderExtInfo)(unsafe.Pointer(extinfo)).Fndisplays++
 22341  	if x11.X_XUnlockMutex_fn != 0 {
 22342  		(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XUnlockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22343  	}
 22344  	return dpyinfo
 22345  }
 22346  
 22347  // XRenderExtRemoveDisplay - remove the indicated display from the
 22348  // extension object. (Replaces XextRemoveDisplay.)
 22349  func sXRenderExtRemoveDisplay(tls *libc.TLS, extinfo uintptr, dpy uintptr) int32 { /* Xrender.c:246:1: */
 22350  	var dpyinfo uintptr
 22351  	var prev uintptr
 22352  
 22353  	// locate this display and its back link so that it can be removed
 22354  	if x11.X_XLockMutex_fn != 0 {
 22355  		(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XLockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22356  	}
 22357  	prev = uintptr(0)
 22358  	for dpyinfo = (*XRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead; dpyinfo != 0; dpyinfo = (*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext {
 22359  		if (*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay == dpy {
 22360  			break
 22361  		}
 22362  		prev = dpyinfo
 22363  	}
 22364  	if !(dpyinfo != 0) {
 22365  		if x11.X_XUnlockMutex_fn != 0 {
 22366  			(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XUnlockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22367  		}
 22368  		return 0 // hmm, actually an error
 22369  	}
 22370  
 22371  	// remove the display from the list; handles going to zero
 22372  	if prev != 0 {
 22373  		(*XRenderExtDisplayInfo)(unsafe.Pointer(prev)).Fnext = (*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
 22374  	} else {
 22375  		(*XRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead = (*XRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
 22376  	}
 22377  
 22378  	(*XRenderExtInfo)(unsafe.Pointer(extinfo)).Fndisplays--
 22379  	if dpyinfo == (*XRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur {
 22380  		(*XRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur = uintptr(0)
 22381  	} // flush cache
 22382  	if x11.X_XUnlockMutex_fn != 0 {
 22383  		(*struct{ f func(*libc.TLS, LockInfoPtr) })(unsafe.Pointer(&struct{ uintptr }{x11.X_XUnlockMutex_fn})).f(tls, x11.X_Xglobal_lock)
 22384  	}
 22385  
 22386  	libc.Xfree(tls, dpyinfo)
 22387  	return 1
 22388  }
 22389  
 22390  func XXRenderFindDisplay(tls *libc.TLS, dpy uintptr) uintptr { /* Xrender.c:282:23: */
 22391  	var dpyinfo uintptr
 22392  
 22393  	dpyinfo = sXRenderExtFindDisplay(tls, uintptr(unsafe.Pointer(&XXRenderExtensionInfo)), dpy)
 22394  	if !(dpyinfo != 0) {
 22395  		dpyinfo = sXRenderExtAddDisplay(tls, uintptr(unsafe.Pointer(&XXRenderExtensionInfo)), dpy,
 22396  			uintptr(unsafe.Pointer(&XXRenderExtensionName)))
 22397  	}
 22398  	return dpyinfo
 22399  }
 22400  
 22401  func sXRenderCloseDisplay(tls *libc.TLS, dpy uintptr, codes uintptr) int32 { /* Xrender.c:295:1: */
 22402  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 22403  	if info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo != 0 {
 22404  		x11.XXFree(tls, (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo)
 22405  	}
 22406  
 22407  	return sXRenderExtRemoveDisplay(tls, uintptr(unsafe.Pointer(&XXRenderExtensionInfo)), dpy)
 22408  }
 22409  
 22410  // ***************************************************************************
 22411  //
 22412  //                                                                          *
 22413  //			    Render public interfaces                        *
 22414  //                                                                          *
 22415  //
 22416  
 22417  func XXRenderQueryExtension(tls *libc.TLS, dpy uintptr, event_basep uintptr, error_basep uintptr) int32 { /* Xrender.c:309:6: */
 22418  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 22419  
 22420  	if info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0 {
 22421  		*(*int32)(unsafe.Pointer(event_basep)) = (*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Ffirst_event
 22422  		*(*int32)(unsafe.Pointer(error_basep)) = (*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Ffirst_error
 22423  		return True
 22424  	} else {
 22425  		return False
 22426  	}
 22427  	return int32(0)
 22428  }
 22429  
 22430  func XXRenderQueryVersion(tls *libc.TLS, dpy uintptr, major_versionp uintptr, minor_versionp uintptr) int32 { /* Xrender.c:323:8: */
 22431  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 22432  	var xri uintptr
 22433  
 22434  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 22435  		return 0
 22436  	}
 22437  
 22438  	if !(XXRenderQueryFormats(tls, dpy) != 0) {
 22439  		return 0
 22440  	}
 22441  
 22442  	xri = (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
 22443  	*(*int32)(unsafe.Pointer(major_versionp)) = (*XRenderInfo)(unsafe.Pointer(xri)).Fmajor_version
 22444  	*(*int32)(unsafe.Pointer(minor_versionp)) = (*XRenderInfo)(unsafe.Pointer(xri)).Fminor_version
 22445  	return 1
 22446  }
 22447  
 22448  func _XRenderFindFormat(tls *libc.TLS, xri uintptr, format PictFormat) uintptr { /* Xrender.c:342:26: */
 22449  	var nf int32
 22450  
 22451  	for nf = 0; nf < (*XRenderInfo)(unsafe.Pointer(xri)).Fnformat; nf++ {
 22452  		if (*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Fid == format {
 22453  			return (*XRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40
 22454  		}
 22455  	}
 22456  	return uintptr(0)
 22457  }
 22458  
 22459  func _XRenderFindVisual(tls *libc.TLS, dpy uintptr, vid VisualID) uintptr { /* Xrender.c:353:15: */
 22460  	return x11.X_XVIDtoVisual(tls, dpy, vid)
 22461  }
 22462  
 22463  type X_renderVersionState = struct {
 22464  	Fversion_seq   uint64
 22465  	Ferror         int32
 22466  	Fmajor_version int32
 22467  	Fminor_version int32
 22468  	F__ccgo_pad1   [4]byte
 22469  } /* Xrender.c:359:9 */
 22470  
 22471  type X_XrenderVersionState = X_renderVersionState /* Xrender.c:365:3 */
 22472  
 22473  func _XRenderVersionHandler(tls *libc.TLS, dpy uintptr, rep uintptr, buf uintptr, len int32, data XPointer) int32 { /* Xrender.c:368:1: */
 22474  	bp := tls.Alloc(32)
 22475  	defer tls.Free(32)
 22476  
 22477  	// var replbuf XRenderQueryVersionReply at bp, 32
 22478  
 22479  	var repl uintptr
 22480  	var state uintptr = data
 22481  
 22482  	if (*Display)(unsafe.Pointer(dpy)).Flast_request_read != (*X_XrenderVersionState)(unsafe.Pointer(state)).Fversion_seq {
 22483  		return False
 22484  	}
 22485  	if int32((*XGenericReply)(unsafe.Pointer(rep)).Ftype) == X_Error {
 22486  		(*X_XrenderVersionState)(unsafe.Pointer(state)).Ferror = True
 22487  		return False
 22488  	}
 22489  	repl = x11.X_XGetAsyncReply(tls, dpy, bp, rep, buf, len,
 22490  		int32(Sz_xRenderQueryVersionReply-Sz_xReply)>>2,
 22491  		True)
 22492  	(*X_XrenderVersionState)(unsafe.Pointer(state)).Fmajor_version = int32((*XRenderQueryVersionReply)(unsafe.Pointer(repl)).FmajorVersion)
 22493  	(*X_XrenderVersionState)(unsafe.Pointer(state)).Fminor_version = int32((*XRenderQueryVersionReply)(unsafe.Pointer(repl)).FminorVersion)
 22494  	return True
 22495  }
 22496  
 22497  func XXRenderQueryFormats(tls *libc.TLS, dpy uintptr) int32 { /* Xrender.c:395:1: */
 22498  	bp := tls.Alloc(80)
 22499  	defer tls.Free(80)
 22500  
 22501  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 22502  	// var async X_XAsyncHandler at bp+24, 24
 22503  
 22504  	// var async_state X_XrenderVersionState at bp, 24
 22505  
 22506  	var vreq uintptr
 22507  	// var rep XRenderQueryPictFormatsReply at bp+48, 32
 22508  
 22509  	var req uintptr
 22510  	var xri uintptr
 22511  	var format uintptr
 22512  	var screen uintptr
 22513  	var depth uintptr
 22514  	var visual uintptr
 22515  	var xFormat uintptr
 22516  	var xScreen uintptr
 22517  	var xDepth uintptr
 22518  	var xVisual uintptr
 22519  	var xSubpixel uintptr
 22520  	var xData uintptr
 22521  	var nf int32
 22522  	var ns int32
 22523  	var nd int32
 22524  	var nv int32
 22525  	var rlength uint64
 22526  	var nbytes uint64
 22527  
 22528  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 22529  		return 0
 22530  	}
 22531  
 22532  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 22533  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 22534  	}
 22535  	if (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo != 0 {
 22536  		if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 22537  			(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 22538  		}
 22539  		return 1
 22540  	}
 22541  	vreq = x11.X_XGetRequest(tls, dpy, uint8(X_RenderQueryVersion), uint64(Sz_xRenderQueryVersionReq))
 22542  	(*XRenderQueryVersionReq)(unsafe.Pointer(vreq)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 22543  	(*XRenderQueryVersionReq)(unsafe.Pointer(vreq)).FrenderReqType = CARD8(X_RenderQueryVersion)
 22544  	(*XRenderQueryVersionReq)(unsafe.Pointer(vreq)).FmajorVersion = CARD32(RENDER_MAJOR)
 22545  	(*XRenderQueryVersionReq)(unsafe.Pointer(vreq)).FminorVersion = CARD32(RENDER_MINOR)
 22546  
 22547  	(*X_XrenderVersionState)(unsafe.Pointer(bp /* &async_state */)).Fversion_seq = (*Display)(unsafe.Pointer(dpy)).Frequest
 22548  	(*X_XrenderVersionState)(unsafe.Pointer(bp /* &async_state */)).Ferror = False
 22549  	(*X_XAsyncHandler)(unsafe.Pointer(bp + 24 /* &async */)).Fnext = (*Display)(unsafe.Pointer(dpy)).Fasync_handlers
 22550  	(*X_XAsyncHandler)(unsafe.Pointer(bp + 24 /* &async */)).Fhandler = *(*uintptr)(unsafe.Pointer(&struct {
 22551  		f func(*libc.TLS, uintptr, uintptr, uintptr, int32, XPointer) int32
 22552  	}{_XRenderVersionHandler}))
 22553  	(*X_XAsyncHandler)(unsafe.Pointer(bp + 24 /* &async */)).Fdata = bp /* &async_state */
 22554  	(*Display)(unsafe.Pointer(dpy)).Fasync_handlers = bp + 24           /* &async */
 22555  
 22556  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderQueryPictFormats), uint64(Sz_xRenderQueryPictFormatsReq))
 22557  	(*XRenderQueryPictFormatsReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 22558  	(*XRenderQueryPictFormatsReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderQueryPictFormats)
 22559  
 22560  	if !(x11.X_XReply(tls, dpy, bp+48, 0, XFalse) != 0) {
 22561  		{
 22562  			if (*Display)(unsafe.Pointer(dpy)).Fasync_handlers == bp+24 {
 22563  				(*Display)(unsafe.Pointer(dpy)).Fasync_handlers = (*X_XAsyncHandler)(unsafe.Pointer(bp + 24)).Fnext
 22564  			} else {
 22565  				x11.X_XDeqAsyncHandler(tls, dpy, bp+24)
 22566  			}
 22567  		}
 22568  
 22569  		if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 22570  			(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 22571  		}
 22572  		if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 22573  			(*struct {
 22574  				f func(*libc.TLS, uintptr) int32
 22575  			})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 22576  		}
 22577  		return 0
 22578  	}
 22579  	{
 22580  		if (*Display)(unsafe.Pointer(dpy)).Fasync_handlers == bp+24 {
 22581  			(*Display)(unsafe.Pointer(dpy)).Fasync_handlers = (*X_XAsyncHandler)(unsafe.Pointer(bp + 24)).Fnext
 22582  		} else {
 22583  			x11.X_XDeqAsyncHandler(tls, dpy, bp+24)
 22584  		}
 22585  	}
 22586  
 22587  	if (*X_XrenderVersionState)(unsafe.Pointer(bp)).Ferror != 0 {
 22588  		if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 22589  			(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 22590  		}
 22591  		if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 22592  			(*struct {
 22593  				f func(*libc.TLS, uintptr) int32
 22594  			})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 22595  		}
 22596  		return 0
 22597  	}
 22598  	// Check for the lack of sub-pixel data
 22599  	if (*X_XrenderVersionState)(unsafe.Pointer(bp)).Fmajor_version == 0 && (*X_XrenderVersionState)(unsafe.Pointer(bp)).Fminor_version < 6 {
 22600  		(*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48 /* &rep */)).FnumSubpixel = CARD32(0)
 22601  	}
 22602  
 22603  	if uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumFormats) < uint64(0x7fffffff/4)/uint64(unsafe.Sizeof(XRenderPictFormat{})) && uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumScreens) < uint64(0x7fffffff/4)/uint64(unsafe.Sizeof(XRenderScreen{})) && uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumDepths) < uint64(0x7fffffff/4)/uint64(unsafe.Sizeof(XRenderDepth{})) && uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumVisuals) < uint64(0x7fffffff/4)/uint64(unsafe.Sizeof(XRenderVisual{})) && (*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumSubpixel < CARD32(0x7fffffff/4/4) && (*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).Flength < CARD32(int32(0x7fffffff)>>2) {
 22604  		xri = libc.Xmalloc(tls, uint64(unsafe.Sizeof(XRenderInfo{}))+uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumFormats)*uint64(unsafe.Sizeof(XRenderPictFormat{}))+uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumScreens)*uint64(unsafe.Sizeof(XRenderScreen{}))+uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumDepths)*uint64(unsafe.Sizeof(XRenderDepth{}))+uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumVisuals)*uint64(unsafe.Sizeof(XRenderVisual{})))
 22605  		rlength = uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumFormats)*uint64(unsafe.Sizeof(XPictFormInfo{})) + uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumScreens)*uint64(unsafe.Sizeof(XPictScreen{})) + uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumDepths)*uint64(unsafe.Sizeof(XPictDepth{})) + uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumVisuals)*uint64(unsafe.Sizeof(XPictVisual{})) + uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumSubpixel*CARD32(4))
 22606  		xData = libc.Xmalloc(tls, rlength)
 22607  		nbytes = uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).Flength) << 2
 22608  	} else {
 22609  		xri = uintptr(0)
 22610  		xData = uintptr(0)
 22611  		rlength = libc.AssignUint64(&nbytes, uint64(0))
 22612  	}
 22613  
 22614  	if !(xri != 0) || !(xData != 0) || nbytes < rlength {
 22615  		if xri != 0 {
 22616  			libc.Xfree(tls, xri)
 22617  		}
 22618  		if xData != 0 {
 22619  			libc.Xfree(tls, xData)
 22620  		}
 22621  		x11.X_XEatDataWords(tls, dpy, uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48 /* &rep */)).Flength))
 22622  		if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 22623  			(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 22624  		}
 22625  		if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 22626  			(*struct {
 22627  				f func(*libc.TLS, uintptr) int32
 22628  			})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 22629  		}
 22630  		return 0
 22631  	}
 22632  	(*XRenderInfo)(unsafe.Pointer(xri)).Fmajor_version = (*X_XrenderVersionState)(unsafe.Pointer(bp /* &async_state */)).Fmajor_version
 22633  	(*XRenderInfo)(unsafe.Pointer(xri)).Fminor_version = (*X_XrenderVersionState)(unsafe.Pointer(bp /* &async_state */)).Fminor_version
 22634  	(*XRenderInfo)(unsafe.Pointer(xri)).Fformat = xri + uintptr(1)*120
 22635  	(*XRenderInfo)(unsafe.Pointer(xri)).Fnformat = int32((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48 /* &rep */)).FnumFormats)
 22636  	(*XRenderInfo)(unsafe.Pointer(xri)).Fscreen = (*XRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumFormats)*40
 22637  	(*XRenderInfo)(unsafe.Pointer(xri)).Fnscreen = int32((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48 /* &rep */)).FnumScreens)
 22638  	(*XRenderInfo)(unsafe.Pointer(xri)).Fdepth = (*XRenderInfo)(unsafe.Pointer(xri)).Fscreen + uintptr((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumScreens)*32
 22639  	(*XRenderInfo)(unsafe.Pointer(xri)).Fndepth = int32((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48 /* &rep */)).FnumDepths)
 22640  	(*XRenderInfo)(unsafe.Pointer(xri)).Fvisual = (*XRenderInfo)(unsafe.Pointer(xri)).Fdepth + uintptr((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumDepths)*16
 22641  	(*XRenderInfo)(unsafe.Pointer(xri)).Fnvisual = int32((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48 /* &rep */)).FnumVisuals)
 22642  	x11.X_XRead(tls, dpy, xData, int64(rlength))
 22643  	format = (*XRenderInfo)(unsafe.Pointer(xri)).Fformat
 22644  	xFormat = xData
 22645  	for nf = 0; CARD32(nf) < (*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48 /* &rep */)).FnumFormats; nf++ {
 22646  		(*XRenderPictFormat)(unsafe.Pointer(format)).Fid = PictFormat((*XPictFormInfo)(unsafe.Pointer(xFormat)).Fid)
 22647  		(*XRenderPictFormat)(unsafe.Pointer(format)).Ftype = int32((*XPictFormInfo)(unsafe.Pointer(xFormat)).Ftype)
 22648  		(*XRenderPictFormat)(unsafe.Pointer(format)).Fdepth = int32((*XPictFormInfo)(unsafe.Pointer(xFormat)).Fdepth)
 22649  		(*XRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Fred = int16((*XPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Fred)
 22650  		(*XRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FredMask = int16((*XPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FredMask)
 22651  		(*XRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Fgreen = int16((*XPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Fgreen)
 22652  		(*XRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FgreenMask = int16((*XPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FgreenMask)
 22653  		(*XRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Fblue = int16((*XPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Fblue)
 22654  		(*XRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FblueMask = int16((*XPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FblueMask)
 22655  		(*XRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Falpha = int16((*XPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Falpha)
 22656  		(*XRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FalphaMask = int16((*XPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FalphaMask)
 22657  		(*XRenderPictFormat)(unsafe.Pointer(format)).Fcolormap = Colormap((*XPictFormInfo)(unsafe.Pointer(xFormat)).Fcolormap)
 22658  		format += 40
 22659  		xFormat += 28
 22660  	}
 22661  	xScreen = xFormat
 22662  	screen = (*XRenderInfo)(unsafe.Pointer(xri)).Fscreen
 22663  	depth = (*XRenderInfo)(unsafe.Pointer(xri)).Fdepth
 22664  	visual = (*XRenderInfo)(unsafe.Pointer(xri)).Fvisual
 22665  	for ns = 0; ns < (*XRenderInfo)(unsafe.Pointer(xri)).Fnscreen; ns++ {
 22666  		(*XRenderScreen)(unsafe.Pointer(screen)).Fdepths = depth
 22667  		(*XRenderScreen)(unsafe.Pointer(screen)).Fndepths = int32((*XPictScreen)(unsafe.Pointer(xScreen)).FnDepth)
 22668  		(*XRenderScreen)(unsafe.Pointer(screen)).Ffallback = _XRenderFindFormat(tls, xri, uint64((*XPictScreen)(unsafe.Pointer(xScreen)).Ffallback))
 22669  		(*XRenderScreen)(unsafe.Pointer(screen)).Fsubpixel = SubPixelUnknown
 22670  		xDepth = xScreen + uintptr(1)*8
 22671  		if CARD32((*XRenderScreen)(unsafe.Pointer(screen)).Fndepths) > (*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumDepths {
 22672  			libc.Xfree(tls, xri)
 22673  			libc.Xfree(tls, xData)
 22674  			x11.X_XEatDataWords(tls, dpy, uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48 /* &rep */)).Flength))
 22675  			if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 22676  				(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 22677  			}
 22678  			if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 22679  				(*struct {
 22680  					f func(*libc.TLS, uintptr) int32
 22681  				})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 22682  			}
 22683  			return 0
 22684  		}
 22685  		*(*CARD32)(unsafe.Pointer(bp + 48 + 16)) -= CARD32((*XRenderScreen)(unsafe.Pointer(screen)).Fndepths)
 22686  		for nd = 0; nd < (*XRenderScreen)(unsafe.Pointer(screen)).Fndepths; nd++ {
 22687  			(*XRenderDepth)(unsafe.Pointer(depth)).Fdepth = int32((*XPictDepth)(unsafe.Pointer(xDepth)).Fdepth)
 22688  			(*XRenderDepth)(unsafe.Pointer(depth)).Fnvisuals = int32((*XPictDepth)(unsafe.Pointer(xDepth)).FnPictVisuals)
 22689  			(*XRenderDepth)(unsafe.Pointer(depth)).Fvisuals = visual
 22690  			xVisual = xDepth + uintptr(1)*8
 22691  			if CARD32((*XRenderDepth)(unsafe.Pointer(depth)).Fnvisuals) > (*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48)).FnumVisuals {
 22692  				libc.Xfree(tls, xri)
 22693  				libc.Xfree(tls, xData)
 22694  				x11.X_XEatDataWords(tls, dpy, uint64((*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48 /* &rep */)).Flength))
 22695  				if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 22696  					(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 22697  				}
 22698  				if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 22699  					(*struct {
 22700  						f func(*libc.TLS, uintptr) int32
 22701  					})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 22702  				}
 22703  				return 0
 22704  			}
 22705  			*(*CARD32)(unsafe.Pointer(bp + 48 + 20)) -= CARD32((*XRenderDepth)(unsafe.Pointer(depth)).Fnvisuals)
 22706  			for nv = 0; nv < (*XRenderDepth)(unsafe.Pointer(depth)).Fnvisuals; nv++ {
 22707  				(*XRenderVisual)(unsafe.Pointer(visual)).Fvisual = _XRenderFindVisual(tls, dpy, uint64((*XPictVisual)(unsafe.Pointer(xVisual)).Fvisual))
 22708  				(*XRenderVisual)(unsafe.Pointer(visual)).Fformat = _XRenderFindFormat(tls, xri, uint64((*XPictVisual)(unsafe.Pointer(xVisual)).Fformat))
 22709  				visual += 16
 22710  				xVisual += 8
 22711  			}
 22712  			depth += 16
 22713  			xDepth = xVisual
 22714  		}
 22715  		screen += 32
 22716  		xScreen = xDepth
 22717  	}
 22718  	xSubpixel = xScreen
 22719  	screen = (*XRenderInfo)(unsafe.Pointer(xri)).Fscreen
 22720  	for ns = 0; CARD32(ns) < (*XRenderQueryPictFormatsReply)(unsafe.Pointer(bp+48 /* &rep */)).FnumSubpixel; ns++ {
 22721  		(*XRenderScreen)(unsafe.Pointer(screen)).Fsubpixel = int32(*(*CARD32)(unsafe.Pointer(xSubpixel)))
 22722  		xSubpixel += 4
 22723  		screen += 32
 22724  	}
 22725  	(*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo = xri
 22726  	// Skip any extra data
 22727  	if nbytes > rlength {
 22728  		x11.X_XEatData(tls, dpy, nbytes-rlength)
 22729  	}
 22730  
 22731  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 22732  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 22733  	}
 22734  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 22735  		(*struct {
 22736  			f func(*libc.TLS, uintptr) int32
 22737  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 22738  	}
 22739  	libc.Xfree(tls, xData)
 22740  	return 1
 22741  }
 22742  
 22743  func XXRenderQuerySubpixelOrder(tls *libc.TLS, dpy uintptr, screen int32) int32 { /* Xrender.c:595:1: */
 22744  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 22745  	var xri uintptr
 22746  
 22747  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 22748  		return SubPixelUnknown
 22749  	}
 22750  
 22751  	if !(XXRenderQueryFormats(tls, dpy) != 0) {
 22752  		return SubPixelUnknown
 22753  	}
 22754  
 22755  	xri = (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
 22756  	return (*XRenderScreen)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fscreen + uintptr(screen)*32)).Fsubpixel
 22757  }
 22758  
 22759  func XXRenderSetSubpixelOrder(tls *libc.TLS, dpy uintptr, screen int32, subpixel int32) int32 { /* Xrender.c:611:1: */
 22760  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 22761  	var xri uintptr
 22762  
 22763  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 22764  		return False
 22765  	}
 22766  
 22767  	if !(XXRenderQueryFormats(tls, dpy) != 0) {
 22768  		return False
 22769  	}
 22770  
 22771  	xri = (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
 22772  	(*XRenderScreen)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fscreen + uintptr(screen)*32)).Fsubpixel = subpixel
 22773  	return True
 22774  }
 22775  
 22776  func XXRenderFindVisualFormat(tls *libc.TLS, dpy uintptr, visual uintptr) uintptr { /* Xrender.c:627:19: */
 22777  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 22778  	var nv int32
 22779  	var xri uintptr
 22780  	var xrv uintptr
 22781  
 22782  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 22783  		return uintptr(0)
 22784  	}
 22785  
 22786  	if !(XXRenderQueryFormats(tls, dpy) != 0) {
 22787  		return uintptr(0)
 22788  	}
 22789  	xri = (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
 22790  	nv = 0
 22791  	xrv = (*XRenderInfo)(unsafe.Pointer(xri)).Fvisual
 22792  __1:
 22793  	if !(nv < (*XRenderInfo)(unsafe.Pointer(xri)).Fnvisual) {
 22794  		goto __3
 22795  	}
 22796  	if (*XRenderVisual)(unsafe.Pointer(xrv)).Fvisual == visual {
 22797  		return (*XRenderVisual)(unsafe.Pointer(xrv)).Fformat
 22798  	}
 22799  	goto __2
 22800  __2:
 22801  	nv++
 22802  	xrv += 16
 22803  	goto __1
 22804  	goto __3
 22805  __3:
 22806  	;
 22807  	return uintptr(0)
 22808  }
 22809  
 22810  func XXRenderFindFormat(tls *libc.TLS, dpy uintptr, mask uint64, template uintptr, count int32) uintptr { /* Xrender.c:645:19: */
 22811  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 22812  	var nf int32
 22813  	var xri uintptr
 22814  
 22815  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 22816  		return uintptr(0)
 22817  	}
 22818  
 22819  	if !(XXRenderQueryFormats(tls, dpy) != 0) {
 22820  		return uintptr(0)
 22821  	}
 22822  	xri = (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
 22823  	for nf = 0; nf < (*XRenderInfo)(unsafe.Pointer(xri)).Fnformat; nf++ {
 22824  		if mask&uint64(int32(1)<<0) != 0 {
 22825  			if (*XRenderPictFormat)(unsafe.Pointer(template)).Fid != (*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Fid {
 22826  				continue
 22827  			}
 22828  		}
 22829  		if mask&uint64(int32(1)<<1) != 0 {
 22830  			if (*XRenderPictFormat)(unsafe.Pointer(template)).Ftype != (*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Ftype {
 22831  				continue
 22832  			}
 22833  		}
 22834  		if mask&uint64(int32(1)<<2) != 0 {
 22835  			if (*XRenderPictFormat)(unsafe.Pointer(template)).Fdepth != (*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Fdepth {
 22836  				continue
 22837  			}
 22838  		}
 22839  		if mask&uint64(int32(1)<<3) != 0 {
 22840  			if int32((*XRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Fred) != int32((*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Fdirect.Fred) {
 22841  				continue
 22842  			}
 22843  		}
 22844  		if mask&uint64(int32(1)<<4) != 0 {
 22845  			if int32((*XRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FredMask) != int32((*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Fdirect.FredMask) {
 22846  				continue
 22847  			}
 22848  		}
 22849  		if mask&uint64(int32(1)<<5) != 0 {
 22850  			if int32((*XRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Fgreen) != int32((*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Fdirect.Fgreen) {
 22851  				continue
 22852  			}
 22853  		}
 22854  		if mask&uint64(int32(1)<<6) != 0 {
 22855  			if int32((*XRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FgreenMask) != int32((*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Fdirect.FgreenMask) {
 22856  				continue
 22857  			}
 22858  		}
 22859  		if mask&uint64(int32(1)<<7) != 0 {
 22860  			if int32((*XRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Fblue) != int32((*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Fdirect.Fblue) {
 22861  				continue
 22862  			}
 22863  		}
 22864  		if mask&uint64(int32(1)<<8) != 0 {
 22865  			if int32((*XRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FblueMask) != int32((*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Fdirect.FblueMask) {
 22866  				continue
 22867  			}
 22868  		}
 22869  		if mask&uint64(int32(1)<<9) != 0 {
 22870  			if int32((*XRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Falpha) != int32((*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Fdirect.Falpha) {
 22871  				continue
 22872  			}
 22873  		}
 22874  		if mask&uint64(int32(1)<<10) != 0 {
 22875  			if int32((*XRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FalphaMask) != int32((*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Fdirect.FalphaMask) {
 22876  				continue
 22877  			}
 22878  		}
 22879  		if mask&uint64(int32(1)<<11) != 0 {
 22880  			if (*XRenderPictFormat)(unsafe.Pointer(template)).Fcolormap != (*XRenderPictFormat)(unsafe.Pointer((*XRenderInfo)(unsafe.Pointer(xri)).Fformat+uintptr(nf)*40)).Fcolormap {
 22881  				continue
 22882  			}
 22883  		}
 22884  		if libc.PostDecInt32(&count, 1) == 0 {
 22885  			return (*XRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40
 22886  		}
 22887  	}
 22888  	return uintptr(0)
 22889  }
 22890  
 22891  func XXRenderFindStandardFormat(tls *libc.TLS, dpy uintptr, format int32) uintptr { /* Xrender.c:703:19: */
 22892  
 22893  	if 0 <= format && format < PictStandardNUM {
 22894  		return XXRenderFindFormat(tls, dpy,
 22895  			standardFormats[format].Fmask,
 22896  			uintptr(unsafe.Pointer(&standardFormats))+uintptr(format)*48,
 22897  			0)
 22898  	}
 22899  	return uintptr(0)
 22900  }
 22901  
 22902  var standardFormats = [5]struct {
 22903  	Ftempl XRenderPictFormat
 22904  	Fmask  uint64
 22905  }{{
 22906  	// PictStandardARGB32
 22907  	Ftempl: XRenderPictFormat{ // id
 22908  		Ftype:  PictTypeDirect, // type
 22909  		Fdepth: 32,             // depth
 22910  		Fdirect: XRenderDirectFormat{ // direct
 22911  			Fred:       int16(16),   // direct.red
 22912  			FredMask:   int16(0xff), // direct.redMask
 22913  			Fgreen:     int16(8),    // direct.green
 22914  			FgreenMask: int16(0xff), // direct.blue
 22915  			FblueMask:  int16(0xff), // direct.blueMask
 22916  			Falpha:     int16(24),   // direct.alpha
 22917  			FalphaMask: int16(0xff), // direct.alphaMask
 22918  		}, // colormap
 22919  	},
 22920  	Fmask: uint64(int32(1)<<1 | int32(1)<<2 | int32(1)<<3 | int32(1)<<4 | int32(1)<<5 | int32(1)<<6 | int32(1)<<7 | int32(1)<<8 | int32(1)<<9 | int32(1)<<10),
 22921  },
 22922  	// PictStandardRGB24
 22923  	{
 22924  		Ftempl: XRenderPictFormat{ // id
 22925  			Ftype:  PictTypeDirect, // type
 22926  			Fdepth: 24,             // depth
 22927  			Fdirect: XRenderDirectFormat{ // direct
 22928  				Fred:       int16(16),   // direct.red
 22929  				FredMask:   int16(0xff), // direct.redMask
 22930  				Fgreen:     int16(8),    // direct.green
 22931  				FgreenMask: int16(0xff), // direct.blue
 22932  				FblueMask:  int16(0xff), // direct.alphaMask
 22933  			}, // colormap
 22934  		},
 22935  		Fmask: uint64(int32(1)<<1 | int32(1)<<2 | int32(1)<<3 | int32(1)<<4 | int32(1)<<5 | int32(1)<<6 | int32(1)<<7 | int32(1)<<8 | int32(1)<<10),
 22936  	},
 22937  	// PictStandardA8
 22938  	{
 22939  		Ftempl: XRenderPictFormat{ // id
 22940  			Ftype:  PictTypeDirect, // type
 22941  			Fdepth: 8,              // depth
 22942  			Fdirect: XRenderDirectFormat{ // direct.alpha
 22943  				FalphaMask: int16(0xff), // direct.alphaMask
 22944  			}, // colormap
 22945  		},
 22946  		Fmask: uint64(int32(1)<<1 | int32(1)<<2 | int32(1)<<4 | int32(1)<<6 | int32(1)<<8 | int32(1)<<9 | int32(1)<<10),
 22947  	},
 22948  	// PictStandardA4
 22949  	{
 22950  		Ftempl: XRenderPictFormat{ // id
 22951  			Ftype:  PictTypeDirect, // type
 22952  			Fdepth: 4,              // depth
 22953  			Fdirect: XRenderDirectFormat{ // direct.alpha
 22954  				FalphaMask: int16(0x0f), // direct.alphaMask
 22955  			}, // colormap
 22956  		},
 22957  		Fmask: uint64(int32(1)<<1 | int32(1)<<2 | int32(1)<<4 | int32(1)<<6 | int32(1)<<8 | int32(1)<<9 | int32(1)<<10),
 22958  	},
 22959  	// PictStandardA1
 22960  	{
 22961  		Ftempl: XRenderPictFormat{ // id
 22962  			Ftype:  PictTypeDirect, // type
 22963  			Fdepth: 1,              // depth
 22964  			Fdirect: XRenderDirectFormat{ // direct.alpha
 22965  				FalphaMask: int16(0x01), // direct.alphaMask
 22966  			}, // colormap
 22967  		},
 22968  		Fmask: uint64(int32(1)<<1 | int32(1)<<2 | int32(1)<<4 | int32(1)<<6 | int32(1)<<8 | int32(1)<<9 | int32(1)<<10),
 22969  	},
 22970  } /* Xrender.c:710:7 */
 22971  
 22972  func XXRenderQueryPictIndexValues(tls *libc.TLS, dpy uintptr, format uintptr, num uintptr) uintptr { /* Xrender.c:856:13: */
 22973  	bp := tls.Alloc(44)
 22974  	defer tls.Free(44)
 22975  
 22976  	var info uintptr = XXRenderFindDisplay(tls, dpy)
 22977  	var req uintptr
 22978  	// var rep XRenderQueryPictIndexValuesReply at bp, 32
 22979  
 22980  	var values uintptr
 22981  	var nbytes uint32
 22982  	var nread uint32
 22983  	var rlength uint32
 22984  	var i uint32
 22985  
 22986  	if !(info != 0 && (*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
 22987  		return uintptr(0)
 22988  	}
 22989  
 22990  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 22991  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})).f(tls, dpy)
 22992  	}
 22993  	req = x11.X_XGetRequest(tls, dpy, uint8(X_RenderQueryPictIndexValues), uint64(Sz_xRenderQueryPictIndexValuesReq))
 22994  	(*XRenderQueryPictIndexValuesReq)(unsafe.Pointer(req)).FreqType = CARD8((*XExtCodes)(unsafe.Pointer((*XRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
 22995  	(*XRenderQueryPictIndexValuesReq)(unsafe.Pointer(req)).FrenderReqType = CARD8(X_RenderQueryPictIndexValues)
 22996  	(*XRenderQueryPictIndexValuesReq)(unsafe.Pointer(req)).Fformat = CARD32((*XRenderPictFormat)(unsafe.Pointer(format)).Fid)
 22997  	if !(x11.X_XReply(tls, dpy, bp, 0, XFalse) != 0) {
 22998  		if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 22999  			(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 23000  		}
 23001  		if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 23002  			(*struct {
 23003  				f func(*libc.TLS, uintptr) int32
 23004  			})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 23005  		}
 23006  		return uintptr(0)
 23007  	}
 23008  
 23009  	if (*XRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp)).Flength < CARD32(int32(0x7fffffff)>>2) && uint64((*XRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp)).FnumIndexValues) < uint64(0x7fffffff)/uint64(unsafe.Sizeof(XIndexValue1{})) {
 23010  		// request data length
 23011  		nbytes = (*XRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp)).Flength << 2
 23012  		// bytes of actual data in the request
 23013  		nread = (*XRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp)).FnumIndexValues * CARD32(Sz_xIndexValue)
 23014  		// size of array returned to application
 23015  		rlength = uint32(uint64((*XRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp)).FnumIndexValues) * uint64(unsafe.Sizeof(XIndexValue1{})))
 23016  
 23017  		// allocate returned data
 23018  		values = libc.Xmalloc(tls, Size_t(rlength))
 23019  	} else {
 23020  		nbytes = libc.AssignUint32(&nread, libc.AssignUint32(&rlength, uint32(0)))
 23021  		values = uintptr(0)
 23022  	}
 23023  
 23024  	if !(values != 0) {
 23025  		x11.X_XEatDataWords(tls, dpy, uint64((*XRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp /* &rep */)).Flength))
 23026  		if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 23027  			(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 23028  		}
 23029  		if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 23030  			(*struct {
 23031  				f func(*libc.TLS, uintptr) int32
 23032  			})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 23033  		}
 23034  		return uintptr(0)
 23035  	}
 23036  
 23037  	// read the values one at a time and convert
 23038  	*(*int32)(unsafe.Pointer(num)) = int32((*XRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp /* &rep */)).FnumIndexValues)
 23039  	for i = uint32(0); i < (*XRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp /* &rep */)).FnumIndexValues; i++ {
 23040  		// var value XIndexValue at bp+32, 12
 23041  
 23042  		x11.X_XRead(tls, dpy, bp+32, int64(Sz_xIndexValue))
 23043  		(*XIndexValue1)(unsafe.Pointer(values + uintptr(i)*16)).Fpixel = uint64((*XIndexValue)(unsafe.Pointer(bp + 32 /* &value */)).Fpixel)
 23044  		(*XIndexValue1)(unsafe.Pointer(values + uintptr(i)*16)).Fred = (*XIndexValue)(unsafe.Pointer(bp + 32 /* &value */)).Fred
 23045  		(*XIndexValue1)(unsafe.Pointer(values + uintptr(i)*16)).Fgreen = (*XIndexValue)(unsafe.Pointer(bp + 32 /* &value */)).Fgreen
 23046  		(*XIndexValue1)(unsafe.Pointer(values + uintptr(i)*16)).Fblue = (*XIndexValue)(unsafe.Pointer(bp + 32 /* &value */)).Fblue
 23047  		(*XIndexValue1)(unsafe.Pointer(values + uintptr(i)*16)).Falpha = (*XIndexValue)(unsafe.Pointer(bp + 32 /* &value */)).Falpha
 23048  	}
 23049  	// skip any padding
 23050  	if nbytes > nread {
 23051  		x11.X_XEatData(tls, dpy, uint64(nbytes-nread))
 23052  	}
 23053  	if (*Display)(unsafe.Pointer(dpy)).Flock_fns != 0 {
 23054  		(*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*X_XLockPtrs)(unsafe.Pointer((*Display)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})).f(tls, dpy)
 23055  	}
 23056  	if (*Display)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
 23057  		(*struct {
 23058  			f func(*libc.TLS, uintptr) int32
 23059  		})(unsafe.Pointer(&struct{ uintptr }{(*Display)(unsafe.Pointer(dpy)).Fsynchandler})).f(tls, dpy)
 23060  	}
 23061  	return values
 23062  }
 23063  
 23064  var ts1 = "rgba:\x00RENDER\x00"
 23065  var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data