github.com/afumu/libc@v0.0.6/sys/socket/socket_darwin_amd64.go (about) 1 // Code generated by 'ccgo sys/socket/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 sys/socket/socket_darwin_amd64.go -pkgname socket', DO NOT EDIT. 2 3 package socket 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 BIG_ENDIAN = 4321 // endian.h:94:1: 56 BYTE_ORDER = 1234 // endian.h:97:1: 57 CONNECT_DATA_AUTHENTICATED = 0x4 // socket.h:300:1: 58 CONNECT_DATA_IDEMPOTENT = 0x2 // socket.h:299:1: 59 CONNECT_RESUME_ON_READ_WRITE = 0x1 // socket.h:298:1: 60 FD_SETSIZE = 1024 // _fd_setsize.h:29:1: 61 KEV_DL_ADDMULTI = 7 // net_kev.h:61:1: 62 KEV_DL_AWDL_RESTRICTED = 26 // net_kev.h:80:1: 63 KEV_DL_AWDL_UNRESTRICTED = 27 // net_kev.h:81:1: 64 KEV_DL_DELMULTI = 8 // net_kev.h:62:1: 65 KEV_DL_IFCAP_CHANGED = 19 // net_kev.h:73:1: 66 KEV_DL_IFDELEGATE_CHANGED = 25 // net_kev.h:79:1: 67 KEV_DL_IF_ATTACHED = 9 // net_kev.h:63:1: 68 KEV_DL_IF_DETACHED = 11 // net_kev.h:65:1: 69 KEV_DL_IF_DETACHING = 10 // net_kev.h:64:1: 70 KEV_DL_IF_IDLE_ROUTE_REFCNT = 18 // net_kev.h:72:1: 71 KEV_DL_ISSUES = 24 // net_kev.h:78:1: 72 KEV_DL_LINK_ADDRESS_CHANGED = 16 // net_kev.h:70:1: 73 KEV_DL_LINK_OFF = 12 // net_kev.h:66:1: 74 KEV_DL_LINK_ON = 13 // net_kev.h:67:1: 75 KEV_DL_LINK_QUALITY_METRIC_CHANGED = 20 // net_kev.h:74:1: 76 KEV_DL_LOW_POWER_MODE_CHANGED = 30 // net_kev.h:84:1: 77 KEV_DL_MASTER_ELECTED = 23 // net_kev.h:77:1: 78 KEV_DL_NODE_ABSENCE = 22 // net_kev.h:76:1: 79 KEV_DL_NODE_PRESENCE = 21 // net_kev.h:75:1: 80 KEV_DL_PROTO_ATTACHED = 14 // net_kev.h:68:1: 81 KEV_DL_PROTO_DETACHED = 15 // net_kev.h:69:1: 82 KEV_DL_QOS_MODE_CHANGED = 29 // net_kev.h:83:1: 83 KEV_DL_RRC_STATE_CHANGED = 28 // net_kev.h:82:1: 84 KEV_DL_SIFFLAGS = 1 // net_kev.h:55:1: 85 KEV_DL_SIFGENERIC = 6 // net_kev.h:60:1: 86 KEV_DL_SIFMEDIA = 5 // net_kev.h:59:1: 87 KEV_DL_SIFMETRICS = 2 // net_kev.h:56:1: 88 KEV_DL_SIFMTU = 3 // net_kev.h:57:1: 89 KEV_DL_SIFPHYS = 4 // net_kev.h:58:1: 90 KEV_DL_SUBCLASS = 2 // net_kev.h:50:1: 91 KEV_DL_WAKEFLAGS_CHANGED = 17 // net_kev.h:71:1: 92 KEV_INET6_ADDR_DELETED = 3 // net_kev.h:91:1: 93 KEV_INET6_CHANGED_ADDR = 2 // net_kev.h:90:1: 94 KEV_INET6_DEFROUTER = 6 // net_kev.h:94:1: 95 KEV_INET6_NEW_LL_ADDR = 4 // net_kev.h:92:1: 96 KEV_INET6_NEW_RTADV_ADDR = 5 // net_kev.h:93:1: 97 KEV_INET6_NEW_USER_ADDR = 1 // net_kev.h:89:1: 98 KEV_INET6_REQUEST_NAT64_PREFIX = 7 // net_kev.h:95:1: 99 KEV_INET6_SUBCLASS = 6 // net_kev.h:87:1: 100 KEV_INET_ADDR_DELETED = 3 // net_kev.h:39:1: 101 KEV_INET_ARPCOLLISION = 7 // net_kev.h:43:1: 102 KEV_INET_ARPRTRALIVE = 10 // net_kev.h:48:1: 103 KEV_INET_ARPRTRFAILURE = 9 // net_kev.h:47:1: 104 KEV_INET_CHANGED_ADDR = 2 // net_kev.h:38:1: 105 KEV_INET_NEW_ADDR = 1 // net_kev.h:37:1: 106 KEV_INET_PORTINUSE = 8 // net_kev.h:45:1: 107 KEV_INET_SIFBRDADDR = 5 // net_kev.h:41:1: 108 KEV_INET_SIFDSTADDR = 4 // net_kev.h:40:1: 109 KEV_INET_SIFNETMASK = 6 // net_kev.h:42:1: 110 KEV_INET_SUBCLASS = 1 // net_kev.h:35:1: 111 LITTLE_ENDIAN = 1234 // endian.h:93:1: 112 MSG_CTRUNC = 0x20 // socket.h:563:1: 113 MSG_DONTROUTE = 0x4 // socket.h:560:1: 114 MSG_DONTWAIT = 0x80 // socket.h:566:1: 115 MSG_EOF = 0x100 // socket.h:567:1: 116 MSG_EOR = 0x8 // socket.h:561:1: 117 MSG_FLUSH = 0x400 // socket.h:572:1: 118 MSG_HAVEMORE = 0x2000 // socket.h:575:1: 119 MSG_HOLD = 0x800 // socket.h:573:1: 120 MSG_NEEDSA = 0x10000 // socket.h:578:1: 121 MSG_OOB = 0x1 // socket.h:558:1: 122 MSG_PEEK = 0x2 // socket.h:559:1: 123 MSG_RCVMORE = 0x4000 // socket.h:576:1: 124 MSG_SEND = 0x1000 // socket.h:574:1: 125 MSG_TRUNC = 0x10 // socket.h:562:1: 126 MSG_WAITALL = 0x40 // socket.h:564:1: 127 MSG_WAITSTREAM = 0x200 // socket.h:570:1: 128 NBBY = 8 // types.h:186:1: 129 NETSVC_MRKNG_LVL_L2 = 1 // socket.h:283:1: 130 NETSVC_MRKNG_LVL_L3L2_ALL = 2 // socket.h:284:1: 131 NETSVC_MRKNG_LVL_L3L2_BK = 3 // socket.h:285:1: 132 NETSVC_MRKNG_UNKNOWN = 0 // socket.h:282:1: 133 NET_MAXID = 40 // socket.h:506:1: 134 NET_RT_DUMP = 1 // socket.h:519:1: 135 NET_RT_DUMP2 = 7 // socket.h:525:1: 136 NET_RT_FLAGS = 2 // socket.h:520:1: 137 NET_RT_FLAGS_PRIV = 10 // socket.h:530:1: 138 NET_RT_IFLIST = 3 // socket.h:521:1: 139 NET_RT_IFLIST2 = 6 // socket.h:524:1: 140 NET_RT_MAXID = 11 // socket.h:531:1: 141 NET_RT_STAT = 4 // socket.h:522:1: 142 NET_RT_TRASH = 5 // socket.h:523:1: 143 NET_SERVICE_TYPE_AV = 6 // socket.h:276:1: 144 NET_SERVICE_TYPE_BE = 0 // socket.h:270:1: 145 NET_SERVICE_TYPE_BK = 1 // socket.h:271:1: 146 NET_SERVICE_TYPE_OAM = 7 // socket.h:277:1: 147 NET_SERVICE_TYPE_RD = 8 // socket.h:278:1: 148 NET_SERVICE_TYPE_RV = 5 // socket.h:275:1: 149 NET_SERVICE_TYPE_SIG = 2 // socket.h:272:1: 150 NET_SERVICE_TYPE_VI = 3 // socket.h:273:1: 151 NET_SERVICE_TYPE_VO = 4 // socket.h:274:1: 152 PDP_ENDIAN = 3412 // endian.h:95:1: 153 PF_APPLETALK = 16 // socket.h:469:1: 154 PF_CCITT = 10 // socket.h:463:1: 155 PF_CHAOS = 5 // socket.h:457:1: 156 PF_CNT = 21 // socket.h:474:1: 157 PF_COIP = 20 // socket.h:473:1: 158 PF_DATAKIT = 9 // socket.h:462:1: 159 PF_DECnet = 12 // socket.h:465:1: 160 PF_DLI = 13 // socket.h:466:1: 161 PF_ECMA = 8 // socket.h:461:1: 162 PF_HYLINK = 15 // socket.h:468:1: 163 PF_IMPLINK = 3 // socket.h:455:1: 164 PF_INET = 2 // socket.h:454:1: 165 PF_INET6 = 30 // socket.h:482:1: 166 PF_IPX = 23 // socket.h:476:1: 167 PF_ISDN = 28 // socket.h:480:1: 168 PF_ISO = 7 // socket.h:459:1: 169 PF_KEY = 29 // socket.h:481:1: 170 PF_LAT = 14 // socket.h:467:1: 171 PF_LINK = 18 // socket.h:471:1: 172 PF_LOCAL = 1 // socket.h:452:1: 173 PF_MAX = 40 // socket.h:489:1: 174 PF_NATM = 31 // socket.h:483:1: 175 PF_NDRV = 27 // socket.h:479:1: 176 PF_NETBIOS = 33 // socket.h:485:1: 177 PF_NS = 6 // socket.h:458:1: 178 PF_OSI = 7 // socket.h:460:1: 179 PF_PIP = 25 // socket.h:478:1: 180 PF_PPP = 34 // socket.h:486:1: 181 PF_PUP = 4 // socket.h:456:1: 182 PF_RESERVED_36 = 36 // socket.h:487:1: 183 PF_ROUTE = 17 // socket.h:470:1: 184 PF_RTIP = 22 // socket.h:477:1: 185 PF_SIP = 24 // socket.h:475:1: 186 PF_SNA = 11 // socket.h:464:1: 187 PF_SYSTEM = 32 // socket.h:484:1: 188 PF_UNIX = 1 // socket.h:453:1: 189 PF_UNSPEC = 0 // socket.h:451:1: 190 PF_UTUN = 38 // socket.h:488:1: 191 PF_XTP = 19 // socket.h:472:1: 192 SAE_ASSOCID_ANY = 0 // socket.h:290:1: 193 SAE_CONNID_ANY = 0 // socket.h:294:1: 194 SCM_CREDS = 0x03 // socket.h:661:1: 195 SCM_RIGHTS = 0x01 // socket.h:658:1: 196 SCM_TIMESTAMP = 0x02 // socket.h:660:1: 197 SCM_TIMESTAMP_MONOTONIC = 0x04 // socket.h:662:1: 198 SHUT_RD = 0 // socket.h:670:1: 199 SHUT_RDWR = 2 // socket.h:672:1: 200 SHUT_WR = 1 // socket.h:671:1: 201 SOCK_DGRAM = 2 // socket.h:112:1: 202 SOCK_MAXADDRLEN = 255 // socket.h:414:1: 203 SOCK_RAW = 3 // socket.h:113:1: 204 SOCK_RDM = 4 // socket.h:115:1: 205 SOCK_SEQPACKET = 5 // socket.h:117:1: 206 SOCK_STREAM = 1 // socket.h:111:1: 207 SOL_SOCKET = 0xffff // socket.h:348:1: 208 SOMAXCONN = 128 // socket.h:540:1: 209 SONPX_SETOPTSHUT = 0x000000001 // socket.h:338:1: 210 SO_ACCEPTCONN = 0x0002 // socket.h:123:1: 211 SO_BROADCAST = 0x0020 // socket.h:127:1: 212 SO_DEBUG = 0x0001 // socket.h:122:1: 213 SO_DONTROUTE = 0x0010 // socket.h:126:1: 214 SO_DONTTRUNC = 0x2000 // socket.h:142:1: 215 SO_ERROR = 0x1007 // socket.h:160:1: 216 SO_KEEPALIVE = 0x0008 // socket.h:125:1: 217 SO_LABEL = 0x1010 // socket.h:163:1: 218 SO_LINGER = 0x0080 // socket.h:130:1: 219 SO_LINGER_SEC = 0x1080 // socket.h:176:1: 220 SO_NETSVC_MARKING_LEVEL = 0x1119 // socket.h:185:1: 221 SO_NET_SERVICE_TYPE = 0x1116 // socket.h:182:1: 222 SO_NKE = 0x1021 // socket.h:167:1: 223 SO_NOADDRERR = 0x1023 // socket.h:169:1: 224 SO_NOSIGPIPE = 0x1022 // socket.h:168:1: 225 SO_NOTIFYCONFLICT = 0x1026 // socket.h:173:1: 226 SO_NP_EXTENSIONS = 0x1083 // socket.h:178:1: 227 SO_NREAD = 0x1020 // socket.h:166:1: 228 SO_NUMRCVPKT = 0x1112 // socket.h:181:1: 229 SO_NWRITE = 0x1024 // socket.h:170:1: 230 SO_OOBINLINE = 0x0100 // socket.h:134:1: 231 SO_PEERLABEL = 0x1011 // socket.h:164:1: 232 SO_RANDOMPORT = 0x1082 // socket.h:177:1: 233 SO_RCVBUF = 0x1002 // socket.h:155:1: 234 SO_RCVLOWAT = 0x1004 // socket.h:157:1: 235 SO_RCVTIMEO = 0x1006 // socket.h:159:1: 236 SO_REUSEADDR = 0x0004 // socket.h:124:1: 237 SO_REUSEPORT = 0x0200 // socket.h:136:1: 238 SO_REUSESHAREUID = 0x1025 // socket.h:171:1: 239 SO_SNDBUF = 0x1001 // socket.h:154:1: 240 SO_SNDLOWAT = 0x1003 // socket.h:156:1: 241 SO_SNDTIMEO = 0x1005 // socket.h:158:1: 242 SO_TIMESTAMP = 0x0400 // socket.h:137:1: 243 SO_TIMESTAMP_MONOTONIC = 0x0800 // socket.h:138:1: 244 SO_TYPE = 0x1008 // socket.h:161:1: 245 SO_UPCALLCLOSEWAIT = 0x1027 // socket.h:174:1: 246 SO_USELOOPBACK = 0x0040 // socket.h:129:1: 247 SO_WANTMORE = 0x4000 // socket.h:144:1: 248 SO_WANTOOBFLAG = 0x8000 // socket.h:145:1: 249 X_BLKCNT_T = 0 // _blkcnt_t.h:29:1: 250 X_BLKSIZE_T = 0 // _blksize_t.h:29:1: 251 X_BSD_I386__TYPES_H_ = 0 // _types.h:29:1: 252 X_BSD_MACHINE_ENDIAN_H_ = 0 // endian.h:32:1: 253 X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1: 254 X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1: 255 X_CADDR_T = 0 // _caddr_t.h:29:1: 256 X_CDEFS_H_ = 0 // cdefs.h:68:1: 257 X_CLOCK_T = 0 // _clock_t.h:29:1: 258 X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:745:1: 259 X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:771:1: 260 X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:779:1: 261 X_DEV_T = 0 // _dev_t.h:29:1: 262 X_ERRNO_T = 0 // _errno_t.h:29:1: 263 X_FD_SET = 0 // _fd_def.h:29:1: 264 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 265 X_FSBLKCNT_T = 0 // _fsblkcnt_t.h:29:1: 266 X_FSFILCNT_T = 0 // _fsfilcnt_t.h:29:1: 267 X_GID_T = 0 // _gid_t.h:29:1: 268 X_I386__ENDIAN_H_ = 0 // endian.h:67:1: 269 X_I386__PARAM_H_ = 0 // _param.h:30:1: 270 X_ID_T = 0 // _id_t.h:29:1: 271 X_INO64_T = 0 // _ino64_t.h:29:1: 272 X_INO_T = 0 // _ino_t.h:29:1: 273 X_INT16_T = 0 // _int16_t.h:29:1: 274 X_INT32_T = 0 // _int32_t.h:29:1: 275 X_INT64_T = 0 // _int64_t.h:29:1: 276 X_INT8_T = 0 // _int8_t.h:29:1: 277 X_INTPTR_T = 0 // _intptr_t.h:29:1: 278 X_IN_ADDR_T = 0 // _in_addr_t.h:29:1: 279 X_IN_PORT_T = 0 // _in_port_t.h:29:1: 280 X_KEY_T = 0 // _key_t.h:29:1: 281 X_LP64 = 1 // <predefined>:1:1: 282 X_MACHTYPES_H_ = 0 // types.h:67:1: 283 X_MODE_T = 0 // _mode_t.h:29:1: 284 X_NET_NETKEV_H_ = 0 // net_kev.h:30:1: 285 X_NLINK_T = 0 // _nlink_t.h:29:1: 286 X_Nonnull = 0 // cdefs.h:243:1: 287 X_Null_unspecified = 0 // cdefs.h:246:1: 288 X_Nullable = 0 // cdefs.h:240:1: 289 X_OFF_T = 0 // _off_t.h:29:1: 290 X_OS__OSBYTEORDERI386_H = 0 // _OSByteOrder.h:30:1: 291 X_OS__OSBYTEORDER_H = 0 // _OSByteOrder.h:30:1: 292 X_PID_T = 0 // _pid_t.h:29:1: 293 X_PTHREAD_ATTR_T = 0 // _pthread_attr_t.h:29:1: 294 X_PTHREAD_CONDATTR_T = 0 // _pthread_condattr_t.h:29:1: 295 X_PTHREAD_COND_T = 0 // _pthread_cond_t.h:29:1: 296 X_PTHREAD_KEY_T = 0 // _pthread_key_t.h:29:1: 297 X_PTHREAD_MUTEXATTR_T = 0 // _pthread_mutexattr_t.h:29:1: 298 X_PTHREAD_MUTEX_T = 0 // _pthread_mutex_t.h:29:1: 299 X_PTHREAD_ONCE_T = 0 // _pthread_once_t.h:29:1: 300 X_PTHREAD_RWLOCKATTR_T = 0 // _pthread_rwlockattr_t.h:29:1: 301 X_PTHREAD_RWLOCK_T = 0 // _pthread_rwlock_t.h:29:1: 302 X_PTHREAD_T = 0 // _pthread_t.h:29:1: 303 X_QUAD_HIGHWORD = 1 // endian.h:78:1: 304 X_QUAD_LOWWORD = 0 // endian.h:79:1: 305 X_RSIZE_T = 0 // _rsize_t.h:29:1: 306 X_SA_FAMILY_T = 0 // _sa_family_t.h:29:1: 307 X_SIZE_T = 0 // _size_t.h:29:1: 308 X_SOCKLEN_T = 0 // _socklen_t.h:29:1: 309 X_SSIZE_T = 0 // _ssize_t.h:29:1: 310 X_SS_MAXSIZE = 128 // socket.h:429:1: 311 X_STRUCT_IOVEC = 0 // _iovec_t.h:29:1: 312 X_SUSECONDS_T = 0 // _suseconds_t.h:29:1: 313 X_SYS_SOCKET_H_ = 0 // socket.h:73:1: 314 X_SYS_TYPES_H_ = 0 // types.h:70:1: 315 X_SYS__ENDIAN_H_ = 0 // _endian.h:91:1: 316 X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1: 317 X_SYS__TYPES_H_ = 0 // _types.h:30:1: 318 X_TIME_T = 0 // _time_t.h:29:1: 319 X_UID_T = 0 // _uid_t.h:29:1: 320 X_UINTPTR_T = 0 // _uintptr_t.h:29:1: 321 X_USECONDS_T = 0 // _useconds_t.h:29:1: 322 X_U_CHAR = 0 // _u_char.h:29:1: 323 X_U_INT = 0 // _u_int.h:29:1: 324 X_U_INT16_T = 0 // _u_int16_t.h:29:1: 325 X_U_INT32_T = 0 // _u_int32_t.h:29:1: 326 X_U_INT64_T = 0 // _u_int64_t.h:29:1: 327 X_U_INT8_T = 0 // _u_int8_t.h:29:1: 328 X_U_LONG = 0 // types.h:89:1: 329 X_U_SHORT = 0 // _u_short.h:29:1: 330 Pseudo_AF_HDRCMPLT = 35 // socket.h:396:1: 331 Pseudo_AF_KEY = 29 // socket.h:388:1: 332 Pseudo_AF_PIP = 25 // socket.h:384:1: 333 Pseudo_AF_RTIP = 22 // socket.h:381:1: 334 Pseudo_AF_XTP = 19 // socket.h:378:1: 335 ) 336 337 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 338 339 type Size_t = uint64 /* <builtin>:9:23 */ 340 341 type Wchar_t = int32 /* <builtin>:15:24 */ 342 343 type X__int128_t = struct { 344 Flo int64 345 Fhi int64 346 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 347 type X__uint128_t = struct { 348 Flo uint64 349 Fhi uint64 350 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 351 352 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 353 type X__float128 = float64 /* <builtin>:47:21 */ 354 355 var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */ 356 357 // Copyright (c) 2000-2019 Apple Inc. All rights reserved. 358 // 359 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 360 // 361 // This file contains Original Code and/or Modifications of Original Code 362 // as defined in and that are subject to the Apple Public Source License 363 // Version 2.0 (the 'License'). You may not use this file except in 364 // compliance with the License. The rights granted to you under the License 365 // may not be used to create, or enable the creation or redistribution of, 366 // unlawful or unlicensed copies of an Apple operating system, or to 367 // circumvent, violate, or enable the circumvention or violation of, any 368 // terms of an Apple operating system software license agreement. 369 // 370 // Please obtain a copy of the License at 371 // http://www.opensource.apple.com/apsl/ and read it before using this file. 372 // 373 // The Original Code and all software distributed under the License are 374 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 375 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 376 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 377 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 378 // Please see the License for the specific language governing rights and 379 // limitations under the License. 380 // 381 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 382 // Copyright (c) 1998, 1999 Apple Computer, Inc. All Rights Reserved 383 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 384 // Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994 385 // The Regents of the University of California. All rights reserved. 386 // 387 // Redistribution and use in source and binary forms, with or without 388 // modification, are permitted provided that the following conditions 389 // are met: 390 // 1. Redistributions of source code must retain the above copyright 391 // notice, this list of conditions and the following disclaimer. 392 // 2. Redistributions in binary form must reproduce the above copyright 393 // notice, this list of conditions and the following disclaimer in the 394 // documentation and/or other materials provided with the distribution. 395 // 3. All advertising materials mentioning features or use of this software 396 // must display the following acknowledgement: 397 // This product includes software developed by the University of 398 // California, Berkeley and its contributors. 399 // 4. Neither the name of the University nor the names of its contributors 400 // may be used to endorse or promote products derived from this software 401 // without specific prior written permission. 402 // 403 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 404 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 405 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 406 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 407 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 408 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 409 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 410 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 411 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 412 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 413 // SUCH DAMAGE. 414 // 415 // @(#)socket.h 8.4 (Berkeley) 2/21/94 416 // $FreeBSD: src/sys/sys/socket.h,v 1.39.2.7 2001/07/03 11:02:01 ume Exp $ 417 // NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce 418 // support for mandatory and extensible security protections. This notice 419 // is included in support of clause 2.2 (b) of the Apple Public License, 420 // Version 2.0. 421 422 // Copyright (c) 2000-2008 Apple Inc. All rights reserved. 423 // 424 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 425 // 426 // This file contains Original Code and/or Modifications of Original Code 427 // as defined in and that are subject to the Apple Public Source License 428 // Version 2.0 (the 'License'). You may not use this file except in 429 // compliance with the License. The rights granted to you under the License 430 // may not be used to create, or enable the creation or redistribution of, 431 // unlawful or unlicensed copies of an Apple operating system, or to 432 // circumvent, violate, or enable the circumvention or violation of, any 433 // terms of an Apple operating system software license agreement. 434 // 435 // Please obtain a copy of the License at 436 // http://www.opensource.apple.com/apsl/ and read it before using this file. 437 // 438 // The Original Code and all software distributed under the License are 439 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 440 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 441 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 442 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 443 // Please see the License for the specific language governing rights and 444 // limitations under the License. 445 // 446 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 447 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 448 // Copyright (c) 1982, 1986, 1991, 1993, 1994 449 // The Regents of the University of California. All rights reserved. 450 // (c) UNIX System Laboratories, Inc. 451 // All or some portions of this file are derived from material licensed 452 // to the University of California by American Telephone and Telegraph 453 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 454 // the permission of UNIX System Laboratories, Inc. 455 // 456 // Redistribution and use in source and binary forms, with or without 457 // modification, are permitted provided that the following conditions 458 // are met: 459 // 1. Redistributions of source code must retain the above copyright 460 // notice, this list of conditions and the following disclaimer. 461 // 2. Redistributions in binary form must reproduce the above copyright 462 // notice, this list of conditions and the following disclaimer in the 463 // documentation and/or other materials provided with the distribution. 464 // 3. All advertising materials mentioning features or use of this software 465 // must display the following acknowledgement: 466 // This product includes software developed by the University of 467 // California, Berkeley and its contributors. 468 // 4. Neither the name of the University nor the names of its contributors 469 // may be used to endorse or promote products derived from this software 470 // without specific prior written permission. 471 // 472 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 473 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 474 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 475 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 476 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 477 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 478 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 479 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 480 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 481 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 482 // SUCH DAMAGE. 483 // 484 // @(#)types.h 8.4 (Berkeley) 1/21/94 485 486 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 487 // 488 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 489 // 490 // This file contains Original Code and/or Modifications of Original Code 491 // as defined in and that are subject to the Apple Public Source License 492 // Version 2.0 (the 'License'). You may not use this file except in 493 // compliance with the License. The rights granted to you under the License 494 // may not be used to create, or enable the creation or redistribution of, 495 // unlawful or unlicensed copies of an Apple operating system, or to 496 // circumvent, violate, or enable the circumvention or violation of, any 497 // terms of an Apple operating system software license agreement. 498 // 499 // Please obtain a copy of the License at 500 // http://www.opensource.apple.com/apsl/ and read it before using this file. 501 // 502 // The Original Code and all software distributed under the License are 503 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 504 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 505 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 506 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 507 // Please see the License for the specific language governing rights and 508 // limitations under the License. 509 // 510 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 511 512 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 513 // 514 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 515 // 516 // This file contains Original Code and/or Modifications of Original Code 517 // as defined in and that are subject to the Apple Public Source License 518 // Version 2.0 (the 'License'). You may not use this file except in 519 // compliance with the License. The rights granted to you under the License 520 // may not be used to create, or enable the creation or redistribution of, 521 // unlawful or unlicensed copies of an Apple operating system, or to 522 // circumvent, violate, or enable the circumvention or violation of, any 523 // terms of an Apple operating system software license agreement. 524 // 525 // Please obtain a copy of the License at 526 // http://www.opensource.apple.com/apsl/ and read it before using this file. 527 // 528 // The Original Code and all software distributed under the License are 529 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 530 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 531 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 532 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 533 // Please see the License for the specific language governing rights and 534 // limitations under the License. 535 // 536 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 537 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 538 // Copyright (c) 1991, 1993 539 // The Regents of the University of California. All rights reserved. 540 // 541 // This code is derived from software contributed to Berkeley by 542 // Berkeley Software Design, Inc. 543 // 544 // Redistribution and use in source and binary forms, with or without 545 // modification, are permitted provided that the following conditions 546 // are met: 547 // 1. Redistributions of source code must retain the above copyright 548 // notice, this list of conditions and the following disclaimer. 549 // 2. Redistributions in binary form must reproduce the above copyright 550 // notice, this list of conditions and the following disclaimer in the 551 // documentation and/or other materials provided with the distribution. 552 // 3. All advertising materials mentioning features or use of this software 553 // must display the following acknowledgement: 554 // This product includes software developed by the University of 555 // California, Berkeley and its contributors. 556 // 4. Neither the name of the University nor the names of its contributors 557 // may be used to endorse or promote products derived from this software 558 // without specific prior written permission. 559 // 560 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 561 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 562 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 563 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 564 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 565 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 566 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 567 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 568 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 569 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 570 // SUCH DAMAGE. 571 // 572 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 573 574 // This SDK is designed to work with clang and specific versions of 575 // gcc >= 4.0 with Apple's patch sets 576 577 // Compatibility with compilers and environments that don't support compiler 578 // feature checking function-like macros. 579 580 // The __CONCAT macro is used to concatenate parts of symbol names, e.g. 581 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. 582 // The __CONCAT macro is a bit tricky -- make sure you don't put spaces 583 // in between its arguments. __CONCAT can also concatenate double-quoted 584 // strings produced by the __STRING macro, but this only works with ANSI C. 585 586 // In non-ANSI C environments, new programs will want ANSI-only C keywords 587 // deleted from the program and old programs will want them left alone. 588 // When using a compiler other than gcc, programs using the ANSI C keywords 589 // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS. 590 // When using "gcc -traditional", we assume that this is the intent; if 591 // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone. 592 593 // __unused denotes variables and functions that may not be used, preventing 594 // the compiler from warning about it if not used. 595 596 // __used forces variables and functions to be included even if it appears 597 // to the compiler that they are not used (and would thust be discarded). 598 599 // __cold marks code used for debugging or that is rarely taken 600 // and tells the compiler to optimize for size and outline code. 601 602 // __deprecated causes the compiler to produce a warning when encountering 603 // code using the deprecated functionality. 604 // __deprecated_msg() does the same, and compilers that support it will print 605 // a message along with the deprecation warning. 606 // This may require turning on such warning with the -Wdeprecated flag. 607 // __deprecated_enum_msg() should be used on enums, and compilers that support 608 // it will print the deprecation warning. 609 // __kpi_deprecated() specifically indicates deprecation of kernel programming 610 // interfaces in Kernel.framework used by KEXTs. 611 612 // __unavailable causes the compiler to error out when encountering 613 // code using the tagged function of variable. 614 615 // Delete pseudo-keywords wherever they are not available or needed. 616 617 // We use `__restrict' as a way to define the `restrict' type qualifier 618 // without disturbing older software that is unaware of C99 keywords. 619 620 // Compatibility with compilers and environments that don't support the 621 // nullability feature. 622 623 // __disable_tail_calls causes the compiler to not perform tail call 624 // optimization inside the marked function. 625 626 // __not_tail_called causes the compiler to prevent tail call optimization 627 // on statically bound calls to the function. It has no effect on indirect 628 // calls. Virtual functions, objective-c methods, and functions marked as 629 // "always_inline" cannot be marked as __not_tail_called. 630 631 // __result_use_check warns callers of a function that not using the function 632 // return value is a bug, i.e. dismissing malloc() return value results in a 633 // memory leak. 634 635 // __swift_unavailable causes the compiler to mark a symbol as specifically 636 // unavailable in Swift, regardless of any other availability in C. 637 638 // __abortlike is the attribute to put on functions like abort() that are 639 // typically used to mark assertions. These optimize the codegen 640 // for outlining while still maintaining debugability. 641 642 // Declaring inline functions within headers is error-prone due to differences 643 // across various versions of the C language and extensions. __header_inline 644 // can be used to declare inline functions within system headers. In cases 645 // where you want to force inlining instead of letting the compiler make 646 // the decision, you can use __header_always_inline. 647 // 648 // Be aware that using inline for functions which compilers may also provide 649 // builtins can behave differently under various compilers. If you intend to 650 // provide an inline version of such a function, you may want to use a macro 651 // instead. 652 // 653 // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly 654 // support c99 inline in some cases: 655 // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965 656 657 // Compiler-dependent macros that bracket portions of code where the 658 // "-Wunreachable-code" warning should be ignored. Please use sparingly. 659 660 // Compiler-dependent macros to declare that functions take printf-like 661 // or scanf-like arguments. They are null except for versions of gcc 662 // that are known to support the features properly. Functions declared 663 // with these attributes will cause compilation warnings if there is a 664 // mismatch between the format string and subsequent function parameter 665 // types. 666 667 // Source compatibility only, ID string not emitted in object file 668 669 // __alloc_size can be used to label function arguments that represent the 670 // size of memory that the function allocates and returns. The one-argument 671 // form labels a single argument that gives the allocation size (where the 672 // arguments are numbered from 1): 673 // 674 // void *malloc(size_t __size) __alloc_size(1); 675 // 676 // The two-argument form handles the case where the size is calculated as the 677 // product of two arguments: 678 // 679 // void *calloc(size_t __count, size_t __size) __alloc_size(1,2); 680 681 // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail 682 // 683 // DEFAULT By default newly complied code will get POSIX APIs plus 684 // Apple API extensions in scope. 685 // 686 // Most users will use this compilation environment to avoid 687 // behavioral differences between 32 and 64 bit code. 688 // 689 // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple 690 // API extensions in scope. 691 // 692 // This is generally equivalent to the Tiger release compilation 693 // environment, except that it cannot be applied to 64 bit code; 694 // its use is discouraged. 695 // 696 // We expect this environment to be deprecated in the future. 697 // 698 // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the 699 // available APIs to exactly the set of APIs defined by the 700 // corresponding standard, based on the value defined. 701 // 702 // A correct, portable definition for _POSIX_C_SOURCE is 200112L. 703 // A correct, portable definition for _XOPEN_SOURCE is 600L. 704 // 705 // Apple API extensions are not visible in this environment, 706 // which can cause Apple specific code to fail to compile, 707 // or behave incorrectly if prototypes are not in scope or 708 // warnings about missing prototypes are not enabled or ignored. 709 // 710 // In any compilation environment, for correct symbol resolution to occur, 711 // function prototypes must be in scope. It is recommended that all Apple 712 // tools users add either the "-Wall" or "-Wimplicit-function-declaration" 713 // compiler flags to their projects to be warned when a function is being 714 // used without a prototype in scope. 715 716 // These settings are particular to each product. 717 // Platform: MacOSX 718 // #undef __DARWIN_ONLY_UNIX_CONFORMANCE (automatically set for 64-bit) 719 720 // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow 721 // legacy code to use the old symbol, thus maintaining binary compatibility 722 // while new code can use a standards compliant version of the same function. 723 // 724 // __DARWIN_ALIAS is used by itself if the function signature has not 725 // changed, it is used along with a #ifdef check for __DARWIN_UNIX03 726 // if the signature has changed. Because the __LP64__ environment 727 // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be 728 // defined, but causes __DARWIN_ALIAS to do no symbol mangling. 729 // 730 // As a special case, when XCode is used to target a specific version of the 731 // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 732 // will be defined by the compiler, with the digits representing major version 733 // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting 734 // pre-10.5, and it is the default compilation environment, revert the 735 // compilation environment to pre-__DARWIN_UNIX03. 736 737 // symbol suffixes used for symbol versioning 738 739 // symbol versioning macros 740 741 // symbol release macros 742 // Copyright (c) 2010 Apple Inc. All rights reserved. 743 // 744 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 745 // 746 // This file contains Original Code and/or Modifications of Original Code 747 // as defined in and that are subject to the Apple Public Source License 748 // Version 2.0 (the 'License'). You may not use this file except in 749 // compliance with the License. The rights granted to you under the License 750 // may not be used to create, or enable the creation or redistribution of, 751 // unlawful or unlicensed copies of an Apple operating system, or to 752 // circumvent, violate, or enable the circumvention or violation of, any 753 // terms of an Apple operating system software license agreement. 754 // 755 // Please obtain a copy of the License at 756 // http://www.opensource.apple.com/apsl/ and read it before using this file. 757 // 758 // The Original Code and all software distributed under the License are 759 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 760 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 761 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 762 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 763 // Please see the License for the specific language governing rights and 764 // limitations under the License. 765 // 766 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 767 768 // POSIX.1 requires that the macros we test be defined before any standard 769 // header file is included. This permits us to convert values for feature 770 // testing, as necessary, using only _POSIX_C_SOURCE. 771 // 772 // Here's a quick run-down of the versions: 773 // defined(_POSIX_SOURCE) 1003.1-1988 774 // _POSIX_C_SOURCE == 1L 1003.1-1990 775 // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option 776 // _POSIX_C_SOURCE == 199309L 1003.1b-1993 777 // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995, 778 // and the omnibus ISO/IEC 9945-1: 1996 779 // _POSIX_C_SOURCE == 200112L 1003.1-2001 780 // _POSIX_C_SOURCE == 200809L 1003.1-2008 781 // 782 // In addition, the X/Open Portability Guide, which is now the Single UNIX 783 // Specification, defines a feature-test macro which indicates the version of 784 // that specification, and which subsumes _POSIX_C_SOURCE. 785 786 // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L. 787 788 // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L. 789 790 // Deal with various X/Open Portability Guides and Single UNIX Spec. 791 792 // Deal with all versions of POSIX. The ordering relative to the tests above is 793 // important. 794 795 // POSIX C deprecation macros 796 // Copyright (c) 2010 Apple Inc. All rights reserved. 797 // 798 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 799 // 800 // This file contains Original Code and/or Modifications of Original Code 801 // as defined in and that are subject to the Apple Public Source License 802 // Version 2.0 (the 'License'). You may not use this file except in 803 // compliance with the License. The rights granted to you under the License 804 // may not be used to create, or enable the creation or redistribution of, 805 // unlawful or unlicensed copies of an Apple operating system, or to 806 // circumvent, violate, or enable the circumvention or violation of, any 807 // terms of an Apple operating system software license agreement. 808 // 809 // Please obtain a copy of the License at 810 // http://www.opensource.apple.com/apsl/ and read it before using this file. 811 // 812 // The Original Code and all software distributed under the License are 813 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 814 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 815 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 816 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 817 // Please see the License for the specific language governing rights and 818 // limitations under the License. 819 // 820 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 821 822 // Set a single macro which will always be defined and can be used to determine 823 // the appropriate namespace. For POSIX, these values will correspond to 824 // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding 825 // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE) 826 827 // If the developer has neither requested a strict language mode nor a version 828 // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part 829 // of __DARWIN_C_FULL. 830 831 // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and 832 // c99 still want long longs. While not perfect, we allow long longs for 833 // g++. 834 835 // **************************************** 836 // 837 // Public darwin-specific feature macros 838 // 839 840 // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and 841 // structures modified for 64-bit inodes (like struct stat) will be used. 842 843 // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only 844 // be 64-bit; there is no support for 32-bit ino_t when this macro is defined 845 // (and non-zero). There is no struct stat64 either, as the regular 846 // struct stat will already be the 64-bit version. 847 848 // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated 849 // in 10.5 exists; no pre-10.5 variants are available. 850 851 // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API 852 // are available (the legacy BSD APIs are not available) 853 854 // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on, 855 // and specifies the conformance level (3 is SUSv3) 856 857 // This macro casts away the qualifier from the variable 858 // 859 // Note: use at your own risk, removing qualifiers can result in 860 // catastrophic run-time failures. 861 862 // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be 863 // used from other compilation units, but not other libraries or executables. 864 865 // Architecture validation for current SDK 866 867 // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS 868 // 869 // This provides more advanced type checking on compilers supporting 870 // the proper extensions, even in C. 871 872 // Machine type dependent parameters. 873 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 874 // 875 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 876 // 877 // This file contains Original Code and/or Modifications of Original Code 878 // as defined in and that are subject to the Apple Public Source License 879 // Version 2.0 (the 'License'). You may not use this file except in 880 // compliance with the License. The rights granted to you under the License 881 // may not be used to create, or enable the creation or redistribution of, 882 // unlawful or unlicensed copies of an Apple operating system, or to 883 // circumvent, violate, or enable the circumvention or violation of, any 884 // terms of an Apple operating system software license agreement. 885 // 886 // Please obtain a copy of the License at 887 // http://www.opensource.apple.com/apsl/ and read it before using this file. 888 // 889 // The Original Code and all software distributed under the License are 890 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 891 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 892 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 893 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 894 // Please see the License for the specific language governing rights and 895 // limitations under the License. 896 // 897 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 898 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 899 900 // Copyright (c) 2000-2008 Apple Inc. All rights reserved. 901 // 902 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 903 // 904 // This file contains Original Code and/or Modifications of Original Code 905 // as defined in and that are subject to the Apple Public Source License 906 // Version 2.0 (the 'License'). You may not use this file except in 907 // compliance with the License. The rights granted to you under the License 908 // may not be used to create, or enable the creation or redistribution of, 909 // unlawful or unlicensed copies of an Apple operating system, or to 910 // circumvent, violate, or enable the circumvention or violation of, any 911 // terms of an Apple operating system software license agreement. 912 // 913 // Please obtain a copy of the License at 914 // http://www.opensource.apple.com/apsl/ and read it before using this file. 915 // 916 // The Original Code and all software distributed under the License are 917 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 918 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 919 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 920 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 921 // Please see the License for the specific language governing rights and 922 // limitations under the License. 923 // 924 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 925 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 926 // Copyright (c) 1990, 1993 927 // The Regents of the University of California. All rights reserved. 928 // 929 // Redistribution and use in source and binary forms, with or without 930 // modification, are permitted provided that the following conditions 931 // are met: 932 // 1. Redistributions of source code must retain the above copyright 933 // notice, this list of conditions and the following disclaimer. 934 // 2. Redistributions in binary form must reproduce the above copyright 935 // notice, this list of conditions and the following disclaimer in the 936 // documentation and/or other materials provided with the distribution. 937 // 3. All advertising materials mentioning features or use of this software 938 // must display the following acknowledgement: 939 // This product includes software developed by the University of 940 // California, Berkeley and its contributors. 941 // 4. Neither the name of the University nor the names of its contributors 942 // may be used to endorse or promote products derived from this software 943 // without specific prior written permission. 944 // 945 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 946 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 947 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 948 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 949 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 950 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 951 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 952 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 953 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 954 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 955 // SUCH DAMAGE. 956 // 957 // @(#)types.h 8.3 (Berkeley) 1/5/94 958 959 // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved. 960 // 961 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 962 // 963 // This file contains Original Code and/or Modifications of Original Code 964 // as defined in and that are subject to the Apple Public Source License 965 // Version 2.0 (the 'License'). You may not use this file except in 966 // compliance with the License. The rights granted to you under the License 967 // may not be used to create, or enable the creation or redistribution of, 968 // unlawful or unlicensed copies of an Apple operating system, or to 969 // circumvent, violate, or enable the circumvention or violation of, any 970 // terms of an Apple operating system software license agreement. 971 // 972 // Please obtain a copy of the License at 973 // http://www.opensource.apple.com/apsl/ and read it before using this file. 974 // 975 // The Original Code and all software distributed under the License are 976 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 977 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 978 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 979 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 980 // Please see the License for the specific language governing rights and 981 // limitations under the License. 982 // 983 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 984 985 // This header file contains integer types. It's intended to also contain 986 // flotaing point and other arithmetic types, as needed, later. 987 988 type X__int8_t = int8 /* _types.h:37:33 */ 989 type X__uint8_t = uint8 /* _types.h:41:33 */ 990 type X__int16_t = int16 /* _types.h:42:33 */ 991 type X__uint16_t = uint16 /* _types.h:43:33 */ 992 type X__int32_t = int32 /* _types.h:44:33 */ 993 type X__uint32_t = uint32 /* _types.h:45:33 */ 994 type X__int64_t = int64 /* _types.h:46:33 */ 995 type X__uint64_t = uint64 /* _types.h:47:33 */ 996 997 type X__darwin_intptr_t = int64 /* _types.h:49:33 */ 998 type X__darwin_natural_t = uint32 /* _types.h:50:33 */ 999 1000 // The rune type below is declared to be an ``int'' instead of the more natural 1001 // ``unsigned long'' or ``long''. Two things are happening here. It is not 1002 // unsigned so that EOF (-1) can be naturally assigned to it and used. Also, 1003 // it looks like 10646 will be a 31 bit standard. This means that if your 1004 // ints cannot hold 32 bits, you will be in trouble. The reason an int was 1005 // chosen over a long is that the is*() and to*() routines take ints (says 1006 // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it 1007 // here, you lose a bit of ANSI conformance, but your programs will still 1008 // work. 1009 // 1010 // NOTE: rune_t is not covered by ANSI nor other standards, and should not 1011 // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and 1012 // rune_t must be the same type. Also wint_t must be no narrower than 1013 // wchar_t, and should also be able to hold all members of the largest 1014 // character set plus one extra value (WEOF). wint_t must be at least 16 bits. 1015 1016 type X__darwin_ct_rune_t = int32 /* _types.h:70:33 */ // ct_rune_t 1017 1018 // mbstate_t is an opaque object to keep conversion state, during multibyte 1019 // stream conversions. The content must not be referenced by user programs. 1020 type X__mbstate_t = struct { 1021 F__ccgo_pad1 [0]uint64 1022 F__mbstate8 [128]int8 1023 } /* _types.h:79:3 */ 1024 1025 type X__darwin_mbstate_t = X__mbstate_t /* _types.h:81:33 */ // mbstate_t 1026 1027 type X__darwin_ptrdiff_t = int64 /* _types.h:84:33 */ // ptr1 - ptr2 1028 1029 type X__darwin_size_t = uint64 /* _types.h:92:33 */ // sizeof() 1030 1031 type X__darwin_va_list = X__builtin_va_list /* _types.h:98:33 */ // va_list 1032 1033 type X__darwin_wchar_t = int32 /* _types.h:104:33 */ // wchar_t 1034 1035 type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:109:33 */ // rune_t 1036 1037 type X__darwin_wint_t = int32 /* _types.h:112:33 */ // wint_t 1038 1039 type X__darwin_clock_t = uint64 /* _types.h:117:33 */ // clock() 1040 type X__darwin_socklen_t = X__uint32_t /* _types.h:118:33 */ // socklen_t (duh) 1041 type X__darwin_ssize_t = int64 /* _types.h:119:33 */ // byte count or error 1042 type X__darwin_time_t = int64 /* _types.h:120:33 */ // time() 1043 1044 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1045 // 1046 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1047 // 1048 // This file contains Original Code and/or Modifications of Original Code 1049 // as defined in and that are subject to the Apple Public Source License 1050 // Version 2.0 (the 'License'). You may not use this file except in 1051 // compliance with the License. The rights granted to you under the License 1052 // may not be used to create, or enable the creation or redistribution of, 1053 // unlawful or unlicensed copies of an Apple operating system, or to 1054 // circumvent, violate, or enable the circumvention or violation of, any 1055 // terms of an Apple operating system software license agreement. 1056 // 1057 // Please obtain a copy of the License at 1058 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1059 // 1060 // The Original Code and all software distributed under the License are 1061 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1062 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1063 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1064 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1065 // Please see the License for the specific language governing rights and 1066 // limitations under the License. 1067 // 1068 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1069 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1070 // Copyright (c) 1991, 1993 1071 // The Regents of the University of California. All rights reserved. 1072 // 1073 // This code is derived from software contributed to Berkeley by 1074 // Berkeley Software Design, Inc. 1075 // 1076 // Redistribution and use in source and binary forms, with or without 1077 // modification, are permitted provided that the following conditions 1078 // are met: 1079 // 1. Redistributions of source code must retain the above copyright 1080 // notice, this list of conditions and the following disclaimer. 1081 // 2. Redistributions in binary form must reproduce the above copyright 1082 // notice, this list of conditions and the following disclaimer in the 1083 // documentation and/or other materials provided with the distribution. 1084 // 3. All advertising materials mentioning features or use of this software 1085 // must display the following acknowledgement: 1086 // This product includes software developed by the University of 1087 // California, Berkeley and its contributors. 1088 // 4. Neither the name of the University nor the names of its contributors 1089 // may be used to endorse or promote products derived from this software 1090 // without specific prior written permission. 1091 // 1092 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1093 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1094 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1095 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1096 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1097 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1098 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1099 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1100 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1101 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1102 // SUCH DAMAGE. 1103 // 1104 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1105 1106 // Basic integral types. Omit the typedef if 1107 // not possible for a machine/compiler combination. 1108 // Copyright (c) 2012 Apple Inc. All rights reserved. 1109 // 1110 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1111 // 1112 // This file contains Original Code and/or Modifications of Original Code 1113 // as defined in and that are subject to the Apple Public Source License 1114 // Version 2.0 (the 'License'). You may not use this file except in 1115 // compliance with the License. The rights granted to you under the License 1116 // may not be used to create, or enable the creation or redistribution of, 1117 // unlawful or unlicensed copies of an Apple operating system, or to 1118 // circumvent, violate, or enable the circumvention or violation of, any 1119 // terms of an Apple operating system software license agreement. 1120 // 1121 // Please obtain a copy of the License at 1122 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1123 // 1124 // The Original Code and all software distributed under the License are 1125 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1126 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1127 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1128 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1129 // Please see the License for the specific language governing rights and 1130 // limitations under the License. 1131 // 1132 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1133 type Int8_t = int8 /* _int8_t.h:30:33 */ 1134 // Copyright (c) 2012 Apple Inc. All rights reserved. 1135 // 1136 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1137 // 1138 // This file contains Original Code and/or Modifications of Original Code 1139 // as defined in and that are subject to the Apple Public Source License 1140 // Version 2.0 (the 'License'). You may not use this file except in 1141 // compliance with the License. The rights granted to you under the License 1142 // may not be used to create, or enable the creation or redistribution of, 1143 // unlawful or unlicensed copies of an Apple operating system, or to 1144 // circumvent, violate, or enable the circumvention or violation of, any 1145 // terms of an Apple operating system software license agreement. 1146 // 1147 // Please obtain a copy of the License at 1148 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1149 // 1150 // The Original Code and all software distributed under the License are 1151 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1152 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1153 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1154 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1155 // Please see the License for the specific language governing rights and 1156 // limitations under the License. 1157 // 1158 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1159 type Int16_t = int16 /* _int16_t.h:30:33 */ 1160 // Copyright (c) 2012 Apple Inc. All rights reserved. 1161 // 1162 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1163 // 1164 // This file contains Original Code and/or Modifications of Original Code 1165 // as defined in and that are subject to the Apple Public Source License 1166 // Version 2.0 (the 'License'). You may not use this file except in 1167 // compliance with the License. The rights granted to you under the License 1168 // may not be used to create, or enable the creation or redistribution of, 1169 // unlawful or unlicensed copies of an Apple operating system, or to 1170 // circumvent, violate, or enable the circumvention or violation of, any 1171 // terms of an Apple operating system software license agreement. 1172 // 1173 // Please obtain a copy of the License at 1174 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1175 // 1176 // The Original Code and all software distributed under the License are 1177 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1178 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1179 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1180 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1181 // Please see the License for the specific language governing rights and 1182 // limitations under the License. 1183 // 1184 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1185 type Int32_t = int32 /* _int32_t.h:30:33 */ 1186 // Copyright (c) 2012 Apple Inc. All rights reserved. 1187 // 1188 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1189 // 1190 // This file contains Original Code and/or Modifications of Original Code 1191 // as defined in and that are subject to the Apple Public Source License 1192 // Version 2.0 (the 'License'). You may not use this file except in 1193 // compliance with the License. The rights granted to you under the License 1194 // may not be used to create, or enable the creation or redistribution of, 1195 // unlawful or unlicensed copies of an Apple operating system, or to 1196 // circumvent, violate, or enable the circumvention or violation of, any 1197 // terms of an Apple operating system software license agreement. 1198 // 1199 // Please obtain a copy of the License at 1200 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1201 // 1202 // The Original Code and all software distributed under the License are 1203 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1204 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1205 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1206 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1207 // Please see the License for the specific language governing rights and 1208 // limitations under the License. 1209 // 1210 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1211 type Int64_t = int64 /* _int64_t.h:30:33 */ 1212 1213 // Copyright (c) 2016 Apple Inc. All rights reserved. 1214 // 1215 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1216 // 1217 // This file contains Original Code and/or Modifications of Original Code 1218 // as defined in and that are subject to the Apple Public Source License 1219 // Version 2.0 (the 'License'). You may not use this file except in 1220 // compliance with the License. The rights granted to you under the License 1221 // may not be used to create, or enable the creation or redistribution of, 1222 // unlawful or unlicensed copies of an Apple operating system, or to 1223 // circumvent, violate, or enable the circumvention or violation of, any 1224 // terms of an Apple operating system software license agreement. 1225 // 1226 // Please obtain a copy of the License at 1227 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1228 // 1229 // The Original Code and all software distributed under the License are 1230 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1231 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1232 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1233 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1234 // Please see the License for the specific language governing rights and 1235 // limitations under the License. 1236 // 1237 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1238 type U_int8_t = uint8 /* _u_int8_t.h:30:33 */ 1239 // Copyright (c) 2012 Apple Inc. All rights reserved. 1240 // 1241 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1242 // 1243 // This file contains Original Code and/or Modifications of Original Code 1244 // as defined in and that are subject to the Apple Public Source License 1245 // Version 2.0 (the 'License'). You may not use this file except in 1246 // compliance with the License. The rights granted to you under the License 1247 // may not be used to create, or enable the creation or redistribution of, 1248 // unlawful or unlicensed copies of an Apple operating system, or to 1249 // circumvent, violate, or enable the circumvention or violation of, any 1250 // terms of an Apple operating system software license agreement. 1251 // 1252 // Please obtain a copy of the License at 1253 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1254 // 1255 // The Original Code and all software distributed under the License are 1256 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1257 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1258 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1259 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1260 // Please see the License for the specific language governing rights and 1261 // limitations under the License. 1262 // 1263 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1264 type U_int16_t = uint16 /* _u_int16_t.h:30:41 */ 1265 // Copyright (c) 2012 Apple Inc. All rights reserved. 1266 // 1267 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1268 // 1269 // This file contains Original Code and/or Modifications of Original Code 1270 // as defined in and that are subject to the Apple Public Source License 1271 // Version 2.0 (the 'License'). You may not use this file except in 1272 // compliance with the License. The rights granted to you under the License 1273 // may not be used to create, or enable the creation or redistribution of, 1274 // unlawful or unlicensed copies of an Apple operating system, or to 1275 // circumvent, violate, or enable the circumvention or violation of, any 1276 // terms of an Apple operating system software license agreement. 1277 // 1278 // Please obtain a copy of the License at 1279 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1280 // 1281 // The Original Code and all software distributed under the License are 1282 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1283 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1284 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1285 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1286 // Please see the License for the specific language governing rights and 1287 // limitations under the License. 1288 // 1289 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1290 type U_int32_t = uint32 /* _u_int32_t.h:30:33 */ 1291 // Copyright (c) 2012 Apple Inc. All rights reserved. 1292 // 1293 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1294 // 1295 // This file contains Original Code and/or Modifications of Original Code 1296 // as defined in and that are subject to the Apple Public Source License 1297 // Version 2.0 (the 'License'). You may not use this file except in 1298 // compliance with the License. The rights granted to you under the License 1299 // may not be used to create, or enable the creation or redistribution of, 1300 // unlawful or unlicensed copies of an Apple operating system, or to 1301 // circumvent, violate, or enable the circumvention or violation of, any 1302 // terms of an Apple operating system software license agreement. 1303 // 1304 // Please obtain a copy of the License at 1305 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1306 // 1307 // The Original Code and all software distributed under the License are 1308 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1309 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1310 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1311 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1312 // Please see the License for the specific language governing rights and 1313 // limitations under the License. 1314 // 1315 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1316 type U_int64_t = uint64 /* _u_int64_t.h:30:33 */ 1317 1318 type Register_t = Int64_t /* types.h:87:33 */ 1319 1320 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1321 // 1322 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1323 // 1324 // This file contains Original Code and/or Modifications of Original Code 1325 // as defined in and that are subject to the Apple Public Source License 1326 // Version 2.0 (the 'License'). You may not use this file except in 1327 // compliance with the License. The rights granted to you under the License 1328 // may not be used to create, or enable the creation or redistribution of, 1329 // unlawful or unlicensed copies of an Apple operating system, or to 1330 // circumvent, violate, or enable the circumvention or violation of, any 1331 // terms of an Apple operating system software license agreement. 1332 // 1333 // Please obtain a copy of the License at 1334 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1335 // 1336 // The Original Code and all software distributed under the License are 1337 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1338 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1339 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1340 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1341 // Please see the License for the specific language governing rights and 1342 // limitations under the License. 1343 // 1344 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1345 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 1346 // 1347 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1348 // 1349 // This file contains Original Code and/or Modifications of Original Code 1350 // as defined in and that are subject to the Apple Public Source License 1351 // Version 2.0 (the 'License'). You may not use this file except in 1352 // compliance with the License. The rights granted to you under the License 1353 // may not be used to create, or enable the creation or redistribution of, 1354 // unlawful or unlicensed copies of an Apple operating system, or to 1355 // circumvent, violate, or enable the circumvention or violation of, any 1356 // terms of an Apple operating system software license agreement. 1357 // 1358 // Please obtain a copy of the License at 1359 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1360 // 1361 // The Original Code and all software distributed under the License are 1362 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1363 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1364 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1365 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1366 // Please see the License for the specific language governing rights and 1367 // limitations under the License. 1368 // 1369 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1370 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1371 1372 type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */ 1373 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1374 // 1375 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1376 // 1377 // This file contains Original Code and/or Modifications of Original Code 1378 // as defined in and that are subject to the Apple Public Source License 1379 // Version 2.0 (the 'License'). You may not use this file except in 1380 // compliance with the License. The rights granted to you under the License 1381 // may not be used to create, or enable the creation or redistribution of, 1382 // unlawful or unlicensed copies of an Apple operating system, or to 1383 // circumvent, violate, or enable the circumvention or violation of, any 1384 // terms of an Apple operating system software license agreement. 1385 // 1386 // Please obtain a copy of the License at 1387 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1388 // 1389 // The Original Code and all software distributed under the License are 1390 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1391 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1392 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1393 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1394 // Please see the License for the specific language governing rights and 1395 // limitations under the License. 1396 // 1397 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1398 type Uintptr_t = uint64 /* _uintptr_t.h:30:33 */ 1399 1400 // These types are used for reserving the largest possible size. 1401 type User_addr_t = U_int64_t /* types.h:97:33 */ 1402 type User_size_t = U_int64_t /* types.h:98:33 */ 1403 type User_ssize_t = Int64_t /* types.h:99:33 */ 1404 type User_long_t = Int64_t /* types.h:100:33 */ 1405 type User_ulong_t = U_int64_t /* types.h:101:33 */ 1406 type User_time_t = Int64_t /* types.h:102:33 */ 1407 type User_off_t = Int64_t /* types.h:103:33 */ 1408 1409 // This defines the size of syscall arguments after copying into the kernel: 1410 type Syscall_arg_t = U_int64_t /* types.h:111:33 */ 1411 1412 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 1413 // 1414 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1415 // 1416 // This file contains Original Code and/or Modifications of Original Code 1417 // as defined in and that are subject to the Apple Public Source License 1418 // Version 2.0 (the 'License'). You may not use this file except in 1419 // compliance with the License. The rights granted to you under the License 1420 // may not be used to create, or enable the creation or redistribution of, 1421 // unlawful or unlicensed copies of an Apple operating system, or to 1422 // circumvent, violate, or enable the circumvention or violation of, any 1423 // terms of an Apple operating system software license agreement. 1424 // 1425 // Please obtain a copy of the License at 1426 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1427 // 1428 // The Original Code and all software distributed under the License are 1429 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1430 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1431 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1432 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1433 // Please see the License for the specific language governing rights and 1434 // limitations under the License. 1435 // 1436 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1437 1438 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1439 // 1440 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1441 // 1442 // This file contains Original Code and/or Modifications of Original Code 1443 // as defined in and that are subject to the Apple Public Source License 1444 // Version 2.0 (the 'License'). You may not use this file except in 1445 // compliance with the License. The rights granted to you under the License 1446 // may not be used to create, or enable the creation or redistribution of, 1447 // unlawful or unlicensed copies of an Apple operating system, or to 1448 // circumvent, violate, or enable the circumvention or violation of, any 1449 // terms of an Apple operating system software license agreement. 1450 // 1451 // Please obtain a copy of the License at 1452 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1453 // 1454 // The Original Code and all software distributed under the License are 1455 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1456 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1457 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1458 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1459 // Please see the License for the specific language governing rights and 1460 // limitations under the License. 1461 // 1462 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1463 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1464 // Copyright (c) 1991, 1993 1465 // The Regents of the University of California. All rights reserved. 1466 // 1467 // This code is derived from software contributed to Berkeley by 1468 // Berkeley Software Design, Inc. 1469 // 1470 // Redistribution and use in source and binary forms, with or without 1471 // modification, are permitted provided that the following conditions 1472 // are met: 1473 // 1. Redistributions of source code must retain the above copyright 1474 // notice, this list of conditions and the following disclaimer. 1475 // 2. Redistributions in binary form must reproduce the above copyright 1476 // notice, this list of conditions and the following disclaimer in the 1477 // documentation and/or other materials provided with the distribution. 1478 // 3. All advertising materials mentioning features or use of this software 1479 // must display the following acknowledgement: 1480 // This product includes software developed by the University of 1481 // California, Berkeley and its contributors. 1482 // 4. Neither the name of the University nor the names of its contributors 1483 // may be used to endorse or promote products derived from this software 1484 // without specific prior written permission. 1485 // 1486 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1487 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1488 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1489 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1490 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1491 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1492 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1493 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1494 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1495 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1496 // SUCH DAMAGE. 1497 // 1498 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1499 1500 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 1501 // 1502 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1503 // 1504 // This file contains Original Code and/or Modifications of Original Code 1505 // as defined in and that are subject to the Apple Public Source License 1506 // Version 2.0 (the 'License'). You may not use this file except in 1507 // compliance with the License. The rights granted to you under the License 1508 // may not be used to create, or enable the creation or redistribution of, 1509 // unlawful or unlicensed copies of an Apple operating system, or to 1510 // circumvent, violate, or enable the circumvention or violation of, any 1511 // terms of an Apple operating system software license agreement. 1512 // 1513 // Please obtain a copy of the License at 1514 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1515 // 1516 // The Original Code and all software distributed under the License are 1517 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1518 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1519 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1520 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1521 // Please see the License for the specific language governing rights and 1522 // limitations under the License. 1523 // 1524 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1525 1526 // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved. 1527 // 1528 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1529 // 1530 // This file contains Original Code and/or Modifications of Original Code 1531 // as defined in and that are subject to the Apple Public Source License 1532 // Version 2.0 (the 'License'). You may not use this file except in 1533 // compliance with the License. The rights granted to you under the License 1534 // may not be used to create, or enable the creation or redistribution of, 1535 // unlawful or unlicensed copies of an Apple operating system, or to 1536 // circumvent, violate, or enable the circumvention or violation of, any 1537 // terms of an Apple operating system software license agreement. 1538 // 1539 // Please obtain a copy of the License at 1540 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1541 // 1542 // The Original Code and all software distributed under the License are 1543 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1544 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1545 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1546 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1547 // Please see the License for the specific language governing rights and 1548 // limitations under the License. 1549 // 1550 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1551 1552 // Type definitions; takes common type definitions that must be used 1553 // in multiple header files due to [XSI], removes them from the system 1554 // space, and puts them in the implementation space. 1555 1556 type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks 1557 type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size 1558 type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t 1559 type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs 1560 type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs 1561 type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs 1562 type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t 1563 type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes 1564 type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes 1565 type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach 1566 type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach 1567 type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes 1568 type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes 1569 type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs 1570 type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set 1571 type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds 1572 type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs 1573 type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds 1574 type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */ 1575 type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */ 1576 1577 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 1578 // 1579 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1580 // 1581 // This file contains Original Code and/or Modifications of Original Code 1582 // as defined in and that are subject to the Apple Public Source License 1583 // Version 2.0 (the 'License'). You may not use this file except in 1584 // compliance with the License. The rights granted to you under the License 1585 // may not be used to create, or enable the creation or redistribution of, 1586 // unlawful or unlicensed copies of an Apple operating system, or to 1587 // circumvent, violate, or enable the circumvention or violation of, any 1588 // terms of an Apple operating system software license agreement. 1589 // 1590 // Please obtain a copy of the License at 1591 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1592 // 1593 // The Original Code and all software distributed under the License are 1594 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1595 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1596 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1597 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1598 // Please see the License for the specific language governing rights and 1599 // limitations under the License. 1600 // 1601 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1602 1603 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1604 // 1605 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1606 // 1607 // This file contains Original Code and/or Modifications of Original Code 1608 // as defined in and that are subject to the Apple Public Source License 1609 // Version 2.0 (the 'License'). You may not use this file except in 1610 // compliance with the License. The rights granted to you under the License 1611 // may not be used to create, or enable the creation or redistribution of, 1612 // unlawful or unlicensed copies of an Apple operating system, or to 1613 // circumvent, violate, or enable the circumvention or violation of, any 1614 // terms of an Apple operating system software license agreement. 1615 // 1616 // Please obtain a copy of the License at 1617 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1618 // 1619 // The Original Code and all software distributed under the License are 1620 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1621 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1622 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1623 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1624 // Please see the License for the specific language governing rights and 1625 // limitations under the License. 1626 // 1627 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1628 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1629 // Copyright (c) 1991, 1993 1630 // The Regents of the University of California. All rights reserved. 1631 // 1632 // This code is derived from software contributed to Berkeley by 1633 // Berkeley Software Design, Inc. 1634 // 1635 // Redistribution and use in source and binary forms, with or without 1636 // modification, are permitted provided that the following conditions 1637 // are met: 1638 // 1. Redistributions of source code must retain the above copyright 1639 // notice, this list of conditions and the following disclaimer. 1640 // 2. Redistributions in binary form must reproduce the above copyright 1641 // notice, this list of conditions and the following disclaimer in the 1642 // documentation and/or other materials provided with the distribution. 1643 // 3. All advertising materials mentioning features or use of this software 1644 // must display the following acknowledgement: 1645 // This product includes software developed by the University of 1646 // California, Berkeley and its contributors. 1647 // 4. Neither the name of the University nor the names of its contributors 1648 // may be used to endorse or promote products derived from this software 1649 // without specific prior written permission. 1650 // 1651 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1652 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1653 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1654 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1655 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1656 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1657 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1658 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1659 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1660 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1661 // SUCH DAMAGE. 1662 // 1663 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1664 1665 // pthread opaque structures 1666 1667 type X__darwin_pthread_handler_rec = struct { 1668 F__routine uintptr 1669 F__arg uintptr 1670 F__next uintptr 1671 } /* _pthread_types.h:57:1 */ 1672 1673 type X_opaque_pthread_attr_t = struct { 1674 F__sig int64 1675 F__opaque [56]int8 1676 } /* _pthread_types.h:63:1 */ 1677 1678 type X_opaque_pthread_cond_t = struct { 1679 F__sig int64 1680 F__opaque [40]int8 1681 } /* _pthread_types.h:68:1 */ 1682 1683 type X_opaque_pthread_condattr_t = struct { 1684 F__sig int64 1685 F__opaque [8]int8 1686 } /* _pthread_types.h:73:1 */ 1687 1688 type X_opaque_pthread_mutex_t = struct { 1689 F__sig int64 1690 F__opaque [56]int8 1691 } /* _pthread_types.h:78:1 */ 1692 1693 type X_opaque_pthread_mutexattr_t = struct { 1694 F__sig int64 1695 F__opaque [8]int8 1696 } /* _pthread_types.h:83:1 */ 1697 1698 type X_opaque_pthread_once_t = struct { 1699 F__sig int64 1700 F__opaque [8]int8 1701 } /* _pthread_types.h:88:1 */ 1702 1703 type X_opaque_pthread_rwlock_t = struct { 1704 F__sig int64 1705 F__opaque [192]int8 1706 } /* _pthread_types.h:93:1 */ 1707 1708 type X_opaque_pthread_rwlockattr_t = struct { 1709 F__sig int64 1710 F__opaque [16]int8 1711 } /* _pthread_types.h:98:1 */ 1712 1713 type X_opaque_pthread_t = struct { 1714 F__sig int64 1715 F__cleanup_stack uintptr 1716 F__opaque [8176]int8 1717 } /* _pthread_types.h:103:1 */ 1718 1719 type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */ 1720 type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */ 1721 type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */ 1722 type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */ 1723 type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */ 1724 type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */ 1725 type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */ 1726 type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */ 1727 type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */ 1728 type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */ 1729 1730 // Copyright (c) 2017 Apple Inc. All rights reserved. 1731 // 1732 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1733 // 1734 // This file contains Original Code and/or Modifications of Original Code 1735 // as defined in and that are subject to the Apple Public Source License 1736 // Version 2.0 (the 'License'). You may not use this file except in 1737 // compliance with the License. The rights granted to you under the License 1738 // may not be used to create, or enable the creation or redistribution of, 1739 // unlawful or unlicensed copies of an Apple operating system, or to 1740 // circumvent, violate, or enable the circumvention or violation of, any 1741 // terms of an Apple operating system software license agreement. 1742 // 1743 // Please obtain a copy of the License at 1744 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1745 // 1746 // The Original Code and all software distributed under the License are 1747 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1748 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1749 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1750 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1751 // Please see the License for the specific language governing rights and 1752 // limitations under the License. 1753 // 1754 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1755 type U_char = uint8 /* _u_char.h:30:25 */ 1756 // Copyright (c) 2017 Apple Inc. All rights reserved. 1757 // 1758 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1759 // 1760 // This file contains Original Code and/or Modifications of Original Code 1761 // as defined in and that are subject to the Apple Public Source License 1762 // Version 2.0 (the 'License'). You may not use this file except in 1763 // compliance with the License. The rights granted to you under the License 1764 // may not be used to create, or enable the creation or redistribution of, 1765 // unlawful or unlicensed copies of an Apple operating system, or to 1766 // circumvent, violate, or enable the circumvention or violation of, any 1767 // terms of an Apple operating system software license agreement. 1768 // 1769 // Please obtain a copy of the License at 1770 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1771 // 1772 // The Original Code and all software distributed under the License are 1773 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1774 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1775 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1776 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1777 // Please see the License for the specific language governing rights and 1778 // limitations under the License. 1779 // 1780 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1781 type U_short = uint16 /* _u_short.h:30:25 */ 1782 // Copyright (c) 2017 Apple Inc. All rights reserved. 1783 // 1784 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1785 // 1786 // This file contains Original Code and/or Modifications of Original Code 1787 // as defined in and that are subject to the Apple Public Source License 1788 // Version 2.0 (the 'License'). You may not use this file except in 1789 // compliance with the License. The rights granted to you under the License 1790 // may not be used to create, or enable the creation or redistribution of, 1791 // unlawful or unlicensed copies of an Apple operating system, or to 1792 // circumvent, violate, or enable the circumvention or violation of, any 1793 // terms of an Apple operating system software license agreement. 1794 // 1795 // Please obtain a copy of the License at 1796 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1797 // 1798 // The Original Code and all software distributed under the License are 1799 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1800 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1801 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1802 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1803 // Please see the License for the specific language governing rights and 1804 // limitations under the License. 1805 // 1806 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1807 type U_int = uint32 /* _u_int.h:30:25 */ 1808 type U_long = uint64 /* types.h:88:33 */ 1809 type Ushort = uint16 /* types.h:91:33 */ // Sys V compatibility 1810 type Uint = uint32 /* types.h:92:33 */ // Sys V compatibility 1811 1812 type U_quad_t = U_int64_t /* types.h:95:33 */ // quads 1813 type Quad_t = Int64_t /* types.h:96:33 */ 1814 type Qaddr_t = uintptr /* types.h:97:16 */ 1815 1816 // Copyright (c) 2017 Apple Inc. All rights reserved. 1817 // 1818 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1819 // 1820 // This file contains Original Code and/or Modifications of Original Code 1821 // as defined in and that are subject to the Apple Public Source License 1822 // Version 2.0 (the 'License'). You may not use this file except in 1823 // compliance with the License. The rights granted to you under the License 1824 // may not be used to create, or enable the creation or redistribution of, 1825 // unlawful or unlicensed copies of an Apple operating system, or to 1826 // circumvent, violate, or enable the circumvention or violation of, any 1827 // terms of an Apple operating system software license agreement. 1828 // 1829 // Please obtain a copy of the License at 1830 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1831 // 1832 // The Original Code and all software distributed under the License are 1833 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1834 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1835 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1836 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1837 // Please see the License for the specific language governing rights and 1838 // limitations under the License. 1839 // 1840 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1841 type Caddr_t = uintptr /* _caddr_t.h:30:14 */ 1842 1843 type Daddr_t = Int32_t /* types.h:101:33 */ // disk address 1844 1845 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 1846 // 1847 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1848 // 1849 // This file contains Original Code and/or Modifications of Original Code 1850 // as defined in and that are subject to the Apple Public Source License 1851 // Version 2.0 (the 'License'). You may not use this file except in 1852 // compliance with the License. The rights granted to you under the License 1853 // may not be used to create, or enable the creation or redistribution of, 1854 // unlawful or unlicensed copies of an Apple operating system, or to 1855 // circumvent, violate, or enable the circumvention or violation of, any 1856 // terms of an Apple operating system software license agreement. 1857 // 1858 // Please obtain a copy of the License at 1859 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1860 // 1861 // The Original Code and all software distributed under the License are 1862 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1863 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1864 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1865 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1866 // Please see the License for the specific language governing rights and 1867 // limitations under the License. 1868 // 1869 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1870 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 1871 // 1872 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1873 // 1874 // This file contains Original Code and/or Modifications of Original Code 1875 // as defined in and that are subject to the Apple Public Source License 1876 // Version 2.0 (the 'License'). You may not use this file except in 1877 // compliance with the License. The rights granted to you under the License 1878 // may not be used to create, or enable the creation or redistribution of, 1879 // unlawful or unlicensed copies of an Apple operating system, or to 1880 // circumvent, violate, or enable the circumvention or violation of, any 1881 // terms of an Apple operating system software license agreement. 1882 // 1883 // Please obtain a copy of the License at 1884 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1885 // 1886 // The Original Code and all software distributed under the License are 1887 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1888 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1889 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1890 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1891 // Please see the License for the specific language governing rights and 1892 // limitations under the License. 1893 // 1894 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1895 1896 type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number 1897 1898 type Fixpt_t = U_int32_t /* types.h:105:33 */ // fixed point number 1899 1900 // Copyright (c) 2003-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 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 1926 // 1927 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1928 // 1929 // This file contains Original Code and/or Modifications of Original Code 1930 // as defined in and that are subject to the Apple Public Source License 1931 // Version 2.0 (the 'License'). You may not use this file except in 1932 // compliance with the License. The rights granted to you under the License 1933 // may not be used to create, or enable the creation or redistribution of, 1934 // unlawful or unlicensed copies of an Apple operating system, or to 1935 // circumvent, violate, or enable the circumvention or violation of, any 1936 // terms of an Apple operating system software license agreement. 1937 // 1938 // Please obtain a copy of the License at 1939 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1940 // 1941 // The Original Code and all software distributed under the License are 1942 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1943 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1944 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1945 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1946 // Please see the License for the specific language governing rights and 1947 // limitations under the License. 1948 // 1949 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1950 1951 type Blkcnt_t = X__darwin_blkcnt_t /* _blkcnt_t.h:31:34 */ 1952 // Copyright (c) 2003-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 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 1978 // 1979 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1980 // 1981 // This file contains Original Code and/or Modifications of Original Code 1982 // as defined in and that are subject to the Apple Public Source License 1983 // Version 2.0 (the 'License'). You may not use this file except in 1984 // compliance with the License. The rights granted to you under the License 1985 // may not be used to create, or enable the creation or redistribution of, 1986 // unlawful or unlicensed copies of an Apple operating system, or to 1987 // circumvent, violate, or enable the circumvention or violation of, any 1988 // terms of an Apple operating system software license agreement. 1989 // 1990 // Please obtain a copy of the License at 1991 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1992 // 1993 // The Original Code and all software distributed under the License are 1994 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1995 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1996 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1997 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1998 // Please see the License for the specific language governing rights and 1999 // limitations under the License. 2000 // 2001 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2002 2003 type Blksize_t = X__darwin_blksize_t /* _blksize_t.h:31:35 */ 2004 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2005 // 2006 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2007 // 2008 // This file contains Original Code and/or Modifications of Original Code 2009 // as defined in and that are subject to the Apple Public Source License 2010 // Version 2.0 (the 'License'). You may not use this file except in 2011 // compliance with the License. The rights granted to you under the License 2012 // may not be used to create, or enable the creation or redistribution of, 2013 // unlawful or unlicensed copies of an Apple operating system, or to 2014 // circumvent, violate, or enable the circumvention or violation of, any 2015 // terms of an Apple operating system software license agreement. 2016 // 2017 // Please obtain a copy of the License at 2018 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2019 // 2020 // The Original Code and all software distributed under the License are 2021 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2022 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2023 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2024 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2025 // Please see the License for the specific language governing rights and 2026 // limitations under the License. 2027 // 2028 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2029 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2030 // 2031 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2032 // 2033 // This file contains Original Code and/or Modifications of Original Code 2034 // as defined in and that are subject to the Apple Public Source License 2035 // Version 2.0 (the 'License'). You may not use this file except in 2036 // compliance with the License. The rights granted to you under the License 2037 // may not be used to create, or enable the creation or redistribution of, 2038 // unlawful or unlicensed copies of an Apple operating system, or to 2039 // circumvent, violate, or enable the circumvention or violation of, any 2040 // terms of an Apple operating system software license agreement. 2041 // 2042 // Please obtain a copy of the License at 2043 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2044 // 2045 // The Original Code and all software distributed under the License are 2046 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2047 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2048 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2049 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2050 // Please see the License for the specific language governing rights and 2051 // limitations under the License. 2052 // 2053 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2054 2055 type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */ 2056 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2057 // 2058 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2059 // 2060 // This file contains Original Code and/or Modifications of Original Code 2061 // as defined in and that are subject to the Apple Public Source License 2062 // Version 2.0 (the 'License'). You may not use this file except in 2063 // compliance with the License. The rights granted to you under the License 2064 // may not be used to create, or enable the creation or redistribution of, 2065 // unlawful or unlicensed copies of an Apple operating system, or to 2066 // circumvent, violate, or enable the circumvention or violation of, any 2067 // terms of an Apple operating system software license agreement. 2068 // 2069 // Please obtain a copy of the License at 2070 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2071 // 2072 // The Original Code and all software distributed under the License are 2073 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2074 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2075 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2076 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2077 // Please see the License for the specific language governing rights and 2078 // limitations under the License. 2079 // 2080 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2081 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 2082 // 2083 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2084 // 2085 // This file contains Original Code and/or Modifications of Original Code 2086 // as defined in and that are subject to the Apple Public Source License 2087 // Version 2.0 (the 'License'). You may not use this file except in 2088 // compliance with the License. The rights granted to you under the License 2089 // may not be used to create, or enable the creation or redistribution of, 2090 // unlawful or unlicensed copies of an Apple operating system, or to 2091 // circumvent, violate, or enable the circumvention or violation of, any 2092 // terms of an Apple operating system software license agreement. 2093 // 2094 // Please obtain a copy of the License at 2095 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2096 // 2097 // The Original Code and all software distributed under the License are 2098 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2099 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2100 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2101 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2102 // Please see the License for the specific language governing rights and 2103 // limitations under the License. 2104 // 2105 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2106 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2107 type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address 2108 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2109 // 2110 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2111 // 2112 // This file contains Original Code and/or Modifications of Original Code 2113 // as defined in and that are subject to the Apple Public Source License 2114 // Version 2.0 (the 'License'). You may not use this file except in 2115 // compliance with the License. The rights granted to you under the License 2116 // may not be used to create, or enable the creation or redistribution of, 2117 // unlawful or unlicensed copies of an Apple operating system, or to 2118 // circumvent, violate, or enable the circumvention or violation of, any 2119 // terms of an Apple operating system software license agreement. 2120 // 2121 // Please obtain a copy of the License at 2122 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2123 // 2124 // The Original Code and all software distributed under the License are 2125 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2126 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2127 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2128 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2129 // Please see the License for the specific language governing rights and 2130 // limitations under the License. 2131 // 2132 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2133 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 2134 // 2135 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2136 // 2137 // This file contains Original Code and/or Modifications of Original Code 2138 // as defined in and that are subject to the Apple Public Source License 2139 // Version 2.0 (the 'License'). You may not use this file except in 2140 // compliance with the License. The rights granted to you under the License 2141 // may not be used to create, or enable the creation or redistribution of, 2142 // unlawful or unlicensed copies of an Apple operating system, or to 2143 // circumvent, violate, or enable the circumvention or violation of, any 2144 // terms of an Apple operating system software license agreement. 2145 // 2146 // Please obtain a copy of the License at 2147 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2148 // 2149 // The Original Code and all software distributed under the License are 2150 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2151 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2152 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2153 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2154 // Please see the License for the specific language governing rights and 2155 // limitations under the License. 2156 // 2157 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2158 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2159 type In_port_t = X__uint16_t /* _in_port_t.h:31:33 */ 2160 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2161 // 2162 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2163 // 2164 // This file contains Original Code and/or Modifications of Original Code 2165 // as defined in and that are subject to the Apple Public Source License 2166 // Version 2.0 (the 'License'). You may not use this file except in 2167 // compliance with the License. The rights granted to you under the License 2168 // may not be used to create, or enable the creation or redistribution of, 2169 // unlawful or unlicensed copies of an Apple operating system, or to 2170 // circumvent, violate, or enable the circumvention or violation of, any 2171 // terms of an Apple operating system software license agreement. 2172 // 2173 // Please obtain a copy of the License at 2174 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2175 // 2176 // The Original Code and all software distributed under the License are 2177 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2178 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2179 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2180 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2181 // Please see the License for the specific language governing rights and 2182 // limitations under the License. 2183 // 2184 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2185 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2186 // 2187 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2188 // 2189 // This file contains Original Code and/or Modifications of Original Code 2190 // as defined in and that are subject to the Apple Public Source License 2191 // Version 2.0 (the 'License'). You may not use this file except in 2192 // compliance with the License. The rights granted to you under the License 2193 // may not be used to create, or enable the creation or redistribution of, 2194 // unlawful or unlicensed copies of an Apple operating system, or to 2195 // circumvent, violate, or enable the circumvention or violation of, any 2196 // terms of an Apple operating system software license agreement. 2197 // 2198 // Please obtain a copy of the License at 2199 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2200 // 2201 // The Original Code and all software distributed under the License are 2202 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2203 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2204 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2205 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2206 // Please see the License for the specific language governing rights and 2207 // limitations under the License. 2208 // 2209 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2210 2211 type Ino_t = X__darwin_ino_t /* _ino_t.h:31:33 */ // inode number 2212 2213 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2214 // 2215 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2216 // 2217 // This file contains Original Code and/or Modifications of Original Code 2218 // as defined in and that are subject to the Apple Public Source License 2219 // Version 2.0 (the 'License'). You may not use this file except in 2220 // compliance with the License. The rights granted to you under the License 2221 // may not be used to create, or enable the creation or redistribution of, 2222 // unlawful or unlicensed copies of an Apple operating system, or to 2223 // circumvent, violate, or enable the circumvention or violation of, any 2224 // terms of an Apple operating system software license agreement. 2225 // 2226 // Please obtain a copy of the License at 2227 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2228 // 2229 // The Original Code and all software distributed under the License are 2230 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2231 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2232 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2233 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2234 // Please see the License for the specific language governing rights and 2235 // limitations under the License. 2236 // 2237 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2238 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2239 // 2240 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2241 // 2242 // This file contains Original Code and/or Modifications of Original Code 2243 // as defined in and that are subject to the Apple Public Source License 2244 // Version 2.0 (the 'License'). You may not use this file except in 2245 // compliance with the License. The rights granted to you under the License 2246 // may not be used to create, or enable the creation or redistribution of, 2247 // unlawful or unlicensed copies of an Apple operating system, or to 2248 // circumvent, violate, or enable the circumvention or violation of, any 2249 // terms of an Apple operating system software license agreement. 2250 // 2251 // Please obtain a copy of the License at 2252 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2253 // 2254 // The Original Code and all software distributed under the License are 2255 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2256 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2257 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2258 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2259 // Please see the License for the specific language governing rights and 2260 // limitations under the License. 2261 // 2262 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2263 2264 type Ino64_t = X__darwin_ino64_t /* _ino64_t.h:31:33 */ // 64bit inode number 2265 2266 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2267 // 2268 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2269 // 2270 // This file contains Original Code and/or Modifications of Original Code 2271 // as defined in and that are subject to the Apple Public Source License 2272 // Version 2.0 (the 'License'). You may not use this file except in 2273 // compliance with the License. The rights granted to you under the License 2274 // may not be used to create, or enable the creation or redistribution of, 2275 // unlawful or unlicensed copies of an Apple operating system, or to 2276 // circumvent, violate, or enable the circumvention or violation of, any 2277 // terms of an Apple operating system software license agreement. 2278 // 2279 // Please obtain a copy of the License at 2280 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2281 // 2282 // The Original Code and all software distributed under the License are 2283 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2284 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2285 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2286 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2287 // Please see the License for the specific language governing rights and 2288 // limitations under the License. 2289 // 2290 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2291 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 2292 // 2293 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2294 // 2295 // This file contains Original Code and/or Modifications of Original Code 2296 // as defined in and that are subject to the Apple Public Source License 2297 // Version 2.0 (the 'License'). You may not use this file except in 2298 // compliance with the License. The rights granted to you under the License 2299 // may not be used to create, or enable the creation or redistribution of, 2300 // unlawful or unlicensed copies of an Apple operating system, or to 2301 // circumvent, violate, or enable the circumvention or violation of, any 2302 // terms of an Apple operating system software license agreement. 2303 // 2304 // Please obtain a copy of the License at 2305 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2306 // 2307 // The Original Code and all software distributed under the License are 2308 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2309 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2310 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2311 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2312 // Please see the License for the specific language governing rights and 2313 // limitations under the License. 2314 // 2315 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2316 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2317 type Key_t = X__int32_t /* _key_t.h:31:26 */ // IPC key (for Sys V IPC) 2318 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2319 // 2320 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2321 // 2322 // This file contains Original Code and/or Modifications of Original Code 2323 // as defined in and that are subject to the Apple Public Source License 2324 // Version 2.0 (the 'License'). You may not use this file except in 2325 // compliance with the License. The rights granted to you under the License 2326 // may not be used to create, or enable the creation or redistribution of, 2327 // unlawful or unlicensed copies of an Apple operating system, or to 2328 // circumvent, violate, or enable the circumvention or violation of, any 2329 // terms of an Apple operating system software license agreement. 2330 // 2331 // Please obtain a copy of the License at 2332 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2333 // 2334 // The Original Code and all software distributed under the License are 2335 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2336 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2337 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2338 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2339 // Please see the License for the specific language governing rights and 2340 // limitations under the License. 2341 // 2342 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2343 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2344 // 2345 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2346 // 2347 // This file contains Original Code and/or Modifications of Original Code 2348 // as defined in and that are subject to the Apple Public Source License 2349 // Version 2.0 (the 'License'). You may not use this file except in 2350 // compliance with the License. The rights granted to you under the License 2351 // may not be used to create, or enable the creation or redistribution of, 2352 // unlawful or unlicensed copies of an Apple operating system, or to 2353 // circumvent, violate, or enable the circumvention or violation of, any 2354 // terms of an Apple operating system software license agreement. 2355 // 2356 // Please obtain a copy of the License at 2357 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2358 // 2359 // The Original Code and all software distributed under the License are 2360 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2361 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2362 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2363 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2364 // Please see the License for the specific language governing rights and 2365 // limitations under the License. 2366 // 2367 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2368 2369 type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */ 2370 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2371 // 2372 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2373 // 2374 // This file contains Original Code and/or Modifications of Original Code 2375 // as defined in and that are subject to the Apple Public Source License 2376 // Version 2.0 (the 'License'). You may not use this file except in 2377 // compliance with the License. The rights granted to you under the License 2378 // may not be used to create, or enable the creation or redistribution of, 2379 // unlawful or unlicensed copies of an Apple operating system, or to 2380 // circumvent, violate, or enable the circumvention or violation of, any 2381 // terms of an Apple operating system software license agreement. 2382 // 2383 // Please obtain a copy of the License at 2384 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2385 // 2386 // The Original Code and all software distributed under the License are 2387 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2388 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2389 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2390 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2391 // Please see the License for the specific language governing rights and 2392 // limitations under the License. 2393 // 2394 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2395 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 2396 // 2397 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2398 // 2399 // This file contains Original Code and/or Modifications of Original Code 2400 // as defined in and that are subject to the Apple Public Source License 2401 // Version 2.0 (the 'License'). You may not use this file except in 2402 // compliance with the License. The rights granted to you under the License 2403 // may not be used to create, or enable the creation or redistribution of, 2404 // unlawful or unlicensed copies of an Apple operating system, or to 2405 // circumvent, violate, or enable the circumvention or violation of, any 2406 // terms of an Apple operating system software license agreement. 2407 // 2408 // Please obtain a copy of the License at 2409 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2410 // 2411 // The Original Code and all software distributed under the License are 2412 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2413 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2414 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2415 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2416 // Please see the License for the specific language governing rights and 2417 // limitations under the License. 2418 // 2419 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2420 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2421 type Nlink_t = X__uint16_t /* _nlink_t.h:31:27 */ // link count 2422 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2423 // 2424 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2425 // 2426 // This file contains Original Code and/or Modifications of Original Code 2427 // as defined in and that are subject to the Apple Public Source License 2428 // Version 2.0 (the 'License'). You may not use this file except in 2429 // compliance with the License. The rights granted to you under the License 2430 // may not be used to create, or enable the creation or redistribution of, 2431 // unlawful or unlicensed copies of an Apple operating system, or to 2432 // circumvent, violate, or enable the circumvention or violation of, any 2433 // terms of an Apple operating system software license agreement. 2434 // 2435 // Please obtain a copy of the License at 2436 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2437 // 2438 // The Original Code and all software distributed under the License are 2439 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2440 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2441 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2442 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2443 // Please see the License for the specific language governing rights and 2444 // limitations under the License. 2445 // 2446 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2447 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2448 // 2449 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2450 // 2451 // This file contains Original Code and/or Modifications of Original Code 2452 // as defined in and that are subject to the Apple Public Source License 2453 // Version 2.0 (the 'License'). You may not use this file except in 2454 // compliance with the License. The rights granted to you under the License 2455 // may not be used to create, or enable the creation or redistribution of, 2456 // unlawful or unlicensed copies of an Apple operating system, or to 2457 // circumvent, violate, or enable the circumvention or violation of, any 2458 // terms of an Apple operating system software license agreement. 2459 // 2460 // Please obtain a copy of the License at 2461 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2462 // 2463 // The Original Code and all software distributed under the License are 2464 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2465 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2466 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2467 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2468 // Please see the License for the specific language governing rights and 2469 // limitations under the License. 2470 // 2471 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2472 2473 type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t 2474 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2475 // 2476 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2477 // 2478 // This file contains Original Code and/or Modifications of Original Code 2479 // as defined in and that are subject to the Apple Public Source License 2480 // Version 2.0 (the 'License'). You may not use this file except in 2481 // compliance with the License. The rights granted to you under the License 2482 // may not be used to create, or enable the creation or redistribution of, 2483 // unlawful or unlicensed copies of an Apple operating system, or to 2484 // circumvent, violate, or enable the circumvention or violation of, any 2485 // terms of an Apple operating system software license agreement. 2486 // 2487 // Please obtain a copy of the License at 2488 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2489 // 2490 // The Original Code and all software distributed under the License are 2491 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2492 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2493 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2494 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2495 // Please see the License for the specific language governing rights and 2496 // limitations under the License. 2497 // 2498 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2499 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2500 // 2501 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2502 // 2503 // This file contains Original Code and/or Modifications of Original Code 2504 // as defined in and that are subject to the Apple Public Source License 2505 // Version 2.0 (the 'License'). You may not use this file except in 2506 // compliance with the License. The rights granted to you under the License 2507 // may not be used to create, or enable the creation or redistribution of, 2508 // unlawful or unlicensed copies of an Apple operating system, or to 2509 // circumvent, violate, or enable the circumvention or violation of, any 2510 // terms of an Apple operating system software license agreement. 2511 // 2512 // Please obtain a copy of the License at 2513 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2514 // 2515 // The Original Code and all software distributed under the License are 2516 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2517 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2518 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2519 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2520 // Please see the License for the specific language governing rights and 2521 // limitations under the License. 2522 // 2523 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2524 2525 type Pid_t = X__darwin_pid_t /* _pid_t.h:31:31 */ 2526 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2527 // 2528 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2529 // 2530 // This file contains Original Code and/or Modifications of Original Code 2531 // as defined in and that are subject to the Apple Public Source License 2532 // Version 2.0 (the 'License'). You may not use this file except in 2533 // compliance with the License. The rights granted to you under the License 2534 // may not be used to create, or enable the creation or redistribution of, 2535 // unlawful or unlicensed copies of an Apple operating system, or to 2536 // circumvent, violate, or enable the circumvention or violation of, any 2537 // terms of an Apple operating system software license agreement. 2538 // 2539 // Please obtain a copy of the License at 2540 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2541 // 2542 // The Original Code and all software distributed under the License are 2543 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2544 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2545 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2546 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2547 // Please see the License for the specific language governing rights and 2548 // limitations under the License. 2549 // 2550 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2551 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2552 // 2553 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2554 // 2555 // This file contains Original Code and/or Modifications of Original Code 2556 // as defined in and that are subject to the Apple Public Source License 2557 // Version 2.0 (the 'License'). You may not use this file except in 2558 // compliance with the License. The rights granted to you under the License 2559 // may not be used to create, or enable the creation or redistribution of, 2560 // unlawful or unlicensed copies of an Apple operating system, or to 2561 // circumvent, violate, or enable the circumvention or violation of, any 2562 // terms of an Apple operating system software license agreement. 2563 // 2564 // Please obtain a copy of the License at 2565 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2566 // 2567 // The Original Code and all software distributed under the License are 2568 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2569 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2570 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2571 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2572 // Please see the License for the specific language governing rights and 2573 // limitations under the License. 2574 // 2575 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2576 2577 type Off_t = X__darwin_off_t /* _off_t.h:31:33 */ 2578 2579 type Segsz_t = Int32_t /* types.h:125:33 */ // segment size 2580 type Swblk_t = Int32_t /* types.h:126:33 */ // swap offset 2581 2582 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2583 // 2584 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2585 // 2586 // This file contains Original Code and/or Modifications of Original Code 2587 // as defined in and that are subject to the Apple Public Source License 2588 // Version 2.0 (the 'License'). You may not use this file except in 2589 // compliance with the License. The rights granted to you under the License 2590 // may not be used to create, or enable the creation or redistribution of, 2591 // unlawful or unlicensed copies of an Apple operating system, or to 2592 // circumvent, violate, or enable the circumvention or violation of, any 2593 // terms of an Apple operating system software license agreement. 2594 // 2595 // Please obtain a copy of the License at 2596 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2597 // 2598 // The Original Code and all software distributed under the License are 2599 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2600 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2601 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2602 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2603 // Please see the License for the specific language governing rights and 2604 // limitations under the License. 2605 // 2606 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2607 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2608 // 2609 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2610 // 2611 // This file contains Original Code and/or Modifications of Original Code 2612 // as defined in and that are subject to the Apple Public Source License 2613 // Version 2.0 (the 'License'). You may not use this file except in 2614 // compliance with the License. The rights granted to you under the License 2615 // may not be used to create, or enable the creation or redistribution of, 2616 // unlawful or unlicensed copies of an Apple operating system, or to 2617 // circumvent, violate, or enable the circumvention or violation of, any 2618 // terms of an Apple operating system software license agreement. 2619 // 2620 // Please obtain a copy of the License at 2621 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2622 // 2623 // The Original Code and all software distributed under the License are 2624 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2625 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2626 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2627 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2628 // Please see the License for the specific language governing rights and 2629 // limitations under the License. 2630 // 2631 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2632 2633 type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */ 2634 2635 // Major, minor numbers, dev_t's. 2636 2637 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2638 // 2639 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2640 // 2641 // This file contains Original Code and/or Modifications of Original Code 2642 // as defined in and that are subject to the Apple Public Source License 2643 // Version 2.0 (the 'License'). You may not use this file except in 2644 // compliance with the License. The rights granted to you under the License 2645 // may not be used to create, or enable the creation or redistribution of, 2646 // unlawful or unlicensed copies of an Apple operating system, or to 2647 // circumvent, violate, or enable the circumvention or violation of, any 2648 // terms of an Apple operating system software license agreement. 2649 // 2650 // Please obtain a copy of the License at 2651 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2652 // 2653 // The Original Code and all software distributed under the License are 2654 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2655 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2656 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2657 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2658 // Please see the License for the specific language governing rights and 2659 // limitations under the License. 2660 // 2661 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2662 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 2663 // 2664 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2665 // 2666 // This file contains Original Code and/or Modifications of Original Code 2667 // as defined in and that are subject to the Apple Public Source License 2668 // Version 2.0 (the 'License'). You may not use this file except in 2669 // compliance with the License. The rights granted to you under the License 2670 // may not be used to create, or enable the creation or redistribution of, 2671 // unlawful or unlicensed copies of an Apple operating system, or to 2672 // circumvent, violate, or enable the circumvention or violation of, any 2673 // terms of an Apple operating system software license agreement. 2674 // 2675 // Please obtain a copy of the License at 2676 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2677 // 2678 // The Original Code and all software distributed under the License are 2679 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2680 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2681 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2682 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2683 // Please see the License for the specific language governing rights and 2684 // limitations under the License. 2685 // 2686 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2687 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2688 type Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */ 2689 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2690 // 2691 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2692 // 2693 // This file contains Original Code and/or Modifications of Original Code 2694 // as defined in and that are subject to the Apple Public Source License 2695 // Version 2.0 (the 'License'). You may not use this file except in 2696 // compliance with the License. The rights granted to you under the License 2697 // may not be used to create, or enable the creation or redistribution of, 2698 // unlawful or unlicensed copies of an Apple operating system, or to 2699 // circumvent, violate, or enable the circumvention or violation of, any 2700 // terms of an Apple operating system software license agreement. 2701 // 2702 // Please obtain a copy of the License at 2703 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2704 // 2705 // The Original Code and all software distributed under the License are 2706 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2707 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2708 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2709 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2710 // Please see the License for the specific language governing rights and 2711 // limitations under the License. 2712 // 2713 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2714 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 2715 // 2716 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2717 // 2718 // This file contains Original Code and/or Modifications of Original Code 2719 // as defined in and that are subject to the Apple Public Source License 2720 // Version 2.0 (the 'License'). You may not use this file except in 2721 // compliance with the License. The rights granted to you under the License 2722 // may not be used to create, or enable the creation or redistribution of, 2723 // unlawful or unlicensed copies of an Apple operating system, or to 2724 // circumvent, violate, or enable the circumvention or violation of, any 2725 // terms of an Apple operating system software license agreement. 2726 // 2727 // Please obtain a copy of the License at 2728 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2729 // 2730 // The Original Code and all software distributed under the License are 2731 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2732 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2733 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2734 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2735 // Please see the License for the specific language governing rights and 2736 // limitations under the License. 2737 // 2738 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2739 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2740 type Ssize_t = X__darwin_ssize_t /* _ssize_t.h:31:33 */ 2741 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2742 // 2743 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2744 // 2745 // This file contains Original Code and/or Modifications of Original Code 2746 // as defined in and that are subject to the Apple Public Source License 2747 // Version 2.0 (the 'License'). You may not use this file except in 2748 // compliance with the License. The rights granted to you under the License 2749 // may not be used to create, or enable the creation or redistribution of, 2750 // unlawful or unlicensed copies of an Apple operating system, or to 2751 // circumvent, violate, or enable the circumvention or violation of, any 2752 // terms of an Apple operating system software license agreement. 2753 // 2754 // Please obtain a copy of the License at 2755 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2756 // 2757 // The Original Code and all software distributed under the License are 2758 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2759 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2760 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2761 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2762 // Please see the License for the specific language governing rights and 2763 // limitations under the License. 2764 // 2765 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2766 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 2767 // 2768 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2769 // 2770 // This file contains Original Code and/or Modifications of Original Code 2771 // as defined in and that are subject to the Apple Public Source License 2772 // Version 2.0 (the 'License'). You may not use this file except in 2773 // compliance with the License. The rights granted to you under the License 2774 // may not be used to create, or enable the creation or redistribution of, 2775 // unlawful or unlicensed copies of an Apple operating system, or to 2776 // circumvent, violate, or enable the circumvention or violation of, any 2777 // terms of an Apple operating system software license agreement. 2778 // 2779 // Please obtain a copy of the License at 2780 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2781 // 2782 // The Original Code and all software distributed under the License are 2783 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2784 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2785 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2786 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2787 // Please see the License for the specific language governing rights and 2788 // limitations under the License. 2789 // 2790 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2791 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2792 type Time_t = X__darwin_time_t /* _time_t.h:31:33 */ 2793 2794 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2795 // 2796 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2797 // 2798 // This file contains Original Code and/or Modifications of Original Code 2799 // as defined in and that are subject to the Apple Public Source License 2800 // Version 2.0 (the 'License'). You may not use this file except in 2801 // compliance with the License. The rights granted to you under the License 2802 // may not be used to create, or enable the creation or redistribution of, 2803 // unlawful or unlicensed copies of an Apple operating system, or to 2804 // circumvent, violate, or enable the circumvention or violation of, any 2805 // terms of an Apple operating system software license agreement. 2806 // 2807 // Please obtain a copy of the License at 2808 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2809 // 2810 // The Original Code and all software distributed under the License are 2811 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2812 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2813 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2814 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2815 // Please see the License for the specific language governing rights and 2816 // limitations under the License. 2817 // 2818 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2819 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2820 // 2821 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2822 // 2823 // This file contains Original Code and/or Modifications of Original Code 2824 // as defined in and that are subject to the Apple Public Source License 2825 // Version 2.0 (the 'License'). You may not use this file except in 2826 // compliance with the License. The rights granted to you under the License 2827 // may not be used to create, or enable the creation or redistribution of, 2828 // unlawful or unlicensed copies of an Apple operating system, or to 2829 // circumvent, violate, or enable the circumvention or violation of, any 2830 // terms of an Apple operating system software license agreement. 2831 // 2832 // Please obtain a copy of the License at 2833 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2834 // 2835 // The Original Code and all software distributed under the License are 2836 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2837 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2838 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2839 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2840 // Please see the License for the specific language governing rights and 2841 // limitations under the License. 2842 // 2843 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2844 2845 type Useconds_t = X__darwin_useconds_t /* _useconds_t.h:31:33 */ 2846 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2847 // 2848 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2849 // 2850 // This file contains Original Code and/or Modifications of Original Code 2851 // as defined in and that are subject to the Apple Public Source License 2852 // Version 2.0 (the 'License'). You may not use this file except in 2853 // compliance with the License. The rights granted to you under the License 2854 // may not be used to create, or enable the creation or redistribution of, 2855 // unlawful or unlicensed copies of an Apple operating system, or to 2856 // circumvent, violate, or enable the circumvention or violation of, any 2857 // terms of an Apple operating system software license agreement. 2858 // 2859 // Please obtain a copy of the License at 2860 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2861 // 2862 // The Original Code and all software distributed under the License are 2863 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2864 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2865 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2866 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2867 // Please see the License for the specific language governing rights and 2868 // limitations under the License. 2869 // 2870 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2871 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 2872 // 2873 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2874 // 2875 // This file contains Original Code and/or Modifications of Original Code 2876 // as defined in and that are subject to the Apple Public Source License 2877 // Version 2.0 (the 'License'). You may not use this file except in 2878 // compliance with the License. The rights granted to you under the License 2879 // may not be used to create, or enable the creation or redistribution of, 2880 // unlawful or unlicensed copies of an Apple operating system, or to 2881 // circumvent, violate, or enable the circumvention or violation of, any 2882 // terms of an Apple operating system software license agreement. 2883 // 2884 // Please obtain a copy of the License at 2885 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2886 // 2887 // The Original Code and all software distributed under the License are 2888 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2889 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2890 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2891 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2892 // Please see the License for the specific language governing rights and 2893 // limitations under the License. 2894 // 2895 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2896 2897 type Suseconds_t = X__darwin_suseconds_t /* _suseconds_t.h:31:33 */ 2898 2899 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2900 // 2901 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2902 // 2903 // This file contains Original Code and/or Modifications of Original Code 2904 // as defined in and that are subject to the Apple Public Source License 2905 // Version 2.0 (the 'License'). You may not use this file except in 2906 // compliance with the License. The rights granted to you under the License 2907 // may not be used to create, or enable the creation or redistribution of, 2908 // unlawful or unlicensed copies of an Apple operating system, or to 2909 // circumvent, violate, or enable the circumvention or violation of, any 2910 // terms of an Apple operating system software license agreement. 2911 // 2912 // Please obtain a copy of the License at 2913 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2914 // 2915 // The Original Code and all software distributed under the License are 2916 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2917 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2918 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2919 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2920 // Please see the License for the specific language governing rights and 2921 // limitations under the License. 2922 // 2923 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2924 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 2925 // 2926 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2927 // 2928 // This file contains Original Code and/or Modifications of Original Code 2929 // as defined in and that are subject to the Apple Public Source License 2930 // Version 2.0 (the 'License'). You may not use this file except in 2931 // compliance with the License. The rights granted to you under the License 2932 // may not be used to create, or enable the creation or redistribution of, 2933 // unlawful or unlicensed copies of an Apple operating system, or to 2934 // circumvent, violate, or enable the circumvention or violation of, any 2935 // terms of an Apple operating system software license agreement. 2936 // 2937 // Please obtain a copy of the License at 2938 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2939 // 2940 // The Original Code and all software distributed under the License are 2941 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2942 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2943 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2944 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2945 // Please see the License for the specific language governing rights and 2946 // limitations under the License. 2947 // 2948 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2949 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 2950 type Rsize_t = X__darwin_size_t /* _rsize_t.h:31:32 */ 2951 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2952 // 2953 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2954 // 2955 // This file contains Original Code and/or Modifications of Original Code 2956 // as defined in and that are subject to the Apple Public Source License 2957 // Version 2.0 (the 'License'). You may not use this file except in 2958 // compliance with the License. The rights granted to you under the License 2959 // may not be used to create, or enable the creation or redistribution of, 2960 // unlawful or unlicensed copies of an Apple operating system, or to 2961 // circumvent, violate, or enable the circumvention or violation of, any 2962 // terms of an Apple operating system software license agreement. 2963 // 2964 // Please obtain a copy of the License at 2965 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2966 // 2967 // The Original Code and all software distributed under the License are 2968 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2969 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 2970 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 2971 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 2972 // Please see the License for the specific language governing rights and 2973 // limitations under the License. 2974 // 2975 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 2976 type Errno_t = int32 /* _errno_t.h:30:32 */ 2977 2978 // This code is present here in order to maintain historical backward 2979 // compatability, and is intended to be removed at some point in the 2980 // future; please include <sys/select.h> instead. 2981 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 2982 // 2983 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 2984 // 2985 // This file contains Original Code and/or Modifications of Original Code 2986 // as defined in and that are subject to the Apple Public Source License 2987 // Version 2.0 (the 'License'). You may not use this file except in 2988 // compliance with the License. The rights granted to you under the License 2989 // may not be used to create, or enable the creation or redistribution of, 2990 // unlawful or unlicensed copies of an Apple operating system, or to 2991 // circumvent, violate, or enable the circumvention or violation of, any 2992 // terms of an Apple operating system software license agreement. 2993 // 2994 // Please obtain a copy of the License at 2995 // http://www.opensource.apple.com/apsl/ and read it before using this file. 2996 // 2997 // The Original Code and all software distributed under the License are 2998 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 2999 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3000 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3001 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3002 // Please see the License for the specific language governing rights and 3003 // limitations under the License. 3004 // 3005 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3006 3007 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 3008 // 3009 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3010 // 3011 // This file contains Original Code and/or Modifications of Original Code 3012 // as defined in and that are subject to the Apple Public Source License 3013 // Version 2.0 (the 'License'). You may not use this file except in 3014 // compliance with the License. The rights granted to you under the License 3015 // may not be used to create, or enable the creation or redistribution of, 3016 // unlawful or unlicensed copies of an Apple operating system, or to 3017 // circumvent, violate, or enable the circumvention or violation of, any 3018 // terms of an Apple operating system software license agreement. 3019 // 3020 // Please obtain a copy of the License at 3021 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3022 // 3023 // The Original Code and all software distributed under the License are 3024 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3025 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3026 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3027 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3028 // Please see the License for the specific language governing rights and 3029 // limitations under the License. 3030 // 3031 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3032 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3033 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 3034 // 3035 // @APPLE_LICENSE_HEADER_START@ 3036 // 3037 // This file contains Original Code and/or Modifications of Original Code 3038 // as defined in and that are subject to the Apple Public Source License 3039 // Version 2.0 (the 'License'). You may not use this file except in 3040 // compliance with the License. Please obtain a copy of the License at 3041 // http://www.opensource.apple.com/apsl/ and read it before using this 3042 // file. 3043 // 3044 // The Original Code and all software distributed under the License are 3045 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3046 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3047 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3048 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3049 // Please see the License for the specific language governing rights and 3050 // limitations under the License. 3051 // 3052 // @APPLE_LICENSE_HEADER_END@ 3053 3054 // 3055 // These macros are for use in OS header files. They enable function prototypes 3056 // and Objective-C methods to be tagged with the OS version in which they 3057 // were first available; and, if applicable, the OS version in which they 3058 // became deprecated. 3059 // 3060 // The desktop Mac OS X and iOS each have different version numbers. 3061 // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop 3062 // and iOS version numbers. For instance: 3063 // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0) 3064 // means the function/method was first available on Mac OS X 10.2 on the desktop 3065 // and first available in iOS 2.0 on the iPhone. 3066 // 3067 // If a function is available on one platform, but not the other a _NA (not 3068 // applicable) parameter is used. For instance: 3069 // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA) 3070 // means that the function/method was first available on Mac OS X 10.3, and it 3071 // currently not implemented on the iPhone. 3072 // 3073 // At some point, a function/method may be deprecated. That means Apple 3074 // recommends applications stop using the function, either because there is a 3075 // better replacement or the functionality is being phased out. Deprecated 3076 // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED() 3077 // macro which specifies the OS version where the function became available 3078 // as well as the OS version in which it became deprecated. For instance: 3079 // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA) 3080 // means that the function/method was introduced in Mac OS X 10.0, then 3081 // became deprecated beginning in Mac OS X 10.5. On iOS the function 3082 // has never been available. 3083 // 3084 // For these macros to function properly, a program must specify the OS version range 3085 // it is targeting. The min OS version is specified as an option to the compiler: 3086 // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z 3087 // when building for the iPhone. The upper bound for the OS version is rarely needed, 3088 // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for 3089 // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS. 3090 // 3091 // Examples: 3092 // 3093 // A function available in Mac OS X 10.5 and later, but not on the phone: 3094 // 3095 // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA); 3096 // 3097 // 3098 // An Objective-C method in Mac OS X 10.5 and later, but not on the phone: 3099 // 3100 // @interface MyClass : NSObject 3101 // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA); 3102 // @end 3103 // 3104 // 3105 // An enum available on the phone, but not available on Mac OS X: 3106 // 3107 // #if __IPHONE_OS_VERSION_MIN_REQUIRED 3108 // enum { myEnum = 1 }; 3109 // #endif 3110 // Note: this works when targeting the Mac OS X platform because 3111 // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero. 3112 // 3113 // 3114 // An enum with values added in different iPhoneOS versions: 3115 // 3116 // enum { 3117 // myX = 1, // Usable on iPhoneOS 2.1 and later 3118 // myY = 2, // Usable on iPhoneOS 3.0 and later 3119 // myZ = 3, // Usable on iPhoneOS 3.0 and later 3120 // ... 3121 // Note: you do not want to use #if with enumeration values 3122 // when a client needs to see all values at compile time 3123 // and use runtime logic to only use the viable values. 3124 // 3125 // 3126 // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one 3127 // source base that can be compiled to target a range of OS versions. It is best 3128 // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values. 3129 // That is because you might get compiled on an old OS that does not define a later 3130 // OS version macro, and in the C preprocessor undefined values evaluate to zero 3131 // in expresssions, which could cause the #if expression to evaluate in an unexpected 3132 // way. 3133 // 3134 // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED 3135 // // code only compiled when targeting Mac OS X and not iPhone 3136 // // note use of 1050 instead of __MAC_10_5 3137 // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050 3138 // // code in here might run on pre-Leopard OS 3139 // #else 3140 // // code here can assume Leopard or later 3141 // #endif 3142 // #endif 3143 // 3144 // 3145 3146 // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated 3147 // in an upcoming release. This soft deprecation is an intermediate step before formal 3148 // deprecation to notify developers about the API before compiler warnings are generated. 3149 // You can find all places in your code that use soft deprecated API by redefining the 3150 // value of this macro to your current minimum deployment target, for example: 3151 // (macOS) 3152 // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags> 3153 // (iOS) 3154 // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags> 3155 3156 // __MAC_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable 3157 3158 // __IPHONE_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable 3159 3160 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 3161 // 3162 // @APPLE_LICENSE_HEADER_START@ 3163 // 3164 // This file contains Original Code and/or Modifications of Original Code 3165 // as defined in and that are subject to the Apple Public Source License 3166 // Version 2.0 (the 'License'). You may not use this file except in 3167 // compliance with the License. Please obtain a copy of the License at 3168 // http://www.opensource.apple.com/apsl/ and read it before using this 3169 // file. 3170 // 3171 // The Original Code and all software distributed under the License are 3172 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3173 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3174 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3175 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3176 // Please see the License for the specific language governing rights and 3177 // limitations under the License. 3178 // 3179 // @APPLE_LICENSE_HEADER_END@ 3180 3181 // 3182 // File: AvailabilityInternal.h 3183 // 3184 // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h> 3185 // 3186 3187 // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 3188 3189 // make sure a default max version is set 3190 3191 // 3192 // Macros for defining which versions/platform a given symbol can be used. 3193 // 3194 // @see http://clang.llvm.org/docs/AttributeReference.html#availability 3195 // 3196 3197 // Evaluate to nothing for compilers that don't support availability. 3198 3199 // Swift compiler version 3200 // Allows for project-agnostic “epochs” for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift 3201 // Example: 3202 // 3203 // #if __swift_compiler_version_at_least(800, 2, 20) 3204 // - (nonnull NSString *)description; 3205 // #else 3206 // - (NSString *)description; 3207 // #endif 3208 3209 // If __SPI_AVAILABLE has not been defined elsewhere, disable it. 3210 3211 // for use to document app extension usage 3212 3213 // for use marking APIs available info for Mac OSX 3214 3215 // for use marking APIs available info for iOS 3216 3217 // for use marking APIs available info for tvOS 3218 3219 // for use marking APIs available info for Watch OS 3220 3221 // for use marking APIs unavailable for swift 3222 3223 // 3224 // Macros for defining which versions/platform a given symbol can be used. 3225 // 3226 // @see http://clang.llvm.org/docs/AttributeReference.html#availability 3227 // 3228 // * Note that these macros are only compatible with clang compilers that 3229 // * support the following target selection options: 3230 // * 3231 // * -mmacosx-version-min 3232 // * -miphoneos-version-min 3233 // * -mwatchos-version-min 3234 // * -mtvos-version-min 3235 // 3236 3237 // Evaluate to nothing for compilers that don't support availability. 3238 3239 // If SPI decorations have not been defined elsewhere, disable them. 3240 3241 // Select uses bit masks of file descriptors in longs. These macros 3242 // manipulate such bit fields (the filesystem macros use chars). The 3243 // extra protection here is to permit application redefinition above 3244 // the default size. 3245 3246 type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */ 3247 3248 // This code is present here in order to maintain historical backward 3249 // compatability, and is intended to be removed at some point in the 3250 // future; please include <sys/select.h> instead. 3251 // Copyright (c) 2003-2012 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 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 3278 // 3279 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3280 // 3281 // This file contains Original Code and/or Modifications of Original Code 3282 // as defined in and that are subject to the Apple Public Source License 3283 // Version 2.0 (the 'License'). You may not use this file except in 3284 // compliance with the License. The rights granted to you under the License 3285 // may not be used to create, or enable the creation or redistribution of, 3286 // unlawful or unlicensed copies of an Apple operating system, or to 3287 // circumvent, violate, or enable the circumvention or violation of, any 3288 // terms of an Apple operating system software license agreement. 3289 // 3290 // Please obtain a copy of the License at 3291 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3292 // 3293 // The Original Code and all software distributed under the License are 3294 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3295 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3296 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3297 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3298 // Please see the License for the specific language governing rights and 3299 // limitations under the License. 3300 // 3301 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3302 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3303 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 3304 // 3305 // @APPLE_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. Please obtain a copy of the License at 3311 // http://www.opensource.apple.com/apsl/ and read it before using this 3312 // file. 3313 // 3314 // The Original Code and all software distributed under the License are 3315 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3316 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3317 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3318 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3319 // Please see the License for the specific language governing rights and 3320 // limitations under the License. 3321 // 3322 // @APPLE_LICENSE_HEADER_END@ 3323 3324 // 3325 // These macros are for use in OS header files. They enable function prototypes 3326 // and Objective-C methods to be tagged with the OS version in which they 3327 // were first available; and, if applicable, the OS version in which they 3328 // became deprecated. 3329 // 3330 // The desktop Mac OS X and iOS each have different version numbers. 3331 // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop 3332 // and iOS version numbers. For instance: 3333 // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0) 3334 // means the function/method was first available on Mac OS X 10.2 on the desktop 3335 // and first available in iOS 2.0 on the iPhone. 3336 // 3337 // If a function is available on one platform, but not the other a _NA (not 3338 // applicable) parameter is used. For instance: 3339 // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA) 3340 // means that the function/method was first available on Mac OS X 10.3, and it 3341 // currently not implemented on the iPhone. 3342 // 3343 // At some point, a function/method may be deprecated. That means Apple 3344 // recommends applications stop using the function, either because there is a 3345 // better replacement or the functionality is being phased out. Deprecated 3346 // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED() 3347 // macro which specifies the OS version where the function became available 3348 // as well as the OS version in which it became deprecated. For instance: 3349 // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA) 3350 // means that the function/method was introduced in Mac OS X 10.0, then 3351 // became deprecated beginning in Mac OS X 10.5. On iOS the function 3352 // has never been available. 3353 // 3354 // For these macros to function properly, a program must specify the OS version range 3355 // it is targeting. The min OS version is specified as an option to the compiler: 3356 // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z 3357 // when building for the iPhone. The upper bound for the OS version is rarely needed, 3358 // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for 3359 // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS. 3360 // 3361 // Examples: 3362 // 3363 // A function available in Mac OS X 10.5 and later, but not on the phone: 3364 // 3365 // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA); 3366 // 3367 // 3368 // An Objective-C method in Mac OS X 10.5 and later, but not on the phone: 3369 // 3370 // @interface MyClass : NSObject 3371 // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA); 3372 // @end 3373 // 3374 // 3375 // An enum available on the phone, but not available on Mac OS X: 3376 // 3377 // #if __IPHONE_OS_VERSION_MIN_REQUIRED 3378 // enum { myEnum = 1 }; 3379 // #endif 3380 // Note: this works when targeting the Mac OS X platform because 3381 // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero. 3382 // 3383 // 3384 // An enum with values added in different iPhoneOS versions: 3385 // 3386 // enum { 3387 // myX = 1, // Usable on iPhoneOS 2.1 and later 3388 // myY = 2, // Usable on iPhoneOS 3.0 and later 3389 // myZ = 3, // Usable on iPhoneOS 3.0 and later 3390 // ... 3391 // Note: you do not want to use #if with enumeration values 3392 // when a client needs to see all values at compile time 3393 // and use runtime logic to only use the viable values. 3394 // 3395 // 3396 // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one 3397 // source base that can be compiled to target a range of OS versions. It is best 3398 // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values. 3399 // That is because you might get compiled on an old OS that does not define a later 3400 // OS version macro, and in the C preprocessor undefined values evaluate to zero 3401 // in expresssions, which could cause the #if expression to evaluate in an unexpected 3402 // way. 3403 // 3404 // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED 3405 // // code only compiled when targeting Mac OS X and not iPhone 3406 // // note use of 1050 instead of __MAC_10_5 3407 // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050 3408 // // code in here might run on pre-Leopard OS 3409 // #else 3410 // // code here can assume Leopard or later 3411 // #endif 3412 // #endif 3413 // 3414 // 3415 3416 // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated 3417 // in an upcoming release. This soft deprecation is an intermediate step before formal 3418 // deprecation to notify developers about the API before compiler warnings are generated. 3419 // You can find all places in your code that use soft deprecated API by redefining the 3420 // value of this macro to your current minimum deployment target, for example: 3421 // (macOS) 3422 // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags> 3423 // (iOS) 3424 // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags> 3425 3426 // __MAC_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable 3427 3428 // __IPHONE_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable 3429 3430 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 3431 // 3432 // @APPLE_LICENSE_HEADER_START@ 3433 // 3434 // This file contains Original Code and/or Modifications of Original Code 3435 // as defined in and that are subject to the Apple Public Source License 3436 // Version 2.0 (the 'License'). You may not use this file except in 3437 // compliance with the License. Please obtain a copy of the License at 3438 // http://www.opensource.apple.com/apsl/ and read it before using this 3439 // file. 3440 // 3441 // The Original Code and all software distributed under the License are 3442 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3443 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3444 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3445 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3446 // Please see the License for the specific language governing rights and 3447 // limitations under the License. 3448 // 3449 // @APPLE_LICENSE_HEADER_END@ 3450 3451 // 3452 // File: AvailabilityInternal.h 3453 // 3454 // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h> 3455 // 3456 3457 // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 3458 3459 // make sure a default max version is set 3460 3461 // 3462 // Macros for defining which versions/platform a given symbol can be used. 3463 // 3464 // @see http://clang.llvm.org/docs/AttributeReference.html#availability 3465 // 3466 3467 // Evaluate to nothing for compilers that don't support availability. 3468 3469 // Swift compiler version 3470 // Allows for project-agnostic “epochs” for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift 3471 // Example: 3472 // 3473 // #if __swift_compiler_version_at_least(800, 2, 20) 3474 // - (nonnull NSString *)description; 3475 // #else 3476 // - (NSString *)description; 3477 // #endif 3478 3479 // If __SPI_AVAILABLE has not been defined elsewhere, disable it. 3480 3481 // for use to document app extension usage 3482 3483 // for use marking APIs available info for Mac OSX 3484 3485 // for use marking APIs available info for iOS 3486 3487 // for use marking APIs available info for tvOS 3488 3489 // for use marking APIs available info for Watch OS 3490 3491 // for use marking APIs unavailable for swift 3492 3493 // 3494 // Macros for defining which versions/platform a given symbol can be used. 3495 // 3496 // @see http://clang.llvm.org/docs/AttributeReference.html#availability 3497 // 3498 // * Note that these macros are only compatible with clang compilers that 3499 // * support the following target selection options: 3500 // * 3501 // * -mmacosx-version-min 3502 // * -miphoneos-version-min 3503 // * -mwatchos-version-min 3504 // * -mtvos-version-min 3505 // 3506 3507 // Evaluate to nothing for compilers that don't support availability. 3508 3509 // If SPI decorations have not been defined elsewhere, disable them. 3510 3511 // Select uses bit masks of file descriptors in longs. These macros 3512 // manipulate such bit fields (the filesystem macros use chars). The 3513 // extra protection here is to permit application redefinition above 3514 // the default size. 3515 3516 type Fd_set = Fd_set1 /* _fd_def.h:52:3 */ 3517 3518 // Use the built-in bzero function instead of the library version so that 3519 // we do not pollute the namespace or introduce prototype warnings. 3520 3521 type Fd_mask = X__int32_t /* types.h:189:25 */ 3522 3523 // Select uses bit masks of file descriptors in longs. These macros 3524 // manipulate such bit fields (the filesystem macros use chars). The 3525 // extra protection here is to permit application redefinition above 3526 // the default size. 3527 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3528 // 3529 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3530 // 3531 // This file contains Original Code and/or Modifications of Original Code 3532 // as defined in and that are subject to the Apple Public Source License 3533 // Version 2.0 (the 'License'). You may not use this file except in 3534 // compliance with the License. The rights granted to you under the License 3535 // may not be used to create, or enable the creation or redistribution of, 3536 // unlawful or unlicensed copies of an Apple operating system, or to 3537 // circumvent, violate, or enable the circumvention or violation of, any 3538 // terms of an Apple operating system software license agreement. 3539 // 3540 // Please obtain a copy of the License at 3541 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3542 // 3543 // The Original Code and all software distributed under the License are 3544 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3545 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3546 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3547 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3548 // Please see the License for the specific language governing rights and 3549 // limitations under the License. 3550 // 3551 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3552 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3553 // 3554 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3555 // 3556 // This file contains Original Code and/or Modifications of Original Code 3557 // as defined in and that are subject to the Apple Public Source License 3558 // Version 2.0 (the 'License'). You may not use this file except in 3559 // compliance with the License. The rights granted to you under the License 3560 // may not be used to create, or enable the creation or redistribution of, 3561 // unlawful or unlicensed copies of an Apple operating system, or to 3562 // circumvent, violate, or enable the circumvention or violation of, any 3563 // terms of an Apple operating system software license agreement. 3564 // 3565 // Please obtain a copy of the License at 3566 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3567 // 3568 // The Original Code and all software distributed under the License are 3569 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3570 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3571 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3572 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3573 // Please see the License for the specific language governing rights and 3574 // limitations under the License. 3575 // 3576 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3577 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3578 // 3579 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3580 // 3581 // This file contains Original Code and/or Modifications of Original Code 3582 // as defined in and that are subject to the Apple Public Source License 3583 // Version 2.0 (the 'License'). You may not use this file except in 3584 // compliance with the License. The rights granted to you under the License 3585 // may not be used to create, or enable the creation or redistribution of, 3586 // unlawful or unlicensed copies of an Apple operating system, or to 3587 // circumvent, violate, or enable the circumvention or violation of, any 3588 // terms of an Apple operating system software license agreement. 3589 // 3590 // Please obtain a copy of the License at 3591 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3592 // 3593 // The Original Code and all software distributed under the License are 3594 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3595 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3596 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3597 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3598 // Please see the License for the specific language governing rights and 3599 // limitations under the License. 3600 // 3601 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3602 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3603 // 3604 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3605 // 3606 // This file contains Original Code and/or Modifications of Original Code 3607 // as defined in and that are subject to the Apple Public Source License 3608 // Version 2.0 (the 'License'). You may not use this file except in 3609 // compliance with the License. The rights granted to you under the License 3610 // may not be used to create, or enable the creation or redistribution of, 3611 // unlawful or unlicensed copies of an Apple operating system, or to 3612 // circumvent, violate, or enable the circumvention or violation of, any 3613 // terms of an Apple operating system software license agreement. 3614 // 3615 // Please obtain a copy of the License at 3616 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3617 // 3618 // The Original Code and all software distributed under the License are 3619 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3620 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3621 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3622 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3623 // Please see the License for the specific language governing rights and 3624 // limitations under the License. 3625 // 3626 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3627 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3628 // 3629 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3630 // 3631 // This file contains Original Code and/or Modifications of Original Code 3632 // as defined in and that are subject to the Apple Public Source License 3633 // Version 2.0 (the 'License'). You may not use this file except in 3634 // compliance with the License. The rights granted to you under the License 3635 // may not be used to create, or enable the creation or redistribution of, 3636 // unlawful or unlicensed copies of an Apple operating system, or to 3637 // circumvent, violate, or enable the circumvention or violation of, any 3638 // terms of an Apple operating system software license agreement. 3639 // 3640 // Please obtain a copy of the License at 3641 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3642 // 3643 // The Original Code and all software distributed under the License are 3644 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3645 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3646 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3647 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3648 // Please see the License for the specific language governing rights and 3649 // limitations under the License. 3650 // 3651 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3652 3653 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3654 // 3655 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3656 // 3657 // This file contains Original Code and/or Modifications of Original Code 3658 // as defined in and that are subject to the Apple Public Source License 3659 // Version 2.0 (the 'License'). You may not use this file except in 3660 // compliance with the License. The rights granted to you under the License 3661 // may not be used to create, or enable the creation or redistribution of, 3662 // unlawful or unlicensed copies of an Apple operating system, or to 3663 // circumvent, violate, or enable the circumvention or violation of, any 3664 // terms of an Apple operating system software license agreement. 3665 // 3666 // Please obtain a copy of the License at 3667 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3668 // 3669 // The Original Code and all software distributed under the License are 3670 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3671 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3672 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3673 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3674 // Please see the License for the specific language governing rights and 3675 // limitations under the License. 3676 // 3677 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3678 3679 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3680 // 3681 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3682 // 3683 // This file contains Original Code and/or Modifications of Original Code 3684 // as defined in and that are subject to the Apple Public Source License 3685 // Version 2.0 (the 'License'). You may not use this file except in 3686 // compliance with the License. The rights granted to you under the License 3687 // may not be used to create, or enable the creation or redistribution of, 3688 // unlawful or unlicensed copies of an Apple operating system, or to 3689 // circumvent, violate, or enable the circumvention or violation of, any 3690 // terms of an Apple operating system software license agreement. 3691 // 3692 // Please obtain a copy of the License at 3693 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3694 // 3695 // The Original Code and all software distributed under the License are 3696 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3697 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3698 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3699 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3700 // Please see the License for the specific language governing rights and 3701 // limitations under the License. 3702 // 3703 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3704 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 3705 // 3706 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3707 // 3708 // This file contains Original Code and/or Modifications of Original Code 3709 // as defined in and that are subject to the Apple Public Source License 3710 // Version 2.0 (the 'License'). You may not use this file except in 3711 // compliance with the License. The rights granted to you under the License 3712 // may not be used to create, or enable the creation or redistribution of, 3713 // unlawful or unlicensed copies of an Apple operating system, or to 3714 // circumvent, violate, or enable the circumvention or violation of, any 3715 // terms of an Apple operating system software license agreement. 3716 // 3717 // Please obtain a copy of the License at 3718 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3719 // 3720 // The Original Code and all software distributed under the License are 3721 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3722 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3723 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3724 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3725 // Please see the License for the specific language governing rights and 3726 // limitations under the License. 3727 // 3728 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3729 3730 type Pthread_attr_t = X__darwin_pthread_attr_t /* _pthread_attr_t.h:31:33 */ 3731 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3732 // 3733 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3734 // 3735 // This file contains Original Code and/or Modifications of Original Code 3736 // as defined in and that are subject to the Apple Public Source License 3737 // Version 2.0 (the 'License'). You may not use this file except in 3738 // compliance with the License. The rights granted to you under the License 3739 // may not be used to create, or enable the creation or redistribution of, 3740 // unlawful or unlicensed copies of an Apple operating system, or to 3741 // circumvent, violate, or enable the circumvention or violation of, any 3742 // terms of an Apple operating system software license agreement. 3743 // 3744 // Please obtain a copy of the License at 3745 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3746 // 3747 // The Original Code and all software distributed under the License are 3748 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3749 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3750 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3751 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3752 // Please see the License for the specific language governing rights and 3753 // limitations under the License. 3754 // 3755 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3756 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 3757 // 3758 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3759 // 3760 // This file contains Original Code and/or Modifications of Original Code 3761 // as defined in and that are subject to the Apple Public Source License 3762 // Version 2.0 (the 'License'). You may not use this file except in 3763 // compliance with the License. The rights granted to you under the License 3764 // may not be used to create, or enable the creation or redistribution of, 3765 // unlawful or unlicensed copies of an Apple operating system, or to 3766 // circumvent, violate, or enable the circumvention or violation of, any 3767 // terms of an Apple operating system software license agreement. 3768 // 3769 // Please obtain a copy of the License at 3770 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3771 // 3772 // The Original Code and all software distributed under the License are 3773 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3774 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3775 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3776 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3777 // Please see the License for the specific language governing rights and 3778 // limitations under the License. 3779 // 3780 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3781 3782 type Pthread_cond_t = X__darwin_pthread_cond_t /* _pthread_cond_t.h:31:33 */ 3783 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3784 // 3785 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3786 // 3787 // This file contains Original Code and/or Modifications of Original Code 3788 // as defined in and that are subject to the Apple Public Source License 3789 // Version 2.0 (the 'License'). You may not use this file except in 3790 // compliance with the License. The rights granted to you under the License 3791 // may not be used to create, or enable the creation or redistribution of, 3792 // unlawful or unlicensed copies of an Apple operating system, or to 3793 // circumvent, violate, or enable the circumvention or violation of, any 3794 // terms of an Apple operating system software license agreement. 3795 // 3796 // Please obtain a copy of the License at 3797 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3798 // 3799 // The Original Code and all software distributed under the License are 3800 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3801 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3802 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3803 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3804 // Please see the License for the specific language governing rights and 3805 // limitations under the License. 3806 // 3807 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3808 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 3809 // 3810 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3811 // 3812 // This file contains Original Code and/or Modifications of Original Code 3813 // as defined in and that are subject to the Apple Public Source License 3814 // Version 2.0 (the 'License'). You may not use this file except in 3815 // compliance with the License. The rights granted to you under the License 3816 // may not be used to create, or enable the creation or redistribution of, 3817 // unlawful or unlicensed copies of an Apple operating system, or to 3818 // circumvent, violate, or enable the circumvention or violation of, any 3819 // terms of an Apple operating system software license agreement. 3820 // 3821 // Please obtain a copy of the License at 3822 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3823 // 3824 // The Original Code and all software distributed under the License are 3825 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3826 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3827 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3828 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3829 // Please see the License for the specific language governing rights and 3830 // limitations under the License. 3831 // 3832 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3833 3834 type Pthread_condattr_t = X__darwin_pthread_condattr_t /* _pthread_condattr_t.h:31:37 */ 3835 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3836 // 3837 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3838 // 3839 // This file contains Original Code and/or Modifications of Original Code 3840 // as defined in and that are subject to the Apple Public Source License 3841 // Version 2.0 (the 'License'). You may not use this file except in 3842 // compliance with the License. The rights granted to you under the License 3843 // may not be used to create, or enable the creation or redistribution of, 3844 // unlawful or unlicensed copies of an Apple operating system, or to 3845 // circumvent, violate, or enable the circumvention or violation of, any 3846 // terms of an Apple operating system software license agreement. 3847 // 3848 // Please obtain a copy of the License at 3849 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3850 // 3851 // The Original Code and all software distributed under the License are 3852 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3853 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3854 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3855 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3856 // Please see the License for the specific language governing rights and 3857 // limitations under the License. 3858 // 3859 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3860 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 3861 // 3862 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3863 // 3864 // This file contains Original Code and/or Modifications of Original Code 3865 // as defined in and that are subject to the Apple Public Source License 3866 // Version 2.0 (the 'License'). You may not use this file except in 3867 // compliance with the License. The rights granted to you under the License 3868 // may not be used to create, or enable the creation or redistribution of, 3869 // unlawful or unlicensed copies of an Apple operating system, or to 3870 // circumvent, violate, or enable the circumvention or violation of, any 3871 // terms of an Apple operating system software license agreement. 3872 // 3873 // Please obtain a copy of the License at 3874 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3875 // 3876 // The Original Code and all software distributed under the License are 3877 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3878 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3879 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3880 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3881 // Please see the License for the specific language governing rights and 3882 // limitations under the License. 3883 // 3884 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3885 3886 type Pthread_mutex_t = X__darwin_pthread_mutex_t /* _pthread_mutex_t.h:31:34 */ 3887 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3888 // 3889 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3890 // 3891 // This file contains Original Code and/or Modifications of Original Code 3892 // as defined in and that are subject to the Apple Public Source License 3893 // Version 2.0 (the 'License'). You may not use this file except in 3894 // compliance with the License. The rights granted to you under the License 3895 // may not be used to create, or enable the creation or redistribution of, 3896 // unlawful or unlicensed copies of an Apple operating system, or to 3897 // circumvent, violate, or enable the circumvention or violation of, any 3898 // terms of an Apple operating system software license agreement. 3899 // 3900 // Please obtain a copy of the License at 3901 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3902 // 3903 // The Original Code and all software distributed under the License are 3904 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3905 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3906 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3907 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3908 // Please see the License for the specific language governing rights and 3909 // limitations under the License. 3910 // 3911 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3912 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 3913 // 3914 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3915 // 3916 // This file contains Original Code and/or Modifications of Original Code 3917 // as defined in and that are subject to the Apple Public Source License 3918 // Version 2.0 (the 'License'). You may not use this file except in 3919 // compliance with the License. The rights granted to you under the License 3920 // may not be used to create, or enable the creation or redistribution of, 3921 // unlawful or unlicensed copies of an Apple operating system, or to 3922 // circumvent, violate, or enable the circumvention or violation of, any 3923 // terms of an Apple operating system software license agreement. 3924 // 3925 // Please obtain a copy of the License at 3926 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3927 // 3928 // The Original Code and all software distributed under the License are 3929 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3930 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3931 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3932 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3933 // Please see the License for the specific language governing rights and 3934 // limitations under the License. 3935 // 3936 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3937 3938 type Pthread_mutexattr_t = X__darwin_pthread_mutexattr_t /* _pthread_mutexattr_t.h:31:38 */ 3939 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3940 // 3941 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3942 // 3943 // This file contains Original Code and/or Modifications of Original Code 3944 // as defined in and that are subject to the Apple Public Source License 3945 // Version 2.0 (the 'License'). You may not use this file except in 3946 // compliance with the License. The rights granted to you under the License 3947 // may not be used to create, or enable the creation or redistribution of, 3948 // unlawful or unlicensed copies of an Apple operating system, or to 3949 // circumvent, violate, or enable the circumvention or violation of, any 3950 // terms of an Apple operating system software license agreement. 3951 // 3952 // Please obtain a copy of the License at 3953 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3954 // 3955 // The Original Code and all software distributed under the License are 3956 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3957 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3958 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3959 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3960 // Please see the License for the specific language governing rights and 3961 // limitations under the License. 3962 // 3963 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3964 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 3965 // 3966 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3967 // 3968 // This file contains Original Code and/or Modifications of Original Code 3969 // as defined in and that are subject to the Apple Public Source License 3970 // Version 2.0 (the 'License'). You may not use this file except in 3971 // compliance with the License. The rights granted to you under the License 3972 // may not be used to create, or enable the creation or redistribution of, 3973 // unlawful or unlicensed copies of an Apple operating system, or to 3974 // circumvent, violate, or enable the circumvention or violation of, any 3975 // terms of an Apple operating system software license agreement. 3976 // 3977 // Please obtain a copy of the License at 3978 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3979 // 3980 // The Original Code and all software distributed under the License are 3981 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3982 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3983 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3984 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3985 // Please see the License for the specific language governing rights and 3986 // limitations under the License. 3987 // 3988 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3989 3990 type Pthread_once_t = X__darwin_pthread_once_t /* _pthread_once_t.h:31:33 */ 3991 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3992 // 3993 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3994 // 3995 // This file contains Original Code and/or Modifications of Original Code 3996 // as defined in and that are subject to the Apple Public Source License 3997 // Version 2.0 (the 'License'). You may not use this file except in 3998 // compliance with the License. The rights granted to you under the License 3999 // may not be used to create, or enable the creation or redistribution of, 4000 // unlawful or unlicensed copies of an Apple operating system, or to 4001 // circumvent, violate, or enable the circumvention or violation of, any 4002 // terms of an Apple operating system software license agreement. 4003 // 4004 // Please obtain a copy of the License at 4005 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4006 // 4007 // The Original Code and all software distributed under the License are 4008 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4009 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4010 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4011 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4012 // Please see the License for the specific language governing rights and 4013 // limitations under the License. 4014 // 4015 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4016 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 4017 // 4018 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4019 // 4020 // This file contains Original Code and/or Modifications of Original Code 4021 // as defined in and that are subject to the Apple Public Source License 4022 // Version 2.0 (the 'License'). You may not use this file except in 4023 // compliance with the License. The rights granted to you under the License 4024 // may not be used to create, or enable the creation or redistribution of, 4025 // unlawful or unlicensed copies of an Apple operating system, or to 4026 // circumvent, violate, or enable the circumvention or violation of, any 4027 // terms of an Apple operating system software license agreement. 4028 // 4029 // Please obtain a copy of the License at 4030 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4031 // 4032 // The Original Code and all software distributed under the License are 4033 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4034 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4035 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4036 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4037 // Please see the License for the specific language governing rights and 4038 // limitations under the License. 4039 // 4040 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4041 4042 type Pthread_rwlock_t = X__darwin_pthread_rwlock_t /* _pthread_rwlock_t.h:31:35 */ 4043 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4044 // 4045 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4046 // 4047 // This file contains Original Code and/or Modifications of Original Code 4048 // as defined in and that are subject to the Apple Public Source License 4049 // Version 2.0 (the 'License'). You may not use this file except in 4050 // compliance with the License. The rights granted to you under the License 4051 // may not be used to create, or enable the creation or redistribution of, 4052 // unlawful or unlicensed copies of an Apple operating system, or to 4053 // circumvent, violate, or enable the circumvention or violation of, any 4054 // terms of an Apple operating system software license agreement. 4055 // 4056 // Please obtain a copy of the License at 4057 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4058 // 4059 // The Original Code and all software distributed under the License are 4060 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4061 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4062 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4063 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4064 // Please see the License for the specific language governing rights and 4065 // limitations under the License. 4066 // 4067 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4068 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 4069 // 4070 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4071 // 4072 // This file contains Original Code and/or Modifications of Original Code 4073 // as defined in and that are subject to the Apple Public Source License 4074 // Version 2.0 (the 'License'). You may not use this file except in 4075 // compliance with the License. The rights granted to you under the License 4076 // may not be used to create, or enable the creation or redistribution of, 4077 // unlawful or unlicensed copies of an Apple operating system, or to 4078 // circumvent, violate, or enable the circumvention or violation of, any 4079 // terms of an Apple operating system software license agreement. 4080 // 4081 // Please obtain a copy of the License at 4082 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4083 // 4084 // The Original Code and all software distributed under the License are 4085 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4086 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4087 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4088 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4089 // Please see the License for the specific language governing rights and 4090 // limitations under the License. 4091 // 4092 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4093 4094 type Pthread_rwlockattr_t = X__darwin_pthread_rwlockattr_t /* _pthread_rwlockattr_t.h:31:39 */ 4095 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4096 // 4097 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4098 // 4099 // This file contains Original Code and/or Modifications of Original Code 4100 // as defined in and that are subject to the Apple Public Source License 4101 // Version 2.0 (the 'License'). You may not use this file except in 4102 // compliance with the License. The rights granted to you under the License 4103 // may not be used to create, or enable the creation or redistribution of, 4104 // unlawful or unlicensed copies of an Apple operating system, or to 4105 // circumvent, violate, or enable the circumvention or violation of, any 4106 // terms of an Apple operating system software license agreement. 4107 // 4108 // Please obtain a copy of the License at 4109 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4110 // 4111 // The Original Code and all software distributed under the License are 4112 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4113 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4114 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4115 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4116 // Please see the License for the specific language governing rights and 4117 // limitations under the License. 4118 // 4119 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4120 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 4121 // 4122 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4123 // 4124 // This file contains Original Code and/or Modifications of Original Code 4125 // as defined in and that are subject to the Apple Public Source License 4126 // Version 2.0 (the 'License'). You may not use this file except in 4127 // compliance with the License. The rights granted to you under the License 4128 // may not be used to create, or enable the creation or redistribution of, 4129 // unlawful or unlicensed copies of an Apple operating system, or to 4130 // circumvent, violate, or enable the circumvention or violation of, any 4131 // terms of an Apple operating system software license agreement. 4132 // 4133 // Please obtain a copy of the License at 4134 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4135 // 4136 // The Original Code and all software distributed under the License are 4137 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4138 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4139 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4140 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4141 // Please see the License for the specific language governing rights and 4142 // limitations under the License. 4143 // 4144 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4145 4146 type Pthread_t = X__darwin_pthread_t /* _pthread_t.h:31:28 */ 4147 4148 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4149 // 4150 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4151 // 4152 // This file contains Original Code and/or Modifications of Original Code 4153 // as defined in and that are subject to the Apple Public Source License 4154 // Version 2.0 (the 'License'). You may not use this file except in 4155 // compliance with the License. The rights granted to you under the License 4156 // may not be used to create, or enable the creation or redistribution of, 4157 // unlawful or unlicensed copies of an Apple operating system, or to 4158 // circumvent, violate, or enable the circumvention or violation of, any 4159 // terms of an Apple operating system software license agreement. 4160 // 4161 // Please obtain a copy of the License at 4162 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4163 // 4164 // The Original Code and all software distributed under the License are 4165 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4166 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4167 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4168 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4169 // Please see the License for the specific language governing rights and 4170 // limitations under the License. 4171 // 4172 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4173 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 4174 // 4175 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4176 // 4177 // This file contains Original Code and/or Modifications of Original Code 4178 // as defined in and that are subject to the Apple Public Source License 4179 // Version 2.0 (the 'License'). You may not use this file except in 4180 // compliance with the License. The rights granted to you under the License 4181 // may not be used to create, or enable the creation or redistribution of, 4182 // unlawful or unlicensed copies of an Apple operating system, or to 4183 // circumvent, violate, or enable the circumvention or violation of, any 4184 // terms of an Apple operating system software license agreement. 4185 // 4186 // Please obtain a copy of the License at 4187 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4188 // 4189 // The Original Code and all software distributed under the License are 4190 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4191 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4192 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4193 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4194 // Please see the License for the specific language governing rights and 4195 // limitations under the License. 4196 // 4197 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4198 4199 type Pthread_key_t = X__darwin_pthread_key_t /* _pthread_key_t.h:31:32 */ 4200 4201 // statvfs and fstatvfs 4202 4203 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4204 // 4205 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4206 // 4207 // This file contains Original Code and/or Modifications of Original Code 4208 // as defined in and that are subject to the Apple Public Source License 4209 // Version 2.0 (the 'License'). You may not use this file except in 4210 // compliance with the License. The rights granted to you under the License 4211 // may not be used to create, or enable the creation or redistribution of, 4212 // unlawful or unlicensed copies of an Apple operating system, or to 4213 // circumvent, violate, or enable the circumvention or violation of, any 4214 // terms of an Apple operating system software license agreement. 4215 // 4216 // Please obtain a copy of the License at 4217 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4218 // 4219 // The Original Code and all software distributed under the License are 4220 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4221 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4222 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4223 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4224 // Please see the License for the specific language governing rights and 4225 // limitations under the License. 4226 // 4227 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4228 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4229 // 4230 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4231 // 4232 // This file contains Original Code and/or Modifications of Original Code 4233 // as defined in and that are subject to the Apple Public Source License 4234 // Version 2.0 (the 'License'). You may not use this file except in 4235 // compliance with the License. The rights granted to you under the License 4236 // may not be used to create, or enable the creation or redistribution of, 4237 // unlawful or unlicensed copies of an Apple operating system, or to 4238 // circumvent, violate, or enable the circumvention or violation of, any 4239 // terms of an Apple operating system software license agreement. 4240 // 4241 // Please obtain a copy of the License at 4242 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4243 // 4244 // The Original Code and all software distributed under the License are 4245 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4246 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4247 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4248 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4249 // Please see the License for the specific language governing rights and 4250 // limitations under the License. 4251 // 4252 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4253 4254 type Fsblkcnt_t = X__darwin_fsblkcnt_t /* _fsblkcnt_t.h:31:41 */ 4255 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4256 // 4257 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4258 // 4259 // This file contains Original Code and/or Modifications of Original Code 4260 // as defined in and that are subject to the Apple Public Source License 4261 // Version 2.0 (the 'License'). You may not use this file except in 4262 // compliance with the License. The rights granted to you under the License 4263 // may not be used to create, or enable the creation or redistribution of, 4264 // unlawful or unlicensed copies of an Apple operating system, or to 4265 // circumvent, violate, or enable the circumvention or violation of, any 4266 // terms of an Apple operating system software license agreement. 4267 // 4268 // Please obtain a copy of the License at 4269 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4270 // 4271 // The Original Code and all software distributed under the License are 4272 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4273 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4274 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4275 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4276 // Please see the License for the specific language governing rights and 4277 // limitations under the License. 4278 // 4279 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4280 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4281 // 4282 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4283 // 4284 // This file contains Original Code and/or Modifications of Original Code 4285 // as defined in and that are subject to the Apple Public Source License 4286 // Version 2.0 (the 'License'). You may not use this file except in 4287 // compliance with the License. The rights granted to you under the License 4288 // may not be used to create, or enable the creation or redistribution of, 4289 // unlawful or unlicensed copies of an Apple operating system, or to 4290 // circumvent, violate, or enable the circumvention or violation of, any 4291 // terms of an Apple operating system software license agreement. 4292 // 4293 // Please obtain a copy of the License at 4294 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4295 // 4296 // The Original Code and all software distributed under the License are 4297 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4298 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4299 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4300 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4301 // Please see the License for the specific language governing rights and 4302 // limitations under the License. 4303 // 4304 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4305 4306 type Fsfilcnt_t = X__darwin_fsfilcnt_t /* _fsfilcnt_t.h:31:41 */ 4307 4308 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 4309 // 4310 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4311 // 4312 // This file contains Original Code and/or Modifications of Original Code 4313 // as defined in and that are subject to the Apple Public Source License 4314 // Version 2.0 (the 'License'). You may not use this file except in 4315 // compliance with the License. The rights granted to you under the License 4316 // may not be used to create, or enable the creation or redistribution of, 4317 // unlawful or unlicensed copies of an Apple operating system, or to 4318 // circumvent, violate, or enable the circumvention or violation of, any 4319 // terms of an Apple operating system software license agreement. 4320 // 4321 // Please obtain a copy of the License at 4322 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4323 // 4324 // The Original Code and all software distributed under the License are 4325 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4326 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4327 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4328 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4329 // Please see the License for the specific language governing rights and 4330 // limitations under the License. 4331 // 4332 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4333 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4334 // Copyright (c) 1991, 1993 4335 // The Regents of the University of California. All rights reserved. 4336 // 4337 // This code is derived from software contributed to Berkeley by 4338 // Berkeley Software Design, Inc. 4339 // 4340 // Redistribution and use in source and binary forms, with or without 4341 // modification, are permitted provided that the following conditions 4342 // are met: 4343 // 1. Redistributions of source code must retain the above copyright 4344 // notice, this list of conditions and the following disclaimer. 4345 // 2. Redistributions in binary form must reproduce the above copyright 4346 // notice, this list of conditions and the following disclaimer in the 4347 // documentation and/or other materials provided with the distribution. 4348 // 3. All advertising materials mentioning features or use of this software 4349 // must display the following acknowledgement: 4350 // This product includes software developed by the University of 4351 // California, Berkeley and its contributors. 4352 // 4. Neither the name of the University nor the names of its contributors 4353 // may be used to endorse or promote products derived from this software 4354 // without specific prior written permission. 4355 // 4356 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 4357 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4358 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4359 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 4360 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4361 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 4362 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4363 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 4364 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 4365 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4366 // SUCH DAMAGE. 4367 // 4368 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 4369 4370 // Copyright (c) 2004-2007 Apple Inc. All rights reserved. 4371 // 4372 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4373 // 4374 // This file contains Original Code and/or Modifications of Original Code 4375 // as defined in and that are subject to the Apple Public Source License 4376 // Version 2.0 (the 'License'). You may not use this file except in 4377 // compliance with the License. The rights granted to you under the License 4378 // may not be used to create, or enable the creation or redistribution of, 4379 // unlawful or unlicensed copies of an Apple operating system, or to 4380 // circumvent, violate, or enable the circumvention or violation of, any 4381 // terms of an Apple operating system software license agreement. 4382 // 4383 // Please obtain a copy of the License at 4384 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4385 // 4386 // The Original Code and all software distributed under the License are 4387 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4388 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4389 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4390 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4391 // Please see the License for the specific language governing rights and 4392 // limitations under the License. 4393 // 4394 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4395 // Copyright (c) 2008 Apple Computer, Inc. All rights reserved. 4396 // 4397 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4398 // 4399 // This file contains Original Code and/or Modifications of Original Code 4400 // as defined in and that are subject to the Apple Public Source License 4401 // Version 2.0 (the 'License'). You may not use this file except in 4402 // compliance with the License. The rights granted to you under the License 4403 // may not be used to create, or enable the creation or redistribution of, 4404 // unlawful or unlicensed copies of an Apple operating system, or to 4405 // circumvent, violate, or enable the circumvention or violation of, any 4406 // terms of an Apple operating system software license agreement. 4407 // 4408 // Please obtain a copy of the License at 4409 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4410 // 4411 // The Original Code and all software distributed under the License are 4412 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4413 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4414 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4415 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4416 // Please see the License for the specific language governing rights and 4417 // limitations under the License. 4418 // 4419 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4420 4421 // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved. 4422 // 4423 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4424 // 4425 // This file contains Original Code and/or Modifications of Original Code 4426 // as defined in and that are subject to the Apple Public Source License 4427 // Version 2.0 (the 'License'). You may not use this file except in 4428 // compliance with the License. The rights granted to you under the License 4429 // may not be used to create, or enable the creation or redistribution of, 4430 // unlawful or unlicensed copies of an Apple operating system, or to 4431 // circumvent, violate, or enable the circumvention or violation of, any 4432 // terms of an Apple operating system software license agreement. 4433 // 4434 // Please obtain a copy of the License at 4435 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4436 // 4437 // The Original Code and all software distributed under the License are 4438 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4439 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4440 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4441 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4442 // Please see the License for the specific language governing rights and 4443 // limitations under the License. 4444 // 4445 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4446 4447 // Round p (pointer or byte index) up to a correctly-aligned value for all 4448 // data types (int, long, ...). The result is unsigned int and must be 4449 // cast to any desired pointer type. 4450 4451 // Copyright (c) 2016-2018 Apple Inc. All rights reserved. 4452 // 4453 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4454 // 4455 // This file contains Original Code and/or Modifications of Original Code 4456 // as defined in and that are subject to the Apple Public Source License 4457 // Version 2.0 (the 'License'). You may not use this file except in 4458 // compliance with the License. The rights granted to you under the License 4459 // may not be used to create, or enable the creation or redistribution of, 4460 // unlawful or unlicensed copies of an Apple operating system, or to 4461 // circumvent, violate, or enable the circumvention or violation of, any 4462 // terms of an Apple operating system software license agreement. 4463 // 4464 // Please obtain a copy of the License at 4465 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4466 // 4467 // The Original Code and all software distributed under the License are 4468 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4469 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4470 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4471 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4472 // Please see the License for the specific language governing rights and 4473 // limitations under the License. 4474 // 4475 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4476 4477 // Kernel event subclass identifiers for KEV_NETWORK_CLASS 4478 // KEV_INET_SUBCLASS event codes 4479 4480 // Define Data-Link event subclass, and associated 4481 // events. 4482 4483 // KEV_INET6_SUBCLASS event codes 4484 4485 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 4486 // 4487 // @APPLE_LICENSE_HEADER_START@ 4488 // 4489 // This file contains Original Code and/or Modifications of Original Code 4490 // as defined in and that are subject to the Apple Public Source License 4491 // Version 2.0 (the 'License'). You may not use this file except in 4492 // compliance with the License. Please obtain a copy of the License at 4493 // http://www.opensource.apple.com/apsl/ and read it before using this 4494 // file. 4495 // 4496 // The Original Code and all software distributed under the License are 4497 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4498 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4499 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4500 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4501 // Please see the License for the specific language governing rights and 4502 // limitations under the License. 4503 // 4504 // @APPLE_LICENSE_HEADER_END@ 4505 4506 // Definitions related to sockets: types, address families, options. 4507 4508 // Data types. 4509 4510 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4511 // 4512 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4513 // 4514 // This file contains Original Code and/or Modifications of Original Code 4515 // as defined in and that are subject to the Apple Public Source License 4516 // Version 2.0 (the 'License'). You may not use this file except in 4517 // compliance with the License. The rights granted to you under the License 4518 // may not be used to create, or enable the creation or redistribution of, 4519 // unlawful or unlicensed copies of an Apple operating system, or to 4520 // circumvent, violate, or enable the circumvention or violation of, any 4521 // terms of an Apple operating system software license agreement. 4522 // 4523 // Please obtain a copy of the License at 4524 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4525 // 4526 // The Original Code and all software distributed under the License are 4527 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4528 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4529 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4530 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4531 // Please see the License for the specific language governing rights and 4532 // limitations under the License. 4533 // 4534 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4535 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4536 // 4537 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4538 // 4539 // This file contains Original Code and/or Modifications of Original Code 4540 // as defined in and that are subject to the Apple Public Source License 4541 // Version 2.0 (the 'License'). You may not use this file except in 4542 // compliance with the License. The rights granted to you under the License 4543 // may not be used to create, or enable the creation or redistribution of, 4544 // unlawful or unlicensed copies of an Apple operating system, or to 4545 // circumvent, violate, or enable the circumvention or violation of, any 4546 // terms of an Apple operating system software license agreement. 4547 // 4548 // Please obtain a copy of the License at 4549 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4550 // 4551 // The Original Code and all software distributed under the License are 4552 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4553 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4554 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4555 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4556 // Please see the License for the specific language governing rights and 4557 // limitations under the License. 4558 // 4559 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4560 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4561 // 4562 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4563 // 4564 // This file contains Original Code and/or Modifications of Original Code 4565 // as defined in and that are subject to the Apple Public Source License 4566 // Version 2.0 (the 'License'). You may not use this file except in 4567 // compliance with the License. The rights granted to you under the License 4568 // may not be used to create, or enable the creation or redistribution of, 4569 // unlawful or unlicensed copies of an Apple operating system, or to 4570 // circumvent, violate, or enable the circumvention or violation of, any 4571 // terms of an Apple operating system software license agreement. 4572 // 4573 // Please obtain a copy of the License at 4574 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4575 // 4576 // The Original Code and all software distributed under the License are 4577 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4578 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4579 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4580 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4581 // Please see the License for the specific language governing rights and 4582 // limitations under the License. 4583 // 4584 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4585 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4586 // 4587 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4588 // 4589 // This file contains Original Code and/or Modifications of Original Code 4590 // as defined in and that are subject to the Apple Public Source License 4591 // Version 2.0 (the 'License'). You may not use this file except in 4592 // compliance with the License. The rights granted to you under the License 4593 // may not be used to create, or enable the creation or redistribution of, 4594 // unlawful or unlicensed copies of an Apple operating system, or to 4595 // circumvent, violate, or enable the circumvention or violation of, any 4596 // terms of an Apple operating system software license agreement. 4597 // 4598 // Please obtain a copy of the License at 4599 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4600 // 4601 // The Original Code and all software distributed under the License are 4602 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4603 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4604 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4605 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4606 // Please see the License for the specific language governing rights and 4607 // limitations under the License. 4608 // 4609 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4610 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4611 // 4612 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4613 // 4614 // This file contains Original Code and/or Modifications of Original Code 4615 // as defined in and that are subject to the Apple Public Source License 4616 // Version 2.0 (the 'License'). You may not use this file except in 4617 // compliance with the License. The rights granted to you under the License 4618 // may not be used to create, or enable the creation or redistribution of, 4619 // unlawful or unlicensed copies of an Apple operating system, or to 4620 // circumvent, violate, or enable the circumvention or violation of, any 4621 // terms of an Apple operating system software license agreement. 4622 // 4623 // Please obtain a copy of the License at 4624 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4625 // 4626 // The Original Code and all software distributed under the License are 4627 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4628 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4629 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4630 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4631 // Please see the License for the specific language governing rights and 4632 // limitations under the License. 4633 // 4634 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4635 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4636 type Sa_family_t = X__uint8_t /* _sa_family_t.h:31:33 */ 4637 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4638 // 4639 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4640 // 4641 // This file contains Original Code and/or Modifications of Original Code 4642 // as defined in and that are subject to the Apple Public Source License 4643 // Version 2.0 (the 'License'). You may not use this file except in 4644 // compliance with the License. The rights granted to you under the License 4645 // may not be used to create, or enable the creation or redistribution of, 4646 // unlawful or unlicensed copies of an Apple operating system, or to 4647 // circumvent, violate, or enable the circumvention or violation of, any 4648 // terms of an Apple operating system software license agreement. 4649 // 4650 // Please obtain a copy of the License at 4651 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4652 // 4653 // The Original Code and all software distributed under the License are 4654 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4655 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4656 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4657 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4658 // Please see the License for the specific language governing rights and 4659 // limitations under the License. 4660 // 4661 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4662 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4663 // 4664 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4665 // 4666 // This file contains Original Code and/or Modifications of Original Code 4667 // as defined in and that are subject to the Apple Public Source License 4668 // Version 2.0 (the 'License'). You may not use this file except in 4669 // compliance with the License. The rights granted to you under the License 4670 // may not be used to create, or enable the creation or redistribution of, 4671 // unlawful or unlicensed copies of an Apple operating system, or to 4672 // circumvent, violate, or enable the circumvention or violation of, any 4673 // terms of an Apple operating system software license agreement. 4674 // 4675 // Please obtain a copy of the License at 4676 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4677 // 4678 // The Original Code and all software distributed under the License are 4679 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4680 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4681 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4682 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4683 // Please see the License for the specific language governing rights and 4684 // limitations under the License. 4685 // 4686 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4687 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4688 type Socklen_t = X__darwin_socklen_t /* _socklen_t.h:31:33 */ 4689 4690 // XXX Not explicitly defined by POSIX, but function return types are 4691 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4692 // 4693 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4694 // 4695 // This file contains Original Code and/or Modifications of Original Code 4696 // as defined in and that are subject to the Apple Public Source License 4697 // Version 2.0 (the 'License'). You may not use this file except in 4698 // compliance with the License. The rights granted to you under the License 4699 // may not be used to create, or enable the creation or redistribution of, 4700 // unlawful or unlicensed copies of an Apple operating system, or to 4701 // circumvent, violate, or enable the circumvention or violation of, any 4702 // terms of an Apple operating system software license agreement. 4703 // 4704 // Please obtain a copy of the License at 4705 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4706 // 4707 // The Original Code and all software distributed under the License are 4708 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4709 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4710 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4711 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4712 // Please see the License for the specific language governing rights and 4713 // limitations under the License. 4714 // 4715 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4716 4717 // XXX Not explicitly defined by POSIX, but function return types are 4718 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4719 // 4720 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4721 // 4722 // This file contains Original Code and/or Modifications of Original Code 4723 // as defined in and that are subject to the Apple Public Source License 4724 // Version 2.0 (the 'License'). You may not use this file except in 4725 // compliance with the License. The rights granted to you under the License 4726 // may not be used to create, or enable the creation or redistribution of, 4727 // unlawful or unlicensed copies of an Apple operating system, or to 4728 // circumvent, violate, or enable the circumvention or violation of, any 4729 // terms of an Apple operating system software license agreement. 4730 // 4731 // Please obtain a copy of the License at 4732 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4733 // 4734 // The Original Code and all software distributed under the License are 4735 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4736 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4737 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4738 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4739 // Please see the License for the specific language governing rights and 4740 // limitations under the License. 4741 // 4742 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4743 4744 // [XSI] The iovec structure shall be defined as described in <sys/uio.h>. 4745 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4746 // 4747 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4748 // 4749 // This file contains Original Code and/or Modifications of Original Code 4750 // as defined in and that are subject to the Apple Public Source License 4751 // Version 2.0 (the 'License'). You may not use this file except in 4752 // compliance with the License. The rights granted to you under the License 4753 // may not be used to create, or enable the creation or redistribution of, 4754 // unlawful or unlicensed copies of an Apple operating system, or to 4755 // circumvent, violate, or enable the circumvention or violation of, any 4756 // terms of an Apple operating system software license agreement. 4757 // 4758 // Please obtain a copy of the License at 4759 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4760 // 4761 // The Original Code and all software distributed under the License are 4762 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4763 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4764 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4765 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4766 // Please see the License for the specific language governing rights and 4767 // limitations under the License. 4768 // 4769 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4770 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4771 // 4772 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4773 // 4774 // This file contains Original Code and/or Modifications of Original Code 4775 // as defined in and that are subject to the Apple Public Source License 4776 // Version 2.0 (the 'License'). You may not use this file except in 4777 // compliance with the License. The rights granted to you under the License 4778 // may not be used to create, or enable the creation or redistribution of, 4779 // unlawful or unlicensed copies of an Apple operating system, or to 4780 // circumvent, violate, or enable the circumvention or violation of, any 4781 // terms of an Apple operating system software license agreement. 4782 // 4783 // Please obtain a copy of the License at 4784 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4785 // 4786 // The Original Code and all software distributed under the License are 4787 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4788 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4789 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4790 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4791 // Please see the License for the specific language governing rights and 4792 // limitations under the License. 4793 // 4794 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4795 type Iovec = struct { 4796 Fiov_base uintptr 4797 Fiov_len Size_t 4798 } /* _iovec_t.h:31:1 */ 4799 4800 // Types 4801 4802 // Option flags per-socket. 4803 // (ATOMIC proto) 4804 4805 // Additional options, not kept in so_options. 4806 4807 // Network Service Type for option SO_NET_SERVICE_TYPE 4808 // 4809 // The vast majority of sockets should use Best Effort that is the default 4810 // Network Service Type. Other Network Service Types have to be used only if 4811 // the traffic actually matches the description of the Network Service Type. 4812 // 4813 // Network Service Types do not represent priorities but rather describe 4814 // different categories of delay, jitter and loss parameters. 4815 // Those parameters may influence protocols from layer 4 protocols like TCP 4816 // to layer 2 protocols like Wi-Fi. The Network Service Type can determine 4817 // how the traffic is queued and scheduled by the host networking stack and 4818 // by other entities on the network like switches and routers. For example 4819 // for Wi-Fi, the Network Service Type can select the marking of the 4820 // layer 2 packet with the appropriate WMM Access Category. 4821 // 4822 // There is no point in attempting to game the system and use 4823 // a Network Service Type that does not correspond to the actual 4824 // traffic characteristic but one that seems to have a higher precedence. 4825 // The reason is that for service classes that have lower tolerance 4826 // for delay and jitter, the queues size is lower than for service 4827 // classes that are more tolerant to delay and jitter. 4828 // 4829 // For example using a voice service type for bulk data transfer will lead 4830 // to disastrous results as soon as congestion happens because the voice 4831 // queue overflows and packets get dropped. This is not only bad for the bulk 4832 // data transfer but it is also bad for VoIP apps that legitimately are using 4833 // the voice service type. 4834 // 4835 // The characteristics of the Network Service Types are based on the service 4836 // classes defined in RFC 4594 "Configuration Guidelines for DiffServ Service 4837 // Classes" 4838 // 4839 // When system detects the outgoing interface belongs to a DiffServ domain 4840 // that follows the recommendation of the IETF draft "Guidelines for DiffServ to 4841 // IEEE 802.11 Mapping", the packet will marked at layer 3 with a DSCP value 4842 // that corresponds to Network Service Type. 4843 // 4844 // NET_SERVICE_TYPE_BE 4845 // "Best Effort", unclassified/standard. This is the default service 4846 // class and cover the majority of the traffic. 4847 // 4848 // NET_SERVICE_TYPE_BK 4849 // "Background", high delay tolerant, loss tolerant. elastic flow, 4850 // variable size & long-lived. E.g: non-interactive network bulk transfer 4851 // like synching or backup. 4852 // 4853 // NET_SERVICE_TYPE_RD 4854 // "Responsive Data", a notch higher than "Best Effort", medium delay 4855 // tolerant, elastic & inelastic flow, bursty, long-lived. E.g. email, 4856 // instant messaging, for which there is a sense of interactivity and 4857 // urgency (user waiting for output). 4858 // 4859 // NET_SERVICE_TYPE_OAM 4860 // "Operations, Administration, and Management", medium delay tolerant, 4861 // low-medium loss tolerant, elastic & inelastic flows, variable size. 4862 // E.g. VPN tunnels. 4863 // 4864 // NET_SERVICE_TYPE_AV 4865 // "Multimedia Audio/Video Streaming", medium delay tolerant, low-medium 4866 // loss tolerant, elastic flow, constant packet interval, variable rate 4867 // and size. E.g. video and audio playback with buffering. 4868 // 4869 // NET_SERVICE_TYPE_RV 4870 // "Responsive Multimedia Audio/Video", low delay tolerant, low-medium 4871 // loss tolerant, elastic flow, variable packet interval, rate and size. 4872 // E.g. screen sharing. 4873 // 4874 // NET_SERVICE_TYPE_VI 4875 // "Interactive Video", low delay tolerant, low-medium loss tolerant, 4876 // elastic flow, constant packet interval, variable rate & size. E.g. 4877 // video telephony. 4878 // 4879 // NET_SERVICE_TYPE_SIG 4880 // "Signaling", low delay tolerant, low loss tolerant, inelastic flow, 4881 // jitter tolerant, rate is bursty but short, variable size. E.g. SIP. 4882 // 4883 // NET_SERVICE_TYPE_VO 4884 // "Interactive Voice", very low delay tolerant, very low loss tolerant, 4885 // inelastic flow, constant packet rate, somewhat fixed size. 4886 // E.g. VoIP. 4887 4888 // These are supported values for SO_NETSVC_MARKING_LEVEL 4889 4890 type Sae_associd_t = X__uint32_t /* socket.h:289:20 */ 4891 4892 type Sae_connid_t = X__uint32_t /* socket.h:293:20 */ 4893 4894 // connectx() flag parameters 4895 4896 // sockaddr endpoints 4897 type Sa_endpoints = struct { 4898 Fsae_srcif uint32 4899 F__ccgo_pad1 [4]byte 4900 Fsae_srcaddr uintptr 4901 Fsae_srcaddrlen Socklen_t 4902 F__ccgo_pad2 [4]byte 4903 Fsae_dstaddr uintptr 4904 Fsae_dstaddrlen Socklen_t 4905 F__ccgo_pad3 [4]byte 4906 } /* socket.h:303:9 */ 4907 4908 // connectx() flag parameters 4909 4910 // sockaddr endpoints 4911 type Sockaddr = struct { 4912 Fsa_len X__uint8_t 4913 Fsa_family Sa_family_t 4914 Fsa_data [14]int8 4915 } /* socket.h:303:9 */ 4916 4917 // connectx() flag parameters 4918 4919 // sockaddr endpoints 4920 type Sa_endpoints_t = Sa_endpoints /* socket.h:309:3 */ 4921 4922 // Structure used for manipulating linger option. 4923 type Linger = struct { 4924 Fl_onoff int32 4925 Fl_linger int32 4926 } /* socket.h:315:1 */ 4927 4928 // Structure to control non-portable Sockets extension to POSIX 4929 type So_np_extensions = struct { 4930 Fnpx_flags U_int32_t 4931 Fnpx_mask U_int32_t 4932 } /* socket.h:333:1 */ 4933 4934 // Structure used by kernel to pass protocol 4935 // information in raw sockets. 4936 type Sockproto = struct { 4937 Fsp_family X__uint16_t 4938 Fsp_protocol X__uint16_t 4939 } /* socket.h:420:1 */ 4940 4941 // RFC 2553: protocol-independent placeholder for socket addresses 4942 4943 // [XSI] sockaddr_storage 4944 type Sockaddr_storage = struct { 4945 Fss_len X__uint8_t 4946 Fss_family Sa_family_t 4947 F__ss_pad1 [6]int8 4948 F__ss_align X__int64_t 4949 F__ss_pad2 [112]int8 4950 } /* socket.h:440:1 */ 4951 4952 // Protocol families, same as address families for now. 4953 4954 // These do not have socket-layer support: 4955 4956 // Definitions for network related sysctl, CTL_NET. 4957 // 4958 // Second level is protocol family. 4959 // Third level is protocol number. 4960 // 4961 // Further levels are defined by the individual families below. 4962 4963 // PF_ROUTE - Routing table 4964 // 4965 // Three additional levels are defined: 4966 // Fourth: address family, 0 is wildcard 4967 // Fifth: type of info, defined below 4968 // Sixth: flag(s) to mask with for NET_RT_FLAGS 4969 // Allows read access non-local host's MAC address 4970 // if the process has neighbor cache entitlement. 4971 4972 // Maximum queue length specifiable by listen. 4973 4974 // [XSI] Message header for recvmsg and sendmsg calls. 4975 // Used value-result for recvmsg, value only for sendmsg. 4976 type Msghdr = struct { 4977 Fmsg_name uintptr 4978 Fmsg_namelen Socklen_t 4979 F__ccgo_pad1 [4]byte 4980 Fmsg_iov uintptr 4981 Fmsg_iovlen int32 4982 F__ccgo_pad2 [4]byte 4983 Fmsg_control uintptr 4984 Fmsg_controllen Socklen_t 4985 Fmsg_flags int32 4986 } /* socket.h:546:1 */ 4987 4988 // Header for ancillary data objects in msg_control buffer. 4989 // Used for additional information with/about a datagram 4990 // not expressible by flags. The format is a sequence 4991 // of message elements headed by cmsghdr structures. 4992 type Cmsghdr = struct { 4993 Fcmsg_len Socklen_t 4994 Fcmsg_level int32 4995 Fcmsg_type int32 4996 } /* socket.h:587:1 */ 4997 4998 // given pointer to struct cmsghdr, return pointer to data 4999 5000 // RFC 2292 requires to check msg_controllen, in case that the kernel returns 5001 // an empty list for some reasons. 5002 5003 // Given pointer to struct cmsghdr, return pointer to next cmsghdr 5004 // RFC 2292 says that CMSG_NXTHDR(mhdr, NULL) is equivalent to CMSG_FIRSTHDR(mhdr) 5005 5006 // RFC 2292 additions 5007 5008 // "Socket"-level control message types: 5009 5010 // howto arguments for shutdown(2), specified by Posix.1g. 5011 5012 // sendfile(2) header/trailer struct 5013 type Sf_hdtr = struct { 5014 Fheaders uintptr 5015 Fhdr_cnt int32 5016 F__ccgo_pad1 [4]byte 5017 Ftrailers uintptr 5018 Ftrl_cnt int32 5019 F__ccgo_pad2 [4]byte 5020 } /* socket.h:678:1 */ 5021 5022 var _ int8 /* gen.c:2:13: */