gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

netdb_darwin_amd64.go (331419B)


      1 // Code generated by 'ccgo netdb/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o netdb/netdb_darwin_amd64.go -pkgname netdb', DO NOT EDIT.
      2 
      3 package netdb
      4 
      5 import (
      6 	"math"
      7 	"reflect"
      8 	"sync/atomic"
      9 	"unsafe"
     10 )
     11 
     12 var _ = math.Pi
     13 var _ reflect.Kind
     14 var _ atomic.Value
     15 var _ unsafe.Pointer
     16 
     17 const (
     18 	AF_APPLETALK                           = 16                   // socket.h:375:1:
     19 	AF_CCITT                               = 10                   // socket.h:369:1:
     20 	AF_CHAOS                               = 5                    // socket.h:363:1:
     21 	AF_CNT                                 = 21                   // socket.h:380:1:
     22 	AF_COIP                                = 20                   // socket.h:379:1:
     23 	AF_DATAKIT                             = 9                    // socket.h:368:1:
     24 	AF_DECnet                              = 12                   // socket.h:371:1:
     25 	AF_DLI                                 = 13                   // socket.h:372:1:
     26 	AF_E164                                = 28                   // socket.h:387:1:
     27 	AF_ECMA                                = 8                    // socket.h:367:1:
     28 	AF_HYLINK                              = 15                   // socket.h:374:1:
     29 	AF_IEEE80211                           = 37                   // socket.h:399:1:
     30 	AF_IMPLINK                             = 3                    // socket.h:361:1:
     31 	AF_INET                                = 2                    // socket.h:359:1:
     32 	AF_INET6                               = 30                   // socket.h:390:1:
     33 	AF_IPX                                 = 23                   // socket.h:382:1:
     34 	AF_ISDN                                = 28                   // socket.h:386:1:
     35 	AF_ISO                                 = 7                    // socket.h:365:1:
     36 	AF_LAT                                 = 14                   // socket.h:373:1:
     37 	AF_LINK                                = 18                   // socket.h:377:1:
     38 	AF_LOCAL                               = 1                    // socket.h:357:1:
     39 	AF_MAX                                 = 40                   // socket.h:401:1:
     40 	AF_NATM                                = 31                   // socket.h:392:1:
     41 	AF_NDRV                                = 27                   // socket.h:385:1:
     42 	AF_NETBIOS                             = 33                   // socket.h:394:1:
     43 	AF_NS                                  = 6                    // socket.h:364:1:
     44 	AF_OSI                                 = 7                    // socket.h:366:1:
     45 	AF_PPP                                 = 34                   // socket.h:395:1:
     46 	AF_PUP                                 = 4                    // socket.h:362:1:
     47 	AF_RESERVED_36                         = 36                   // socket.h:398:1:
     48 	AF_ROUTE                               = 17                   // socket.h:376:1:
     49 	AF_SIP                                 = 24                   // socket.h:383:1:
     50 	AF_SNA                                 = 11                   // socket.h:370:1:
     51 	AF_SYSTEM                              = 32                   // socket.h:393:1:
     52 	AF_UNIX                                = 1                    // socket.h:355:1:
     53 	AF_UNSPEC                              = 0                    // socket.h:354:1:
     54 	AF_UTUN                                = 38                   // socket.h:400:1:
     55 	AI_ADDRCONFIG                          = 0x00000400           // netdb.h:226:1:
     56 	AI_ALL                                 = 0x00000100           // netdb.h:222:1:
     57 	AI_CANONNAME                           = 0x00000002           // netdb.h:212:1:
     58 	AI_DEFAULT                             = 1536                 // netdb.h:230:1:
     59 	AI_MASK                                = 5127                 // netdb.h:217:1:
     60 	AI_NUMERICHOST                         = 0x00000004           // netdb.h:213:1:
     61 	AI_NUMERICSERV                         = 0x00001000           // netdb.h:214:1:
     62 	AI_PASSIVE                             = 0x00000001           // netdb.h:211:1:
     63 	AI_UNUSABLE                            = 0x10000000           // netdb.h:234:1:
     64 	AI_V4MAPPED                            = 0x00000800           // netdb.h:227:1:
     65 	AI_V4MAPPED_CFG                        = 0x00000200           // netdb.h:224:1:
     66 	BIG_ENDIAN                             = 4321                 // endian.h:94:1:
     67 	BYTE_ORDER                             = 1234                 // endian.h:97:1:
     68 	CONNECT_DATA_AUTHENTICATED             = 0x4                  // socket.h:300:1:
     69 	CONNECT_DATA_IDEMPOTENT                = 0x2                  // socket.h:299:1:
     70 	CONNECT_RESUME_ON_READ_WRITE           = 0x1                  // socket.h:298:1:
     71 	EAI_ADDRFAMILY                         = 1                    // netdb.h:185:1:
     72 	EAI_AGAIN                              = 2                    // netdb.h:187:1:
     73 	EAI_BADFLAGS                           = 3                    // netdb.h:188:1:
     74 	EAI_BADHINTS                           = 12                   // netdb.h:200:1:
     75 	EAI_FAIL                               = 4                    // netdb.h:189:1:
     76 	EAI_FAMILY                             = 5                    // netdb.h:190:1:
     77 	EAI_MAX                                = 15                   // netdb.h:205:1:
     78 	EAI_MEMORY                             = 6                    // netdb.h:191:1:
     79 	EAI_NODATA                             = 7                    // netdb.h:193:1:
     80 	EAI_NONAME                             = 8                    // netdb.h:195:1:
     81 	EAI_OVERFLOW                           = 14                   // netdb.h:203:1:
     82 	EAI_PROTOCOL                           = 13                   // netdb.h:201:1:
     83 	EAI_SERVICE                            = 9                    // netdb.h:196:1:
     84 	EAI_SOCKTYPE                           = 10                   // netdb.h:197:1:
     85 	EAI_SYSTEM                             = 11                   // netdb.h:198:1:
     86 	FD_SETSIZE                             = 1024                 // _fd_setsize.h:29:1:
     87 	HOST_NOT_FOUND                         = 1                    // netdb.h:174:1:
     88 	ICMP6_FILTER                           = 18                   // in6.h:380:1:
     89 	ICMPV6CTL_ND6_ONLINKNSRFC4861          = 50                   // in6.h:615:1:
     90 	INADDR_NONE                            = 0xffffffff           // in.h:342:1:
     91 	INET6_ADDRSTRLEN                       = 46                   // in6.h:161:1:
     92 	INET_ADDRSTRLEN                        = 16                   // in.h:388:1:
     93 	INT16_MAX                              = 32767                // stdint.h:599:1:
     94 	INT16_MIN                              = -32768               // stdint.h:600:1:
     95 	INT32_MAX                              = 2147483647           // stdint.h:555:1:
     96 	INT32_MIN                              = -2147483648          // stdint.h:556:1:
     97 	INT64_MAX                              = 9223372036854775807  // stdint.h:461:1:
     98 	INT64_MIN                              = -9223372036854775808 // stdint.h:462:1:
     99 	INT8_MAX                               = 127                  // stdint.h:621:1:
    100 	INT8_MIN                               = -128                 // stdint.h:622:1:
    101 	INTMAX_MAX                             = 9223372036854775807  // stdint.h:663:1:
    102 	INTMAX_MIN                             = -9223372036854775808 // stdint.h:662:1:
    103 	INTPTR_MAX                             = 9223372036854775807  // stdint.h:649:1:
    104 	INTPTR_MIN                             = -9223372036854775808 // stdint.h:648:1:
    105 	INT_FAST16_MAX                         = 32767                // stdint.h:615:1:
    106 	INT_FAST16_MIN                         = -32768               // stdint.h:614:1:
    107 	INT_FAST32_MAX                         = 2147483647           // stdint.h:574:1:
    108 	INT_FAST32_MIN                         = -2147483648          // stdint.h:573:1:
    109 	INT_FAST64_MAX                         = 9223372036854775807  // stdint.h:483:1:
    110 	INT_FAST64_MIN                         = -9223372036854775808 // stdint.h:482:1:
    111 	INT_FAST8_MAX                          = 127                  // stdint.h:634:1:
    112 	INT_FAST8_MIN                          = -128                 // stdint.h:633:1:
    113 	INT_LEAST16_MAX                        = 32767                // stdint.h:612:1:
    114 	INT_LEAST16_MIN                        = -32768               // stdint.h:611:1:
    115 	INT_LEAST32_MAX                        = 2147483647           // stdint.h:571:1:
    116 	INT_LEAST32_MIN                        = -2147483648          // stdint.h:570:1:
    117 	INT_LEAST64_MAX                        = 9223372036854775807  // stdint.h:480:1:
    118 	INT_LEAST64_MIN                        = -9223372036854775808 // stdint.h:479:1:
    119 	INT_LEAST8_MAX                         = 127                  // stdint.h:631:1:
    120 	INT_LEAST8_MIN                         = -128                 // stdint.h:630:1:
    121 	IN_CLASSA_HOST                         = 0x00ffffff           // in.h:317:1:
    122 	IN_CLASSA_MAX                          = 128                  // in.h:318:1:
    123 	IN_CLASSA_NET                          = 0xff000000           // in.h:315:1:
    124 	IN_CLASSA_NSHIFT                       = 24                   // in.h:316:1:
    125 	IN_CLASSB_HOST                         = 0x0000ffff           // in.h:323:1:
    126 	IN_CLASSB_MAX                          = 65536                // in.h:324:1:
    127 	IN_CLASSB_NET                          = 0xffff0000           // in.h:321:1:
    128 	IN_CLASSB_NSHIFT                       = 16                   // in.h:322:1:
    129 	IN_CLASSC_HOST                         = 0x000000ff           // in.h:329:1:
    130 	IN_CLASSC_NET                          = 0xffffff00           // in.h:327:1:
    131 	IN_CLASSC_NSHIFT                       = 8                    // in.h:328:1:
    132 	IN_CLASSD_HOST                         = 0x0fffffff           // in.h:334:1:
    133 	IN_CLASSD_NET                          = 0xf0000000           // in.h:332:1:
    134 	IN_CLASSD_NSHIFT                       = 28                   // in.h:333:1:
    135 	IN_LOOPBACKNET                         = 127                  // in.h:369:1:
    136 	IPCTL_ACCEPTSOURCEROUTE                = 13                   // in.h:649:1:
    137 	IPCTL_DEFTTL                           = 3                    // in.h:637:1:
    138 	IPCTL_DIRECTEDBROADCAST                = 9                    // in.h:645:1:
    139 	IPCTL_FASTFORWARDING                   = 14                   // in.h:650:1:
    140 	IPCTL_FORWARDING                       = 1                    // in.h:635:1:
    141 	IPCTL_GIF_TTL                          = 16                   // in.h:652:1:
    142 	IPCTL_INTRQDROPS                       = 11                   // in.h:647:1:
    143 	IPCTL_INTRQMAXLEN                      = 10                   // in.h:646:1:
    144 	IPCTL_KEEPFAITH                        = 15                   // in.h:651:1:
    145 	IPCTL_MAXID                            = 17                   // in.h:653:1:
    146 	IPCTL_RTEXPIRE                         = 5                    // in.h:641:1:
    147 	IPCTL_RTMAXCACHE                       = 7                    // in.h:643:1:
    148 	IPCTL_RTMINEXPIRE                      = 6                    // in.h:642:1:
    149 	IPCTL_SENDREDIRECTS                    = 2                    // in.h:636:1:
    150 	IPCTL_SOURCEROUTE                      = 8                    // in.h:644:1:
    151 	IPCTL_STATS                            = 12                   // in.h:648:1:
    152 	IPPORT_HIFIRSTAUTO                     = 49152                // in.h:286:1:
    153 	IPPORT_HILASTAUTO                      = 65535                // in.h:287:1:
    154 	IPPORT_RESERVED                        = 1024                 // in.h:279:1:
    155 	IPPORT_RESERVEDSTART                   = 600                  // in.h:295:1:
    156 	IPPORT_USERRESERVED                    = 5000                 // in.h:281:1:
    157 	IPPROTO_3PC                            = 34                   // in.h:139:1:
    158 	IPPROTO_ADFS                           = 68                   // in.h:173:1:
    159 	IPPROTO_AH                             = 51                   // in.h:158:1:
    160 	IPPROTO_AHIP                           = 61                   // in.h:166:1:
    161 	IPPROTO_APES                           = 99                   // in.h:204:1:
    162 	IPPROTO_ARGUS                          = 13                   // in.h:116:1:
    163 	IPPROTO_AX25                           = 93                   // in.h:198:1:
    164 	IPPROTO_BHA                            = 49                   // in.h:156:1:
    165 	IPPROTO_BLT                            = 30                   // in.h:135:1:
    166 	IPPROTO_BRSATMON                       = 76                   // in.h:181:1:
    167 	IPPROTO_CFTP                           = 62                   // in.h:167:1:
    168 	IPPROTO_CHAOS                          = 16                   // in.h:119:1:
    169 	IPPROTO_CMTP                           = 38                   // in.h:143:1:
    170 	IPPROTO_CPHB                           = 73                   // in.h:178:1:
    171 	IPPROTO_CPNX                           = 72                   // in.h:177:1:
    172 	IPPROTO_DDP                            = 37                   // in.h:142:1:
    173 	IPPROTO_DGP                            = 86                   // in.h:191:1:
    174 	IPPROTO_DIVERT                         = 254                  // in.h:213:1:
    175 	IPPROTO_DONE                           = 257                  // in.h:221:1:
    176 	IPPROTO_DSTOPTS                        = 60                   // in.h:165:1:
    177 	IPPROTO_EGP                            = 8                    // in.h:111:1:
    178 	IPPROTO_EMCON                          = 14                   // in.h:117:1:
    179 	IPPROTO_ENCAP                          = 98                   // in.h:203:1:
    180 	IPPROTO_EON                            = 80                   // in.h:185:1:
    181 	IPPROTO_ESP                            = 50                   // in.h:157:1:
    182 	IPPROTO_ETHERIP                        = 97                   // in.h:202:1:
    183 	IPPROTO_FRAGMENT                       = 44                   // in.h:151:1:
    184 	IPPROTO_GGP                            = 3                    // in.h:104:1:
    185 	IPPROTO_GMTP                           = 100                  // in.h:205:1:
    186 	IPPROTO_GRE                            = 47                   // in.h:154:1:
    187 	IPPROTO_HELLO                          = 63                   // in.h:168:1:
    188 	IPPROTO_HMP                            = 20                   // in.h:125:1:
    189 	IPPROTO_HOPOPTS                        = 0                    // in.h:99:1:
    190 	IPPROTO_ICMP                           = 1                    // in.h:101:1:
    191 	IPPROTO_ICMPV6                         = 58                   // in.h:163:1:
    192 	IPPROTO_IDP                            = 22                   // in.h:127:1:
    193 	IPPROTO_IDPR                           = 35                   // in.h:140:1:
    194 	IPPROTO_IDRP                           = 45                   // in.h:152:1:
    195 	IPPROTO_IGMP                           = 2                    // in.h:103:1:
    196 	IPPROTO_IGP                            = 85                   // in.h:190:1:
    197 	IPPROTO_IGRP                           = 88                   // in.h:193:1:
    198 	IPPROTO_IL                             = 40                   // in.h:145:1:
    199 	IPPROTO_INLSP                          = 52                   // in.h:159:1:
    200 	IPPROTO_INP                            = 32                   // in.h:137:1:
    201 	IPPROTO_IP                             = 0                    // in.h:97:1:
    202 	IPPROTO_IPCOMP                         = 108                  // in.h:208:1:
    203 	IPPROTO_IPCV                           = 71                   // in.h:176:1:
    204 	IPPROTO_IPEIP                          = 94                   // in.h:199:1:
    205 	IPPROTO_IPIP                           = 4                    // in.h:106:1:
    206 	IPPROTO_IPPC                           = 67                   // in.h:172:1:
    207 	IPPROTO_IPV4                           = 4                    // in.h:105:1:
    208 	IPPROTO_IPV6                           = 41                   // in.h:147:1:
    209 	IPPROTO_IRTP                           = 28                   // in.h:133:1:
    210 	IPPROTO_KRYPTOLAN                      = 65                   // in.h:170:1:
    211 	IPPROTO_LARP                           = 91                   // in.h:196:1:
    212 	IPPROTO_LEAF1                          = 25                   // in.h:130:1:
    213 	IPPROTO_LEAF2                          = 26                   // in.h:131:1:
    214 	IPPROTO_MAX                            = 256                  // in.h:218:1:
    215 	IPPROTO_MAXID                          = 52                   // in.h:629:1:
    216 	IPPROTO_MEAS                           = 19                   // in.h:124:1:
    217 	IPPROTO_MHRP                           = 48                   // in.h:155:1:
    218 	IPPROTO_MICP                           = 95                   // in.h:200:1:
    219 	IPPROTO_MTP                            = 92                   // in.h:197:1:
    220 	IPPROTO_MUX                            = 18                   // in.h:123:1:
    221 	IPPROTO_ND                             = 77                   // in.h:182:1:
    222 	IPPROTO_NHRP                           = 54                   // in.h:161:1:
    223 	IPPROTO_NONE                           = 59                   // in.h:164:1:
    224 	IPPROTO_NSP                            = 31                   // in.h:136:1:
    225 	IPPROTO_NVPII                          = 11                   // in.h:114:1:
    226 	IPPROTO_OSPFIGP                        = 89                   // in.h:194:1:
    227 	IPPROTO_PGM                            = 113                  // in.h:209:1:
    228 	IPPROTO_PIGP                           = 9                    // in.h:112:1:
    229 	IPPROTO_PIM                            = 103                  // in.h:207:1:
    230 	IPPROTO_PRM                            = 21                   // in.h:126:1:
    231 	IPPROTO_PUP                            = 12                   // in.h:115:1:
    232 	IPPROTO_PVP                            = 75                   // in.h:180:1:
    233 	IPPROTO_RAW                            = 255                  // in.h:215:1:
    234 	IPPROTO_RCCMON                         = 10                   // in.h:113:1:
    235 	IPPROTO_RDP                            = 27                   // in.h:132:1:
    236 	IPPROTO_ROUTING                        = 43                   // in.h:150:1:
    237 	IPPROTO_RSVP                           = 46                   // in.h:153:1:
    238 	IPPROTO_RVD                            = 66                   // in.h:171:1:
    239 	IPPROTO_SATEXPAK                       = 64                   // in.h:169:1:
    240 	IPPROTO_SATMON                         = 69                   // in.h:174:1:
    241 	IPPROTO_SCCSP                          = 96                   // in.h:201:1:
    242 	IPPROTO_SCTP                           = 132                  // in.h:210:1:
    243 	IPPROTO_SDRP                           = 42                   // in.h:149:1:
    244 	IPPROTO_SEP                            = 33                   // in.h:138:1:
    245 	IPPROTO_SRPC                           = 90                   // in.h:195:1:
    246 	IPPROTO_ST                             = 7                    // in.h:110:1:
    247 	IPPROTO_SVMTP                          = 82                   // in.h:187:1:
    248 	IPPROTO_SWIPE                          = 53                   // in.h:160:1:
    249 	IPPROTO_TCF                            = 87                   // in.h:192:1:
    250 	IPPROTO_TCP                            = 6                    // in.h:108:1:
    251 	IPPROTO_TP                             = 29                   // in.h:134:1:
    252 	IPPROTO_TPXX                           = 39                   // in.h:144:1:
    253 	IPPROTO_TRUNK1                         = 23                   // in.h:128:1:
    254 	IPPROTO_TRUNK2                         = 24                   // in.h:129:1:
    255 	IPPROTO_TTP                            = 84                   // in.h:189:1:
    256 	IPPROTO_UDP                            = 17                   // in.h:121:1:
    257 	IPPROTO_VINES                          = 83                   // in.h:188:1:
    258 	IPPROTO_VISA                           = 70                   // in.h:175:1:
    259 	IPPROTO_VMTP                           = 81                   // in.h:186:1:
    260 	IPPROTO_WBEXPAK                        = 79                   // in.h:184:1:
    261 	IPPROTO_WBMON                          = 78                   // in.h:183:1:
    262 	IPPROTO_WSN                            = 74                   // in.h:179:1:
    263 	IPPROTO_XNET                           = 15                   // in.h:118:1:
    264 	IPPROTO_XTP                            = 36                   // in.h:141:1:
    265 	IPV6CTL_ACCEPT_RTADV                   = 12                   // in6.h:580:1:
    266 	IPV6CTL_ADDRCTLPOLICY                  = 38                   // in6.h:605:1:
    267 	IPV6CTL_AUTO_FLOWLABEL                 = 17                   // in6.h:585:1:
    268 	IPV6CTL_AUTO_LINKLOCAL                 = 35                   // in6.h:602:1:
    269 	IPV6CTL_DAD_COUNT                      = 16                   // in6.h:584:1:
    270 	IPV6CTL_DEFHLIM                        = 3                    // in6.h:569:1:
    271 	IPV6CTL_DEFMCASTHLIM                   = 18                   // in6.h:586:1:
    272 	IPV6CTL_FORWARDING                     = 1                    // in6.h:567:1:
    273 	IPV6CTL_FORWSRCRT                      = 5                    // in6.h:573:1:
    274 	IPV6CTL_GIF_HLIM                       = 19                   // in6.h:587:1:
    275 	IPV6CTL_HDRNESTLIMIT                   = 15                   // in6.h:583:1:
    276 	IPV6CTL_KAME_VERSION                   = 20                   // in6.h:588:1:
    277 	IPV6CTL_KEEPFAITH                      = 13                   // in6.h:581:1:
    278 	IPV6CTL_LOG_INTERVAL                   = 14                   // in6.h:582:1:
    279 	IPV6CTL_MAXDYNROUTES                   = 49                   // in6.h:614:1:
    280 	IPV6CTL_MAXFRAGPACKETS                 = 9                    // in6.h:577:1:
    281 	IPV6CTL_MAXFRAGS                       = 41                   // in6.h:608:1:
    282 	IPV6CTL_MAXID                          = 51                   // in6.h:619:1:
    283 	IPV6CTL_MAXIFDEFROUTERS                = 48                   // in6.h:613:1:
    284 	IPV6CTL_MAXIFPREFIXES                  = 47                   // in6.h:612:1:
    285 	IPV6CTL_MCAST_PMTU                     = 44                   // in6.h:609:1:
    286 	IPV6CTL_MRTPROTO                       = 8                    // in6.h:576:1:
    287 	IPV6CTL_MRTSTATS                       = 7                    // in6.h:575:1:
    288 	IPV6CTL_NEIGHBORGCTHRESH               = 46                   // in6.h:611:1:
    289 	IPV6CTL_PREFER_TEMPADDR                = 37                   // in6.h:604:1:
    290 	IPV6CTL_RIP6STATS                      = 36                   // in6.h:603:1:
    291 	IPV6CTL_RR_PRUNE                       = 22                   // in6.h:590:1:
    292 	IPV6CTL_RTEXPIRE                       = 25                   // in6.h:595:1:
    293 	IPV6CTL_RTMAXCACHE                     = 27                   // in6.h:597:1:
    294 	IPV6CTL_RTMINEXPIRE                    = 26                   // in6.h:596:1:
    295 	IPV6CTL_SENDREDIRECTS                  = 2                    // in6.h:568:1:
    296 	IPV6CTL_SOURCECHECK                    = 10                   // in6.h:578:1:
    297 	IPV6CTL_SOURCECHECK_LOGINT             = 11                   // in6.h:579:1:
    298 	IPV6CTL_STATS                          = 6                    // in6.h:574:1:
    299 	IPV6CTL_TEMPPLTIME                     = 33                   // in6.h:600:1:
    300 	IPV6CTL_TEMPVLTIME                     = 34                   // in6.h:601:1:
    301 	IPV6CTL_USETEMPADDR                    = 32                   // in6.h:599:1:
    302 	IPV6CTL_USE_DEFAULTZONE                = 39                   // in6.h:606:1:
    303 	IPV6CTL_USE_DEPRECATED                 = 21                   // in6.h:589:1:
    304 	IPV6CTL_V6ONLY                         = 24                   // in6.h:594:1:
    305 	IPV6PORT_ANONMAX                       = 65535                // in6.h:143:1:
    306 	IPV6PORT_ANONMIN                       = 49152                // in6.h:142:1:
    307 	IPV6PORT_RESERVED                      = 1024                 // in6.h:141:1:
    308 	IPV6PORT_RESERVEDMAX                   = 1023                 // in6.h:145:1:
    309 	IPV6PORT_RESERVEDMIN                   = 600                  // in6.h:144:1:
    310 	IPV6PROTO_MAXID                        = 104                  // in6.h:562:1:
    311 	IPV6_2292DSTOPTS                       = 23                   // in6.h:385:1:
    312 	IPV6_2292HOPLIMIT                      = 20                   // in6.h:382:1:
    313 	IPV6_2292HOPOPTS                       = 22                   // in6.h:384:1:
    314 	IPV6_2292NEXTHOP                       = 21                   // in6.h:383:1:
    315 	IPV6_2292PKTINFO                       = 19                   // in6.h:381:1:
    316 	IPV6_2292PKTOPTIONS                    = 25                   // in6.h:389:1:
    317 	IPV6_2292RTHDR                         = 24                   // in6.h:386:1:
    318 	IPV6_BINDV6ONLY                        = 27                   // in6.h:405:1:
    319 	IPV6_BOUND_IF                          = 125                  // in6.h:494:1:
    320 	IPV6_CHECKSUM                          = 26                   // in6.h:401:1:
    321 	IPV6_DEFAULT_MULTICAST_HOPS            = 1                    // in6.h:506:1:
    322 	IPV6_DEFAULT_MULTICAST_LOOP            = 1                    // in6.h:507:1:
    323 	IPV6_FAITH                             = 29                   // in6.h:411:1:
    324 	IPV6_FW_ADD                            = 30                   // in6.h:414:1:
    325 	IPV6_FW_DEL                            = 31                   // in6.h:415:1:
    326 	IPV6_FW_FLUSH                          = 32                   // in6.h:416:1:
    327 	IPV6_FW_GET                            = 34                   // in6.h:418:1:
    328 	IPV6_FW_ZERO                           = 33                   // in6.h:417:1:
    329 	IPV6_IPSEC_POLICY                      = 28                   // in6.h:409:1:
    330 	IPV6_JOIN_GROUP                        = 12                   // in6.h:375:1:
    331 	IPV6_LEAVE_GROUP                       = 13                   // in6.h:376:1:
    332 	IPV6_MAX_GROUP_SRC_FILTER              = 512                  // in6.h:521:1:
    333 	IPV6_MAX_MEMBERSHIPS                   = 4095                 // in6.h:515:1:
    334 	IPV6_MAX_SOCK_SRC_FILTER               = 128                  // in6.h:522:1:
    335 	IPV6_MIN_MEMBERSHIPS                   = 31                   // in6.h:514:1:
    336 	IPV6_MULTICAST_HOPS                    = 10                   // in6.h:373:1:
    337 	IPV6_MULTICAST_IF                      = 9                    // in6.h:372:1:
    338 	IPV6_MULTICAST_LOOP                    = 11                   // in6.h:374:1:
    339 	IPV6_PORTRANGE                         = 14                   // in6.h:379:1:
    340 	IPV6_PORTRANGE_DEFAULT                 = 0                    // in6.h:552:1:
    341 	IPV6_PORTRANGE_HIGH                    = 1                    // in6.h:553:1:
    342 	IPV6_PORTRANGE_LOW                     = 2                    // in6.h:554:1:
    343 	IPV6_RECVTCLASS                        = 35                   // in6.h:426:1:
    344 	IPV6_RTHDR_LOOSE                       = 0                    // in6.h:499:1:
    345 	IPV6_RTHDR_STRICT                      = 1                    // in6.h:500:1:
    346 	IPV6_RTHDR_TYPE_0                      = 0                    // in6.h:501:1:
    347 	IPV6_SOCKOPT_RESERVED1                 = 3                    // in6.h:369:1:
    348 	IPV6_TCLASS                            = 36                   // in6.h:427:1:
    349 	IPV6_UNICAST_HOPS                      = 4                    // in6.h:371:1:
    350 	IPV6_V6ONLY                            = 27                   // in6.h:403:1:
    351 	IP_ADD_MEMBERSHIP                      = 12                   // in.h:418:1:
    352 	IP_ADD_SOURCE_MEMBERSHIP               = 70                   // in.h:464:1:
    353 	IP_BLOCK_SOURCE                        = 72                   // in.h:466:1:
    354 	IP_BOUND_IF                            = 25                   // in.h:434:1:
    355 	IP_DEFAULT_MULTICAST_LOOP              = 1                    // in.h:485:1:
    356 	IP_DEFAULT_MULTICAST_TTL               = 1                    // in.h:484:1:
    357 	IP_DROP_MEMBERSHIP                     = 13                   // in.h:419:1:
    358 	IP_DROP_SOURCE_MEMBERSHIP              = 71                   // in.h:465:1:
    359 	IP_DUMMYNET_CONFIGURE                  = 60                   // in.h:455:1:
    360 	IP_DUMMYNET_DEL                        = 61                   // in.h:456:1:
    361 	IP_DUMMYNET_FLUSH                      = 62                   // in.h:457:1:
    362 	IP_DUMMYNET_GET                        = 64                   // in.h:458:1:
    363 	IP_FAITH                               = 22                   // in.h:429:1:
    364 	IP_FW_ADD                              = 40                   // in.h:439:1:
    365 	IP_FW_DEL                              = 41                   // in.h:440:1:
    366 	IP_FW_FLUSH                            = 42                   // in.h:441:1:
    367 	IP_FW_GET                              = 44                   // in.h:443:1:
    368 	IP_FW_RESETLOG                         = 45                   // in.h:444:1:
    369 	IP_FW_ZERO                             = 43                   // in.h:442:1:
    370 	IP_HDRINCL                             = 2                    // in.h:408:1:
    371 	IP_IPSEC_POLICY                        = 21                   // in.h:428:1:
    372 	IP_MAX_GROUP_SRC_FILTER                = 512                  // in.h:499:1:
    373 	IP_MAX_MEMBERSHIPS                     = 4095                 // in.h:493:1:
    374 	IP_MAX_SOCK_MUTE_FILTER                = 128                  // in.h:501:1:
    375 	IP_MAX_SOCK_SRC_FILTER                 = 128                  // in.h:500:1:
    376 	IP_MIN_MEMBERSHIPS                     = 31                   // in.h:492:1:
    377 	IP_MSFILTER                            = 74                   // in.h:470:1:
    378 	IP_MULTICAST_IF                        = 9                    // in.h:415:1:
    379 	IP_MULTICAST_IFINDEX                   = 66                   // in.h:461:1:
    380 	IP_MULTICAST_LOOP                      = 11                   // in.h:417:1:
    381 	IP_MULTICAST_TTL                       = 10                   // in.h:416:1:
    382 	IP_MULTICAST_VIF                       = 14                   // in.h:420:1:
    383 	IP_NAT__XXX                            = 55                   // in.h:452:1:
    384 	IP_OLD_FW_ADD                          = 50                   // in.h:447:1:
    385 	IP_OLD_FW_DEL                          = 51                   // in.h:448:1:
    386 	IP_OLD_FW_FLUSH                        = 52                   // in.h:449:1:
    387 	IP_OLD_FW_GET                          = 54                   // in.h:451:1:
    388 	IP_OLD_FW_RESETLOG                     = 56                   // in.h:453:1:
    389 	IP_OLD_FW_ZERO                         = 53                   // in.h:450:1:
    390 	IP_OPTIONS                             = 1                    // in.h:407:1:
    391 	IP_PKTINFO                             = 26                   // in.h:435:1:
    392 	IP_PORTRANGE                           = 19                   // in.h:425:1:
    393 	IP_PORTRANGE_DEFAULT                   = 0                    // in.h:593:1:
    394 	IP_PORTRANGE_HIGH                      = 1                    // in.h:594:1:
    395 	IP_PORTRANGE_LOW                       = 2                    // in.h:595:1:
    396 	IP_RECVDSTADDR                         = 7                    // in.h:413:1:
    397 	IP_RECVIF                              = 20                   // in.h:426:1:
    398 	IP_RECVOPTS                            = 5                    // in.h:411:1:
    399 	IP_RECVPKTINFO                         = 26                   // in.h:436:1:
    400 	IP_RECVRETOPTS                         = 6                    // in.h:412:1:
    401 	IP_RECVTOS                             = 27                   // in.h:437:1:
    402 	IP_RECVTTL                             = 24                   // in.h:433:1:
    403 	IP_RETOPTS                             = 8                    // in.h:414:1:
    404 	IP_RSVP_OFF                            = 16                   // in.h:422:1:
    405 	IP_RSVP_ON                             = 15                   // in.h:421:1:
    406 	IP_RSVP_VIF_OFF                        = 18                   // in.h:424:1:
    407 	IP_RSVP_VIF_ON                         = 17                   // in.h:423:1:
    408 	IP_STRIPHDR                            = 23                   // in.h:431:1:
    409 	IP_TOS                                 = 3                    // in.h:409:1:
    410 	IP_TRAFFIC_MGT_BACKGROUND              = 65                   // in.h:460:1:
    411 	IP_TTL                                 = 4                    // in.h:410:1:
    412 	IP_UNBLOCK_SOURCE                      = 73                   // in.h:467:1:
    413 	KEV_DL_ADDMULTI                        = 7                    // net_kev.h:61:1:
    414 	KEV_DL_AWDL_RESTRICTED                 = 26                   // net_kev.h:80:1:
    415 	KEV_DL_AWDL_UNRESTRICTED               = 27                   // net_kev.h:81:1:
    416 	KEV_DL_DELMULTI                        = 8                    // net_kev.h:62:1:
    417 	KEV_DL_IFCAP_CHANGED                   = 19                   // net_kev.h:73:1:
    418 	KEV_DL_IFDELEGATE_CHANGED              = 25                   // net_kev.h:79:1:
    419 	KEV_DL_IF_ATTACHED                     = 9                    // net_kev.h:63:1:
    420 	KEV_DL_IF_DETACHED                     = 11                   // net_kev.h:65:1:
    421 	KEV_DL_IF_DETACHING                    = 10                   // net_kev.h:64:1:
    422 	KEV_DL_IF_IDLE_ROUTE_REFCNT            = 18                   // net_kev.h:72:1:
    423 	KEV_DL_ISSUES                          = 24                   // net_kev.h:78:1:
    424 	KEV_DL_LINK_ADDRESS_CHANGED            = 16                   // net_kev.h:70:1:
    425 	KEV_DL_LINK_OFF                        = 12                   // net_kev.h:66:1:
    426 	KEV_DL_LINK_ON                         = 13                   // net_kev.h:67:1:
    427 	KEV_DL_LINK_QUALITY_METRIC_CHANGED     = 20                   // net_kev.h:74:1:
    428 	KEV_DL_LOW_POWER_MODE_CHANGED          = 30                   // net_kev.h:84:1:
    429 	KEV_DL_MASTER_ELECTED                  = 23                   // net_kev.h:77:1:
    430 	KEV_DL_NODE_ABSENCE                    = 22                   // net_kev.h:76:1:
    431 	KEV_DL_NODE_PRESENCE                   = 21                   // net_kev.h:75:1:
    432 	KEV_DL_PROTO_ATTACHED                  = 14                   // net_kev.h:68:1:
    433 	KEV_DL_PROTO_DETACHED                  = 15                   // net_kev.h:69:1:
    434 	KEV_DL_QOS_MODE_CHANGED                = 29                   // net_kev.h:83:1:
    435 	KEV_DL_RRC_STATE_CHANGED               = 28                   // net_kev.h:82:1:
    436 	KEV_DL_SIFFLAGS                        = 1                    // net_kev.h:55:1:
    437 	KEV_DL_SIFGENERIC                      = 6                    // net_kev.h:60:1:
    438 	KEV_DL_SIFMEDIA                        = 5                    // net_kev.h:59:1:
    439 	KEV_DL_SIFMETRICS                      = 2                    // net_kev.h:56:1:
    440 	KEV_DL_SIFMTU                          = 3                    // net_kev.h:57:1:
    441 	KEV_DL_SIFPHYS                         = 4                    // net_kev.h:58:1:
    442 	KEV_DL_SUBCLASS                        = 2                    // net_kev.h:50:1:
    443 	KEV_DL_WAKEFLAGS_CHANGED               = 17                   // net_kev.h:71:1:
    444 	KEV_INET6_ADDR_DELETED                 = 3                    // net_kev.h:91:1:
    445 	KEV_INET6_CHANGED_ADDR                 = 2                    // net_kev.h:90:1:
    446 	KEV_INET6_DEFROUTER                    = 6                    // net_kev.h:94:1:
    447 	KEV_INET6_NEW_LL_ADDR                  = 4                    // net_kev.h:92:1:
    448 	KEV_INET6_NEW_RTADV_ADDR               = 5                    // net_kev.h:93:1:
    449 	KEV_INET6_NEW_USER_ADDR                = 1                    // net_kev.h:89:1:
    450 	KEV_INET6_REQUEST_NAT64_PREFIX         = 7                    // net_kev.h:95:1:
    451 	KEV_INET6_SUBCLASS                     = 6                    // net_kev.h:87:1:
    452 	KEV_INET_ADDR_DELETED                  = 3                    // net_kev.h:39:1:
    453 	KEV_INET_ARPCOLLISION                  = 7                    // net_kev.h:43:1:
    454 	KEV_INET_ARPRTRALIVE                   = 10                   // net_kev.h:48:1:
    455 	KEV_INET_ARPRTRFAILURE                 = 9                    // net_kev.h:47:1:
    456 	KEV_INET_CHANGED_ADDR                  = 2                    // net_kev.h:38:1:
    457 	KEV_INET_NEW_ADDR                      = 1                    // net_kev.h:37:1:
    458 	KEV_INET_PORTINUSE                     = 8                    // net_kev.h:45:1:
    459 	KEV_INET_SIFBRDADDR                    = 5                    // net_kev.h:41:1:
    460 	KEV_INET_SIFDSTADDR                    = 4                    // net_kev.h:40:1:
    461 	KEV_INET_SIFNETMASK                    = 6                    // net_kev.h:42:1:
    462 	KEV_INET_SUBCLASS                      = 1                    // net_kev.h:35:1:
    463 	LITTLE_ENDIAN                          = 1234                 // endian.h:93:1:
    464 	MCAST_BLOCK_SOURCE                     = 84                   // in.h:477:1:
    465 	MCAST_EXCLUDE                          = 2                    // in.h:587:1:
    466 	MCAST_INCLUDE                          = 1                    // in.h:586:1:
    467 	MCAST_JOIN_GROUP                       = 80                   // in.h:473:1:
    468 	MCAST_JOIN_SOURCE_GROUP                = 82                   // in.h:475:1:
    469 	MCAST_LEAVE_GROUP                      = 81                   // in.h:474:1:
    470 	MCAST_LEAVE_SOURCE_GROUP               = 83                   // in.h:476:1:
    471 	MCAST_UNBLOCK_SOURCE                   = 85                   // in.h:478:1:
    472 	MCAST_UNDEFINED                        = 0                    // in.h:585:1:
    473 	MSG_CTRUNC                             = 0x20                 // socket.h:563:1:
    474 	MSG_DONTROUTE                          = 0x4                  // socket.h:560:1:
    475 	MSG_DONTWAIT                           = 0x80                 // socket.h:566:1:
    476 	MSG_EOF                                = 0x100                // socket.h:567:1:
    477 	MSG_EOR                                = 0x8                  // socket.h:561:1:
    478 	MSG_FLUSH                              = 0x400                // socket.h:572:1:
    479 	MSG_HAVEMORE                           = 0x2000               // socket.h:575:1:
    480 	MSG_HOLD                               = 0x800                // socket.h:573:1:
    481 	MSG_NEEDSA                             = 0x10000              // socket.h:578:1:
    482 	MSG_OOB                                = 0x1                  // socket.h:558:1:
    483 	MSG_PEEK                               = 0x2                  // socket.h:559:1:
    484 	MSG_RCVMORE                            = 0x4000               // socket.h:576:1:
    485 	MSG_SEND                               = 0x1000               // socket.h:574:1:
    486 	MSG_TRUNC                              = 0x10                 // socket.h:562:1:
    487 	MSG_WAITALL                            = 0x40                 // socket.h:564:1:
    488 	MSG_WAITSTREAM                         = 0x200                // socket.h:570:1:
    489 	NBBY                                   = 8                    // types.h:186:1:
    490 	NETDB_INTERNAL                         = -1                   // netdb.h:171:1:
    491 	NETDB_SUCCESS                          = 0                    // netdb.h:172:1:
    492 	NETSVC_MRKNG_LVL_L2                    = 1                    // socket.h:283:1:
    493 	NETSVC_MRKNG_LVL_L3L2_ALL              = 2                    // socket.h:284:1:
    494 	NETSVC_MRKNG_LVL_L3L2_BK               = 3                    // socket.h:285:1:
    495 	NETSVC_MRKNG_UNKNOWN                   = 0                    // socket.h:282:1:
    496 	NET_MAXID                              = 40                   // socket.h:506:1:
    497 	NET_RT_DUMP                            = 1                    // socket.h:519:1:
    498 	NET_RT_DUMP2                           = 7                    // socket.h:525:1:
    499 	NET_RT_FLAGS                           = 2                    // socket.h:520:1:
    500 	NET_RT_FLAGS_PRIV                      = 10                   // socket.h:530:1:
    501 	NET_RT_IFLIST                          = 3                    // socket.h:521:1:
    502 	NET_RT_IFLIST2                         = 6                    // socket.h:524:1:
    503 	NET_RT_MAXID                           = 11                   // socket.h:531:1:
    504 	NET_RT_STAT                            = 4                    // socket.h:522:1:
    505 	NET_RT_TRASH                           = 5                    // socket.h:523:1:
    506 	NET_SERVICE_TYPE_AV                    = 6                    // socket.h:276:1:
    507 	NET_SERVICE_TYPE_BE                    = 0                    // socket.h:270:1:
    508 	NET_SERVICE_TYPE_BK                    = 1                    // socket.h:271:1:
    509 	NET_SERVICE_TYPE_OAM                   = 7                    // socket.h:277:1:
    510 	NET_SERVICE_TYPE_RD                    = 8                    // socket.h:278:1:
    511 	NET_SERVICE_TYPE_RV                    = 5                    // socket.h:275:1:
    512 	NET_SERVICE_TYPE_SIG                   = 2                    // socket.h:272:1:
    513 	NET_SERVICE_TYPE_VI                    = 3                    // socket.h:273:1:
    514 	NET_SERVICE_TYPE_VO                    = 4                    // socket.h:274:1:
    515 	NI_DGRAM                               = 0x00000010           // netdb.h:252:1:
    516 	NI_MAXHOST                             = 1025                 // netdb.h:241:1:
    517 	NI_MAXSERV                             = 32                   // netdb.h:242:1:
    518 	NI_NAMEREQD                            = 0x00000004           // netdb.h:249:1:
    519 	NI_NOFQDN                              = 0x00000001           // netdb.h:247:1:
    520 	NI_NUMERICHOST                         = 0x00000002           // netdb.h:248:1:
    521 	NI_NUMERICSCOPE                        = 0x00000100           // netdb.h:251:1:
    522 	NI_NUMERICSERV                         = 0x00000008           // netdb.h:250:1:
    523 	NI_WITHSCOPEID                         = 0x00000020           // netdb.h:254:1:
    524 	NO_ADDRESS                             = 4                    // netdb.h:179:1:
    525 	NO_DATA                                = 4                    // netdb.h:177:1:
    526 	NO_RECOVERY                            = 3                    // netdb.h:176:1:
    527 	PDP_ENDIAN                             = 3412                 // endian.h:95:1:
    528 	PF_APPLETALK                           = 16                   // socket.h:469:1:
    529 	PF_CCITT                               = 10                   // socket.h:463:1:
    530 	PF_CHAOS                               = 5                    // socket.h:457:1:
    531 	PF_CNT                                 = 21                   // socket.h:474:1:
    532 	PF_COIP                                = 20                   // socket.h:473:1:
    533 	PF_DATAKIT                             = 9                    // socket.h:462:1:
    534 	PF_DECnet                              = 12                   // socket.h:465:1:
    535 	PF_DLI                                 = 13                   // socket.h:466:1:
    536 	PF_ECMA                                = 8                    // socket.h:461:1:
    537 	PF_HYLINK                              = 15                   // socket.h:468:1:
    538 	PF_IMPLINK                             = 3                    // socket.h:455:1:
    539 	PF_INET                                = 2                    // socket.h:454:1:
    540 	PF_INET6                               = 30                   // socket.h:482:1:
    541 	PF_IPX                                 = 23                   // socket.h:476:1:
    542 	PF_ISDN                                = 28                   // socket.h:480:1:
    543 	PF_ISO                                 = 7                    // socket.h:459:1:
    544 	PF_KEY                                 = 29                   // socket.h:481:1:
    545 	PF_LAT                                 = 14                   // socket.h:467:1:
    546 	PF_LINK                                = 18                   // socket.h:471:1:
    547 	PF_LOCAL                               = 1                    // socket.h:452:1:
    548 	PF_MAX                                 = 40                   // socket.h:489:1:
    549 	PF_NATM                                = 31                   // socket.h:483:1:
    550 	PF_NDRV                                = 27                   // socket.h:479:1:
    551 	PF_NETBIOS                             = 33                   // socket.h:485:1:
    552 	PF_NS                                  = 6                    // socket.h:458:1:
    553 	PF_OSI                                 = 7                    // socket.h:460:1:
    554 	PF_PIP                                 = 25                   // socket.h:478:1:
    555 	PF_PPP                                 = 34                   // socket.h:486:1:
    556 	PF_PUP                                 = 4                    // socket.h:456:1:
    557 	PF_RESERVED_36                         = 36                   // socket.h:487:1:
    558 	PF_ROUTE                               = 17                   // socket.h:470:1:
    559 	PF_RTIP                                = 22                   // socket.h:477:1:
    560 	PF_SIP                                 = 24                   // socket.h:475:1:
    561 	PF_SNA                                 = 11                   // socket.h:464:1:
    562 	PF_SYSTEM                              = 32                   // socket.h:484:1:
    563 	PF_UNIX                                = 1                    // socket.h:453:1:
    564 	PF_UNSPEC                              = 0                    // socket.h:451:1:
    565 	PF_UTUN                                = 38                   // socket.h:488:1:
    566 	PF_XTP                                 = 19                   // socket.h:472:1:
    567 	PTRDIFF_MAX                            = 9223372036854775807  // stdint.h:652:1:
    568 	PTRDIFF_MIN                            = -9223372036854775808 // stdint.h:651:1:
    569 	RSIZE_MAX                              = 9223372036854775807  // stdint.h:658:1:
    570 	SAE_ASSOCID_ANY                        = 0                    // socket.h:290:1:
    571 	SAE_CONNID_ANY                         = 0                    // socket.h:294:1:
    572 	SCM_CREDS                              = 0x03                 // socket.h:661:1:
    573 	SCM_RIGHTS                             = 0x01                 // socket.h:658:1:
    574 	SCM_TIMESTAMP                          = 0x02                 // socket.h:660:1:
    575 	SCM_TIMESTAMP_MONOTONIC                = 0x04                 // socket.h:662:1:
    576 	SCOPE_DELIMITER                        = 37                   // netdb.h:259:1:
    577 	SHUT_RD                                = 0                    // socket.h:670:1:
    578 	SHUT_RDWR                              = 2                    // socket.h:672:1:
    579 	SHUT_WR                                = 1                    // socket.h:671:1:
    580 	SIG_ATOMIC_MAX                         = 2147483647           // stdint.h:668:1:
    581 	SIG_ATOMIC_MIN                         = -2147483648          // stdint.h:667:1:
    582 	SIN6_LEN                               = 0                    // in6.h:167:1:
    583 	SIZE_MAX                               = 18446744073709551615 // stdint.h:653:1:
    584 	SOCK_DGRAM                             = 2                    // socket.h:112:1:
    585 	SOCK_MAXADDRLEN                        = 255                  // socket.h:414:1:
    586 	SOCK_RAW                               = 3                    // socket.h:113:1:
    587 	SOCK_RDM                               = 4                    // socket.h:115:1:
    588 	SOCK_SEQPACKET                         = 5                    // socket.h:117:1:
    589 	SOCK_STREAM                            = 1                    // socket.h:111:1:
    590 	SOL_SOCKET                             = 0xffff               // socket.h:348:1:
    591 	SOMAXCONN                              = 128                  // socket.h:540:1:
    592 	SONPX_SETOPTSHUT                       = 0x000000001          // socket.h:338:1:
    593 	SO_ACCEPTCONN                          = 0x0002               // socket.h:123:1:
    594 	SO_BROADCAST                           = 0x0020               // socket.h:127:1:
    595 	SO_DEBUG                               = 0x0001               // socket.h:122:1:
    596 	SO_DONTROUTE                           = 0x0010               // socket.h:126:1:
    597 	SO_DONTTRUNC                           = 0x2000               // socket.h:142:1:
    598 	SO_ERROR                               = 0x1007               // socket.h:160:1:
    599 	SO_KEEPALIVE                           = 0x0008               // socket.h:125:1:
    600 	SO_LABEL                               = 0x1010               // socket.h:163:1:
    601 	SO_LINGER                              = 0x0080               // socket.h:130:1:
    602 	SO_LINGER_SEC                          = 0x1080               // socket.h:176:1:
    603 	SO_NETSVC_MARKING_LEVEL                = 0x1119               // socket.h:185:1:
    604 	SO_NET_SERVICE_TYPE                    = 0x1116               // socket.h:182:1:
    605 	SO_NKE                                 = 0x1021               // socket.h:167:1:
    606 	SO_NOADDRERR                           = 0x1023               // socket.h:169:1:
    607 	SO_NOSIGPIPE                           = 0x1022               // socket.h:168:1:
    608 	SO_NOTIFYCONFLICT                      = 0x1026               // socket.h:173:1:
    609 	SO_NP_EXTENSIONS                       = 0x1083               // socket.h:178:1:
    610 	SO_NREAD                               = 0x1020               // socket.h:166:1:
    611 	SO_NUMRCVPKT                           = 0x1112               // socket.h:181:1:
    612 	SO_NWRITE                              = 0x1024               // socket.h:170:1:
    613 	SO_OOBINLINE                           = 0x0100               // socket.h:134:1:
    614 	SO_PEERLABEL                           = 0x1011               // socket.h:164:1:
    615 	SO_RANDOMPORT                          = 0x1082               // socket.h:177:1:
    616 	SO_RCVBUF                              = 0x1002               // socket.h:155:1:
    617 	SO_RCVLOWAT                            = 0x1004               // socket.h:157:1:
    618 	SO_RCVTIMEO                            = 0x1006               // socket.h:159:1:
    619 	SO_REUSEADDR                           = 0x0004               // socket.h:124:1:
    620 	SO_REUSEPORT                           = 0x0200               // socket.h:136:1:
    621 	SO_REUSESHAREUID                       = 0x1025               // socket.h:171:1:
    622 	SO_SNDBUF                              = 0x1001               // socket.h:154:1:
    623 	SO_SNDLOWAT                            = 0x1003               // socket.h:156:1:
    624 	SO_SNDTIMEO                            = 0x1005               // socket.h:158:1:
    625 	SO_TIMESTAMP                           = 0x0400               // socket.h:137:1:
    626 	SO_TIMESTAMP_MONOTONIC                 = 0x0800               // socket.h:138:1:
    627 	SO_TYPE                                = 0x1008               // socket.h:161:1:
    628 	SO_UPCALLCLOSEWAIT                     = 0x1027               // socket.h:174:1:
    629 	SO_USELOOPBACK                         = 0x0040               // socket.h:129:1:
    630 	SO_WANTMORE                            = 0x4000               // socket.h:144:1:
    631 	SO_WANTOOBFLAG                         = 0x8000               // socket.h:145:1:
    632 	TRY_AGAIN                              = 2                    // netdb.h:175:1:
    633 	UINT16_MAX                             = 65535                // stdint.h:601:1:
    634 	UINT32_MAX                             = 4294967295           // stdint.h:557:1:
    635 	UINT64_MAX                             = 18446744073709551615 // stdint.h:463:1:
    636 	UINT8_MAX                              = 255                  // stdint.h:623:1:
    637 	UINTMAX_MAX                            = 18446744073709551615 // stdint.h:664:1:
    638 	UINTPTR_MAX                            = 18446744073709551615 // stdint.h:650:1:
    639 	UINT_FAST16_MAX                        = 65535                // stdint.h:616:1:
    640 	UINT_FAST32_MAX                        = 4294967295           // stdint.h:575:1:
    641 	UINT_FAST64_MAX                        = 18446744073709551615 // stdint.h:484:1:
    642 	UINT_FAST8_MAX                         = 255                  // stdint.h:635:1:
    643 	UINT_LEAST16_MAX                       = 65535                // stdint.h:613:1:
    644 	UINT_LEAST32_MAX                       = 4294967295           // stdint.h:572:1:
    645 	UINT_LEAST64_MAX                       = 18446744073709551615 // stdint.h:481:1:
    646 	UINT_LEAST8_MAX                        = 255                  // stdint.h:632:1:
    647 	WCHAR_MAX                              = 2147483647           // stdint.h:678:1:
    648 	WCHAR_MIN                              = -2147483648          // stdint.h:682:1:
    649 	WINT_MAX                               = 2147483647           // stdint.h:674:1:
    650 	WINT_MIN                               = -2147483648          // stdint.h:673:1:
    651 	X_BLKCNT_T                             = 0                    // _blkcnt_t.h:29:1:
    652 	X_BLKSIZE_T                            = 0                    // _blksize_t.h:29:1:
    653 	X_BSD_I386__TYPES_H_                   = 0                    // _types.h:29:1:
    654 	X_BSD_MACHINE_ENDIAN_H_                = 0                    // endian.h:32:1:
    655 	X_BSD_MACHINE_TYPES_H_                 = 0                    // types.h:32:1:
    656 	X_BSD_MACHINE__TYPES_H_                = 0                    // _types.h:29:1:
    657 	X_CADDR_T                              = 0                    // _caddr_t.h:29:1:
    658 	X_CDEFS_H_                             = 0                    // cdefs.h:68:1:
    659 	X_CLOCK_T                              = 0                    // _clock_t.h:29:1:
    660 	X_DARWIN_FEATURE_64_BIT_INODE          = 1                    // cdefs.h:745:1:
    661 	X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1                    // cdefs.h:771:1:
    662 	X_DARWIN_FEATURE_UNIX_CONFORMANCE      = 3                    // cdefs.h:779:1:
    663 	X_DEV_T                                = 0                    // _dev_t.h:29:1:
    664 	X_ERRNO_T                              = 0                    // _errno_t.h:29:1:
    665 	X_FD_SET                               = 0                    // _fd_def.h:29:1:
    666 	X_FILE_OFFSET_BITS                     = 64                   // <builtin>:25:1:
    667 	X_FORTIFY_SOURCE                       = 2                    // _types.h:65:1:
    668 	X_FSBLKCNT_T                           = 0                    // _fsblkcnt_t.h:29:1:
    669 	X_FSFILCNT_T                           = 0                    // _fsfilcnt_t.h:29:1:
    670 	X_GID_T                                = 0                    // _gid_t.h:29:1:
    671 	X_I386__ENDIAN_H_                      = 0                    // endian.h:67:1:
    672 	X_I386__PARAM_H_                       = 0                    // _param.h:30:1:
    673 	X_ID_T                                 = 0                    // _id_t.h:29:1:
    674 	X_INO64_T                              = 0                    // _ino64_t.h:29:1:
    675 	X_INO_T                                = 0                    // _ino_t.h:29:1:
    676 	X_INT16_T                              = 0                    // _int16_t.h:29:1:
    677 	X_INT32_T                              = 0                    // _int32_t.h:29:1:
    678 	X_INT64_T                              = 0                    // _int64_t.h:29:1:
    679 	X_INT8_T                               = 0                    // _int8_t.h:29:1:
    680 	X_INTPTR_T                             = 0                    // _intptr_t.h:29:1:
    681 	X_IN_ADDR_T                            = 0                    // _in_addr_t.h:29:1:
    682 	X_IN_PORT_T                            = 0                    // _in_port_t.h:29:1:
    683 	X_KEY_T                                = 0                    // _key_t.h:29:1:
    684 	X_LP64                                 = 1                    // <predefined>:1:1:
    685 	X_MACHTYPES_H_                         = 0                    // types.h:67:1:
    686 	X_MODE_T                               = 0                    // _mode_t.h:29:1:
    687 	X_NETDB_H_                             = 0                    // netdb.h:84:1:
    688 	X_NETINET6_IN6_H_                      = 0                    // in6.h:99:1:
    689 	X_NETINET_IN_H_                        = 0                    // in.h:65:1:
    690 	X_NET_NETKEV_H_                        = 0                    // net_kev.h:30:1:
    691 	X_NLINK_T                              = 0                    // _nlink_t.h:29:1:
    692 	X_Nonnull                              = 0                    // cdefs.h:243:1:
    693 	X_Null_unspecified                     = 0                    // cdefs.h:246:1:
    694 	X_Nullable                             = 0                    // cdefs.h:240:1:
    695 	X_OFF_T                                = 0                    // _off_t.h:29:1:
    696 	X_OS__OSBYTEORDERI386_H                = 0                    // _OSByteOrder.h:30:1:
    697 	X_OS__OSBYTEORDER_H                    = 0                    // _OSByteOrder.h:30:1:
    698 	X_PATH_HEQUIV                          = "/etc/hosts.equiv"   // netdb.h:94:1:
    699 	X_PATH_HOSTS                           = "/etc/hosts"         // netdb.h:96:1:
    700 	X_PATH_NETWORKS                        = "/etc/networks"      // netdb.h:97:1:
    701 	X_PATH_PROTOCOLS                       = "/etc/protocols"     // netdb.h:98:1:
    702 	X_PATH_SERVICES                        = "/etc/services"      // netdb.h:99:1:
    703 	X_PID_T                                = 0                    // _pid_t.h:29:1:
    704 	X_PTHREAD_ATTR_T                       = 0                    // _pthread_attr_t.h:29:1:
    705 	X_PTHREAD_CONDATTR_T                   = 0                    // _pthread_condattr_t.h:29:1:
    706 	X_PTHREAD_COND_T                       = 0                    // _pthread_cond_t.h:29:1:
    707 	X_PTHREAD_KEY_T                        = 0                    // _pthread_key_t.h:29:1:
    708 	X_PTHREAD_MUTEXATTR_T                  = 0                    // _pthread_mutexattr_t.h:29:1:
    709 	X_PTHREAD_MUTEX_T                      = 0                    // _pthread_mutex_t.h:29:1:
    710 	X_PTHREAD_ONCE_T                       = 0                    // _pthread_once_t.h:29:1:
    711 	X_PTHREAD_RWLOCKATTR_T                 = 0                    // _pthread_rwlockattr_t.h:29:1:
    712 	X_PTHREAD_RWLOCK_T                     = 0                    // _pthread_rwlock_t.h:29:1:
    713 	X_PTHREAD_T                            = 0                    // _pthread_t.h:29:1:
    714 	X_QUAD_HIGHWORD                        = 1                    // endian.h:78:1:
    715 	X_QUAD_LOWWORD                         = 0                    // endian.h:79:1:
    716 	X_RSIZE_T                              = 0                    // _rsize_t.h:29:1:
    717 	X_SA_FAMILY_T                          = 0                    // _sa_family_t.h:29:1:
    718 	X_SIZE_T                               = 0                    // _size_t.h:29:1:
    719 	X_SOCKLEN_T                            = 0                    // _socklen_t.h:29:1:
    720 	X_SSIZE_T                              = 0                    // _ssize_t.h:29:1:
    721 	X_SS_MAXSIZE                           = 128                  // socket.h:429:1:
    722 	X_STRUCT_IOVEC                         = 0                    // _iovec_t.h:29:1:
    723 	X_SUSECONDS_T                          = 0                    // _suseconds_t.h:29:1:
    724 	X_SYS_SOCKET_H_                        = 0                    // socket.h:73:1:
    725 	X_SYS_TYPES_H_                         = 0                    // types.h:70:1:
    726 	X_SYS__ENDIAN_H_                       = 0                    // _endian.h:91:1:
    727 	X_SYS__PTHREAD_TYPES_H_                = 0                    // _pthread_types.h:30:1:
    728 	X_SYS__TYPES_H_                        = 0                    // _types.h:30:1:
    729 	X_TIME_T                               = 0                    // _time_t.h:29:1:
    730 	X_UID_T                                = 0                    // _uid_t.h:29:1:
    731 	X_UINTPTR_T                            = 0                    // _uintptr_t.h:29:1:
    732 	X_USECONDS_T                           = 0                    // _useconds_t.h:29:1:
    733 	X_U_CHAR                               = 0                    // _u_char.h:29:1:
    734 	X_U_INT                                = 0                    // _u_int.h:29:1:
    735 	X_U_INT16_T                            = 0                    // _u_int16_t.h:29:1:
    736 	X_U_INT32_T                            = 0                    // _u_int32_t.h:29:1:
    737 	X_U_INT64_T                            = 0                    // _u_int64_t.h:29:1:
    738 	X_U_INT8_T                             = 0                    // _u_int8_t.h:29:1:
    739 	X_U_LONG                               = 0                    // types.h:89:1:
    740 	X_U_SHORT                              = 0                    // _u_short.h:29:1:
    741 	Pseudo_AF_HDRCMPLT                     = 35                   // socket.h:396:1:
    742 	Pseudo_AF_KEY                          = 29                   // socket.h:388:1:
    743 	Pseudo_AF_PIP                          = 25                   // socket.h:384:1:
    744 	Pseudo_AF_RTIP                         = 22                   // socket.h:381:1:
    745 	Pseudo_AF_XTP                          = 19                   // socket.h:378:1:
    746 )
    747 
    748 type Ptrdiff_t = int64 /* <builtin>:3:26 */
    749 
    750 type Size_t = uint64 /* <builtin>:9:23 */
    751 
    752 type Wchar_t = int32 /* <builtin>:15:24 */
    753 
    754 type X__int128_t = struct {
    755 	Flo int64
    756 	Fhi int64
    757 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    758 type X__uint128_t = struct {
    759 	Flo uint64
    760 	Fhi uint64
    761 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    762 
    763 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    764 type X__float128 = float64        /* <builtin>:47:21 */
    765 
    766 var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
    767 
    768 // Copyright (c) 2000-2009 Apple Inc. All rights reserved.
    769 //
    770 // @APPLE_LICENSE_HEADER_START@
    771 //
    772 // This file contains Original Code and/or Modifications of Original Code
    773 // as defined in and that are subject to the Apple Public Source License
    774 // Version 2.0 (the 'License'). You may not use this file except in
    775 // compliance with the License. Please obtain a copy of the License at
    776 // http://www.opensource.apple.com/apsl/ and read it before using this
    777 // file.
    778 //
    779 // The Original Code and all software distributed under the License are
    780 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
    781 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
    782 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
    783 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
    784 // Please see the License for the specific language governing rights and
    785 // limitations under the License.
    786 //
    787 // @APPLE_LICENSE_HEADER_END@
    788 // ++Copyright++ 1980, 1983, 1988, 1993
    789 // -
    790 // Copyright (c) 1980, 1983, 1988, 1993
    791 //	The Regents of the University of California.  All rights reserved.
    792 //
    793 // Redistribution and use in source and binary forms, with or without
    794 // modification, are permitted provided that the following conditions
    795 // are met:
    796 // 1. Redistributions of source code must retain the above copyright
    797 //    notice, this list of conditions and the following disclaimer.
    798 // 2. Redistributions in binary form must reproduce the above copyright
    799 //    notice, this list of conditions and the following disclaimer in the
    800 //    documentation and/or other materials provided with the distribution.
    801 // 3. All advertising materials mentioning features or use of this software
    802 //    must display the following acknowledgement:
    803 //	This product includes software developed by the University of
    804 //	California, Berkeley and its contributors.
    805 // 4. Neither the name of the University nor the names of its contributors
    806 //    may be used to endorse or promote products derived from this software
    807 //    without specific prior written permission.
    808 //
    809 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    810 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    811 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    812 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    813 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    814 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    815 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    816 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    817 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    818 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    819 // SUCH DAMAGE.
    820 //
    821 // -
    822 // Portions Copyright (c) 1993 by Digital Equipment Corporation.
    823 //
    824 // Permission to use, copy, modify, and distribute this software for any
    825 // purpose with or without fee is hereby granted, provided that the above
    826 // copyright notice and this permission notice appear in all copies, and that
    827 // the name of Digital Equipment Corporation not be used in advertising or
    828 // publicity pertaining to distribution of the document or software without
    829 // specific, written prior permission.
    830 //
    831 // THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
    832 // WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
    833 // OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
    834 // CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
    835 // DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
    836 // PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
    837 // ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
    838 // SOFTWARE.
    839 // -
    840 // --Copyright--
    841 
    842 //      @(#)netdb.h	8.1 (Berkeley) 6/2/93
    843 
    844 // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved.
    845 //
    846 // @APPLE_LICENSE_HEADER_START@
    847 //
    848 // This file contains Original Code and/or Modifications of Original Code
    849 // as defined in and that are subject to the Apple Public Source License
    850 // Version 2.0 (the 'License'). You may not use this file except in
    851 // compliance with the License. Please obtain a copy of the License at
    852 // http://www.opensource.apple.com/apsl/ and read it before using this
    853 // file.
    854 //
    855 // The Original Code and all software distributed under the License are
    856 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
    857 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
    858 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
    859 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
    860 // Please see the License for the specific language governing rights and
    861 // limitations under the License.
    862 //
    863 // @APPLE_LICENSE_HEADER_END@
    864 
    865 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
    866 //
    867 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
    868 //
    869 // This file contains Original Code and/or Modifications of Original Code
    870 // as defined in and that are subject to the Apple Public Source License
    871 // Version 2.0 (the 'License'). You may not use this file except in
    872 // compliance with the License. The rights granted to you under the License
    873 // may not be used to create, or enable the creation or redistribution of,
    874 // unlawful or unlicensed copies of an Apple operating system, or to
    875 // circumvent, violate, or enable the circumvention or violation of, any
    876 // terms of an Apple operating system software license agreement.
    877 //
    878 // Please obtain a copy of the License at
    879 // http://www.opensource.apple.com/apsl/ and read it before using this file.
    880 //
    881 // The Original Code and all software distributed under the License are
    882 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
    883 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
    884 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
    885 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
    886 // Please see the License for the specific language governing rights and
    887 // limitations under the License.
    888 //
    889 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
    890 
    891 // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
    892 //
    893 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
    894 //
    895 // This file contains Original Code and/or Modifications of Original Code
    896 // as defined in and that are subject to the Apple Public Source License
    897 // Version 2.0 (the 'License'). You may not use this file except in
    898 // compliance with the License. The rights granted to you under the License
    899 // may not be used to create, or enable the creation or redistribution of,
    900 // unlawful or unlicensed copies of an Apple operating system, or to
    901 // circumvent, violate, or enable the circumvention or violation of, any
    902 // terms of an Apple operating system software license agreement.
    903 //
    904 // Please obtain a copy of the License at
    905 // http://www.opensource.apple.com/apsl/ and read it before using this file.
    906 //
    907 // The Original Code and all software distributed under the License are
    908 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
    909 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
    910 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
    911 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
    912 // Please see the License for the specific language governing rights and
    913 // limitations under the License.
    914 //
    915 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
    916 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
    917 // Copyright (c) 1991, 1993
    918 //	The Regents of the University of California.  All rights reserved.
    919 //
    920 // This code is derived from software contributed to Berkeley by
    921 // Berkeley Software Design, Inc.
    922 //
    923 // Redistribution and use in source and binary forms, with or without
    924 // modification, are permitted provided that the following conditions
    925 // are met:
    926 // 1. Redistributions of source code must retain the above copyright
    927 //    notice, this list of conditions and the following disclaimer.
    928 // 2. Redistributions in binary form must reproduce the above copyright
    929 //    notice, this list of conditions and the following disclaimer in the
    930 //    documentation and/or other materials provided with the distribution.
    931 // 3. All advertising materials mentioning features or use of this software
    932 //    must display the following acknowledgement:
    933 //	This product includes software developed by the University of
    934 //	California, Berkeley and its contributors.
    935 // 4. Neither the name of the University nor the names of its contributors
    936 //    may be used to endorse or promote products derived from this software
    937 //    without specific prior written permission.
    938 //
    939 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    940 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    941 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    942 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    943 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    944 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    945 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    946 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    947 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    948 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    949 // SUCH DAMAGE.
    950 //
    951 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
    952 
    953 // This SDK is designed to work with clang and specific versions of
    954 // gcc >= 4.0 with Apple's patch sets
    955 
    956 // Compatibility with compilers and environments that don't support compiler
    957 // feature checking function-like macros.
    958 
    959 // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
    960 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
    961 // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
    962 // in between its arguments.  __CONCAT can also concatenate double-quoted
    963 // strings produced by the __STRING macro, but this only works with ANSI C.
    964 
    965 // In non-ANSI C environments, new programs will want ANSI-only C keywords
    966 // deleted from the program and old programs will want them left alone.
    967 // When using a compiler other than gcc, programs using the ANSI C keywords
    968 // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
    969 // When using "gcc -traditional", we assume that this is the intent; if
    970 // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
    971 
    972 // __unused denotes variables and functions that may not be used, preventing
    973 // the compiler from warning about it if not used.
    974 
    975 // __used forces variables and functions to be included even if it appears
    976 // to the compiler that they are not used (and would thust be discarded).
    977 
    978 // __cold marks code used for debugging or that is rarely taken
    979 // and tells the compiler to optimize for size and outline code.
    980 
    981 // __deprecated causes the compiler to produce a warning when encountering
    982 // code using the deprecated functionality.
    983 // __deprecated_msg() does the same, and compilers that support it will print
    984 // a message along with the deprecation warning.
    985 // This may require turning on such warning with the -Wdeprecated flag.
    986 // __deprecated_enum_msg() should be used on enums, and compilers that support
    987 // it will print the deprecation warning.
    988 // __kpi_deprecated() specifically indicates deprecation of kernel programming
    989 // interfaces in Kernel.framework used by KEXTs.
    990 
    991 // __unavailable causes the compiler to error out when encountering
    992 // code using the tagged function of variable.
    993 
    994 // Delete pseudo-keywords wherever they are not available or needed.
    995 
    996 // We use `__restrict' as a way to define the `restrict' type qualifier
    997 // without disturbing older software that is unaware of C99 keywords.
    998 
    999 // Compatibility with compilers and environments that don't support the
   1000 // nullability feature.
   1001 
   1002 // __disable_tail_calls causes the compiler to not perform tail call
   1003 // optimization inside the marked function.
   1004 
   1005 // __not_tail_called causes the compiler to prevent tail call optimization
   1006 // on statically bound calls to the function.  It has no effect on indirect
   1007 // calls.  Virtual functions, objective-c methods, and functions marked as
   1008 // "always_inline" cannot be marked as __not_tail_called.
   1009 
   1010 // __result_use_check warns callers of a function that not using the function
   1011 // return value is a bug, i.e. dismissing malloc() return value results in a
   1012 // memory leak.
   1013 
   1014 // __swift_unavailable causes the compiler to mark a symbol as specifically
   1015 // unavailable in Swift, regardless of any other availability in C.
   1016 
   1017 // __abortlike is the attribute to put on functions like abort() that are
   1018 // typically used to mark assertions. These optimize the codegen
   1019 // for outlining while still maintaining debugability.
   1020 
   1021 // Declaring inline functions within headers is error-prone due to differences
   1022 // across various versions of the C language and extensions.  __header_inline
   1023 // can be used to declare inline functions within system headers.  In cases
   1024 // where you want to force inlining instead of letting the compiler make
   1025 // the decision, you can use __header_always_inline.
   1026 //
   1027 // Be aware that using inline for functions which compilers may also provide
   1028 // builtins can behave differently under various compilers.  If you intend to
   1029 // provide an inline version of such a function, you may want to use a macro
   1030 // instead.
   1031 //
   1032 // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
   1033 // support c99 inline in some cases:
   1034 // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
   1035 
   1036 // Compiler-dependent macros that bracket portions of code where the
   1037 // "-Wunreachable-code" warning should be ignored. Please use sparingly.
   1038 
   1039 // Compiler-dependent macros to declare that functions take printf-like
   1040 // or scanf-like arguments.  They are null except for versions of gcc
   1041 // that are known to support the features properly.  Functions declared
   1042 // with these attributes will cause compilation warnings if there is a
   1043 // mismatch between the format string and subsequent function parameter
   1044 // types.
   1045 
   1046 // Source compatibility only, ID string not emitted in object file
   1047 
   1048 // __alloc_size can be used to label function arguments that represent the
   1049 // size of memory that the function allocates and returns. The one-argument
   1050 // form labels a single argument that gives the allocation size (where the
   1051 // arguments are numbered from 1):
   1052 //
   1053 // void	*malloc(size_t __size) __alloc_size(1);
   1054 //
   1055 // The two-argument form handles the case where the size is calculated as the
   1056 // product of two arguments:
   1057 //
   1058 // void	*calloc(size_t __count, size_t __size) __alloc_size(1,2);
   1059 
   1060 // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
   1061 //
   1062 // DEFAULT	By default newly complied code will get POSIX APIs plus
   1063 //		Apple API extensions in scope.
   1064 //
   1065 //		Most users will use this compilation environment to avoid
   1066 //		behavioral differences between 32 and 64 bit code.
   1067 //
   1068 // LEGACY	Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
   1069 //		API extensions in scope.
   1070 //
   1071 //		This is generally equivalent to the Tiger release compilation
   1072 //		environment, except that it cannot be applied to 64 bit code;
   1073 //		its use is discouraged.
   1074 //
   1075 //		We expect this environment to be deprecated in the future.
   1076 //
   1077 // STRICT	Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
   1078 //		available APIs to exactly the set of APIs defined by the
   1079 //		corresponding standard, based on the value defined.
   1080 //
   1081 //		A correct, portable definition for _POSIX_C_SOURCE is 200112L.
   1082 //		A correct, portable definition for _XOPEN_SOURCE is 600L.
   1083 //
   1084 //		Apple API extensions are not visible in this environment,
   1085 //		which can cause Apple specific code to fail to compile,
   1086 //		or behave incorrectly if prototypes are not in scope or
   1087 //		warnings about missing prototypes are not enabled or ignored.
   1088 //
   1089 // In any compilation environment, for correct symbol resolution to occur,
   1090 // function prototypes must be in scope.  It is recommended that all Apple
   1091 // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
   1092 // compiler flags to their projects to be warned when a function is being
   1093 // used without a prototype in scope.
   1094 
   1095 // These settings are particular to each product.
   1096 // Platform: MacOSX
   1097 // #undef __DARWIN_ONLY_UNIX_CONFORMANCE (automatically set for 64-bit)
   1098 
   1099 // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
   1100 // legacy code to use the old symbol, thus maintaining binary compatibility
   1101 // while new code can use a standards compliant version of the same function.
   1102 //
   1103 // __DARWIN_ALIAS is used by itself if the function signature has not
   1104 // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
   1105 // if the signature has changed.  Because the __LP64__ environment
   1106 // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
   1107 // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
   1108 //
   1109 // As a special case, when XCode is used to target a specific version of the
   1110 // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
   1111 // will be defined by the compiler, with the digits representing major version
   1112 // time 100 + minor version times 10 (e.g. 10.5 := 1050).  If we are targeting
   1113 // pre-10.5, and it is the default compilation environment, revert the
   1114 // compilation environment to pre-__DARWIN_UNIX03.
   1115 
   1116 // symbol suffixes used for symbol versioning
   1117 
   1118 // symbol versioning macros
   1119 
   1120 // symbol release macros
   1121 // Copyright (c) 2010 Apple Inc. All rights reserved.
   1122 //
   1123 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1124 //
   1125 // This file contains Original Code and/or Modifications of Original Code
   1126 // as defined in and that are subject to the Apple Public Source License
   1127 // Version 2.0 (the 'License'). You may not use this file except in
   1128 // compliance with the License. The rights granted to you under the License
   1129 // may not be used to create, or enable the creation or redistribution of,
   1130 // unlawful or unlicensed copies of an Apple operating system, or to
   1131 // circumvent, violate, or enable the circumvention or violation of, any
   1132 // terms of an Apple operating system software license agreement.
   1133 //
   1134 // Please obtain a copy of the License at
   1135 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1136 //
   1137 // The Original Code and all software distributed under the License are
   1138 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1139 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1140 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1141 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1142 // Please see the License for the specific language governing rights and
   1143 // limitations under the License.
   1144 //
   1145 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1146 
   1147 // POSIX.1 requires that the macros we test be defined before any standard
   1148 // header file is included.  This permits us to convert values for feature
   1149 // testing, as necessary, using only _POSIX_C_SOURCE.
   1150 //
   1151 // Here's a quick run-down of the versions:
   1152 //  defined(_POSIX_SOURCE)		1003.1-1988
   1153 //  _POSIX_C_SOURCE == 1L		1003.1-1990
   1154 //  _POSIX_C_SOURCE == 2L		1003.2-1992 C Language Binding Option
   1155 //  _POSIX_C_SOURCE == 199309L		1003.1b-1993
   1156 //  _POSIX_C_SOURCE == 199506L		1003.1c-1995, 1003.1i-1995,
   1157 //					and the omnibus ISO/IEC 9945-1: 1996
   1158 //  _POSIX_C_SOURCE == 200112L		1003.1-2001
   1159 //  _POSIX_C_SOURCE == 200809L		1003.1-2008
   1160 //
   1161 // In addition, the X/Open Portability Guide, which is now the Single UNIX
   1162 // Specification, defines a feature-test macro which indicates the version of
   1163 // that specification, and which subsumes _POSIX_C_SOURCE.
   1164 
   1165 // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
   1166 
   1167 // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
   1168 
   1169 // Deal with various X/Open Portability Guides and Single UNIX Spec.
   1170 
   1171 // Deal with all versions of POSIX.  The ordering relative to the tests above is
   1172 // important.
   1173 
   1174 // POSIX C deprecation macros
   1175 // Copyright (c) 2010 Apple Inc. All rights reserved.
   1176 //
   1177 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1178 //
   1179 // This file contains Original Code and/or Modifications of Original Code
   1180 // as defined in and that are subject to the Apple Public Source License
   1181 // Version 2.0 (the 'License'). You may not use this file except in
   1182 // compliance with the License. The rights granted to you under the License
   1183 // may not be used to create, or enable the creation or redistribution of,
   1184 // unlawful or unlicensed copies of an Apple operating system, or to
   1185 // circumvent, violate, or enable the circumvention or violation of, any
   1186 // terms of an Apple operating system software license agreement.
   1187 //
   1188 // Please obtain a copy of the License at
   1189 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1190 //
   1191 // The Original Code and all software distributed under the License are
   1192 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1193 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1194 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1195 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1196 // Please see the License for the specific language governing rights and
   1197 // limitations under the License.
   1198 //
   1199 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1200 
   1201 // Set a single macro which will always be defined and can be used to determine
   1202 // the appropriate namespace.  For POSIX, these values will correspond to
   1203 // _POSIX_C_SOURCE value.  Currently there are two additional levels corresponding
   1204 // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
   1205 
   1206 // If the developer has neither requested a strict language mode nor a version
   1207 // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
   1208 // of __DARWIN_C_FULL.
   1209 
   1210 // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
   1211 // c99 still want long longs.  While not perfect, we allow long longs for
   1212 // g++.
   1213 
   1214 // ****************************************
   1215 //
   1216 //  Public darwin-specific feature macros
   1217 //
   1218 
   1219 // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
   1220 // structures modified for 64-bit inodes (like struct stat) will be used.
   1221 
   1222 // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
   1223 // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
   1224 // (and non-zero).  There is no struct stat64 either, as the regular
   1225 // struct stat will already be the 64-bit version.
   1226 
   1227 // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
   1228 // in 10.5 exists; no pre-10.5 variants are available.
   1229 
   1230 // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
   1231 // are available (the legacy BSD APIs are not available)
   1232 
   1233 // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
   1234 // and specifies the conformance level (3 is SUSv3)
   1235 
   1236 // This macro casts away the qualifier from the variable
   1237 //
   1238 // Note: use at your own risk, removing qualifiers can result in
   1239 // catastrophic run-time failures.
   1240 
   1241 // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
   1242 // used from other compilation units, but not other libraries or executables.
   1243 
   1244 // Architecture validation for current SDK
   1245 
   1246 // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
   1247 //
   1248 // This provides more advanced type checking on compilers supporting
   1249 // the proper extensions, even in C.
   1250 
   1251 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   1252 //
   1253 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1254 //
   1255 // This file contains Original Code and/or Modifications of Original Code
   1256 // as defined in and that are subject to the Apple Public Source License
   1257 // Version 2.0 (the 'License'). You may not use this file except in
   1258 // compliance with the License. The rights granted to you under the License
   1259 // may not be used to create, or enable the creation or redistribution of,
   1260 // unlawful or unlicensed copies of an Apple operating system, or to
   1261 // circumvent, violate, or enable the circumvention or violation of, any
   1262 // terms of an Apple operating system software license agreement.
   1263 //
   1264 // Please obtain a copy of the License at
   1265 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1266 //
   1267 // The Original Code and all software distributed under the License are
   1268 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1269 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1270 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1271 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1272 // Please see the License for the specific language governing rights and
   1273 // limitations under the License.
   1274 //
   1275 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1276 
   1277 // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
   1278 //
   1279 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1280 //
   1281 // This file contains Original Code and/or Modifications of Original Code
   1282 // as defined in and that are subject to the Apple Public Source License
   1283 // Version 2.0 (the 'License'). You may not use this file except in
   1284 // compliance with the License. The rights granted to you under the License
   1285 // may not be used to create, or enable the creation or redistribution of,
   1286 // unlawful or unlicensed copies of an Apple operating system, or to
   1287 // circumvent, violate, or enable the circumvention or violation of, any
   1288 // terms of an Apple operating system software license agreement.
   1289 //
   1290 // Please obtain a copy of the License at
   1291 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1292 //
   1293 // The Original Code and all software distributed under the License are
   1294 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1295 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1296 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1297 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1298 // Please see the License for the specific language governing rights and
   1299 // limitations under the License.
   1300 //
   1301 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1302 
   1303 // This header file contains integer types.  It's intended to also contain
   1304 // flotaing point and other arithmetic types, as needed, later.
   1305 
   1306 type X__int8_t = int8     /* _types.h:37:33 */
   1307 type X__uint8_t = uint8   /* _types.h:41:33 */
   1308 type X__int16_t = int16   /* _types.h:42:33 */
   1309 type X__uint16_t = uint16 /* _types.h:43:33 */
   1310 type X__int32_t = int32   /* _types.h:44:33 */
   1311 type X__uint32_t = uint32 /* _types.h:45:33 */
   1312 type X__int64_t = int64   /* _types.h:46:33 */
   1313 type X__uint64_t = uint64 /* _types.h:47:33 */
   1314 
   1315 type X__darwin_intptr_t = int64   /* _types.h:49:33 */
   1316 type X__darwin_natural_t = uint32 /* _types.h:50:33 */
   1317 
   1318 // The rune type below is declared to be an ``int'' instead of the more natural
   1319 // ``unsigned long'' or ``long''.  Two things are happening here.  It is not
   1320 // unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,
   1321 // it looks like 10646 will be a 31 bit standard.  This means that if your
   1322 // ints cannot hold 32 bits, you will be in trouble.  The reason an int was
   1323 // chosen over a long is that the is*() and to*() routines take ints (says
   1324 // ANSI C), but they use __darwin_ct_rune_t instead of int.  By changing it
   1325 // here, you lose a bit of ANSI conformance, but your programs will still
   1326 // work.
   1327 //
   1328 // NOTE: rune_t is not covered by ANSI nor other standards, and should not
   1329 // be instantiated outside of lib/libc/locale.  Use wchar_t.  wchar_t and
   1330 // rune_t must be the same type.  Also wint_t must be no narrower than
   1331 // wchar_t, and should also be able to hold all members of the largest
   1332 // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
   1333 
   1334 type X__darwin_ct_rune_t = int32 /* _types.h:70:33 */ // ct_rune_t
   1335 
   1336 // mbstate_t is an opaque object to keep conversion state, during multibyte
   1337 // stream conversions.  The content must not be referenced by user programs.
   1338 type X__mbstate_t = struct {
   1339 	F__ccgo_pad1 [0]uint64
   1340 	F__mbstate8  [128]int8
   1341 } /* _types.h:79:3 */
   1342 
   1343 type X__darwin_mbstate_t = X__mbstate_t /* _types.h:81:33 */ // mbstate_t
   1344 
   1345 type X__darwin_ptrdiff_t = int64 /* _types.h:84:33 */ // ptr1 - ptr2
   1346 
   1347 type X__darwin_size_t = uint64 /* _types.h:92:33 */ // sizeof()
   1348 
   1349 type X__darwin_va_list = X__builtin_va_list /* _types.h:98:33 */ // va_list
   1350 
   1351 type X__darwin_wchar_t = int32 /* _types.h:104:33 */ // wchar_t
   1352 
   1353 type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:109:33 */ // rune_t
   1354 
   1355 type X__darwin_wint_t = int32 /* _types.h:112:33 */ // wint_t
   1356 
   1357 type X__darwin_clock_t = uint64        /* _types.h:117:33 */ // clock()
   1358 type X__darwin_socklen_t = X__uint32_t /* _types.h:118:33 */ // socklen_t (duh)
   1359 type X__darwin_ssize_t = int64         /* _types.h:119:33 */ // byte count or error
   1360 type X__darwin_time_t = int64          /* _types.h:120:33 */ // time()
   1361 
   1362 // Type definitions; takes common type definitions that must be used
   1363 // in multiple header files due to [XSI], removes them from the system
   1364 // space, and puts them in the implementation space.
   1365 
   1366 type X__darwin_blkcnt_t = X__int64_t                    /* _types.h:55:25 */ // total blocks
   1367 type X__darwin_blksize_t = X__int32_t                   /* _types.h:56:25 */ // preferred block size
   1368 type X__darwin_dev_t = X__int32_t                       /* _types.h:57:25 */ // dev_t
   1369 type X__darwin_fsblkcnt_t = uint32                      /* _types.h:58:25 */ // Used by statvfs and fstatvfs
   1370 type X__darwin_fsfilcnt_t = uint32                      /* _types.h:59:25 */ // Used by statvfs and fstatvfs
   1371 type X__darwin_gid_t = X__uint32_t                      /* _types.h:60:25 */ // [???] process and group IDs
   1372 type X__darwin_id_t = X__uint32_t                       /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
   1373 type X__darwin_ino64_t = X__uint64_t                    /* _types.h:62:25 */ // [???] Used for 64 bit inodes
   1374 type X__darwin_ino_t = X__darwin_ino64_t                /* _types.h:64:26 */ // [???] Used for inodes
   1375 type X__darwin_mach_port_name_t = X__darwin_natural_t   /* _types.h:68:28 */ // Used by mach
   1376 type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
   1377 type X__darwin_mode_t = X__uint16_t                     /* _types.h:70:25 */ // [???] Some file attributes
   1378 type X__darwin_off_t = X__int64_t                       /* _types.h:71:25 */ // [???] Used for file sizes
   1379 type X__darwin_pid_t = X__int32_t                       /* _types.h:72:25 */ // [???] process and group IDs
   1380 type X__darwin_sigset_t = X__uint32_t                   /* _types.h:73:25 */ // [???] signal set
   1381 type X__darwin_suseconds_t = X__int32_t                 /* _types.h:74:25 */ // [???] microseconds
   1382 type X__darwin_uid_t = X__uint32_t                      /* _types.h:75:25 */ // [???] user IDs
   1383 type X__darwin_useconds_t = X__uint32_t                 /* _types.h:76:25 */ // [???] microseconds
   1384 type X__darwin_uuid_t = [16]uint8                       /* _types.h:77:25 */
   1385 type X__darwin_uuid_string_t = [37]int8                 /* _types.h:78:17 */
   1386 
   1387 // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
   1388 //
   1389 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1390 //
   1391 // This file contains Original Code and/or Modifications of Original Code
   1392 // as defined in and that are subject to the Apple Public Source License
   1393 // Version 2.0 (the 'License'). You may not use this file except in
   1394 // compliance with the License. The rights granted to you under the License
   1395 // may not be used to create, or enable the creation or redistribution of,
   1396 // unlawful or unlicensed copies of an Apple operating system, or to
   1397 // circumvent, violate, or enable the circumvention or violation of, any
   1398 // terms of an Apple operating system software license agreement.
   1399 //
   1400 // Please obtain a copy of the License at
   1401 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1402 //
   1403 // The Original Code and all software distributed under the License are
   1404 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1405 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1406 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1407 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1408 // Please see the License for the specific language governing rights and
   1409 // limitations under the License.
   1410 //
   1411 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1412 
   1413 // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   1414 //
   1415 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1416 //
   1417 // This file contains Original Code and/or Modifications of Original Code
   1418 // as defined in and that are subject to the Apple Public Source License
   1419 // Version 2.0 (the 'License'). You may not use this file except in
   1420 // compliance with the License. The rights granted to you under the License
   1421 // may not be used to create, or enable the creation or redistribution of,
   1422 // unlawful or unlicensed copies of an Apple operating system, or to
   1423 // circumvent, violate, or enable the circumvention or violation of, any
   1424 // terms of an Apple operating system software license agreement.
   1425 //
   1426 // Please obtain a copy of the License at
   1427 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1428 //
   1429 // The Original Code and all software distributed under the License are
   1430 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1431 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1432 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1433 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1434 // Please see the License for the specific language governing rights and
   1435 // limitations under the License.
   1436 //
   1437 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1438 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   1439 // Copyright (c) 1991, 1993
   1440 //	The Regents of the University of California.  All rights reserved.
   1441 //
   1442 // This code is derived from software contributed to Berkeley by
   1443 // Berkeley Software Design, Inc.
   1444 //
   1445 // Redistribution and use in source and binary forms, with or without
   1446 // modification, are permitted provided that the following conditions
   1447 // are met:
   1448 // 1. Redistributions of source code must retain the above copyright
   1449 //    notice, this list of conditions and the following disclaimer.
   1450 // 2. Redistributions in binary form must reproduce the above copyright
   1451 //    notice, this list of conditions and the following disclaimer in the
   1452 //    documentation and/or other materials provided with the distribution.
   1453 // 3. All advertising materials mentioning features or use of this software
   1454 //    must display the following acknowledgement:
   1455 //	This product includes software developed by the University of
   1456 //	California, Berkeley and its contributors.
   1457 // 4. Neither the name of the University nor the names of its contributors
   1458 //    may be used to endorse or promote products derived from this software
   1459 //    without specific prior written permission.
   1460 //
   1461 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1462 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1463 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1464 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1465 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1466 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1467 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1468 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1469 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1470 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1471 // SUCH DAMAGE.
   1472 //
   1473 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   1474 
   1475 // pthread opaque structures
   1476 
   1477 type X__darwin_pthread_handler_rec = struct {
   1478 	F__routine uintptr
   1479 	F__arg     uintptr
   1480 	F__next    uintptr
   1481 } /* _pthread_types.h:57:1 */
   1482 
   1483 type X_opaque_pthread_attr_t = struct {
   1484 	F__sig    int64
   1485 	F__opaque [56]int8
   1486 } /* _pthread_types.h:63:1 */
   1487 
   1488 type X_opaque_pthread_cond_t = struct {
   1489 	F__sig    int64
   1490 	F__opaque [40]int8
   1491 } /* _pthread_types.h:68:1 */
   1492 
   1493 type X_opaque_pthread_condattr_t = struct {
   1494 	F__sig    int64
   1495 	F__opaque [8]int8
   1496 } /* _pthread_types.h:73:1 */
   1497 
   1498 type X_opaque_pthread_mutex_t = struct {
   1499 	F__sig    int64
   1500 	F__opaque [56]int8
   1501 } /* _pthread_types.h:78:1 */
   1502 
   1503 type X_opaque_pthread_mutexattr_t = struct {
   1504 	F__sig    int64
   1505 	F__opaque [8]int8
   1506 } /* _pthread_types.h:83:1 */
   1507 
   1508 type X_opaque_pthread_once_t = struct {
   1509 	F__sig    int64
   1510 	F__opaque [8]int8
   1511 } /* _pthread_types.h:88:1 */
   1512 
   1513 type X_opaque_pthread_rwlock_t = struct {
   1514 	F__sig    int64
   1515 	F__opaque [192]int8
   1516 } /* _pthread_types.h:93:1 */
   1517 
   1518 type X_opaque_pthread_rwlockattr_t = struct {
   1519 	F__sig    int64
   1520 	F__opaque [16]int8
   1521 } /* _pthread_types.h:98:1 */
   1522 
   1523 type X_opaque_pthread_t = struct {
   1524 	F__sig           int64
   1525 	F__cleanup_stack uintptr
   1526 	F__opaque        [8176]int8
   1527 } /* _pthread_types.h:103:1 */
   1528 
   1529 type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t             /* _pthread_types.h:109:39 */
   1530 type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t             /* _pthread_types.h:110:39 */
   1531 type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t     /* _pthread_types.h:111:43 */
   1532 type X__darwin_pthread_key_t = uint64                               /* _pthread_types.h:112:23 */
   1533 type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t           /* _pthread_types.h:113:40 */
   1534 type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t   /* _pthread_types.h:114:44 */
   1535 type X__darwin_pthread_once_t = X_opaque_pthread_once_t             /* _pthread_types.h:115:39 */
   1536 type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t         /* _pthread_types.h:116:41 */
   1537 type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
   1538 type X__darwin_pthread_t = uintptr                                  /* _pthread_types.h:118:34 */
   1539 
   1540 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   1541 //
   1542 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1543 //
   1544 // This file contains Original Code and/or Modifications of Original Code
   1545 // as defined in and that are subject to the Apple Public Source License
   1546 // Version 2.0 (the 'License'). You may not use this file except in
   1547 // compliance with the License. The rights granted to you under the License
   1548 // may not be used to create, or enable the creation or redistribution of,
   1549 // unlawful or unlicensed copies of an Apple operating system, or to
   1550 // circumvent, violate, or enable the circumvention or violation of, any
   1551 // terms of an Apple operating system software license agreement.
   1552 //
   1553 // Please obtain a copy of the License at
   1554 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1555 //
   1556 // The Original Code and all software distributed under the License are
   1557 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1558 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1559 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1560 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1561 // Please see the License for the specific language governing rights and
   1562 // limitations under the License.
   1563 //
   1564 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1565 
   1566 type X__darwin_nl_item = int32        /* _types.h:40:14 */
   1567 type X__darwin_wctrans_t = int32      /* _types.h:41:14 */
   1568 type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
   1569 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   1570 //
   1571 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1572 //
   1573 // This file contains Original Code and/or Modifications of Original Code
   1574 // as defined in and that are subject to the Apple Public Source License
   1575 // Version 2.0 (the 'License'). You may not use this file except in
   1576 // compliance with the License. The rights granted to you under the License
   1577 // may not be used to create, or enable the creation or redistribution of,
   1578 // unlawful or unlicensed copies of an Apple operating system, or to
   1579 // circumvent, violate, or enable the circumvention or violation of, any
   1580 // terms of an Apple operating system software license agreement.
   1581 //
   1582 // Please obtain a copy of the License at
   1583 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1584 //
   1585 // The Original Code and all software distributed under the License are
   1586 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1587 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1588 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1589 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1590 // Please see the License for the specific language governing rights and
   1591 // limitations under the License.
   1592 //
   1593 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1594 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   1595 //
   1596 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1597 //
   1598 // This file contains Original Code and/or Modifications of Original Code
   1599 // as defined in and that are subject to the Apple Public Source License
   1600 // Version 2.0 (the 'License'). You may not use this file except in
   1601 // compliance with the License. The rights granted to you under the License
   1602 // may not be used to create, or enable the creation or redistribution of,
   1603 // unlawful or unlicensed copies of an Apple operating system, or to
   1604 // circumvent, violate, or enable the circumvention or violation of, any
   1605 // terms of an Apple operating system software license agreement.
   1606 //
   1607 // Please obtain a copy of the License at
   1608 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1609 //
   1610 // The Original Code and all software distributed under the License are
   1611 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1612 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1613 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1614 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1615 // Please see the License for the specific language governing rights and
   1616 // limitations under the License.
   1617 //
   1618 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1619 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   1620 
   1621 // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
   1622 //
   1623 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1624 //
   1625 // This file contains Original Code and/or Modifications of Original Code
   1626 // as defined in and that are subject to the Apple Public Source License
   1627 // Version 2.0 (the 'License'). You may not use this file except in
   1628 // compliance with the License. The rights granted to you under the License
   1629 // may not be used to create, or enable the creation or redistribution of,
   1630 // unlawful or unlicensed copies of an Apple operating system, or to
   1631 // circumvent, violate, or enable the circumvention or violation of, any
   1632 // terms of an Apple operating system software license agreement.
   1633 //
   1634 // Please obtain a copy of the License at
   1635 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1636 //
   1637 // The Original Code and all software distributed under the License are
   1638 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1639 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1640 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1641 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1642 // Please see the License for the specific language governing rights and
   1643 // limitations under the License.
   1644 //
   1645 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1646 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   1647 // Copyright (c) 1990, 1993
   1648 //	The Regents of the University of California.  All rights reserved.
   1649 //
   1650 // Redistribution and use in source and binary forms, with or without
   1651 // modification, are permitted provided that the following conditions
   1652 // are met:
   1653 // 1. Redistributions of source code must retain the above copyright
   1654 //    notice, this list of conditions and the following disclaimer.
   1655 // 2. Redistributions in binary form must reproduce the above copyright
   1656 //    notice, this list of conditions and the following disclaimer in the
   1657 //    documentation and/or other materials provided with the distribution.
   1658 // 3. All advertising materials mentioning features or use of this software
   1659 //    must display the following acknowledgement:
   1660 //	This product includes software developed by the University of
   1661 //	California, Berkeley and its contributors.
   1662 // 4. Neither the name of the University nor the names of its contributors
   1663 //    may be used to endorse or promote products derived from this software
   1664 //    without specific prior written permission.
   1665 //
   1666 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1667 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1668 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1669 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1670 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1671 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1672 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1673 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1674 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1675 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1676 // SUCH DAMAGE.
   1677 //
   1678 //	@(#)types.h	8.3 (Berkeley) 1/5/94
   1679 
   1680 // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
   1681 //
   1682 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1683 //
   1684 // This file contains Original Code and/or Modifications of Original Code
   1685 // as defined in and that are subject to the Apple Public Source License
   1686 // Version 2.0 (the 'License'). You may not use this file except in
   1687 // compliance with the License. The rights granted to you under the License
   1688 // may not be used to create, or enable the creation or redistribution of,
   1689 // unlawful or unlicensed copies of an Apple operating system, or to
   1690 // circumvent, violate, or enable the circumvention or violation of, any
   1691 // terms of an Apple operating system software license agreement.
   1692 //
   1693 // Please obtain a copy of the License at
   1694 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1695 //
   1696 // The Original Code and all software distributed under the License are
   1697 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1698 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1699 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1700 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1701 // Please see the License for the specific language governing rights and
   1702 // limitations under the License.
   1703 //
   1704 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1705 // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   1706 //
   1707 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1708 //
   1709 // This file contains Original Code and/or Modifications of Original Code
   1710 // as defined in and that are subject to the Apple Public Source License
   1711 // Version 2.0 (the 'License'). You may not use this file except in
   1712 // compliance with the License. The rights granted to you under the License
   1713 // may not be used to create, or enable the creation or redistribution of,
   1714 // unlawful or unlicensed copies of an Apple operating system, or to
   1715 // circumvent, violate, or enable the circumvention or violation of, any
   1716 // terms of an Apple operating system software license agreement.
   1717 //
   1718 // Please obtain a copy of the License at
   1719 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1720 //
   1721 // The Original Code and all software distributed under the License are
   1722 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1723 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1724 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1725 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1726 // Please see the License for the specific language governing rights and
   1727 // limitations under the License.
   1728 //
   1729 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1730 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   1731 // Copyright (c) 1991, 1993
   1732 //	The Regents of the University of California.  All rights reserved.
   1733 //
   1734 // This code is derived from software contributed to Berkeley by
   1735 // Berkeley Software Design, Inc.
   1736 //
   1737 // Redistribution and use in source and binary forms, with or without
   1738 // modification, are permitted provided that the following conditions
   1739 // are met:
   1740 // 1. Redistributions of source code must retain the above copyright
   1741 //    notice, this list of conditions and the following disclaimer.
   1742 // 2. Redistributions in binary form must reproduce the above copyright
   1743 //    notice, this list of conditions and the following disclaimer in the
   1744 //    documentation and/or other materials provided with the distribution.
   1745 // 3. All advertising materials mentioning features or use of this software
   1746 //    must display the following acknowledgement:
   1747 //	This product includes software developed by the University of
   1748 //	California, Berkeley and its contributors.
   1749 // 4. Neither the name of the University nor the names of its contributors
   1750 //    may be used to endorse or promote products derived from this software
   1751 //    without specific prior written permission.
   1752 //
   1753 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1754 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1755 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1756 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1757 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1758 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1759 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1760 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1761 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1762 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1763 // SUCH DAMAGE.
   1764 //
   1765 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   1766 
   1767 // Basic integral types.  Omit the typedef if
   1768 // not possible for a machine/compiler combination.
   1769 // Copyright (c) 2012 Apple Inc. All rights reserved.
   1770 //
   1771 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1772 //
   1773 // This file contains Original Code and/or Modifications of Original Code
   1774 // as defined in and that are subject to the Apple Public Source License
   1775 // Version 2.0 (the 'License'). You may not use this file except in
   1776 // compliance with the License. The rights granted to you under the License
   1777 // may not be used to create, or enable the creation or redistribution of,
   1778 // unlawful or unlicensed copies of an Apple operating system, or to
   1779 // circumvent, violate, or enable the circumvention or violation of, any
   1780 // terms of an Apple operating system software license agreement.
   1781 //
   1782 // Please obtain a copy of the License at
   1783 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1784 //
   1785 // The Original Code and all software distributed under the License are
   1786 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1787 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1788 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1789 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1790 // Please see the License for the specific language governing rights and
   1791 // limitations under the License.
   1792 //
   1793 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1794 type Int8_t = int8 /* _int8_t.h:30:33 */
   1795 // Copyright (c) 2012 Apple Inc. All rights reserved.
   1796 //
   1797 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1798 //
   1799 // This file contains Original Code and/or Modifications of Original Code
   1800 // as defined in and that are subject to the Apple Public Source License
   1801 // Version 2.0 (the 'License'). You may not use this file except in
   1802 // compliance with the License. The rights granted to you under the License
   1803 // may not be used to create, or enable the creation or redistribution of,
   1804 // unlawful or unlicensed copies of an Apple operating system, or to
   1805 // circumvent, violate, or enable the circumvention or violation of, any
   1806 // terms of an Apple operating system software license agreement.
   1807 //
   1808 // Please obtain a copy of the License at
   1809 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1810 //
   1811 // The Original Code and all software distributed under the License are
   1812 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1813 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1814 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1815 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1816 // Please see the License for the specific language governing rights and
   1817 // limitations under the License.
   1818 //
   1819 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1820 type Int16_t = int16 /* _int16_t.h:30:33 */
   1821 // Copyright (c) 2012 Apple Inc. All rights reserved.
   1822 //
   1823 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1824 //
   1825 // This file contains Original Code and/or Modifications of Original Code
   1826 // as defined in and that are subject to the Apple Public Source License
   1827 // Version 2.0 (the 'License'). You may not use this file except in
   1828 // compliance with the License. The rights granted to you under the License
   1829 // may not be used to create, or enable the creation or redistribution of,
   1830 // unlawful or unlicensed copies of an Apple operating system, or to
   1831 // circumvent, violate, or enable the circumvention or violation of, any
   1832 // terms of an Apple operating system software license agreement.
   1833 //
   1834 // Please obtain a copy of the License at
   1835 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1836 //
   1837 // The Original Code and all software distributed under the License are
   1838 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1839 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1840 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1841 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1842 // Please see the License for the specific language governing rights and
   1843 // limitations under the License.
   1844 //
   1845 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1846 type Int32_t = int32 /* _int32_t.h:30:33 */
   1847 // Copyright (c) 2012 Apple Inc. All rights reserved.
   1848 //
   1849 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1850 //
   1851 // This file contains Original Code and/or Modifications of Original Code
   1852 // as defined in and that are subject to the Apple Public Source License
   1853 // Version 2.0 (the 'License'). You may not use this file except in
   1854 // compliance with the License. The rights granted to you under the License
   1855 // may not be used to create, or enable the creation or redistribution of,
   1856 // unlawful or unlicensed copies of an Apple operating system, or to
   1857 // circumvent, violate, or enable the circumvention or violation of, any
   1858 // terms of an Apple operating system software license agreement.
   1859 //
   1860 // Please obtain a copy of the License at
   1861 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1862 //
   1863 // The Original Code and all software distributed under the License are
   1864 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1865 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1866 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1867 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1868 // Please see the License for the specific language governing rights and
   1869 // limitations under the License.
   1870 //
   1871 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1872 type Int64_t = int64 /* _int64_t.h:30:33 */
   1873 
   1874 // Copyright (c) 2016 Apple Inc. All rights reserved.
   1875 //
   1876 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1877 //
   1878 // This file contains Original Code and/or Modifications of Original Code
   1879 // as defined in and that are subject to the Apple Public Source License
   1880 // Version 2.0 (the 'License'). You may not use this file except in
   1881 // compliance with the License. The rights granted to you under the License
   1882 // may not be used to create, or enable the creation or redistribution of,
   1883 // unlawful or unlicensed copies of an Apple operating system, or to
   1884 // circumvent, violate, or enable the circumvention or violation of, any
   1885 // terms of an Apple operating system software license agreement.
   1886 //
   1887 // Please obtain a copy of the License at
   1888 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1889 //
   1890 // The Original Code and all software distributed under the License are
   1891 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1892 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1893 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1894 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1895 // Please see the License for the specific language governing rights and
   1896 // limitations under the License.
   1897 //
   1898 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1899 type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
   1900 // Copyright (c) 2012 Apple Inc. All rights reserved.
   1901 //
   1902 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1903 //
   1904 // This file contains Original Code and/or Modifications of Original Code
   1905 // as defined in and that are subject to the Apple Public Source License
   1906 // Version 2.0 (the 'License'). You may not use this file except in
   1907 // compliance with the License. The rights granted to you under the License
   1908 // may not be used to create, or enable the creation or redistribution of,
   1909 // unlawful or unlicensed copies of an Apple operating system, or to
   1910 // circumvent, violate, or enable the circumvention or violation of, any
   1911 // terms of an Apple operating system software license agreement.
   1912 //
   1913 // Please obtain a copy of the License at
   1914 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1915 //
   1916 // The Original Code and all software distributed under the License are
   1917 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1918 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1919 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1920 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1921 // Please see the License for the specific language governing rights and
   1922 // limitations under the License.
   1923 //
   1924 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1925 type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
   1926 // Copyright (c) 2012 Apple Inc. All rights reserved.
   1927 //
   1928 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1929 //
   1930 // This file contains Original Code and/or Modifications of Original Code
   1931 // as defined in and that are subject to the Apple Public Source License
   1932 // Version 2.0 (the 'License'). You may not use this file except in
   1933 // compliance with the License. The rights granted to you under the License
   1934 // may not be used to create, or enable the creation or redistribution of,
   1935 // unlawful or unlicensed copies of an Apple operating system, or to
   1936 // circumvent, violate, or enable the circumvention or violation of, any
   1937 // terms of an Apple operating system software license agreement.
   1938 //
   1939 // Please obtain a copy of the License at
   1940 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1941 //
   1942 // The Original Code and all software distributed under the License are
   1943 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1944 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1945 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1946 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1947 // Please see the License for the specific language governing rights and
   1948 // limitations under the License.
   1949 //
   1950 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1951 type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
   1952 // Copyright (c) 2012 Apple Inc. All rights reserved.
   1953 //
   1954 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1955 //
   1956 // This file contains Original Code and/or Modifications of Original Code
   1957 // as defined in and that are subject to the Apple Public Source License
   1958 // Version 2.0 (the 'License'). You may not use this file except in
   1959 // compliance with the License. The rights granted to you under the License
   1960 // may not be used to create, or enable the creation or redistribution of,
   1961 // unlawful or unlicensed copies of an Apple operating system, or to
   1962 // circumvent, violate, or enable the circumvention or violation of, any
   1963 // terms of an Apple operating system software license agreement.
   1964 //
   1965 // Please obtain a copy of the License at
   1966 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1967 //
   1968 // The Original Code and all software distributed under the License are
   1969 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1970 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   1971 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   1972 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   1973 // Please see the License for the specific language governing rights and
   1974 // limitations under the License.
   1975 //
   1976 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   1977 type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
   1978 
   1979 type Register_t = Int64_t /* types.h:87:33 */
   1980 
   1981 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   1982 //
   1983 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   1984 //
   1985 // This file contains Original Code and/or Modifications of Original Code
   1986 // as defined in and that are subject to the Apple Public Source License
   1987 // Version 2.0 (the 'License'). You may not use this file except in
   1988 // compliance with the License. The rights granted to you under the License
   1989 // may not be used to create, or enable the creation or redistribution of,
   1990 // unlawful or unlicensed copies of an Apple operating system, or to
   1991 // circumvent, violate, or enable the circumvention or violation of, any
   1992 // terms of an Apple operating system software license agreement.
   1993 //
   1994 // Please obtain a copy of the License at
   1995 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   1996 //
   1997 // The Original Code and all software distributed under the License are
   1998 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   1999 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2000 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2001 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2002 // Please see the License for the specific language governing rights and
   2003 // limitations under the License.
   2004 //
   2005 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2006 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   2007 //
   2008 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2009 //
   2010 // This file contains Original Code and/or Modifications of Original Code
   2011 // as defined in and that are subject to the Apple Public Source License
   2012 // Version 2.0 (the 'License'). You may not use this file except in
   2013 // compliance with the License. The rights granted to you under the License
   2014 // may not be used to create, or enable the creation or redistribution of,
   2015 // unlawful or unlicensed copies of an Apple operating system, or to
   2016 // circumvent, violate, or enable the circumvention or violation of, any
   2017 // terms of an Apple operating system software license agreement.
   2018 //
   2019 // Please obtain a copy of the License at
   2020 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2021 //
   2022 // The Original Code and all software distributed under the License are
   2023 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2024 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2025 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2026 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2027 // Please see the License for the specific language governing rights and
   2028 // limitations under the License.
   2029 //
   2030 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2031 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   2032 
   2033 type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
   2034 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   2035 //
   2036 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2037 //
   2038 // This file contains Original Code and/or Modifications of Original Code
   2039 // as defined in and that are subject to the Apple Public Source License
   2040 // Version 2.0 (the 'License'). You may not use this file except in
   2041 // compliance with the License. The rights granted to you under the License
   2042 // may not be used to create, or enable the creation or redistribution of,
   2043 // unlawful or unlicensed copies of an Apple operating system, or to
   2044 // circumvent, violate, or enable the circumvention or violation of, any
   2045 // terms of an Apple operating system software license agreement.
   2046 //
   2047 // Please obtain a copy of the License at
   2048 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2049 //
   2050 // The Original Code and all software distributed under the License are
   2051 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2052 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2053 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2054 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2055 // Please see the License for the specific language governing rights and
   2056 // limitations under the License.
   2057 //
   2058 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2059 type Uintptr_t = uint64 /* _uintptr_t.h:30:33 */
   2060 
   2061 // These types are used for reserving the largest possible size.
   2062 type User_addr_t = U_int64_t  /* types.h:97:33 */
   2063 type User_size_t = U_int64_t  /* types.h:98:33 */
   2064 type User_ssize_t = Int64_t   /* types.h:99:33 */
   2065 type User_long_t = Int64_t    /* types.h:100:33 */
   2066 type User_ulong_t = U_int64_t /* types.h:101:33 */
   2067 type User_time_t = Int64_t    /* types.h:102:33 */
   2068 type User_off_t = Int64_t     /* types.h:103:33 */
   2069 
   2070 // This defines the size of syscall arguments after copying into the kernel:
   2071 type Syscall_arg_t = U_int64_t /* types.h:111:33 */
   2072 
   2073 type Socklen_t = X__darwin_socklen_t /* _socklen_t.h:31:33 */
   2074 type Uint64_t = uint64               /* stdint.h:98:25 */
   2075 
   2076 type Int_least64_t = Int64_t   /* stdint.h:110:25 */
   2077 type Uint_least64_t = Uint64_t /* stdint.h:111:26 */
   2078 type Int_fast64_t = Int64_t    /* stdint.h:112:25 */
   2079 type Uint_fast64_t = Uint64_t  /* stdint.h:113:26 */
   2080 
   2081 type Uint32_t = uint32 /* stdint.h:172:25 */
   2082 
   2083 type Int_least32_t = Int32_t   /* stdint.h:184:25 */
   2084 type Uint_least32_t = Uint32_t /* stdint.h:185:26 */
   2085 type Int_fast32_t = Int32_t    /* stdint.h:186:25 */
   2086 type Uint_fast32_t = Uint32_t  /* stdint.h:187:26 */
   2087 type Uint16_t = uint16         /* stdint.h:207:25 */
   2088 
   2089 type Int_least16_t = Int16_t   /* stdint.h:215:25 */
   2090 type Uint_least16_t = Uint16_t /* stdint.h:216:26 */
   2091 type Int_fast16_t = Int16_t    /* stdint.h:217:25 */
   2092 type Uint_fast16_t = Uint16_t  /* stdint.h:218:26 */
   2093 type Uint8_t = uint8           /* stdint.h:226:24 */
   2094 
   2095 type Int_least8_t = Int8_t   /* stdint.h:232:24 */
   2096 type Uint_least8_t = Uint8_t /* stdint.h:233:25 */
   2097 type Int_fast8_t = Int8_t    /* stdint.h:234:24 */
   2098 type Uint_fast8_t = Uint8_t  /* stdint.h:235:25 */
   2099 
   2100 // prevent glibc sys/types.h from defining conflicting types
   2101 
   2102 // C99 7.18.1.4 Integer types capable of holding object pointers.
   2103 
   2104 // C99 7.18.1.5 Greatest-width integer types.
   2105 type Intmax_t = int64   /* stdint.h:262:26 */
   2106 type Uintmax_t = uint64 /* stdint.h:263:26 */
   2107 
   2108 // C99 7.18.4 Macros for minimum-width integer constants.
   2109 //
   2110 // The standard requires that integer constant macros be defined for all the
   2111 // minimum-width types defined above. As 8-, 16-, 32-, and 64-bit minimum-width
   2112 // types are required, the corresponding integer constant macros are defined
   2113 // here. This implementation also defines minimum-width types for every other
   2114 // integer width that the target implements, so corresponding macros are
   2115 // defined below, too.
   2116 //
   2117 // These macros are defined using the same successive-shrinking approach as
   2118 // the type definitions above. It is likewise important that macros are defined
   2119 // in order of decending width.
   2120 //
   2121 // Note that C++ should not check __STDC_CONSTANT_MACROS here, contrary to the
   2122 // claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]).
   2123 
   2124 // C99 7.18.2.1 Limits of exact-width integer types.
   2125 // C99 7.18.2.2 Limits of minimum-width integer types.
   2126 // C99 7.18.2.3 Limits of fastest minimum-width integer types.
   2127 //
   2128 // The presence of limit macros are completely optional in C99.  This
   2129 // implementation defines limits for all of the types (exact- and
   2130 // minimum-width) that it defines above, using the limits of the minimum-width
   2131 // type for any types that do not have exact-width representations.
   2132 //
   2133 // As in the type definitions, this section takes an approach of
   2134 // successive-shrinking to determine which limits to use for the standard (8,
   2135 // 16, 32, 64) bit widths when they don't have exact representations. It is
   2136 // therefore important that the definitions be kept in order of decending
   2137 // widths.
   2138 //
   2139 // Note that C++ should not check __STDC_LIMIT_MACROS here, contrary to the
   2140 // claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]).
   2141 
   2142 // Some utility macros
   2143 
   2144 // C99 7.18.2.4 Limits of integer types capable of holding object pointers.
   2145 // C99 7.18.3 Limits of other integer types.
   2146 
   2147 // ISO9899:2011 7.20 (C11 Annex K): Define RSIZE_MAX if __STDC_WANT_LIB_EXT1__
   2148 // is enabled.
   2149 
   2150 // C99 7.18.2.5 Limits of greatest-width integer types.
   2151 
   2152 // C99 7.18.3 Limits of other integer types.
   2153 
   2154 // 7.18.4.2 Macros for greatest-width integer constants.
   2155 
   2156 // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   2157 //
   2158 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2159 //
   2160 // This file contains Original Code and/or Modifications of Original Code
   2161 // as defined in and that are subject to the Apple Public Source License
   2162 // Version 2.0 (the 'License'). You may not use this file except in
   2163 // compliance with the License. The rights granted to you under the License
   2164 // may not be used to create, or enable the creation or redistribution of,
   2165 // unlawful or unlicensed copies of an Apple operating system, or to
   2166 // circumvent, violate, or enable the circumvention or violation of, any
   2167 // terms of an Apple operating system software license agreement.
   2168 //
   2169 // Please obtain a copy of the License at
   2170 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2171 //
   2172 // The Original Code and all software distributed under the License are
   2173 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2174 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2175 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2176 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2177 // Please see the License for the specific language governing rights and
   2178 // limitations under the License.
   2179 //
   2180 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2181 // Copyright (c) 1982, 1986, 1990, 1993
   2182 //	The Regents of the University of California.  All rights reserved.
   2183 //
   2184 // Redistribution and use in source and binary forms, with or without
   2185 // modification, are permitted provided that the following conditions
   2186 // are met:
   2187 // 1. Redistributions of source code must retain the above copyright
   2188 //    notice, this list of conditions and the following disclaimer.
   2189 // 2. Redistributions in binary form must reproduce the above copyright
   2190 //    notice, this list of conditions and the following disclaimer in the
   2191 //    documentation and/or other materials provided with the distribution.
   2192 // 3. All advertising materials mentioning features or use of this software
   2193 //    must display the following acknowledgement:
   2194 //	This product includes software developed by the University of
   2195 //	California, Berkeley and its contributors.
   2196 // 4. Neither the name of the University nor the names of its contributors
   2197 //    may be used to endorse or promote products derived from this software
   2198 //    without specific prior written permission.
   2199 //
   2200 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   2201 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   2202 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   2203 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   2204 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   2205 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   2206 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   2207 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   2208 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   2209 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   2210 // SUCH DAMAGE.
   2211 //
   2212 //	@(#)in.h	8.3 (Berkeley) 1/3/94
   2213 // $FreeBSD: src/sys/netinet/in.h,v 1.48.2.2 2001/04/21 14:53:06 ume Exp $
   2214 
   2215 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
   2216 //
   2217 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2218 //
   2219 // This file contains Original Code and/or Modifications of Original Code
   2220 // as defined in and that are subject to the Apple Public Source License
   2221 // Version 2.0 (the 'License'). You may not use this file except in
   2222 // compliance with the License. The rights granted to you under the License
   2223 // may not be used to create, or enable the creation or redistribution of,
   2224 // unlawful or unlicensed copies of an Apple operating system, or to
   2225 // circumvent, violate, or enable the circumvention or violation of, any
   2226 // terms of an Apple operating system software license agreement.
   2227 //
   2228 // Please obtain a copy of the License at
   2229 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2230 //
   2231 // The Original Code and all software distributed under the License are
   2232 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2233 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2234 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2235 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2236 // Please see the License for the specific language governing rights and
   2237 // limitations under the License.
   2238 //
   2239 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2240 
   2241 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   2242 //
   2243 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2244 //
   2245 // This file contains Original Code and/or Modifications of Original Code
   2246 // as defined in and that are subject to the Apple Public Source License
   2247 // Version 2.0 (the 'License'). You may not use this file except in
   2248 // compliance with the License. The rights granted to you under the License
   2249 // may not be used to create, or enable the creation or redistribution of,
   2250 // unlawful or unlicensed copies of an Apple operating system, or to
   2251 // circumvent, violate, or enable the circumvention or violation of, any
   2252 // terms of an Apple operating system software license agreement.
   2253 //
   2254 // Please obtain a copy of the License at
   2255 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2256 //
   2257 // The Original Code and all software distributed under the License are
   2258 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2259 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2260 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2261 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2262 // Please see the License for the specific language governing rights and
   2263 // limitations under the License.
   2264 //
   2265 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2266 
   2267 //===---- stdint.h - Standard header for sized integer types --------------===* *
   2268 //  Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
   2269 //  See https://llvm.org/LICENSE.txt for license information.
   2270 //  SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
   2271 //
   2272 // \*===----------------------------------------------------------------------===
   2273 
   2274 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
   2275 //
   2276 // @APPLE_LICENSE_HEADER_START@
   2277 //
   2278 // This file contains Original Code and/or Modifications of Original Code
   2279 // as defined in and that are subject to the Apple Public Source License
   2280 // Version 2.0 (the 'License'). You may not use this file except in
   2281 // compliance with the License. Please obtain a copy of the License at
   2282 // http://www.opensource.apple.com/apsl/ and read it before using this
   2283 // file.
   2284 //
   2285 // The Original Code and all software distributed under the License are
   2286 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2287 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2288 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2289 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2290 // Please see the License for the specific language governing rights and
   2291 // limitations under the License.
   2292 //
   2293 // @APPLE_LICENSE_HEADER_END@
   2294 
   2295 //
   2296 //     These macros are for use in OS header files. They enable function prototypes
   2297 //     and Objective-C methods to be tagged with the OS version in which they
   2298 //     were first available; and, if applicable, the OS version in which they
   2299 //     became deprecated.
   2300 //
   2301 //     The desktop Mac OS X and iOS each have different version numbers.
   2302 //     The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
   2303 //     and iOS version numbers.  For instance:
   2304 //         __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
   2305 //     means the function/method was first available on Mac OS X 10.2 on the desktop
   2306 //     and first available in iOS 2.0 on the iPhone.
   2307 //
   2308 //     If a function is available on one platform, but not the other a _NA (not
   2309 //     applicable) parameter is used.  For instance:
   2310 //             __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
   2311 //     means that the function/method was first available on Mac OS X 10.3, and it
   2312 //     currently not implemented on the iPhone.
   2313 //
   2314 //     At some point, a function/method may be deprecated.  That means Apple
   2315 //     recommends applications stop using the function, either because there is a
   2316 //     better replacement or the functionality is being phased out.  Deprecated
   2317 //     functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
   2318 //     macro which specifies the OS version where the function became available
   2319 //     as well as the OS version in which it became deprecated.  For instance:
   2320 //         __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
   2321 //     means that the function/method was introduced in Mac OS X 10.0, then
   2322 //     became deprecated beginning in Mac OS X 10.5.  On iOS the function
   2323 //     has never been available.
   2324 //
   2325 //     For these macros to function properly, a program must specify the OS version range
   2326 //     it is targeting.  The min OS version is specified as an option to the compiler:
   2327 //     -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
   2328 //     when building for the iPhone.  The upper bound for the OS version is rarely needed,
   2329 //     but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
   2330 //     Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
   2331 //
   2332 //     Examples:
   2333 //
   2334 //         A function available in Mac OS X 10.5 and later, but not on the phone:
   2335 //
   2336 //             extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
   2337 //
   2338 //
   2339 //         An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
   2340 //
   2341 //             @interface MyClass : NSObject
   2342 //             -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
   2343 //             @end
   2344 //
   2345 //
   2346 //         An enum available on the phone, but not available on Mac OS X:
   2347 //
   2348 //             #if __IPHONE_OS_VERSION_MIN_REQUIRED
   2349 //                 enum { myEnum = 1 };
   2350 //             #endif
   2351 //            Note: this works when targeting the Mac OS X platform because
   2352 //            __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
   2353 //
   2354 //
   2355 //         An enum with values added in different iPhoneOS versions:
   2356 //
   2357 // 			enum {
   2358 // 			    myX  = 1,	// Usable on iPhoneOS 2.1 and later
   2359 // 			    myY  = 2,	// Usable on iPhoneOS 3.0 and later
   2360 // 			    myZ  = 3,	// Usable on iPhoneOS 3.0 and later
   2361 // 				...
   2362 // 		      Note: you do not want to use #if with enumeration values
   2363 // 			  when a client needs to see all values at compile time
   2364 // 			  and use runtime logic to only use the viable values.
   2365 //
   2366 //
   2367 //     It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
   2368 //     source base that can be compiled to target a range of OS versions.  It is best
   2369 //     to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
   2370 //     That is because you might get compiled on an old OS that does not define a later
   2371 //     OS version macro, and in the C preprocessor undefined values evaluate to zero
   2372 //     in expresssions, which could cause the #if expression to evaluate in an unexpected
   2373 //     way.
   2374 //
   2375 //         #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
   2376 //             // code only compiled when targeting Mac OS X and not iPhone
   2377 //             // note use of 1050 instead of __MAC_10_5
   2378 //             #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
   2379 //                 // code in here might run on pre-Leopard OS
   2380 //             #else
   2381 //                 // code here can assume Leopard or later
   2382 //             #endif
   2383 //         #endif
   2384 //
   2385 //
   2386 
   2387 // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
   2388 // in an upcoming release. This soft deprecation is an intermediate step before formal
   2389 // deprecation to notify developers about the API before compiler warnings are generated.
   2390 // You can find all places in your code that use soft deprecated API by redefining the
   2391 // value of this macro to your current minimum deployment target, for example:
   2392 // (macOS)
   2393 //   clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
   2394 // (iOS)
   2395 //   clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
   2396 
   2397 // __MAC_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
   2398 
   2399 // __IPHONE_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
   2400 
   2401 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
   2402 //
   2403 // @APPLE_LICENSE_HEADER_START@
   2404 //
   2405 // This file contains Original Code and/or Modifications of Original Code
   2406 // as defined in and that are subject to the Apple Public Source License
   2407 // Version 2.0 (the 'License'). You may not use this file except in
   2408 // compliance with the License. Please obtain a copy of the License at
   2409 // http://www.opensource.apple.com/apsl/ and read it before using this
   2410 // file.
   2411 //
   2412 // The Original Code and all software distributed under the License are
   2413 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2414 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2415 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2416 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2417 // Please see the License for the specific language governing rights and
   2418 // limitations under the License.
   2419 //
   2420 // @APPLE_LICENSE_HEADER_END@
   2421 
   2422 //
   2423 //     File:       AvailabilityInternal.h
   2424 //
   2425 //     Contains:   implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
   2426 //
   2427 
   2428 // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
   2429 
   2430 // make sure a default max version is set
   2431 
   2432 //
   2433 //  Macros for defining which versions/platform a given symbol can be used.
   2434 //
   2435 //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
   2436 //
   2437 
   2438 // Evaluate to nothing for compilers that don't support availability.
   2439 
   2440 // Swift compiler version
   2441 // Allows for project-agnostic “epochs” for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
   2442 // Example:
   2443 //
   2444 //  #if __swift_compiler_version_at_least(800, 2, 20)
   2445 //  - (nonnull NSString *)description;
   2446 //  #else
   2447 //  - (NSString *)description;
   2448 //  #endif
   2449 
   2450 // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
   2451 
   2452 // for use to document app extension usage
   2453 
   2454 // for use marking APIs available info for Mac OSX
   2455 
   2456 // for use marking APIs available info for iOS
   2457 
   2458 // for use marking APIs available info for tvOS
   2459 
   2460 // for use marking APIs available info for Watch OS
   2461 
   2462 // for use marking APIs unavailable for swift
   2463 
   2464 //
   2465 //  Macros for defining which versions/platform a given symbol can be used.
   2466 //
   2467 //  @see http://clang.llvm.org/docs/AttributeReference.html#availability
   2468 //
   2469 //  * Note that these macros are only compatible with clang compilers that
   2470 //  * support the following target selection options:
   2471 //  *
   2472 //  * -mmacosx-version-min
   2473 //  * -miphoneos-version-min
   2474 //  * -mwatchos-version-min
   2475 //  * -mtvos-version-min
   2476 //
   2477 
   2478 // Evaluate to nothing for compilers that don't support availability.
   2479 
   2480 // If SPI decorations have not been defined elsewhere, disable them.
   2481 
   2482 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   2483 //
   2484 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2485 //
   2486 // This file contains Original Code and/or Modifications of Original Code
   2487 // as defined in and that are subject to the Apple Public Source License
   2488 // Version 2.0 (the 'License'). You may not use this file except in
   2489 // compliance with the License. The rights granted to you under the License
   2490 // may not be used to create, or enable the creation or redistribution of,
   2491 // unlawful or unlicensed copies of an Apple operating system, or to
   2492 // circumvent, violate, or enable the circumvention or violation of, any
   2493 // terms of an Apple operating system software license agreement.
   2494 //
   2495 // Please obtain a copy of the License at
   2496 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2497 //
   2498 // The Original Code and all software distributed under the License are
   2499 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2500 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2501 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2502 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2503 // Please see the License for the specific language governing rights and
   2504 // limitations under the License.
   2505 //
   2506 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2507 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   2508 //
   2509 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2510 //
   2511 // This file contains Original Code and/or Modifications of Original Code
   2512 // as defined in and that are subject to the Apple Public Source License
   2513 // Version 2.0 (the 'License'). You may not use this file except in
   2514 // compliance with the License. The rights granted to you under the License
   2515 // may not be used to create, or enable the creation or redistribution of,
   2516 // unlawful or unlicensed copies of an Apple operating system, or to
   2517 // circumvent, violate, or enable the circumvention or violation of, any
   2518 // terms of an Apple operating system software license agreement.
   2519 //
   2520 // Please obtain a copy of the License at
   2521 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2522 //
   2523 // The Original Code and all software distributed under the License are
   2524 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2525 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2526 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2527 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2528 // Please see the License for the specific language governing rights and
   2529 // limitations under the License.
   2530 //
   2531 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2532 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   2533 type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address
   2534 
   2535 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   2536 //
   2537 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2538 //
   2539 // This file contains Original Code and/or Modifications of Original Code
   2540 // as defined in and that are subject to the Apple Public Source License
   2541 // Version 2.0 (the 'License'). You may not use this file except in
   2542 // compliance with the License. The rights granted to you under the License
   2543 // may not be used to create, or enable the creation or redistribution of,
   2544 // unlawful or unlicensed copies of an Apple operating system, or to
   2545 // circumvent, violate, or enable the circumvention or violation of, any
   2546 // terms of an Apple operating system software license agreement.
   2547 //
   2548 // Please obtain a copy of the License at
   2549 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2550 //
   2551 // The Original Code and all software distributed under the License are
   2552 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2553 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2554 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2555 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2556 // Please see the License for the specific language governing rights and
   2557 // limitations under the License.
   2558 //
   2559 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2560 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   2561 //
   2562 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2563 //
   2564 // This file contains Original Code and/or Modifications of Original Code
   2565 // as defined in and that are subject to the Apple Public Source License
   2566 // Version 2.0 (the 'License'). You may not use this file except in
   2567 // compliance with the License. The rights granted to you under the License
   2568 // may not be used to create, or enable the creation or redistribution of,
   2569 // unlawful or unlicensed copies of an Apple operating system, or to
   2570 // circumvent, violate, or enable the circumvention or violation of, any
   2571 // terms of an Apple operating system software license agreement.
   2572 //
   2573 // Please obtain a copy of the License at
   2574 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2575 //
   2576 // The Original Code and all software distributed under the License are
   2577 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2578 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2579 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2580 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2581 // Please see the License for the specific language governing rights and
   2582 // limitations under the License.
   2583 //
   2584 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2585 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   2586 type In_port_t = X__uint16_t /* _in_port_t.h:31:33 */
   2587 
   2588 // Copyright (c) 2017 Apple Inc. All rights reserved.
   2589 //
   2590 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2591 //
   2592 // This file contains Original Code and/or Modifications of Original Code
   2593 // as defined in and that are subject to the Apple Public Source License
   2594 // Version 2.0 (the 'License'). You may not use this file except in
   2595 // compliance with the License. The rights granted to you under the License
   2596 // may not be used to create, or enable the creation or redistribution of,
   2597 // unlawful or unlicensed copies of an Apple operating system, or to
   2598 // circumvent, violate, or enable the circumvention or violation of, any
   2599 // terms of an Apple operating system software license agreement.
   2600 //
   2601 // Please obtain a copy of the License at
   2602 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2603 //
   2604 // The Original Code and all software distributed under the License are
   2605 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2606 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2607 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2608 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2609 // Please see the License for the specific language governing rights and
   2610 // limitations under the License.
   2611 //
   2612 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2613 type U_char = uint8 /* _u_char.h:30:25 */
   2614 // Copyright (c) 2017 Apple Inc. All rights reserved.
   2615 //
   2616 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2617 //
   2618 // This file contains Original Code and/or Modifications of Original Code
   2619 // as defined in and that are subject to the Apple Public Source License
   2620 // Version 2.0 (the 'License'). You may not use this file except in
   2621 // compliance with the License. The rights granted to you under the License
   2622 // may not be used to create, or enable the creation or redistribution of,
   2623 // unlawful or unlicensed copies of an Apple operating system, or to
   2624 // circumvent, violate, or enable the circumvention or violation of, any
   2625 // terms of an Apple operating system software license agreement.
   2626 //
   2627 // Please obtain a copy of the License at
   2628 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2629 //
   2630 // The Original Code and all software distributed under the License are
   2631 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2632 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2633 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2634 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2635 // Please see the License for the specific language governing rights and
   2636 // limitations under the License.
   2637 //
   2638 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2639 type U_short = uint16 /* _u_short.h:30:25 */
   2640 // Copyright (c) 2017 Apple Inc. All rights reserved.
   2641 //
   2642 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2643 //
   2644 // This file contains Original Code and/or Modifications of Original Code
   2645 // as defined in and that are subject to the Apple Public Source License
   2646 // Version 2.0 (the 'License'). You may not use this file except in
   2647 // compliance with the License. The rights granted to you under the License
   2648 // may not be used to create, or enable the creation or redistribution of,
   2649 // unlawful or unlicensed copies of an Apple operating system, or to
   2650 // circumvent, violate, or enable the circumvention or violation of, any
   2651 // terms of an Apple operating system software license agreement.
   2652 //
   2653 // Please obtain a copy of the License at
   2654 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2655 //
   2656 // The Original Code and all software distributed under the License are
   2657 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2658 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2659 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2660 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2661 // Please see the License for the specific language governing rights and
   2662 // limitations under the License.
   2663 //
   2664 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2665 type U_int = uint32  /* _u_int.h:30:25 */
   2666 type U_long = uint64 /* types.h:88:33 */
   2667 type Ushort = uint16 /* types.h:91:33 */ // Sys V compatibility
   2668 type Uint = uint32   /* types.h:92:33 */ // Sys V compatibility
   2669 
   2670 type U_quad_t = U_int64_t /* types.h:95:33 */ // quads
   2671 type Quad_t = Int64_t     /* types.h:96:33 */
   2672 type Qaddr_t = uintptr    /* types.h:97:16 */
   2673 
   2674 // Copyright (c) 2017 Apple Inc. All rights reserved.
   2675 //
   2676 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2677 //
   2678 // This file contains Original Code and/or Modifications of Original Code
   2679 // as defined in and that are subject to the Apple Public Source License
   2680 // Version 2.0 (the 'License'). You may not use this file except in
   2681 // compliance with the License. The rights granted to you under the License
   2682 // may not be used to create, or enable the creation or redistribution of,
   2683 // unlawful or unlicensed copies of an Apple operating system, or to
   2684 // circumvent, violate, or enable the circumvention or violation of, any
   2685 // terms of an Apple operating system software license agreement.
   2686 //
   2687 // Please obtain a copy of the License at
   2688 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2689 //
   2690 // The Original Code and all software distributed under the License are
   2691 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2692 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2693 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2694 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2695 // Please see the License for the specific language governing rights and
   2696 // limitations under the License.
   2697 //
   2698 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2699 type Caddr_t = uintptr /* _caddr_t.h:30:14 */
   2700 
   2701 type Daddr_t = Int32_t /* types.h:101:33 */ // disk address
   2702 
   2703 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   2704 //
   2705 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2706 //
   2707 // This file contains Original Code and/or Modifications of Original Code
   2708 // as defined in and that are subject to the Apple Public Source License
   2709 // Version 2.0 (the 'License'). You may not use this file except in
   2710 // compliance with the License. The rights granted to you under the License
   2711 // may not be used to create, or enable the creation or redistribution of,
   2712 // unlawful or unlicensed copies of an Apple operating system, or to
   2713 // circumvent, violate, or enable the circumvention or violation of, any
   2714 // terms of an Apple operating system software license agreement.
   2715 //
   2716 // Please obtain a copy of the License at
   2717 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2718 //
   2719 // The Original Code and all software distributed under the License are
   2720 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2721 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2722 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2723 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2724 // Please see the License for the specific language governing rights and
   2725 // limitations under the License.
   2726 //
   2727 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2728 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   2729 //
   2730 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2731 //
   2732 // This file contains Original Code and/or Modifications of Original Code
   2733 // as defined in and that are subject to the Apple Public Source License
   2734 // Version 2.0 (the 'License'). You may not use this file except in
   2735 // compliance with the License. The rights granted to you under the License
   2736 // may not be used to create, or enable the creation or redistribution of,
   2737 // unlawful or unlicensed copies of an Apple operating system, or to
   2738 // circumvent, violate, or enable the circumvention or violation of, any
   2739 // terms of an Apple operating system software license agreement.
   2740 //
   2741 // Please obtain a copy of the License at
   2742 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2743 //
   2744 // The Original Code and all software distributed under the License are
   2745 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2746 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2747 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2748 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2749 // Please see the License for the specific language governing rights and
   2750 // limitations under the License.
   2751 //
   2752 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2753 
   2754 type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number
   2755 
   2756 type Fixpt_t = U_int32_t /* types.h:105:33 */ // fixed point number
   2757 
   2758 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   2759 //
   2760 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2761 //
   2762 // This file contains Original Code and/or Modifications of Original Code
   2763 // as defined in and that are subject to the Apple Public Source License
   2764 // Version 2.0 (the 'License'). You may not use this file except in
   2765 // compliance with the License. The rights granted to you under the License
   2766 // may not be used to create, or enable the creation or redistribution of,
   2767 // unlawful or unlicensed copies of an Apple operating system, or to
   2768 // circumvent, violate, or enable the circumvention or violation of, any
   2769 // terms of an Apple operating system software license agreement.
   2770 //
   2771 // Please obtain a copy of the License at
   2772 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2773 //
   2774 // The Original Code and all software distributed under the License are
   2775 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2776 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2777 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2778 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2779 // Please see the License for the specific language governing rights and
   2780 // limitations under the License.
   2781 //
   2782 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2783 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   2784 //
   2785 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2786 //
   2787 // This file contains Original Code and/or Modifications of Original Code
   2788 // as defined in and that are subject to the Apple Public Source License
   2789 // Version 2.0 (the 'License'). You may not use this file except in
   2790 // compliance with the License. The rights granted to you under the License
   2791 // may not be used to create, or enable the creation or redistribution of,
   2792 // unlawful or unlicensed copies of an Apple operating system, or to
   2793 // circumvent, violate, or enable the circumvention or violation of, any
   2794 // terms of an Apple operating system software license agreement.
   2795 //
   2796 // Please obtain a copy of the License at
   2797 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2798 //
   2799 // The Original Code and all software distributed under the License are
   2800 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2801 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2802 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2803 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2804 // Please see the License for the specific language governing rights and
   2805 // limitations under the License.
   2806 //
   2807 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2808 
   2809 type Blkcnt_t = X__darwin_blkcnt_t /* _blkcnt_t.h:31:34 */
   2810 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   2811 //
   2812 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2813 //
   2814 // This file contains Original Code and/or Modifications of Original Code
   2815 // as defined in and that are subject to the Apple Public Source License
   2816 // Version 2.0 (the 'License'). You may not use this file except in
   2817 // compliance with the License. The rights granted to you under the License
   2818 // may not be used to create, or enable the creation or redistribution of,
   2819 // unlawful or unlicensed copies of an Apple operating system, or to
   2820 // circumvent, violate, or enable the circumvention or violation of, any
   2821 // terms of an Apple operating system software license agreement.
   2822 //
   2823 // Please obtain a copy of the License at
   2824 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2825 //
   2826 // The Original Code and all software distributed under the License are
   2827 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2828 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2829 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2830 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2831 // Please see the License for the specific language governing rights and
   2832 // limitations under the License.
   2833 //
   2834 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2835 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   2836 //
   2837 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2838 //
   2839 // This file contains Original Code and/or Modifications of Original Code
   2840 // as defined in and that are subject to the Apple Public Source License
   2841 // Version 2.0 (the 'License'). You may not use this file except in
   2842 // compliance with the License. The rights granted to you under the License
   2843 // may not be used to create, or enable the creation or redistribution of,
   2844 // unlawful or unlicensed copies of an Apple operating system, or to
   2845 // circumvent, violate, or enable the circumvention or violation of, any
   2846 // terms of an Apple operating system software license agreement.
   2847 //
   2848 // Please obtain a copy of the License at
   2849 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2850 //
   2851 // The Original Code and all software distributed under the License are
   2852 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2853 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2854 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2855 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2856 // Please see the License for the specific language governing rights and
   2857 // limitations under the License.
   2858 //
   2859 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2860 
   2861 type Blksize_t = X__darwin_blksize_t /* _blksize_t.h:31:35 */
   2862 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   2863 //
   2864 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2865 //
   2866 // This file contains Original Code and/or Modifications of Original Code
   2867 // as defined in and that are subject to the Apple Public Source License
   2868 // Version 2.0 (the 'License'). You may not use this file except in
   2869 // compliance with the License. The rights granted to you under the License
   2870 // may not be used to create, or enable the creation or redistribution of,
   2871 // unlawful or unlicensed copies of an Apple operating system, or to
   2872 // circumvent, violate, or enable the circumvention or violation of, any
   2873 // terms of an Apple operating system software license agreement.
   2874 //
   2875 // Please obtain a copy of the License at
   2876 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2877 //
   2878 // The Original Code and all software distributed under the License are
   2879 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2880 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2881 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2882 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2883 // Please see the License for the specific language governing rights and
   2884 // limitations under the License.
   2885 //
   2886 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2887 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   2888 //
   2889 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2890 //
   2891 // This file contains Original Code and/or Modifications of Original Code
   2892 // as defined in and that are subject to the Apple Public Source License
   2893 // Version 2.0 (the 'License'). You may not use this file except in
   2894 // compliance with the License. The rights granted to you under the License
   2895 // may not be used to create, or enable the creation or redistribution of,
   2896 // unlawful or unlicensed copies of an Apple operating system, or to
   2897 // circumvent, violate, or enable the circumvention or violation of, any
   2898 // terms of an Apple operating system software license agreement.
   2899 //
   2900 // Please obtain a copy of the License at
   2901 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2902 //
   2903 // The Original Code and all software distributed under the License are
   2904 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2905 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2906 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2907 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2908 // Please see the License for the specific language governing rights and
   2909 // limitations under the License.
   2910 //
   2911 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2912 
   2913 type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
   2914 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   2915 //
   2916 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2917 //
   2918 // This file contains Original Code and/or Modifications of Original Code
   2919 // as defined in and that are subject to the Apple Public Source License
   2920 // Version 2.0 (the 'License'). You may not use this file except in
   2921 // compliance with the License. The rights granted to you under the License
   2922 // may not be used to create, or enable the creation or redistribution of,
   2923 // unlawful or unlicensed copies of an Apple operating system, or to
   2924 // circumvent, violate, or enable the circumvention or violation of, any
   2925 // terms of an Apple operating system software license agreement.
   2926 //
   2927 // Please obtain a copy of the License at
   2928 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2929 //
   2930 // The Original Code and all software distributed under the License are
   2931 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2932 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2933 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2934 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2935 // Please see the License for the specific language governing rights and
   2936 // limitations under the License.
   2937 //
   2938 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2939 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   2940 //
   2941 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2942 //
   2943 // This file contains Original Code and/or Modifications of Original Code
   2944 // as defined in and that are subject to the Apple Public Source License
   2945 // Version 2.0 (the 'License'). You may not use this file except in
   2946 // compliance with the License. The rights granted to you under the License
   2947 // may not be used to create, or enable the creation or redistribution of,
   2948 // unlawful or unlicensed copies of an Apple operating system, or to
   2949 // circumvent, violate, or enable the circumvention or violation of, any
   2950 // terms of an Apple operating system software license agreement.
   2951 //
   2952 // Please obtain a copy of the License at
   2953 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2954 //
   2955 // The Original Code and all software distributed under the License are
   2956 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2957 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2958 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2959 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2960 // Please see the License for the specific language governing rights and
   2961 // limitations under the License.
   2962 //
   2963 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2964 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   2965 //
   2966 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2967 //
   2968 // This file contains Original Code and/or Modifications of Original Code
   2969 // as defined in and that are subject to the Apple Public Source License
   2970 // Version 2.0 (the 'License'). You may not use this file except in
   2971 // compliance with the License. The rights granted to you under the License
   2972 // may not be used to create, or enable the creation or redistribution of,
   2973 // unlawful or unlicensed copies of an Apple operating system, or to
   2974 // circumvent, violate, or enable the circumvention or violation of, any
   2975 // terms of an Apple operating system software license agreement.
   2976 //
   2977 // Please obtain a copy of the License at
   2978 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   2979 //
   2980 // The Original Code and all software distributed under the License are
   2981 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   2982 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   2983 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   2984 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   2985 // Please see the License for the specific language governing rights and
   2986 // limitations under the License.
   2987 //
   2988 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   2989 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   2990 //
   2991 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   2992 //
   2993 // This file contains Original Code and/or Modifications of Original Code
   2994 // as defined in and that are subject to the Apple Public Source License
   2995 // Version 2.0 (the 'License'). You may not use this file except in
   2996 // compliance with the License. The rights granted to you under the License
   2997 // may not be used to create, or enable the creation or redistribution of,
   2998 // unlawful or unlicensed copies of an Apple operating system, or to
   2999 // circumvent, violate, or enable the circumvention or violation of, any
   3000 // terms of an Apple operating system software license agreement.
   3001 //
   3002 // Please obtain a copy of the License at
   3003 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3004 //
   3005 // The Original Code and all software distributed under the License are
   3006 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3007 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3008 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3009 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3010 // Please see the License for the specific language governing rights and
   3011 // limitations under the License.
   3012 //
   3013 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3014 
   3015 type Ino_t = X__darwin_ino_t /* _ino_t.h:31:33 */ // inode number
   3016 
   3017 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3018 //
   3019 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3020 //
   3021 // This file contains Original Code and/or Modifications of Original Code
   3022 // as defined in and that are subject to the Apple Public Source License
   3023 // Version 2.0 (the 'License'). You may not use this file except in
   3024 // compliance with the License. The rights granted to you under the License
   3025 // may not be used to create, or enable the creation or redistribution of,
   3026 // unlawful or unlicensed copies of an Apple operating system, or to
   3027 // circumvent, violate, or enable the circumvention or violation of, any
   3028 // terms of an Apple operating system software license agreement.
   3029 //
   3030 // Please obtain a copy of the License at
   3031 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3032 //
   3033 // The Original Code and all software distributed under the License are
   3034 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3035 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3036 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3037 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3038 // Please see the License for the specific language governing rights and
   3039 // limitations under the License.
   3040 //
   3041 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3042 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   3043 //
   3044 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3045 //
   3046 // This file contains Original Code and/or Modifications of Original Code
   3047 // as defined in and that are subject to the Apple Public Source License
   3048 // Version 2.0 (the 'License'). You may not use this file except in
   3049 // compliance with the License. The rights granted to you under the License
   3050 // may not be used to create, or enable the creation or redistribution of,
   3051 // unlawful or unlicensed copies of an Apple operating system, or to
   3052 // circumvent, violate, or enable the circumvention or violation of, any
   3053 // terms of an Apple operating system software license agreement.
   3054 //
   3055 // Please obtain a copy of the License at
   3056 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3057 //
   3058 // The Original Code and all software distributed under the License are
   3059 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3060 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3061 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3062 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3063 // Please see the License for the specific language governing rights and
   3064 // limitations under the License.
   3065 //
   3066 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3067 
   3068 type Ino64_t = X__darwin_ino64_t /* _ino64_t.h:31:33 */ // 64bit inode number
   3069 
   3070 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3071 //
   3072 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3073 //
   3074 // This file contains Original Code and/or Modifications of Original Code
   3075 // as defined in and that are subject to the Apple Public Source License
   3076 // Version 2.0 (the 'License'). You may not use this file except in
   3077 // compliance with the License. The rights granted to you under the License
   3078 // may not be used to create, or enable the creation or redistribution of,
   3079 // unlawful or unlicensed copies of an Apple operating system, or to
   3080 // circumvent, violate, or enable the circumvention or violation of, any
   3081 // terms of an Apple operating system software license agreement.
   3082 //
   3083 // Please obtain a copy of the License at
   3084 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3085 //
   3086 // The Original Code and all software distributed under the License are
   3087 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3088 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3089 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3090 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3091 // Please see the License for the specific language governing rights and
   3092 // limitations under the License.
   3093 //
   3094 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3095 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   3096 //
   3097 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3098 //
   3099 // This file contains Original Code and/or Modifications of Original Code
   3100 // as defined in and that are subject to the Apple Public Source License
   3101 // Version 2.0 (the 'License'). You may not use this file except in
   3102 // compliance with the License. The rights granted to you under the License
   3103 // may not be used to create, or enable the creation or redistribution of,
   3104 // unlawful or unlicensed copies of an Apple operating system, or to
   3105 // circumvent, violate, or enable the circumvention or violation of, any
   3106 // terms of an Apple operating system software license agreement.
   3107 //
   3108 // Please obtain a copy of the License at
   3109 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3110 //
   3111 // The Original Code and all software distributed under the License are
   3112 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3113 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3114 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3115 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3116 // Please see the License for the specific language governing rights and
   3117 // limitations under the License.
   3118 //
   3119 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3120 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   3121 type Key_t = X__int32_t /* _key_t.h:31:26 */ // IPC key (for Sys V IPC)
   3122 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3123 //
   3124 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3125 //
   3126 // This file contains Original Code and/or Modifications of Original Code
   3127 // as defined in and that are subject to the Apple Public Source License
   3128 // Version 2.0 (the 'License'). You may not use this file except in
   3129 // compliance with the License. The rights granted to you under the License
   3130 // may not be used to create, or enable the creation or redistribution of,
   3131 // unlawful or unlicensed copies of an Apple operating system, or to
   3132 // circumvent, violate, or enable the circumvention or violation of, any
   3133 // terms of an Apple operating system software license agreement.
   3134 //
   3135 // Please obtain a copy of the License at
   3136 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3137 //
   3138 // The Original Code and all software distributed under the License are
   3139 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3140 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3141 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3142 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3143 // Please see the License for the specific language governing rights and
   3144 // limitations under the License.
   3145 //
   3146 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3147 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   3148 //
   3149 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3150 //
   3151 // This file contains Original Code and/or Modifications of Original Code
   3152 // as defined in and that are subject to the Apple Public Source License
   3153 // Version 2.0 (the 'License'). You may not use this file except in
   3154 // compliance with the License. The rights granted to you under the License
   3155 // may not be used to create, or enable the creation or redistribution of,
   3156 // unlawful or unlicensed copies of an Apple operating system, or to
   3157 // circumvent, violate, or enable the circumvention or violation of, any
   3158 // terms of an Apple operating system software license agreement.
   3159 //
   3160 // Please obtain a copy of the License at
   3161 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3162 //
   3163 // The Original Code and all software distributed under the License are
   3164 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3165 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3166 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3167 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3168 // Please see the License for the specific language governing rights and
   3169 // limitations under the License.
   3170 //
   3171 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3172 
   3173 type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */
   3174 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3175 //
   3176 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3177 //
   3178 // This file contains Original Code and/or Modifications of Original Code
   3179 // as defined in and that are subject to the Apple Public Source License
   3180 // Version 2.0 (the 'License'). You may not use this file except in
   3181 // compliance with the License. The rights granted to you under the License
   3182 // may not be used to create, or enable the creation or redistribution of,
   3183 // unlawful or unlicensed copies of an Apple operating system, or to
   3184 // circumvent, violate, or enable the circumvention or violation of, any
   3185 // terms of an Apple operating system software license agreement.
   3186 //
   3187 // Please obtain a copy of the License at
   3188 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3189 //
   3190 // The Original Code and all software distributed under the License are
   3191 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3192 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3193 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3194 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3195 // Please see the License for the specific language governing rights and
   3196 // limitations under the License.
   3197 //
   3198 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3199 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   3200 //
   3201 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3202 //
   3203 // This file contains Original Code and/or Modifications of Original Code
   3204 // as defined in and that are subject to the Apple Public Source License
   3205 // Version 2.0 (the 'License'). You may not use this file except in
   3206 // compliance with the License. The rights granted to you under the License
   3207 // may not be used to create, or enable the creation or redistribution of,
   3208 // unlawful or unlicensed copies of an Apple operating system, or to
   3209 // circumvent, violate, or enable the circumvention or violation of, any
   3210 // terms of an Apple operating system software license agreement.
   3211 //
   3212 // Please obtain a copy of the License at
   3213 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3214 //
   3215 // The Original Code and all software distributed under the License are
   3216 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3217 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3218 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3219 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3220 // Please see the License for the specific language governing rights and
   3221 // limitations under the License.
   3222 //
   3223 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3224 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   3225 type Nlink_t = X__uint16_t /* _nlink_t.h:31:27 */ // link count
   3226 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3227 //
   3228 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3229 //
   3230 // This file contains Original Code and/or Modifications of Original Code
   3231 // as defined in and that are subject to the Apple Public Source License
   3232 // Version 2.0 (the 'License'). You may not use this file except in
   3233 // compliance with the License. The rights granted to you under the License
   3234 // may not be used to create, or enable the creation or redistribution of,
   3235 // unlawful or unlicensed copies of an Apple operating system, or to
   3236 // circumvent, violate, or enable the circumvention or violation of, any
   3237 // terms of an Apple operating system software license agreement.
   3238 //
   3239 // Please obtain a copy of the License at
   3240 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3241 //
   3242 // The Original Code and all software distributed under the License are
   3243 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3244 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3245 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3246 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3247 // Please see the License for the specific language governing rights and
   3248 // limitations under the License.
   3249 //
   3250 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3251 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   3252 //
   3253 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3254 //
   3255 // This file contains Original Code and/or Modifications of Original Code
   3256 // as defined in and that are subject to the Apple Public Source License
   3257 // Version 2.0 (the 'License'). You may not use this file except in
   3258 // compliance with the License. The rights granted to you under the License
   3259 // may not be used to create, or enable the creation or redistribution of,
   3260 // unlawful or unlicensed copies of an Apple operating system, or to
   3261 // circumvent, violate, or enable the circumvention or violation of, any
   3262 // terms of an Apple operating system software license agreement.
   3263 //
   3264 // Please obtain a copy of the License at
   3265 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3266 //
   3267 // The Original Code and all software distributed under the License are
   3268 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3269 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3270 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3271 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3272 // Please see the License for the specific language governing rights and
   3273 // limitations under the License.
   3274 //
   3275 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3276 
   3277 type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t
   3278 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3279 //
   3280 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3281 //
   3282 // This file contains Original Code and/or Modifications of Original Code
   3283 // as defined in and that are subject to the Apple Public Source License
   3284 // Version 2.0 (the 'License'). You may not use this file except in
   3285 // compliance with the License. The rights granted to you under the License
   3286 // may not be used to create, or enable the creation or redistribution of,
   3287 // unlawful or unlicensed copies of an Apple operating system, or to
   3288 // circumvent, violate, or enable the circumvention or violation of, any
   3289 // terms of an Apple operating system software license agreement.
   3290 //
   3291 // Please obtain a copy of the License at
   3292 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3293 //
   3294 // The Original Code and all software distributed under the License are
   3295 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3296 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3297 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3298 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3299 // Please see the License for the specific language governing rights and
   3300 // limitations under the License.
   3301 //
   3302 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3303 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   3304 //
   3305 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3306 //
   3307 // This file contains Original Code and/or Modifications of Original Code
   3308 // as defined in and that are subject to the Apple Public Source License
   3309 // Version 2.0 (the 'License'). You may not use this file except in
   3310 // compliance with the License. The rights granted to you under the License
   3311 // may not be used to create, or enable the creation or redistribution of,
   3312 // unlawful or unlicensed copies of an Apple operating system, or to
   3313 // circumvent, violate, or enable the circumvention or violation of, any
   3314 // terms of an Apple operating system software license agreement.
   3315 //
   3316 // Please obtain a copy of the License at
   3317 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3318 //
   3319 // The Original Code and all software distributed under the License are
   3320 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3321 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3322 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3323 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3324 // Please see the License for the specific language governing rights and
   3325 // limitations under the License.
   3326 //
   3327 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3328 
   3329 type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */
   3330 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3331 //
   3332 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3333 //
   3334 // This file contains Original Code and/or Modifications of Original Code
   3335 // as defined in and that are subject to the Apple Public Source License
   3336 // Version 2.0 (the 'License'). You may not use this file except in
   3337 // compliance with the License. The rights granted to you under the License
   3338 // may not be used to create, or enable the creation or redistribution of,
   3339 // unlawful or unlicensed copies of an Apple operating system, or to
   3340 // circumvent, violate, or enable the circumvention or violation of, any
   3341 // terms of an Apple operating system software license agreement.
   3342 //
   3343 // Please obtain a copy of the License at
   3344 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3345 //
   3346 // The Original Code and all software distributed under the License are
   3347 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3348 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3349 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3350 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3351 // Please see the License for the specific language governing rights and
   3352 // limitations under the License.
   3353 //
   3354 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3355 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   3356 //
   3357 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3358 //
   3359 // This file contains Original Code and/or Modifications of Original Code
   3360 // as defined in and that are subject to the Apple Public Source License
   3361 // Version 2.0 (the 'License'). You may not use this file except in
   3362 // compliance with the License. The rights granted to you under the License
   3363 // may not be used to create, or enable the creation or redistribution of,
   3364 // unlawful or unlicensed copies of an Apple operating system, or to
   3365 // circumvent, violate, or enable the circumvention or violation of, any
   3366 // terms of an Apple operating system software license agreement.
   3367 //
   3368 // Please obtain a copy of the License at
   3369 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3370 //
   3371 // The Original Code and all software distributed under the License are
   3372 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3373 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3374 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3375 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3376 // Please see the License for the specific language governing rights and
   3377 // limitations under the License.
   3378 //
   3379 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3380 
   3381 type Off_t = X__darwin_off_t /* _off_t.h:31:33 */
   3382 
   3383 type Segsz_t = Int32_t /* types.h:125:33 */ // segment size
   3384 type Swblk_t = Int32_t /* types.h:126:33 */ // swap offset
   3385 
   3386 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3387 //
   3388 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3389 //
   3390 // This file contains Original Code and/or Modifications of Original Code
   3391 // as defined in and that are subject to the Apple Public Source License
   3392 // Version 2.0 (the 'License'). You may not use this file except in
   3393 // compliance with the License. The rights granted to you under the License
   3394 // may not be used to create, or enable the creation or redistribution of,
   3395 // unlawful or unlicensed copies of an Apple operating system, or to
   3396 // circumvent, violate, or enable the circumvention or violation of, any
   3397 // terms of an Apple operating system software license agreement.
   3398 //
   3399 // Please obtain a copy of the License at
   3400 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3401 //
   3402 // The Original Code and all software distributed under the License are
   3403 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3404 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3405 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3406 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3407 // Please see the License for the specific language governing rights and
   3408 // limitations under the License.
   3409 //
   3410 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3411 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   3412 //
   3413 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3414 //
   3415 // This file contains Original Code and/or Modifications of Original Code
   3416 // as defined in and that are subject to the Apple Public Source License
   3417 // Version 2.0 (the 'License'). You may not use this file except in
   3418 // compliance with the License. The rights granted to you under the License
   3419 // may not be used to create, or enable the creation or redistribution of,
   3420 // unlawful or unlicensed copies of an Apple operating system, or to
   3421 // circumvent, violate, or enable the circumvention or violation of, any
   3422 // terms of an Apple operating system software license agreement.
   3423 //
   3424 // Please obtain a copy of the License at
   3425 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3426 //
   3427 // The Original Code and all software distributed under the License are
   3428 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3429 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3430 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3431 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3432 // Please see the License for the specific language governing rights and
   3433 // limitations under the License.
   3434 //
   3435 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3436 
   3437 type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
   3438 
   3439 // Major, minor numbers, dev_t's.
   3440 
   3441 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3442 //
   3443 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3444 //
   3445 // This file contains Original Code and/or Modifications of Original Code
   3446 // as defined in and that are subject to the Apple Public Source License
   3447 // Version 2.0 (the 'License'). You may not use this file except in
   3448 // compliance with the License. The rights granted to you under the License
   3449 // may not be used to create, or enable the creation or redistribution of,
   3450 // unlawful or unlicensed copies of an Apple operating system, or to
   3451 // circumvent, violate, or enable the circumvention or violation of, any
   3452 // terms of an Apple operating system software license agreement.
   3453 //
   3454 // Please obtain a copy of the License at
   3455 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3456 //
   3457 // The Original Code and all software distributed under the License are
   3458 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3459 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3460 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3461 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3462 // Please see the License for the specific language governing rights and
   3463 // limitations under the License.
   3464 //
   3465 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3466 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   3467 //
   3468 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3469 //
   3470 // This file contains Original Code and/or Modifications of Original Code
   3471 // as defined in and that are subject to the Apple Public Source License
   3472 // Version 2.0 (the 'License'). You may not use this file except in
   3473 // compliance with the License. The rights granted to you under the License
   3474 // may not be used to create, or enable the creation or redistribution of,
   3475 // unlawful or unlicensed copies of an Apple operating system, or to
   3476 // circumvent, violate, or enable the circumvention or violation of, any
   3477 // terms of an Apple operating system software license agreement.
   3478 //
   3479 // Please obtain a copy of the License at
   3480 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3481 //
   3482 // The Original Code and all software distributed under the License are
   3483 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3484 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3485 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3486 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3487 // Please see the License for the specific language governing rights and
   3488 // limitations under the License.
   3489 //
   3490 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3491 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   3492 type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */
   3493 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3494 //
   3495 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3496 //
   3497 // This file contains Original Code and/or Modifications of Original Code
   3498 // as defined in and that are subject to the Apple Public Source License
   3499 // Version 2.0 (the 'License'). You may not use this file except in
   3500 // compliance with the License. The rights granted to you under the License
   3501 // may not be used to create, or enable the creation or redistribution of,
   3502 // unlawful or unlicensed copies of an Apple operating system, or to
   3503 // circumvent, violate, or enable the circumvention or violation of, any
   3504 // terms of an Apple operating system software license agreement.
   3505 //
   3506 // Please obtain a copy of the License at
   3507 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3508 //
   3509 // The Original Code and all software distributed under the License are
   3510 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3511 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3512 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3513 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3514 // Please see the License for the specific language governing rights and
   3515 // limitations under the License.
   3516 //
   3517 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3518 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3519 //
   3520 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3521 //
   3522 // This file contains Original Code and/or Modifications of Original Code
   3523 // as defined in and that are subject to the Apple Public Source License
   3524 // Version 2.0 (the 'License'). You may not use this file except in
   3525 // compliance with the License. The rights granted to you under the License
   3526 // may not be used to create, or enable the creation or redistribution of,
   3527 // unlawful or unlicensed copies of an Apple operating system, or to
   3528 // circumvent, violate, or enable the circumvention or violation of, any
   3529 // terms of an Apple operating system software license agreement.
   3530 //
   3531 // Please obtain a copy of the License at
   3532 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3533 //
   3534 // The Original Code and all software distributed under the License are
   3535 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3536 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3537 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3538 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3539 // Please see the License for the specific language governing rights and
   3540 // limitations under the License.
   3541 //
   3542 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3543 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   3544 //
   3545 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3546 //
   3547 // This file contains Original Code and/or Modifications of Original Code
   3548 // as defined in and that are subject to the Apple Public Source License
   3549 // Version 2.0 (the 'License'). You may not use this file except in
   3550 // compliance with the License. The rights granted to you under the License
   3551 // may not be used to create, or enable the creation or redistribution of,
   3552 // unlawful or unlicensed copies of an Apple operating system, or to
   3553 // circumvent, violate, or enable the circumvention or violation of, any
   3554 // terms of an Apple operating system software license agreement.
   3555 //
   3556 // Please obtain a copy of the License at
   3557 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3558 //
   3559 // The Original Code and all software distributed under the License are
   3560 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3561 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3562 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3563 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3564 // Please see the License for the specific language governing rights and
   3565 // limitations under the License.
   3566 //
   3567 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3568 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   3569 type Ssize_t = X__darwin_ssize_t /* _ssize_t.h:31:33 */
   3570 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3571 //
   3572 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3573 //
   3574 // This file contains Original Code and/or Modifications of Original Code
   3575 // as defined in and that are subject to the Apple Public Source License
   3576 // Version 2.0 (the 'License'). You may not use this file except in
   3577 // compliance with the License. The rights granted to you under the License
   3578 // may not be used to create, or enable the creation or redistribution of,
   3579 // unlawful or unlicensed copies of an Apple operating system, or to
   3580 // circumvent, violate, or enable the circumvention or violation of, any
   3581 // terms of an Apple operating system software license agreement.
   3582 //
   3583 // Please obtain a copy of the License at
   3584 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3585 //
   3586 // The Original Code and all software distributed under the License are
   3587 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3588 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3589 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3590 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3591 // Please see the License for the specific language governing rights and
   3592 // limitations under the License.
   3593 //
   3594 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3595 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   3596 //
   3597 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3598 //
   3599 // This file contains Original Code and/or Modifications of Original Code
   3600 // as defined in and that are subject to the Apple Public Source License
   3601 // Version 2.0 (the 'License'). You may not use this file except in
   3602 // compliance with the License. The rights granted to you under the License
   3603 // may not be used to create, or enable the creation or redistribution of,
   3604 // unlawful or unlicensed copies of an Apple operating system, or to
   3605 // circumvent, violate, or enable the circumvention or violation of, any
   3606 // terms of an Apple operating system software license agreement.
   3607 //
   3608 // Please obtain a copy of the License at
   3609 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3610 //
   3611 // The Original Code and all software distributed under the License are
   3612 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3613 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3614 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3615 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3616 // Please see the License for the specific language governing rights and
   3617 // limitations under the License.
   3618 //
   3619 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3620 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   3621 type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
   3622 
   3623 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3624 //
   3625 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3626 //
   3627 // This file contains Original Code and/or Modifications of Original Code
   3628 // as defined in and that are subject to the Apple Public Source License
   3629 // Version 2.0 (the 'License'). You may not use this file except in
   3630 // compliance with the License. The rights granted to you under the License
   3631 // may not be used to create, or enable the creation or redistribution of,
   3632 // unlawful or unlicensed copies of an Apple operating system, or to
   3633 // circumvent, violate, or enable the circumvention or violation of, any
   3634 // terms of an Apple operating system software license agreement.
   3635 //
   3636 // Please obtain a copy of the License at
   3637 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3638 //
   3639 // The Original Code and all software distributed under the License are
   3640 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3641 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3642 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3643 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3644 // Please see the License for the specific language governing rights and
   3645 // limitations under the License.
   3646 //
   3647 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3648 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   3649 //
   3650 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3651 //
   3652 // This file contains Original Code and/or Modifications of Original Code
   3653 // as defined in and that are subject to the Apple Public Source License
   3654 // Version 2.0 (the 'License'). You may not use this file except in
   3655 // compliance with the License. The rights granted to you under the License
   3656 // may not be used to create, or enable the creation or redistribution of,
   3657 // unlawful or unlicensed copies of an Apple operating system, or to
   3658 // circumvent, violate, or enable the circumvention or violation of, any
   3659 // terms of an Apple operating system software license agreement.
   3660 //
   3661 // Please obtain a copy of the License at
   3662 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3663 //
   3664 // The Original Code and all software distributed under the License are
   3665 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3666 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3667 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3668 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3669 // Please see the License for the specific language governing rights and
   3670 // limitations under the License.
   3671 //
   3672 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3673 
   3674 type Useconds_t = X__darwin_useconds_t /* _useconds_t.h:31:33 */
   3675 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3676 //
   3677 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3678 //
   3679 // This file contains Original Code and/or Modifications of Original Code
   3680 // as defined in and that are subject to the Apple Public Source License
   3681 // Version 2.0 (the 'License'). You may not use this file except in
   3682 // compliance with the License. The rights granted to you under the License
   3683 // may not be used to create, or enable the creation or redistribution of,
   3684 // unlawful or unlicensed copies of an Apple operating system, or to
   3685 // circumvent, violate, or enable the circumvention or violation of, any
   3686 // terms of an Apple operating system software license agreement.
   3687 //
   3688 // Please obtain a copy of the License at
   3689 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3690 //
   3691 // The Original Code and all software distributed under the License are
   3692 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3693 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3694 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3695 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3696 // Please see the License for the specific language governing rights and
   3697 // limitations under the License.
   3698 //
   3699 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3700 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   3701 //
   3702 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3703 //
   3704 // This file contains Original Code and/or Modifications of Original Code
   3705 // as defined in and that are subject to the Apple Public Source License
   3706 // Version 2.0 (the 'License'). You may not use this file except in
   3707 // compliance with the License. The rights granted to you under the License
   3708 // may not be used to create, or enable the creation or redistribution of,
   3709 // unlawful or unlicensed copies of an Apple operating system, or to
   3710 // circumvent, violate, or enable the circumvention or violation of, any
   3711 // terms of an Apple operating system software license agreement.
   3712 //
   3713 // Please obtain a copy of the License at
   3714 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3715 //
   3716 // The Original Code and all software distributed under the License are
   3717 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3718 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3719 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3720 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3721 // Please see the License for the specific language governing rights and
   3722 // limitations under the License.
   3723 //
   3724 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3725 
   3726 type Suseconds_t = X__darwin_suseconds_t /* _suseconds_t.h:31:33 */
   3727 
   3728 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3729 //
   3730 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3731 //
   3732 // This file contains Original Code and/or Modifications of Original Code
   3733 // as defined in and that are subject to the Apple Public Source License
   3734 // Version 2.0 (the 'License'). You may not use this file except in
   3735 // compliance with the License. The rights granted to you under the License
   3736 // may not be used to create, or enable the creation or redistribution of,
   3737 // unlawful or unlicensed copies of an Apple operating system, or to
   3738 // circumvent, violate, or enable the circumvention or violation of, any
   3739 // terms of an Apple operating system software license agreement.
   3740 //
   3741 // Please obtain a copy of the License at
   3742 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3743 //
   3744 // The Original Code and all software distributed under the License are
   3745 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3746 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3747 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3748 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3749 // Please see the License for the specific language governing rights and
   3750 // limitations under the License.
   3751 //
   3752 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3753 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   3754 //
   3755 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3756 //
   3757 // This file contains Original Code and/or Modifications of Original Code
   3758 // as defined in and that are subject to the Apple Public Source License
   3759 // Version 2.0 (the 'License'). You may not use this file except in
   3760 // compliance with the License. The rights granted to you under the License
   3761 // may not be used to create, or enable the creation or redistribution of,
   3762 // unlawful or unlicensed copies of an Apple operating system, or to
   3763 // circumvent, violate, or enable the circumvention or violation of, any
   3764 // terms of an Apple operating system software license agreement.
   3765 //
   3766 // Please obtain a copy of the License at
   3767 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3768 //
   3769 // The Original Code and all software distributed under the License are
   3770 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3771 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3772 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3773 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3774 // Please see the License for the specific language governing rights and
   3775 // limitations under the License.
   3776 //
   3777 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3778 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   3779 type Rsize_t = X__darwin_size_t /* _rsize_t.h:31:32 */
   3780 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3781 //
   3782 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3783 //
   3784 // This file contains Original Code and/or Modifications of Original Code
   3785 // as defined in and that are subject to the Apple Public Source License
   3786 // Version 2.0 (the 'License'). You may not use this file except in
   3787 // compliance with the License. The rights granted to you under the License
   3788 // may not be used to create, or enable the creation or redistribution of,
   3789 // unlawful or unlicensed copies of an Apple operating system, or to
   3790 // circumvent, violate, or enable the circumvention or violation of, any
   3791 // terms of an Apple operating system software license agreement.
   3792 //
   3793 // Please obtain a copy of the License at
   3794 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3795 //
   3796 // The Original Code and all software distributed under the License are
   3797 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3798 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3799 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3800 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3801 // Please see the License for the specific language governing rights and
   3802 // limitations under the License.
   3803 //
   3804 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3805 type Errno_t = int32 /* _errno_t.h:30:32 */
   3806 
   3807 // This code is present here in order to maintain historical backward
   3808 // compatability, and is intended to be removed at some point in the
   3809 // future; please include <sys/select.h> instead.
   3810 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3811 //
   3812 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3813 //
   3814 // This file contains Original Code and/or Modifications of Original Code
   3815 // as defined in and that are subject to the Apple Public Source License
   3816 // Version 2.0 (the 'License'). You may not use this file except in
   3817 // compliance with the License. The rights granted to you under the License
   3818 // may not be used to create, or enable the creation or redistribution of,
   3819 // unlawful or unlicensed copies of an Apple operating system, or to
   3820 // circumvent, violate, or enable the circumvention or violation of, any
   3821 // terms of an Apple operating system software license agreement.
   3822 //
   3823 // Please obtain a copy of the License at
   3824 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3825 //
   3826 // The Original Code and all software distributed under the License are
   3827 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3828 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3829 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3830 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3831 // Please see the License for the specific language governing rights and
   3832 // limitations under the License.
   3833 //
   3834 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3835 
   3836 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   3837 //
   3838 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3839 //
   3840 // This file contains Original Code and/or Modifications of Original Code
   3841 // as defined in and that are subject to the Apple Public Source License
   3842 // Version 2.0 (the 'License'). You may not use this file except in
   3843 // compliance with the License. The rights granted to you under the License
   3844 // may not be used to create, or enable the creation or redistribution of,
   3845 // unlawful or unlicensed copies of an Apple operating system, or to
   3846 // circumvent, violate, or enable the circumvention or violation of, any
   3847 // terms of an Apple operating system software license agreement.
   3848 //
   3849 // Please obtain a copy of the License at
   3850 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3851 //
   3852 // The Original Code and all software distributed under the License are
   3853 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3854 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3855 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3856 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3857 // Please see the License for the specific language governing rights and
   3858 // limitations under the License.
   3859 //
   3860 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3861 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   3862 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
   3863 //
   3864 // @APPLE_LICENSE_HEADER_START@
   3865 //
   3866 // This file contains Original Code and/or Modifications of Original Code
   3867 // as defined in and that are subject to the Apple Public Source License
   3868 // Version 2.0 (the 'License'). You may not use this file except in
   3869 // compliance with the License. Please obtain a copy of the License at
   3870 // http://www.opensource.apple.com/apsl/ and read it before using this
   3871 // file.
   3872 //
   3873 // The Original Code and all software distributed under the License are
   3874 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3875 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3876 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3877 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3878 // Please see the License for the specific language governing rights and
   3879 // limitations under the License.
   3880 //
   3881 // @APPLE_LICENSE_HEADER_END@
   3882 
   3883 // Select uses bit masks of file descriptors in longs.  These macros
   3884 // manipulate such bit fields (the filesystem macros use chars).  The
   3885 // extra protection here is to permit application redefinition above
   3886 // the default size.
   3887 
   3888 type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
   3889 
   3890 // This code is present here in order to maintain historical backward
   3891 // compatability, and is intended to be removed at some point in the
   3892 // future; please include <sys/select.h> instead.
   3893 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3894 //
   3895 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3896 //
   3897 // This file contains Original Code and/or Modifications of Original Code
   3898 // as defined in and that are subject to the Apple Public Source License
   3899 // Version 2.0 (the 'License'). You may not use this file except in
   3900 // compliance with the License. The rights granted to you under the License
   3901 // may not be used to create, or enable the creation or redistribution of,
   3902 // unlawful or unlicensed copies of an Apple operating system, or to
   3903 // circumvent, violate, or enable the circumvention or violation of, any
   3904 // terms of an Apple operating system software license agreement.
   3905 //
   3906 // Please obtain a copy of the License at
   3907 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3908 //
   3909 // The Original Code and all software distributed under the License are
   3910 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3911 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3912 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3913 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3914 // Please see the License for the specific language governing rights and
   3915 // limitations under the License.
   3916 //
   3917 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3918 
   3919 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   3920 //
   3921 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3922 //
   3923 // This file contains Original Code and/or Modifications of Original Code
   3924 // as defined in and that are subject to the Apple Public Source License
   3925 // Version 2.0 (the 'License'). You may not use this file except in
   3926 // compliance with the License. The rights granted to you under the License
   3927 // may not be used to create, or enable the creation or redistribution of,
   3928 // unlawful or unlicensed copies of an Apple operating system, or to
   3929 // circumvent, violate, or enable the circumvention or violation of, any
   3930 // terms of an Apple operating system software license agreement.
   3931 //
   3932 // Please obtain a copy of the License at
   3933 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3934 //
   3935 // The Original Code and all software distributed under the License are
   3936 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3937 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3938 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3939 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3940 // Please see the License for the specific language governing rights and
   3941 // limitations under the License.
   3942 //
   3943 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   3944 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   3945 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
   3946 //
   3947 // @APPLE_LICENSE_HEADER_START@
   3948 //
   3949 // This file contains Original Code and/or Modifications of Original Code
   3950 // as defined in and that are subject to the Apple Public Source License
   3951 // Version 2.0 (the 'License'). You may not use this file except in
   3952 // compliance with the License. Please obtain a copy of the License at
   3953 // http://www.opensource.apple.com/apsl/ and read it before using this
   3954 // file.
   3955 //
   3956 // The Original Code and all software distributed under the License are
   3957 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   3958 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   3959 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   3960 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   3961 // Please see the License for the specific language governing rights and
   3962 // limitations under the License.
   3963 //
   3964 // @APPLE_LICENSE_HEADER_END@
   3965 
   3966 // Select uses bit masks of file descriptors in longs.  These macros
   3967 // manipulate such bit fields (the filesystem macros use chars).  The
   3968 // extra protection here is to permit application redefinition above
   3969 // the default size.
   3970 
   3971 type Fd_set = Fd_set1 /* _fd_def.h:52:3 */
   3972 
   3973 // Use the built-in bzero function instead of the library version so that
   3974 // we do not pollute the namespace or introduce prototype warnings.
   3975 
   3976 type Fd_mask = X__int32_t /* types.h:189:25 */
   3977 
   3978 // Select uses bit masks of file descriptors in longs.  These macros
   3979 // manipulate such bit fields (the filesystem macros use chars).  The
   3980 // extra protection here is to permit application redefinition above
   3981 // the default size.
   3982 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   3983 //
   3984 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   3985 //
   3986 // This file contains Original Code and/or Modifications of Original Code
   3987 // as defined in and that are subject to the Apple Public Source License
   3988 // Version 2.0 (the 'License'). You may not use this file except in
   3989 // compliance with the License. The rights granted to you under the License
   3990 // may not be used to create, or enable the creation or redistribution of,
   3991 // unlawful or unlicensed copies of an Apple operating system, or to
   3992 // circumvent, violate, or enable the circumvention or violation of, any
   3993 // terms of an Apple operating system software license agreement.
   3994 //
   3995 // Please obtain a copy of the License at
   3996 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   3997 //
   3998 // The Original Code and all software distributed under the License are
   3999 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4000 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4001 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4002 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4003 // Please see the License for the specific language governing rights and
   4004 // limitations under the License.
   4005 //
   4006 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4007 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4008 //
   4009 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4010 //
   4011 // This file contains Original Code and/or Modifications of Original Code
   4012 // as defined in and that are subject to the Apple Public Source License
   4013 // Version 2.0 (the 'License'). You may not use this file except in
   4014 // compliance with the License. The rights granted to you under the License
   4015 // may not be used to create, or enable the creation or redistribution of,
   4016 // unlawful or unlicensed copies of an Apple operating system, or to
   4017 // circumvent, violate, or enable the circumvention or violation of, any
   4018 // terms of an Apple operating system software license agreement.
   4019 //
   4020 // Please obtain a copy of the License at
   4021 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4022 //
   4023 // The Original Code and all software distributed under the License are
   4024 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4025 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4026 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4027 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4028 // Please see the License for the specific language governing rights and
   4029 // limitations under the License.
   4030 //
   4031 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4032 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4033 //
   4034 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4035 //
   4036 // This file contains Original Code and/or Modifications of Original Code
   4037 // as defined in and that are subject to the Apple Public Source License
   4038 // Version 2.0 (the 'License'). You may not use this file except in
   4039 // compliance with the License. The rights granted to you under the License
   4040 // may not be used to create, or enable the creation or redistribution of,
   4041 // unlawful or unlicensed copies of an Apple operating system, or to
   4042 // circumvent, violate, or enable the circumvention or violation of, any
   4043 // terms of an Apple operating system software license agreement.
   4044 //
   4045 // Please obtain a copy of the License at
   4046 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4047 //
   4048 // The Original Code and all software distributed under the License are
   4049 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4050 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4051 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4052 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4053 // Please see the License for the specific language governing rights and
   4054 // limitations under the License.
   4055 //
   4056 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4057 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4058 //
   4059 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4060 //
   4061 // This file contains Original Code and/or Modifications of Original Code
   4062 // as defined in and that are subject to the Apple Public Source License
   4063 // Version 2.0 (the 'License'). You may not use this file except in
   4064 // compliance with the License. The rights granted to you under the License
   4065 // may not be used to create, or enable the creation or redistribution of,
   4066 // unlawful or unlicensed copies of an Apple operating system, or to
   4067 // circumvent, violate, or enable the circumvention or violation of, any
   4068 // terms of an Apple operating system software license agreement.
   4069 //
   4070 // Please obtain a copy of the License at
   4071 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4072 //
   4073 // The Original Code and all software distributed under the License are
   4074 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4075 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4076 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4077 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4078 // Please see the License for the specific language governing rights and
   4079 // limitations under the License.
   4080 //
   4081 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4082 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4083 //
   4084 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4085 //
   4086 // This file contains Original Code and/or Modifications of Original Code
   4087 // as defined in and that are subject to the Apple Public Source License
   4088 // Version 2.0 (the 'License'). You may not use this file except in
   4089 // compliance with the License. The rights granted to you under the License
   4090 // may not be used to create, or enable the creation or redistribution of,
   4091 // unlawful or unlicensed copies of an Apple operating system, or to
   4092 // circumvent, violate, or enable the circumvention or violation of, any
   4093 // terms of an Apple operating system software license agreement.
   4094 //
   4095 // Please obtain a copy of the License at
   4096 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4097 //
   4098 // The Original Code and all software distributed under the License are
   4099 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4100 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4101 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4102 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4103 // Please see the License for the specific language governing rights and
   4104 // limitations under the License.
   4105 //
   4106 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4107 
   4108 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4109 //
   4110 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4111 //
   4112 // This file contains Original Code and/or Modifications of Original Code
   4113 // as defined in and that are subject to the Apple Public Source License
   4114 // Version 2.0 (the 'License'). You may not use this file except in
   4115 // compliance with the License. The rights granted to you under the License
   4116 // may not be used to create, or enable the creation or redistribution of,
   4117 // unlawful or unlicensed copies of an Apple operating system, or to
   4118 // circumvent, violate, or enable the circumvention or violation of, any
   4119 // terms of an Apple operating system software license agreement.
   4120 //
   4121 // Please obtain a copy of the License at
   4122 // http://www.opensource.apple.com/apsl/ and read it before using this 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_OSREFERENCE_LICENSE_HEADER_END@
   4133 
   4134 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4135 //
   4136 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4137 //
   4138 // This file contains Original Code and/or Modifications of Original Code
   4139 // as defined in and that are subject to the Apple Public Source License
   4140 // Version 2.0 (the 'License'). You may not use this file except in
   4141 // compliance with the License. The rights granted to you under the License
   4142 // may not be used to create, or enable the creation or redistribution of,
   4143 // unlawful or unlicensed copies of an Apple operating system, or to
   4144 // circumvent, violate, or enable the circumvention or violation of, any
   4145 // terms of an Apple operating system software license agreement.
   4146 //
   4147 // Please obtain a copy of the License at
   4148 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4149 //
   4150 // The Original Code and all software distributed under the License are
   4151 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4152 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4153 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4154 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4155 // Please see the License for the specific language governing rights and
   4156 // limitations under the License.
   4157 //
   4158 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4159 // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
   4160 //
   4161 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4162 //
   4163 // This file contains Original Code and/or Modifications of Original Code
   4164 // as defined in and that are subject to the Apple Public Source License
   4165 // Version 2.0 (the 'License'). You may not use this file except in
   4166 // compliance with the License. The rights granted to you under the License
   4167 // may not be used to create, or enable the creation or redistribution of,
   4168 // unlawful or unlicensed copies of an Apple operating system, or to
   4169 // circumvent, violate, or enable the circumvention or violation of, any
   4170 // terms of an Apple operating system software license agreement.
   4171 //
   4172 // Please obtain a copy of the License at
   4173 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4174 //
   4175 // The Original Code and all software distributed under the License are
   4176 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4177 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4178 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4179 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4180 // Please see the License for the specific language governing rights and
   4181 // limitations under the License.
   4182 //
   4183 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4184 
   4185 type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */
   4186 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4187 //
   4188 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4189 //
   4190 // This file contains Original Code and/or Modifications of Original Code
   4191 // as defined in and that are subject to the Apple Public Source License
   4192 // Version 2.0 (the 'License'). You may not use this file except in
   4193 // compliance with the License. The rights granted to you under the License
   4194 // may not be used to create, or enable the creation or redistribution of,
   4195 // unlawful or unlicensed copies of an Apple operating system, or to
   4196 // circumvent, violate, or enable the circumvention or violation of, any
   4197 // terms of an Apple operating system software license agreement.
   4198 //
   4199 // Please obtain a copy of the License at
   4200 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4201 //
   4202 // The Original Code and all software distributed under the License are
   4203 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4204 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4205 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4206 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4207 // Please see the License for the specific language governing rights and
   4208 // limitations under the License.
   4209 //
   4210 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4211 // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
   4212 //
   4213 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4214 //
   4215 // This file contains Original Code and/or Modifications of Original Code
   4216 // as defined in and that are subject to the Apple Public Source License
   4217 // Version 2.0 (the 'License'). You may not use this file except in
   4218 // compliance with the License. The rights granted to you under the License
   4219 // may not be used to create, or enable the creation or redistribution of,
   4220 // unlawful or unlicensed copies of an Apple operating system, or to
   4221 // circumvent, violate, or enable the circumvention or violation of, any
   4222 // terms of an Apple operating system software license agreement.
   4223 //
   4224 // Please obtain a copy of the License at
   4225 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4226 //
   4227 // The Original Code and all software distributed under the License are
   4228 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4229 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4230 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4231 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4232 // Please see the License for the specific language governing rights and
   4233 // limitations under the License.
   4234 //
   4235 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4236 
   4237 type Pthread_cond_t = X__darwin_pthread_cond_t /* _pthread_cond_t.h:31:33 */
   4238 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4239 //
   4240 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4241 //
   4242 // This file contains Original Code and/or Modifications of Original Code
   4243 // as defined in and that are subject to the Apple Public Source License
   4244 // Version 2.0 (the 'License'). You may not use this file except in
   4245 // compliance with the License. The rights granted to you under the License
   4246 // may not be used to create, or enable the creation or redistribution of,
   4247 // unlawful or unlicensed copies of an Apple operating system, or to
   4248 // circumvent, violate, or enable the circumvention or violation of, any
   4249 // terms of an Apple operating system software license agreement.
   4250 //
   4251 // Please obtain a copy of the License at
   4252 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4253 //
   4254 // The Original Code and all software distributed under the License are
   4255 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4256 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4257 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4258 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4259 // Please see the License for the specific language governing rights and
   4260 // limitations under the License.
   4261 //
   4262 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4263 // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
   4264 //
   4265 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4266 //
   4267 // This file contains Original Code and/or Modifications of Original Code
   4268 // as defined in and that are subject to the Apple Public Source License
   4269 // Version 2.0 (the 'License'). You may not use this file except in
   4270 // compliance with the License. The rights granted to you under the License
   4271 // may not be used to create, or enable the creation or redistribution of,
   4272 // unlawful or unlicensed copies of an Apple operating system, or to
   4273 // circumvent, violate, or enable the circumvention or violation of, any
   4274 // terms of an Apple operating system software license agreement.
   4275 //
   4276 // Please obtain a copy of the License at
   4277 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4278 //
   4279 // The Original Code and all software distributed under the License are
   4280 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4281 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4282 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4283 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4284 // Please see the License for the specific language governing rights and
   4285 // limitations under the License.
   4286 //
   4287 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4288 
   4289 type Pthread_condattr_t = X__darwin_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */
   4290 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4291 //
   4292 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4293 //
   4294 // This file contains Original Code and/or Modifications of Original Code
   4295 // as defined in and that are subject to the Apple Public Source License
   4296 // Version 2.0 (the 'License'). You may not use this file except in
   4297 // compliance with the License. The rights granted to you under the License
   4298 // may not be used to create, or enable the creation or redistribution of,
   4299 // unlawful or unlicensed copies of an Apple operating system, or to
   4300 // circumvent, violate, or enable the circumvention or violation of, any
   4301 // terms of an Apple operating system software license agreement.
   4302 //
   4303 // Please obtain a copy of the License at
   4304 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4305 //
   4306 // The Original Code and all software distributed under the License are
   4307 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4308 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4309 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4310 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4311 // Please see the License for the specific language governing rights and
   4312 // limitations under the License.
   4313 //
   4314 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4315 // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
   4316 //
   4317 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4318 //
   4319 // This file contains Original Code and/or Modifications of Original Code
   4320 // as defined in and that are subject to the Apple Public Source License
   4321 // Version 2.0 (the 'License'). You may not use this file except in
   4322 // compliance with the License. The rights granted to you under the License
   4323 // may not be used to create, or enable the creation or redistribution of,
   4324 // unlawful or unlicensed copies of an Apple operating system, or to
   4325 // circumvent, violate, or enable the circumvention or violation of, any
   4326 // terms of an Apple operating system software license agreement.
   4327 //
   4328 // Please obtain a copy of the License at
   4329 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4330 //
   4331 // The Original Code and all software distributed under the License are
   4332 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4333 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4334 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4335 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4336 // Please see the License for the specific language governing rights and
   4337 // limitations under the License.
   4338 //
   4339 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4340 
   4341 type Pthread_mutex_t = X__darwin_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */
   4342 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4343 //
   4344 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4345 //
   4346 // This file contains Original Code and/or Modifications of Original Code
   4347 // as defined in and that are subject to the Apple Public Source License
   4348 // Version 2.0 (the 'License'). You may not use this file except in
   4349 // compliance with the License. The rights granted to you under the License
   4350 // may not be used to create, or enable the creation or redistribution of,
   4351 // unlawful or unlicensed copies of an Apple operating system, or to
   4352 // circumvent, violate, or enable the circumvention or violation of, any
   4353 // terms of an Apple operating system software license agreement.
   4354 //
   4355 // Please obtain a copy of the License at
   4356 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4357 //
   4358 // The Original Code and all software distributed under the License are
   4359 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4360 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4361 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4362 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4363 // Please see the License for the specific language governing rights and
   4364 // limitations under the License.
   4365 //
   4366 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4367 // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
   4368 //
   4369 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4370 //
   4371 // This file contains Original Code and/or Modifications of Original Code
   4372 // as defined in and that are subject to the Apple Public Source License
   4373 // Version 2.0 (the 'License'). You may not use this file except in
   4374 // compliance with the License. The rights granted to you under the License
   4375 // may not be used to create, or enable the creation or redistribution of,
   4376 // unlawful or unlicensed copies of an Apple operating system, or to
   4377 // circumvent, violate, or enable the circumvention or violation of, any
   4378 // terms of an Apple operating system software license agreement.
   4379 //
   4380 // Please obtain a copy of the License at
   4381 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4382 //
   4383 // The Original Code and all software distributed under the License are
   4384 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4385 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4386 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4387 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4388 // Please see the License for the specific language governing rights and
   4389 // limitations under the License.
   4390 //
   4391 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4392 
   4393 type Pthread_mutexattr_t = X__darwin_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */
   4394 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4395 //
   4396 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4397 //
   4398 // This file contains Original Code and/or Modifications of Original Code
   4399 // as defined in and that are subject to the Apple Public Source License
   4400 // Version 2.0 (the 'License'). You may not use this file except in
   4401 // compliance with the License. The rights granted to you under the License
   4402 // may not be used to create, or enable the creation or redistribution of,
   4403 // unlawful or unlicensed copies of an Apple operating system, or to
   4404 // circumvent, violate, or enable the circumvention or violation of, any
   4405 // terms of an Apple operating system software license agreement.
   4406 //
   4407 // Please obtain a copy of the License at
   4408 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4409 //
   4410 // The Original Code and all software distributed under the License are
   4411 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4412 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4413 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4414 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4415 // Please see the License for the specific language governing rights and
   4416 // limitations under the License.
   4417 //
   4418 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4419 // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
   4420 //
   4421 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4422 //
   4423 // This file contains Original Code and/or Modifications of Original Code
   4424 // as defined in and that are subject to the Apple Public Source License
   4425 // Version 2.0 (the 'License'). You may not use this file except in
   4426 // compliance with the License. The rights granted to you under the License
   4427 // may not be used to create, or enable the creation or redistribution of,
   4428 // unlawful or unlicensed copies of an Apple operating system, or to
   4429 // circumvent, violate, or enable the circumvention or violation of, any
   4430 // terms of an Apple operating system software license agreement.
   4431 //
   4432 // Please obtain a copy of the License at
   4433 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4434 //
   4435 // The Original Code and all software distributed under the License are
   4436 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4437 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4438 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4439 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4440 // Please see the License for the specific language governing rights and
   4441 // limitations under the License.
   4442 //
   4443 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4444 
   4445 type Pthread_once_t = X__darwin_pthread_once_t /* _pthread_once_t.h:31:33 */
   4446 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4447 //
   4448 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4449 //
   4450 // This file contains Original Code and/or Modifications of Original Code
   4451 // as defined in and that are subject to the Apple Public Source License
   4452 // Version 2.0 (the 'License'). You may not use this file except in
   4453 // compliance with the License. The rights granted to you under the License
   4454 // may not be used to create, or enable the creation or redistribution of,
   4455 // unlawful or unlicensed copies of an Apple operating system, or to
   4456 // circumvent, violate, or enable the circumvention or violation of, any
   4457 // terms of an Apple operating system software license agreement.
   4458 //
   4459 // Please obtain a copy of the License at
   4460 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4461 //
   4462 // The Original Code and all software distributed under the License are
   4463 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4464 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4465 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4466 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4467 // Please see the License for the specific language governing rights and
   4468 // limitations under the License.
   4469 //
   4470 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4471 // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
   4472 //
   4473 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4474 //
   4475 // This file contains Original Code and/or Modifications of Original Code
   4476 // as defined in and that are subject to the Apple Public Source License
   4477 // Version 2.0 (the 'License'). You may not use this file except in
   4478 // compliance with the License. The rights granted to you under the License
   4479 // may not be used to create, or enable the creation or redistribution of,
   4480 // unlawful or unlicensed copies of an Apple operating system, or to
   4481 // circumvent, violate, or enable the circumvention or violation of, any
   4482 // terms of an Apple operating system software license agreement.
   4483 //
   4484 // Please obtain a copy of the License at
   4485 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4486 //
   4487 // The Original Code and all software distributed under the License are
   4488 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4489 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4490 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4491 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4492 // Please see the License for the specific language governing rights and
   4493 // limitations under the License.
   4494 //
   4495 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4496 
   4497 type Pthread_rwlock_t = X__darwin_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */
   4498 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4499 //
   4500 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4501 //
   4502 // This file contains Original Code and/or Modifications of Original Code
   4503 // as defined in and that are subject to the Apple Public Source License
   4504 // Version 2.0 (the 'License'). You may not use this file except in
   4505 // compliance with the License. The rights granted to you under the License
   4506 // may not be used to create, or enable the creation or redistribution of,
   4507 // unlawful or unlicensed copies of an Apple operating system, or to
   4508 // circumvent, violate, or enable the circumvention or violation of, any
   4509 // terms of an Apple operating system software license agreement.
   4510 //
   4511 // Please obtain a copy of the License at
   4512 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4513 //
   4514 // The Original Code and all software distributed under the License are
   4515 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4516 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4517 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4518 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4519 // Please see the License for the specific language governing rights and
   4520 // limitations under the License.
   4521 //
   4522 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4523 // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
   4524 //
   4525 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4526 //
   4527 // This file contains Original Code and/or Modifications of Original Code
   4528 // as defined in and that are subject to the Apple Public Source License
   4529 // Version 2.0 (the 'License'). You may not use this file except in
   4530 // compliance with the License. The rights granted to you under the License
   4531 // may not be used to create, or enable the creation or redistribution of,
   4532 // unlawful or unlicensed copies of an Apple operating system, or to
   4533 // circumvent, violate, or enable the circumvention or violation of, any
   4534 // terms of an Apple operating system software license agreement.
   4535 //
   4536 // Please obtain a copy of the License at
   4537 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4538 //
   4539 // The Original Code and all software distributed under the License are
   4540 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4541 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4542 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4543 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4544 // Please see the License for the specific language governing rights and
   4545 // limitations under the License.
   4546 //
   4547 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4548 
   4549 type Pthread_rwlockattr_t = X__darwin_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */
   4550 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4551 //
   4552 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4553 //
   4554 // This file contains Original Code and/or Modifications of Original Code
   4555 // as defined in and that are subject to the Apple Public Source License
   4556 // Version 2.0 (the 'License'). You may not use this file except in
   4557 // compliance with the License. The rights granted to you under the License
   4558 // may not be used to create, or enable the creation or redistribution of,
   4559 // unlawful or unlicensed copies of an Apple operating system, or to
   4560 // circumvent, violate, or enable the circumvention or violation of, any
   4561 // terms of an Apple operating system software license agreement.
   4562 //
   4563 // Please obtain a copy of the License at
   4564 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4565 //
   4566 // The Original Code and all software distributed under the License are
   4567 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4568 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4569 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4570 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4571 // Please see the License for the specific language governing rights and
   4572 // limitations under the License.
   4573 //
   4574 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4575 // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
   4576 //
   4577 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4578 //
   4579 // This file contains Original Code and/or Modifications of Original Code
   4580 // as defined in and that are subject to the Apple Public Source License
   4581 // Version 2.0 (the 'License'). You may not use this file except in
   4582 // compliance with the License. The rights granted to you under the License
   4583 // may not be used to create, or enable the creation or redistribution of,
   4584 // unlawful or unlicensed copies of an Apple operating system, or to
   4585 // circumvent, violate, or enable the circumvention or violation of, any
   4586 // terms of an Apple operating system software license agreement.
   4587 //
   4588 // Please obtain a copy of the License at
   4589 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4590 //
   4591 // The Original Code and all software distributed under the License are
   4592 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4593 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4594 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4595 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4596 // Please see the License for the specific language governing rights and
   4597 // limitations under the License.
   4598 //
   4599 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4600 
   4601 type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */
   4602 
   4603 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4604 //
   4605 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4606 //
   4607 // This file contains Original Code and/or Modifications of Original Code
   4608 // as defined in and that are subject to the Apple Public Source License
   4609 // Version 2.0 (the 'License'). You may not use this file except in
   4610 // compliance with the License. The rights granted to you under the License
   4611 // may not be used to create, or enable the creation or redistribution of,
   4612 // unlawful or unlicensed copies of an Apple operating system, or to
   4613 // circumvent, violate, or enable the circumvention or violation of, any
   4614 // terms of an Apple operating system software license agreement.
   4615 //
   4616 // Please obtain a copy of the License at
   4617 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4618 //
   4619 // The Original Code and all software distributed under the License are
   4620 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4621 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4622 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4623 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4624 // Please see the License for the specific language governing rights and
   4625 // limitations under the License.
   4626 //
   4627 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4628 // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
   4629 //
   4630 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4631 //
   4632 // This file contains Original Code and/or Modifications of Original Code
   4633 // as defined in and that are subject to the Apple Public Source License
   4634 // Version 2.0 (the 'License'). You may not use this file except in
   4635 // compliance with the License. The rights granted to you under the License
   4636 // may not be used to create, or enable the creation or redistribution of,
   4637 // unlawful or unlicensed copies of an Apple operating system, or to
   4638 // circumvent, violate, or enable the circumvention or violation of, any
   4639 // terms of an Apple operating system software license agreement.
   4640 //
   4641 // Please obtain a copy of the License at
   4642 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4643 //
   4644 // The Original Code and all software distributed under the License are
   4645 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4646 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4647 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4648 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4649 // Please see the License for the specific language governing rights and
   4650 // limitations under the License.
   4651 //
   4652 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4653 
   4654 type Pthread_key_t = X__darwin_pthread_key_t /* _pthread_key_t.h:31:32 */
   4655 
   4656 // statvfs and fstatvfs
   4657 
   4658 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4659 //
   4660 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4661 //
   4662 // This file contains Original Code and/or Modifications of Original Code
   4663 // as defined in and that are subject to the Apple Public Source License
   4664 // Version 2.0 (the 'License'). You may not use this file except in
   4665 // compliance with the License. The rights granted to you under the License
   4666 // may not be used to create, or enable the creation or redistribution of,
   4667 // unlawful or unlicensed copies of an Apple operating system, or to
   4668 // circumvent, violate, or enable the circumvention or violation of, any
   4669 // terms of an Apple operating system software license agreement.
   4670 //
   4671 // Please obtain a copy of the License at
   4672 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4673 //
   4674 // The Original Code and all software distributed under the License are
   4675 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4676 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4677 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4678 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4679 // Please see the License for the specific language governing rights and
   4680 // limitations under the License.
   4681 //
   4682 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4683 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   4684 //
   4685 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4686 //
   4687 // This file contains Original Code and/or Modifications of Original Code
   4688 // as defined in and that are subject to the Apple Public Source License
   4689 // Version 2.0 (the 'License'). You may not use this file except in
   4690 // compliance with the License. The rights granted to you under the License
   4691 // may not be used to create, or enable the creation or redistribution of,
   4692 // unlawful or unlicensed copies of an Apple operating system, or to
   4693 // circumvent, violate, or enable the circumvention or violation of, any
   4694 // terms of an Apple operating system software license agreement.
   4695 //
   4696 // Please obtain a copy of the License at
   4697 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4698 //
   4699 // The Original Code and all software distributed under the License are
   4700 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4701 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4702 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4703 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4704 // Please see the License for the specific language governing rights and
   4705 // limitations under the License.
   4706 //
   4707 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4708 
   4709 type Fsblkcnt_t = X__darwin_fsblkcnt_t /* _fsblkcnt_t.h:31:41 */
   4710 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4711 //
   4712 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4713 //
   4714 // This file contains Original Code and/or Modifications of Original Code
   4715 // as defined in and that are subject to the Apple Public Source License
   4716 // Version 2.0 (the 'License'). You may not use this file except in
   4717 // compliance with the License. The rights granted to you under the License
   4718 // may not be used to create, or enable the creation or redistribution of,
   4719 // unlawful or unlicensed copies of an Apple operating system, or to
   4720 // circumvent, violate, or enable the circumvention or violation of, any
   4721 // terms of an Apple operating system software license agreement.
   4722 //
   4723 // Please obtain a copy of the License at
   4724 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4725 //
   4726 // The Original Code and all software distributed under the License are
   4727 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4728 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4729 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4730 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4731 // Please see the License for the specific language governing rights and
   4732 // limitations under the License.
   4733 //
   4734 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4735 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   4736 //
   4737 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4738 //
   4739 // This file contains Original Code and/or Modifications of Original Code
   4740 // as defined in and that are subject to the Apple Public Source License
   4741 // Version 2.0 (the 'License'). You may not use this file except in
   4742 // compliance with the License. The rights granted to you under the License
   4743 // may not be used to create, or enable the creation or redistribution of,
   4744 // unlawful or unlicensed copies of an Apple operating system, or to
   4745 // circumvent, violate, or enable the circumvention or violation of, any
   4746 // terms of an Apple operating system software license agreement.
   4747 //
   4748 // Please obtain a copy of the License at
   4749 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4750 //
   4751 // The Original Code and all software distributed under the License are
   4752 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4753 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4754 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4755 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4756 // Please see the License for the specific language governing rights and
   4757 // limitations under the License.
   4758 //
   4759 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4760 
   4761 type Fsfilcnt_t = X__darwin_fsfilcnt_t /* _fsfilcnt_t.h:31:41 */
   4762 
   4763 // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   4764 //
   4765 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4766 //
   4767 // This file contains Original Code and/or Modifications of Original Code
   4768 // as defined in and that are subject to the Apple Public Source License
   4769 // Version 2.0 (the 'License'). You may not use this file except in
   4770 // compliance with the License. The rights granted to you under the License
   4771 // may not be used to create, or enable the creation or redistribution of,
   4772 // unlawful or unlicensed copies of an Apple operating system, or to
   4773 // circumvent, violate, or enable the circumvention or violation of, any
   4774 // terms of an Apple operating system software license agreement.
   4775 //
   4776 // Please obtain a copy of the License at
   4777 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4778 //
   4779 // The Original Code and all software distributed under the License are
   4780 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4781 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4782 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4783 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4784 // Please see the License for the specific language governing rights and
   4785 // limitations under the License.
   4786 //
   4787 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4788 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   4789 // Copyright (c) 1991, 1993
   4790 //	The Regents of the University of California.  All rights reserved.
   4791 //
   4792 // This code is derived from software contributed to Berkeley by
   4793 // Berkeley Software Design, Inc.
   4794 //
   4795 // Redistribution and use in source and binary forms, with or without
   4796 // modification, are permitted provided that the following conditions
   4797 // are met:
   4798 // 1. Redistributions of source code must retain the above copyright
   4799 //    notice, this list of conditions and the following disclaimer.
   4800 // 2. Redistributions in binary form must reproduce the above copyright
   4801 //    notice, this list of conditions and the following disclaimer in the
   4802 //    documentation and/or other materials provided with the distribution.
   4803 // 3. All advertising materials mentioning features or use of this software
   4804 //    must display the following acknowledgement:
   4805 //	This product includes software developed by the University of
   4806 //	California, Berkeley and its contributors.
   4807 // 4. Neither the name of the University nor the names of its contributors
   4808 //    may be used to endorse or promote products derived from this software
   4809 //    without specific prior written permission.
   4810 //
   4811 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   4812 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   4813 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   4814 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   4815 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   4816 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   4817 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   4818 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   4819 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   4820 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   4821 // SUCH DAMAGE.
   4822 //
   4823 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   4824 
   4825 // Copyright (c) 2004-2007 Apple Inc. All rights reserved.
   4826 //
   4827 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4828 //
   4829 // This file contains Original Code and/or Modifications of Original Code
   4830 // as defined in and that are subject to the Apple Public Source License
   4831 // Version 2.0 (the 'License'). You may not use this file except in
   4832 // compliance with the License. The rights granted to you under the License
   4833 // may not be used to create, or enable the creation or redistribution of,
   4834 // unlawful or unlicensed copies of an Apple operating system, or to
   4835 // circumvent, violate, or enable the circumvention or violation of, any
   4836 // terms of an Apple operating system software license agreement.
   4837 //
   4838 // Please obtain a copy of the License at
   4839 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4840 //
   4841 // The Original Code and all software distributed under the License are
   4842 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4843 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4844 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4845 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4846 // Please see the License for the specific language governing rights and
   4847 // limitations under the License.
   4848 //
   4849 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4850 // Copyright (c) 2008 Apple Computer, Inc. All rights reserved.
   4851 //
   4852 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4853 //
   4854 // This file contains Original Code and/or Modifications of Original Code
   4855 // as defined in and that are subject to the Apple Public Source License
   4856 // Version 2.0 (the 'License'). You may not use this file except in
   4857 // compliance with the License. The rights granted to you under the License
   4858 // may not be used to create, or enable the creation or redistribution of,
   4859 // unlawful or unlicensed copies of an Apple operating system, or to
   4860 // circumvent, violate, or enable the circumvention or violation of, any
   4861 // terms of an Apple operating system software license agreement.
   4862 //
   4863 // Please obtain a copy of the License at
   4864 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4865 //
   4866 // The Original Code and all software distributed under the License are
   4867 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4868 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4869 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4870 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4871 // Please see the License for the specific language governing rights and
   4872 // limitations under the License.
   4873 //
   4874 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4875 
   4876 // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
   4877 //
   4878 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4879 //
   4880 // This file contains Original Code and/or Modifications of Original Code
   4881 // as defined in and that are subject to the Apple Public Source License
   4882 // Version 2.0 (the 'License'). You may not use this file except in
   4883 // compliance with the License. The rights granted to you under the License
   4884 // may not be used to create, or enable the creation or redistribution of,
   4885 // unlawful or unlicensed copies of an Apple operating system, or to
   4886 // circumvent, violate, or enable the circumvention or violation of, any
   4887 // terms of an Apple operating system software license agreement.
   4888 //
   4889 // Please obtain a copy of the License at
   4890 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4891 //
   4892 // The Original Code and all software distributed under the License are
   4893 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4894 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4895 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4896 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4897 // Please see the License for the specific language governing rights and
   4898 // limitations under the License.
   4899 //
   4900 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4901 
   4902 // Round p (pointer or byte index) up to a correctly-aligned value for all
   4903 // data types (int, long, ...).   The result is unsigned int and must be
   4904 // cast to any desired pointer type.
   4905 
   4906 // Copyright (c) 2016-2018 Apple Inc. All rights reserved.
   4907 //
   4908 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4909 //
   4910 // This file contains Original Code and/or Modifications of Original Code
   4911 // as defined in and that are subject to the Apple Public Source License
   4912 // Version 2.0 (the 'License'). You may not use this file except in
   4913 // compliance with the License. The rights granted to you under the License
   4914 // may not be used to create, or enable the creation or redistribution of,
   4915 // unlawful or unlicensed copies of an Apple operating system, or to
   4916 // circumvent, violate, or enable the circumvention or violation of, any
   4917 // terms of an Apple operating system software license agreement.
   4918 //
   4919 // Please obtain a copy of the License at
   4920 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4921 //
   4922 // The Original Code and all software distributed under the License are
   4923 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4924 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4925 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4926 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4927 // Please see the License for the specific language governing rights and
   4928 // limitations under the License.
   4929 //
   4930 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4931 
   4932 // Kernel event subclass identifiers for KEV_NETWORK_CLASS
   4933 // KEV_INET_SUBCLASS event codes
   4934 
   4935 // Define Data-Link event subclass, and associated
   4936 // events.
   4937 
   4938 // KEV_INET6_SUBCLASS event codes
   4939 
   4940 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
   4941 //
   4942 // @APPLE_LICENSE_HEADER_START@
   4943 //
   4944 // This file contains Original Code and/or Modifications of Original Code
   4945 // as defined in and that are subject to the Apple Public Source License
   4946 // Version 2.0 (the 'License'). You may not use this file except in
   4947 // compliance with the License. Please obtain a copy of the License at
   4948 // http://www.opensource.apple.com/apsl/ and read it before using this
   4949 // file.
   4950 //
   4951 // The Original Code and all software distributed under the License are
   4952 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4953 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4954 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4955 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4956 // Please see the License for the specific language governing rights and
   4957 // limitations under the License.
   4958 //
   4959 // @APPLE_LICENSE_HEADER_END@
   4960 
   4961 // Definitions related to sockets: types, address families, options.
   4962 
   4963 // Data types.
   4964 
   4965 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4966 //
   4967 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4968 //
   4969 // This file contains Original Code and/or Modifications of Original Code
   4970 // as defined in and that are subject to the Apple Public Source License
   4971 // Version 2.0 (the 'License'). You may not use this file except in
   4972 // compliance with the License. The rights granted to you under the License
   4973 // may not be used to create, or enable the creation or redistribution of,
   4974 // unlawful or unlicensed copies of an Apple operating system, or to
   4975 // circumvent, violate, or enable the circumvention or violation of, any
   4976 // terms of an Apple operating system software license agreement.
   4977 //
   4978 // Please obtain a copy of the License at
   4979 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   4980 //
   4981 // The Original Code and all software distributed under the License are
   4982 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   4983 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   4984 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   4985 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   4986 // Please see the License for the specific language governing rights and
   4987 // limitations under the License.
   4988 //
   4989 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   4990 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   4991 //
   4992 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   4993 //
   4994 // This file contains Original Code and/or Modifications of Original Code
   4995 // as defined in and that are subject to the Apple Public Source License
   4996 // Version 2.0 (the 'License'). You may not use this file except in
   4997 // compliance with the License. The rights granted to you under the License
   4998 // may not be used to create, or enable the creation or redistribution of,
   4999 // unlawful or unlicensed copies of an Apple operating system, or to
   5000 // circumvent, violate, or enable the circumvention or violation of, any
   5001 // terms of an Apple operating system software license agreement.
   5002 //
   5003 // Please obtain a copy of the License at
   5004 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5005 //
   5006 // The Original Code and all software distributed under the License are
   5007 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5008 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5009 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5010 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5011 // Please see the License for the specific language governing rights and
   5012 // limitations under the License.
   5013 //
   5014 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5015 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   5016 //
   5017 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5018 //
   5019 // This file contains Original Code and/or Modifications of Original Code
   5020 // as defined in and that are subject to the Apple Public Source License
   5021 // Version 2.0 (the 'License'). You may not use this file except in
   5022 // compliance with the License. The rights granted to you under the License
   5023 // may not be used to create, or enable the creation or redistribution of,
   5024 // unlawful or unlicensed copies of an Apple operating system, or to
   5025 // circumvent, violate, or enable the circumvention or violation of, any
   5026 // terms of an Apple operating system software license agreement.
   5027 //
   5028 // Please obtain a copy of the License at
   5029 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5030 //
   5031 // The Original Code and all software distributed under the License are
   5032 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5033 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5034 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5035 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5036 // Please see the License for the specific language governing rights and
   5037 // limitations under the License.
   5038 //
   5039 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5040 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   5041 //
   5042 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5043 //
   5044 // This file contains Original Code and/or Modifications of Original Code
   5045 // as defined in and that are subject to the Apple Public Source License
   5046 // Version 2.0 (the 'License'). You may not use this file except in
   5047 // compliance with the License. The rights granted to you under the License
   5048 // may not be used to create, or enable the creation or redistribution of,
   5049 // unlawful or unlicensed copies of an Apple operating system, or to
   5050 // circumvent, violate, or enable the circumvention or violation of, any
   5051 // terms of an Apple operating system software license agreement.
   5052 //
   5053 // Please obtain a copy of the License at
   5054 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5055 //
   5056 // The Original Code and all software distributed under the License are
   5057 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5058 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5059 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5060 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5061 // Please see the License for the specific language governing rights and
   5062 // limitations under the License.
   5063 //
   5064 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5065 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   5066 //
   5067 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5068 //
   5069 // This file contains Original Code and/or Modifications of Original Code
   5070 // as defined in and that are subject to the Apple Public Source License
   5071 // Version 2.0 (the 'License'). You may not use this file except in
   5072 // compliance with the License. The rights granted to you under the License
   5073 // may not be used to create, or enable the creation or redistribution of,
   5074 // unlawful or unlicensed copies of an Apple operating system, or to
   5075 // circumvent, violate, or enable the circumvention or violation of, any
   5076 // terms of an Apple operating system software license agreement.
   5077 //
   5078 // Please obtain a copy of the License at
   5079 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5080 //
   5081 // The Original Code and all software distributed under the License are
   5082 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5083 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5084 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5085 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5086 // Please see the License for the specific language governing rights and
   5087 // limitations under the License.
   5088 //
   5089 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5090 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   5091 type Sa_family_t = X__uint8_t /* _sa_family_t.h:31:33 */
   5092 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   5093 //
   5094 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5095 //
   5096 // This file contains Original Code and/or Modifications of Original Code
   5097 // as defined in and that are subject to the Apple Public Source License
   5098 // Version 2.0 (the 'License'). You may not use this file except in
   5099 // compliance with the License. The rights granted to you under the License
   5100 // may not be used to create, or enable the creation or redistribution of,
   5101 // unlawful or unlicensed copies of an Apple operating system, or to
   5102 // circumvent, violate, or enable the circumvention or violation of, any
   5103 // terms of an Apple operating system software license agreement.
   5104 //
   5105 // Please obtain a copy of the License at
   5106 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5107 //
   5108 // The Original Code and all software distributed under the License are
   5109 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5110 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5111 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5112 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5113 // Please see the License for the specific language governing rights and
   5114 // limitations under the License.
   5115 //
   5116 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5117 
   5118 // XXX Not explicitly defined by POSIX, but function return types are
   5119 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   5120 //
   5121 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5122 //
   5123 // This file contains Original Code and/or Modifications of Original Code
   5124 // as defined in and that are subject to the Apple Public Source License
   5125 // Version 2.0 (the 'License'). You may not use this file except in
   5126 // compliance with the License. The rights granted to you under the License
   5127 // may not be used to create, or enable the creation or redistribution of,
   5128 // unlawful or unlicensed copies of an Apple operating system, or to
   5129 // circumvent, violate, or enable the circumvention or violation of, any
   5130 // terms of an Apple operating system software license agreement.
   5131 //
   5132 // Please obtain a copy of the License at
   5133 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5134 //
   5135 // The Original Code and all software distributed under the License are
   5136 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5137 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5138 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5139 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5140 // Please see the License for the specific language governing rights and
   5141 // limitations under the License.
   5142 //
   5143 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5144 
   5145 // XXX Not explicitly defined by POSIX, but function return types are
   5146 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   5147 //
   5148 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5149 //
   5150 // This file contains Original Code and/or Modifications of Original Code
   5151 // as defined in and that are subject to the Apple Public Source License
   5152 // Version 2.0 (the 'License'). You may not use this file except in
   5153 // compliance with the License. The rights granted to you under the License
   5154 // may not be used to create, or enable the creation or redistribution of,
   5155 // unlawful or unlicensed copies of an Apple operating system, or to
   5156 // circumvent, violate, or enable the circumvention or violation of, any
   5157 // terms of an Apple operating system software license agreement.
   5158 //
   5159 // Please obtain a copy of the License at
   5160 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5161 //
   5162 // The Original Code and all software distributed under the License are
   5163 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5164 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5165 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5166 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5167 // Please see the License for the specific language governing rights and
   5168 // limitations under the License.
   5169 //
   5170 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5171 
   5172 // [XSI] The iovec structure shall be defined as described in <sys/uio.h>.
   5173 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   5174 //
   5175 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5176 //
   5177 // This file contains Original Code and/or Modifications of Original Code
   5178 // as defined in and that are subject to the Apple Public Source License
   5179 // Version 2.0 (the 'License'). You may not use this file except in
   5180 // compliance with the License. The rights granted to you under the License
   5181 // may not be used to create, or enable the creation or redistribution of,
   5182 // unlawful or unlicensed copies of an Apple operating system, or to
   5183 // circumvent, violate, or enable the circumvention or violation of, any
   5184 // terms of an Apple operating system software license agreement.
   5185 //
   5186 // Please obtain a copy of the License at
   5187 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5188 //
   5189 // The Original Code and all software distributed under the License are
   5190 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5191 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5192 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5193 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5194 // Please see the License for the specific language governing rights and
   5195 // limitations under the License.
   5196 //
   5197 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5198 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   5199 //
   5200 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5201 //
   5202 // This file contains Original Code and/or Modifications of Original Code
   5203 // as defined in and that are subject to the Apple Public Source License
   5204 // Version 2.0 (the 'License'). You may not use this file except in
   5205 // compliance with the License. The rights granted to you under the License
   5206 // may not be used to create, or enable the creation or redistribution of,
   5207 // unlawful or unlicensed copies of an Apple operating system, or to
   5208 // circumvent, violate, or enable the circumvention or violation of, any
   5209 // terms of an Apple operating system software license agreement.
   5210 //
   5211 // Please obtain a copy of the License at
   5212 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5213 //
   5214 // The Original Code and all software distributed under the License are
   5215 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5216 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5217 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5218 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5219 // Please see the License for the specific language governing rights and
   5220 // limitations under the License.
   5221 //
   5222 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5223 type Iovec = struct {
   5224 	Fiov_base uintptr
   5225 	Fiov_len  Size_t
   5226 } /* _iovec_t.h:31:1 */
   5227 
   5228 // Types
   5229 
   5230 // Option flags per-socket.
   5231 //  (ATOMIC proto)
   5232 
   5233 // Additional options, not kept in so_options.
   5234 
   5235 // Network Service Type for option SO_NET_SERVICE_TYPE
   5236 //
   5237 // The vast majority of sockets should use Best Effort that is the default
   5238 // Network Service Type. Other Network Service Types have to be used only if
   5239 // the traffic actually matches the description of the Network Service Type.
   5240 //
   5241 // Network Service Types do not represent priorities but rather describe
   5242 // different categories of delay, jitter and loss parameters.
   5243 // Those parameters may influence protocols from layer 4 protocols like TCP
   5244 // to layer 2 protocols like Wi-Fi. The Network Service Type can determine
   5245 // how the traffic is queued and scheduled by the host networking stack and
   5246 // by other entities on the network like switches and routers. For example
   5247 // for Wi-Fi, the Network Service Type can select the marking of the
   5248 // layer 2 packet with the appropriate WMM Access Category.
   5249 //
   5250 // There is no point in attempting to game the system and use
   5251 // a Network Service Type that does not correspond to the actual
   5252 // traffic characteristic but one that seems to have a higher precedence.
   5253 // The reason is that for service classes that have lower tolerance
   5254 // for delay and jitter, the queues size is lower than for service
   5255 // classes that are more tolerant to delay and jitter.
   5256 //
   5257 // For example using a voice service type for bulk data transfer will lead
   5258 // to disastrous results as soon as congestion happens because the voice
   5259 // queue overflows and packets get dropped. This is not only bad for the bulk
   5260 // data transfer but it is also bad for VoIP apps that legitimately are using
   5261 // the voice  service type.
   5262 //
   5263 // The characteristics of the Network Service Types are based on the service
   5264 // classes defined in RFC 4594 "Configuration Guidelines for DiffServ Service
   5265 // Classes"
   5266 //
   5267 // When system detects the outgoing interface belongs to a DiffServ domain
   5268 // that follows the recommendation of the IETF draft "Guidelines for DiffServ to
   5269 // IEEE 802.11 Mapping", the packet will marked at layer 3 with a DSCP value
   5270 // that corresponds to Network Service Type.
   5271 //
   5272 // NET_SERVICE_TYPE_BE
   5273 //	"Best Effort", unclassified/standard.  This is the default service
   5274 //	class and cover the majority of the traffic.
   5275 //
   5276 // NET_SERVICE_TYPE_BK
   5277 //	"Background", high delay tolerant, loss tolerant. elastic flow,
   5278 //	variable size & long-lived. E.g: non-interactive network bulk transfer
   5279 //	like synching or backup.
   5280 //
   5281 // NET_SERVICE_TYPE_RD
   5282 //	"Responsive Data", a notch higher than "Best Effort", medium delay
   5283 //	tolerant, elastic & inelastic flow, bursty, long-lived. E.g. email,
   5284 //	instant messaging, for which there is a sense of interactivity and
   5285 //	urgency (user waiting for output).
   5286 //
   5287 // NET_SERVICE_TYPE_OAM
   5288 //	"Operations, Administration, and Management", medium delay tolerant,
   5289 //	low-medium loss tolerant, elastic & inelastic flows, variable size.
   5290 //	E.g. VPN tunnels.
   5291 //
   5292 // NET_SERVICE_TYPE_AV
   5293 //	"Multimedia Audio/Video Streaming", medium delay tolerant, low-medium
   5294 //	loss tolerant, elastic flow, constant packet interval, variable rate
   5295 //	and size. E.g. video and audio playback with buffering.
   5296 //
   5297 // NET_SERVICE_TYPE_RV
   5298 //	"Responsive Multimedia Audio/Video", low delay tolerant, low-medium
   5299 //	loss tolerant, elastic flow, variable packet interval, rate and size.
   5300 //	E.g. screen sharing.
   5301 //
   5302 // NET_SERVICE_TYPE_VI
   5303 //	"Interactive Video", low delay tolerant, low-medium loss tolerant,
   5304 //	elastic flow, constant packet interval, variable rate & size. E.g.
   5305 //	video telephony.
   5306 //
   5307 // NET_SERVICE_TYPE_SIG
   5308 //	"Signaling", low delay tolerant, low loss tolerant, inelastic flow,
   5309 //	jitter tolerant, rate is bursty but short, variable size. E.g. SIP.
   5310 //
   5311 // NET_SERVICE_TYPE_VO
   5312 //	"Interactive Voice", very low delay tolerant, very low loss tolerant,
   5313 //	inelastic flow, constant packet rate, somewhat fixed size.
   5314 //	E.g. VoIP.
   5315 
   5316 // These are supported values for SO_NETSVC_MARKING_LEVEL
   5317 
   5318 type Sae_associd_t = X__uint32_t /* socket.h:289:20 */
   5319 
   5320 type Sae_connid_t = X__uint32_t /* socket.h:293:20 */
   5321 
   5322 // connectx() flag parameters
   5323 
   5324 // sockaddr endpoints
   5325 type Sa_endpoints = struct {
   5326 	Fsae_srcif      uint32
   5327 	F__ccgo_pad1    [4]byte
   5328 	Fsae_srcaddr    uintptr
   5329 	Fsae_srcaddrlen Socklen_t
   5330 	F__ccgo_pad2    [4]byte
   5331 	Fsae_dstaddr    uintptr
   5332 	Fsae_dstaddrlen Socklen_t
   5333 	F__ccgo_pad3    [4]byte
   5334 } /* socket.h:303:9 */
   5335 
   5336 // connectx() flag parameters
   5337 
   5338 // sockaddr endpoints
   5339 type Sockaddr = struct {
   5340 	Fsa_len    X__uint8_t
   5341 	Fsa_family Sa_family_t
   5342 	Fsa_data   [14]int8
   5343 } /* socket.h:303:9 */
   5344 
   5345 // connectx() flag parameters
   5346 
   5347 // sockaddr endpoints
   5348 type Sa_endpoints_t = Sa_endpoints /* socket.h:309:3 */
   5349 
   5350 // Structure used for manipulating linger option.
   5351 type Linger = struct {
   5352 	Fl_onoff  int32
   5353 	Fl_linger int32
   5354 } /* socket.h:315:1 */
   5355 
   5356 // Structure to control non-portable Sockets extension to POSIX
   5357 type So_np_extensions = struct {
   5358 	Fnpx_flags U_int32_t
   5359 	Fnpx_mask  U_int32_t
   5360 } /* socket.h:333:1 */
   5361 
   5362 // Structure used by kernel to pass protocol
   5363 // information in raw sockets.
   5364 type Sockproto = struct {
   5365 	Fsp_family   X__uint16_t
   5366 	Fsp_protocol X__uint16_t
   5367 } /* socket.h:420:1 */
   5368 
   5369 // RFC 2553: protocol-independent placeholder for socket addresses
   5370 
   5371 // [XSI] sockaddr_storage
   5372 type Sockaddr_storage = struct {
   5373 	Fss_len     X__uint8_t
   5374 	Fss_family  Sa_family_t
   5375 	F__ss_pad1  [6]int8
   5376 	F__ss_align X__int64_t
   5377 	F__ss_pad2  [112]int8
   5378 } /* socket.h:440:1 */
   5379 
   5380 // Protocol families, same as address families for now.
   5381 
   5382 // These do not have socket-layer support:
   5383 
   5384 // Definitions for network related sysctl, CTL_NET.
   5385 //
   5386 // Second level is protocol family.
   5387 // Third level is protocol number.
   5388 //
   5389 // Further levels are defined by the individual families below.
   5390 
   5391 // PF_ROUTE - Routing table
   5392 //
   5393 // Three additional levels are defined:
   5394 //	Fourth: address family, 0 is wildcard
   5395 //	Fifth: type of info, defined below
   5396 //	Sixth: flag(s) to mask with for NET_RT_FLAGS
   5397 // Allows read access non-local host's MAC address
   5398 // if the process has neighbor cache entitlement.
   5399 
   5400 // Maximum queue length specifiable by listen.
   5401 
   5402 // [XSI] Message header for recvmsg and sendmsg calls.
   5403 // Used value-result for recvmsg, value only for sendmsg.
   5404 type Msghdr = struct {
   5405 	Fmsg_name       uintptr
   5406 	Fmsg_namelen    Socklen_t
   5407 	F__ccgo_pad1    [4]byte
   5408 	Fmsg_iov        uintptr
   5409 	Fmsg_iovlen     int32
   5410 	F__ccgo_pad2    [4]byte
   5411 	Fmsg_control    uintptr
   5412 	Fmsg_controllen Socklen_t
   5413 	Fmsg_flags      int32
   5414 } /* socket.h:546:1 */
   5415 
   5416 // Header for ancillary data objects in msg_control buffer.
   5417 // Used for additional information with/about a datagram
   5418 // not expressible by flags.  The format is a sequence
   5419 // of message elements headed by cmsghdr structures.
   5420 type Cmsghdr = struct {
   5421 	Fcmsg_len   Socklen_t
   5422 	Fcmsg_level int32
   5423 	Fcmsg_type  int32
   5424 } /* socket.h:587:1 */
   5425 
   5426 // given pointer to struct cmsghdr, return pointer to data
   5427 
   5428 // RFC 2292 requires to check msg_controllen, in case that the kernel returns
   5429 // an empty list for some reasons.
   5430 
   5431 // Given pointer to struct cmsghdr, return pointer to next cmsghdr
   5432 // RFC 2292 says that CMSG_NXTHDR(mhdr, NULL) is equivalent to CMSG_FIRSTHDR(mhdr)
   5433 
   5434 // RFC 2292 additions
   5435 
   5436 // "Socket"-level control message types:
   5437 
   5438 // howto arguments for shutdown(2), specified by Posix.1g.
   5439 
   5440 // sendfile(2) header/trailer struct
   5441 type Sf_hdtr = struct {
   5442 	Fheaders     uintptr
   5443 	Fhdr_cnt     int32
   5444 	F__ccgo_pad1 [4]byte
   5445 	Ftrailers    uintptr
   5446 	Ftrl_cnt     int32
   5447 	F__ccgo_pad2 [4]byte
   5448 } /* socket.h:678:1 */
   5449 
   5450 // The following two #includes insure htonl and family are defined
   5451 // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
   5452 //
   5453 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5454 //
   5455 // This file contains Original Code and/or Modifications of Original Code
   5456 // as defined in and that are subject to the Apple Public Source License
   5457 // Version 2.0 (the 'License'). You may not use this file except in
   5458 // compliance with the License. The rights granted to you under the License
   5459 // may not be used to create, or enable the creation or redistribution of,
   5460 // unlawful or unlicensed copies of an Apple operating system, or to
   5461 // circumvent, violate, or enable the circumvention or violation of, any
   5462 // terms of an Apple operating system software license agreement.
   5463 //
   5464 // Please obtain a copy of the License at
   5465 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5466 //
   5467 // The Original Code and all software distributed under the License are
   5468 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5469 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5470 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5471 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5472 // Please see the License for the specific language governing rights and
   5473 // limitations under the License.
   5474 //
   5475 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5476 // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   5477 // Copyright (c) 2004, 2006 Apple Computer, Inc. All rights reserved.
   5478 //
   5479 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5480 //
   5481 // This file contains Original Code and/or Modifications of Original Code
   5482 // as defined in and that are subject to the Apple Public Source License
   5483 // Version 2.0 (the 'License'). You may not use this file except in
   5484 // compliance with the License. The rights granted to you under the License
   5485 // may not be used to create, or enable the creation or redistribution of,
   5486 // unlawful or unlicensed copies of an Apple operating system, or to
   5487 // circumvent, violate, or enable the circumvention or violation of, any
   5488 // terms of an Apple operating system software license agreement.
   5489 //
   5490 // Please obtain a copy of the License at
   5491 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5492 //
   5493 // The Original Code and all software distributed under the License are
   5494 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5495 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5496 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5497 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5498 // Please see the License for the specific language governing rights and
   5499 // limitations under the License.
   5500 //
   5501 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5502 
   5503 // Copyright (c) 1995 NeXT Computer, Inc. All rights reserved.
   5504 // Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
   5505 //
   5506 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5507 //
   5508 // This file contains Original Code and/or Modifications of Original Code
   5509 // as defined in and that are subject to the Apple Public Source License
   5510 // Version 2.0 (the 'License'). You may not use this file except in
   5511 // compliance with the License. The rights granted to you under the License
   5512 // may not be used to create, or enable the creation or redistribution of,
   5513 // unlawful or unlicensed copies of an Apple operating system, or to
   5514 // circumvent, violate, or enable the circumvention or violation of, any
   5515 // terms of an Apple operating system software license agreement.
   5516 //
   5517 // Please obtain a copy of the License at
   5518 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5519 //
   5520 // The Original Code and all software distributed under the License are
   5521 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5522 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5523 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5524 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5525 // Please see the License for the specific language governing rights and
   5526 // limitations under the License.
   5527 //
   5528 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5529 // Copyright (c) 1987, 1991, 1993
   5530 //	The Regents of the University of California.  All rights reserved.
   5531 //
   5532 // Redistribution and use in source and binary forms, with or without
   5533 // modification, are permitted provided that the following conditions
   5534 // are met:
   5535 // 1. Redistributions of source code must retain the above copyright
   5536 //    notice, this list of conditions and the following disclaimer.
   5537 // 2. Redistributions in binary form must reproduce the above copyright
   5538 //    notice, this list of conditions and the following disclaimer in the
   5539 //    documentation and/or other materials provided with the distribution.
   5540 // 3. All advertising materials mentioning features or use of this software
   5541 //    must display the following acknowledgement:
   5542 //	This product includes software developed by the University of
   5543 //	California, Berkeley and its contributors.
   5544 // 4. Neither the name of the University nor the names of its contributors
   5545 //    may be used to endorse or promote products derived from this software
   5546 //    without specific prior written permission.
   5547 //
   5548 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   5549 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   5550 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   5551 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   5552 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   5553 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   5554 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   5555 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   5556 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   5557 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   5558 // SUCH DAMAGE.
   5559 
   5560 // Constants and structures defined by the internet system,
   5561 // Per RFC 790, September 1981, and numerous additions.
   5562 
   5563 // Protocols (RFC 1700)
   5564 // 55-57: Unassigned
   5565 // 101-252: Partly Unassigned
   5566 // 253-254: Experimentation and testing; 255: Reserved (RFC3692)
   5567 // BSD Private, local use, namespace incursion
   5568 
   5569 // last return value of *_input(), meaning "all job for this pkt is done".
   5570 
   5571 // Local port number conventions:
   5572 //
   5573 // When a user does a bind(2) or connect(2) with a port number of zero,
   5574 // a non-conflicting local port address is chosen.
   5575 // The default range is IPPORT_RESERVED through
   5576 // IPPORT_USERRESERVED, although that is settable by sysctl.
   5577 //
   5578 // A user may set the IPPROTO_IP option IP_PORTRANGE to change this
   5579 // default assignment range.
   5580 //
   5581 // The value IP_PORTRANGE_DEFAULT causes the default behavior.
   5582 //
   5583 // The value IP_PORTRANGE_HIGH changes the range of candidate port numbers
   5584 // into the "high" range.  These are reserved for client outbound connections
   5585 // which do not want to be filtered by any firewalls.
   5586 //
   5587 // The value IP_PORTRANGE_LOW changes the range to the "low" are
   5588 // that is (by convention) restricted to privileged processes.  This
   5589 // convention is based on "vouchsafe" principles only.  It is only secure
   5590 // if you trust the remote host to restrict these ports.
   5591 //
   5592 // The default range of ports and the high range can be changed by
   5593 // sysctl(3).  (net.inet.ip.port{hi,low}{first,last}_auto)
   5594 //
   5595 // Changing those values has bad security implications if you are
   5596 // using a a stateless firewall that is allowing packets outside of that
   5597 // range in order to allow transparent outgoing connections.
   5598 //
   5599 // Such a firewall configuration will generally depend on the use of these
   5600 // default values.  If you change them, you may find your Security
   5601 // Administrator looking for you with a heavy object.
   5602 //
   5603 // For a slightly more orthodox text view on this:
   5604 //
   5605 //            ftp://ftp.isi.edu/in-notes/iana/assignments/port-numbers
   5606 //
   5607 //    port numbers are divided into three ranges:
   5608 //
   5609 //                0 -  1023 Well Known Ports
   5610 //             1024 - 49151 Registered Ports
   5611 //            49152 - 65535 Dynamic and/or Private Ports
   5612 //
   5613 
   5614 // Ports < IPPORT_RESERVED are reserved for
   5615 // privileged processes (e.g. root).         (IP_PORTRANGE_LOW)
   5616 // Ports > IPPORT_USERRESERVED are reserved
   5617 // for servers, not necessarily privileged.  (IP_PORTRANGE_DEFAULT)
   5618 
   5619 // Default local port range to use by setting IP_PORTRANGE_HIGH
   5620 
   5621 // Scanning for a free reserved port return a value below IPPORT_RESERVED,
   5622 // but higher than IPPORT_RESERVEDSTART.  Traditionally the start value was
   5623 // 512, but that conflicts with some well-known-services that firewalls may
   5624 // have a fit if we use.
   5625 
   5626 // Internet address (a structure for historical reasons)
   5627 type In_addr = struct{ Fs_addr In_addr_t } /* in.h:301:1 */
   5628 
   5629 // Definitions of bits in internet address integers.
   5630 // On subnets, the decomposition of addresses to host and net parts
   5631 // is done according to subnet mask, not the masks here.
   5632 
   5633 // Socket address, internet style.
   5634 type Sockaddr_in = struct {
   5635 	Fsin_len    X__uint8_t
   5636 	Fsin_family Sa_family_t
   5637 	Fsin_port   In_port_t
   5638 	Fsin_addr   struct{ Fs_addr In_addr_t }
   5639 	Fsin_zero   [8]int8
   5640 } /* in.h:375:1 */
   5641 
   5642 // Structure used to describe IP options.
   5643 // Used to store options internally, to pass them to a process,
   5644 // or to restore options retrieved earlier.
   5645 // The ip_dst is used for the first-hop gateway when using a source route
   5646 // (this gets put into the header proper).
   5647 type Ip_opts = struct {
   5648 	Fip_dst  struct{ Fs_addr In_addr_t }
   5649 	Fip_opts [40]int8
   5650 } /* in.h:398:1 */
   5651 
   5652 // Options for use with [gs]etsockopt at the IP level.
   5653 // First word of comment is data type; bool is stored in int.
   5654 // for IPSEC
   5655 
   5656 // These older firewall socket option codes are maintained for backward compatibility.
   5657 
   5658 // IPv4 Source Filter Multicast API [RFC3678]
   5659 
   5660 // The following option is private; do not use it from user applications.
   5661 
   5662 // Protocol Independent Multicast API [RFC3678]
   5663 
   5664 // Defaults and limits for options
   5665 
   5666 // The imo_membership vector for each socket is now dynamically allocated at
   5667 // run-time, bounded by USHRT_MAX, and is reallocated when needed, sized
   5668 // according to a power-of-two increment.
   5669 
   5670 // Default resource limits for IPv4 multicast source filtering.
   5671 // These may be modified by sysctl.
   5672 
   5673 // Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
   5674 type Ip_mreq = struct {
   5675 	Fimr_multiaddr struct{ Fs_addr In_addr_t }
   5676 	Fimr_interface struct{ Fs_addr In_addr_t }
   5677 } /* in.h:506:1 */
   5678 
   5679 // Modified argument structure for IP_MULTICAST_IF, obtained from Linux.
   5680 // This is used to specify an interface index for multicast sends, as
   5681 // the IPv4 legacy APIs do not support this (unless IP_SENDIF is available).
   5682 type Ip_mreqn = struct {
   5683 	Fimr_multiaddr struct{ Fs_addr In_addr_t }
   5684 	Fimr_address   struct{ Fs_addr In_addr_t }
   5685 	Fimr_ifindex   int32
   5686 } /* in.h:516:1 */
   5687 
   5688 // Argument structure for IPv4 Multicast Source Filter APIs. [RFC3678]
   5689 type Ip_mreq_source = struct {
   5690 	Fimr_multiaddr  struct{ Fs_addr In_addr_t }
   5691 	Fimr_sourceaddr struct{ Fs_addr In_addr_t }
   5692 	Fimr_interface  struct{ Fs_addr In_addr_t }
   5693 } /* in.h:526:1 */
   5694 
   5695 // Argument structures for Protocol-Independent Multicast Source
   5696 // Filter APIs. [RFC3678]
   5697 type Group_req = struct {
   5698 	Fgr_interface Uint32_t
   5699 	F__ccgo_pad1  [4]byte
   5700 	Fgr_group     struct {
   5701 		Fss_len     X__uint8_t
   5702 		Fss_family  Sa_family_t
   5703 		F__ss_pad1  [6]int8
   5704 		F__ss_align X__int64_t
   5705 		F__ss_pad2  [112]int8
   5706 	}
   5707 } /* in.h:536:1 */
   5708 
   5709 type Group_source_req = struct {
   5710 	Fgsr_interface Uint32_t
   5711 	F__ccgo_pad1   [4]byte
   5712 	Fgsr_group     struct {
   5713 		Fss_len     X__uint8_t
   5714 		Fss_family  Sa_family_t
   5715 		F__ss_pad1  [6]int8
   5716 		F__ss_align X__int64_t
   5717 		F__ss_pad2  [112]int8
   5718 	}
   5719 	Fgsr_source struct {
   5720 		Fss_len     X__uint8_t
   5721 		Fss_family  Sa_family_t
   5722 		F__ss_pad1  [6]int8
   5723 		F__ss_align X__int64_t
   5724 		F__ss_pad2  [112]int8
   5725 	}
   5726 } /* in.h:541:1 */
   5727 
   5728 // The following structure is private; do not use it from user applications.
   5729 // It is used to communicate IP_MSFILTER/IPV6_MSFILTER information between
   5730 // the RFC 3678 libc functions and the kernel.
   5731 type X__msfilterreq = struct {
   5732 	Fmsfr_ifindex Uint32_t
   5733 	Fmsfr_fmode   Uint32_t
   5734 	Fmsfr_nsrcs   Uint32_t
   5735 	F__msfr_align Uint32_t
   5736 	Fmsfr_group   struct {
   5737 		Fss_len     X__uint8_t
   5738 		Fss_family  Sa_family_t
   5739 		F__ss_pad1  [6]int8
   5740 		F__ss_align X__int64_t
   5741 		F__ss_pad2  [112]int8
   5742 	}
   5743 	Fmsfr_srcs uintptr
   5744 } /* in.h:554:1 */
   5745 
   5746 // Filter modes; also used to represent per-socket filter mode internally.
   5747 
   5748 // Argument for IP_PORTRANGE:
   5749 // - which range to search when port is unspecified at bind() or connect()
   5750 
   5751 // IP_PKTINFO: Packet information (equivalent to  RFC2292 sec 5 for IPv4)
   5752 // This structure is used for
   5753 //
   5754 //  1. Receiving ancilliary data about the datagram if IP_PKTINFO sockopt is
   5755 //     set on the socket. In this case ipi_ifindex will contain the interface
   5756 //     index the datagram was received on, ipi_addr is the IP address the
   5757 //     datagram was received to.
   5758 //
   5759 //  2. Sending a datagram using a specific interface or IP source address.
   5760 //     if ipi_ifindex is set to non-zero when in_pktinfo is passed as
   5761 //     ancilliary data of type IP_PKTINFO, this will be used as the source
   5762 //     interface to send the datagram from. If ipi_ifindex is null, ip_spec_dst
   5763 //     will be used for the source address.
   5764 //
   5765 //     Note: if IP_BOUND_IF is set on the socket, ipi_ifindex in the ancillary
   5766 //     IP_PKTINFO option silently overrides the bound interface when it is
   5767 //     specified during send time.
   5768 type In_pktinfo = struct {
   5769 	Fipi_ifindex  uint32
   5770 	Fipi_spec_dst struct{ Fs_addr In_addr_t }
   5771 	Fipi_addr     struct{ Fs_addr In_addr_t }
   5772 } /* in.h:617:1 */
   5773 
   5774 // Definitions for inet sysctl operations.
   5775 //
   5776 // Third level is protocol number.
   5777 // Fourth level is desired variable within that protocol.
   5778 
   5779 // Names for IP sysctl objects
   5780 
   5781 // INET6 stuff
   5782 // Copyright (c) 2008-2018 Apple Inc. All rights reserved.
   5783 //
   5784 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5785 //
   5786 // This file contains Original Code and/or Modifications of Original Code
   5787 // as defined in and that are subject to the Apple Public Source License
   5788 // Version 2.0 (the 'License'). You may not use this file except in
   5789 // compliance with the License. The rights granted to you under the License
   5790 // may not be used to create, or enable the creation or redistribution of,
   5791 // unlawful or unlicensed copies of an Apple operating system, or to
   5792 // circumvent, violate, or enable the circumvention or violation of, any
   5793 // terms of an Apple operating system software license agreement.
   5794 //
   5795 // Please obtain a copy of the License at
   5796 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5797 //
   5798 // The Original Code and all software distributed under the License are
   5799 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5800 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5801 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5802 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5803 // Please see the License for the specific language governing rights and
   5804 // limitations under the License.
   5805 //
   5806 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5807 
   5808 // Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
   5809 // All rights reserved.
   5810 //
   5811 // Redistribution and use in source and binary forms, with or without
   5812 // modification, are permitted provided that the following conditions
   5813 // are met:
   5814 // 1. Redistributions of source code must retain the above copyright
   5815 //    notice, this list of conditions and the following disclaimer.
   5816 // 2. Redistributions in binary form must reproduce the above copyright
   5817 //    notice, this list of conditions and the following disclaimer in the
   5818 //    documentation and/or other materials provided with the distribution.
   5819 // 3. Neither the name of the project nor the names of its contributors
   5820 //    may be used to endorse or promote products derived from this software
   5821 //    without specific prior written permission.
   5822 //
   5823 // THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
   5824 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   5825 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   5826 // ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
   5827 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   5828 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   5829 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   5830 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   5831 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   5832 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   5833 // SUCH DAMAGE.
   5834 
   5835 // Copyright (c) 1982, 1986, 1990, 1993
   5836 //	The Regents of the University of California.  All rights reserved.
   5837 //
   5838 // Redistribution and use in source and binary forms, with or without
   5839 // modification, are permitted provided that the following conditions
   5840 // are met:
   5841 // 1. Redistributions of source code must retain the above copyright
   5842 //    notice, this list of conditions and the following disclaimer.
   5843 // 2. Redistributions in binary form must reproduce the above copyright
   5844 //    notice, this list of conditions and the following disclaimer in the
   5845 //    documentation and/or other materials provided with the distribution.
   5846 // 3. All advertising materials mentioning features or use of this software
   5847 //    must display the following acknowledgement:
   5848 //	This product includes software developed by the University of
   5849 //	California, Berkeley and its contributors.
   5850 // 4. Neither the name of the University nor the names of its contributors
   5851 //    may be used to endorse or promote products derived from this software
   5852 //    without specific prior written permission.
   5853 //
   5854 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   5855 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   5856 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   5857 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   5858 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   5859 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   5860 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   5861 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   5862 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   5863 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   5864 // SUCH DAMAGE.
   5865 //
   5866 //	@(#)in.h	8.3 (Berkeley) 1/3/94
   5867 
   5868 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
   5869 //
   5870 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5871 //
   5872 // This file contains Original Code and/or Modifications of Original Code
   5873 // as defined in and that are subject to the Apple Public Source License
   5874 // Version 2.0 (the 'License'). You may not use this file except in
   5875 // compliance with the License. The rights granted to you under the License
   5876 // may not be used to create, or enable the creation or redistribution of,
   5877 // unlawful or unlicensed copies of an Apple operating system, or to
   5878 // circumvent, violate, or enable the circumvention or violation of, any
   5879 // terms of an Apple operating system software license agreement.
   5880 //
   5881 // Please obtain a copy of the License at
   5882 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5883 //
   5884 // The Original Code and all software distributed under the License are
   5885 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5886 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5887 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5888 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5889 // Please see the License for the specific language governing rights and
   5890 // limitations under the License.
   5891 //
   5892 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5893 
   5894 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   5895 //
   5896 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5897 //
   5898 // This file contains Original Code and/or Modifications of Original Code
   5899 // as defined in and that are subject to the Apple Public Source License
   5900 // Version 2.0 (the 'License'). You may not use this file except in
   5901 // compliance with the License. The rights granted to you under the License
   5902 // may not be used to create, or enable the creation or redistribution of,
   5903 // unlawful or unlicensed copies of an Apple operating system, or to
   5904 // circumvent, violate, or enable the circumvention or violation of, any
   5905 // terms of an Apple operating system software license agreement.
   5906 //
   5907 // Please obtain a copy of the License at
   5908 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5909 //
   5910 // The Original Code and all software distributed under the License are
   5911 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5912 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5913 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5914 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5915 // Please see the License for the specific language governing rights and
   5916 // limitations under the License.
   5917 //
   5918 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5919 
   5920 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   5921 //
   5922 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5923 //
   5924 // This file contains Original Code and/or Modifications of Original Code
   5925 // as defined in and that are subject to the Apple Public Source License
   5926 // Version 2.0 (the 'License'). You may not use this file except in
   5927 // compliance with the License. The rights granted to you under the License
   5928 // may not be used to create, or enable the creation or redistribution of,
   5929 // unlawful or unlicensed copies of an Apple operating system, or to
   5930 // circumvent, violate, or enable the circumvention or violation of, any
   5931 // terms of an Apple operating system software license agreement.
   5932 //
   5933 // Please obtain a copy of the License at
   5934 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   5935 //
   5936 // The Original Code and all software distributed under the License are
   5937 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   5938 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   5939 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   5940 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   5941 // Please see the License for the specific language governing rights and
   5942 // limitations under the License.
   5943 //
   5944 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   5945 
   5946 // Identification of the network protocol stack
   5947 // for *BSD-current/release: http://www.kame.net/dev/cvsweb.cgi/kame/COVERAGE
   5948 // has the table of implementation/integration differences.
   5949 
   5950 // Local port number conventions:
   5951 //
   5952 // Ports < IPPORT_RESERVED are reserved for privileged processes (e.g. root),
   5953 // unless a kernel is compiled with IPNOPRIVPORTS defined.
   5954 //
   5955 // When a user does a bind(2) or connect(2) with a port number of zero,
   5956 // a non-conflicting local port address is chosen.
   5957 //
   5958 // The default range is IPPORT_ANONMIN to IPPORT_ANONMAX, although
   5959 // that is settable by sysctl(3); net.inet.ip.anonportmin and
   5960 // net.inet.ip.anonportmax respectively.
   5961 //
   5962 // A user may set the IPPROTO_IP option IP_PORTRANGE to change this
   5963 // default assignment range.
   5964 //
   5965 // The value IP_PORTRANGE_DEFAULT causes the default behavior.
   5966 //
   5967 // The value IP_PORTRANGE_HIGH is the same as IP_PORTRANGE_DEFAULT,
   5968 // and exists only for FreeBSD compatibility purposes.
   5969 //
   5970 // The value IP_PORTRANGE_LOW changes the range to the "low" are
   5971 // that is (by convention) restricted to privileged processes.
   5972 // This convention is based on "vouchsafe" principles only.
   5973 // It is only secure if you trust the remote host to restrict these ports.
   5974 // The range is IPPORT_RESERVEDMIN to IPPORT_RESERVEDMAX.
   5975 
   5976 // IPv6 address
   5977 type In6_addr = struct {
   5978 	F__u6_addr struct {
   5979 		F__ccgo_pad1 [0]uint32
   5980 		F__u6_addr8  [16]X__uint8_t
   5981 	}
   5982 } /* in6.h:151:9 */
   5983 
   5984 // Definitions for inet sysctl operations.
   5985 //
   5986 // Third level is protocol number.
   5987 // Fourth level is desired variable within that protocol.
   5988 
   5989 // Names for IP sysctl objects
   5990 
   5991 // INET6 stuff
   5992 // Copyright (c) 2008-2018 Apple Inc. All rights reserved.
   5993 //
   5994 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   5995 //
   5996 // This file contains Original Code and/or Modifications of Original Code
   5997 // as defined in and that are subject to the Apple Public Source License
   5998 // Version 2.0 (the 'License'). You may not use this file except in
   5999 // compliance with the License. The rights granted to you under the License
   6000 // may not be used to create, or enable the creation or redistribution of,
   6001 // unlawful or unlicensed copies of an Apple operating system, or to
   6002 // circumvent, violate, or enable the circumvention or violation of, any
   6003 // terms of an Apple operating system software license agreement.
   6004 //
   6005 // Please obtain a copy of the License at
   6006 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   6007 //
   6008 // The Original Code and all software distributed under the License are
   6009 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   6010 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   6011 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   6012 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   6013 // Please see the License for the specific language governing rights and
   6014 // limitations under the License.
   6015 //
   6016 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   6017 
   6018 // Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
   6019 // All rights reserved.
   6020 //
   6021 // Redistribution and use in source and binary forms, with or without
   6022 // modification, are permitted provided that the following conditions
   6023 // are met:
   6024 // 1. Redistributions of source code must retain the above copyright
   6025 //    notice, this list of conditions and the following disclaimer.
   6026 // 2. Redistributions in binary form must reproduce the above copyright
   6027 //    notice, this list of conditions and the following disclaimer in the
   6028 //    documentation and/or other materials provided with the distribution.
   6029 // 3. Neither the name of the project nor the names of its contributors
   6030 //    may be used to endorse or promote products derived from this software
   6031 //    without specific prior written permission.
   6032 //
   6033 // THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
   6034 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   6035 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   6036 // ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
   6037 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   6038 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   6039 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   6040 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   6041 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   6042 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   6043 // SUCH DAMAGE.
   6044 
   6045 // Copyright (c) 1982, 1986, 1990, 1993
   6046 //	The Regents of the University of California.  All rights reserved.
   6047 //
   6048 // Redistribution and use in source and binary forms, with or without
   6049 // modification, are permitted provided that the following conditions
   6050 // are met:
   6051 // 1. Redistributions of source code must retain the above copyright
   6052 //    notice, this list of conditions and the following disclaimer.
   6053 // 2. Redistributions in binary form must reproduce the above copyright
   6054 //    notice, this list of conditions and the following disclaimer in the
   6055 //    documentation and/or other materials provided with the distribution.
   6056 // 3. All advertising materials mentioning features or use of this software
   6057 //    must display the following acknowledgement:
   6058 //	This product includes software developed by the University of
   6059 //	California, Berkeley and its contributors.
   6060 // 4. Neither the name of the University nor the names of its contributors
   6061 //    may be used to endorse or promote products derived from this software
   6062 //    without specific prior written permission.
   6063 //
   6064 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   6065 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   6066 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   6067 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   6068 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   6069 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   6070 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   6071 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   6072 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   6073 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   6074 // SUCH DAMAGE.
   6075 //
   6076 //	@(#)in.h	8.3 (Berkeley) 1/3/94
   6077 
   6078 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
   6079 //
   6080 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   6081 //
   6082 // This file contains Original Code and/or Modifications of Original Code
   6083 // as defined in and that are subject to the Apple Public Source License
   6084 // Version 2.0 (the 'License'). You may not use this file except in
   6085 // compliance with the License. The rights granted to you under the License
   6086 // may not be used to create, or enable the creation or redistribution of,
   6087 // unlawful or unlicensed copies of an Apple operating system, or to
   6088 // circumvent, violate, or enable the circumvention or violation of, any
   6089 // terms of an Apple operating system software license agreement.
   6090 //
   6091 // Please obtain a copy of the License at
   6092 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   6093 //
   6094 // The Original Code and all software distributed under the License are
   6095 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   6096 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   6097 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   6098 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   6099 // Please see the License for the specific language governing rights and
   6100 // limitations under the License.
   6101 //
   6102 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   6103 
   6104 // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
   6105 //
   6106 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   6107 //
   6108 // This file contains Original Code and/or Modifications of Original Code
   6109 // as defined in and that are subject to the Apple Public Source License
   6110 // Version 2.0 (the 'License'). You may not use this file except in
   6111 // compliance with the License. The rights granted to you under the License
   6112 // may not be used to create, or enable the creation or redistribution of,
   6113 // unlawful or unlicensed copies of an Apple operating system, or to
   6114 // circumvent, violate, or enable the circumvention or violation of, any
   6115 // terms of an Apple operating system software license agreement.
   6116 //
   6117 // Please obtain a copy of the License at
   6118 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   6119 //
   6120 // The Original Code and all software distributed under the License are
   6121 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   6122 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   6123 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   6124 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   6125 // Please see the License for the specific language governing rights and
   6126 // limitations under the License.
   6127 //
   6128 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   6129 
   6130 // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   6131 //
   6132 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   6133 //
   6134 // This file contains Original Code and/or Modifications of Original Code
   6135 // as defined in and that are subject to the Apple Public Source License
   6136 // Version 2.0 (the 'License'). You may not use this file except in
   6137 // compliance with the License. The rights granted to you under the License
   6138 // may not be used to create, or enable the creation or redistribution of,
   6139 // unlawful or unlicensed copies of an Apple operating system, or to
   6140 // circumvent, violate, or enable the circumvention or violation of, any
   6141 // terms of an Apple operating system software license agreement.
   6142 //
   6143 // Please obtain a copy of the License at
   6144 // http://www.opensource.apple.com/apsl/ and read it before using this file.
   6145 //
   6146 // The Original Code and all software distributed under the License are
   6147 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   6148 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   6149 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   6150 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   6151 // Please see the License for the specific language governing rights and
   6152 // limitations under the License.
   6153 //
   6154 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   6155 
   6156 // Identification of the network protocol stack
   6157 // for *BSD-current/release: http://www.kame.net/dev/cvsweb.cgi/kame/COVERAGE
   6158 // has the table of implementation/integration differences.
   6159 
   6160 // Local port number conventions:
   6161 //
   6162 // Ports < IPPORT_RESERVED are reserved for privileged processes (e.g. root),
   6163 // unless a kernel is compiled with IPNOPRIVPORTS defined.
   6164 //
   6165 // When a user does a bind(2) or connect(2) with a port number of zero,
   6166 // a non-conflicting local port address is chosen.
   6167 //
   6168 // The default range is IPPORT_ANONMIN to IPPORT_ANONMAX, although
   6169 // that is settable by sysctl(3); net.inet.ip.anonportmin and
   6170 // net.inet.ip.anonportmax respectively.
   6171 //
   6172 // A user may set the IPPROTO_IP option IP_PORTRANGE to change this
   6173 // default assignment range.
   6174 //
   6175 // The value IP_PORTRANGE_DEFAULT causes the default behavior.
   6176 //
   6177 // The value IP_PORTRANGE_HIGH is the same as IP_PORTRANGE_DEFAULT,
   6178 // and exists only for FreeBSD compatibility purposes.
   6179 //
   6180 // The value IP_PORTRANGE_LOW changes the range to the "low" are
   6181 // that is (by convention) restricted to privileged processes.
   6182 // This convention is based on "vouchsafe" principles only.
   6183 // It is only secure if you trust the remote host to restrict these ports.
   6184 // The range is IPPORT_RESERVEDMIN to IPPORT_RESERVEDMAX.
   6185 
   6186 // IPv6 address
   6187 type In6_addr_t = In6_addr /* in6.h:157:3 */
   6188 
   6189 // Socket address for IPv6
   6190 type Sockaddr_in6 = struct {
   6191 	Fsin6_len      X__uint8_t
   6192 	Fsin6_family   Sa_family_t
   6193 	Fsin6_port     In_port_t
   6194 	Fsin6_flowinfo X__uint32_t
   6195 	Fsin6_addr     struct {
   6196 		F__u6_addr struct {
   6197 			F__ccgo_pad1 [0]uint32
   6198 			F__u6_addr8  [16]X__uint8_t
   6199 		}
   6200 	}
   6201 	Fsin6_scope_id X__uint32_t
   6202 } /* in6.h:169:1 */
   6203 
   6204 // Equality
   6205 // NOTE: Some of kernel programming environment (for example, openbsd/sparc)
   6206 // does not supply memcmp().  For userland memcmp() is preferred as it is
   6207 // in ANSI standard.
   6208 
   6209 // Unspecified
   6210 
   6211 // Loopback
   6212 
   6213 // IPv4 compatible
   6214 
   6215 // Mapped
   6216 
   6217 // 6to4
   6218 
   6219 // KAME Scope Values
   6220 
   6221 // Unicast Scope
   6222 // Note that we must check topmost 10 bits only, not 16 bits (see RFC2373).
   6223 
   6224 // Multicast
   6225 
   6226 // Unique Local IPv6 Unicast Addresses (per RFC 4193)
   6227 
   6228 // Multicast Scope
   6229 
   6230 // Options for use with [gs]etsockopt at the IPV6 level.
   6231 // First word of comment is data type; bool is stored in int.
   6232 // no hdrincl
   6233 // RFC 3542 define the following socket options in a manner incompatible
   6234 // with RFC 2292:
   6235 //   IPV6_PKTINFO
   6236 //   IPV6_HOPLIMIT
   6237 //   IPV6_NEXTHOP
   6238 //   IPV6_HOPOPTS
   6239 //   IPV6_DSTOPTS
   6240 //   IPV6_RTHDR
   6241 //
   6242 // To use the new IPv6 Sockets options introduced by RFC 3542
   6243 // the constant __APPLE_USE_RFC_3542 must be defined before
   6244 // including <netinet/in.h>
   6245 //
   6246 // To use the old IPv6 Sockets options from RFC 2292
   6247 // the constant __APPLE_USE_RFC_2292 must be defined before
   6248 // including <netinet/in.h>
   6249 //
   6250 // Note that eventually RFC 3542 is going to be the
   6251 // default and RFC 2292 will be obsolete.
   6252 
   6253 // buf/cmsghdr; set/get IPv6 options [obsoleted by RFC3542]
   6254 
   6255 // APPLE: NOTE the value of those 2 options is kept unchanged from
   6256 //   previous version of darwin/OS X for binary compatibility reasons
   6257 //   and differ from FreeBSD (values 57 and 61). See below.
   6258 
   6259 // to define items, should talk with KAME guys first, for *BSD compatibility
   6260 
   6261 // Defaults and limits for options
   6262 
   6263 // The im6o_membership vector for each socket is now dynamically allocated at
   6264 // run-time, bounded by USHRT_MAX, and is reallocated when needed, sized
   6265 // according to a power-of-two increment.
   6266 
   6267 // Default resource limits for IPv6 multicast source filtering.
   6268 // These may be modified by sysctl.
   6269 
   6270 // Argument structure for IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP.
   6271 type Ipv6_mreq = struct {
   6272 	Fipv6mr_multiaddr struct {
   6273 		F__u6_addr struct {
   6274 			F__ccgo_pad1 [0]uint32
   6275 			F__u6_addr8  [16]X__uint8_t
   6276 		}
   6277 	}
   6278 	Fipv6mr_interface uint32
   6279 } /* in6.h:527:1 */
   6280 
   6281 // IPV6_2292PKTINFO: Packet information(RFC2292 sec 5)
   6282 type In6_pktinfo = struct {
   6283 	Fipi6_addr struct {
   6284 		F__u6_addr struct {
   6285 			F__ccgo_pad1 [0]uint32
   6286 			F__u6_addr8  [16]X__uint8_t
   6287 		}
   6288 	}
   6289 	Fipi6_ifindex uint32
   6290 } /* in6.h:535:1 */
   6291 
   6292 // Control structure for IPV6_RECVPATHMTU socket option.
   6293 type Ip6_mtuinfo = struct {
   6294 	Fip6m_addr struct {
   6295 		Fsin6_len      X__uint8_t
   6296 		Fsin6_family   Sa_family_t
   6297 		Fsin6_port     In_port_t
   6298 		Fsin6_flowinfo X__uint32_t
   6299 		Fsin6_addr     struct {
   6300 			F__u6_addr struct {
   6301 				F__ccgo_pad1 [0]uint32
   6302 				F__u6_addr8  [16]X__uint8_t
   6303 			}
   6304 		}
   6305 		Fsin6_scope_id X__uint32_t
   6306 	}
   6307 	Fip6m_mtu Uint32_t
   6308 } /* in6.h:543:1 */
   6309 
   6310 // Structures returned by network data base library.  All addresses are
   6311 // supplied in host order, and returned in network order (suitable for
   6312 // use in system calls).
   6313 type Hostent = struct {
   6314 	Fh_name      uintptr
   6315 	Fh_aliases   uintptr
   6316 	Fh_addrtype  int32
   6317 	Fh_length    int32
   6318 	Fh_addr_list uintptr
   6319 } /* netdb.h:112:1 */
   6320 
   6321 // Assumption here is that a network number
   6322 // fits in an unsigned long -- probably a poor one.
   6323 type Netent = struct {
   6324 	Fn_name     uintptr
   6325 	Fn_aliases  uintptr
   6326 	Fn_addrtype int32
   6327 	Fn_net      Uint32_t
   6328 } /* netdb.h:127:1 */
   6329 
   6330 type Servent = struct {
   6331 	Fs_name      uintptr
   6332 	Fs_aliases   uintptr
   6333 	Fs_port      int32
   6334 	F__ccgo_pad1 [4]byte
   6335 	Fs_proto     uintptr
   6336 } /* netdb.h:134:1 */
   6337 
   6338 type Protoent = struct {
   6339 	Fp_name      uintptr
   6340 	Fp_aliases   uintptr
   6341 	Fp_proto     int32
   6342 	F__ccgo_pad1 [4]byte
   6343 } /* netdb.h:141:1 */
   6344 
   6345 type Addrinfo = struct {
   6346 	Fai_flags     int32
   6347 	Fai_family    int32
   6348 	Fai_socktype  int32
   6349 	Fai_protocol  int32
   6350 	Fai_addrlen   Socklen_t
   6351 	F__ccgo_pad1  [4]byte
   6352 	Fai_canonname uintptr
   6353 	Fai_addr      uintptr
   6354 	Fai_next      uintptr
   6355 } /* netdb.h:147:1 */
   6356 
   6357 type Rpcent = struct {
   6358 	Fr_name      uintptr
   6359 	Fr_aliases   uintptr
   6360 	Fr_number    int32
   6361 	F__ccgo_pad1 [4]byte
   6362 } /* netdb.h:159:1 */
   6363 
   6364 var _ int8 /* gen.c:2:13: */