github.com/jdgcs/sqlite3@v1.12.1-0.20210908114423-bc5f96e4dd51/internal/mptest/main_darwin_amd64.go (about) 1 // Code generated by 'ccgo -export-defines "" -o internal/mptest/main_darwin_amd64.go -trace-translation-units testdata/sqlite-src-3360000/mptest/mptest.c -Itestdata/sqlite-amalgamation-3360000 -l modernc.org/sqlite/lib -DNDEBUG -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DSQLITE_CORE -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_RBU -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_SNAPSHOT -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MUTEX_APPDEF=1 -DSQLITE_SOUNDEX -DSQLITE_THREADSAFE=1 -DSQLITE_MUTEX_NOOP -DSQLITE_OS_UNIX=1 -DSQLITE_WITHOUT_ZONEMALLOC', DO NOT EDIT. 2 3 package main 4 5 import ( 6 "math" 7 "reflect" 8 "sync/atomic" 9 "unsafe" 10 11 "modernc.org/libc" 12 "modernc.org/libc/sys/types" 13 "modernc.org/sqlite/lib" 14 ) 15 16 var _ = math.Pi 17 var _ reflect.Kind 18 var _ atomic.Value 19 var _ unsafe.Pointer 20 var _ types.Size_t 21 22 func main() { libc.Start(main1) } 23 24 const ( 25 ACCESSX_MAX_DESCRIPTORS = 100 26 ACCESSX_MAX_TABLESIZE = 16384 27 BIG_ENDIAN = 4321 28 BUFSIZ = 1024 29 BUS_ADRALN = 1 30 BUS_ADRERR = 2 31 BUS_NOOP = 0 32 BUS_OBJERR = 3 33 BYTE_ORDER = 1234 34 CLD_CONTINUED = 6 35 CLD_DUMPED = 3 36 CLD_EXITED = 1 37 CLD_KILLED = 2 38 CLD_NOOP = 0 39 CLD_STOPPED = 5 40 CLD_TRAPPED = 4 41 CPUMON_MAKE_FATAL = 0x1000 42 DEFAULT_TIMEOUT = 10000 43 E2BIG = 7 44 EACCES = 13 45 EADDRINUSE = 48 46 EADDRNOTAVAIL = 49 47 EAFNOSUPPORT = 47 48 EAGAIN = 35 49 EALREADY = 37 50 EAUTH = 80 51 EBADARCH = 86 52 EBADEXEC = 85 53 EBADF = 9 54 EBADMACHO = 88 55 EBADMSG = 94 56 EBADRPC = 72 57 EBUSY = 16 58 ECANCELED = 89 59 ECHILD = 10 60 ECONNABORTED = 53 61 ECONNREFUSED = 61 62 ECONNRESET = 54 63 EDEADLK = 11 64 EDESTADDRREQ = 39 65 EDEVERR = 83 66 EDOM = 33 67 EDQUOT = 69 68 EEXIST = 17 69 EFAULT = 14 70 EFBIG = 27 71 EFTYPE = 79 72 EHOSTDOWN = 64 73 EHOSTUNREACH = 65 74 EIDRM = 90 75 EILSEQ = 92 76 EINPROGRESS = 36 77 EINTR = 4 78 EINVAL = 22 79 EIO = 5 80 EISCONN = 56 81 EISDIR = 21 82 ELAST = 106 83 ELOOP = 62 84 EMFILE = 24 85 EMLINK = 31 86 EMSGSIZE = 40 87 EMULTIHOP = 95 88 ENAMETOOLONG = 63 89 ENEEDAUTH = 81 90 ENETDOWN = 50 91 ENETRESET = 52 92 ENETUNREACH = 51 93 ENFILE = 23 94 ENOATTR = 93 95 ENOBUFS = 55 96 ENODATA = 96 97 ENODEV = 19 98 ENOENT = 2 99 ENOEXEC = 8 100 ENOLCK = 77 101 ENOLINK = 97 102 ENOMEM = 12 103 ENOMSG = 91 104 ENOPOLICY = 103 105 ENOPROTOOPT = 42 106 ENOSPC = 28 107 ENOSR = 98 108 ENOSTR = 99 109 ENOSYS = 78 110 ENOTBLK = 15 111 ENOTCONN = 57 112 ENOTDIR = 20 113 ENOTEMPTY = 66 114 ENOTRECOVERABLE = 104 115 ENOTSOCK = 38 116 ENOTSUP = 45 117 ENOTTY = 25 118 ENXIO = 6 119 EOF = -1 120 EOPNOTSUPP = 102 121 EOVERFLOW = 84 122 EOWNERDEAD = 105 123 EPERM = 1 124 EPFNOSUPPORT = 46 125 EPIPE = 32 126 EPROCLIM = 67 127 EPROCUNAVAIL = 76 128 EPROGMISMATCH = 75 129 EPROGUNAVAIL = 74 130 EPROTO = 100 131 EPROTONOSUPPORT = 43 132 EPROTOTYPE = 41 133 EPWROFF = 82 134 EQFULL = 106 135 ERANGE = 34 136 EREMOTE = 71 137 EROFS = 30 138 ERPCMISMATCH = 73 139 ESHLIBVERS = 87 140 ESHUTDOWN = 58 141 ESOCKTNOSUPPORT = 44 142 ESPIPE = 29 143 ESRCH = 3 144 ESTALE = 70 145 ETIME = 101 146 ETIMEDOUT = 60 147 ETOOMANYREFS = 59 148 ETXTBSY = 26 149 EUSERS = 68 150 EWOULDBLOCK = 35 151 EXDEV = 18 152 EXIT_FAILURE = 1 153 EXIT_SUCCESS = 0 154 FD_SETSIZE = 1024 155 FILENAME_MAX = 1024 156 FIXINC_WRAP_STDIO_H_STDIO_STDARG_H = 1 157 FOOTPRINT_INTERVAL_RESET = 0x1 158 FOPEN_MAX = 20 159 FPE_FLTDIV = 1 160 FPE_FLTINV = 5 161 FPE_FLTOVF = 2 162 FPE_FLTRES = 4 163 FPE_FLTSUB = 6 164 FPE_FLTUND = 3 165 FPE_INTDIV = 7 166 FPE_INTOVF = 8 167 FPE_NOOP = 0 168 FP_CHOP = 3 169 FP_PREC_24B = 0 170 FP_PREC_53B = 2 171 FP_PREC_64B = 3 172 FP_RND_DOWN = 1 173 FP_RND_NEAR = 0 174 FP_RND_UP = 2 175 FP_STATE_BYTES = 512 176 FTS5_TOKENIZE_AUX = 0x0008 177 FTS5_TOKENIZE_DOCUMENT = 0x0004 178 FTS5_TOKENIZE_PREFIX = 0x0002 179 FTS5_TOKENIZE_QUERY = 0x0001 180 FTS5_TOKEN_COLOCATED = 0x0001 181 FULLY_WITHIN = 2 182 F_LOCK = 1 183 F_OK = 0 184 F_TEST = 3 185 F_TLOCK = 2 186 F_ULOCK = 0 187 HAVE_USLEEP = 1 188 ILL_BADSTK = 8 189 ILL_COPROC = 7 190 ILL_ILLADR = 5 191 ILL_ILLOPC = 1 192 ILL_ILLOPN = 4 193 ILL_ILLTRP = 2 194 ILL_NOOP = 0 195 ILL_PRVOPC = 3 196 ILL_PRVREG = 6 197 INT16_MAX = 32767 198 INT16_MIN = -32768 199 INT32_MAX = 2147483647 200 INT32_MIN = -2147483648 201 INT64_MAX = 9223372036854775807 202 INT64_MIN = -9223372036854775808 203 INT8_MAX = 127 204 INT8_MIN = -128 205 INTMAX_MAX = 9223372036854775807 206 INTMAX_MIN = -9223372036854775808 207 INTPTR_MAX = 9223372036854775807 208 INTPTR_MIN = -9223372036854775808 209 INT_FAST16_MAX = 32767 210 INT_FAST16_MIN = -32768 211 INT_FAST32_MAX = 2147483647 212 INT_FAST32_MIN = -2147483648 213 INT_FAST64_MAX = 9223372036854775807 214 INT_FAST64_MIN = -9223372036854775808 215 INT_FAST8_MAX = 127 216 INT_FAST8_MIN = -128 217 INT_LEAST16_MAX = 32767 218 INT_LEAST16_MIN = -32768 219 INT_LEAST32_MAX = 2147483647 220 INT_LEAST32_MIN = -2147483648 221 INT_LEAST64_MAX = 9223372036854775807 222 INT_LEAST64_MIN = -9223372036854775808 223 INT_LEAST8_MAX = 127 224 INT_LEAST8_MIN = -128 225 IOPOL_APPLICATION = 5 226 IOPOL_ATIME_UPDATES_DEFAULT = 0 227 IOPOL_ATIME_UPDATES_OFF = 1 228 IOPOL_DEFAULT = 0 229 IOPOL_IMPORTANT = 1 230 IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT = 0 231 IOPOL_MATERIALIZE_DATALESS_FILES_OFF = 1 232 IOPOL_MATERIALIZE_DATALESS_FILES_ON = 2 233 IOPOL_NORMAL = 1 234 IOPOL_PASSIVE = 2 235 IOPOL_SCOPE_DARWIN_BG = 2 236 IOPOL_SCOPE_PROCESS = 0 237 IOPOL_SCOPE_THREAD = 1 238 IOPOL_STANDARD = 5 239 IOPOL_THROTTLE = 3 240 IOPOL_TYPE_DISK = 0 241 IOPOL_TYPE_VFS_ATIME_UPDATES = 2 242 IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES = 3 243 IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME = 4 244 IOPOL_UTILITY = 4 245 IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME = 1 246 IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT = 0 247 LITTLE_ENDIAN = 1234 248 L_INCR = 1 249 L_SET = 0 250 L_XTND = 2 251 L_ctermid = 1024 252 L_tmpnam = 1024 253 MINSIGSTKSZ = 32768 254 MX_ARG = 2 255 NDEBUG = 1 256 NOT_WITHIN = 0 257 NSIG = 32 258 PARTLY_WITHIN = 1 259 PDP_ENDIAN = 3412 260 POLL_ERR = 4 261 POLL_HUP = 6 262 POLL_IN = 1 263 POLL_MSG = 3 264 POLL_OUT = 2 265 POLL_PRI = 5 266 PRIO_DARWIN_BG = 0x1000 267 PRIO_DARWIN_NONUI = 0x1001 268 PRIO_DARWIN_PROCESS = 4 269 PRIO_DARWIN_THREAD = 3 270 PRIO_MAX = 20 271 PRIO_MIN = -20 272 PRIO_PGRP = 1 273 PRIO_PROCESS = 0 274 PRIO_USER = 2 275 PTRDIFF_MAX = 9223372036854775807 276 PTRDIFF_MIN = -9223372036854775808 277 P_tmpdir = "/var/tmp/" 278 RAND_MAX = 0x7fffffff 279 RENAME_EXCL = 0x00000004 280 RENAME_SECLUDE = 0x00000001 281 RENAME_SWAP = 0x00000002 282 RLIMIT_AS = 5 283 RLIMIT_CORE = 4 284 RLIMIT_CPU = 0 285 RLIMIT_CPU_USAGE_MONITOR = 0x2 286 RLIMIT_DATA = 2 287 RLIMIT_FOOTPRINT_INTERVAL = 0x4 288 RLIMIT_FSIZE = 1 289 RLIMIT_MEMLOCK = 6 290 RLIMIT_NOFILE = 8 291 RLIMIT_NPROC = 7 292 RLIMIT_RSS = 5 293 RLIMIT_STACK = 3 294 RLIMIT_THREAD_CPULIMITS = 0x3 295 RLIMIT_WAKEUPS_MONITOR = 0x1 296 RLIM_NLIMITS = 9 297 RSIZE_MAX = 9223372036854775807 298 RUSAGE_CHILDREN = -1 299 RUSAGE_INFO_CURRENT = 4 300 RUSAGE_INFO_V0 = 0 301 RUSAGE_INFO_V1 = 1 302 RUSAGE_INFO_V2 = 2 303 RUSAGE_INFO_V3 = 3 304 RUSAGE_INFO_V4 = 4 305 RUSAGE_SELF = 0 306 R_OK = 4 307 SA_64REGSET = 0x0200 308 SA_NOCLDSTOP = 0x0008 309 SA_NOCLDWAIT = 0x0020 310 SA_NODEFER = 0x0010 311 SA_ONSTACK = 0x0001 312 SA_RESETHAND = 0x0004 313 SA_RESTART = 0x0002 314 SA_SIGINFO = 0x0040 315 SA_USERSPACE_MASK = 127 316 SA_USERTRAMP = 0x0100 317 SEEK_CUR = 1 318 SEEK_DATA = 4 319 SEEK_END = 2 320 SEEK_HOLE = 3 321 SEEK_SET = 0 322 SEGV_ACCERR = 2 323 SEGV_MAPERR = 1 324 SEGV_NOOP = 0 325 SIGABRT = 6 326 SIGALRM = 14 327 SIGBUS = 10 328 SIGCHLD = 20 329 SIGCONT = 19 330 SIGEMT = 7 331 SIGEV_NONE = 0 332 SIGEV_SIGNAL = 1 333 SIGEV_THREAD = 3 334 SIGFPE = 8 335 SIGHUP = 1 336 SIGILL = 4 337 SIGINFO = 29 338 SIGINT = 2 339 SIGIO = 23 340 SIGIOT = 6 341 SIGKILL = 9 342 SIGPIPE = 13 343 SIGPROF = 27 344 SIGQUIT = 3 345 SIGSEGV = 11 346 SIGSTKSZ = 131072 347 SIGSTOP = 17 348 SIGSYS = 12 349 SIGTERM = 15 350 SIGTRAP = 5 351 SIGTSTP = 18 352 SIGTTIN = 21 353 SIGTTOU = 22 354 SIGURG = 16 355 SIGUSR1 = 30 356 SIGUSR2 = 31 357 SIGVTALRM = 26 358 SIGWINCH = 28 359 SIGXCPU = 24 360 SIGXFSZ = 25 361 SIG_ATOMIC_MAX = 2147483647 362 SIG_ATOMIC_MIN = -2147483648 363 SIG_BLOCK = 1 364 SIG_SETMASK = 3 365 SIG_UNBLOCK = 2 366 SIZE_MAX = 18446744073709551615 367 SI_ASYNCIO = 0x10004 368 SI_MESGQ = 0x10005 369 SI_QUEUE = 0x10002 370 SI_TIMER = 0x10003 371 SI_USER = 0x10001 372 SQLITE3_H = 0 373 SQLITE3_TEXT = 3 374 SQLITE_ABORT = 4 375 SQLITE_ABORT_ROLLBACK = 516 376 SQLITE_ACCESS_EXISTS = 0 377 SQLITE_ACCESS_READ = 2 378 SQLITE_ACCESS_READWRITE = 1 379 SQLITE_ALTER_TABLE = 26 380 SQLITE_ANALYZE = 28 381 SQLITE_ANY = 5 382 SQLITE_API = 0 383 SQLITE_APICALL = 0 384 SQLITE_ATTACH = 24 385 SQLITE_AUTH = 23 386 SQLITE_AUTH_USER = 279 387 SQLITE_BLOB = 4 388 SQLITE_BUSY = 5 389 SQLITE_BUSY_RECOVERY = 261 390 SQLITE_BUSY_SNAPSHOT = 517 391 SQLITE_BUSY_TIMEOUT = 773 392 SQLITE_CALLBACK = 0 393 SQLITE_CANTOPEN = 14 394 SQLITE_CANTOPEN_CONVPATH = 1038 395 SQLITE_CANTOPEN_DIRTYWAL = 1294 396 SQLITE_CANTOPEN_FULLPATH = 782 397 SQLITE_CANTOPEN_ISDIR = 526 398 SQLITE_CANTOPEN_NOTEMPDIR = 270 399 SQLITE_CANTOPEN_SYMLINK = 1550 400 SQLITE_CDECL = 0 401 SQLITE_CHANGESETAPPLY_INVERT = 0x0002 402 SQLITE_CHANGESETAPPLY_NOSAVEPOINT = 0x0001 403 SQLITE_CHANGESETSTART_INVERT = 0x0002 404 SQLITE_CHANGESET_ABORT = 2 405 SQLITE_CHANGESET_CONFLICT = 3 406 SQLITE_CHANGESET_CONSTRAINT = 4 407 SQLITE_CHANGESET_DATA = 1 408 SQLITE_CHANGESET_FOREIGN_KEY = 5 409 SQLITE_CHANGESET_NOTFOUND = 2 410 SQLITE_CHANGESET_OMIT = 0 411 SQLITE_CHANGESET_REPLACE = 1 412 SQLITE_CHECKPOINT_FULL = 1 413 SQLITE_CHECKPOINT_PASSIVE = 0 414 SQLITE_CHECKPOINT_RESTART = 2 415 SQLITE_CHECKPOINT_TRUNCATE = 3 416 SQLITE_CONFIG_COVERING_INDEX_SCAN = 20 417 SQLITE_CONFIG_GETMALLOC = 5 418 SQLITE_CONFIG_GETMUTEX = 11 419 SQLITE_CONFIG_GETPCACHE = 15 420 SQLITE_CONFIG_GETPCACHE2 = 19 421 SQLITE_CONFIG_HEAP = 8 422 SQLITE_CONFIG_LOG = 16 423 SQLITE_CONFIG_LOOKASIDE = 13 424 SQLITE_CONFIG_MALLOC = 4 425 SQLITE_CONFIG_MEMDB_MAXSIZE = 29 426 SQLITE_CONFIG_MEMSTATUS = 9 427 SQLITE_CONFIG_MMAP_SIZE = 22 428 SQLITE_CONFIG_MULTITHREAD = 2 429 SQLITE_CONFIG_MUTEX = 10 430 SQLITE_CONFIG_PAGECACHE = 7 431 SQLITE_CONFIG_PCACHE = 14 432 SQLITE_CONFIG_PCACHE2 = 18 433 SQLITE_CONFIG_PCACHE_HDRSZ = 24 434 SQLITE_CONFIG_PMASZ = 25 435 SQLITE_CONFIG_SCRATCH = 6 436 SQLITE_CONFIG_SERIALIZED = 3 437 SQLITE_CONFIG_SINGLETHREAD = 1 438 SQLITE_CONFIG_SMALL_MALLOC = 27 439 SQLITE_CONFIG_SORTERREF_SIZE = 28 440 SQLITE_CONFIG_SQLLOG = 21 441 SQLITE_CONFIG_STMTJRNL_SPILL = 26 442 SQLITE_CONFIG_URI = 17 443 SQLITE_CONFIG_WIN32_HEAPSIZE = 23 444 SQLITE_CONSTRAINT = 19 445 SQLITE_CONSTRAINT_CHECK = 275 446 SQLITE_CONSTRAINT_COMMITHOOK = 531 447 SQLITE_CONSTRAINT_FOREIGNKEY = 787 448 SQLITE_CONSTRAINT_FUNCTION = 1043 449 SQLITE_CONSTRAINT_NOTNULL = 1299 450 SQLITE_CONSTRAINT_PINNED = 2835 451 SQLITE_CONSTRAINT_PRIMARYKEY = 1555 452 SQLITE_CONSTRAINT_ROWID = 2579 453 SQLITE_CONSTRAINT_TRIGGER = 1811 454 SQLITE_CONSTRAINT_UNIQUE = 2067 455 SQLITE_CONSTRAINT_VTAB = 2323 456 SQLITE_COPY = 0 457 SQLITE_CORE = 1 458 SQLITE_CORRUPT = 11 459 SQLITE_CORRUPT_INDEX = 779 460 SQLITE_CORRUPT_SEQUENCE = 523 461 SQLITE_CORRUPT_VTAB = 267 462 SQLITE_CREATE_INDEX = 1 463 SQLITE_CREATE_TABLE = 2 464 SQLITE_CREATE_TEMP_INDEX = 3 465 SQLITE_CREATE_TEMP_TABLE = 4 466 SQLITE_CREATE_TEMP_TRIGGER = 5 467 SQLITE_CREATE_TEMP_VIEW = 6 468 SQLITE_CREATE_TRIGGER = 7 469 SQLITE_CREATE_VIEW = 8 470 SQLITE_CREATE_VTABLE = 29 471 SQLITE_DBCONFIG_DEFENSIVE = 1010 472 SQLITE_DBCONFIG_DQS_DDL = 1014 473 SQLITE_DBCONFIG_DQS_DML = 1013 474 SQLITE_DBCONFIG_ENABLE_FKEY = 1002 475 SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER = 1004 476 SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION = 1005 477 SQLITE_DBCONFIG_ENABLE_QPSG = 1007 478 SQLITE_DBCONFIG_ENABLE_TRIGGER = 1003 479 SQLITE_DBCONFIG_ENABLE_VIEW = 1015 480 SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1012 481 SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1016 482 SQLITE_DBCONFIG_LOOKASIDE = 1001 483 SQLITE_DBCONFIG_MAINDBNAME = 1000 484 SQLITE_DBCONFIG_MAX = 1017 485 SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE = 1006 486 SQLITE_DBCONFIG_RESET_DATABASE = 1009 487 SQLITE_DBCONFIG_TRIGGER_EQP = 1008 488 SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1017 489 SQLITE_DBCONFIG_WRITABLE_SCHEMA = 1011 490 SQLITE_DBSTATUS_CACHE_HIT = 7 491 SQLITE_DBSTATUS_CACHE_MISS = 8 492 SQLITE_DBSTATUS_CACHE_SPILL = 12 493 SQLITE_DBSTATUS_CACHE_USED = 1 494 SQLITE_DBSTATUS_CACHE_USED_SHARED = 11 495 SQLITE_DBSTATUS_CACHE_WRITE = 9 496 SQLITE_DBSTATUS_DEFERRED_FKS = 10 497 SQLITE_DBSTATUS_LOOKASIDE_HIT = 4 498 SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL = 6 499 SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE = 5 500 SQLITE_DBSTATUS_LOOKASIDE_USED = 0 501 SQLITE_DBSTATUS_MAX = 12 502 SQLITE_DBSTATUS_SCHEMA_USED = 2 503 SQLITE_DBSTATUS_STMT_USED = 3 504 SQLITE_DELETE = 9 505 SQLITE_DENY = 1 506 SQLITE_DEPRECATED = 0 507 SQLITE_DESERIALIZE_FREEONCLOSE = 1 508 SQLITE_DESERIALIZE_READONLY = 4 509 SQLITE_DESERIALIZE_RESIZEABLE = 2 510 SQLITE_DETACH = 25 511 SQLITE_DETERMINISTIC = 0x000000800 512 SQLITE_DIRECTONLY = 0x000080000 513 SQLITE_DONE = 101 514 SQLITE_DROP_INDEX = 10 515 SQLITE_DROP_TABLE = 11 516 SQLITE_DROP_TEMP_INDEX = 12 517 SQLITE_DROP_TEMP_TABLE = 13 518 SQLITE_DROP_TEMP_TRIGGER = 14 519 SQLITE_DROP_TEMP_VIEW = 15 520 SQLITE_DROP_TRIGGER = 16 521 SQLITE_DROP_VIEW = 17 522 SQLITE_DROP_VTABLE = 30 523 SQLITE_EMPTY = 16 524 SQLITE_ENABLE_COLUMN_METADATA = 1 525 SQLITE_ENABLE_FTS5 = 1 526 SQLITE_ENABLE_GEOPOLY = 1 527 SQLITE_ENABLE_JSON1 = 1 528 SQLITE_ENABLE_MEMORY_MANAGEMENT = 1 529 SQLITE_ENABLE_OFFSET_SQL_FUNC = 1 530 SQLITE_ENABLE_PREUPDATE_HOOK = 1 531 SQLITE_ENABLE_RBU = 1 532 SQLITE_ENABLE_RTREE = 1 533 SQLITE_ENABLE_SESSION = 1 534 SQLITE_ENABLE_SNAPSHOT = 1 535 SQLITE_ENABLE_STAT4 = 1 536 SQLITE_ENABLE_UNLOCK_NOTIFY = 1 537 SQLITE_ERROR = 1 538 SQLITE_ERROR_MISSING_COLLSEQ = 257 539 SQLITE_ERROR_RETRY = 513 540 SQLITE_ERROR_SNAPSHOT = 769 541 SQLITE_EXPERIMENTAL = 0 542 SQLITE_FAIL = 3 543 SQLITE_FCNTL_BEGIN_ATOMIC_WRITE = 31 544 SQLITE_FCNTL_BUSYHANDLER = 15 545 SQLITE_FCNTL_CHUNK_SIZE = 6 546 SQLITE_FCNTL_CKPT_DONE = 37 547 SQLITE_FCNTL_CKPT_START = 39 548 SQLITE_FCNTL_CKSM_FILE = 41 549 SQLITE_FCNTL_COMMIT_ATOMIC_WRITE = 32 550 SQLITE_FCNTL_COMMIT_PHASETWO = 22 551 SQLITE_FCNTL_DATA_VERSION = 35 552 SQLITE_FCNTL_EXTERNAL_READER = 40 553 SQLITE_FCNTL_FILE_POINTER = 7 554 SQLITE_FCNTL_GET_LOCKPROXYFILE = 2 555 SQLITE_FCNTL_HAS_MOVED = 20 556 SQLITE_FCNTL_JOURNAL_POINTER = 28 557 SQLITE_FCNTL_LAST_ERRNO = 4 558 SQLITE_FCNTL_LOCKSTATE = 1 559 SQLITE_FCNTL_LOCK_TIMEOUT = 34 560 SQLITE_FCNTL_MMAP_SIZE = 18 561 SQLITE_FCNTL_OVERWRITE = 11 562 SQLITE_FCNTL_PDB = 30 563 SQLITE_FCNTL_PERSIST_WAL = 10 564 SQLITE_FCNTL_POWERSAFE_OVERWRITE = 13 565 SQLITE_FCNTL_PRAGMA = 14 566 SQLITE_FCNTL_RBU = 26 567 SQLITE_FCNTL_RESERVE_BYTES = 38 568 SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE = 33 569 SQLITE_FCNTL_SET_LOCKPROXYFILE = 3 570 SQLITE_FCNTL_SIZE_HINT = 5 571 SQLITE_FCNTL_SIZE_LIMIT = 36 572 SQLITE_FCNTL_SYNC = 21 573 SQLITE_FCNTL_SYNC_OMITTED = 8 574 SQLITE_FCNTL_TEMPFILENAME = 16 575 SQLITE_FCNTL_TRACE = 19 576 SQLITE_FCNTL_VFSNAME = 12 577 SQLITE_FCNTL_VFS_POINTER = 27 578 SQLITE_FCNTL_WAL_BLOCK = 24 579 SQLITE_FCNTL_WIN32_AV_RETRY = 9 580 SQLITE_FCNTL_WIN32_GET_HANDLE = 29 581 SQLITE_FCNTL_WIN32_SET_HANDLE = 23 582 SQLITE_FCNTL_ZIPVFS = 25 583 SQLITE_FLOAT = 2 584 SQLITE_FORMAT = 24 585 SQLITE_FULL = 13 586 SQLITE_FUNCTION = 31 587 SQLITE_GET_LOCKPROXYFILE = 2 588 SQLITE_IGNORE = 2 589 SQLITE_INDEX_CONSTRAINT_EQ = 2 590 SQLITE_INDEX_CONSTRAINT_FUNCTION = 150 591 SQLITE_INDEX_CONSTRAINT_GE = 32 592 SQLITE_INDEX_CONSTRAINT_GLOB = 66 593 SQLITE_INDEX_CONSTRAINT_GT = 4 594 SQLITE_INDEX_CONSTRAINT_IS = 72 595 SQLITE_INDEX_CONSTRAINT_ISNOT = 69 596 SQLITE_INDEX_CONSTRAINT_ISNOTNULL = 70 597 SQLITE_INDEX_CONSTRAINT_ISNULL = 71 598 SQLITE_INDEX_CONSTRAINT_LE = 8 599 SQLITE_INDEX_CONSTRAINT_LIKE = 65 600 SQLITE_INDEX_CONSTRAINT_LT = 16 601 SQLITE_INDEX_CONSTRAINT_MATCH = 64 602 SQLITE_INDEX_CONSTRAINT_NE = 68 603 SQLITE_INDEX_CONSTRAINT_REGEXP = 67 604 SQLITE_INDEX_SCAN_UNIQUE = 1 605 SQLITE_INNOCUOUS = 0x000200000 606 SQLITE_INSERT = 18 607 SQLITE_INTEGER = 1 608 SQLITE_INTERNAL = 2 609 SQLITE_INTERRUPT = 9 610 SQLITE_IOCAP_ATOMIC = 0x00000001 611 SQLITE_IOCAP_ATOMIC16K = 0x00000040 612 SQLITE_IOCAP_ATOMIC1K = 0x00000004 613 SQLITE_IOCAP_ATOMIC2K = 0x00000008 614 SQLITE_IOCAP_ATOMIC32K = 0x00000080 615 SQLITE_IOCAP_ATOMIC4K = 0x00000010 616 SQLITE_IOCAP_ATOMIC512 = 0x00000002 617 SQLITE_IOCAP_ATOMIC64K = 0x00000100 618 SQLITE_IOCAP_ATOMIC8K = 0x00000020 619 SQLITE_IOCAP_BATCH_ATOMIC = 0x00004000 620 SQLITE_IOCAP_IMMUTABLE = 0x00002000 621 SQLITE_IOCAP_POWERSAFE_OVERWRITE = 0x00001000 622 SQLITE_IOCAP_SAFE_APPEND = 0x00000200 623 SQLITE_IOCAP_SEQUENTIAL = 0x00000400 624 SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN = 0x00000800 625 SQLITE_IOERR = 10 626 SQLITE_IOERR_ACCESS = 3338 627 SQLITE_IOERR_AUTH = 7178 628 SQLITE_IOERR_BEGIN_ATOMIC = 7434 629 SQLITE_IOERR_BLOCKED = 2826 630 SQLITE_IOERR_CHECKRESERVEDLOCK = 3594 631 SQLITE_IOERR_CLOSE = 4106 632 SQLITE_IOERR_COMMIT_ATOMIC = 7690 633 SQLITE_IOERR_CONVPATH = 6666 634 SQLITE_IOERR_CORRUPTFS = 8458 635 SQLITE_IOERR_DATA = 8202 636 SQLITE_IOERR_DELETE = 2570 637 SQLITE_IOERR_DELETE_NOENT = 5898 638 SQLITE_IOERR_DIR_CLOSE = 4362 639 SQLITE_IOERR_DIR_FSYNC = 1290 640 SQLITE_IOERR_FSTAT = 1802 641 SQLITE_IOERR_FSYNC = 1034 642 SQLITE_IOERR_GETTEMPPATH = 6410 643 SQLITE_IOERR_LOCK = 3850 644 SQLITE_IOERR_MMAP = 6154 645 SQLITE_IOERR_NOMEM = 3082 646 SQLITE_IOERR_RDLOCK = 2314 647 SQLITE_IOERR_READ = 266 648 SQLITE_IOERR_ROLLBACK_ATOMIC = 7946 649 SQLITE_IOERR_SEEK = 5642 650 SQLITE_IOERR_SHMLOCK = 5130 651 SQLITE_IOERR_SHMMAP = 5386 652 SQLITE_IOERR_SHMOPEN = 4618 653 SQLITE_IOERR_SHMSIZE = 4874 654 SQLITE_IOERR_SHORT_READ = 522 655 SQLITE_IOERR_TRUNCATE = 1546 656 SQLITE_IOERR_UNLOCK = 2058 657 SQLITE_IOERR_VNODE = 6922 658 SQLITE_IOERR_WRITE = 778 659 SQLITE_LAST_ERRNO = 4 660 SQLITE_LIKE_DOESNT_MATCH_BLOBS = 1 661 SQLITE_LIMIT_ATTACHED = 7 662 SQLITE_LIMIT_COLUMN = 2 663 SQLITE_LIMIT_COMPOUND_SELECT = 4 664 SQLITE_LIMIT_EXPR_DEPTH = 3 665 SQLITE_LIMIT_FUNCTION_ARG = 6 666 SQLITE_LIMIT_LENGTH = 0 667 SQLITE_LIMIT_LIKE_PATTERN_LENGTH = 8 668 SQLITE_LIMIT_SQL_LENGTH = 1 669 SQLITE_LIMIT_TRIGGER_DEPTH = 10 670 SQLITE_LIMIT_VARIABLE_NUMBER = 9 671 SQLITE_LIMIT_VDBE_OP = 5 672 SQLITE_LIMIT_WORKER_THREADS = 11 673 SQLITE_LOCKED = 6 674 SQLITE_LOCKED_SHAREDCACHE = 262 675 SQLITE_LOCKED_VTAB = 518 676 SQLITE_LOCK_EXCLUSIVE = 4 677 SQLITE_LOCK_NONE = 0 678 SQLITE_LOCK_PENDING = 3 679 SQLITE_LOCK_RESERVED = 2 680 SQLITE_LOCK_SHARED = 1 681 SQLITE_MISMATCH = 20 682 SQLITE_MISUSE = 21 683 SQLITE_MUTEX_APPDEF = 1 684 SQLITE_MUTEX_FAST = 0 685 SQLITE_MUTEX_NOOP = 1 686 SQLITE_MUTEX_RECURSIVE = 1 687 SQLITE_MUTEX_STATIC_APP1 = 8 688 SQLITE_MUTEX_STATIC_APP2 = 9 689 SQLITE_MUTEX_STATIC_APP3 = 10 690 SQLITE_MUTEX_STATIC_LRU = 6 691 SQLITE_MUTEX_STATIC_LRU2 = 7 692 SQLITE_MUTEX_STATIC_MAIN = 2 693 SQLITE_MUTEX_STATIC_MASTER = 2 694 SQLITE_MUTEX_STATIC_MEM = 3 695 SQLITE_MUTEX_STATIC_MEM2 = 4 696 SQLITE_MUTEX_STATIC_OPEN = 4 697 SQLITE_MUTEX_STATIC_PMEM = 7 698 SQLITE_MUTEX_STATIC_PRNG = 5 699 SQLITE_MUTEX_STATIC_VFS1 = 11 700 SQLITE_MUTEX_STATIC_VFS2 = 12 701 SQLITE_MUTEX_STATIC_VFS3 = 13 702 SQLITE_NOLFS = 22 703 SQLITE_NOMEM = 7 704 SQLITE_NOTADB = 26 705 SQLITE_NOTFOUND = 12 706 SQLITE_NOTICE = 27 707 SQLITE_NOTICE_RECOVER_ROLLBACK = 539 708 SQLITE_NOTICE_RECOVER_WAL = 283 709 SQLITE_NULL = 5 710 SQLITE_OK = 0 711 SQLITE_OK_LOAD_PERMANENTLY = 256 712 SQLITE_OK_SYMLINK = 512 713 SQLITE_OPEN_AUTOPROXY = 0x00000020 714 SQLITE_OPEN_CREATE = 0x00000004 715 SQLITE_OPEN_DELETEONCLOSE = 0x00000008 716 SQLITE_OPEN_EXCLUSIVE = 0x00000010 717 SQLITE_OPEN_FULLMUTEX = 0x00010000 718 SQLITE_OPEN_MAIN_DB = 0x00000100 719 SQLITE_OPEN_MAIN_JOURNAL = 0x00000800 720 SQLITE_OPEN_MASTER_JOURNAL = 0x00004000 721 SQLITE_OPEN_MEMORY = 0x00000080 722 SQLITE_OPEN_NOFOLLOW = 0x01000000 723 SQLITE_OPEN_NOMUTEX = 0x00008000 724 SQLITE_OPEN_PRIVATECACHE = 0x00040000 725 SQLITE_OPEN_READONLY = 0x00000001 726 SQLITE_OPEN_READWRITE = 0x00000002 727 SQLITE_OPEN_SHAREDCACHE = 0x00020000 728 SQLITE_OPEN_SUBJOURNAL = 0x00002000 729 SQLITE_OPEN_SUPER_JOURNAL = 0x00004000 730 SQLITE_OPEN_TEMP_DB = 0x00000200 731 SQLITE_OPEN_TEMP_JOURNAL = 0x00001000 732 SQLITE_OPEN_TRANSIENT_DB = 0x00000400 733 SQLITE_OPEN_URI = 0x00000040 734 SQLITE_OPEN_WAL = 0x00080000 735 SQLITE_OS_UNIX = 1 736 SQLITE_PERM = 3 737 SQLITE_PRAGMA = 19 738 SQLITE_PREPARE_NORMALIZE = 0x02 739 SQLITE_PREPARE_NO_VTAB = 0x04 740 SQLITE_PREPARE_PERSISTENT = 0x01 741 SQLITE_PROTOCOL = 15 742 SQLITE_RANGE = 25 743 SQLITE_READ = 20 744 SQLITE_READONLY = 8 745 SQLITE_READONLY_CANTINIT = 1288 746 SQLITE_READONLY_CANTLOCK = 520 747 SQLITE_READONLY_DBMOVED = 1032 748 SQLITE_READONLY_DIRECTORY = 1544 749 SQLITE_READONLY_RECOVERY = 264 750 SQLITE_READONLY_ROLLBACK = 776 751 SQLITE_RECURSIVE = 33 752 SQLITE_REINDEX = 27 753 SQLITE_REPLACE = 5 754 SQLITE_ROLLBACK = 1 755 SQLITE_ROW = 100 756 SQLITE_SAVEPOINT = 32 757 SQLITE_SCANSTAT_EST = 2 758 SQLITE_SCANSTAT_EXPLAIN = 4 759 SQLITE_SCANSTAT_NAME = 3 760 SQLITE_SCANSTAT_NLOOP = 0 761 SQLITE_SCANSTAT_NVISIT = 1 762 SQLITE_SCANSTAT_SELECTID = 5 763 SQLITE_SCHEMA = 17 764 SQLITE_SELECT = 21 765 SQLITE_SERIALIZE_NOCOPY = 0x001 766 SQLITE_SESSION_CONFIG_STRMSIZE = 1 767 SQLITE_SESSION_OBJCONFIG_SIZE = 1 768 SQLITE_SET_LOCKPROXYFILE = 3 769 SQLITE_SHM_EXCLUSIVE = 8 770 SQLITE_SHM_LOCK = 2 771 SQLITE_SHM_NLOCK = 8 772 SQLITE_SHM_SHARED = 4 773 SQLITE_SHM_UNLOCK = 1 774 SQLITE_SOUNDEX = 1 775 SQLITE_SOURCE_ID = "2021-06-18 18:36:39 5c9a6c06871cb9fe42814af9c039eb6da5427a6ec28f187af7ebfb62eafa66e5" 776 SQLITE_STATUS_MALLOC_COUNT = 9 777 SQLITE_STATUS_MALLOC_SIZE = 5 778 SQLITE_STATUS_MEMORY_USED = 0 779 SQLITE_STATUS_PAGECACHE_OVERFLOW = 2 780 SQLITE_STATUS_PAGECACHE_SIZE = 7 781 SQLITE_STATUS_PAGECACHE_USED = 1 782 SQLITE_STATUS_PARSER_STACK = 6 783 SQLITE_STATUS_SCRATCH_OVERFLOW = 4 784 SQLITE_STATUS_SCRATCH_SIZE = 8 785 SQLITE_STATUS_SCRATCH_USED = 3 786 SQLITE_STDCALL = 0 787 SQLITE_STMTSTATUS_AUTOINDEX = 3 788 SQLITE_STMTSTATUS_FULLSCAN_STEP = 1 789 SQLITE_STMTSTATUS_MEMUSED = 99 790 SQLITE_STMTSTATUS_REPREPARE = 5 791 SQLITE_STMTSTATUS_RUN = 6 792 SQLITE_STMTSTATUS_SORT = 2 793 SQLITE_STMTSTATUS_VM_STEP = 4 794 SQLITE_SUBTYPE = 0x000100000 795 SQLITE_SYNC_DATAONLY = 0x00010 796 SQLITE_SYNC_FULL = 0x00003 797 SQLITE_SYNC_NORMAL = 0x00002 798 SQLITE_SYSAPI = 0 799 SQLITE_TESTCTRL_ALWAYS = 13 800 SQLITE_TESTCTRL_ASSERT = 12 801 SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS = 10 802 SQLITE_TESTCTRL_BITVEC_TEST = 8 803 SQLITE_TESTCTRL_BYTEORDER = 22 804 SQLITE_TESTCTRL_EXPLAIN_STMT = 19 805 SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS = 29 806 SQLITE_TESTCTRL_FAULT_INSTALL = 9 807 SQLITE_TESTCTRL_FIRST = 5 808 SQLITE_TESTCTRL_IMPOSTER = 25 809 SQLITE_TESTCTRL_INTERNAL_FUNCTIONS = 17 810 SQLITE_TESTCTRL_ISINIT = 23 811 SQLITE_TESTCTRL_ISKEYWORD = 16 812 SQLITE_TESTCTRL_LAST = 32 813 SQLITE_TESTCTRL_LOCALTIME_FAULT = 18 814 SQLITE_TESTCTRL_NEVER_CORRUPT = 20 815 SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD = 19 816 SQLITE_TESTCTRL_OPTIMIZATIONS = 15 817 SQLITE_TESTCTRL_PARSER_COVERAGE = 26 818 SQLITE_TESTCTRL_PENDING_BYTE = 11 819 SQLITE_TESTCTRL_PRNG_RESET = 7 820 SQLITE_TESTCTRL_PRNG_RESTORE = 6 821 SQLITE_TESTCTRL_PRNG_SAVE = 5 822 SQLITE_TESTCTRL_PRNG_SEED = 28 823 SQLITE_TESTCTRL_RESERVE = 14 824 SQLITE_TESTCTRL_RESULT_INTREAL = 27 825 SQLITE_TESTCTRL_SCRATCHMALLOC = 17 826 SQLITE_TESTCTRL_SEEK_COUNT = 30 827 SQLITE_TESTCTRL_SORTER_MMAP = 24 828 SQLITE_TESTCTRL_TRACEFLAGS = 31 829 SQLITE_TESTCTRL_TUNE = 32 830 SQLITE_TESTCTRL_VDBE_COVERAGE = 21 831 SQLITE_TEXT = 3 832 SQLITE_THREADSAFE = 1 833 SQLITE_TOOBIG = 18 834 SQLITE_TRACE_CLOSE = 0x08 835 SQLITE_TRACE_PROFILE = 0x02 836 SQLITE_TRACE_ROW = 0x04 837 SQLITE_TRACE_STMT = 0x01 838 SQLITE_TRANSACTION = 22 839 SQLITE_TXN_NONE = 0 840 SQLITE_TXN_READ = 1 841 SQLITE_TXN_WRITE = 2 842 SQLITE_UPDATE = 23 843 SQLITE_UTF16 = 4 844 SQLITE_UTF16BE = 3 845 SQLITE_UTF16LE = 2 846 SQLITE_UTF16_ALIGNED = 8 847 SQLITE_UTF8 = 1 848 SQLITE_VERSION = "3.36.0" 849 SQLITE_VERSION_NUMBER = 3036000 850 SQLITE_VTAB_CONSTRAINT_SUPPORT = 1 851 SQLITE_VTAB_DIRECTONLY = 3 852 SQLITE_VTAB_INNOCUOUS = 2 853 SQLITE_WARNING = 28 854 SQLITE_WARNING_AUTOINDEX = 284 855 SQLITE_WIN32_DATA_DIRECTORY_TYPE = 1 856 SQLITE_WIN32_TEMP_DIRECTORY_TYPE = 2 857 SQLITE_WITHOUT_ZONEMALLOC = 1 858 SS_DISABLE = 0x0004 859 SS_ONSTACK = 0x0001 860 STDERR_FILENO = 2 861 STDIN_FILENO = 0 862 STDOUT_FILENO = 1 863 SV_INTERRUPT = 2 864 SV_NOCLDSTOP = 8 865 SV_NODEFER = 16 866 SV_ONSTACK = 1 867 SV_RESETHAND = 4 868 SV_SIGINFO = 64 869 SYNC_VOLUME_FULLSYNC = 0x01 870 SYNC_VOLUME_WAIT = 0x02 871 TMP_MAX = 308915776 872 TRAP_BRKPT = 1 873 TRAP_TRACE = 2 874 UINT16_MAX = 65535 875 UINT32_MAX = 4294967295 876 UINT64_MAX = 18446744073709551615 877 UINT8_MAX = 255 878 UINTMAX_MAX = 18446744073709551615 879 UINTPTR_MAX = 18446744073709551615 880 UINT_FAST16_MAX = 65535 881 UINT_FAST32_MAX = 4294967295 882 UINT_FAST64_MAX = 18446744073709551615 883 UINT_FAST8_MAX = 255 884 UINT_LEAST16_MAX = 65535 885 UINT_LEAST32_MAX = 4294967295 886 UINT_LEAST64_MAX = 18446744073709551615 887 UINT_LEAST8_MAX = 255 888 WAIT_ANY = -1 889 WAIT_MYPGRP = 0 890 WAKEMON_DISABLE = 0x02 891 WAKEMON_ENABLE = 0x01 892 WAKEMON_GET_PARAMS = 0x04 893 WAKEMON_MAKE_FATAL = 0x10 894 WAKEMON_SET_DEFAULTS = 0x08 895 WCHAR_MAX = 2147483647 896 WCHAR_MIN = -2147483648 897 WCONTINUED = 0x00000010 898 WCOREFLAG = 0200 899 WEXITED = 0x00000004 900 WINT_MAX = 2147483647 901 WINT_MIN = -2147483648 902 WNOHANG = 0x00000001 903 WNOWAIT = 0x00000020 904 WSTOPPED = 0x00000008 905 WUNTRACED = 0x00000002 906 W_OK = 2 907 X_OK = 1 908 X_ACCESS_EXTENDED_MASK = 4193792 909 X_ALLOCA_H_ = 0 910 X_ANSI_STDARG_H_ = 0 911 X_APPEND_OK = 8192 912 X_ASSERT_H_ = 0 913 X_BSD_I386__TYPES_H_ = 0 914 X_BSD_MACHINE_ENDIAN_H_ = 0 915 X_BSD_MACHINE_SIGNAL_H_ = 0 916 X_BSD_MACHINE_TYPES_H_ = 0 917 X_BSD_MACHINE__TYPES_H_ = 0 918 X_CACHED_RUNES = 256 919 X_CDEFS_H_ = 0 920 X_CHOWN_OK = 2097152 921 X_CRMASK = -256 922 X_CS_DARWIN_USER_CACHE_DIR = 65538 923 X_CS_DARWIN_USER_DIR = 65536 924 X_CS_DARWIN_USER_TEMP_DIR = 65537 925 X_CS_PATH = 1 926 X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 927 X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 928 X_CS_POSIX_V6_ILP32_OFF32_LIBS = 4 929 X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5 930 X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6 931 X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7 932 X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 8 933 X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9 934 X_CS_POSIX_V6_LP64_OFF64_LIBS = 10 935 X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11 936 X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12 937 X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13 938 X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14 939 X_CS_XBS5_ILP32_OFF32_CFLAGS = 20 940 X_CS_XBS5_ILP32_OFF32_LDFLAGS = 21 941 X_CS_XBS5_ILP32_OFF32_LIBS = 22 942 X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 23 943 X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 24 944 X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 25 945 X_CS_XBS5_ILP32_OFFBIG_LIBS = 26 946 X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 27 947 X_CS_XBS5_LP64_OFF64_CFLAGS = 28 948 X_CS_XBS5_LP64_OFF64_LDFLAGS = 29 949 X_CS_XBS5_LP64_OFF64_LIBS = 30 950 X_CS_XBS5_LP64_OFF64_LINTFLAGS = 31 951 X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 32 952 X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 33 953 X_CS_XBS5_LPBIG_OFFBIG_LIBS = 34 954 X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 35 955 X_CTERMID_H_ = 0 956 X_CTYPE_A = 0x00000100 957 X_CTYPE_B = 0x00020000 958 X_CTYPE_C = 0x00000200 959 X_CTYPE_D = 0x00000400 960 X_CTYPE_G = 0x00000800 961 X_CTYPE_H_ = 0 962 X_CTYPE_I = 0x00080000 963 X_CTYPE_L = 0x00001000 964 X_CTYPE_P = 0x00002000 965 X_CTYPE_Q = 0x00200000 966 X_CTYPE_R = 0x00040000 967 X_CTYPE_S = 0x00004000 968 X_CTYPE_SW0 = 0x20000000 969 X_CTYPE_SW1 = 0x40000000 970 X_CTYPE_SW2 = 0x80000000 971 X_CTYPE_SW3 = 0xc0000000 972 X_CTYPE_SWM = 0xe0000000 973 X_CTYPE_SWS = 30 974 X_CTYPE_T = 0x00100000 975 X_CTYPE_U = 0x00008000 976 X_CTYPE_X = 0x00010000 977 X_CT_RUNE_T = 0 978 X_DARWIN_FEATURE_64_BIT_INODE = 1 979 X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 980 X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 981 X_DELETE_OK = 4096 982 X_DEV_T = 0 983 X_ERRNO_T = 0 984 X_EXECUTE_OK = 2048 985 X_FD_SET = 0 986 X_FILE_OFFSET_BITS = 64 987 X_FORTIFY_SOURCE = 2 988 X_FSTDIO = 0 989 X_FTS5_H = 0 990 X_GCC_WRAP_STDINT_H = 0 991 X_GID_T = 0 992 X_I386_SIGNAL_H_ = 1 993 X_I386__ENDIAN_H_ = 0 994 X_ID_T = 0 995 X_INT16_T = 0 996 X_INT32_T = 0 997 X_INT64_T = 0 998 X_INT8_T = 0 999 X_INTMAX_T = 0 1000 X_INTPTR_T = 0 1001 X_IOFBF = 0 1002 X_IOLBF = 1 1003 X_IONBF = 2 1004 X_LP64 = 1 1005 X_MACHTYPES_H_ = 0 1006 X_MACH_I386__STRUCTS_H_ = 0 1007 X_MACH_MACHINE__STRUCTS_H_ = 0 1008 X_MALLOC_UNDERSCORE_MALLOC_H_ = 0 1009 X_MCONTEXT_T = 0 1010 X_MODE_T = 0 1011 X_Nonnull = 0 1012 X_Null_unspecified = 0 1013 X_Nullable = 0 1014 X_OFF_T = 0 1015 X_OS__OSBYTEORDERI386_H = 0 1016 X_OS__OSBYTEORDER_H = 0 1017 X_PC_2_SYMLINKS = 15 1018 X_PC_ALLOC_SIZE_MIN = 16 1019 X_PC_ASYNC_IO = 17 1020 X_PC_AUTH_OPAQUE_NP = 14 1021 X_PC_CASE_PRESERVING = 12 1022 X_PC_CASE_SENSITIVE = 11 1023 X_PC_CHOWN_RESTRICTED = 7 1024 X_PC_EXTENDED_SECURITY_NP = 13 1025 X_PC_FILESIZEBITS = 18 1026 X_PC_LINK_MAX = 1 1027 X_PC_MAX_CANON = 2 1028 X_PC_MAX_INPUT = 3 1029 X_PC_MIN_HOLE_SIZE = 27 1030 X_PC_NAME_CHARS_MAX = 10 1031 X_PC_NAME_MAX = 4 1032 X_PC_NO_TRUNC = 8 1033 X_PC_PATH_MAX = 5 1034 X_PC_PIPE_BUF = 6 1035 X_PC_PRIO_IO = 19 1036 X_PC_REC_INCR_XFER_SIZE = 20 1037 X_PC_REC_MAX_XFER_SIZE = 21 1038 X_PC_REC_MIN_XFER_SIZE = 22 1039 X_PC_REC_XFER_ALIGN = 23 1040 X_PC_SYMLINK_MAX = 24 1041 X_PC_SYNC_IO = 25 1042 X_PC_VDISABLE = 9 1043 X_PC_XATTR_SIZE_BITS = 26 1044 X_PID_T = 0 1045 X_POSIX2_CHAR_TERM = 200112 1046 X_POSIX2_C_BIND = 200112 1047 X_POSIX2_C_DEV = 200112 1048 X_POSIX2_FORT_DEV = -1 1049 X_POSIX2_FORT_RUN = 200112 1050 X_POSIX2_LOCALEDEF = 200112 1051 X_POSIX2_PBS = -1 1052 X_POSIX2_PBS_ACCOUNTING = -1 1053 X_POSIX2_PBS_CHECKPOINT = -1 1054 X_POSIX2_PBS_LOCATE = -1 1055 X_POSIX2_PBS_MESSAGE = -1 1056 X_POSIX2_PBS_TRACK = -1 1057 X_POSIX2_SW_DEV = 200112 1058 X_POSIX2_UPE = 200112 1059 X_POSIX2_VERSION = 200112 1060 X_POSIX_ADVISORY_INFO = -1 1061 X_POSIX_ASYNCHRONOUS_IO = -1 1062 X_POSIX_BARRIERS = -1 1063 X_POSIX_CHOWN_RESTRICTED = 200112 1064 X_POSIX_CLOCK_SELECTION = -1 1065 X_POSIX_CPUTIME = -1 1066 X_POSIX_FSYNC = 200112 1067 X_POSIX_IPV6 = 200112 1068 X_POSIX_JOB_CONTROL = 200112 1069 X_POSIX_MAPPED_FILES = 200112 1070 X_POSIX_MEMLOCK = -1 1071 X_POSIX_MEMLOCK_RANGE = -1 1072 X_POSIX_MEMORY_PROTECTION = 200112 1073 X_POSIX_MESSAGE_PASSING = -1 1074 X_POSIX_MONOTONIC_CLOCK = -1 1075 X_POSIX_NO_TRUNC = 200112 1076 X_POSIX_PRIORITIZED_IO = -1 1077 X_POSIX_PRIORITY_SCHEDULING = -1 1078 X_POSIX_RAW_SOCKETS = -1 1079 X_POSIX_READER_WRITER_LOCKS = 200112 1080 X_POSIX_REALTIME_SIGNALS = -1 1081 X_POSIX_REGEXP = 200112 1082 X_POSIX_SAVED_IDS = 200112 1083 X_POSIX_SEMAPHORES = -1 1084 X_POSIX_SHARED_MEMORY_OBJECTS = -1 1085 X_POSIX_SHELL = 200112 1086 X_POSIX_SPAWN = -1 1087 X_POSIX_SPIN_LOCKS = -1 1088 X_POSIX_SPORADIC_SERVER = -1 1089 X_POSIX_SYNCHRONIZED_IO = -1 1090 X_POSIX_THREADS = 200112 1091 X_POSIX_THREAD_ATTR_STACKADDR = 200112 1092 X_POSIX_THREAD_ATTR_STACKSIZE = 200112 1093 X_POSIX_THREAD_CPUTIME = -1 1094 X_POSIX_THREAD_KEYS_MAX = 128 1095 X_POSIX_THREAD_PRIORITY_SCHEDULING = -1 1096 X_POSIX_THREAD_PRIO_INHERIT = -1 1097 X_POSIX_THREAD_PRIO_PROTECT = -1 1098 X_POSIX_THREAD_PROCESS_SHARED = 200112 1099 X_POSIX_THREAD_SAFE_FUNCTIONS = 200112 1100 X_POSIX_THREAD_SPORADIC_SERVER = -1 1101 X_POSIX_TIMEOUTS = -1 1102 X_POSIX_TIMERS = -1 1103 X_POSIX_TRACE = -1 1104 X_POSIX_TRACE_EVENT_FILTER = -1 1105 X_POSIX_TRACE_INHERIT = -1 1106 X_POSIX_TRACE_LOG = -1 1107 X_POSIX_TYPED_MEMORY_OBJECTS = -1 1108 X_POSIX_V6_ILP32_OFF32 = -1 1109 X_POSIX_V6_ILP32_OFFBIG = -1 1110 X_POSIX_V6_LP64_OFF64 = 1 1111 X_POSIX_V6_LPBIG_OFFBIG = 1 1112 X_POSIX_V7_ILP32_OFF32 = -1 1113 X_POSIX_V7_ILP32_OFFBIG = -1 1114 X_POSIX_V7_LP64_OFF64 = 1 1115 X_POSIX_V7_LPBIG_OFFBIG = 1 1116 X_POSIX_VERSION = 200112 1117 X_PTHREAD_ATTR_T = 0 1118 X_QUAD_HIGHWORD = 1 1119 X_QUAD_LOWWORD = 0 1120 X_RATTR_OK = 32768 1121 X_READ_OK = 512 1122 X_REXT_OK = 131072 1123 X_RLIMIT_POSIX_FLAG = 0x1000 1124 X_RMFILE_OK = 16384 1125 X_RPERM_OK = 524288 1126 X_RSIZE_T = 0 1127 X_RUNETYPE_H_ = 0 1128 X_RUNE_MAGIC_A = "RuneMagA" 1129 X_RUNE_T = 0 1130 X_SC_2_CHAR_TERM = 20 1131 X_SC_2_C_BIND = 18 1132 X_SC_2_C_DEV = 19 1133 X_SC_2_FORT_DEV = 21 1134 X_SC_2_FORT_RUN = 22 1135 X_SC_2_LOCALEDEF = 23 1136 X_SC_2_PBS = 59 1137 X_SC_2_PBS_ACCOUNTING = 60 1138 X_SC_2_PBS_CHECKPOINT = 61 1139 X_SC_2_PBS_LOCATE = 62 1140 X_SC_2_PBS_MESSAGE = 63 1141 X_SC_2_PBS_TRACK = 64 1142 X_SC_2_SW_DEV = 24 1143 X_SC_2_UPE = 25 1144 X_SC_2_VERSION = 17 1145 X_SC_ADVISORY_INFO = 65 1146 X_SC_AIO_LISTIO_MAX = 42 1147 X_SC_AIO_MAX = 43 1148 X_SC_AIO_PRIO_DELTA_MAX = 44 1149 X_SC_ARG_MAX = 1 1150 X_SC_ASYNCHRONOUS_IO = 28 1151 X_SC_ATEXIT_MAX = 107 1152 X_SC_BARRIERS = 66 1153 X_SC_BC_BASE_MAX = 9 1154 X_SC_BC_DIM_MAX = 10 1155 X_SC_BC_SCALE_MAX = 11 1156 X_SC_BC_STRING_MAX = 12 1157 X_SC_CHILD_MAX = 2 1158 X_SC_CLK_TCK = 3 1159 X_SC_CLOCK_SELECTION = 67 1160 X_SC_COLL_WEIGHTS_MAX = 13 1161 X_SC_CPUTIME = 68 1162 X_SC_DELAYTIMER_MAX = 45 1163 X_SC_EXPR_NEST_MAX = 14 1164 X_SC_FILE_LOCKING = 69 1165 X_SC_FSYNC = 38 1166 X_SC_GETGR_R_SIZE_MAX = 70 1167 X_SC_GETPW_R_SIZE_MAX = 71 1168 X_SC_HOST_NAME_MAX = 72 1169 X_SC_IOV_MAX = 56 1170 X_SC_IPV6 = 118 1171 X_SC_JOB_CONTROL = 6 1172 X_SC_LINE_MAX = 15 1173 X_SC_LOGIN_NAME_MAX = 73 1174 X_SC_MAPPED_FILES = 47 1175 X_SC_MEMLOCK = 30 1176 X_SC_MEMLOCK_RANGE = 31 1177 X_SC_MEMORY_PROTECTION = 32 1178 X_SC_MESSAGE_PASSING = 33 1179 X_SC_MONOTONIC_CLOCK = 74 1180 X_SC_MQ_OPEN_MAX = 46 1181 X_SC_MQ_PRIO_MAX = 75 1182 X_SC_NGROUPS_MAX = 4 1183 X_SC_NPROCESSORS_CONF = 57 1184 X_SC_NPROCESSORS_ONLN = 58 1185 X_SC_OPEN_MAX = 5 1186 X_SC_PAGESIZE = 29 1187 X_SC_PAGE_SIZE = 29 1188 X_SC_PASS_MAX = 131 1189 X_SC_PHYS_PAGES = 200 1190 X_SC_PRIORITIZED_IO = 34 1191 X_SC_PRIORITY_SCHEDULING = 35 1192 X_SC_RAW_SOCKETS = 119 1193 X_SC_READER_WRITER_LOCKS = 76 1194 X_SC_REALTIME_SIGNALS = 36 1195 X_SC_REGEXP = 77 1196 X_SC_RE_DUP_MAX = 16 1197 X_SC_RTSIG_MAX = 48 1198 X_SC_SAVED_IDS = 7 1199 X_SC_SEMAPHORES = 37 1200 X_SC_SEM_NSEMS_MAX = 49 1201 X_SC_SEM_VALUE_MAX = 50 1202 X_SC_SHARED_MEMORY_OBJECTS = 39 1203 X_SC_SHELL = 78 1204 X_SC_SIGQUEUE_MAX = 51 1205 X_SC_SPAWN = 79 1206 X_SC_SPIN_LOCKS = 80 1207 X_SC_SPORADIC_SERVER = 81 1208 X_SC_SS_REPL_MAX = 126 1209 X_SC_STREAM_MAX = 26 1210 X_SC_SYMLOOP_MAX = 120 1211 X_SC_SYNCHRONIZED_IO = 40 1212 X_SC_THREADS = 96 1213 X_SC_THREAD_ATTR_STACKADDR = 82 1214 X_SC_THREAD_ATTR_STACKSIZE = 83 1215 X_SC_THREAD_CPUTIME = 84 1216 X_SC_THREAD_DESTRUCTOR_ITERATIONS = 85 1217 X_SC_THREAD_KEYS_MAX = 86 1218 X_SC_THREAD_PRIORITY_SCHEDULING = 89 1219 X_SC_THREAD_PRIO_INHERIT = 87 1220 X_SC_THREAD_PRIO_PROTECT = 88 1221 X_SC_THREAD_PROCESS_SHARED = 90 1222 X_SC_THREAD_SAFE_FUNCTIONS = 91 1223 X_SC_THREAD_SPORADIC_SERVER = 92 1224 X_SC_THREAD_STACK_MIN = 93 1225 X_SC_THREAD_THREADS_MAX = 94 1226 X_SC_TIMEOUTS = 95 1227 X_SC_TIMERS = 41 1228 X_SC_TIMER_MAX = 52 1229 X_SC_TRACE = 97 1230 X_SC_TRACE_EVENT_FILTER = 98 1231 X_SC_TRACE_EVENT_NAME_MAX = 127 1232 X_SC_TRACE_INHERIT = 99 1233 X_SC_TRACE_LOG = 100 1234 X_SC_TRACE_NAME_MAX = 128 1235 X_SC_TRACE_SYS_MAX = 129 1236 X_SC_TRACE_USER_EVENT_MAX = 130 1237 X_SC_TTY_NAME_MAX = 101 1238 X_SC_TYPED_MEMORY_OBJECTS = 102 1239 X_SC_TZNAME_MAX = 27 1240 X_SC_V6_ILP32_OFF32 = 103 1241 X_SC_V6_ILP32_OFFBIG = 104 1242 X_SC_V6_LP64_OFF64 = 105 1243 X_SC_V6_LPBIG_OFFBIG = 106 1244 X_SC_VERSION = 8 1245 X_SC_XBS5_ILP32_OFF32 = 122 1246 X_SC_XBS5_ILP32_OFFBIG = 123 1247 X_SC_XBS5_LP64_OFF64 = 124 1248 X_SC_XBS5_LPBIG_OFFBIG = 125 1249 X_SC_XOPEN_CRYPT = 108 1250 X_SC_XOPEN_ENH_I18N = 109 1251 X_SC_XOPEN_LEGACY = 110 1252 X_SC_XOPEN_REALTIME = 111 1253 X_SC_XOPEN_REALTIME_THREADS = 112 1254 X_SC_XOPEN_SHM = 113 1255 X_SC_XOPEN_STREAMS = 114 1256 X_SC_XOPEN_UNIX = 115 1257 X_SC_XOPEN_VERSION = 116 1258 X_SC_XOPEN_XCU_VERSION = 121 1259 X_SECURE__COMMON_H_ = 0 1260 X_SECURE__STDIO_H_ = 0 1261 X_SECURE__STRINGS_H_ = 0 1262 X_SECURE__STRING_H_ = 0 1263 X_SIGSET_T = 0 1264 X_SIZE_T = 0 1265 X_SQLITE3RTREE_H_ = 0 1266 X_SSIZE_T = 0 1267 X_STDARG_H = 0 1268 X_STDINT_H_ = 0 1269 X_STDIO_H_ = 0 1270 X_STDLIB_H_ = 0 1271 X_STRINGS_H_ = 0 1272 X_STRING_H_ = 0 1273 X_SUSECONDS_T = 0 1274 X_SYS_ERRNO_H_ = 0 1275 X_SYS_RESOURCE_H_ = 0 1276 X_SYS_SELECT_H_ = 0 1277 X_SYS_SIGNAL_H_ = 0 1278 X_SYS_STDIO_H_ = 0 1279 X_SYS_UNISTD_H_ = 0 1280 X_SYS_WAIT_H_ = 0 1281 X_SYS__ENDIAN_H_ = 0 1282 X_SYS__PTHREAD_TYPES_H_ = 0 1283 X_SYS__SELECT_H_ = 0 1284 X_SYS__TYPES_H_ = 0 1285 X_TIME_T = 0 1286 X_UID_T = 0 1287 X_UINT16_T = 0 1288 X_UINT32_T = 0 1289 X_UINT64_T = 0 1290 X_UINT8_T = 0 1291 X_UINTMAX_T = 0 1292 X_UINTPTR_T = 0 1293 X_UNISTD_H_ = 0 1294 X_USECONDS_T = 0 1295 X_USE_FORTIFY_LEVEL = 2 1296 X_UUID_T = 0 1297 X_U_INT16_T = 0 1298 X_U_INT32_T = 0 1299 X_U_INT64_T = 0 1300 X_U_INT8_T = 0 1301 X_V6_ILP32_OFF32 = -1 1302 X_V6_ILP32_OFFBIG = -1 1303 X_V6_LP64_OFF64 = 1 1304 X_V6_LPBIG_OFFBIG = 1 1305 X_VA_LIST = 0 1306 X_VA_LIST_ = 0 1307 X_VA_LIST_DEFINED = 0 1308 X_VA_LIST_T = 0 1309 X_VA_LIST_T_H = 0 1310 X_WATTR_OK = 65536 1311 X_WCHAR_T = 0 1312 X_WEXT_OK = 262144 1313 X_WINT_T = 0 1314 X_WPERM_OK = 1048576 1315 X_WRITE_OK = 1024 1316 X_WSTOPPED = 0177 1317 X_XBS5_ILP32_OFF32 = -1 1318 X_XBS5_ILP32_OFFBIG = -1 1319 X_XBS5_LP64_OFF64 = 1 1320 X_XBS5_LPBIG_OFFBIG = 1 1321 X_XOPEN_CRYPT = 1 1322 X_XOPEN_ENH_I18N = 1 1323 X_XOPEN_LEGACY = -1 1324 X_XOPEN_REALTIME = -1 1325 X_XOPEN_REALTIME_THREADS = -1 1326 X_XOPEN_SHM = 1 1327 X_XOPEN_STREAMS = -1 1328 X_XOPEN_UNIX = 1 1329 X_XOPEN_VERSION = 600 1330 X_XOPEN_XCU_VERSION = 4 1331 ) 1332 1333 // Error codes 1334 1335 // 11 was EAGAIN 1336 1337 // math software 1338 1339 // non-blocking and interrupt i/o 1340 1341 // ipc/network software -- argument errors 1342 1343 // ipc/network software -- operational errors 1344 1345 // should be rearranged 1346 1347 // quotas & mush 1348 1349 // Network File System 1350 1351 // Intelligent device errors 1352 1353 // Program loading errors 1354 1355 // This value is only discrete when compiling __DARWIN_UNIX03, or KERNEL 1356 1357 // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved. 1358 // 1359 // @APPLE_LICENSE_HEADER_START@ 1360 // 1361 // This file contains Original Code and/or Modifications of Original Code 1362 // as defined in and that are subject to the Apple Public Source License 1363 // Version 2.0 (the 'License'). You may not use this file except in 1364 // compliance with the License. Please obtain a copy of the License at 1365 // http://www.opensource.apple.com/apsl/ and read it before using this 1366 // file. 1367 // 1368 // The Original Code and all software distributed under the License are 1369 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1370 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1371 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1372 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1373 // Please see the License for the specific language governing rights and 1374 // limitations under the License. 1375 // 1376 // @APPLE_LICENSE_HEADER_END@ 1377 // - 1378 // Copyright (c) 1990, 1993 1379 // The Regents of the University of California. All rights reserved. 1380 // 1381 // Redistribution and use in source and binary forms, with or without 1382 // modification, are permitted provided that the following conditions 1383 // are met: 1384 // 1. Redistributions of source code must retain the above copyright 1385 // notice, this list of conditions and the following disclaimer. 1386 // 2. Redistributions in binary form must reproduce the above copyright 1387 // notice, this list of conditions and the following disclaimer in the 1388 // documentation and/or other materials provided with the distribution. 1389 // 3. All advertising materials mentioning features or use of this software 1390 // must display the following acknowledgement: 1391 // This product includes software developed by the University of 1392 // California, Berkeley and its contributors. 1393 // 4. Neither the name of the University nor the names of its contributors 1394 // may be used to endorse or promote products derived from this software 1395 // without specific prior written permission. 1396 // 1397 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1398 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1399 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1400 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1401 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1402 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1403 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1404 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1405 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1406 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1407 // SUCH DAMAGE. 1408 // 1409 // @(#)stdlib.h 8.5 (Berkeley) 5/19/95 1410 1411 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 1412 // 1413 // @APPLE_LICENSE_HEADER_START@ 1414 // 1415 // This file contains Original Code and/or Modifications of Original Code 1416 // as defined in and that are subject to the Apple Public Source License 1417 // Version 2.0 (the 'License'). You may not use this file except in 1418 // compliance with the License. Please obtain a copy of the License at 1419 // http://www.opensource.apple.com/apsl/ and read it before using this 1420 // file. 1421 // 1422 // The Original Code and all software distributed under the License are 1423 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1424 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1425 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1426 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1427 // Please see the License for the specific language governing rights and 1428 // limitations under the License. 1429 // 1430 // @APPLE_LICENSE_HEADER_END@ 1431 1432 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1433 // 1434 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1435 // 1436 // This file contains Original Code and/or Modifications of Original Code 1437 // as defined in and that are subject to the Apple Public Source License 1438 // Version 2.0 (the 'License'). You may not use this file except in 1439 // compliance with the License. The rights granted to you under the License 1440 // may not be used to create, or enable the creation or redistribution of, 1441 // unlawful or unlicensed copies of an Apple operating system, or to 1442 // circumvent, violate, or enable the circumvention or violation of, any 1443 // terms of an Apple operating system software license agreement. 1444 // 1445 // Please obtain a copy of the License at 1446 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1447 // 1448 // The Original Code and all software distributed under the License are 1449 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1450 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1451 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1452 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1453 // Please see the License for the specific language governing rights and 1454 // limitations under the License. 1455 // 1456 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1457 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1458 // Copyright (c) 1991, 1993 1459 // The Regents of the University of California. All rights reserved. 1460 // 1461 // This code is derived from software contributed to Berkeley by 1462 // Berkeley Software Design, Inc. 1463 // 1464 // Redistribution and use in source and binary forms, with or without 1465 // modification, are permitted provided that the following conditions 1466 // are met: 1467 // 1. Redistributions of source code must retain the above copyright 1468 // notice, this list of conditions and the following disclaimer. 1469 // 2. Redistributions in binary form must reproduce the above copyright 1470 // notice, this list of conditions and the following disclaimer in the 1471 // documentation and/or other materials provided with the distribution. 1472 // 3. All advertising materials mentioning features or use of this software 1473 // must display the following acknowledgement: 1474 // This product includes software developed by the University of 1475 // California, Berkeley and its contributors. 1476 // 4. Neither the name of the University nor the names of its contributors 1477 // may be used to endorse or promote products derived from this software 1478 // without specific prior written permission. 1479 // 1480 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1481 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1482 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1483 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1484 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1485 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1486 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1487 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1488 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1489 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1490 // SUCH DAMAGE. 1491 // 1492 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1493 1494 // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved. 1495 // 1496 // @APPLE_LICENSE_HEADER_START@ 1497 // 1498 // This file contains Original Code and/or Modifications of Original Code 1499 // as defined in and that are subject to the Apple Public Source License 1500 // Version 2.0 (the 'License'). You may not use this file except in 1501 // compliance with the License. Please obtain a copy of the License at 1502 // http://www.opensource.apple.com/apsl/ and read it before using this 1503 // file. 1504 // 1505 // The Original Code and all software distributed under the License are 1506 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1507 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1508 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1509 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1510 // Please see the License for the specific language governing rights and 1511 // limitations under the License. 1512 // 1513 // @APPLE_LICENSE_HEADER_END@ 1514 1515 // Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 1516 // 1517 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1518 // 1519 // This file contains Original Code and/or Modifications of Original Code 1520 // as defined in and that are subject to the Apple Public Source License 1521 // Version 2.0 (the 'License'). You may not use this file except in 1522 // compliance with the License. The rights granted to you under the License 1523 // may not be used to create, or enable the creation or redistribution of, 1524 // unlawful or unlicensed copies of an Apple operating system, or to 1525 // circumvent, violate, or enable the circumvention or violation of, any 1526 // terms of an Apple operating system software license agreement. 1527 // 1528 // Please obtain a copy of the License at 1529 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1530 // 1531 // The Original Code and all software distributed under the License are 1532 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1533 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1534 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1535 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1536 // Please see the License for the specific language governing rights and 1537 // limitations under the License. 1538 // 1539 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1540 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 1541 // Copyright (c) 1982, 1986, 1989, 1993, 1994 1542 // The Regents of the University of California. All rights reserved. 1543 // 1544 // Redistribution and use in source and binary forms, with or without 1545 // modification, are permitted provided that the following conditions 1546 // are met: 1547 // 1. Redistributions of source code must retain the above copyright 1548 // notice, this list of conditions and the following disclaimer. 1549 // 2. Redistributions in binary form must reproduce the above copyright 1550 // notice, this list of conditions and the following disclaimer in the 1551 // documentation and/or other materials provided with the distribution. 1552 // 3. All advertising materials mentioning features or use of this software 1553 // must display the following acknowledgement: 1554 // This product includes software developed by the University of 1555 // California, Berkeley and its contributors. 1556 // 4. Neither the name of the University nor the names of its contributors 1557 // may be used to endorse or promote products derived from this software 1558 // without specific prior written permission. 1559 // 1560 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1561 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1562 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1563 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1564 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1565 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1566 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1567 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1568 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1569 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1570 // SUCH DAMAGE. 1571 // 1572 // @(#)wait.h 8.2 (Berkeley) 7/10/94 1573 1574 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 1575 // 1576 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1577 // 1578 // This file contains Original Code and/or Modifications of Original Code 1579 // as defined in and that are subject to the Apple Public Source License 1580 // Version 2.0 (the 'License'). You may not use this file except in 1581 // compliance with the License. The rights granted to you under the License 1582 // may not be used to create, or enable the creation or redistribution of, 1583 // unlawful or unlicensed copies of an Apple operating system, or to 1584 // circumvent, violate, or enable the circumvention or violation of, any 1585 // terms of an Apple operating system software license agreement. 1586 // 1587 // Please obtain a copy of the License at 1588 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1589 // 1590 // The Original Code and all software distributed under the License are 1591 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1592 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1593 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1594 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1595 // Please see the License for the specific language governing rights and 1596 // limitations under the License. 1597 // 1598 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1599 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 1600 // Copyright (c) 1991, 1993 1601 // The Regents of the University of California. All rights reserved. 1602 // 1603 // This code is derived from software contributed to Berkeley by 1604 // Berkeley Software Design, Inc. 1605 // 1606 // Redistribution and use in source and binary forms, with or without 1607 // modification, are permitted provided that the following conditions 1608 // are met: 1609 // 1. Redistributions of source code must retain the above copyright 1610 // notice, this list of conditions and the following disclaimer. 1611 // 2. Redistributions in binary form must reproduce the above copyright 1612 // notice, this list of conditions and the following disclaimer in the 1613 // documentation and/or other materials provided with the distribution. 1614 // 3. All advertising materials mentioning features or use of this software 1615 // must display the following acknowledgement: 1616 // This product includes software developed by the University of 1617 // California, Berkeley and its contributors. 1618 // 4. Neither the name of the University nor the names of its contributors 1619 // may be used to endorse or promote products derived from this software 1620 // without specific prior written permission. 1621 // 1622 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1623 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1624 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1625 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1626 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1627 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1628 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1629 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1630 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1631 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1632 // SUCH DAMAGE. 1633 // 1634 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1635 1636 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 1637 // 1638 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 1639 // 1640 // This file contains Original Code and/or Modifications of Original Code 1641 // as defined in and that are subject to the Apple Public Source License 1642 // Version 2.0 (the 'License'). You may not use this file except in 1643 // compliance with the License. The rights granted to you under the License 1644 // may not be used to create, or enable the creation or redistribution of, 1645 // unlawful or unlicensed copies of an Apple operating system, or to 1646 // circumvent, violate, or enable the circumvention or violation of, any 1647 // terms of an Apple operating system software license agreement. 1648 // 1649 // Please obtain a copy of the License at 1650 // http://www.opensource.apple.com/apsl/ and read it before using this file. 1651 // 1652 // The Original Code and all software distributed under the License are 1653 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 1654 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 1655 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 1656 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 1657 // Please see the License for the specific language governing rights and 1658 // limitations under the License. 1659 // 1660 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 1661 1662 // This file holds definitions relevent to the wait4 system call 1663 // and the alternate interfaces that use it (wait, wait3, waitpid). 1664 1665 // [XSI] The type idtype_t shall be defined as an enumeration type whose 1666 // possible values shall include at least P_ALL, P_PID, and P_PGID. 1667 const ( /* wait.h:79:1: */ 1668 P_ALL = 0 1669 P_PID = 1 1670 P_PGID = 2 1671 ) 1672 1673 type ptrdiff_t = int64 /* <builtin>:3:26 */ 1674 1675 type size_t = uint64 /* <builtin>:9:23 */ 1676 1677 type wchar_t = int32 /* <builtin>:15:24 */ 1678 1679 // Define the standard macros for the user, 1680 // if this invocation was from the user program. 1681 1682 // Define va_list, if desired, from __gnuc_va_list. 1683 // We deliberately do not define va_list when called from 1684 // stdio.h, because ANSI C says that stdio.h is not supposed to define 1685 // va_list. stdio.h needs to have access to that data type, 1686 // but must not use that name. It should use the name __gnuc_va_list, 1687 // which is safe because it is reserved for the implementation. 1688 1689 // The macro _VA_LIST_ is the same thing used by this file in Ultrix. 1690 // But on BSD NET2 we must not test or define or undef it. 1691 // (Note that the comments in NET 2's ansi.h 1692 // are incorrect for _VA_LIST_--see stdio.h!) 1693 // The macro _VA_LIST_DEFINED is used in Windows NT 3.5 1694 // The macro _VA_LIST is used in SCO Unix 3.2. 1695 // The macro _VA_LIST_T_H is used in the Bull dpx2 1696 // The macro __va_list__ is used by BeOS. 1697 type va_list = uintptr /* stdarg.h:99:24 */ 1698 1699 // CAPI3REF: 64-Bit Integer Types 1700 // KEYWORDS: sqlite_int64 sqlite_uint64 1701 // 1702 // Because there is no cross-platform way to specify 64-bit integer types 1703 // SQLite includes typedefs for 64-bit signed and unsigned integers. 1704 // 1705 // The sqlite3_int64 and sqlite3_uint64 are the preferred type definitions. 1706 // The sqlite_int64 and sqlite_uint64 types are supported for backwards 1707 // compatibility only. 1708 // 1709 // ^The sqlite3_int64 and sqlite_int64 types can store integer values 1710 // between -9223372036854775808 and +9223372036854775807 inclusive. ^The 1711 // sqlite3_uint64 and sqlite_uint64 types can store integer values 1712 // between 0 and +18446744073709551615 inclusive. 1713 type sqlite_int64 = int64 /* sqlite3.h:278:25 */ 1714 type sqlite_uint64 = uint64 /* sqlite3.h:279:34 */ 1715 type sqlite3_int64 = sqlite_int64 /* sqlite3.h:281:22 */ 1716 type sqlite3_uint64 = sqlite_uint64 /* sqlite3.h:282:23 */ 1717 1718 // The type for a callback function. 1719 // This is legacy and deprecated. It is included for historical 1720 // compatibility and is not documented. 1721 type sqlite3_callback = uintptr /* sqlite3.h:338:13 */ 1722 1723 // CAPI3REF: Result Codes 1724 // KEYWORDS: {result code definitions} 1725 // 1726 // Many SQLite functions return an integer result code from the set shown 1727 // here in order to indicate success or failure. 1728 // 1729 // New error codes may be added in future versions of SQLite. 1730 // 1731 // See also: [extended result code definitions] 1732 // beginning-of-error-codes 1733 // end-of-error-codes 1734 1735 // CAPI3REF: Extended Result Codes 1736 // KEYWORDS: {extended result code definitions} 1737 // 1738 // In its default configuration, SQLite API routines return one of 30 integer 1739 // [result codes]. However, experience has shown that many of 1740 // these result codes are too coarse-grained. They do not provide as 1741 // much information about problems as programmers might like. In an effort to 1742 // address this, newer versions of SQLite (version 3.3.8 [dateof:3.3.8] 1743 // and later) include 1744 // support for additional result codes that provide more detailed information 1745 // about errors. These [extended result codes] are enabled or disabled 1746 // on a per database connection basis using the 1747 // [sqlite3_extended_result_codes()] API. Or, the extended code for 1748 // the most recent error can be obtained using 1749 // [sqlite3_extended_errcode()]. 1750 1751 // CAPI3REF: Flags For File Open Operations 1752 // 1753 // These bit values are intended for use in the 1754 // 3rd parameter to the [sqlite3_open_v2()] interface and 1755 // in the 4th parameter to the [sqlite3_vfs.xOpen] method. 1756 1757 // Reserved: 0x00F00000 1758 // Legacy compatibility: 1759 1760 // CAPI3REF: Device Characteristics 1761 // 1762 // The xDeviceCharacteristics method of the [sqlite3_io_methods] 1763 // object returns an integer which is a vector of these 1764 // bit values expressing I/O characteristics of the mass storage 1765 // device that holds the file that the [sqlite3_io_methods] 1766 // refers to. 1767 // 1768 // The SQLITE_IOCAP_ATOMIC property means that all writes of 1769 // any size are atomic. The SQLITE_IOCAP_ATOMICnnn values 1770 // mean that writes of blocks that are nnn bytes in size and 1771 // are aligned to an address which is an integer multiple of 1772 // nnn are atomic. The SQLITE_IOCAP_SAFE_APPEND value means 1773 // that when data is appended to a file, the data is appended 1774 // first then the size of the file is extended, never the other 1775 // way around. The SQLITE_IOCAP_SEQUENTIAL property means that 1776 // information is written to disk in the same order as calls 1777 // to xWrite(). The SQLITE_IOCAP_POWERSAFE_OVERWRITE property means that 1778 // after reboot following a crash or power loss, the only bytes in a 1779 // file that were written at the application level might have changed 1780 // and that adjacent bytes, even bytes within the same sector are 1781 // guaranteed to be unchanged. The SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN 1782 // flag indicates that a file cannot be deleted when open. The 1783 // SQLITE_IOCAP_IMMUTABLE flag indicates that the file is on 1784 // read-only media and cannot be changed even by processes with 1785 // elevated privileges. 1786 // 1787 // The SQLITE_IOCAP_BATCH_ATOMIC property means that the underlying 1788 // filesystem supports doing multiple write operations atomically when those 1789 // write operations are bracketed by [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] and 1790 // [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE]. 1791 1792 // CAPI3REF: File Locking Levels 1793 // 1794 // SQLite uses one of these integer values as the second 1795 // argument to calls it makes to the xLock() and xUnlock() methods 1796 // of an [sqlite3_io_methods] object. 1797 1798 // CAPI3REF: Synchronization Type Flags 1799 // 1800 // When SQLite invokes the xSync() method of an 1801 // [sqlite3_io_methods] object it uses a combination of 1802 // these integer values as the second argument. 1803 // 1804 // When the SQLITE_SYNC_DATAONLY flag is used, it means that the 1805 // sync operation only needs to flush data to mass storage. Inode 1806 // information need not be flushed. If the lower four bits of the flag 1807 // equal SQLITE_SYNC_NORMAL, that means to use normal fsync() semantics. 1808 // If the lower four bits equal SQLITE_SYNC_FULL, that means 1809 // to use Mac OS X style fullsync instead of fsync(). 1810 // 1811 // Do not confuse the SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags 1812 // with the [PRAGMA synchronous]=NORMAL and [PRAGMA synchronous]=FULL 1813 // settings. The [synchronous pragma] determines when calls to the 1814 // xSync VFS method occur and applies uniformly across all platforms. 1815 // The SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags determine how 1816 // energetic or rigorous or forceful the sync operations are and 1817 // only make a difference on Mac OSX for the default SQLite code. 1818 // (Third-party VFS implementations might also make the distinction 1819 // between SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL, but among the 1820 // operating systems natively supported by SQLite, only Mac OSX 1821 // cares about the difference.) 1822 1823 // CAPI3REF: OS Interface Open File Handle 1824 // 1825 // An [sqlite3_file] object represents an open file in the 1826 // [sqlite3_vfs | OS interface layer]. Individual OS interface 1827 // implementations will 1828 // want to subclass this object by appending additional fields 1829 // for their own use. The pMethods entry is a pointer to an 1830 // [sqlite3_io_methods] object that defines methods for performing 1831 // I/O operations on the open file. 1832 type sqlite3_file1 = struct{ pMethods uintptr } /* sqlite3.h:684:9 */ 1833 1834 // CAPI3REF: Result Codes 1835 // KEYWORDS: {result code definitions} 1836 // 1837 // Many SQLite functions return an integer result code from the set shown 1838 // here in order to indicate success or failure. 1839 // 1840 // New error codes may be added in future versions of SQLite. 1841 // 1842 // See also: [extended result code definitions] 1843 // beginning-of-error-codes 1844 // end-of-error-codes 1845 1846 // CAPI3REF: Extended Result Codes 1847 // KEYWORDS: {extended result code definitions} 1848 // 1849 // In its default configuration, SQLite API routines return one of 30 integer 1850 // [result codes]. However, experience has shown that many of 1851 // these result codes are too coarse-grained. They do not provide as 1852 // much information about problems as programmers might like. In an effort to 1853 // address this, newer versions of SQLite (version 3.3.8 [dateof:3.3.8] 1854 // and later) include 1855 // support for additional result codes that provide more detailed information 1856 // about errors. These [extended result codes] are enabled or disabled 1857 // on a per database connection basis using the 1858 // [sqlite3_extended_result_codes()] API. Or, the extended code for 1859 // the most recent error can be obtained using 1860 // [sqlite3_extended_errcode()]. 1861 1862 // CAPI3REF: Flags For File Open Operations 1863 // 1864 // These bit values are intended for use in the 1865 // 3rd parameter to the [sqlite3_open_v2()] interface and 1866 // in the 4th parameter to the [sqlite3_vfs.xOpen] method. 1867 1868 // Reserved: 0x00F00000 1869 // Legacy compatibility: 1870 1871 // CAPI3REF: Device Characteristics 1872 // 1873 // The xDeviceCharacteristics method of the [sqlite3_io_methods] 1874 // object returns an integer which is a vector of these 1875 // bit values expressing I/O characteristics of the mass storage 1876 // device that holds the file that the [sqlite3_io_methods] 1877 // refers to. 1878 // 1879 // The SQLITE_IOCAP_ATOMIC property means that all writes of 1880 // any size are atomic. The SQLITE_IOCAP_ATOMICnnn values 1881 // mean that writes of blocks that are nnn bytes in size and 1882 // are aligned to an address which is an integer multiple of 1883 // nnn are atomic. The SQLITE_IOCAP_SAFE_APPEND value means 1884 // that when data is appended to a file, the data is appended 1885 // first then the size of the file is extended, never the other 1886 // way around. The SQLITE_IOCAP_SEQUENTIAL property means that 1887 // information is written to disk in the same order as calls 1888 // to xWrite(). The SQLITE_IOCAP_POWERSAFE_OVERWRITE property means that 1889 // after reboot following a crash or power loss, the only bytes in a 1890 // file that were written at the application level might have changed 1891 // and that adjacent bytes, even bytes within the same sector are 1892 // guaranteed to be unchanged. The SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN 1893 // flag indicates that a file cannot be deleted when open. The 1894 // SQLITE_IOCAP_IMMUTABLE flag indicates that the file is on 1895 // read-only media and cannot be changed even by processes with 1896 // elevated privileges. 1897 // 1898 // The SQLITE_IOCAP_BATCH_ATOMIC property means that the underlying 1899 // filesystem supports doing multiple write operations atomically when those 1900 // write operations are bracketed by [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] and 1901 // [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE]. 1902 1903 // CAPI3REF: File Locking Levels 1904 // 1905 // SQLite uses one of these integer values as the second 1906 // argument to calls it makes to the xLock() and xUnlock() methods 1907 // of an [sqlite3_io_methods] object. 1908 1909 // CAPI3REF: Synchronization Type Flags 1910 // 1911 // When SQLite invokes the xSync() method of an 1912 // [sqlite3_io_methods] object it uses a combination of 1913 // these integer values as the second argument. 1914 // 1915 // When the SQLITE_SYNC_DATAONLY flag is used, it means that the 1916 // sync operation only needs to flush data to mass storage. Inode 1917 // information need not be flushed. If the lower four bits of the flag 1918 // equal SQLITE_SYNC_NORMAL, that means to use normal fsync() semantics. 1919 // If the lower four bits equal SQLITE_SYNC_FULL, that means 1920 // to use Mac OS X style fullsync instead of fsync(). 1921 // 1922 // Do not confuse the SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags 1923 // with the [PRAGMA synchronous]=NORMAL and [PRAGMA synchronous]=FULL 1924 // settings. The [synchronous pragma] determines when calls to the 1925 // xSync VFS method occur and applies uniformly across all platforms. 1926 // The SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags determine how 1927 // energetic or rigorous or forceful the sync operations are and 1928 // only make a difference on Mac OSX for the default SQLite code. 1929 // (Third-party VFS implementations might also make the distinction 1930 // between SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL, but among the 1931 // operating systems natively supported by SQLite, only Mac OSX 1932 // cares about the difference.) 1933 1934 // CAPI3REF: OS Interface Open File Handle 1935 // 1936 // An [sqlite3_file] object represents an open file in the 1937 // [sqlite3_vfs | OS interface layer]. Individual OS interface 1938 // implementations will 1939 // want to subclass this object by appending additional fields 1940 // for their own use. The pMethods entry is a pointer to an 1941 // [sqlite3_io_methods] object that defines methods for performing 1942 // I/O operations on the open file. 1943 type sqlite3_file = sqlite3_file1 /* sqlite3.h:684:29 */ 1944 type sqlite3_io_methods1 = struct { 1945 iVersion int32 1946 _ [4]byte 1947 xClose uintptr 1948 xRead uintptr 1949 xWrite uintptr 1950 xTruncate uintptr 1951 xSync uintptr 1952 xFileSize uintptr 1953 xLock uintptr 1954 xUnlock uintptr 1955 xCheckReservedLock uintptr 1956 xFileControl uintptr 1957 xSectorSize uintptr 1958 xDeviceCharacteristics uintptr 1959 xShmMap uintptr 1960 xShmLock uintptr 1961 xShmBarrier uintptr 1962 xShmUnmap uintptr 1963 xFetch uintptr 1964 xUnfetch uintptr 1965 } /* sqlite3.h:684:9 */ 1966 1967 // CAPI3REF: OS Interface File Virtual Methods Object 1968 // 1969 // Every file opened by the [sqlite3_vfs.xOpen] method populates an 1970 // [sqlite3_file] object (or, more commonly, a subclass of the 1971 // [sqlite3_file] object) with a pointer to an instance of this object. 1972 // This object defines the methods used to perform various operations 1973 // against the open file represented by the [sqlite3_file] object. 1974 // 1975 // If the [sqlite3_vfs.xOpen] method sets the sqlite3_file.pMethods element 1976 // to a non-NULL pointer, then the sqlite3_io_methods.xClose method 1977 // may be invoked even if the [sqlite3_vfs.xOpen] reported that it failed. The 1978 // only way to prevent a call to xClose following a failed [sqlite3_vfs.xOpen] 1979 // is for the [sqlite3_vfs.xOpen] to set the sqlite3_file.pMethods element 1980 // to NULL. 1981 // 1982 // The flags argument to xSync may be one of [SQLITE_SYNC_NORMAL] or 1983 // [SQLITE_SYNC_FULL]. The first choice is the normal fsync(). 1984 // The second choice is a Mac OS X style fullsync. The [SQLITE_SYNC_DATAONLY] 1985 // flag may be ORed in to indicate that only the data of the file 1986 // and not its inode needs to be synced. 1987 // 1988 // The integer values to xLock() and xUnlock() are one of 1989 // <ul> 1990 // <li> [SQLITE_LOCK_NONE], 1991 // <li> [SQLITE_LOCK_SHARED], 1992 // <li> [SQLITE_LOCK_RESERVED], 1993 // <li> [SQLITE_LOCK_PENDING], or 1994 // <li> [SQLITE_LOCK_EXCLUSIVE]. 1995 // </ul> 1996 // xLock() increases the lock. xUnlock() decreases the lock. 1997 // The xCheckReservedLock() method checks whether any database connection, 1998 // either in this process or in some other process, is holding a RESERVED, 1999 // PENDING, or EXCLUSIVE lock on the file. It returns true 2000 // if such a lock exists and false otherwise. 2001 // 2002 // The xFileControl() method is a generic interface that allows custom 2003 // VFS implementations to directly control an open file using the 2004 // [sqlite3_file_control()] interface. The second "op" argument is an 2005 // integer opcode. The third argument is a generic pointer intended to 2006 // point to a structure that may contain arguments or space in which to 2007 // write return values. Potential uses for xFileControl() might be 2008 // functions to enable blocking locks with timeouts, to change the 2009 // locking strategy (for example to use dot-file locks), to inquire 2010 // about the status of a lock, or to break stale locks. The SQLite 2011 // core reserves all opcodes less than 100 for its own use. 2012 // A [file control opcodes | list of opcodes] less than 100 is available. 2013 // Applications that define a custom xFileControl method should use opcodes 2014 // greater than 100 to avoid conflicts. VFS implementations should 2015 // return [SQLITE_NOTFOUND] for file control opcodes that they do not 2016 // recognize. 2017 // 2018 // The xSectorSize() method returns the sector size of the 2019 // device that underlies the file. The sector size is the 2020 // minimum write that can be performed without disturbing 2021 // other bytes in the file. The xDeviceCharacteristics() 2022 // method returns a bit vector describing behaviors of the 2023 // underlying device: 2024 // 2025 // <ul> 2026 // <li> [SQLITE_IOCAP_ATOMIC] 2027 // <li> [SQLITE_IOCAP_ATOMIC512] 2028 // <li> [SQLITE_IOCAP_ATOMIC1K] 2029 // <li> [SQLITE_IOCAP_ATOMIC2K] 2030 // <li> [SQLITE_IOCAP_ATOMIC4K] 2031 // <li> [SQLITE_IOCAP_ATOMIC8K] 2032 // <li> [SQLITE_IOCAP_ATOMIC16K] 2033 // <li> [SQLITE_IOCAP_ATOMIC32K] 2034 // <li> [SQLITE_IOCAP_ATOMIC64K] 2035 // <li> [SQLITE_IOCAP_SAFE_APPEND] 2036 // <li> [SQLITE_IOCAP_SEQUENTIAL] 2037 // <li> [SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN] 2038 // <li> [SQLITE_IOCAP_POWERSAFE_OVERWRITE] 2039 // <li> [SQLITE_IOCAP_IMMUTABLE] 2040 // <li> [SQLITE_IOCAP_BATCH_ATOMIC] 2041 // </ul> 2042 // 2043 // The SQLITE_IOCAP_ATOMIC property means that all writes of 2044 // any size are atomic. The SQLITE_IOCAP_ATOMICnnn values 2045 // mean that writes of blocks that are nnn bytes in size and 2046 // are aligned to an address which is an integer multiple of 2047 // nnn are atomic. The SQLITE_IOCAP_SAFE_APPEND value means 2048 // that when data is appended to a file, the data is appended 2049 // first then the size of the file is extended, never the other 2050 // way around. The SQLITE_IOCAP_SEQUENTIAL property means that 2051 // information is written to disk in the same order as calls 2052 // to xWrite(). 2053 // 2054 // If xRead() returns SQLITE_IOERR_SHORT_READ it must also fill 2055 // in the unread portions of the buffer with zeros. A VFS that 2056 // fails to zero-fill short reads might seem to work. However, 2057 // failure to zero-fill short reads will eventually lead to 2058 // database corruption. 2059 type sqlite3_io_methods = sqlite3_io_methods1 /* sqlite3.h:783:35 */ 2060 2061 // CAPI3REF: OS Interface Object 2062 // 2063 // An instance of the sqlite3_vfs object defines the interface between 2064 // the SQLite core and the underlying operating system. The "vfs" 2065 // in the name of the object stands for "virtual file system". See 2066 // the [VFS | VFS documentation] for further information. 2067 // 2068 // The VFS interface is sometimes extended by adding new methods onto 2069 // the end. Each time such an extension occurs, the iVersion field 2070 // is incremented. The iVersion value started out as 1 in 2071 // SQLite [version 3.5.0] on [dateof:3.5.0], then increased to 2 2072 // with SQLite [version 3.7.0] on [dateof:3.7.0], and then increased 2073 // to 3 with SQLite [version 3.7.6] on [dateof:3.7.6]. Additional fields 2074 // may be appended to the sqlite3_vfs object and the iVersion value 2075 // may increase again in future versions of SQLite. 2076 // Note that due to an oversight, the structure 2077 // of the sqlite3_vfs object changed in the transition from 2078 // SQLite [version 3.5.9] to [version 3.6.0] on [dateof:3.6.0] 2079 // and yet the iVersion field was not increased. 2080 // 2081 // The szOsFile field is the size of the subclassed [sqlite3_file] 2082 // structure used by this VFS. mxPathname is the maximum length of 2083 // a pathname in this VFS. 2084 // 2085 // Registered sqlite3_vfs objects are kept on a linked list formed by 2086 // the pNext pointer. The [sqlite3_vfs_register()] 2087 // and [sqlite3_vfs_unregister()] interfaces manage this list 2088 // in a thread-safe way. The [sqlite3_vfs_find()] interface 2089 // searches the list. Neither the application code nor the VFS 2090 // implementation should use the pNext pointer. 2091 // 2092 // The pNext field is the only field in the sqlite3_vfs 2093 // structure that SQLite will ever modify. SQLite will only access 2094 // or modify this field while holding a particular static mutex. 2095 // The application should never modify anything within the sqlite3_vfs 2096 // object once the object has been registered. 2097 // 2098 // The zName field holds the name of the VFS module. The name must 2099 // be unique across all VFS modules. 2100 // 2101 // [[sqlite3_vfs.xOpen]] 2102 // ^SQLite guarantees that the zFilename parameter to xOpen 2103 // is either a NULL pointer or string obtained 2104 // from xFullPathname() with an optional suffix added. 2105 // ^If a suffix is added to the zFilename parameter, it will 2106 // consist of a single "-" character followed by no more than 2107 // 11 alphanumeric and/or "-" characters. 2108 // ^SQLite further guarantees that 2109 // the string will be valid and unchanged until xClose() is 2110 // called. Because of the previous sentence, 2111 // the [sqlite3_file] can safely store a pointer to the 2112 // filename if it needs to remember the filename for some reason. 2113 // If the zFilename parameter to xOpen is a NULL pointer then xOpen 2114 // must invent its own temporary name for the file. ^Whenever the 2115 // xFilename parameter is NULL it will also be the case that the 2116 // flags parameter will include [SQLITE_OPEN_DELETEONCLOSE]. 2117 // 2118 // The flags argument to xOpen() includes all bits set in 2119 // the flags argument to [sqlite3_open_v2()]. Or if [sqlite3_open()] 2120 // or [sqlite3_open16()] is used, then flags includes at least 2121 // [SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]. 2122 // If xOpen() opens a file read-only then it sets *pOutFlags to 2123 // include [SQLITE_OPEN_READONLY]. Other bits in *pOutFlags may be set. 2124 // 2125 // ^(SQLite will also add one of the following flags to the xOpen() 2126 // call, depending on the object being opened: 2127 // 2128 // <ul> 2129 // <li> [SQLITE_OPEN_MAIN_DB] 2130 // <li> [SQLITE_OPEN_MAIN_JOURNAL] 2131 // <li> [SQLITE_OPEN_TEMP_DB] 2132 // <li> [SQLITE_OPEN_TEMP_JOURNAL] 2133 // <li> [SQLITE_OPEN_TRANSIENT_DB] 2134 // <li> [SQLITE_OPEN_SUBJOURNAL] 2135 // <li> [SQLITE_OPEN_SUPER_JOURNAL] 2136 // <li> [SQLITE_OPEN_WAL] 2137 // </ul>)^ 2138 // 2139 // The file I/O implementation can use the object type flags to 2140 // change the way it deals with files. For example, an application 2141 // that does not care about crash recovery or rollback might make 2142 // the open of a journal file a no-op. Writes to this journal would 2143 // also be no-ops, and any attempt to read the journal would return 2144 // SQLITE_IOERR. Or the implementation might recognize that a database 2145 // file will be doing page-aligned sector reads and writes in a random 2146 // order and set up its I/O subsystem accordingly. 2147 // 2148 // SQLite might also add one of the following flags to the xOpen method: 2149 // 2150 // <ul> 2151 // <li> [SQLITE_OPEN_DELETEONCLOSE] 2152 // <li> [SQLITE_OPEN_EXCLUSIVE] 2153 // </ul> 2154 // 2155 // The [SQLITE_OPEN_DELETEONCLOSE] flag means the file should be 2156 // deleted when it is closed. ^The [SQLITE_OPEN_DELETEONCLOSE] 2157 // will be set for TEMP databases and their journals, transient 2158 // databases, and subjournals. 2159 // 2160 // ^The [SQLITE_OPEN_EXCLUSIVE] flag is always used in conjunction 2161 // with the [SQLITE_OPEN_CREATE] flag, which are both directly 2162 // analogous to the O_EXCL and O_CREAT flags of the POSIX open() 2163 // API. The SQLITE_OPEN_EXCLUSIVE flag, when paired with the 2164 // SQLITE_OPEN_CREATE, is used to indicate that file should always 2165 // be created, and that it is an error if it already exists. 2166 // It is <i>not</i> used to indicate the file should be opened 2167 // for exclusive access. 2168 // 2169 // ^At least szOsFile bytes of memory are allocated by SQLite 2170 // to hold the [sqlite3_file] structure passed as the third 2171 // argument to xOpen. The xOpen method does not have to 2172 // allocate the structure; it should just fill it in. Note that 2173 // the xOpen method must set the sqlite3_file.pMethods to either 2174 // a valid [sqlite3_io_methods] object or to NULL. xOpen must do 2175 // this even if the open fails. SQLite expects that the sqlite3_file.pMethods 2176 // element will be valid after xOpen returns regardless of the success 2177 // or failure of the xOpen call. 2178 // 2179 // [[sqlite3_vfs.xAccess]] 2180 // ^The flags argument to xAccess() may be [SQLITE_ACCESS_EXISTS] 2181 // to test for the existence of a file, or [SQLITE_ACCESS_READWRITE] to 2182 // test whether a file is readable and writable, or [SQLITE_ACCESS_READ] 2183 // to test whether a file is at least readable. The SQLITE_ACCESS_READ 2184 // flag is never actually used and is not implemented in the built-in 2185 // VFSes of SQLite. The file is named by the second argument and can be a 2186 // directory. The xAccess method returns [SQLITE_OK] on success or some 2187 // non-zero error code if there is an I/O error or if the name of 2188 // the file given in the second argument is illegal. If SQLITE_OK 2189 // is returned, then non-zero or zero is written into *pResOut to indicate 2190 // whether or not the file is accessible. 2191 // 2192 // ^SQLite will always allocate at least mxPathname+1 bytes for the 2193 // output buffer xFullPathname. The exact size of the output buffer 2194 // is also passed as a parameter to both methods. If the output buffer 2195 // is not large enough, [SQLITE_CANTOPEN] should be returned. Since this is 2196 // handled as a fatal error by SQLite, vfs implementations should endeavor 2197 // to prevent this by setting mxPathname to a sufficiently large value. 2198 // 2199 // The xRandomness(), xSleep(), xCurrentTime(), and xCurrentTimeInt64() 2200 // interfaces are not strictly a part of the filesystem, but they are 2201 // included in the VFS structure for completeness. 2202 // The xRandomness() function attempts to return nBytes bytes 2203 // of good-quality randomness into zOut. The return value is 2204 // the actual number of bytes of randomness obtained. 2205 // The xSleep() method causes the calling thread to sleep for at 2206 // least the number of microseconds given. ^The xCurrentTime() 2207 // method returns a Julian Day Number for the current date and time as 2208 // a floating point value. 2209 // ^The xCurrentTimeInt64() method returns, as an integer, the Julian 2210 // Day Number multiplied by 86400000 (the number of milliseconds in 2211 // a 24-hour day). 2212 // ^SQLite will use the xCurrentTimeInt64() method to get the current 2213 // date and time if that method is available (if iVersion is 2 or 2214 // greater and the function pointer is not NULL) and will fall back 2215 // to xCurrentTime() if xCurrentTimeInt64() is unavailable. 2216 // 2217 // ^The xSetSystemCall(), xGetSystemCall(), and xNestSystemCall() interfaces 2218 // are not used by the SQLite core. These optional interfaces are provided 2219 // by some VFSes to facilitate testing of the VFS code. By overriding 2220 // system calls with functions under its control, a test program can 2221 // simulate faults and error conditions that would otherwise be difficult 2222 // or impossible to induce. The set of system calls that can be overridden 2223 // varies from one VFS to another, and from one version of the same VFS to the 2224 // next. Applications that use these interfaces must be prepared for any 2225 // or all of these interfaces to be NULL or for their behavior to change 2226 // from one release to the next. Applications must not attempt to access 2227 // any of these methods if the iVersion of the VFS is less than 3. 2228 type sqlite3_vfs1 = struct { 2229 iVersion int32 2230 szOsFile int32 2231 mxPathname int32 2232 _ [4]byte 2233 pNext uintptr 2234 zName uintptr 2235 pAppData uintptr 2236 xOpen uintptr 2237 xDelete uintptr 2238 xAccess uintptr 2239 xFullPathname uintptr 2240 xDlOpen uintptr 2241 xDlError uintptr 2242 xDlSym uintptr 2243 xDlClose uintptr 2244 xRandomness uintptr 2245 xSleep uintptr 2246 xCurrentTime uintptr 2247 xGetLastError uintptr 2248 xCurrentTimeInt64 uintptr 2249 xSetSystemCall uintptr 2250 xGetSystemCall uintptr 2251 xNextSystemCall uintptr 2252 } /* sqlite3.h:1387:9 */ 2253 2254 // CAPI3REF: OS Interface Object 2255 // 2256 // An instance of the sqlite3_vfs object defines the interface between 2257 // the SQLite core and the underlying operating system. The "vfs" 2258 // in the name of the object stands for "virtual file system". See 2259 // the [VFS | VFS documentation] for further information. 2260 // 2261 // The VFS interface is sometimes extended by adding new methods onto 2262 // the end. Each time such an extension occurs, the iVersion field 2263 // is incremented. The iVersion value started out as 1 in 2264 // SQLite [version 3.5.0] on [dateof:3.5.0], then increased to 2 2265 // with SQLite [version 3.7.0] on [dateof:3.7.0], and then increased 2266 // to 3 with SQLite [version 3.7.6] on [dateof:3.7.6]. Additional fields 2267 // may be appended to the sqlite3_vfs object and the iVersion value 2268 // may increase again in future versions of SQLite. 2269 // Note that due to an oversight, the structure 2270 // of the sqlite3_vfs object changed in the transition from 2271 // SQLite [version 3.5.9] to [version 3.6.0] on [dateof:3.6.0] 2272 // and yet the iVersion field was not increased. 2273 // 2274 // The szOsFile field is the size of the subclassed [sqlite3_file] 2275 // structure used by this VFS. mxPathname is the maximum length of 2276 // a pathname in this VFS. 2277 // 2278 // Registered sqlite3_vfs objects are kept on a linked list formed by 2279 // the pNext pointer. The [sqlite3_vfs_register()] 2280 // and [sqlite3_vfs_unregister()] interfaces manage this list 2281 // in a thread-safe way. The [sqlite3_vfs_find()] interface 2282 // searches the list. Neither the application code nor the VFS 2283 // implementation should use the pNext pointer. 2284 // 2285 // The pNext field is the only field in the sqlite3_vfs 2286 // structure that SQLite will ever modify. SQLite will only access 2287 // or modify this field while holding a particular static mutex. 2288 // The application should never modify anything within the sqlite3_vfs 2289 // object once the object has been registered. 2290 // 2291 // The zName field holds the name of the VFS module. The name must 2292 // be unique across all VFS modules. 2293 // 2294 // [[sqlite3_vfs.xOpen]] 2295 // ^SQLite guarantees that the zFilename parameter to xOpen 2296 // is either a NULL pointer or string obtained 2297 // from xFullPathname() with an optional suffix added. 2298 // ^If a suffix is added to the zFilename parameter, it will 2299 // consist of a single "-" character followed by no more than 2300 // 11 alphanumeric and/or "-" characters. 2301 // ^SQLite further guarantees that 2302 // the string will be valid and unchanged until xClose() is 2303 // called. Because of the previous sentence, 2304 // the [sqlite3_file] can safely store a pointer to the 2305 // filename if it needs to remember the filename for some reason. 2306 // If the zFilename parameter to xOpen is a NULL pointer then xOpen 2307 // must invent its own temporary name for the file. ^Whenever the 2308 // xFilename parameter is NULL it will also be the case that the 2309 // flags parameter will include [SQLITE_OPEN_DELETEONCLOSE]. 2310 // 2311 // The flags argument to xOpen() includes all bits set in 2312 // the flags argument to [sqlite3_open_v2()]. Or if [sqlite3_open()] 2313 // or [sqlite3_open16()] is used, then flags includes at least 2314 // [SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]. 2315 // If xOpen() opens a file read-only then it sets *pOutFlags to 2316 // include [SQLITE_OPEN_READONLY]. Other bits in *pOutFlags may be set. 2317 // 2318 // ^(SQLite will also add one of the following flags to the xOpen() 2319 // call, depending on the object being opened: 2320 // 2321 // <ul> 2322 // <li> [SQLITE_OPEN_MAIN_DB] 2323 // <li> [SQLITE_OPEN_MAIN_JOURNAL] 2324 // <li> [SQLITE_OPEN_TEMP_DB] 2325 // <li> [SQLITE_OPEN_TEMP_JOURNAL] 2326 // <li> [SQLITE_OPEN_TRANSIENT_DB] 2327 // <li> [SQLITE_OPEN_SUBJOURNAL] 2328 // <li> [SQLITE_OPEN_SUPER_JOURNAL] 2329 // <li> [SQLITE_OPEN_WAL] 2330 // </ul>)^ 2331 // 2332 // The file I/O implementation can use the object type flags to 2333 // change the way it deals with files. For example, an application 2334 // that does not care about crash recovery or rollback might make 2335 // the open of a journal file a no-op. Writes to this journal would 2336 // also be no-ops, and any attempt to read the journal would return 2337 // SQLITE_IOERR. Or the implementation might recognize that a database 2338 // file will be doing page-aligned sector reads and writes in a random 2339 // order and set up its I/O subsystem accordingly. 2340 // 2341 // SQLite might also add one of the following flags to the xOpen method: 2342 // 2343 // <ul> 2344 // <li> [SQLITE_OPEN_DELETEONCLOSE] 2345 // <li> [SQLITE_OPEN_EXCLUSIVE] 2346 // </ul> 2347 // 2348 // The [SQLITE_OPEN_DELETEONCLOSE] flag means the file should be 2349 // deleted when it is closed. ^The [SQLITE_OPEN_DELETEONCLOSE] 2350 // will be set for TEMP databases and their journals, transient 2351 // databases, and subjournals. 2352 // 2353 // ^The [SQLITE_OPEN_EXCLUSIVE] flag is always used in conjunction 2354 // with the [SQLITE_OPEN_CREATE] flag, which are both directly 2355 // analogous to the O_EXCL and O_CREAT flags of the POSIX open() 2356 // API. The SQLITE_OPEN_EXCLUSIVE flag, when paired with the 2357 // SQLITE_OPEN_CREATE, is used to indicate that file should always 2358 // be created, and that it is an error if it already exists. 2359 // It is <i>not</i> used to indicate the file should be opened 2360 // for exclusive access. 2361 // 2362 // ^At least szOsFile bytes of memory are allocated by SQLite 2363 // to hold the [sqlite3_file] structure passed as the third 2364 // argument to xOpen. The xOpen method does not have to 2365 // allocate the structure; it should just fill it in. Note that 2366 // the xOpen method must set the sqlite3_file.pMethods to either 2367 // a valid [sqlite3_io_methods] object or to NULL. xOpen must do 2368 // this even if the open fails. SQLite expects that the sqlite3_file.pMethods 2369 // element will be valid after xOpen returns regardless of the success 2370 // or failure of the xOpen call. 2371 // 2372 // [[sqlite3_vfs.xAccess]] 2373 // ^The flags argument to xAccess() may be [SQLITE_ACCESS_EXISTS] 2374 // to test for the existence of a file, or [SQLITE_ACCESS_READWRITE] to 2375 // test whether a file is readable and writable, or [SQLITE_ACCESS_READ] 2376 // to test whether a file is at least readable. The SQLITE_ACCESS_READ 2377 // flag is never actually used and is not implemented in the built-in 2378 // VFSes of SQLite. The file is named by the second argument and can be a 2379 // directory. The xAccess method returns [SQLITE_OK] on success or some 2380 // non-zero error code if there is an I/O error or if the name of 2381 // the file given in the second argument is illegal. If SQLITE_OK 2382 // is returned, then non-zero or zero is written into *pResOut to indicate 2383 // whether or not the file is accessible. 2384 // 2385 // ^SQLite will always allocate at least mxPathname+1 bytes for the 2386 // output buffer xFullPathname. The exact size of the output buffer 2387 // is also passed as a parameter to both methods. If the output buffer 2388 // is not large enough, [SQLITE_CANTOPEN] should be returned. Since this is 2389 // handled as a fatal error by SQLite, vfs implementations should endeavor 2390 // to prevent this by setting mxPathname to a sufficiently large value. 2391 // 2392 // The xRandomness(), xSleep(), xCurrentTime(), and xCurrentTimeInt64() 2393 // interfaces are not strictly a part of the filesystem, but they are 2394 // included in the VFS structure for completeness. 2395 // The xRandomness() function attempts to return nBytes bytes 2396 // of good-quality randomness into zOut. The return value is 2397 // the actual number of bytes of randomness obtained. 2398 // The xSleep() method causes the calling thread to sleep for at 2399 // least the number of microseconds given. ^The xCurrentTime() 2400 // method returns a Julian Day Number for the current date and time as 2401 // a floating point value. 2402 // ^The xCurrentTimeInt64() method returns, as an integer, the Julian 2403 // Day Number multiplied by 86400000 (the number of milliseconds in 2404 // a 24-hour day). 2405 // ^SQLite will use the xCurrentTimeInt64() method to get the current 2406 // date and time if that method is available (if iVersion is 2 or 2407 // greater and the function pointer is not NULL) and will fall back 2408 // to xCurrentTime() if xCurrentTimeInt64() is unavailable. 2409 // 2410 // ^The xSetSystemCall(), xGetSystemCall(), and xNestSystemCall() interfaces 2411 // are not used by the SQLite core. These optional interfaces are provided 2412 // by some VFSes to facilitate testing of the VFS code. By overriding 2413 // system calls with functions under its control, a test program can 2414 // simulate faults and error conditions that would otherwise be difficult 2415 // or impossible to induce. The set of system calls that can be overridden 2416 // varies from one VFS to another, and from one version of the same VFS to the 2417 // next. Applications that use these interfaces must be prepared for any 2418 // or all of these interfaces to be NULL or for their behavior to change 2419 // from one release to the next. Applications must not attempt to access 2420 // any of these methods if the iVersion of the VFS is less than 3. 2421 type sqlite3_vfs = sqlite3_vfs1 /* sqlite3.h:1387:28 */ 2422 type sqlite3_syscall_ptr = uintptr /* sqlite3.h:1388:14 */ 2423 2424 // CAPI3REF: Memory Allocation Routines 2425 // 2426 // An instance of this object defines the interface between SQLite 2427 // and low-level memory allocation routines. 2428 // 2429 // This object is used in only one place in the SQLite interface. 2430 // A pointer to an instance of this object is the argument to 2431 // [sqlite3_config()] when the configuration option is 2432 // [SQLITE_CONFIG_MALLOC] or [SQLITE_CONFIG_GETMALLOC]. 2433 // By creating an instance of this object 2434 // and passing it to [sqlite3_config]([SQLITE_CONFIG_MALLOC]) 2435 // during configuration, an application can specify an alternative 2436 // memory allocation subsystem for SQLite to use for all of its 2437 // dynamic memory needs. 2438 // 2439 // Note that SQLite comes with several [built-in memory allocators] 2440 // that are perfectly adequate for the overwhelming majority of applications 2441 // and that this object is only useful to a tiny minority of applications 2442 // with specialized memory allocation requirements. This object is 2443 // also used during testing of SQLite in order to specify an alternative 2444 // memory allocator that simulates memory out-of-memory conditions in 2445 // order to verify that SQLite recovers gracefully from such 2446 // conditions. 2447 // 2448 // The xMalloc, xRealloc, and xFree methods must work like the 2449 // malloc(), realloc() and free() functions from the standard C library. 2450 // ^SQLite guarantees that the second argument to 2451 // xRealloc is always a value returned by a prior call to xRoundup. 2452 // 2453 // xSize should return the allocated size of a memory allocation 2454 // previously obtained from xMalloc or xRealloc. The allocated size 2455 // is always at least as big as the requested size but may be larger. 2456 // 2457 // The xRoundup method returns what would be the allocated size of 2458 // a memory allocation given a particular requested size. Most memory 2459 // allocators round up memory allocations at least to the next multiple 2460 // of 8. Some allocators round up to a larger multiple or to a power of 2. 2461 // Every memory allocation request coming in through [sqlite3_malloc()] 2462 // or [sqlite3_realloc()] first calls xRoundup. If xRoundup returns 0, 2463 // that causes the corresponding memory allocation to fail. 2464 // 2465 // The xInit method initializes the memory allocator. For example, 2466 // it might allocate any required mutexes or initialize internal data 2467 // structures. The xShutdown method is invoked (indirectly) by 2468 // [sqlite3_shutdown()] and should deallocate any resources acquired 2469 // by xInit. The pAppData pointer is used as the only parameter to 2470 // xInit and xShutdown. 2471 // 2472 // SQLite holds the [SQLITE_MUTEX_STATIC_MAIN] mutex when it invokes 2473 // the xInit method, so the xInit method need not be threadsafe. The 2474 // xShutdown method is only called from [sqlite3_shutdown()] so it does 2475 // not need to be threadsafe either. For all other methods, SQLite 2476 // holds the [SQLITE_MUTEX_STATIC_MEM] mutex as long as the 2477 // [SQLITE_CONFIG_MEMSTATUS] configuration option is turned on (which 2478 // it is by default) and so the methods are automatically serialized. 2479 // However, if [SQLITE_CONFIG_MEMSTATUS] is disabled, then the other 2480 // methods must be threadsafe or else make their own arrangements for 2481 // serialization. 2482 // 2483 // SQLite will never invoke xInit() more than once without an intervening 2484 // call to xShutdown(). 2485 type sqlite3_mem_methods1 = struct { 2486 xMalloc uintptr 2487 xFree uintptr 2488 xRealloc uintptr 2489 xSize uintptr 2490 xRoundup uintptr 2491 xInit uintptr 2492 xShutdown uintptr 2493 pAppData uintptr 2494 } /* sqlite3.h:1685:9 */ 2495 2496 // CAPI3REF: Memory Allocation Routines 2497 // 2498 // An instance of this object defines the interface between SQLite 2499 // and low-level memory allocation routines. 2500 // 2501 // This object is used in only one place in the SQLite interface. 2502 // A pointer to an instance of this object is the argument to 2503 // [sqlite3_config()] when the configuration option is 2504 // [SQLITE_CONFIG_MALLOC] or [SQLITE_CONFIG_GETMALLOC]. 2505 // By creating an instance of this object 2506 // and passing it to [sqlite3_config]([SQLITE_CONFIG_MALLOC]) 2507 // during configuration, an application can specify an alternative 2508 // memory allocation subsystem for SQLite to use for all of its 2509 // dynamic memory needs. 2510 // 2511 // Note that SQLite comes with several [built-in memory allocators] 2512 // that are perfectly adequate for the overwhelming majority of applications 2513 // and that this object is only useful to a tiny minority of applications 2514 // with specialized memory allocation requirements. This object is 2515 // also used during testing of SQLite in order to specify an alternative 2516 // memory allocator that simulates memory out-of-memory conditions in 2517 // order to verify that SQLite recovers gracefully from such 2518 // conditions. 2519 // 2520 // The xMalloc, xRealloc, and xFree methods must work like the 2521 // malloc(), realloc() and free() functions from the standard C library. 2522 // ^SQLite guarantees that the second argument to 2523 // xRealloc is always a value returned by a prior call to xRoundup. 2524 // 2525 // xSize should return the allocated size of a memory allocation 2526 // previously obtained from xMalloc or xRealloc. The allocated size 2527 // is always at least as big as the requested size but may be larger. 2528 // 2529 // The xRoundup method returns what would be the allocated size of 2530 // a memory allocation given a particular requested size. Most memory 2531 // allocators round up memory allocations at least to the next multiple 2532 // of 8. Some allocators round up to a larger multiple or to a power of 2. 2533 // Every memory allocation request coming in through [sqlite3_malloc()] 2534 // or [sqlite3_realloc()] first calls xRoundup. If xRoundup returns 0, 2535 // that causes the corresponding memory allocation to fail. 2536 // 2537 // The xInit method initializes the memory allocator. For example, 2538 // it might allocate any required mutexes or initialize internal data 2539 // structures. The xShutdown method is invoked (indirectly) by 2540 // [sqlite3_shutdown()] and should deallocate any resources acquired 2541 // by xInit. The pAppData pointer is used as the only parameter to 2542 // xInit and xShutdown. 2543 // 2544 // SQLite holds the [SQLITE_MUTEX_STATIC_MAIN] mutex when it invokes 2545 // the xInit method, so the xInit method need not be threadsafe. The 2546 // xShutdown method is only called from [sqlite3_shutdown()] so it does 2547 // not need to be threadsafe either. For all other methods, SQLite 2548 // holds the [SQLITE_MUTEX_STATIC_MEM] mutex as long as the 2549 // [SQLITE_CONFIG_MEMSTATUS] configuration option is turned on (which 2550 // it is by default) and so the methods are automatically serialized. 2551 // However, if [SQLITE_CONFIG_MEMSTATUS] is disabled, then the other 2552 // methods must be threadsafe or else make their own arrangements for 2553 // serialization. 2554 // 2555 // SQLite will never invoke xInit() more than once without an intervening 2556 // call to xShutdown(). 2557 type sqlite3_mem_methods = sqlite3_mem_methods1 /* sqlite3.h:1685:36 */ 2558 2559 // CAPI3REF: Constants Defining Special Destructor Behavior 2560 // 2561 // These are special values for the destructor that is passed in as the 2562 // final argument to routines like [sqlite3_result_blob()]. ^If the destructor 2563 // argument is SQLITE_STATIC, it means that the content pointer is constant 2564 // and will never change. It does not need to be destroyed. ^The 2565 // SQLITE_TRANSIENT value means that the content will likely change in 2566 // the near future and that SQLite should make its own private copy of 2567 // the content before returning. 2568 // 2569 // The typedef is necessary to work around problems in certain 2570 // C++ compilers. 2571 type sqlite3_destructor_type = uintptr /* sqlite3.h:5665:14 */ 2572 2573 // The interface to the virtual-table mechanism is currently considered 2574 // to be experimental. The interface might change in incompatible ways. 2575 // If this is a problem for you, do not use the interface at this time. 2576 // 2577 // When the virtual-table mechanism stabilizes, we will declare the 2578 // interface fixed, support it indefinitely, and remove this comment. 2579 2580 // Structures used by the virtual table interface 2581 type sqlite3_vtab1 = struct { 2582 pModule uintptr 2583 nRef int32 2584 _ [4]byte 2585 zErrMsg uintptr 2586 } /* sqlite3.h:6784:9 */ 2587 2588 // The interface to the virtual-table mechanism is currently considered 2589 // to be experimental. The interface might change in incompatible ways. 2590 // If this is a problem for you, do not use the interface at this time. 2591 // 2592 // When the virtual-table mechanism stabilizes, we will declare the 2593 // interface fixed, support it indefinitely, and remove this comment. 2594 2595 // Structures used by the virtual table interface 2596 type sqlite3_vtab = sqlite3_vtab1 /* sqlite3.h:6784:29 */ 2597 type sqlite3_index_info1 = struct { 2598 nConstraint int32 2599 _ [4]byte 2600 aConstraint uintptr 2601 nOrderBy int32 2602 _ [4]byte 2603 aOrderBy uintptr 2604 aConstraintUsage uintptr 2605 idxNum int32 2606 _ [4]byte 2607 idxStr uintptr 2608 needToFreeIdxStr int32 2609 orderByConsumed int32 2610 estimatedCost float64 2611 estimatedRows sqlite3_int64 2612 idxFlags int32 2613 _ [4]byte 2614 colUsed sqlite3_uint64 2615 } /* sqlite3.h:6785:9 */ 2616 2617 type sqlite3_index_info = sqlite3_index_info1 /* sqlite3.h:6785:35 */ 2618 type sqlite3_vtab_cursor1 = struct{ pVtab uintptr } /* sqlite3.h:6786:9 */ 2619 2620 type sqlite3_vtab_cursor = sqlite3_vtab_cursor1 /* sqlite3.h:6786:36 */ 2621 type sqlite3_module1 = struct { 2622 iVersion int32 2623 _ [4]byte 2624 xCreate uintptr 2625 xConnect uintptr 2626 xBestIndex uintptr 2627 xDisconnect uintptr 2628 xDestroy uintptr 2629 xOpen uintptr 2630 xClose uintptr 2631 xFilter uintptr 2632 xNext uintptr 2633 xEof uintptr 2634 xColumn uintptr 2635 xRowid uintptr 2636 xUpdate uintptr 2637 xBegin uintptr 2638 xSync uintptr 2639 xCommit uintptr 2640 xRollback uintptr 2641 xFindFunction uintptr 2642 xRename uintptr 2643 xSavepoint uintptr 2644 xRelease uintptr 2645 xRollbackTo uintptr 2646 xShadowName uintptr 2647 } /* sqlite3.h:6784:9 */ 2648 2649 type sqlite3_module = sqlite3_module1 /* sqlite3.h:6787:31 */ 2650 2651 // CAPI3REF: Virtual Table Indexing Information 2652 // KEYWORDS: sqlite3_index_info 2653 // 2654 // The sqlite3_index_info structure and its substructures is used as part 2655 // of the [virtual table] interface to 2656 // pass information into and receive the reply from the [xBestIndex] 2657 // method of a [virtual table module]. The fields under **Inputs** are the 2658 // inputs to xBestIndex and are read-only. xBestIndex inserts its 2659 // results into the **Outputs** fields. 2660 // 2661 // ^(The aConstraint[] array records WHERE clause constraints of the form: 2662 // 2663 // <blockquote>column OP expr</blockquote> 2664 // 2665 // where OP is =, <, <=, >, or >=.)^ ^(The particular operator is 2666 // stored in aConstraint[].op using one of the 2667 // [SQLITE_INDEX_CONSTRAINT_EQ | SQLITE_INDEX_CONSTRAINT_ values].)^ 2668 // ^(The index of the column is stored in 2669 // aConstraint[].iColumn.)^ ^(aConstraint[].usable is TRUE if the 2670 // expr on the right-hand side can be evaluated (and thus the constraint 2671 // is usable) and false if it cannot.)^ 2672 // 2673 // ^The optimizer automatically inverts terms of the form "expr OP column" 2674 // and makes other simplifications to the WHERE clause in an attempt to 2675 // get as many WHERE clause terms into the form shown above as possible. 2676 // ^The aConstraint[] array only reports WHERE clause terms that are 2677 // relevant to the particular virtual table being queried. 2678 // 2679 // ^Information about the ORDER BY clause is stored in aOrderBy[]. 2680 // ^Each term of aOrderBy records a column of the ORDER BY clause. 2681 // 2682 // The colUsed field indicates which columns of the virtual table may be 2683 // required by the current scan. Virtual table columns are numbered from 2684 // zero in the order in which they appear within the CREATE TABLE statement 2685 // passed to sqlite3_declare_vtab(). For the first 63 columns (columns 0-62), 2686 // the corresponding bit is set within the colUsed mask if the column may be 2687 // required by SQLite. If the table has at least 64 columns and any column 2688 // to the right of the first 63 is required, then bit 63 of colUsed is also 2689 // set. In other words, column iCol may be required if the expression 2690 // (colUsed & ((sqlite3_uint64)1 << (iCol>=63 ? 63 : iCol))) evaluates to 2691 // non-zero. 2692 // 2693 // The [xBestIndex] method must fill aConstraintUsage[] with information 2694 // about what parameters to pass to xFilter. ^If argvIndex>0 then 2695 // the right-hand side of the corresponding aConstraint[] is evaluated 2696 // and becomes the argvIndex-th entry in argv. ^(If aConstraintUsage[].omit 2697 // is true, then the constraint is assumed to be fully handled by the 2698 // virtual table and might not be checked again by the byte code.)^ ^(The 2699 // aConstraintUsage[].omit flag is an optimization hint. When the omit flag 2700 // is left in its default setting of false, the constraint will always be 2701 // checked separately in byte code. If the omit flag is change to true, then 2702 // the constraint may or may not be checked in byte code. In other words, 2703 // when the omit flag is true there is no guarantee that the constraint will 2704 // not be checked again using byte code.)^ 2705 // 2706 // ^The idxNum and idxPtr values are recorded and passed into the 2707 // [xFilter] method. 2708 // ^[sqlite3_free()] is used to free idxPtr if and only if 2709 // needToFreeIdxPtr is true. 2710 // 2711 // ^The orderByConsumed means that output from [xFilter]/[xNext] will occur in 2712 // the correct order to satisfy the ORDER BY clause so that no separate 2713 // sorting step is required. 2714 // 2715 // ^The estimatedCost value is an estimate of the cost of a particular 2716 // strategy. A cost of N indicates that the cost of the strategy is similar 2717 // to a linear scan of an SQLite table with N rows. A cost of log(N) 2718 // indicates that the expense of the operation is similar to that of a 2719 // binary search on a unique indexed field of an SQLite table with N rows. 2720 // 2721 // ^The estimatedRows value is an estimate of the number of rows that 2722 // will be returned by the strategy. 2723 // 2724 // The xBestIndex method may optionally populate the idxFlags field with a 2725 // mask of SQLITE_INDEX_SCAN_* flags. Currently there is only one such flag - 2726 // SQLITE_INDEX_SCAN_UNIQUE. If the xBestIndex method sets this flag, SQLite 2727 // assumes that the strategy may visit at most one row. 2728 // 2729 // Additionally, if xBestIndex sets the SQLITE_INDEX_SCAN_UNIQUE flag, then 2730 // SQLite also assumes that if a call to the xUpdate() method is made as 2731 // part of the same statement to delete or update a virtual table row and the 2732 // implementation returns SQLITE_CONSTRAINT, then there is no need to rollback 2733 // any database changes. In other words, if the xUpdate() returns 2734 // SQLITE_CONSTRAINT, the database contents must be exactly as they were 2735 // before xUpdate was called. By contrast, if SQLITE_INDEX_SCAN_UNIQUE is not 2736 // set and xUpdate returns SQLITE_CONSTRAINT, any database changes made by 2737 // the xUpdate method are automatically rolled back by SQLite. 2738 // 2739 // IMPORTANT: The estimatedRows field was added to the sqlite3_index_info 2740 // structure for SQLite [version 3.8.2] ([dateof:3.8.2]). 2741 // If a virtual table extension is 2742 // used with an SQLite version earlier than 3.8.2, the results of attempting 2743 // to read or write the estimatedRows field are undefined (but are likely 2744 // to include crashing the application). The estimatedRows field should 2745 // therefore only be used if [sqlite3_libversion_number()] returns a 2746 // value greater than or equal to 3008002. Similarly, the idxFlags field 2747 // was added for [version 3.9.0] ([dateof:3.9.0]). 2748 // It may therefore only be used if 2749 // sqlite3_libversion_number() returns a value greater than or equal to 2750 // 3009000. 2751 type sqlite3_index_constraint = struct { 2752 iColumn int32 2753 op uint8 2754 usable uint8 2755 _ [2]byte 2756 iTermOffset int32 2757 } /* sqlite3.h:6785:9 */ 2758 2759 // CAPI3REF: Virtual Table Indexing Information 2760 // KEYWORDS: sqlite3_index_info 2761 // 2762 // The sqlite3_index_info structure and its substructures is used as part 2763 // of the [virtual table] interface to 2764 // pass information into and receive the reply from the [xBestIndex] 2765 // method of a [virtual table module]. The fields under **Inputs** are the 2766 // inputs to xBestIndex and are read-only. xBestIndex inserts its 2767 // results into the **Outputs** fields. 2768 // 2769 // ^(The aConstraint[] array records WHERE clause constraints of the form: 2770 // 2771 // <blockquote>column OP expr</blockquote> 2772 // 2773 // where OP is =, <, <=, >, or >=.)^ ^(The particular operator is 2774 // stored in aConstraint[].op using one of the 2775 // [SQLITE_INDEX_CONSTRAINT_EQ | SQLITE_INDEX_CONSTRAINT_ values].)^ 2776 // ^(The index of the column is stored in 2777 // aConstraint[].iColumn.)^ ^(aConstraint[].usable is TRUE if the 2778 // expr on the right-hand side can be evaluated (and thus the constraint 2779 // is usable) and false if it cannot.)^ 2780 // 2781 // ^The optimizer automatically inverts terms of the form "expr OP column" 2782 // and makes other simplifications to the WHERE clause in an attempt to 2783 // get as many WHERE clause terms into the form shown above as possible. 2784 // ^The aConstraint[] array only reports WHERE clause terms that are 2785 // relevant to the particular virtual table being queried. 2786 // 2787 // ^Information about the ORDER BY clause is stored in aOrderBy[]. 2788 // ^Each term of aOrderBy records a column of the ORDER BY clause. 2789 // 2790 // The colUsed field indicates which columns of the virtual table may be 2791 // required by the current scan. Virtual table columns are numbered from 2792 // zero in the order in which they appear within the CREATE TABLE statement 2793 // passed to sqlite3_declare_vtab(). For the first 63 columns (columns 0-62), 2794 // the corresponding bit is set within the colUsed mask if the column may be 2795 // required by SQLite. If the table has at least 64 columns and any column 2796 // to the right of the first 63 is required, then bit 63 of colUsed is also 2797 // set. In other words, column iCol may be required if the expression 2798 // (colUsed & ((sqlite3_uint64)1 << (iCol>=63 ? 63 : iCol))) evaluates to 2799 // non-zero. 2800 // 2801 // The [xBestIndex] method must fill aConstraintUsage[] with information 2802 // about what parameters to pass to xFilter. ^If argvIndex>0 then 2803 // the right-hand side of the corresponding aConstraint[] is evaluated 2804 // and becomes the argvIndex-th entry in argv. ^(If aConstraintUsage[].omit 2805 // is true, then the constraint is assumed to be fully handled by the 2806 // virtual table and might not be checked again by the byte code.)^ ^(The 2807 // aConstraintUsage[].omit flag is an optimization hint. When the omit flag 2808 // is left in its default setting of false, the constraint will always be 2809 // checked separately in byte code. If the omit flag is change to true, then 2810 // the constraint may or may not be checked in byte code. In other words, 2811 // when the omit flag is true there is no guarantee that the constraint will 2812 // not be checked again using byte code.)^ 2813 // 2814 // ^The idxNum and idxPtr values are recorded and passed into the 2815 // [xFilter] method. 2816 // ^[sqlite3_free()] is used to free idxPtr if and only if 2817 // needToFreeIdxPtr is true. 2818 // 2819 // ^The orderByConsumed means that output from [xFilter]/[xNext] will occur in 2820 // the correct order to satisfy the ORDER BY clause so that no separate 2821 // sorting step is required. 2822 // 2823 // ^The estimatedCost value is an estimate of the cost of a particular 2824 // strategy. A cost of N indicates that the cost of the strategy is similar 2825 // to a linear scan of an SQLite table with N rows. A cost of log(N) 2826 // indicates that the expense of the operation is similar to that of a 2827 // binary search on a unique indexed field of an SQLite table with N rows. 2828 // 2829 // ^The estimatedRows value is an estimate of the number of rows that 2830 // will be returned by the strategy. 2831 // 2832 // The xBestIndex method may optionally populate the idxFlags field with a 2833 // mask of SQLITE_INDEX_SCAN_* flags. Currently there is only one such flag - 2834 // SQLITE_INDEX_SCAN_UNIQUE. If the xBestIndex method sets this flag, SQLite 2835 // assumes that the strategy may visit at most one row. 2836 // 2837 // Additionally, if xBestIndex sets the SQLITE_INDEX_SCAN_UNIQUE flag, then 2838 // SQLite also assumes that if a call to the xUpdate() method is made as 2839 // part of the same statement to delete or update a virtual table row and the 2840 // implementation returns SQLITE_CONSTRAINT, then there is no need to rollback 2841 // any database changes. In other words, if the xUpdate() returns 2842 // SQLITE_CONSTRAINT, the database contents must be exactly as they were 2843 // before xUpdate was called. By contrast, if SQLITE_INDEX_SCAN_UNIQUE is not 2844 // set and xUpdate returns SQLITE_CONSTRAINT, any database changes made by 2845 // the xUpdate method are automatically rolled back by SQLite. 2846 // 2847 // IMPORTANT: The estimatedRows field was added to the sqlite3_index_info 2848 // structure for SQLite [version 3.8.2] ([dateof:3.8.2]). 2849 // If a virtual table extension is 2850 // used with an SQLite version earlier than 3.8.2, the results of attempting 2851 // to read or write the estimatedRows field are undefined (but are likely 2852 // to include crashing the application). The estimatedRows field should 2853 // therefore only be used if [sqlite3_libversion_number()] returns a 2854 // value greater than or equal to 3008002. Similarly, the idxFlags field 2855 // was added for [version 3.9.0] ([dateof:3.9.0]). 2856 // It may therefore only be used if 2857 // sqlite3_libversion_number() returns a value greater than or equal to 2858 // 3009000. 2859 type sqlite3_index_orderby = struct { 2860 iColumn int32 2861 desc uint8 2862 _ [3]byte 2863 } /* sqlite3.h:6785:9 */ 2864 2865 // CAPI3REF: Virtual Table Indexing Information 2866 // KEYWORDS: sqlite3_index_info 2867 // 2868 // The sqlite3_index_info structure and its substructures is used as part 2869 // of the [virtual table] interface to 2870 // pass information into and receive the reply from the [xBestIndex] 2871 // method of a [virtual table module]. The fields under **Inputs** are the 2872 // inputs to xBestIndex and are read-only. xBestIndex inserts its 2873 // results into the **Outputs** fields. 2874 // 2875 // ^(The aConstraint[] array records WHERE clause constraints of the form: 2876 // 2877 // <blockquote>column OP expr</blockquote> 2878 // 2879 // where OP is =, <, <=, >, or >=.)^ ^(The particular operator is 2880 // stored in aConstraint[].op using one of the 2881 // [SQLITE_INDEX_CONSTRAINT_EQ | SQLITE_INDEX_CONSTRAINT_ values].)^ 2882 // ^(The index of the column is stored in 2883 // aConstraint[].iColumn.)^ ^(aConstraint[].usable is TRUE if the 2884 // expr on the right-hand side can be evaluated (and thus the constraint 2885 // is usable) and false if it cannot.)^ 2886 // 2887 // ^The optimizer automatically inverts terms of the form "expr OP column" 2888 // and makes other simplifications to the WHERE clause in an attempt to 2889 // get as many WHERE clause terms into the form shown above as possible. 2890 // ^The aConstraint[] array only reports WHERE clause terms that are 2891 // relevant to the particular virtual table being queried. 2892 // 2893 // ^Information about the ORDER BY clause is stored in aOrderBy[]. 2894 // ^Each term of aOrderBy records a column of the ORDER BY clause. 2895 // 2896 // The colUsed field indicates which columns of the virtual table may be 2897 // required by the current scan. Virtual table columns are numbered from 2898 // zero in the order in which they appear within the CREATE TABLE statement 2899 // passed to sqlite3_declare_vtab(). For the first 63 columns (columns 0-62), 2900 // the corresponding bit is set within the colUsed mask if the column may be 2901 // required by SQLite. If the table has at least 64 columns and any column 2902 // to the right of the first 63 is required, then bit 63 of colUsed is also 2903 // set. In other words, column iCol may be required if the expression 2904 // (colUsed & ((sqlite3_uint64)1 << (iCol>=63 ? 63 : iCol))) evaluates to 2905 // non-zero. 2906 // 2907 // The [xBestIndex] method must fill aConstraintUsage[] with information 2908 // about what parameters to pass to xFilter. ^If argvIndex>0 then 2909 // the right-hand side of the corresponding aConstraint[] is evaluated 2910 // and becomes the argvIndex-th entry in argv. ^(If aConstraintUsage[].omit 2911 // is true, then the constraint is assumed to be fully handled by the 2912 // virtual table and might not be checked again by the byte code.)^ ^(The 2913 // aConstraintUsage[].omit flag is an optimization hint. When the omit flag 2914 // is left in its default setting of false, the constraint will always be 2915 // checked separately in byte code. If the omit flag is change to true, then 2916 // the constraint may or may not be checked in byte code. In other words, 2917 // when the omit flag is true there is no guarantee that the constraint will 2918 // not be checked again using byte code.)^ 2919 // 2920 // ^The idxNum and idxPtr values are recorded and passed into the 2921 // [xFilter] method. 2922 // ^[sqlite3_free()] is used to free idxPtr if and only if 2923 // needToFreeIdxPtr is true. 2924 // 2925 // ^The orderByConsumed means that output from [xFilter]/[xNext] will occur in 2926 // the correct order to satisfy the ORDER BY clause so that no separate 2927 // sorting step is required. 2928 // 2929 // ^The estimatedCost value is an estimate of the cost of a particular 2930 // strategy. A cost of N indicates that the cost of the strategy is similar 2931 // to a linear scan of an SQLite table with N rows. A cost of log(N) 2932 // indicates that the expense of the operation is similar to that of a 2933 // binary search on a unique indexed field of an SQLite table with N rows. 2934 // 2935 // ^The estimatedRows value is an estimate of the number of rows that 2936 // will be returned by the strategy. 2937 // 2938 // The xBestIndex method may optionally populate the idxFlags field with a 2939 // mask of SQLITE_INDEX_SCAN_* flags. Currently there is only one such flag - 2940 // SQLITE_INDEX_SCAN_UNIQUE. If the xBestIndex method sets this flag, SQLite 2941 // assumes that the strategy may visit at most one row. 2942 // 2943 // Additionally, if xBestIndex sets the SQLITE_INDEX_SCAN_UNIQUE flag, then 2944 // SQLite also assumes that if a call to the xUpdate() method is made as 2945 // part of the same statement to delete or update a virtual table row and the 2946 // implementation returns SQLITE_CONSTRAINT, then there is no need to rollback 2947 // any database changes. In other words, if the xUpdate() returns 2948 // SQLITE_CONSTRAINT, the database contents must be exactly as they were 2949 // before xUpdate was called. By contrast, if SQLITE_INDEX_SCAN_UNIQUE is not 2950 // set and xUpdate returns SQLITE_CONSTRAINT, any database changes made by 2951 // the xUpdate method are automatically rolled back by SQLite. 2952 // 2953 // IMPORTANT: The estimatedRows field was added to the sqlite3_index_info 2954 // structure for SQLite [version 3.8.2] ([dateof:3.8.2]). 2955 // If a virtual table extension is 2956 // used with an SQLite version earlier than 3.8.2, the results of attempting 2957 // to read or write the estimatedRows field are undefined (but are likely 2958 // to include crashing the application). The estimatedRows field should 2959 // therefore only be used if [sqlite3_libversion_number()] returns a 2960 // value greater than or equal to 3008002. Similarly, the idxFlags field 2961 // was added for [version 3.9.0] ([dateof:3.9.0]). 2962 // It may therefore only be used if 2963 // sqlite3_libversion_number() returns a value greater than or equal to 2964 // 3009000. 2965 type sqlite3_index_constraint_usage = struct { 2966 argvIndex int32 2967 omit uint8 2968 _ [3]byte 2969 } /* sqlite3.h:6785:9 */ 2970 2971 // CAPI3REF: Mutex Methods Object 2972 // 2973 // An instance of this structure defines the low-level routines 2974 // used to allocate and use mutexes. 2975 // 2976 // Usually, the default mutex implementations provided by SQLite are 2977 // sufficient, however the application has the option of substituting a custom 2978 // implementation for specialized deployments or systems for which SQLite 2979 // does not provide a suitable implementation. In this case, the application 2980 // creates and populates an instance of this structure to pass 2981 // to sqlite3_config() along with the [SQLITE_CONFIG_MUTEX] option. 2982 // Additionally, an instance of this structure can be used as an 2983 // output variable when querying the system for the current mutex 2984 // implementation, using the [SQLITE_CONFIG_GETMUTEX] option. 2985 // 2986 // ^The xMutexInit method defined by this structure is invoked as 2987 // part of system initialization by the sqlite3_initialize() function. 2988 // ^The xMutexInit routine is called by SQLite exactly once for each 2989 // effective call to [sqlite3_initialize()]. 2990 // 2991 // ^The xMutexEnd method defined by this structure is invoked as 2992 // part of system shutdown by the sqlite3_shutdown() function. The 2993 // implementation of this method is expected to release all outstanding 2994 // resources obtained by the mutex methods implementation, especially 2995 // those obtained by the xMutexInit method. ^The xMutexEnd() 2996 // interface is invoked exactly once for each call to [sqlite3_shutdown()]. 2997 // 2998 // ^(The remaining seven methods defined by this structure (xMutexAlloc, 2999 // xMutexFree, xMutexEnter, xMutexTry, xMutexLeave, xMutexHeld and 3000 // xMutexNotheld) implement the following interfaces (respectively): 3001 // 3002 // <ul> 3003 // <li> [sqlite3_mutex_alloc()] </li> 3004 // <li> [sqlite3_mutex_free()] </li> 3005 // <li> [sqlite3_mutex_enter()] </li> 3006 // <li> [sqlite3_mutex_try()] </li> 3007 // <li> [sqlite3_mutex_leave()] </li> 3008 // <li> [sqlite3_mutex_held()] </li> 3009 // <li> [sqlite3_mutex_notheld()] </li> 3010 // </ul>)^ 3011 // 3012 // The only difference is that the public sqlite3_XXX functions enumerated 3013 // above silently ignore any invocations that pass a NULL pointer instead 3014 // of a valid mutex handle. The implementations of the methods defined 3015 // by this structure are not required to handle this case. The results 3016 // of passing a NULL pointer instead of a valid mutex handle are undefined 3017 // (i.e. it is acceptable to provide an implementation that segfaults if 3018 // it is passed a NULL pointer). 3019 // 3020 // The xMutexInit() method must be threadsafe. It must be harmless to 3021 // invoke xMutexInit() multiple times within the same process and without 3022 // intervening calls to xMutexEnd(). Second and subsequent calls to 3023 // xMutexInit() must be no-ops. 3024 // 3025 // xMutexInit() must not use SQLite memory allocation ([sqlite3_malloc()] 3026 // and its associates). Similarly, xMutexAlloc() must not use SQLite memory 3027 // allocation for a static mutex. ^However xMutexAlloc() may use SQLite 3028 // memory allocation for a fast or recursive mutex. 3029 // 3030 // ^SQLite will invoke the xMutexEnd() method when [sqlite3_shutdown()] is 3031 // called, but only if the prior call to xMutexInit returned SQLITE_OK. 3032 // If xMutexInit fails in any way, it is expected to clean up after itself 3033 // prior to returning. 3034 type sqlite3_mutex_methods1 = struct { 3035 xMutexInit uintptr 3036 xMutexEnd uintptr 3037 xMutexAlloc uintptr 3038 xMutexFree uintptr 3039 xMutexEnter uintptr 3040 xMutexTry uintptr 3041 xMutexLeave uintptr 3042 xMutexHeld uintptr 3043 xMutexNotheld uintptr 3044 } /* sqlite3.h:7619:9 */ 3045 3046 // CAPI3REF: Mutex Methods Object 3047 // 3048 // An instance of this structure defines the low-level routines 3049 // used to allocate and use mutexes. 3050 // 3051 // Usually, the default mutex implementations provided by SQLite are 3052 // sufficient, however the application has the option of substituting a custom 3053 // implementation for specialized deployments or systems for which SQLite 3054 // does not provide a suitable implementation. In this case, the application 3055 // creates and populates an instance of this structure to pass 3056 // to sqlite3_config() along with the [SQLITE_CONFIG_MUTEX] option. 3057 // Additionally, an instance of this structure can be used as an 3058 // output variable when querying the system for the current mutex 3059 // implementation, using the [SQLITE_CONFIG_GETMUTEX] option. 3060 // 3061 // ^The xMutexInit method defined by this structure is invoked as 3062 // part of system initialization by the sqlite3_initialize() function. 3063 // ^The xMutexInit routine is called by SQLite exactly once for each 3064 // effective call to [sqlite3_initialize()]. 3065 // 3066 // ^The xMutexEnd method defined by this structure is invoked as 3067 // part of system shutdown by the sqlite3_shutdown() function. The 3068 // implementation of this method is expected to release all outstanding 3069 // resources obtained by the mutex methods implementation, especially 3070 // those obtained by the xMutexInit method. ^The xMutexEnd() 3071 // interface is invoked exactly once for each call to [sqlite3_shutdown()]. 3072 // 3073 // ^(The remaining seven methods defined by this structure (xMutexAlloc, 3074 // xMutexFree, xMutexEnter, xMutexTry, xMutexLeave, xMutexHeld and 3075 // xMutexNotheld) implement the following interfaces (respectively): 3076 // 3077 // <ul> 3078 // <li> [sqlite3_mutex_alloc()] </li> 3079 // <li> [sqlite3_mutex_free()] </li> 3080 // <li> [sqlite3_mutex_enter()] </li> 3081 // <li> [sqlite3_mutex_try()] </li> 3082 // <li> [sqlite3_mutex_leave()] </li> 3083 // <li> [sqlite3_mutex_held()] </li> 3084 // <li> [sqlite3_mutex_notheld()] </li> 3085 // </ul>)^ 3086 // 3087 // The only difference is that the public sqlite3_XXX functions enumerated 3088 // above silently ignore any invocations that pass a NULL pointer instead 3089 // of a valid mutex handle. The implementations of the methods defined 3090 // by this structure are not required to handle this case. The results 3091 // of passing a NULL pointer instead of a valid mutex handle are undefined 3092 // (i.e. it is acceptable to provide an implementation that segfaults if 3093 // it is passed a NULL pointer). 3094 // 3095 // The xMutexInit() method must be threadsafe. It must be harmless to 3096 // invoke xMutexInit() multiple times within the same process and without 3097 // intervening calls to xMutexEnd(). Second and subsequent calls to 3098 // xMutexInit() must be no-ops. 3099 // 3100 // xMutexInit() must not use SQLite memory allocation ([sqlite3_malloc()] 3101 // and its associates). Similarly, xMutexAlloc() must not use SQLite memory 3102 // allocation for a static mutex. ^However xMutexAlloc() may use SQLite 3103 // memory allocation for a fast or recursive mutex. 3104 // 3105 // ^SQLite will invoke the xMutexEnd() method when [sqlite3_shutdown()] is 3106 // called, but only if the prior call to xMutexInit returned SQLITE_OK. 3107 // If xMutexInit fails in any way, it is expected to clean up after itself 3108 // prior to returning. 3109 type sqlite3_mutex_methods = sqlite3_mutex_methods1 /* sqlite3.h:7619:38 */ 3110 3111 // CAPI3REF: Custom Page Cache Object 3112 // 3113 // The sqlite3_pcache_page object represents a single page in the 3114 // page cache. The page cache will allocate instances of this 3115 // object. Various methods of the page cache use pointers to instances 3116 // of this object as parameters or as their return value. 3117 // 3118 // See [sqlite3_pcache_methods2] for additional information. 3119 type sqlite3_pcache_page1 = struct { 3120 pBuf uintptr 3121 pExtra uintptr 3122 } /* sqlite3.h:8375:9 */ 3123 3124 // CAPI3REF: Custom Page Cache Object 3125 // 3126 // The sqlite3_pcache_page object represents a single page in the 3127 // page cache. The page cache will allocate instances of this 3128 // object. Various methods of the page cache use pointers to instances 3129 // of this object as parameters or as their return value. 3130 // 3131 // See [sqlite3_pcache_methods2] for additional information. 3132 type sqlite3_pcache_page = sqlite3_pcache_page1 /* sqlite3.h:8375:36 */ 3133 3134 // CAPI3REF: Application Defined Page Cache. 3135 // KEYWORDS: {page cache} 3136 // 3137 // ^(The [sqlite3_config]([SQLITE_CONFIG_PCACHE2], ...) interface can 3138 // register an alternative page cache implementation by passing in an 3139 // instance of the sqlite3_pcache_methods2 structure.)^ 3140 // In many applications, most of the heap memory allocated by 3141 // SQLite is used for the page cache. 3142 // By implementing a 3143 // custom page cache using this API, an application can better control 3144 // the amount of memory consumed by SQLite, the way in which 3145 // that memory is allocated and released, and the policies used to 3146 // determine exactly which parts of a database file are cached and for 3147 // how long. 3148 // 3149 // The alternative page cache mechanism is an 3150 // extreme measure that is only needed by the most demanding applications. 3151 // The built-in page cache is recommended for most uses. 3152 // 3153 // ^(The contents of the sqlite3_pcache_methods2 structure are copied to an 3154 // internal buffer by SQLite within the call to [sqlite3_config]. Hence 3155 // the application may discard the parameter after the call to 3156 // [sqlite3_config()] returns.)^ 3157 // 3158 // [[the xInit() page cache method]] 3159 // ^(The xInit() method is called once for each effective 3160 // call to [sqlite3_initialize()])^ 3161 // (usually only once during the lifetime of the process). ^(The xInit() 3162 // method is passed a copy of the sqlite3_pcache_methods2.pArg value.)^ 3163 // The intent of the xInit() method is to set up global data structures 3164 // required by the custom page cache implementation. 3165 // ^(If the xInit() method is NULL, then the 3166 // built-in default page cache is used instead of the application defined 3167 // page cache.)^ 3168 // 3169 // [[the xShutdown() page cache method]] 3170 // ^The xShutdown() method is called by [sqlite3_shutdown()]. 3171 // It can be used to clean up 3172 // any outstanding resources before process shutdown, if required. 3173 // ^The xShutdown() method may be NULL. 3174 // 3175 // ^SQLite automatically serializes calls to the xInit method, 3176 // so the xInit method need not be threadsafe. ^The 3177 // xShutdown method is only called from [sqlite3_shutdown()] so it does 3178 // not need to be threadsafe either. All other methods must be threadsafe 3179 // in multithreaded applications. 3180 // 3181 // ^SQLite will never invoke xInit() more than once without an intervening 3182 // call to xShutdown(). 3183 // 3184 // [[the xCreate() page cache methods]] 3185 // ^SQLite invokes the xCreate() method to construct a new cache instance. 3186 // SQLite will typically create one cache instance for each open database file, 3187 // though this is not guaranteed. ^The 3188 // first parameter, szPage, is the size in bytes of the pages that must 3189 // be allocated by the cache. ^szPage will always a power of two. ^The 3190 // second parameter szExtra is a number of bytes of extra storage 3191 // associated with each page cache entry. ^The szExtra parameter will 3192 // a number less than 250. SQLite will use the 3193 // extra szExtra bytes on each page to store metadata about the underlying 3194 // database page on disk. The value passed into szExtra depends 3195 // on the SQLite version, the target platform, and how SQLite was compiled. 3196 // ^The third argument to xCreate(), bPurgeable, is true if the cache being 3197 // created will be used to cache database pages of a file stored on disk, or 3198 // false if it is used for an in-memory database. The cache implementation 3199 // does not have to do anything special based with the value of bPurgeable; 3200 // it is purely advisory. ^On a cache where bPurgeable is false, SQLite will 3201 // never invoke xUnpin() except to deliberately delete a page. 3202 // ^In other words, calls to xUnpin() on a cache with bPurgeable set to 3203 // false will always have the "discard" flag set to true. 3204 // ^Hence, a cache created with bPurgeable false will 3205 // never contain any unpinned pages. 3206 // 3207 // [[the xCachesize() page cache method]] 3208 // ^(The xCachesize() method may be called at any time by SQLite to set the 3209 // suggested maximum cache-size (number of pages stored by) the cache 3210 // instance passed as the first argument. This is the value configured using 3211 // the SQLite "[PRAGMA cache_size]" command.)^ As with the bPurgeable 3212 // parameter, the implementation is not required to do anything with this 3213 // value; it is advisory only. 3214 // 3215 // [[the xPagecount() page cache methods]] 3216 // The xPagecount() method must return the number of pages currently 3217 // stored in the cache, both pinned and unpinned. 3218 // 3219 // [[the xFetch() page cache methods]] 3220 // The xFetch() method locates a page in the cache and returns a pointer to 3221 // an sqlite3_pcache_page object associated with that page, or a NULL pointer. 3222 // The pBuf element of the returned sqlite3_pcache_page object will be a 3223 // pointer to a buffer of szPage bytes used to store the content of a 3224 // single database page. The pExtra element of sqlite3_pcache_page will be 3225 // a pointer to the szExtra bytes of extra storage that SQLite has requested 3226 // for each entry in the page cache. 3227 // 3228 // The page to be fetched is determined by the key. ^The minimum key value 3229 // is 1. After it has been retrieved using xFetch, the page is considered 3230 // to be "pinned". 3231 // 3232 // If the requested page is already in the page cache, then the page cache 3233 // implementation must return a pointer to the page buffer with its content 3234 // intact. If the requested page is not already in the cache, then the 3235 // cache implementation should use the value of the createFlag 3236 // parameter to help it determined what action to take: 3237 // 3238 // <table border=1 width=85% align=center> 3239 // <tr><th> createFlag <th> Behavior when page is not already in cache 3240 // <tr><td> 0 <td> Do not allocate a new page. Return NULL. 3241 // <tr><td> 1 <td> Allocate a new page if it easy and convenient to do so. 3242 // Otherwise return NULL. 3243 // <tr><td> 2 <td> Make every effort to allocate a new page. Only return 3244 // NULL if allocating a new page is effectively impossible. 3245 // </table> 3246 // 3247 // ^(SQLite will normally invoke xFetch() with a createFlag of 0 or 1. SQLite 3248 // will only use a createFlag of 2 after a prior call with a createFlag of 1 3249 // failed.)^ In between the xFetch() calls, SQLite may 3250 // attempt to unpin one or more cache pages by spilling the content of 3251 // pinned pages to disk and synching the operating system disk cache. 3252 // 3253 // [[the xUnpin() page cache method]] 3254 // ^xUnpin() is called by SQLite with a pointer to a currently pinned page 3255 // as its second argument. If the third parameter, discard, is non-zero, 3256 // then the page must be evicted from the cache. 3257 // ^If the discard parameter is 3258 // zero, then the page may be discarded or retained at the discretion of 3259 // page cache implementation. ^The page cache implementation 3260 // may choose to evict unpinned pages at any time. 3261 // 3262 // The cache must not perform any reference counting. A single 3263 // call to xUnpin() unpins the page regardless of the number of prior calls 3264 // to xFetch(). 3265 // 3266 // [[the xRekey() page cache methods]] 3267 // The xRekey() method is used to change the key value associated with the 3268 // page passed as the second argument. If the cache 3269 // previously contains an entry associated with newKey, it must be 3270 // discarded. ^Any prior cache entry associated with newKey is guaranteed not 3271 // to be pinned. 3272 // 3273 // When SQLite calls the xTruncate() method, the cache must discard all 3274 // existing cache entries with page numbers (keys) greater than or equal 3275 // to the value of the iLimit parameter passed to xTruncate(). If any 3276 // of these pages are pinned, they are implicitly unpinned, meaning that 3277 // they can be safely discarded. 3278 // 3279 // [[the xDestroy() page cache method]] 3280 // ^The xDestroy() method is used to delete a cache allocated by xCreate(). 3281 // All resources associated with the specified cache should be freed. ^After 3282 // calling the xDestroy() method, SQLite considers the [sqlite3_pcache*] 3283 // handle invalid, and will not use it with any other sqlite3_pcache_methods2 3284 // functions. 3285 // 3286 // [[the xShrink() page cache method]] 3287 // ^SQLite invokes the xShrink() method when it wants the page cache to 3288 // free up as much of heap memory as possible. The page cache implementation 3289 // is not obligated to free any memory, but well-behaved implementations should 3290 // do their best. 3291 type sqlite3_pcache_methods21 = struct { 3292 iVersion int32 3293 _ [4]byte 3294 pArg uintptr 3295 xInit uintptr 3296 xShutdown uintptr 3297 xCreate uintptr 3298 xCachesize uintptr 3299 xPagecount uintptr 3300 xFetch uintptr 3301 xUnpin uintptr 3302 xRekey uintptr 3303 xTruncate uintptr 3304 xDestroy uintptr 3305 xShrink uintptr 3306 } /* sqlite3.h:8540:9 */ 3307 3308 // CAPI3REF: Application Defined Page Cache. 3309 // KEYWORDS: {page cache} 3310 // 3311 // ^(The [sqlite3_config]([SQLITE_CONFIG_PCACHE2], ...) interface can 3312 // register an alternative page cache implementation by passing in an 3313 // instance of the sqlite3_pcache_methods2 structure.)^ 3314 // In many applications, most of the heap memory allocated by 3315 // SQLite is used for the page cache. 3316 // By implementing a 3317 // custom page cache using this API, an application can better control 3318 // the amount of memory consumed by SQLite, the way in which 3319 // that memory is allocated and released, and the policies used to 3320 // determine exactly which parts of a database file are cached and for 3321 // how long. 3322 // 3323 // The alternative page cache mechanism is an 3324 // extreme measure that is only needed by the most demanding applications. 3325 // The built-in page cache is recommended for most uses. 3326 // 3327 // ^(The contents of the sqlite3_pcache_methods2 structure are copied to an 3328 // internal buffer by SQLite within the call to [sqlite3_config]. Hence 3329 // the application may discard the parameter after the call to 3330 // [sqlite3_config()] returns.)^ 3331 // 3332 // [[the xInit() page cache method]] 3333 // ^(The xInit() method is called once for each effective 3334 // call to [sqlite3_initialize()])^ 3335 // (usually only once during the lifetime of the process). ^(The xInit() 3336 // method is passed a copy of the sqlite3_pcache_methods2.pArg value.)^ 3337 // The intent of the xInit() method is to set up global data structures 3338 // required by the custom page cache implementation. 3339 // ^(If the xInit() method is NULL, then the 3340 // built-in default page cache is used instead of the application defined 3341 // page cache.)^ 3342 // 3343 // [[the xShutdown() page cache method]] 3344 // ^The xShutdown() method is called by [sqlite3_shutdown()]. 3345 // It can be used to clean up 3346 // any outstanding resources before process shutdown, if required. 3347 // ^The xShutdown() method may be NULL. 3348 // 3349 // ^SQLite automatically serializes calls to the xInit method, 3350 // so the xInit method need not be threadsafe. ^The 3351 // xShutdown method is only called from [sqlite3_shutdown()] so it does 3352 // not need to be threadsafe either. All other methods must be threadsafe 3353 // in multithreaded applications. 3354 // 3355 // ^SQLite will never invoke xInit() more than once without an intervening 3356 // call to xShutdown(). 3357 // 3358 // [[the xCreate() page cache methods]] 3359 // ^SQLite invokes the xCreate() method to construct a new cache instance. 3360 // SQLite will typically create one cache instance for each open database file, 3361 // though this is not guaranteed. ^The 3362 // first parameter, szPage, is the size in bytes of the pages that must 3363 // be allocated by the cache. ^szPage will always a power of two. ^The 3364 // second parameter szExtra is a number of bytes of extra storage 3365 // associated with each page cache entry. ^The szExtra parameter will 3366 // a number less than 250. SQLite will use the 3367 // extra szExtra bytes on each page to store metadata about the underlying 3368 // database page on disk. The value passed into szExtra depends 3369 // on the SQLite version, the target platform, and how SQLite was compiled. 3370 // ^The third argument to xCreate(), bPurgeable, is true if the cache being 3371 // created will be used to cache database pages of a file stored on disk, or 3372 // false if it is used for an in-memory database. The cache implementation 3373 // does not have to do anything special based with the value of bPurgeable; 3374 // it is purely advisory. ^On a cache where bPurgeable is false, SQLite will 3375 // never invoke xUnpin() except to deliberately delete a page. 3376 // ^In other words, calls to xUnpin() on a cache with bPurgeable set to 3377 // false will always have the "discard" flag set to true. 3378 // ^Hence, a cache created with bPurgeable false will 3379 // never contain any unpinned pages. 3380 // 3381 // [[the xCachesize() page cache method]] 3382 // ^(The xCachesize() method may be called at any time by SQLite to set the 3383 // suggested maximum cache-size (number of pages stored by) the cache 3384 // instance passed as the first argument. This is the value configured using 3385 // the SQLite "[PRAGMA cache_size]" command.)^ As with the bPurgeable 3386 // parameter, the implementation is not required to do anything with this 3387 // value; it is advisory only. 3388 // 3389 // [[the xPagecount() page cache methods]] 3390 // The xPagecount() method must return the number of pages currently 3391 // stored in the cache, both pinned and unpinned. 3392 // 3393 // [[the xFetch() page cache methods]] 3394 // The xFetch() method locates a page in the cache and returns a pointer to 3395 // an sqlite3_pcache_page object associated with that page, or a NULL pointer. 3396 // The pBuf element of the returned sqlite3_pcache_page object will be a 3397 // pointer to a buffer of szPage bytes used to store the content of a 3398 // single database page. The pExtra element of sqlite3_pcache_page will be 3399 // a pointer to the szExtra bytes of extra storage that SQLite has requested 3400 // for each entry in the page cache. 3401 // 3402 // The page to be fetched is determined by the key. ^The minimum key value 3403 // is 1. After it has been retrieved using xFetch, the page is considered 3404 // to be "pinned". 3405 // 3406 // If the requested page is already in the page cache, then the page cache 3407 // implementation must return a pointer to the page buffer with its content 3408 // intact. If the requested page is not already in the cache, then the 3409 // cache implementation should use the value of the createFlag 3410 // parameter to help it determined what action to take: 3411 // 3412 // <table border=1 width=85% align=center> 3413 // <tr><th> createFlag <th> Behavior when page is not already in cache 3414 // <tr><td> 0 <td> Do not allocate a new page. Return NULL. 3415 // <tr><td> 1 <td> Allocate a new page if it easy and convenient to do so. 3416 // Otherwise return NULL. 3417 // <tr><td> 2 <td> Make every effort to allocate a new page. Only return 3418 // NULL if allocating a new page is effectively impossible. 3419 // </table> 3420 // 3421 // ^(SQLite will normally invoke xFetch() with a createFlag of 0 or 1. SQLite 3422 // will only use a createFlag of 2 after a prior call with a createFlag of 1 3423 // failed.)^ In between the xFetch() calls, SQLite may 3424 // attempt to unpin one or more cache pages by spilling the content of 3425 // pinned pages to disk and synching the operating system disk cache. 3426 // 3427 // [[the xUnpin() page cache method]] 3428 // ^xUnpin() is called by SQLite with a pointer to a currently pinned page 3429 // as its second argument. If the third parameter, discard, is non-zero, 3430 // then the page must be evicted from the cache. 3431 // ^If the discard parameter is 3432 // zero, then the page may be discarded or retained at the discretion of 3433 // page cache implementation. ^The page cache implementation 3434 // may choose to evict unpinned pages at any time. 3435 // 3436 // The cache must not perform any reference counting. A single 3437 // call to xUnpin() unpins the page regardless of the number of prior calls 3438 // to xFetch(). 3439 // 3440 // [[the xRekey() page cache methods]] 3441 // The xRekey() method is used to change the key value associated with the 3442 // page passed as the second argument. If the cache 3443 // previously contains an entry associated with newKey, it must be 3444 // discarded. ^Any prior cache entry associated with newKey is guaranteed not 3445 // to be pinned. 3446 // 3447 // When SQLite calls the xTruncate() method, the cache must discard all 3448 // existing cache entries with page numbers (keys) greater than or equal 3449 // to the value of the iLimit parameter passed to xTruncate(). If any 3450 // of these pages are pinned, they are implicitly unpinned, meaning that 3451 // they can be safely discarded. 3452 // 3453 // [[the xDestroy() page cache method]] 3454 // ^The xDestroy() method is used to delete a cache allocated by xCreate(). 3455 // All resources associated with the specified cache should be freed. ^After 3456 // calling the xDestroy() method, SQLite considers the [sqlite3_pcache*] 3457 // handle invalid, and will not use it with any other sqlite3_pcache_methods2 3458 // functions. 3459 // 3460 // [[the xShrink() page cache method]] 3461 // ^SQLite invokes the xShrink() method when it wants the page cache to 3462 // free up as much of heap memory as possible. The page cache implementation 3463 // is not obligated to free any memory, but well-behaved implementations should 3464 // do their best. 3465 type sqlite3_pcache_methods2 = sqlite3_pcache_methods21 /* sqlite3.h:8540:40 */ 3466 3467 // This is the obsolete pcache_methods object that has now been replaced 3468 // by sqlite3_pcache_methods2. This object is not used by SQLite. It is 3469 // retained in the header file for backwards compatibility only. 3470 type sqlite3_pcache_methods1 = struct { 3471 pArg uintptr 3472 xInit uintptr 3473 xShutdown uintptr 3474 xCreate uintptr 3475 xCachesize uintptr 3476 xPagecount uintptr 3477 xFetch uintptr 3478 xUnpin uintptr 3479 xRekey uintptr 3480 xTruncate uintptr 3481 xDestroy uintptr 3482 } /* sqlite3.h:8563:9 */ 3483 3484 // This is the obsolete pcache_methods object that has now been replaced 3485 // by sqlite3_pcache_methods2. This object is not used by SQLite. It is 3486 // retained in the header file for backwards compatibility only. 3487 type sqlite3_pcache_methods = sqlite3_pcache_methods1 /* sqlite3.h:8563:39 */ 3488 3489 // CAPI3REF: Database Snapshot 3490 // KEYWORDS: {snapshot} {sqlite3_snapshot} 3491 // 3492 // An instance of the snapshot object records the state of a [WAL mode] 3493 // database for some specific point in history. 3494 // 3495 // In [WAL mode], multiple [database connections] that are open on the 3496 // same database file can each be reading a different historical version 3497 // of the database file. When a [database connection] begins a read 3498 // transaction, that connection sees an unchanging copy of the database 3499 // as it existed for the point in time when the transaction first started. 3500 // Subsequent changes to the database from other connections are not seen 3501 // by the reader until a new read transaction is started. 3502 // 3503 // The sqlite3_snapshot object records state information about an historical 3504 // version of the database file so that it is possible to later open a new read 3505 // transaction that sees that historical version of the database rather than 3506 // the most recent version. 3507 type sqlite3_snapshot1 = struct{ hidden [48]uint8 } /* sqlite3.h:9630:9 */ 3508 3509 // CAPI3REF: Database Snapshot 3510 // KEYWORDS: {snapshot} {sqlite3_snapshot} 3511 // 3512 // An instance of the snapshot object records the state of a [WAL mode] 3513 // database for some specific point in history. 3514 // 3515 // In [WAL mode], multiple [database connections] that are open on the 3516 // same database file can each be reading a different historical version 3517 // of the database file. When a [database connection] begins a read 3518 // transaction, that connection sees an unchanging copy of the database 3519 // as it existed for the point in time when the transaction first started. 3520 // Subsequent changes to the database from other connections are not seen 3521 // by the reader until a new read transaction is started. 3522 // 3523 // The sqlite3_snapshot object records state information about an historical 3524 // version of the database file so that it is possible to later open a new read 3525 // transaction that sees that historical version of the database rather than 3526 // the most recent version. 3527 type sqlite3_snapshot = sqlite3_snapshot1 /* sqlite3.h:9632:3 */ 3528 3529 // CAPI3REF: Flags for sqlite3_deserialize() 3530 // 3531 // The following are allowed values for 6th argument (the F argument) to 3532 // the [sqlite3_deserialize(D,S,P,N,M,F)] interface. 3533 // 3534 // The SQLITE_DESERIALIZE_FREEONCLOSE means that the database serialization 3535 // in the P argument is held in memory obtained from [sqlite3_malloc64()] 3536 // and that SQLite should take ownership of this memory and automatically 3537 // free it when it has finished using it. Without this flag, the caller 3538 // is responsible for freeing any dynamically allocated memory. 3539 // 3540 // The SQLITE_DESERIALIZE_RESIZEABLE flag means that SQLite is allowed to 3541 // grow the size of the database using calls to [sqlite3_realloc64()]. This 3542 // flag should only be used if SQLITE_DESERIALIZE_FREEONCLOSE is also used. 3543 // Without this flag, the deserialized database cannot increase in size beyond 3544 // the number of bytes specified by the M parameter. 3545 // 3546 // The SQLITE_DESERIALIZE_READONLY flag means that the deserialized database 3547 // should be treated as read-only. 3548 3549 // Undo the hack that converts floating point types to integer for 3550 // builds on processors without floating point support. 3551 3552 //******* Begin file sqlite3rtree.h ******** 3553 // 2010 August 30 3554 // 3555 // The author disclaims copyright to this source code. In place of 3556 // a legal notice, here is a blessing: 3557 // 3558 // May you do good and not evil. 3559 // May you find forgiveness for yourself and forgive others. 3560 // May you share freely, never taking more than you give. 3561 // 3562 // 3563 3564 type sqlite3_rtree_geometry1 = struct { 3565 pContext uintptr 3566 nParam int32 3567 _ [4]byte 3568 aParam uintptr 3569 pUser uintptr 3570 xDelUser uintptr 3571 } /* sqlite3.h:9957:9 */ 3572 3573 // CAPI3REF: Flags for sqlite3_deserialize() 3574 // 3575 // The following are allowed values for 6th argument (the F argument) to 3576 // the [sqlite3_deserialize(D,S,P,N,M,F)] interface. 3577 // 3578 // The SQLITE_DESERIALIZE_FREEONCLOSE means that the database serialization 3579 // in the P argument is held in memory obtained from [sqlite3_malloc64()] 3580 // and that SQLite should take ownership of this memory and automatically 3581 // free it when it has finished using it. Without this flag, the caller 3582 // is responsible for freeing any dynamically allocated memory. 3583 // 3584 // The SQLITE_DESERIALIZE_RESIZEABLE flag means that SQLite is allowed to 3585 // grow the size of the database using calls to [sqlite3_realloc64()]. This 3586 // flag should only be used if SQLITE_DESERIALIZE_FREEONCLOSE is also used. 3587 // Without this flag, the deserialized database cannot increase in size beyond 3588 // the number of bytes specified by the M parameter. 3589 // 3590 // The SQLITE_DESERIALIZE_READONLY flag means that the deserialized database 3591 // should be treated as read-only. 3592 3593 // Undo the hack that converts floating point types to integer for 3594 // builds on processors without floating point support. 3595 3596 //******* Begin file sqlite3rtree.h ******** 3597 // 2010 August 30 3598 // 3599 // The author disclaims copyright to this source code. In place of 3600 // a legal notice, here is a blessing: 3601 // 3602 // May you do good and not evil. 3603 // May you find forgiveness for yourself and forgive others. 3604 // May you share freely, never taking more than you give. 3605 // 3606 // 3607 3608 type sqlite3_rtree_geometry = sqlite3_rtree_geometry1 /* sqlite3.h:9957:39 */ 3609 type sqlite3_rtree_query_info1 = struct { 3610 pContext uintptr 3611 nParam int32 3612 _ [4]byte 3613 aParam uintptr 3614 pUser uintptr 3615 xDelUser uintptr 3616 aCoord uintptr 3617 anQueue uintptr 3618 nCoord int32 3619 iLevel int32 3620 mxLevel int32 3621 _ [4]byte 3622 iRowid sqlite3_int64 3623 rParentScore sqlite3_rtree_dbl 3624 eParentWithin int32 3625 eWithin int32 3626 rScore sqlite3_rtree_dbl 3627 apSqlParam uintptr 3628 } /* sqlite3.h:9958:9 */ 3629 3630 type sqlite3_rtree_query_info = sqlite3_rtree_query_info1 /* sqlite3.h:9958:41 */ 3631 3632 // The double-precision datatype used by RTree depends on the 3633 // SQLITE_RTREE_INT_ONLY compile-time option. 3634 type sqlite3_rtree_dbl = float64 /* sqlite3.h:9966:18 */ 3635 3636 // CAPI3REF: Values for sqlite3session_config(). 3637 3638 // Make sure we can call this stuff from C++. 3639 3640 //******* End of sqlite3session.h ******** 3641 //******* Begin file fts5.h ******** 3642 // 2014 May 31 3643 // 3644 // The author disclaims copyright to this source code. In place of 3645 // a legal notice, here is a blessing: 3646 // 3647 // May you do good and not evil. 3648 // May you find forgiveness for yourself and forgive others. 3649 // May you share freely, never taking more than you give. 3650 // 3651 // 3652 // 3653 // Interfaces to extend FTS5. Using the interfaces defined in this file, 3654 // FTS5 may be extended with: 3655 // 3656 // * custom tokenizers, and 3657 // * custom auxiliary functions. 3658 3659 // ************************************************************************ 3660 // 3661 // CUSTOM AUXILIARY FUNCTIONS 3662 // 3663 // Virtual table implementations may overload SQL functions by implementing 3664 // the sqlite3_module.xFindFunction() method. 3665 3666 type Fts5ExtensionApi1 = struct { 3667 iVersion int32 3668 _ [4]byte 3669 xUserData uintptr 3670 xColumnCount uintptr 3671 xRowCount uintptr 3672 xColumnTotalSize uintptr 3673 xTokenize uintptr 3674 xPhraseCount uintptr 3675 xPhraseSize uintptr 3676 xInstCount uintptr 3677 xInst uintptr 3678 xRowid uintptr 3679 xColumnText uintptr 3680 xColumnSize uintptr 3681 xQueryPhrase uintptr 3682 xSetAuxdata uintptr 3683 xGetAuxdata uintptr 3684 xPhraseFirst uintptr 3685 xPhraseNext uintptr 3686 xPhraseFirstColumn uintptr 3687 xPhraseNextColumn uintptr 3688 } /* sqlite3.h:11813:9 */ 3689 3690 // CAPI3REF: Values for sqlite3session_config(). 3691 3692 // Make sure we can call this stuff from C++. 3693 3694 //******* End of sqlite3session.h ******** 3695 //******* Begin file fts5.h ******** 3696 // 2014 May 31 3697 // 3698 // The author disclaims copyright to this source code. In place of 3699 // a legal notice, here is a blessing: 3700 // 3701 // May you do good and not evil. 3702 // May you find forgiveness for yourself and forgive others. 3703 // May you share freely, never taking more than you give. 3704 // 3705 // 3706 // 3707 // Interfaces to extend FTS5. Using the interfaces defined in this file, 3708 // FTS5 may be extended with: 3709 // 3710 // * custom tokenizers, and 3711 // * custom auxiliary functions. 3712 3713 // ************************************************************************ 3714 // 3715 // CUSTOM AUXILIARY FUNCTIONS 3716 // 3717 // Virtual table implementations may overload SQL functions by implementing 3718 // the sqlite3_module.xFindFunction() method. 3719 3720 type Fts5ExtensionApi = Fts5ExtensionApi1 /* sqlite3.h:11813:33 */ 3721 type Fts5PhraseIter1 = struct { 3722 a uintptr 3723 b uintptr 3724 } /* sqlite3.h:11815:9 */ 3725 3726 type Fts5PhraseIter = Fts5PhraseIter1 /* sqlite3.h:11815:31 */ 3727 3728 type fts5_extension_function = uintptr /* sqlite3.h:11817:14 */ 3729 type fts5_tokenizer1 = struct { 3730 xCreate uintptr 3731 xDelete uintptr 3732 xTokenize uintptr 3733 } /* sqlite3.h:12276:9 */ 3734 3735 type fts5_tokenizer = fts5_tokenizer1 /* sqlite3.h:12276:31 */ 3736 3737 // Flags that may be passed as the third argument to xTokenize() 3738 3739 // Flags that may be passed by the tokenizer implementation back to FTS5 3740 // as the third argument to the supplied xToken callback. 3741 3742 // 3743 // END OF CUSTOM TOKENIZERS 3744 // 3745 3746 // ************************************************************************ 3747 // 3748 // FTS5 EXTENSION REGISTRATION API 3749 type fts5_api1 = struct { 3750 iVersion int32 3751 _ [4]byte 3752 xCreateTokenizer uintptr 3753 xFindTokenizer uintptr 3754 xCreateFunction uintptr 3755 } /* sqlite3.h:12312:9 */ 3756 3757 // Flags that may be passed as the third argument to xTokenize() 3758 3759 // Flags that may be passed by the tokenizer implementation back to FTS5 3760 // as the third argument to the supplied xToken callback. 3761 3762 // 3763 // END OF CUSTOM TOKENIZERS 3764 // 3765 3766 // ************************************************************************ 3767 // 3768 // FTS5 EXTENSION REGISTRATION API 3769 type fts5_api = fts5_api1 /* sqlite3.h:12312:25 */ 3770 3771 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 3772 // 3773 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3774 // 3775 // This file contains Original Code and/or Modifications of Original Code 3776 // as defined in and that are subject to the Apple Public Source License 3777 // Version 2.0 (the 'License'). You may not use this file except in 3778 // compliance with the License. The rights granted to you under the License 3779 // may not be used to create, or enable the creation or redistribution of, 3780 // unlawful or unlicensed copies of an Apple operating system, or to 3781 // circumvent, violate, or enable the circumvention or violation of, any 3782 // terms of an Apple operating system software license agreement. 3783 // 3784 // Please obtain a copy of the License at 3785 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3786 // 3787 // The Original Code and all software distributed under the License are 3788 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3789 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3790 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3791 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3792 // Please see the License for the specific language governing rights and 3793 // limitations under the License. 3794 // 3795 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3796 3797 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 3798 // 3799 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3800 // 3801 // This file contains Original Code and/or Modifications of Original Code 3802 // as defined in and that are subject to the Apple Public Source License 3803 // Version 2.0 (the 'License'). You may not use this file except in 3804 // compliance with the License. The rights granted to you under the License 3805 // may not be used to create, or enable the creation or redistribution of, 3806 // unlawful or unlicensed copies of an Apple operating system, or to 3807 // circumvent, violate, or enable the circumvention or violation of, any 3808 // terms of an Apple operating system software license agreement. 3809 // 3810 // Please obtain a copy of the License at 3811 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3812 // 3813 // The Original Code and all software distributed under the License are 3814 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3815 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3816 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3817 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3818 // Please see the License for the specific language governing rights and 3819 // limitations under the License. 3820 // 3821 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3822 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3823 // Copyright (c) 1991, 1993 3824 // The Regents of the University of California. All rights reserved. 3825 // 3826 // This code is derived from software contributed to Berkeley by 3827 // Berkeley Software Design, Inc. 3828 // 3829 // Redistribution and use in source and binary forms, with or without 3830 // modification, are permitted provided that the following conditions 3831 // are met: 3832 // 1. Redistributions of source code must retain the above copyright 3833 // notice, this list of conditions and the following disclaimer. 3834 // 2. Redistributions in binary form must reproduce the above copyright 3835 // notice, this list of conditions and the following disclaimer in the 3836 // documentation and/or other materials provided with the distribution. 3837 // 3. All advertising materials mentioning features or use of this software 3838 // must display the following acknowledgement: 3839 // This product includes software developed by the University of 3840 // California, Berkeley and its contributors. 3841 // 4. Neither the name of the University nor the names of its contributors 3842 // may be used to endorse or promote products derived from this software 3843 // without specific prior written permission. 3844 // 3845 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 3846 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3847 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3848 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3849 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3850 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3851 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3852 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3853 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3854 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3855 // SUCH DAMAGE. 3856 // 3857 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 3858 3859 // pthread opaque structures 3860 3861 type __darwin_pthread_handler_rec = struct { 3862 __routine uintptr 3863 __arg uintptr 3864 __next uintptr 3865 } /* _pthread_types.h:57:1 */ 3866 3867 type _opaque_pthread_attr_t = struct { 3868 __sig int64 3869 __opaque [56]int8 3870 } /* _pthread_types.h:63:1 */ 3871 3872 type _opaque_pthread_cond_t = struct { 3873 __sig int64 3874 __opaque [40]int8 3875 } /* _pthread_types.h:68:1 */ 3876 3877 type _opaque_pthread_condattr_t = struct { 3878 __sig int64 3879 __opaque [8]int8 3880 } /* _pthread_types.h:73:1 */ 3881 3882 type _opaque_pthread_mutex_t = struct { 3883 __sig int64 3884 __opaque [56]int8 3885 } /* _pthread_types.h:78:1 */ 3886 3887 type _opaque_pthread_mutexattr_t = struct { 3888 __sig int64 3889 __opaque [8]int8 3890 } /* _pthread_types.h:83:1 */ 3891 3892 type _opaque_pthread_once_t = struct { 3893 __sig int64 3894 __opaque [8]int8 3895 } /* _pthread_types.h:88:1 */ 3896 3897 type _opaque_pthread_rwlock_t = struct { 3898 __sig int64 3899 __opaque [192]int8 3900 } /* _pthread_types.h:93:1 */ 3901 3902 type _opaque_pthread_rwlockattr_t = struct { 3903 __sig int64 3904 __opaque [16]int8 3905 } /* _pthread_types.h:98:1 */ 3906 3907 type _opaque_pthread_t = struct { 3908 __sig int64 3909 __cleanup_stack uintptr 3910 __opaque [8176]int8 3911 } /* _pthread_types.h:103:1 */ 3912 3913 // DO NOT REMOVE THIS COMMENT: fixincludes needs to see: 3914 // __gnuc_va_list and include <stdarg.h> 3915 // Copyright (c) 2012 Apple Inc. All rights reserved. 3916 // 3917 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3918 // 3919 // This file contains Original Code and/or Modifications of Original Code 3920 // as defined in and that are subject to the Apple Public Source License 3921 // Version 2.0 (the 'License'). You may not use this file except in 3922 // compliance with the License. The rights granted to you under the License 3923 // may not be used to create, or enable the creation or redistribution of, 3924 // unlawful or unlicensed copies of an Apple operating system, or to 3925 // circumvent, violate, or enable the circumvention or violation of, any 3926 // terms of an Apple operating system software license agreement. 3927 // 3928 // Please obtain a copy of the License at 3929 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3930 // 3931 // The Original Code and all software distributed under the License are 3932 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3933 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3934 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3935 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3936 // Please see the License for the specific language governing rights and 3937 // limitations under the License. 3938 // 3939 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3940 3941 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 3942 // 3943 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3944 // 3945 // This file contains Original Code and/or Modifications of Original Code 3946 // as defined in and that are subject to the Apple Public Source License 3947 // Version 2.0 (the 'License'). You may not use this file except in 3948 // compliance with the License. The rights granted to you under the License 3949 // may not be used to create, or enable the creation or redistribution of, 3950 // unlawful or unlicensed copies of an Apple operating system, or to 3951 // circumvent, violate, or enable the circumvention or violation of, any 3952 // terms of an Apple operating system software license agreement. 3953 // 3954 // Please obtain a copy of the License at 3955 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3956 // 3957 // The Original Code and all software distributed under the License are 3958 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3959 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3960 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3961 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3962 // Please see the License for the specific language governing rights and 3963 // limitations under the License. 3964 // 3965 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3966 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3967 3968 // Copyright (c) 2000-2008 Apple Inc. All rights reserved. 3969 // 3970 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 3971 // 3972 // This file contains Original Code and/or Modifications of Original Code 3973 // as defined in and that are subject to the Apple Public Source License 3974 // Version 2.0 (the 'License'). You may not use this file except in 3975 // compliance with the License. The rights granted to you under the License 3976 // may not be used to create, or enable the creation or redistribution of, 3977 // unlawful or unlicensed copies of an Apple operating system, or to 3978 // circumvent, violate, or enable the circumvention or violation of, any 3979 // terms of an Apple operating system software license agreement. 3980 // 3981 // Please obtain a copy of the License at 3982 // http://www.opensource.apple.com/apsl/ and read it before using this file. 3983 // 3984 // The Original Code and all software distributed under the License are 3985 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 3986 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 3987 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 3988 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 3989 // Please see the License for the specific language governing rights and 3990 // limitations under the License. 3991 // 3992 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 3993 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 3994 // Copyright (c) 1990, 1993 3995 // The Regents of the University of California. All rights reserved. 3996 // 3997 // Redistribution and use in source and binary forms, with or without 3998 // modification, are permitted provided that the following conditions 3999 // are met: 4000 // 1. Redistributions of source code must retain the above copyright 4001 // notice, this list of conditions and the following disclaimer. 4002 // 2. Redistributions in binary form must reproduce the above copyright 4003 // notice, this list of conditions and the following disclaimer in the 4004 // documentation and/or other materials provided with the distribution. 4005 // 3. All advertising materials mentioning features or use of this software 4006 // must display the following acknowledgement: 4007 // This product includes software developed by the University of 4008 // California, Berkeley and its contributors. 4009 // 4. Neither the name of the University nor the names of its contributors 4010 // may be used to endorse or promote products derived from this software 4011 // without specific prior written permission. 4012 // 4013 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 4014 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4015 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4016 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 4017 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4018 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 4019 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4020 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 4021 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 4022 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4023 // SUCH DAMAGE. 4024 // 4025 // @(#)types.h 8.3 (Berkeley) 1/5/94 4026 4027 // Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved. 4028 // 4029 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4030 // 4031 // This file contains Original Code and/or Modifications of Original Code 4032 // as defined in and that are subject to the Apple Public Source License 4033 // Version 2.0 (the 'License'). You may not use this file except in 4034 // compliance with the License. The rights granted to you under the License 4035 // may not be used to create, or enable the creation or redistribution of, 4036 // unlawful or unlicensed copies of an Apple operating system, or to 4037 // circumvent, violate, or enable the circumvention or violation of, any 4038 // terms of an Apple operating system software license agreement. 4039 // 4040 // Please obtain a copy of the License at 4041 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4042 // 4043 // The Original Code and all software distributed under the License are 4044 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4045 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4046 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4047 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4048 // Please see the License for the specific language governing rights and 4049 // limitations under the License. 4050 // 4051 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4052 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 4053 // 4054 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4055 // 4056 // This file contains Original Code and/or Modifications of Original Code 4057 // as defined in and that are subject to the Apple Public Source License 4058 // Version 2.0 (the 'License'). You may not use this file except in 4059 // compliance with the License. The rights granted to you under the License 4060 // may not be used to create, or enable the creation or redistribution of, 4061 // unlawful or unlicensed copies of an Apple operating system, or to 4062 // circumvent, violate, or enable the circumvention or violation of, any 4063 // terms of an Apple operating system software license agreement. 4064 // 4065 // Please obtain a copy of the License at 4066 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4067 // 4068 // The Original Code and all software distributed under the License are 4069 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4070 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4071 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4072 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4073 // Please see the License for the specific language governing rights and 4074 // limitations under the License. 4075 // 4076 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4077 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4078 // Copyright (c) 1991, 1993 4079 // The Regents of the University of California. All rights reserved. 4080 // 4081 // This code is derived from software contributed to Berkeley by 4082 // Berkeley Software Design, Inc. 4083 // 4084 // Redistribution and use in source and binary forms, with or without 4085 // modification, are permitted provided that the following conditions 4086 // are met: 4087 // 1. Redistributions of source code must retain the above copyright 4088 // notice, this list of conditions and the following disclaimer. 4089 // 2. Redistributions in binary form must reproduce the above copyright 4090 // notice, this list of conditions and the following disclaimer in the 4091 // documentation and/or other materials provided with the distribution. 4092 // 3. All advertising materials mentioning features or use of this software 4093 // must display the following acknowledgement: 4094 // This product includes software developed by the University of 4095 // California, Berkeley and its contributors. 4096 // 4. Neither the name of the University nor the names of its contributors 4097 // may be used to endorse or promote products derived from this software 4098 // without specific prior written permission. 4099 // 4100 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 4101 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4102 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4103 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 4104 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4105 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 4106 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4107 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 4108 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 4109 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4110 // SUCH DAMAGE. 4111 // 4112 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 4113 4114 // Basic integral types. Omit the typedef if 4115 // not possible for a machine/compiler combination. 4116 // Copyright (c) 2012 Apple Inc. All rights reserved. 4117 // 4118 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4119 // 4120 // This file contains Original Code and/or Modifications of Original Code 4121 // as defined in and that are subject to the Apple Public Source License 4122 // Version 2.0 (the 'License'). You may not use this file except in 4123 // compliance with the License. The rights granted to you under the License 4124 // may not be used to create, or enable the creation or redistribution of, 4125 // unlawful or unlicensed copies of an Apple operating system, or to 4126 // circumvent, violate, or enable the circumvention or violation of, any 4127 // terms of an Apple operating system software license agreement. 4128 // 4129 // Please obtain a copy of the License at 4130 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4131 // 4132 // The Original Code and all software distributed under the License are 4133 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4134 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4135 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4136 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4137 // Please see the License for the specific language governing rights and 4138 // limitations under the License. 4139 // 4140 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4141 type int8_t = int8 /* _int8_t.h:30:33 */ 4142 // Copyright (c) 2012 Apple Inc. All rights reserved. 4143 // 4144 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4145 // 4146 // This file contains Original Code and/or Modifications of Original Code 4147 // as defined in and that are subject to the Apple Public Source License 4148 // Version 2.0 (the 'License'). You may not use this file except in 4149 // compliance with the License. The rights granted to you under the License 4150 // may not be used to create, or enable the creation or redistribution of, 4151 // unlawful or unlicensed copies of an Apple operating system, or to 4152 // circumvent, violate, or enable the circumvention or violation of, any 4153 // terms of an Apple operating system software license agreement. 4154 // 4155 // Please obtain a copy of the License at 4156 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4157 // 4158 // The Original Code and all software distributed under the License are 4159 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4160 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4161 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4162 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4163 // Please see the License for the specific language governing rights and 4164 // limitations under the License. 4165 // 4166 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4167 type int16_t = int16 /* _int16_t.h:30:33 */ 4168 // Copyright (c) 2012 Apple Inc. All rights reserved. 4169 // 4170 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4171 // 4172 // This file contains Original Code and/or Modifications of Original Code 4173 // as defined in and that are subject to the Apple Public Source License 4174 // Version 2.0 (the 'License'). You may not use this file except in 4175 // compliance with the License. The rights granted to you under the License 4176 // may not be used to create, or enable the creation or redistribution of, 4177 // unlawful or unlicensed copies of an Apple operating system, or to 4178 // circumvent, violate, or enable the circumvention or violation of, any 4179 // terms of an Apple operating system software license agreement. 4180 // 4181 // Please obtain a copy of the License at 4182 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4183 // 4184 // The Original Code and all software distributed under the License are 4185 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4186 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4187 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4188 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4189 // Please see the License for the specific language governing rights and 4190 // limitations under the License. 4191 // 4192 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4193 type int32_t = int32 /* _int32_t.h:30:33 */ 4194 // Copyright (c) 2012 Apple Inc. All rights reserved. 4195 // 4196 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4197 // 4198 // This file contains Original Code and/or Modifications of Original Code 4199 // as defined in and that are subject to the Apple Public Source License 4200 // Version 2.0 (the 'License'). You may not use this file except in 4201 // compliance with the License. The rights granted to you under the License 4202 // may not be used to create, or enable the creation or redistribution of, 4203 // unlawful or unlicensed copies of an Apple operating system, or to 4204 // circumvent, violate, or enable the circumvention or violation of, any 4205 // terms of an Apple operating system software license agreement. 4206 // 4207 // Please obtain a copy of the License at 4208 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4209 // 4210 // The Original Code and all software distributed under the License are 4211 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4212 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4213 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4214 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4215 // Please see the License for the specific language governing rights and 4216 // limitations under the License. 4217 // 4218 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4219 type int64_t = int64 /* _int64_t.h:30:33 */ 4220 4221 // Copyright (c) 2016 Apple Inc. All rights reserved. 4222 // 4223 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4224 // 4225 // This file contains Original Code and/or Modifications of Original Code 4226 // as defined in and that are subject to the Apple Public Source License 4227 // Version 2.0 (the 'License'). You may not use this file except in 4228 // compliance with the License. The rights granted to you under the License 4229 // may not be used to create, or enable the creation or redistribution of, 4230 // unlawful or unlicensed copies of an Apple operating system, or to 4231 // circumvent, violate, or enable the circumvention or violation of, any 4232 // terms of an Apple operating system software license agreement. 4233 // 4234 // Please obtain a copy of the License at 4235 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4236 // 4237 // The Original Code and all software distributed under the License are 4238 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4239 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4240 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4241 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4242 // Please see the License for the specific language governing rights and 4243 // limitations under the License. 4244 // 4245 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4246 type u_int8_t = uint8 /* _u_int8_t.h:30:33 */ 4247 // Copyright (c) 2012 Apple Inc. All rights reserved. 4248 // 4249 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4250 // 4251 // This file contains Original Code and/or Modifications of Original Code 4252 // as defined in and that are subject to the Apple Public Source License 4253 // Version 2.0 (the 'License'). You may not use this file except in 4254 // compliance with the License. The rights granted to you under the License 4255 // may not be used to create, or enable the creation or redistribution of, 4256 // unlawful or unlicensed copies of an Apple operating system, or to 4257 // circumvent, violate, or enable the circumvention or violation of, any 4258 // terms of an Apple operating system software license agreement. 4259 // 4260 // Please obtain a copy of the License at 4261 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4262 // 4263 // The Original Code and all software distributed under the License are 4264 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4265 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4266 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4267 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4268 // Please see the License for the specific language governing rights and 4269 // limitations under the License. 4270 // 4271 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4272 type u_int16_t = uint16 /* _u_int16_t.h:30:41 */ 4273 // Copyright (c) 2012 Apple Inc. All rights reserved. 4274 // 4275 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4276 // 4277 // This file contains Original Code and/or Modifications of Original Code 4278 // as defined in and that are subject to the Apple Public Source License 4279 // Version 2.0 (the 'License'). You may not use this file except in 4280 // compliance with the License. The rights granted to you under the License 4281 // may not be used to create, or enable the creation or redistribution of, 4282 // unlawful or unlicensed copies of an Apple operating system, or to 4283 // circumvent, violate, or enable the circumvention or violation of, any 4284 // terms of an Apple operating system software license agreement. 4285 // 4286 // Please obtain a copy of the License at 4287 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4288 // 4289 // The Original Code and all software distributed under the License are 4290 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4291 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4292 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4293 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4294 // Please see the License for the specific language governing rights and 4295 // limitations under the License. 4296 // 4297 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4298 type u_int32_t = uint32 /* _u_int32_t.h:30:33 */ 4299 // Copyright (c) 2012 Apple Inc. All rights reserved. 4300 // 4301 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4302 // 4303 // This file contains Original Code and/or Modifications of Original Code 4304 // as defined in and that are subject to the Apple Public Source License 4305 // Version 2.0 (the 'License'). You may not use this file except in 4306 // compliance with the License. The rights granted to you under the License 4307 // may not be used to create, or enable the creation or redistribution of, 4308 // unlawful or unlicensed copies of an Apple operating system, or to 4309 // circumvent, violate, or enable the circumvention or violation of, any 4310 // terms of an Apple operating system software license agreement. 4311 // 4312 // Please obtain a copy of the License at 4313 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4314 // 4315 // The Original Code and all software distributed under the License are 4316 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4317 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4318 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4319 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4320 // Please see the License for the specific language governing rights and 4321 // limitations under the License. 4322 // 4323 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4324 type u_int64_t = uint64 /* _u_int64_t.h:30:33 */ 4325 4326 type register_t = int64_t /* types.h:87:33 */ 4327 4328 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4329 // 4330 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4331 // 4332 // This file contains Original Code and/or Modifications of Original Code 4333 // as defined in and that are subject to the Apple Public Source License 4334 // Version 2.0 (the 'License'). You may not use this file except in 4335 // compliance with the License. The rights granted to you under the License 4336 // may not be used to create, or enable the creation or redistribution of, 4337 // unlawful or unlicensed copies of an Apple operating system, or to 4338 // circumvent, violate, or enable the circumvention or violation of, any 4339 // terms of an Apple operating system software license agreement. 4340 // 4341 // Please obtain a copy of the License at 4342 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4343 // 4344 // The Original Code and all software distributed under the License are 4345 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4346 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4347 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4348 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4349 // Please see the License for the specific language governing rights and 4350 // limitations under the License. 4351 // 4352 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4353 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4354 // 4355 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4356 // 4357 // This file contains Original Code and/or Modifications of Original Code 4358 // as defined in and that are subject to the Apple Public Source License 4359 // Version 2.0 (the 'License'). You may not use this file except in 4360 // compliance with the License. The rights granted to you under the License 4361 // may not be used to create, or enable the creation or redistribution of, 4362 // unlawful or unlicensed copies of an Apple operating system, or to 4363 // circumvent, violate, or enable the circumvention or violation of, any 4364 // terms of an Apple operating system software license agreement. 4365 // 4366 // Please obtain a copy of the License at 4367 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4368 // 4369 // The Original Code and all software distributed under the License are 4370 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4371 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4372 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4373 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4374 // Please see the License for the specific language governing rights and 4375 // limitations under the License. 4376 // 4377 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4378 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4379 4380 type intptr_t = int64 /* _intptr_t.h:32:33 */ 4381 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4382 // 4383 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4384 // 4385 // This file contains Original Code and/or Modifications of Original Code 4386 // as defined in and that are subject to the Apple Public Source License 4387 // Version 2.0 (the 'License'). You may not use this file except in 4388 // compliance with the License. The rights granted to you under the License 4389 // may not be used to create, or enable the creation or redistribution of, 4390 // unlawful or unlicensed copies of an Apple operating system, or to 4391 // circumvent, violate, or enable the circumvention or violation of, any 4392 // terms of an Apple operating system software license agreement. 4393 // 4394 // Please obtain a copy of the License at 4395 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4396 // 4397 // The Original Code and all software distributed under the License are 4398 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4399 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4400 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4401 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4402 // Please see the License for the specific language governing rights and 4403 // limitations under the License. 4404 // 4405 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4406 type uintptr_t = uint64 /* _uintptr_t.h:30:33 */ 4407 4408 // These types are used for reserving the largest possible size. 4409 type user_addr_t = u_int64_t /* types.h:97:33 */ 4410 type user_size_t = u_int64_t /* types.h:98:33 */ 4411 type user_ssize_t = int64_t /* types.h:99:33 */ 4412 type user_long_t = int64_t /* types.h:100:33 */ 4413 type user_ulong_t = u_int64_t /* types.h:101:33 */ 4414 type user_time_t = int64_t /* types.h:102:33 */ 4415 type user_off_t = int64_t /* types.h:103:33 */ 4416 4417 // This defines the size of syscall arguments after copying into the kernel: 4418 type syscall_arg_t = u_int64_t /* types.h:111:33 */ 4419 4420 type fpos_t = int64 /* _stdio.h:81:25 */ 4421 4422 // NB: to fit things in six character monocase externals, the stdio 4423 // code uses the prefix `__s' for stdio objects, typically followed 4424 // by a three-character attempt at a mnemonic. 4425 4426 // stdio buffers 4427 type __sbuf = struct { 4428 _base uintptr 4429 _size int32 4430 _ [4]byte 4431 } /* _stdio.h:92:1 */ 4432 4433 // stdio state variables. 4434 // 4435 // The following always hold: 4436 // 4437 // if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR), 4438 // _lbfsize is -_bf._size, else _lbfsize is 0 4439 // if _flags&__SRD, _w is 0 4440 // if _flags&__SWR, _r is 0 4441 // 4442 // This ensures that the getc and putc macros (or inline functions) never 4443 // try to write or read from a file that is in `read' or `write' mode. 4444 // (Moreover, they can, and do, automatically switch from read mode to 4445 // write mode, and back, on "r+" and "w+" files.) 4446 // 4447 // _lbfsize is used only to make the inline line-buffered output stream 4448 // code as compact as possible. 4449 // 4450 // _ub, _up, and _ur are used when ungetc() pushes back more characters 4451 // than fit in the current _bf, or when ungetc() pushes back a character 4452 // that does not match the previous one in _bf. When this happens, 4453 // _ub._base becomes non-nil (i.e., a stream has ungetc() data iff 4454 // _ub._base!=NULL) and _up and _ur save the current values of _p and _r. 4455 // 4456 // NB: see WARNING above before changing the layout of this structure! 4457 type __sFILE = struct { 4458 _p uintptr 4459 _r int32 4460 _w int32 4461 _flags int16 4462 _file int16 4463 _ [4]byte 4464 _bf struct { 4465 _base uintptr 4466 _size int32 4467 _ [4]byte 4468 } 4469 _lbfsize int32 4470 _ [4]byte 4471 _cookie uintptr 4472 _close uintptr 4473 _read uintptr 4474 _seek uintptr 4475 _write uintptr 4476 _ub struct { 4477 _base uintptr 4478 _size int32 4479 _ [4]byte 4480 } 4481 _extra uintptr 4482 _ur int32 4483 _ubuf [3]uint8 4484 _nbuf [1]uint8 4485 _lb struct { 4486 _base uintptr 4487 _size int32 4488 _ [4]byte 4489 } 4490 _blksize int32 4491 _ [4]byte 4492 _offset fpos_t 4493 } /* _stdio.h:126:9 */ 4494 4495 // stdio state variables. 4496 // 4497 // The following always hold: 4498 // 4499 // if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR), 4500 // _lbfsize is -_bf._size, else _lbfsize is 0 4501 // if _flags&__SRD, _w is 0 4502 // if _flags&__SWR, _r is 0 4503 // 4504 // This ensures that the getc and putc macros (or inline functions) never 4505 // try to write or read from a file that is in `read' or `write' mode. 4506 // (Moreover, they can, and do, automatically switch from read mode to 4507 // write mode, and back, on "r+" and "w+" files.) 4508 // 4509 // _lbfsize is used only to make the inline line-buffered output stream 4510 // code as compact as possible. 4511 // 4512 // _ub, _up, and _ur are used when ungetc() pushes back more characters 4513 // than fit in the current _bf, or when ungetc() pushes back a character 4514 // that does not match the previous one in _bf. When this happens, 4515 // _ub._base becomes non-nil (i.e., a stream has ungetc() data iff 4516 // _ub._base!=NULL) and _up and _ur save the current values of _p and _r. 4517 // 4518 // NB: see WARNING above before changing the layout of this structure! 4519 type FILE = __sFILE /* _stdio.h:157:3 */ 4520 4521 // Additional functionality provided by: 4522 // POSIX.1-2001 4523 // ISO C99 4524 4525 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4526 // 4527 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4528 // 4529 // This file contains Original Code and/or Modifications of Original Code 4530 // as defined in and that are subject to the Apple Public Source License 4531 // Version 2.0 (the 'License'). You may not use this file except in 4532 // compliance with the License. The rights granted to you under the License 4533 // may not be used to create, or enable the creation or redistribution of, 4534 // unlawful or unlicensed copies of an Apple operating system, or to 4535 // circumvent, violate, or enable the circumvention or violation of, any 4536 // terms of an Apple operating system software license agreement. 4537 // 4538 // Please obtain a copy of the License at 4539 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4540 // 4541 // The Original Code and all software distributed under the License are 4542 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4543 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4544 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4545 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4546 // Please see the License for the specific language governing rights and 4547 // limitations under the License. 4548 // 4549 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4550 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4551 // 4552 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4553 // 4554 // This file contains Original Code and/or Modifications of Original Code 4555 // as defined in and that are subject to the Apple Public Source License 4556 // Version 2.0 (the 'License'). You may not use this file except in 4557 // compliance with the License. The rights granted to you under the License 4558 // may not be used to create, or enable the creation or redistribution of, 4559 // unlawful or unlicensed copies of an Apple operating system, or to 4560 // circumvent, violate, or enable the circumvention or violation of, any 4561 // terms of an Apple operating system software license agreement. 4562 // 4563 // Please obtain a copy of the License at 4564 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4565 // 4566 // The Original Code and all software distributed under the License are 4567 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4568 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4569 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4570 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4571 // Please see the License for the specific language governing rights and 4572 // limitations under the License. 4573 // 4574 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4575 4576 type off_t = int64 /* _off_t.h:31:33 */ 4577 4578 // Additional functionality provided by: 4579 // POSIX.1-2008 4580 4581 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4582 // 4583 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4584 // 4585 // This file contains Original Code and/or Modifications of Original Code 4586 // as defined in and that are subject to the Apple Public Source License 4587 // Version 2.0 (the 'License'). You may not use this file except in 4588 // compliance with the License. The rights granted to you under the License 4589 // may not be used to create, or enable the creation or redistribution of, 4590 // unlawful or unlicensed copies of an Apple operating system, or to 4591 // circumvent, violate, or enable the circumvention or violation of, any 4592 // terms of an Apple operating system software license agreement. 4593 // 4594 // Please obtain a copy of the License at 4595 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4596 // 4597 // The Original Code and all software distributed under the License are 4598 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4599 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4600 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4601 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4602 // Please see the License for the specific language governing rights and 4603 // limitations under the License. 4604 // 4605 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4606 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 4607 // 4608 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4609 // 4610 // This file contains Original Code and/or Modifications of Original Code 4611 // as defined in and that are subject to the Apple Public Source License 4612 // Version 2.0 (the 'License'). You may not use this file except in 4613 // compliance with the License. The rights granted to you under the License 4614 // may not be used to create, or enable the creation or redistribution of, 4615 // unlawful or unlicensed copies of an Apple operating system, or to 4616 // circumvent, violate, or enable the circumvention or violation of, any 4617 // terms of an Apple operating system software license agreement. 4618 // 4619 // Please obtain a copy of the License at 4620 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4621 // 4622 // The Original Code and all software distributed under the License are 4623 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4624 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4625 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4626 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4627 // Please see the License for the specific language governing rights and 4628 // limitations under the License. 4629 // 4630 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4631 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4632 type ssize_t = int64 /* _ssize_t.h:31:33 */ 4633 4634 // Copyright (c) 2000, 2002-2006, 2008-2010, 2012 Apple Inc. All rights reserved. 4635 // 4636 // @APPLE_LICENSE_HEADER_START@ 4637 // 4638 // This file contains Original Code and/or Modifications of Original Code 4639 // as defined in and that are subject to the Apple Public Source License 4640 // Version 2.0 (the 'License'). You may not use this file except in 4641 // compliance with the License. Please obtain a copy of the License at 4642 // http://www.opensource.apple.com/apsl/ and read it before using this 4643 // file. 4644 // 4645 // The Original Code and all software distributed under the License are 4646 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4647 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4648 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4649 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4650 // Please see the License for the specific language governing rights and 4651 // limitations under the License. 4652 // 4653 // @APPLE_LICENSE_HEADER_END@ 4654 // - 4655 // Copyright (c) 1998-1999 Apple Computer, Inc. All Rights Reserved 4656 // Copyright (c) 1991, 1993, 1994 4657 // The Regents of the University of California. All rights reserved. 4658 // 4659 // Redistribution and use in source and binary forms, with or without 4660 // modification, are permitted provided that the following conditions 4661 // are met: 4662 // 1. Redistributions of source code must retain the above copyright 4663 // notice, this list of conditions and the following disclaimer. 4664 // 2. Redistributions in binary form must reproduce the above copyright 4665 // notice, this list of conditions and the following disclaimer in the 4666 // documentation and/or other materials provided with the distribution. 4667 // 3. All advertising materials mentioning features or use of this software 4668 // must display the following acknowledgement: 4669 // This product includes software developed by the University of 4670 // California, Berkeley and its contributors. 4671 // 4. Neither the name of the University nor the names of its contributors 4672 // may be used to endorse or promote products derived from this software 4673 // without specific prior written permission. 4674 // 4675 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 4676 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4677 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4678 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 4679 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4680 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 4681 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4682 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 4683 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 4684 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4685 // SUCH DAMAGE. 4686 // 4687 // @(#)unistd.h 8.12 (Berkeley) 4/27/95 4688 // 4689 // Copyright (c) 1998 Apple Compter, Inc. 4690 // All Rights Reserved 4691 4692 // History: 4693 // 7/14/99 EKN at Apple fixed getdirentriesattr from getdirentryattr 4694 // 3/26/98 CHW at Apple added real interface to searchfs call 4695 // 3/5/98 CHW at Apple added hfs semantic system calls headers 4696 4697 // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved. 4698 // 4699 // @APPLE_LICENSE_HEADER_START@ 4700 // 4701 // This file contains Original Code and/or Modifications of Original Code 4702 // as defined in and that are subject to the Apple Public Source License 4703 // Version 2.0 (the 'License'). You may not use this file except in 4704 // compliance with the License. Please obtain a copy of the License at 4705 // http://www.opensource.apple.com/apsl/ and read it before using this 4706 // file. 4707 // 4708 // The Original Code and all software distributed under the License are 4709 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4710 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4711 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4712 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4713 // Please see the License for the specific language governing rights and 4714 // limitations under the License. 4715 // 4716 // @APPLE_LICENSE_HEADER_END@ 4717 4718 // Copyright (c) 2000-2013 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 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 4744 // Copyright (c) 1989, 1993 4745 // The Regents of the University of California. All rights reserved. 4746 // 4747 // Redistribution and use in source and binary forms, with or without 4748 // modification, are permitted provided that the following conditions 4749 // are met: 4750 // 1. Redistributions of source code must retain the above copyright 4751 // notice, this list of conditions and the following disclaimer. 4752 // 2. Redistributions in binary form must reproduce the above copyright 4753 // notice, this list of conditions and the following disclaimer in the 4754 // documentation and/or other materials provided with the distribution. 4755 // 3. All advertising materials mentioning features or use of this software 4756 // must display the following acknowledgement: 4757 // This product includes software developed by the University of 4758 // California, Berkeley and its contributors. 4759 // 4. Neither the name of the University nor the names of its contributors 4760 // may be used to endorse or promote products derived from this software 4761 // without specific prior written permission. 4762 // 4763 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 4764 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4765 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4766 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 4767 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4768 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 4769 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4770 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 4771 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 4772 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4773 // SUCH DAMAGE. 4774 // 4775 // @(#)unistd.h 8.2 (Berkeley) 1/7/94 4776 4777 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 4778 // 4779 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4780 // 4781 // This file contains Original Code and/or Modifications of Original Code 4782 // as defined in and that are subject to the Apple Public Source License 4783 // Version 2.0 (the 'License'). You may not use this file except in 4784 // compliance with the License. The rights granted to you under the License 4785 // may not be used to create, or enable the creation or redistribution of, 4786 // unlawful or unlicensed copies of an Apple operating system, or to 4787 // circumvent, violate, or enable the circumvention or violation of, any 4788 // terms of an Apple operating system software license agreement. 4789 // 4790 // Please obtain a copy of the License at 4791 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4792 // 4793 // The Original Code and all software distributed under the License are 4794 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4795 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4796 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4797 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4798 // Please see the License for the specific language governing rights and 4799 // limitations under the License. 4800 // 4801 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4802 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4803 // Copyright (c) 1991, 1993 4804 // The Regents of the University of California. All rights reserved. 4805 // 4806 // This code is derived from software contributed to Berkeley by 4807 // Berkeley Software Design, Inc. 4808 // 4809 // Redistribution and use in source and binary forms, with or without 4810 // modification, are permitted provided that the following conditions 4811 // are met: 4812 // 1. Redistributions of source code must retain the above copyright 4813 // notice, this list of conditions and the following disclaimer. 4814 // 2. Redistributions in binary form must reproduce the above copyright 4815 // notice, this list of conditions and the following disclaimer in the 4816 // documentation and/or other materials provided with the distribution. 4817 // 3. All advertising materials mentioning features or use of this software 4818 // must display the following acknowledgement: 4819 // This product includes software developed by the University of 4820 // California, Berkeley and its contributors. 4821 // 4. Neither the name of the University nor the names of its contributors 4822 // may be used to endorse or promote products derived from this software 4823 // without specific prior written permission. 4824 // 4825 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 4826 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4827 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4828 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 4829 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4830 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 4831 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4832 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 4833 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 4834 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4835 // SUCH DAMAGE. 4836 // 4837 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 4838 4839 // Although we have saved user/group IDs, we do not use them in setuid 4840 // as described in POSIX 1003.1, because the feature does not work for 4841 // root. We use the saved IDs in seteuid/setegid, which are not currently 4842 // part of the POSIX 1003.1 specification. 4843 4844 // execution-time symbolic constants 4845 // may disable terminal special characters 4846 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4847 // 4848 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4849 // 4850 // This file contains Original Code and/or Modifications of Original Code 4851 // as defined in and that are subject to the Apple Public Source License 4852 // Version 2.0 (the 'License'). You may not use this file except in 4853 // compliance with the License. The rights granted to you under the License 4854 // may not be used to create, or enable the creation or redistribution of, 4855 // unlawful or unlicensed copies of an Apple operating system, or to 4856 // circumvent, violate, or enable the circumvention or violation of, any 4857 // terms of an Apple operating system software license agreement. 4858 // 4859 // Please obtain a copy of the License at 4860 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4861 // 4862 // The Original Code and all software distributed under the License are 4863 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4864 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4865 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4866 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4867 // Please see the License for the specific language governing rights and 4868 // limitations under the License. 4869 // 4870 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4871 4872 // access function 4873 4874 // Extended access functions. 4875 // Note that we depend on these matching the definitions in sys/kauth.h, 4876 // but with the bits shifted left by 8. 4877 4878 // whence values for lseek(2) 4879 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 4880 // 4881 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4882 // 4883 // This file contains Original Code and/or Modifications of Original Code 4884 // as defined in and that are subject to the Apple Public Source License 4885 // Version 2.0 (the 'License'). You may not use this file except in 4886 // compliance with the License. The rights granted to you under the License 4887 // may not be used to create, or enable the creation or redistribution of, 4888 // unlawful or unlicensed copies of an Apple operating system, or to 4889 // circumvent, violate, or enable the circumvention or violation of, any 4890 // terms of an Apple operating system software license agreement. 4891 // 4892 // Please obtain a copy of the License at 4893 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4894 // 4895 // The Original Code and all software distributed under the License are 4896 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4897 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4898 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4899 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4900 // Please see the License for the specific language governing rights and 4901 // limitations under the License. 4902 // 4903 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4904 4905 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 4906 // 4907 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4908 // 4909 // This file contains Original Code and/or Modifications of Original Code 4910 // as defined in and that are subject to the Apple Public Source License 4911 // Version 2.0 (the 'License'). You may not use this file except in 4912 // compliance with the License. The rights granted to you under the License 4913 // may not be used to create, or enable the creation or redistribution of, 4914 // unlawful or unlicensed copies of an Apple operating system, or to 4915 // circumvent, violate, or enable the circumvention or violation of, any 4916 // terms of an Apple operating system software license agreement. 4917 // 4918 // Please obtain a copy of the License at 4919 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4920 // 4921 // The Original Code and all software distributed under the License are 4922 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4923 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 4924 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 4925 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 4926 // Please see the License for the specific language governing rights and 4927 // limitations under the License. 4928 // 4929 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 4930 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 4931 // Copyright (c) 1991, 1993 4932 // The Regents of the University of California. All rights reserved. 4933 // 4934 // This code is derived from software contributed to Berkeley by 4935 // Berkeley Software Design, Inc. 4936 // 4937 // Redistribution and use in source and binary forms, with or without 4938 // modification, are permitted provided that the following conditions 4939 // are met: 4940 // 1. Redistributions of source code must retain the above copyright 4941 // notice, this list of conditions and the following disclaimer. 4942 // 2. Redistributions in binary form must reproduce the above copyright 4943 // notice, this list of conditions and the following disclaimer in the 4944 // documentation and/or other materials provided with the distribution. 4945 // 3. All advertising materials mentioning features or use of this software 4946 // must display the following acknowledgement: 4947 // This product includes software developed by the University of 4948 // California, Berkeley and its contributors. 4949 // 4. Neither the name of the University nor the names of its contributors 4950 // may be used to endorse or promote products derived from this software 4951 // without specific prior written permission. 4952 // 4953 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 4954 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4955 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4956 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 4957 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4958 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 4959 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4960 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 4961 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 4962 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4963 // SUCH DAMAGE. 4964 // 4965 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 4966 4967 // whence values for lseek(2) 4968 4969 // whence values for lseek(2); renamed by POSIX 1003.1 4970 4971 type accessx_descriptor = struct { 4972 ad_name_offset uint32 4973 ad_flags int32 4974 ad_pad [2]int32 4975 } /* unistd.h:132:1 */ 4976 4977 // configurable pathname variables 4978 4979 // configurable system strings 4980 4981 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 4982 // 4983 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 4984 // 4985 // This file contains Original Code and/or Modifications of Original Code 4986 // as defined in and that are subject to the Apple Public Source License 4987 // Version 2.0 (the 'License'). You may not use this file except in 4988 // compliance with the License. The rights granted to you under the License 4989 // may not be used to create, or enable the creation or redistribution of, 4990 // unlawful or unlicensed copies of an Apple operating system, or to 4991 // circumvent, violate, or enable the circumvention or violation of, any 4992 // terms of an Apple operating system software license agreement. 4993 // 4994 // Please obtain a copy of the License at 4995 // http://www.opensource.apple.com/apsl/ and read it before using this file. 4996 // 4997 // The Original Code and all software distributed under the License are 4998 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 4999 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5000 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5001 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5002 // Please see the License for the specific language governing rights and 5003 // limitations under the License. 5004 // 5005 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5006 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5007 // 5008 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5009 // 5010 // This file contains Original Code and/or Modifications of Original Code 5011 // as defined in and that are subject to the Apple Public Source License 5012 // Version 2.0 (the 'License'). You may not use this file except in 5013 // compliance with the License. The rights granted to you under the License 5014 // may not be used to create, or enable the creation or redistribution of, 5015 // unlawful or unlicensed copies of an Apple operating system, or to 5016 // circumvent, violate, or enable the circumvention or violation of, any 5017 // terms of an Apple operating system software license agreement. 5018 // 5019 // Please obtain a copy of the License at 5020 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5021 // 5022 // The Original Code and all software distributed under the License are 5023 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5024 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5025 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5026 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5027 // Please see the License for the specific language governing rights and 5028 // limitations under the License. 5029 // 5030 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5031 // Copyright (c) 2012 Apple Inc. All rights reserved. 5032 // 5033 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5034 // 5035 // This file contains Original Code and/or Modifications of Original Code 5036 // as defined in and that are subject to the Apple Public Source License 5037 // Version 2.0 (the 'License'). You may not use this file except in 5038 // compliance with the License. The rights granted to you under the License 5039 // may not be used to create, or enable the creation or redistribution of, 5040 // unlawful or unlicensed copies of an Apple operating system, or to 5041 // circumvent, violate, or enable the circumvention or violation of, any 5042 // terms of an Apple operating system software license agreement. 5043 // 5044 // Please obtain a copy of the License at 5045 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5046 // 5047 // The Original Code and all software distributed under the License are 5048 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5049 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5050 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5051 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5052 // Please see the License for the specific language governing rights and 5053 // limitations under the License. 5054 // 5055 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5056 5057 type uint64_t = uint64 /* _uint64_t.h:31:28 */ 5058 // Copyright (c) 2012 Apple Inc. All rights reserved. 5059 // 5060 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5061 // 5062 // This file contains Original Code and/or Modifications of Original Code 5063 // as defined in and that are subject to the Apple Public Source License 5064 // Version 2.0 (the 'License'). You may not use this file except in 5065 // compliance with the License. The rights granted to you under the License 5066 // may not be used to create, or enable the creation or redistribution of, 5067 // unlawful or unlicensed copies of an Apple operating system, or to 5068 // circumvent, violate, or enable the circumvention or violation of, any 5069 // terms of an Apple operating system software license agreement. 5070 // 5071 // Please obtain a copy of the License at 5072 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5073 // 5074 // The Original Code and all software distributed under the License are 5075 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5076 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5077 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5078 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5079 // Please see the License for the specific language governing rights and 5080 // limitations under the License. 5081 // 5082 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5083 5084 type uint32_t = uint32 /* _uint32_t.h:31:22 */ 5085 5086 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5087 // 5088 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5089 // 5090 // This file contains Original Code and/or Modifications of Original Code 5091 // as defined in and that are subject to the Apple Public Source License 5092 // Version 2.0 (the 'License'). You may not use this file except in 5093 // compliance with the License. The rights granted to you under the License 5094 // may not be used to create, or enable the creation or redistribution of, 5095 // unlawful or unlicensed copies of an Apple operating system, or to 5096 // circumvent, violate, or enable the circumvention or violation of, any 5097 // terms of an Apple operating system software license agreement. 5098 // 5099 // Please obtain a copy of the License at 5100 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5101 // 5102 // The Original Code and all software distributed under the License are 5103 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5104 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5105 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5106 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5107 // Please see the License for the specific language governing rights and 5108 // limitations under the License. 5109 // 5110 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5111 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5112 // 5113 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5114 // 5115 // This file contains Original Code and/or Modifications of Original Code 5116 // as defined in and that are subject to the Apple Public Source License 5117 // Version 2.0 (the 'License'). You may not use this file except in 5118 // compliance with the License. The rights granted to you under the License 5119 // may not be used to create, or enable the creation or redistribution of, 5120 // unlawful or unlicensed copies of an Apple operating system, or to 5121 // circumvent, violate, or enable the circumvention or violation of, any 5122 // terms of an Apple operating system software license agreement. 5123 // 5124 // Please obtain a copy of the License at 5125 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5126 // 5127 // The Original Code and all software distributed under the License are 5128 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5129 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5130 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5131 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5132 // Please see the License for the specific language governing rights and 5133 // limitations under the License. 5134 // 5135 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5136 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5137 // 5138 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5139 // 5140 // This file contains Original Code and/or Modifications of Original Code 5141 // as defined in and that are subject to the Apple Public Source License 5142 // Version 2.0 (the 'License'). You may not use this file except in 5143 // compliance with the License. The rights granted to you under the License 5144 // may not be used to create, or enable the creation or redistribution of, 5145 // unlawful or unlicensed copies of an Apple operating system, or to 5146 // circumvent, violate, or enable the circumvention or violation of, any 5147 // terms of an Apple operating system software license agreement. 5148 // 5149 // Please obtain a copy of the License at 5150 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5151 // 5152 // The Original Code and all software distributed under the License are 5153 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5154 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5155 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5156 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5157 // Please see the License for the specific language governing rights and 5158 // limitations under the License. 5159 // 5160 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5161 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5162 // 5163 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5164 // 5165 // This file contains Original Code and/or Modifications of Original Code 5166 // as defined in and that are subject to the Apple Public Source License 5167 // Version 2.0 (the 'License'). You may not use this file except in 5168 // compliance with the License. The rights granted to you under the License 5169 // may not be used to create, or enable the creation or redistribution of, 5170 // unlawful or unlicensed copies of an Apple operating system, or to 5171 // circumvent, violate, or enable the circumvention or violation of, any 5172 // terms of an Apple operating system software license agreement. 5173 // 5174 // Please obtain a copy of the License at 5175 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5176 // 5177 // The Original Code and all software distributed under the License are 5178 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5179 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5180 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5181 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5182 // Please see the License for the specific language governing rights and 5183 // limitations under the License. 5184 // 5185 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5186 5187 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5188 // 5189 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5190 // 5191 // This file contains Original Code and/or Modifications of Original Code 5192 // as defined in and that are subject to the Apple Public Source License 5193 // Version 2.0 (the 'License'). You may not use this file except in 5194 // compliance with the License. The rights granted to you under the License 5195 // may not be used to create, or enable the creation or redistribution of, 5196 // unlawful or unlicensed copies of an Apple operating system, or to 5197 // circumvent, violate, or enable the circumvention or violation of, any 5198 // terms of an Apple operating system software license agreement. 5199 // 5200 // Please obtain a copy of the License at 5201 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5202 // 5203 // The Original Code and all software distributed under the License are 5204 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5205 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5206 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5207 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5208 // Please see the License for the specific language governing rights and 5209 // limitations under the License. 5210 // 5211 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5212 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5213 // 5214 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5215 // 5216 // This file contains Original Code and/or Modifications of Original Code 5217 // as defined in and that are subject to the Apple Public Source License 5218 // Version 2.0 (the 'License'). You may not use this file except in 5219 // compliance with the License. The rights granted to you under the License 5220 // may not be used to create, or enable the creation or redistribution of, 5221 // unlawful or unlicensed copies of an Apple operating system, or to 5222 // circumvent, violate, or enable the circumvention or violation of, any 5223 // terms of an Apple operating system software license agreement. 5224 // 5225 // Please obtain a copy of the License at 5226 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5227 // 5228 // The Original Code and all software distributed under the License are 5229 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5230 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5231 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5232 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5233 // Please see the License for the specific language governing rights and 5234 // limitations under the License. 5235 // 5236 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5237 5238 type uid_t = uint32 /* _uid_t.h:31:31 */ 5239 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5240 // 5241 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5242 // 5243 // This file contains Original Code and/or Modifications of Original Code 5244 // as defined in and that are subject to the Apple Public Source License 5245 // Version 2.0 (the 'License'). You may not use this file except in 5246 // compliance with the License. The rights granted to you under the License 5247 // may not be used to create, or enable the creation or redistribution of, 5248 // unlawful or unlicensed copies of an Apple operating system, or to 5249 // circumvent, violate, or enable the circumvention or violation of, any 5250 // terms of an Apple operating system software license agreement. 5251 // 5252 // Please obtain a copy of the License at 5253 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5254 // 5255 // The Original Code and all software distributed under the License are 5256 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5257 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5258 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5259 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5260 // Please see the License for the specific language governing rights and 5261 // limitations under the License. 5262 // 5263 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5264 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5265 // 5266 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5267 // 5268 // This file contains Original Code and/or Modifications of Original Code 5269 // as defined in and that are subject to the Apple Public Source License 5270 // Version 2.0 (the 'License'). You may not use this file except in 5271 // compliance with the License. The rights granted to you under the License 5272 // may not be used to create, or enable the creation or redistribution of, 5273 // unlawful or unlicensed copies of an Apple operating system, or to 5274 // circumvent, violate, or enable the circumvention or violation of, any 5275 // terms of an Apple operating system software license agreement. 5276 // 5277 // Please obtain a copy of the License at 5278 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5279 // 5280 // The Original Code and all software distributed under the License are 5281 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5282 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5283 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5284 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5285 // Please see the License for the specific language governing rights and 5286 // limitations under the License. 5287 // 5288 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5289 5290 type gid_t = uint32 /* _gid_t.h:31:25 */ 5291 5292 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 5293 // 5294 // @APPLE_LICENSE_HEADER_START@ 5295 // 5296 // This file contains Original Code and/or Modifications of Original Code 5297 // as defined in and that are subject to the Apple Public Source License 5298 // Version 2.0 (the 'License'). You may not use this file except in 5299 // compliance with the License. Please obtain a copy of the License at 5300 // http://www.opensource.apple.com/apsl/ and read it before using this 5301 // file. 5302 // 5303 // The Original Code and all software distributed under the License are 5304 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5305 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5306 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5307 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5308 // Please see the License for the specific language governing rights and 5309 // limitations under the License. 5310 // 5311 // @APPLE_LICENSE_HEADER_END@ 5312 5313 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5314 // 5315 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5316 // 5317 // This file contains Original Code and/or Modifications of Original Code 5318 // as defined in and that are subject to the Apple Public Source License 5319 // Version 2.0 (the 'License'). You may not use this file except in 5320 // compliance with the License. The rights granted to you under the License 5321 // may not be used to create, or enable the creation or redistribution of, 5322 // unlawful or unlicensed copies of an Apple operating system, or to 5323 // circumvent, violate, or enable the circumvention or violation of, any 5324 // terms of an Apple operating system software license agreement. 5325 // 5326 // Please obtain a copy of the License at 5327 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5328 // 5329 // The Original Code and all software distributed under the License are 5330 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5331 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5332 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5333 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5334 // Please see the License for the specific language governing rights and 5335 // limitations under the License. 5336 // 5337 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5338 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5339 // 5340 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5341 // 5342 // This file contains Original Code and/or Modifications of Original Code 5343 // as defined in and that are subject to the Apple Public Source License 5344 // Version 2.0 (the 'License'). You may not use this file except in 5345 // compliance with the License. The rights granted to you under the License 5346 // may not be used to create, or enable the creation or redistribution of, 5347 // unlawful or unlicensed copies of an Apple operating system, or to 5348 // circumvent, violate, or enable the circumvention or violation of, any 5349 // terms of an Apple operating system software license agreement. 5350 // 5351 // Please obtain a copy of the License at 5352 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5353 // 5354 // The Original Code and all software distributed under the License are 5355 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5356 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5357 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5358 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5359 // Please see the License for the specific language governing rights and 5360 // limitations under the License. 5361 // 5362 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5363 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5364 // 5365 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5366 // 5367 // This file contains Original Code and/or Modifications of Original Code 5368 // as defined in and that are subject to the Apple Public Source License 5369 // Version 2.0 (the 'License'). You may not use this file except in 5370 // compliance with the License. The rights granted to you under the License 5371 // may not be used to create, or enable the creation or redistribution of, 5372 // unlawful or unlicensed copies of an Apple operating system, or to 5373 // circumvent, violate, or enable the circumvention or violation of, any 5374 // terms of an Apple operating system software license agreement. 5375 // 5376 // Please obtain a copy of the License at 5377 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5378 // 5379 // The Original Code and all software distributed under the License are 5380 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5381 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5382 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5383 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5384 // Please see the License for the specific language governing rights and 5385 // limitations under the License. 5386 // 5387 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5388 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5389 // 5390 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5391 // 5392 // This file contains Original Code and/or Modifications of Original Code 5393 // as defined in and that are subject to the Apple Public Source License 5394 // Version 2.0 (the 'License'). You may not use this file except in 5395 // compliance with the License. The rights granted to you under the License 5396 // may not be used to create, or enable the creation or redistribution of, 5397 // unlawful or unlicensed copies of an Apple operating system, or to 5398 // circumvent, violate, or enable the circumvention or violation of, any 5399 // terms of an Apple operating system software license agreement. 5400 // 5401 // Please obtain a copy of the License at 5402 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5403 // 5404 // The Original Code and all software distributed under the License are 5405 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5406 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5407 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5408 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5409 // Please see the License for the specific language governing rights and 5410 // limitations under the License. 5411 // 5412 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5413 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5414 // 5415 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5416 // 5417 // This file contains Original Code and/or Modifications of Original Code 5418 // as defined in and that are subject to the Apple Public Source License 5419 // Version 2.0 (the 'License'). You may not use this file except in 5420 // compliance with the License. The rights granted to you under the License 5421 // may not be used to create, or enable the creation or redistribution of, 5422 // unlawful or unlicensed copies of an Apple operating system, or to 5423 // circumvent, violate, or enable the circumvention or violation of, any 5424 // terms of an Apple operating system software license agreement. 5425 // 5426 // Please obtain a copy of the License at 5427 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5428 // 5429 // The Original Code and all software distributed under the License are 5430 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5431 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5432 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5433 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5434 // Please see the License for the specific language governing rights and 5435 // limitations under the License. 5436 // 5437 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5438 5439 type pid_t = int32 /* _pid_t.h:31:31 */ 5440 // DO NOT REMOVE THIS COMMENT: fixincludes needs to see: 5441 // _GCC_SIZE_T 5442 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5443 // 5444 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5445 // 5446 // This file contains Original Code and/or Modifications of Original Code 5447 // as defined in and that are subject to the Apple Public Source License 5448 // Version 2.0 (the 'License'). You may not use this file except in 5449 // compliance with the License. The rights granted to you under the License 5450 // may not be used to create, or enable the creation or redistribution of, 5451 // unlawful or unlicensed copies of an Apple operating system, or to 5452 // circumvent, violate, or enable the circumvention or violation of, any 5453 // terms of an Apple operating system software license agreement. 5454 // 5455 // Please obtain a copy of the License at 5456 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5457 // 5458 // The Original Code and all software distributed under the License are 5459 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5460 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5461 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5462 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5463 // Please see the License for the specific language governing rights and 5464 // limitations under the License. 5465 // 5466 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5467 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5468 // 5469 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5470 // 5471 // This file contains Original Code and/or Modifications of Original Code 5472 // as defined in and that are subject to the Apple Public Source License 5473 // Version 2.0 (the 'License'). You may not use this file except in 5474 // compliance with the License. The rights granted to you under the License 5475 // may not be used to create, or enable the creation or redistribution of, 5476 // unlawful or unlicensed copies of an Apple operating system, or to 5477 // circumvent, violate, or enable the circumvention or violation of, any 5478 // terms of an Apple operating system software license agreement. 5479 // 5480 // Please obtain a copy of the License at 5481 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5482 // 5483 // The Original Code and all software distributed under the License are 5484 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5485 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5486 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5487 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5488 // Please see the License for the specific language governing rights and 5489 // limitations under the License. 5490 // 5491 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5492 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5493 // 5494 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5495 // 5496 // This file contains Original Code and/or Modifications of Original Code 5497 // as defined in and that are subject to the Apple Public Source License 5498 // Version 2.0 (the 'License'). You may not use this file except in 5499 // compliance with the License. The rights granted to you under the License 5500 // may not be used to create, or enable the creation or redistribution of, 5501 // unlawful or unlicensed copies of an Apple operating system, or to 5502 // circumvent, violate, or enable the circumvention or violation of, any 5503 // terms of an Apple operating system software license agreement. 5504 // 5505 // Please obtain a copy of the License at 5506 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5507 // 5508 // The Original Code and all software distributed under the License are 5509 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5510 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5511 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5512 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5513 // Please see the License for the specific language governing rights and 5514 // limitations under the License. 5515 // 5516 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5517 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5518 // 5519 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5520 // 5521 // This file contains Original Code and/or Modifications of Original Code 5522 // as defined in and that are subject to the Apple Public Source License 5523 // Version 2.0 (the 'License'). You may not use this file except in 5524 // compliance with the License. The rights granted to you under the License 5525 // may not be used to create, or enable the creation or redistribution of, 5526 // unlawful or unlicensed copies of an Apple operating system, or to 5527 // circumvent, violate, or enable the circumvention or violation of, any 5528 // terms of an Apple operating system software license agreement. 5529 // 5530 // Please obtain a copy of the License at 5531 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5532 // 5533 // The Original Code and all software distributed under the License are 5534 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5535 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5536 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5537 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5538 // Please see the License for the specific language governing rights and 5539 // limitations under the License. 5540 // 5541 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5542 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5543 // 5544 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5545 // 5546 // This file contains Original Code and/or Modifications of Original Code 5547 // as defined in and that are subject to the Apple Public Source License 5548 // Version 2.0 (the 'License'). You may not use this file except in 5549 // compliance with the License. The rights granted to you under the License 5550 // may not be used to create, or enable the creation or redistribution of, 5551 // unlawful or unlicensed copies of an Apple operating system, or to 5552 // circumvent, violate, or enable the circumvention or violation of, any 5553 // terms of an Apple operating system software license agreement. 5554 // 5555 // Please obtain a copy of the License at 5556 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5557 // 5558 // The Original Code and all software distributed under the License are 5559 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5560 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5561 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5562 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5563 // Please see the License for the specific language governing rights and 5564 // limitations under the License. 5565 // 5566 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5567 5568 type useconds_t = uint32 /* _useconds_t.h:31:33 */ 5569 5570 // Darwin extensions 5571 5572 // Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved. 5573 // 5574 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5575 // 5576 // This file contains Original Code and/or Modifications of Original Code 5577 // as defined in and that are subject to the Apple Public Source License 5578 // Version 2.0 (the 'License'). You may not use this file except in 5579 // compliance with the License. The rights granted to you under the License 5580 // may not be used to create, or enable the creation or redistribution of, 5581 // unlawful or unlicensed copies of an Apple operating system, or to 5582 // circumvent, violate, or enable the circumvention or violation of, any 5583 // terms of an Apple operating system software license agreement. 5584 // 5585 // Please obtain a copy of the License at 5586 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5587 // 5588 // The Original Code and all software distributed under the License are 5589 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5590 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5591 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5592 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5593 // Please see the License for the specific language governing rights and 5594 // limitations under the License. 5595 // 5596 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5597 // Copyright (c) 1992, 1993 5598 // The Regents of the University of California. All rights reserved. 5599 // 5600 // Redistribution and use in source and binary forms, with or without 5601 // modification, are permitted provided that the following conditions 5602 // are met: 5603 // 1. Redistributions of source code must retain the above copyright 5604 // notice, this list of conditions and the following disclaimer. 5605 // 2. Redistributions in binary form must reproduce the above copyright 5606 // notice, this list of conditions and the following disclaimer in the 5607 // documentation and/or other materials provided with the distribution. 5608 // 3. All advertising materials mentioning features or use of this software 5609 // must display the following acknowledgement: 5610 // This product includes software developed by the University of 5611 // California, Berkeley and its contributors. 5612 // 4. Neither the name of the University nor the names of its contributors 5613 // may be used to endorse or promote products derived from this software 5614 // without specific prior written permission. 5615 // 5616 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 5617 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 5618 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 5619 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 5620 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 5621 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 5622 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 5623 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 5624 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 5625 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 5626 // SUCH DAMAGE. 5627 // 5628 // @(#)select.h 8.2 (Berkeley) 1/4/94 5629 5630 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 5631 // 5632 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5633 // 5634 // This file contains Original Code and/or Modifications of Original Code 5635 // as defined in and that are subject to the Apple Public Source License 5636 // Version 2.0 (the 'License'). You may not use this file except in 5637 // compliance with the License. The rights granted to you under the License 5638 // may not be used to create, or enable the creation or redistribution of, 5639 // unlawful or unlicensed copies of an Apple operating system, or to 5640 // circumvent, violate, or enable the circumvention or violation of, any 5641 // terms of an Apple operating system software license agreement. 5642 // 5643 // Please obtain a copy of the License at 5644 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5645 // 5646 // The Original Code and all software distributed under the License are 5647 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5648 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5649 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5650 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5651 // Please see the License for the specific language governing rights and 5652 // limitations under the License. 5653 // 5654 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5655 5656 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 5657 // 5658 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5659 // 5660 // This file contains Original Code and/or Modifications of Original Code 5661 // as defined in and that are subject to the Apple Public Source License 5662 // Version 2.0 (the 'License'). You may not use this file except in 5663 // compliance with the License. The rights granted to you under the License 5664 // may not be used to create, or enable the creation or redistribution of, 5665 // unlawful or unlicensed copies of an Apple operating system, or to 5666 // circumvent, violate, or enable the circumvention or violation of, any 5667 // terms of an Apple operating system software license agreement. 5668 // 5669 // Please obtain a copy of the License at 5670 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5671 // 5672 // The Original Code and all software distributed under the License are 5673 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5674 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5675 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5676 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5677 // Please see the License for the specific language governing rights and 5678 // limitations under the License. 5679 // 5680 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5681 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 5682 // Copyright (c) 1991, 1993 5683 // The Regents of the University of California. All rights reserved. 5684 // 5685 // This code is derived from software contributed to Berkeley by 5686 // Berkeley Software Design, Inc. 5687 // 5688 // Redistribution and use in source and binary forms, with or without 5689 // modification, are permitted provided that the following conditions 5690 // are met: 5691 // 1. Redistributions of source code must retain the above copyright 5692 // notice, this list of conditions and the following disclaimer. 5693 // 2. Redistributions in binary form must reproduce the above copyright 5694 // notice, this list of conditions and the following disclaimer in the 5695 // documentation and/or other materials provided with the distribution. 5696 // 3. All advertising materials mentioning features or use of this software 5697 // must display the following acknowledgement: 5698 // This product includes software developed by the University of 5699 // California, Berkeley and its contributors. 5700 // 4. Neither the name of the University nor the names of its contributors 5701 // may be used to endorse or promote products derived from this software 5702 // without specific prior written permission. 5703 // 5704 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 5705 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 5706 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 5707 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 5708 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 5709 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 5710 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 5711 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 5712 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 5713 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 5714 // SUCH DAMAGE. 5715 // 5716 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 5717 5718 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5719 // 5720 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5721 // 5722 // This file contains Original Code and/or Modifications of Original Code 5723 // as defined in and that are subject to the Apple Public Source License 5724 // Version 2.0 (the 'License'). You may not use this file except in 5725 // compliance with the License. The rights granted to you under the License 5726 // may not be used to create, or enable the creation or redistribution of, 5727 // unlawful or unlicensed copies of an Apple operating system, or to 5728 // circumvent, violate, or enable the circumvention or violation of, any 5729 // terms of an Apple operating system software license agreement. 5730 // 5731 // Please obtain a copy of the License at 5732 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5733 // 5734 // The Original Code and all software distributed under the License are 5735 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5736 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5737 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5738 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5739 // Please see the License for the specific language governing rights and 5740 // limitations under the License. 5741 // 5742 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5743 5744 // [XSI] The <sys/select.h> header shall define the fd_set type as a structure. 5745 // The timespec structure shall be defined as described in <time.h> 5746 // The <sys/select.h> header shall define the timeval structure. 5747 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 5748 // 5749 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5750 // 5751 // This file contains Original Code and/or Modifications of Original Code 5752 // as defined in and that are subject to the Apple Public Source License 5753 // Version 2.0 (the 'License'). You may not use this file except in 5754 // compliance with the License. The rights granted to you under the License 5755 // may not be used to create, or enable the creation or redistribution of, 5756 // unlawful or unlicensed copies of an Apple operating system, or to 5757 // circumvent, violate, or enable the circumvention or violation of, any 5758 // terms of an Apple operating system software license agreement. 5759 // 5760 // Please obtain a copy of the License at 5761 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5762 // 5763 // The Original Code and all software distributed under the License are 5764 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5765 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5766 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5767 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5768 // Please see the License for the specific language governing rights and 5769 // limitations under the License. 5770 // 5771 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5772 5773 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 5774 // 5775 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5776 // 5777 // This file contains Original Code and/or Modifications of Original Code 5778 // as defined in and that are subject to the Apple Public Source License 5779 // Version 2.0 (the 'License'). You may not use this file except in 5780 // compliance with the License. The rights granted to you under the License 5781 // may not be used to create, or enable the creation or redistribution of, 5782 // unlawful or unlicensed copies of an Apple operating system, or to 5783 // circumvent, violate, or enable the circumvention or violation of, any 5784 // terms of an Apple operating system software license agreement. 5785 // 5786 // Please obtain a copy of the License at 5787 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5788 // 5789 // The Original Code and all software distributed under the License are 5790 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5791 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5792 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5793 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5794 // Please see the License for the specific language governing rights and 5795 // limitations under the License. 5796 // 5797 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5798 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 5799 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 5800 // 5801 // @APPLE_LICENSE_HEADER_START@ 5802 // 5803 // This file contains Original Code and/or Modifications of Original Code 5804 // as defined in and that are subject to the Apple Public Source License 5805 // Version 2.0 (the 'License'). You may not use this file except in 5806 // compliance with the License. Please obtain a copy of the License at 5807 // http://www.opensource.apple.com/apsl/ and read it before using this 5808 // file. 5809 // 5810 // The Original Code and all software distributed under the License are 5811 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5812 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5813 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5814 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5815 // Please see the License for the specific language governing rights and 5816 // limitations under the License. 5817 // 5818 // @APPLE_LICENSE_HEADER_END@ 5819 5820 // Select uses bit masks of file descriptors in longs. These macros 5821 // manipulate such bit fields (the filesystem macros use chars). The 5822 // extra protection here is to permit application redefinition above 5823 // the default size. 5824 5825 type fd_set1 = struct{ fds_bits [32]int32 } /* _fd_def.h:50:9 */ 5826 5827 // Darwin extensions 5828 5829 // Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved. 5830 // 5831 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5832 // 5833 // This file contains Original Code and/or Modifications of Original Code 5834 // as defined in and that are subject to the Apple Public Source License 5835 // Version 2.0 (the 'License'). You may not use this file except in 5836 // compliance with the License. The rights granted to you under the License 5837 // may not be used to create, or enable the creation or redistribution of, 5838 // unlawful or unlicensed copies of an Apple operating system, or to 5839 // circumvent, violate, or enable the circumvention or violation of, any 5840 // terms of an Apple operating system software license agreement. 5841 // 5842 // Please obtain a copy of the License at 5843 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5844 // 5845 // The Original Code and all software distributed under the License are 5846 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5847 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5848 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5849 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5850 // Please see the License for the specific language governing rights and 5851 // limitations under the License. 5852 // 5853 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5854 // Copyright (c) 1992, 1993 5855 // The Regents of the University of California. All rights reserved. 5856 // 5857 // Redistribution and use in source and binary forms, with or without 5858 // modification, are permitted provided that the following conditions 5859 // are met: 5860 // 1. Redistributions of source code must retain the above copyright 5861 // notice, this list of conditions and the following disclaimer. 5862 // 2. Redistributions in binary form must reproduce the above copyright 5863 // notice, this list of conditions and the following disclaimer in the 5864 // documentation and/or other materials provided with the distribution. 5865 // 3. All advertising materials mentioning features or use of this software 5866 // must display the following acknowledgement: 5867 // This product includes software developed by the University of 5868 // California, Berkeley and its contributors. 5869 // 4. Neither the name of the University nor the names of its contributors 5870 // may be used to endorse or promote products derived from this software 5871 // without specific prior written permission. 5872 // 5873 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 5874 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 5875 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 5876 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 5877 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 5878 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 5879 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 5880 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 5881 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 5882 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 5883 // SUCH DAMAGE. 5884 // 5885 // @(#)select.h 8.2 (Berkeley) 1/4/94 5886 5887 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 5888 // 5889 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5890 // 5891 // This file contains Original Code and/or Modifications of Original Code 5892 // as defined in and that are subject to the Apple Public Source License 5893 // Version 2.0 (the 'License'). You may not use this file except in 5894 // compliance with the License. The rights granted to you under the License 5895 // may not be used to create, or enable the creation or redistribution of, 5896 // unlawful or unlicensed copies of an Apple operating system, or to 5897 // circumvent, violate, or enable the circumvention or violation of, any 5898 // terms of an Apple operating system software license agreement. 5899 // 5900 // Please obtain a copy of the License at 5901 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5902 // 5903 // The Original Code and all software distributed under the License are 5904 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5905 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5906 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5907 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5908 // Please see the License for the specific language governing rights and 5909 // limitations under the License. 5910 // 5911 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5912 5913 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 5914 // 5915 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5916 // 5917 // This file contains Original Code and/or Modifications of Original Code 5918 // as defined in and that are subject to the Apple Public Source License 5919 // Version 2.0 (the 'License'). You may not use this file except in 5920 // compliance with the License. The rights granted to you under the License 5921 // may not be used to create, or enable the creation or redistribution of, 5922 // unlawful or unlicensed copies of an Apple operating system, or to 5923 // circumvent, violate, or enable the circumvention or violation of, any 5924 // terms of an Apple operating system software license agreement. 5925 // 5926 // Please obtain a copy of the License at 5927 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5928 // 5929 // The Original Code and all software distributed under the License are 5930 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5931 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5932 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5933 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5934 // Please see the License for the specific language governing rights and 5935 // limitations under the License. 5936 // 5937 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 5938 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 5939 // Copyright (c) 1991, 1993 5940 // The Regents of the University of California. All rights reserved. 5941 // 5942 // This code is derived from software contributed to Berkeley by 5943 // Berkeley Software Design, Inc. 5944 // 5945 // Redistribution and use in source and binary forms, with or without 5946 // modification, are permitted provided that the following conditions 5947 // are met: 5948 // 1. Redistributions of source code must retain the above copyright 5949 // notice, this list of conditions and the following disclaimer. 5950 // 2. Redistributions in binary form must reproduce the above copyright 5951 // notice, this list of conditions and the following disclaimer in the 5952 // documentation and/or other materials provided with the distribution. 5953 // 3. All advertising materials mentioning features or use of this software 5954 // must display the following acknowledgement: 5955 // This product includes software developed by the University of 5956 // California, Berkeley and its contributors. 5957 // 4. Neither the name of the University nor the names of its contributors 5958 // may be used to endorse or promote products derived from this software 5959 // without specific prior written permission. 5960 // 5961 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 5962 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 5963 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 5964 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 5965 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 5966 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 5967 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 5968 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 5969 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 5970 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 5971 // SUCH DAMAGE. 5972 // 5973 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 5974 5975 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 5976 // 5977 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5978 // 5979 // This file contains Original Code and/or Modifications of Original Code 5980 // as defined in and that are subject to the Apple Public Source License 5981 // Version 2.0 (the 'License'). You may not use this file except in 5982 // compliance with the License. The rights granted to you under the License 5983 // may not be used to create, or enable the creation or redistribution of, 5984 // unlawful or unlicensed copies of an Apple operating system, or to 5985 // circumvent, violate, or enable the circumvention or violation of, any 5986 // terms of an Apple operating system software license agreement. 5987 // 5988 // Please obtain a copy of the License at 5989 // http://www.opensource.apple.com/apsl/ and read it before using this file. 5990 // 5991 // The Original Code and all software distributed under the License are 5992 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 5993 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 5994 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 5995 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 5996 // Please see the License for the specific language governing rights and 5997 // limitations under the License. 5998 // 5999 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6000 6001 // [XSI] The <sys/select.h> header shall define the fd_set type as a structure. 6002 // The timespec structure shall be defined as described in <time.h> 6003 // The <sys/select.h> header shall define the timeval structure. 6004 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6005 // 6006 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6007 // 6008 // This file contains Original Code and/or Modifications of Original Code 6009 // as defined in and that are subject to the Apple Public Source License 6010 // Version 2.0 (the 'License'). You may not use this file except in 6011 // compliance with the License. The rights granted to you under the License 6012 // may not be used to create, or enable the creation or redistribution of, 6013 // unlawful or unlicensed copies of an Apple operating system, or to 6014 // circumvent, violate, or enable the circumvention or violation of, any 6015 // terms of an Apple operating system software license agreement. 6016 // 6017 // Please obtain a copy of the License at 6018 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6019 // 6020 // The Original Code and all software distributed under the License are 6021 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6022 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6023 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6024 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6025 // Please see the License for the specific language governing rights and 6026 // limitations under the License. 6027 // 6028 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6029 6030 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 6031 // 6032 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6033 // 6034 // This file contains Original Code and/or Modifications of Original Code 6035 // as defined in and that are subject to the Apple Public Source License 6036 // Version 2.0 (the 'License'). You may not use this file except in 6037 // compliance with the License. The rights granted to you under the License 6038 // may not be used to create, or enable the creation or redistribution of, 6039 // unlawful or unlicensed copies of an Apple operating system, or to 6040 // circumvent, violate, or enable the circumvention or violation of, any 6041 // terms of an Apple operating system software license agreement. 6042 // 6043 // Please obtain a copy of the License at 6044 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6045 // 6046 // The Original Code and all software distributed under the License are 6047 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6048 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6049 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6050 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6051 // Please see the License for the specific language governing rights and 6052 // limitations under the License. 6053 // 6054 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6055 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 6056 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 6057 // 6058 // @APPLE_LICENSE_HEADER_START@ 6059 // 6060 // This file contains Original Code and/or Modifications of Original Code 6061 // as defined in and that are subject to the Apple Public Source License 6062 // Version 2.0 (the 'License'). You may not use this file except in 6063 // compliance with the License. Please obtain a copy of the License at 6064 // http://www.opensource.apple.com/apsl/ and read it before using this 6065 // file. 6066 // 6067 // The Original Code and all software distributed under the License are 6068 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6069 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6070 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6071 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6072 // Please see the License for the specific language governing rights and 6073 // limitations under the License. 6074 // 6075 // @APPLE_LICENSE_HEADER_END@ 6076 6077 // Select uses bit masks of file descriptors in longs. These macros 6078 // manipulate such bit fields (the filesystem macros use chars). The 6079 // extra protection here is to permit application redefinition above 6080 // the default size. 6081 6082 type fd_set = fd_set1 /* _fd_def.h:52:3 */ 6083 6084 // Use the built-in bzero function instead of the library version so that 6085 // we do not pollute the namespace or introduce prototype warnings. 6086 6087 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6088 // 6089 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6090 // 6091 // This file contains Original Code and/or Modifications of Original Code 6092 // as defined in and that are subject to the Apple Public Source License 6093 // Version 2.0 (the 'License'). You may not use this file except in 6094 // compliance with the License. The rights granted to you under the License 6095 // may not be used to create, or enable the creation or redistribution of, 6096 // unlawful or unlicensed copies of an Apple operating system, or to 6097 // circumvent, violate, or enable the circumvention or violation of, any 6098 // terms of an Apple operating system software license agreement. 6099 // 6100 // Please obtain a copy of the License at 6101 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6102 // 6103 // The Original Code and all software distributed under the License are 6104 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6105 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6106 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6107 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6108 // Please see the License for the specific language governing rights and 6109 // limitations under the License. 6110 // 6111 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6112 6113 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 6114 // 6115 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6116 // 6117 // This file contains Original Code and/or Modifications of Original Code 6118 // as defined in and that are subject to the Apple Public Source License 6119 // Version 2.0 (the 'License'). You may not use this file except in 6120 // compliance with the License. The rights granted to you under the License 6121 // may not be used to create, or enable the creation or redistribution of, 6122 // unlawful or unlicensed copies of an Apple operating system, or to 6123 // circumvent, violate, or enable the circumvention or violation of, any 6124 // terms of an Apple operating system software license agreement. 6125 // 6126 // Please obtain a copy of the License at 6127 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6128 // 6129 // The Original Code and all software distributed under the License are 6130 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6131 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6132 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6133 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6134 // Please see the License for the specific language governing rights and 6135 // limitations under the License. 6136 // 6137 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6138 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 6139 6140 type timespec = struct { 6141 tv_sec int64 6142 tv_nsec int64 6143 } /* _timespec.h:33:1 */ 6144 6145 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6146 // 6147 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6148 // 6149 // This file contains Original Code and/or Modifications of Original Code 6150 // as defined in and that are subject to the Apple Public Source License 6151 // Version 2.0 (the 'License'). You may not use this file except in 6152 // compliance with the License. The rights granted to you under the License 6153 // may not be used to create, or enable the creation or redistribution of, 6154 // unlawful or unlicensed copies of an Apple operating system, or to 6155 // circumvent, violate, or enable the circumvention or violation of, any 6156 // terms of an Apple operating system software license agreement. 6157 // 6158 // Please obtain a copy of the License at 6159 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6160 // 6161 // The Original Code and all software distributed under the License are 6162 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6163 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6164 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6165 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6166 // Please see the License for the specific language governing rights and 6167 // limitations under the License. 6168 // 6169 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6170 6171 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 6172 // 6173 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6174 // 6175 // This file contains Original Code and/or Modifications of Original Code 6176 // as defined in and that are subject to the Apple Public Source License 6177 // Version 2.0 (the 'License'). You may not use this file except in 6178 // compliance with the License. The rights granted to you under the License 6179 // may not be used to create, or enable the creation or redistribution of, 6180 // unlawful or unlicensed copies of an Apple operating system, or to 6181 // circumvent, violate, or enable the circumvention or violation of, any 6182 // terms of an Apple operating system software license agreement. 6183 // 6184 // Please obtain a copy of the License at 6185 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6186 // 6187 // The Original Code and all software distributed under the License are 6188 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6189 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6190 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6191 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6192 // Please see the License for the specific language governing rights and 6193 // limitations under the License. 6194 // 6195 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6196 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 6197 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 6198 // 6199 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6200 // 6201 // This file contains Original Code and/or Modifications of Original Code 6202 // as defined in and that are subject to the Apple Public Source License 6203 // Version 2.0 (the 'License'). You may not use this file except in 6204 // compliance with the License. The rights granted to you under the License 6205 // may not be used to create, or enable the creation or redistribution of, 6206 // unlawful or unlicensed copies of an Apple operating system, or to 6207 // circumvent, violate, or enable the circumvention or violation of, any 6208 // terms of an Apple operating system software license agreement. 6209 // 6210 // Please obtain a copy of the License at 6211 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6212 // 6213 // The Original Code and all software distributed under the License are 6214 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6215 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6216 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6217 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6218 // Please see the License for the specific language governing rights and 6219 // limitations under the License. 6220 // 6221 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6222 6223 type timeval = struct { 6224 tv_sec int64 6225 tv_usec int32 6226 _ [4]byte 6227 } /* _timeval.h:34:1 */ 6228 6229 // The time_t and suseconds_t types shall be defined as described in 6230 // <sys/types.h> 6231 // The sigset_t type shall be defined as described in <signal.h> 6232 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6233 // 6234 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6235 // 6236 // This file contains Original Code and/or Modifications of Original Code 6237 // as defined in and that are subject to the Apple Public Source License 6238 // Version 2.0 (the 'License'). You may not use this file except in 6239 // compliance with the License. The rights granted to you under the License 6240 // may not be used to create, or enable the creation or redistribution of, 6241 // unlawful or unlicensed copies of an Apple operating system, or to 6242 // circumvent, violate, or enable the circumvention or violation of, any 6243 // terms of an Apple operating system software license agreement. 6244 // 6245 // Please obtain a copy of the License at 6246 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6247 // 6248 // The Original Code and all software distributed under the License are 6249 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6250 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6251 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6252 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6253 // Please see the License for the specific language governing rights and 6254 // limitations under the License. 6255 // 6256 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6257 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 6258 // 6259 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6260 // 6261 // This file contains Original Code and/or Modifications of Original Code 6262 // as defined in and that are subject to the Apple Public Source License 6263 // Version 2.0 (the 'License'). You may not use this file except in 6264 // compliance with the License. The rights granted to you under the License 6265 // may not be used to create, or enable the creation or redistribution of, 6266 // unlawful or unlicensed copies of an Apple operating system, or to 6267 // circumvent, violate, or enable the circumvention or violation of, any 6268 // terms of an Apple operating system software license agreement. 6269 // 6270 // Please obtain a copy of the License at 6271 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6272 // 6273 // The Original Code and all software distributed under the License are 6274 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6275 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6276 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6277 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6278 // Please see the License for the specific language governing rights and 6279 // limitations under the License. 6280 // 6281 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6282 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 6283 type time_t = int64 /* _time_t.h:31:33 */ 6284 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6285 // 6286 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6287 // 6288 // This file contains Original Code and/or Modifications of Original Code 6289 // as defined in and that are subject to the Apple Public Source License 6290 // Version 2.0 (the 'License'). You may not use this file except in 6291 // compliance with the License. The rights granted to you under the License 6292 // may not be used to create, or enable the creation or redistribution of, 6293 // unlawful or unlicensed copies of an Apple operating system, or to 6294 // circumvent, violate, or enable the circumvention or violation of, any 6295 // terms of an Apple operating system software license agreement. 6296 // 6297 // Please obtain a copy of the License at 6298 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6299 // 6300 // The Original Code and all software distributed under the License are 6301 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6302 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6303 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6304 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6305 // Please see the License for the specific language governing rights and 6306 // limitations under the License. 6307 // 6308 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6309 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 6310 // 6311 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6312 // 6313 // This file contains Original Code and/or Modifications of Original Code 6314 // as defined in and that are subject to the Apple Public Source License 6315 // Version 2.0 (the 'License'). You may not use this file except in 6316 // compliance with the License. The rights granted to you under the License 6317 // may not be used to create, or enable the creation or redistribution of, 6318 // unlawful or unlicensed copies of an Apple operating system, or to 6319 // circumvent, violate, or enable the circumvention or violation of, any 6320 // terms of an Apple operating system software license agreement. 6321 // 6322 // Please obtain a copy of the License at 6323 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6324 // 6325 // The Original Code and all software distributed under the License are 6326 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6327 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6328 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6329 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6330 // Please see the License for the specific language governing rights and 6331 // limitations under the License. 6332 // 6333 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6334 6335 type suseconds_t = int32 /* _suseconds_t.h:31:33 */ 6336 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6337 // 6338 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6339 // 6340 // This file contains Original Code and/or Modifications of Original Code 6341 // as defined in and that are subject to the Apple Public Source License 6342 // Version 2.0 (the 'License'). You may not use this file except in 6343 // compliance with the License. The rights granted to you under the License 6344 // may not be used to create, or enable the creation or redistribution of, 6345 // unlawful or unlicensed copies of an Apple operating system, or to 6346 // circumvent, violate, or enable the circumvention or violation of, any 6347 // terms of an Apple operating system software license agreement. 6348 // 6349 // Please obtain a copy of the License at 6350 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6351 // 6352 // The Original Code and all software distributed under the License are 6353 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6354 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6355 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6356 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6357 // Please see the License for the specific language governing rights and 6358 // limitations under the License. 6359 // 6360 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6361 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 6362 // 6363 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6364 // 6365 // This file contains Original Code and/or Modifications of Original Code 6366 // as defined in and that are subject to the Apple Public Source License 6367 // Version 2.0 (the 'License'). You may not use this file except in 6368 // compliance with the License. The rights granted to you under the License 6369 // may not be used to create, or enable the creation or redistribution of, 6370 // unlawful or unlicensed copies of an Apple operating system, or to 6371 // circumvent, violate, or enable the circumvention or violation of, any 6372 // terms of an Apple operating system software license agreement. 6373 // 6374 // Please obtain a copy of the License at 6375 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6376 // 6377 // The Original Code and all software distributed under the License are 6378 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6379 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6380 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6381 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6382 // Please see the License for the specific language governing rights and 6383 // limitations under the License. 6384 // 6385 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6386 6387 type sigset_t = uint32 /* _sigset_t.h:31:41 */ 6388 6389 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6390 // 6391 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6392 // 6393 // This file contains Original Code and/or Modifications of Original Code 6394 // as defined in and that are subject to the Apple Public Source License 6395 // Version 2.0 (the 'License'). You may not use this file except in 6396 // compliance with the License. The rights granted to you under the License 6397 // may not be used to create, or enable the creation or redistribution of, 6398 // unlawful or unlicensed copies of an Apple operating system, or to 6399 // circumvent, violate, or enable the circumvention or violation of, any 6400 // terms of an Apple operating system software license agreement. 6401 // 6402 // Please obtain a copy of the License at 6403 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6404 // 6405 // The Original Code and all software distributed under the License are 6406 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6407 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6408 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6409 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6410 // Please see the License for the specific language governing rights and 6411 // limitations under the License. 6412 // 6413 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6414 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 6415 // 6416 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6417 // 6418 // This file contains Original Code and/or Modifications of Original Code 6419 // as defined in and that are subject to the Apple Public Source License 6420 // Version 2.0 (the 'License'). You may not use this file except in 6421 // compliance with the License. The rights granted to you under the License 6422 // may not be used to create, or enable the creation or redistribution of, 6423 // unlawful or unlicensed copies of an Apple operating system, or to 6424 // circumvent, violate, or enable the circumvention or violation of, any 6425 // terms of an Apple operating system software license agreement. 6426 // 6427 // Please obtain a copy of the License at 6428 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6429 // 6430 // The Original Code and all software distributed under the License are 6431 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6432 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6433 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6434 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6435 // Please see the License for the specific language governing rights and 6436 // limitations under the License. 6437 // 6438 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6439 6440 type dev_t = int32 /* _dev_t.h:31:31 */ // device number 6441 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6442 // 6443 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6444 // 6445 // This file contains Original Code and/or Modifications of Original Code 6446 // as defined in and that are subject to the Apple Public Source License 6447 // Version 2.0 (the 'License'). You may not use this file except in 6448 // compliance with the License. The rights granted to you under the License 6449 // may not be used to create, or enable the creation or redistribution of, 6450 // unlawful or unlicensed copies of an Apple operating system, or to 6451 // circumvent, violate, or enable the circumvention or violation of, any 6452 // terms of an Apple operating system software license agreement. 6453 // 6454 // Please obtain a copy of the License at 6455 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6456 // 6457 // The Original Code and all software distributed under the License are 6458 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6459 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6460 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6461 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6462 // Please see the License for the specific language governing rights and 6463 // limitations under the License. 6464 // 6465 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6466 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 6467 // 6468 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6469 // 6470 // This file contains Original Code and/or Modifications of Original Code 6471 // as defined in and that are subject to the Apple Public Source License 6472 // Version 2.0 (the 'License'). You may not use this file except in 6473 // compliance with the License. The rights granted to you under the License 6474 // may not be used to create, or enable the creation or redistribution of, 6475 // unlawful or unlicensed copies of an Apple operating system, or to 6476 // circumvent, violate, or enable the circumvention or violation of, any 6477 // terms of an Apple operating system software license agreement. 6478 // 6479 // Please obtain a copy of the License at 6480 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6481 // 6482 // The Original Code and all software distributed under the License are 6483 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6484 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6485 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6486 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6487 // Please see the License for the specific language governing rights and 6488 // limitations under the License. 6489 // 6490 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6491 6492 type mode_t = uint16 /* _mode_t.h:31:33 */ 6493 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6494 // 6495 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6496 // 6497 // This file contains Original Code and/or Modifications of Original Code 6498 // as defined in and that are subject to the Apple Public Source License 6499 // Version 2.0 (the 'License'). You may not use this file except in 6500 // compliance with the License. The rights granted to you under the License 6501 // may not be used to create, or enable the creation or redistribution of, 6502 // unlawful or unlicensed copies of an Apple operating system, or to 6503 // circumvent, violate, or enable the circumvention or violation of, any 6504 // terms of an Apple operating system software license agreement. 6505 // 6506 // Please obtain a copy of the License at 6507 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6508 // 6509 // The Original Code and all software distributed under the License are 6510 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6511 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6512 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6513 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6514 // Please see the License for the specific language governing rights and 6515 // limitations under the License. 6516 // 6517 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6518 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 6519 // 6520 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6521 // 6522 // This file contains Original Code and/or Modifications of Original Code 6523 // as defined in and that are subject to the Apple Public Source License 6524 // Version 2.0 (the 'License'). You may not use this file except in 6525 // compliance with the License. The rights granted to you under the License 6526 // may not be used to create, or enable the creation or redistribution of, 6527 // unlawful or unlicensed copies of an Apple operating system, or to 6528 // circumvent, violate, or enable the circumvention or violation of, any 6529 // terms of an Apple operating system software license agreement. 6530 // 6531 // Please obtain a copy of the License at 6532 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6533 // 6534 // The Original Code and all software distributed under the License are 6535 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6536 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6537 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6538 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6539 // Please see the License for the specific language governing rights and 6540 // limitations under the License. 6541 // 6542 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6543 6544 type uuid_t = [16]uint8 /* _uuid_t.h:31:25 */ 6545 6546 // Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 6547 // 6548 // @APPLE_LICENSE_HEADER_START@ 6549 // 6550 // This file contains Original Code and/or Modifications of Original Code 6551 // as defined in and that are subject to the Apple Public Source License 6552 // Version 2.0 (the 'License'). You may not use this file except in 6553 // compliance with the License. Please obtain a copy of the License at 6554 // http://www.opensource.apple.com/apsl/ and read it before using this 6555 // file. 6556 // 6557 // The Original Code and all software distributed under the License are 6558 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6559 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6560 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6561 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6562 // Please see the License for the specific language governing rights and 6563 // limitations under the License. 6564 // 6565 // @APPLE_LICENSE_HEADER_END@ 6566 // Copyright (c) 2000-2012 Apple, Inc. All rights reserved. 6567 // 6568 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6569 // 6570 // This file contains Original Code and/or Modifications of Original Code 6571 // as defined in and that are subject to the Apple Public Source License 6572 // Version 2.0 (the 'License'). You may not use this file except in 6573 // compliance with the License. The rights granted to you under the License 6574 // may not be used to create, or enable the creation or redistribution of, 6575 // unlawful or unlicensed copies of an Apple operating system, or to 6576 // circumvent, violate, or enable the circumvention or violation of, any 6577 // terms of an Apple operating system software license agreement. 6578 // 6579 // Please obtain a copy of the License at 6580 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6581 // 6582 // The Original Code and all software distributed under the License are 6583 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6584 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6585 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6586 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6587 // Please see the License for the specific language governing rights and 6588 // limitations under the License. 6589 // 6590 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6591 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 6592 // Copyright (c) 1982, 1986, 1989, 1993 6593 // The Regents of the University of California. All rights reserved. 6594 // (c) UNIX System Laboratories, Inc. 6595 // All or some portions of this file are derived from material licensed 6596 // to the University of California by American Telephone and Telegraph 6597 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 6598 // the permission of UNIX System Laboratories, Inc. 6599 // 6600 // Redistribution and use in source and binary forms, with or without 6601 // modification, are permitted provided that the following conditions 6602 // are met: 6603 // 1. Redistributions of source code must retain the above copyright 6604 // notice, this list of conditions and the following disclaimer. 6605 // 2. Redistributions in binary form must reproduce the above copyright 6606 // notice, this list of conditions and the following disclaimer in the 6607 // documentation and/or other materials provided with the distribution. 6608 // 3. All advertising materials mentioning features or use of this software 6609 // must display the following acknowledgement: 6610 // This product includes software developed by the University of 6611 // California, Berkeley and its contributors. 6612 // 4. Neither the name of the University nor the names of its contributors 6613 // may be used to endorse or promote products derived from this software 6614 // without specific prior written permission. 6615 // 6616 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 6617 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 6618 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 6619 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 6620 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 6621 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 6622 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 6623 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 6624 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 6625 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6626 // SUCH DAMAGE. 6627 // 6628 // @(#)errno.h 8.5 (Berkeley) 1/21/94 6629 6630 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 6631 // 6632 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6633 // 6634 // This file contains Original Code and/or Modifications of Original Code 6635 // as defined in and that are subject to the Apple Public Source License 6636 // Version 2.0 (the 'License'). You may not use this file except in 6637 // compliance with the License. The rights granted to you under the License 6638 // may not be used to create, or enable the creation or redistribution of, 6639 // unlawful or unlicensed copies of an Apple operating system, or to 6640 // circumvent, violate, or enable the circumvention or violation of, any 6641 // terms of an Apple operating system software license agreement. 6642 // 6643 // Please obtain a copy of the License at 6644 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6645 // 6646 // The Original Code and all software distributed under the License are 6647 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6648 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6649 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6650 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6651 // Please see the License for the specific language governing rights and 6652 // limitations under the License. 6653 // 6654 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6655 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 6656 // Copyright (c) 1991, 1993 6657 // The Regents of the University of California. All rights reserved. 6658 // 6659 // This code is derived from software contributed to Berkeley by 6660 // Berkeley Software Design, Inc. 6661 // 6662 // Redistribution and use in source and binary forms, with or without 6663 // modification, are permitted provided that the following conditions 6664 // are met: 6665 // 1. Redistributions of source code must retain the above copyright 6666 // notice, this list of conditions and the following disclaimer. 6667 // 2. Redistributions in binary form must reproduce the above copyright 6668 // notice, this list of conditions and the following disclaimer in the 6669 // documentation and/or other materials provided with the distribution. 6670 // 3. All advertising materials mentioning features or use of this software 6671 // must display the following acknowledgement: 6672 // This product includes software developed by the University of 6673 // California, Berkeley and its contributors. 6674 // 4. Neither the name of the University nor the names of its contributors 6675 // may be used to endorse or promote products derived from this software 6676 // without specific prior written permission. 6677 // 6678 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 6679 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 6680 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 6681 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 6682 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 6683 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 6684 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 6685 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 6686 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 6687 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6688 // SUCH DAMAGE. 6689 // 6690 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 6691 6692 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 6693 // 6694 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6695 // 6696 // This file contains Original Code and/or Modifications of Original Code 6697 // as defined in and that are subject to the Apple Public Source License 6698 // Version 2.0 (the 'License'). You may not use this file except in 6699 // compliance with the License. The rights granted to you under the License 6700 // may not be used to create, or enable the creation or redistribution of, 6701 // unlawful or unlicensed copies of an Apple operating system, or to 6702 // circumvent, violate, or enable the circumvention or violation of, any 6703 // terms of an Apple operating system software license agreement. 6704 // 6705 // Please obtain a copy of the License at 6706 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6707 // 6708 // The Original Code and all software distributed under the License are 6709 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6710 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6711 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6712 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6713 // Please see the License for the specific language governing rights and 6714 // limitations under the License. 6715 // 6716 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6717 type errno_t = int32 /* _errno_t.h:30:32 */ 6718 6719 // Error codes 6720 6721 // 11 was EAGAIN 6722 6723 // math software 6724 6725 // non-blocking and interrupt i/o 6726 6727 // ipc/network software -- argument errors 6728 6729 // ipc/network software -- operational errors 6730 6731 // should be rearranged 6732 6733 // quotas & mush 6734 6735 // Network File System 6736 6737 // Intelligent device errors 6738 6739 // Program loading errors 6740 6741 // This value is only discrete when compiling __DARWIN_UNIX03, or KERNEL 6742 6743 // Copyright (c) 2000, 2002 - 2008 Apple Inc. All rights reserved. 6744 // 6745 // @APPLE_LICENSE_HEADER_START@ 6746 // 6747 // This file contains Original Code and/or Modifications of Original Code 6748 // as defined in and that are subject to the Apple Public Source License 6749 // Version 2.0 (the 'License'). You may not use this file except in 6750 // compliance with the License. Please obtain a copy of the License at 6751 // http://www.opensource.apple.com/apsl/ and read it before using this 6752 // file. 6753 // 6754 // The Original Code and all software distributed under the License are 6755 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6756 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6757 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6758 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6759 // Please see the License for the specific language governing rights and 6760 // limitations under the License. 6761 // 6762 // @APPLE_LICENSE_HEADER_END@ 6763 // - 6764 // Copyright (c) 1990, 1993 6765 // The Regents of the University of California. All rights reserved. 6766 // 6767 // Redistribution and use in source and binary forms, with or without 6768 // modification, are permitted provided that the following conditions 6769 // are met: 6770 // 1. Redistributions of source code must retain the above copyright 6771 // notice, this list of conditions and the following disclaimer. 6772 // 2. Redistributions in binary form must reproduce the above copyright 6773 // notice, this list of conditions and the following disclaimer in the 6774 // documentation and/or other materials provided with the distribution. 6775 // 3. All advertising materials mentioning features or use of this software 6776 // must display the following acknowledgement: 6777 // This product includes software developed by the University of 6778 // California, Berkeley and its contributors. 6779 // 4. Neither the name of the University nor the names of its contributors 6780 // may be used to endorse or promote products derived from this software 6781 // without specific prior written permission. 6782 // 6783 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 6784 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 6785 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 6786 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 6787 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 6788 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 6789 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 6790 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 6791 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 6792 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6793 // SUCH DAMAGE. 6794 // 6795 // @(#)stdlib.h 8.5 (Berkeley) 5/19/95 6796 6797 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 6798 // 6799 // @APPLE_LICENSE_HEADER_START@ 6800 // 6801 // This file contains Original Code and/or Modifications of Original Code 6802 // as defined in and that are subject to the Apple Public Source License 6803 // Version 2.0 (the 'License'). You may not use this file except in 6804 // compliance with the License. Please obtain a copy of the License at 6805 // http://www.opensource.apple.com/apsl/ and read it before using this 6806 // file. 6807 // 6808 // The Original Code and all software distributed under the License are 6809 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6810 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6811 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6812 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6813 // Please see the License for the specific language governing rights and 6814 // limitations under the License. 6815 // 6816 // @APPLE_LICENSE_HEADER_END@ 6817 6818 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 6819 // 6820 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6821 // 6822 // This file contains Original Code and/or Modifications of Original Code 6823 // as defined in and that are subject to the Apple Public Source License 6824 // Version 2.0 (the 'License'). You may not use this file except in 6825 // compliance with the License. The rights granted to you under the License 6826 // may not be used to create, or enable the creation or redistribution of, 6827 // unlawful or unlicensed copies of an Apple operating system, or to 6828 // circumvent, violate, or enable the circumvention or violation of, any 6829 // terms of an Apple operating system software license agreement. 6830 // 6831 // Please obtain a copy of the License at 6832 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6833 // 6834 // The Original Code and all software distributed under the License are 6835 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6836 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6837 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6838 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6839 // Please see the License for the specific language governing rights and 6840 // limitations under the License. 6841 // 6842 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6843 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 6844 // Copyright (c) 1991, 1993 6845 // The Regents of the University of California. All rights reserved. 6846 // 6847 // This code is derived from software contributed to Berkeley by 6848 // Berkeley Software Design, Inc. 6849 // 6850 // Redistribution and use in source and binary forms, with or without 6851 // modification, are permitted provided that the following conditions 6852 // are met: 6853 // 1. Redistributions of source code must retain the above copyright 6854 // notice, this list of conditions and the following disclaimer. 6855 // 2. Redistributions in binary form must reproduce the above copyright 6856 // notice, this list of conditions and the following disclaimer in the 6857 // documentation and/or other materials provided with the distribution. 6858 // 3. All advertising materials mentioning features or use of this software 6859 // must display the following acknowledgement: 6860 // This product includes software developed by the University of 6861 // California, Berkeley and its contributors. 6862 // 4. Neither the name of the University nor the names of its contributors 6863 // may be used to endorse or promote products derived from this software 6864 // without specific prior written permission. 6865 // 6866 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 6867 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 6868 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 6869 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 6870 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 6871 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 6872 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 6873 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 6874 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 6875 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6876 // SUCH DAMAGE. 6877 // 6878 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 6879 6880 // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved. 6881 // 6882 // @APPLE_LICENSE_HEADER_START@ 6883 // 6884 // This file contains Original Code and/or Modifications of Original Code 6885 // as defined in and that are subject to the Apple Public Source License 6886 // Version 2.0 (the 'License'). You may not use this file except in 6887 // compliance with the License. Please obtain a copy of the License at 6888 // http://www.opensource.apple.com/apsl/ and read it before using this 6889 // file. 6890 // 6891 // The Original Code and all software distributed under the License are 6892 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6893 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6894 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6895 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6896 // Please see the License for the specific language governing rights and 6897 // limitations under the License. 6898 // 6899 // @APPLE_LICENSE_HEADER_END@ 6900 6901 // Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 6902 // 6903 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6904 // 6905 // This file contains Original Code and/or Modifications of Original Code 6906 // as defined in and that are subject to the Apple Public Source License 6907 // Version 2.0 (the 'License'). You may not use this file except in 6908 // compliance with the License. The rights granted to you under the License 6909 // may not be used to create, or enable the creation or redistribution of, 6910 // unlawful or unlicensed copies of an Apple operating system, or to 6911 // circumvent, violate, or enable the circumvention or violation of, any 6912 // terms of an Apple operating system software license agreement. 6913 // 6914 // Please obtain a copy of the License at 6915 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6916 // 6917 // The Original Code and all software distributed under the License are 6918 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6919 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6920 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6921 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6922 // Please see the License for the specific language governing rights and 6923 // limitations under the License. 6924 // 6925 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6926 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 6927 // Copyright (c) 1982, 1986, 1989, 1993, 1994 6928 // The Regents of the University of California. All rights reserved. 6929 // 6930 // Redistribution and use in source and binary forms, with or without 6931 // modification, are permitted provided that the following conditions 6932 // are met: 6933 // 1. Redistributions of source code must retain the above copyright 6934 // notice, this list of conditions and the following disclaimer. 6935 // 2. Redistributions in binary form must reproduce the above copyright 6936 // notice, this list of conditions and the following disclaimer in the 6937 // documentation and/or other materials provided with the distribution. 6938 // 3. All advertising materials mentioning features or use of this software 6939 // must display the following acknowledgement: 6940 // This product includes software developed by the University of 6941 // California, Berkeley and its contributors. 6942 // 4. Neither the name of the University nor the names of its contributors 6943 // may be used to endorse or promote products derived from this software 6944 // without specific prior written permission. 6945 // 6946 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 6947 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 6948 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 6949 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 6950 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 6951 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 6952 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 6953 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 6954 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 6955 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6956 // SUCH DAMAGE. 6957 // 6958 // @(#)wait.h 8.2 (Berkeley) 7/10/94 6959 6960 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 6961 // 6962 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 6963 // 6964 // This file contains Original Code and/or Modifications of Original Code 6965 // as defined in and that are subject to the Apple Public Source License 6966 // Version 2.0 (the 'License'). You may not use this file except in 6967 // compliance with the License. The rights granted to you under the License 6968 // may not be used to create, or enable the creation or redistribution of, 6969 // unlawful or unlicensed copies of an Apple operating system, or to 6970 // circumvent, violate, or enable the circumvention or violation of, any 6971 // terms of an Apple operating system software license agreement. 6972 // 6973 // Please obtain a copy of the License at 6974 // http://www.opensource.apple.com/apsl/ and read it before using this file. 6975 // 6976 // The Original Code and all software distributed under the License are 6977 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 6978 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 6979 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 6980 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 6981 // Please see the License for the specific language governing rights and 6982 // limitations under the License. 6983 // 6984 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 6985 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 6986 // Copyright (c) 1991, 1993 6987 // The Regents of the University of California. All rights reserved. 6988 // 6989 // This code is derived from software contributed to Berkeley by 6990 // Berkeley Software Design, Inc. 6991 // 6992 // Redistribution and use in source and binary forms, with or without 6993 // modification, are permitted provided that the following conditions 6994 // are met: 6995 // 1. Redistributions of source code must retain the above copyright 6996 // notice, this list of conditions and the following disclaimer. 6997 // 2. Redistributions in binary form must reproduce the above copyright 6998 // notice, this list of conditions and the following disclaimer in the 6999 // documentation and/or other materials provided with the distribution. 7000 // 3. All advertising materials mentioning features or use of this software 7001 // must display the following acknowledgement: 7002 // This product includes software developed by the University of 7003 // California, Berkeley and its contributors. 7004 // 4. Neither the name of the University nor the names of its contributors 7005 // may be used to endorse or promote products derived from this software 7006 // without specific prior written permission. 7007 // 7008 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 7009 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 7010 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 7011 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 7012 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 7013 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 7014 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 7015 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 7016 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 7017 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 7018 // SUCH DAMAGE. 7019 // 7020 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 7021 7022 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 7023 // 7024 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7025 // 7026 // This file contains Original Code and/or Modifications of Original Code 7027 // as defined in and that are subject to the Apple Public Source License 7028 // Version 2.0 (the 'License'). You may not use this file except in 7029 // compliance with the License. The rights granted to you under the License 7030 // may not be used to create, or enable the creation or redistribution of, 7031 // unlawful or unlicensed copies of an Apple operating system, or to 7032 // circumvent, violate, or enable the circumvention or violation of, any 7033 // terms of an Apple operating system software license agreement. 7034 // 7035 // Please obtain a copy of the License at 7036 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7037 // 7038 // The Original Code and all software distributed under the License are 7039 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7040 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7041 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7042 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7043 // Please see the License for the specific language governing rights and 7044 // limitations under the License. 7045 // 7046 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7047 7048 // This file holds definitions relevent to the wait4 system call 7049 // and the alternate interfaces that use it (wait, wait3, waitpid). 7050 7051 // [XSI] The type idtype_t shall be defined as an enumeration type whose 7052 // possible values shall include at least P_ALL, P_PID, and P_PGID. 7053 type idtype_t = uint32 /* wait.h:83:3 */ 7054 7055 // [XSI] The id_t and pid_t types shall be defined as described 7056 // in <sys/types.h> 7057 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7058 // 7059 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7060 // 7061 // This file contains Original Code and/or Modifications of Original Code 7062 // as defined in and that are subject to the Apple Public Source License 7063 // Version 2.0 (the 'License'). You may not use this file except in 7064 // compliance with the License. The rights granted to you under the License 7065 // may not be used to create, or enable the creation or redistribution of, 7066 // unlawful or unlicensed copies of an Apple operating system, or to 7067 // circumvent, violate, or enable the circumvention or violation of, any 7068 // terms of an Apple operating system software license agreement. 7069 // 7070 // Please obtain a copy of the License at 7071 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7072 // 7073 // The Original Code and all software distributed under the License are 7074 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7075 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7076 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7077 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7078 // Please see the License for the specific language governing rights and 7079 // limitations under the License. 7080 // 7081 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7082 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7083 // 7084 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7085 // 7086 // This file contains Original Code and/or Modifications of Original Code 7087 // as defined in and that are subject to the Apple Public Source License 7088 // Version 2.0 (the 'License'). You may not use this file except in 7089 // compliance with the License. The rights granted to you under the License 7090 // may not be used to create, or enable the creation or redistribution of, 7091 // unlawful or unlicensed copies of an Apple operating system, or to 7092 // circumvent, violate, or enable the circumvention or violation of, any 7093 // terms of an Apple operating system software license agreement. 7094 // 7095 // Please obtain a copy of the License at 7096 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7097 // 7098 // The Original Code and all software distributed under the License are 7099 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7100 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7101 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7102 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7103 // Please see the License for the specific language governing rights and 7104 // limitations under the License. 7105 // 7106 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7107 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 7108 // 7109 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7110 // 7111 // This file contains Original Code and/or Modifications of Original Code 7112 // as defined in and that are subject to the Apple Public Source License 7113 // Version 2.0 (the 'License'). You may not use this file except in 7114 // compliance with the License. The rights granted to you under the License 7115 // may not be used to create, or enable the creation or redistribution of, 7116 // unlawful or unlicensed copies of an Apple operating system, or to 7117 // circumvent, violate, or enable the circumvention or violation of, any 7118 // terms of an Apple operating system software license agreement. 7119 // 7120 // Please obtain a copy of the License at 7121 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7122 // 7123 // The Original Code and all software distributed under the License are 7124 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7125 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7126 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7127 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7128 // Please see the License for the specific language governing rights and 7129 // limitations under the License. 7130 // 7131 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7132 7133 type id_t = uint32 /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_t 7134 7135 // [XSI] The siginfo_t type shall be defined as described in <signal.h> 7136 // [XSI] The rusage structure shall be defined as described in <sys/resource.h> 7137 // [XSI] Inclusion of the <sys/wait.h> header may also make visible all 7138 // symbols from <signal.h> and <sys/resource.h> 7139 // 7140 // NOTE: This requirement is currently being satisfied by the direct 7141 // inclusion of <sys/signal.h> and <sys/resource.h>, below. 7142 // 7143 // Software should not depend on the exposure of anything other 7144 // than the types siginfo_t and struct rusage as a result of 7145 // this inclusion. If you depend on any types or manifest 7146 // values othe than siginfo_t and struct rusage from either of 7147 // those files, you should explicitly include them yourself, as 7148 // well, or in future releases your stware may not compile 7149 // without modification. 7150 // Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved. 7151 // 7152 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7153 // 7154 // This file contains Original Code and/or Modifications of Original Code 7155 // as defined in and that are subject to the Apple Public Source License 7156 // Version 2.0 (the 'License'). You may not use this file except in 7157 // compliance with the License. The rights granted to you under the License 7158 // may not be used to create, or enable the creation or redistribution of, 7159 // unlawful or unlicensed copies of an Apple operating system, or to 7160 // circumvent, violate, or enable the circumvention or violation of, any 7161 // terms of an Apple operating system software license agreement. 7162 // 7163 // Please obtain a copy of the License at 7164 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7165 // 7166 // The Original Code and all software distributed under the License are 7167 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7168 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7169 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7170 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7171 // Please see the License for the specific language governing rights and 7172 // limitations under the License. 7173 // 7174 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7175 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 7176 // Copyright (c) 1982, 1986, 1989, 1991, 1993 7177 // The Regents of the University of California. All rights reserved. 7178 // (c) UNIX System Laboratories, Inc. 7179 // All or some portions of this file are derived from material licensed 7180 // to the University of California by American Telephone and Telegraph 7181 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 7182 // the permission of UNIX System Laboratories, Inc. 7183 // 7184 // Redistribution and use in source and binary forms, with or without 7185 // modification, are permitted provided that the following conditions 7186 // are met: 7187 // 1. Redistributions of source code must retain the above copyright 7188 // notice, this list of conditions and the following disclaimer. 7189 // 2. Redistributions in binary form must reproduce the above copyright 7190 // notice, this list of conditions and the following disclaimer in the 7191 // documentation and/or other materials provided with the distribution. 7192 // 3. All advertising materials mentioning features or use of this software 7193 // must display the following acknowledgement: 7194 // This product includes software developed by the University of 7195 // California, Berkeley and its contributors. 7196 // 4. Neither the name of the University nor the names of its contributors 7197 // may be used to endorse or promote products derived from this software 7198 // without specific prior written permission. 7199 // 7200 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 7201 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 7202 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 7203 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 7204 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 7205 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 7206 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 7207 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 7208 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 7209 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 7210 // SUCH DAMAGE. 7211 // 7212 // @(#)signal.h 8.2 (Berkeley) 1/21/94 7213 7214 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 7215 // 7216 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7217 // 7218 // This file contains Original Code and/or Modifications of Original Code 7219 // as defined in and that are subject to the Apple Public Source License 7220 // Version 2.0 (the 'License'). You may not use this file except in 7221 // compliance with the License. The rights granted to you under the License 7222 // may not be used to create, or enable the creation or redistribution of, 7223 // unlawful or unlicensed copies of an Apple operating system, or to 7224 // circumvent, violate, or enable the circumvention or violation of, any 7225 // terms of an Apple operating system software license agreement. 7226 // 7227 // Please obtain a copy of the License at 7228 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7229 // 7230 // The Original Code and all software distributed under the License are 7231 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7232 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7233 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7234 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7235 // Please see the License for the specific language governing rights and 7236 // limitations under the License. 7237 // 7238 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7239 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 7240 // Copyright (c) 1991, 1993 7241 // The Regents of the University of California. All rights reserved. 7242 // 7243 // This code is derived from software contributed to Berkeley by 7244 // Berkeley Software Design, Inc. 7245 // 7246 // Redistribution and use in source and binary forms, with or without 7247 // modification, are permitted provided that the following conditions 7248 // are met: 7249 // 1. Redistributions of source code must retain the above copyright 7250 // notice, this list of conditions and the following disclaimer. 7251 // 2. Redistributions in binary form must reproduce the above copyright 7252 // notice, this list of conditions and the following disclaimer in the 7253 // documentation and/or other materials provided with the distribution. 7254 // 3. All advertising materials mentioning features or use of this software 7255 // must display the following acknowledgement: 7256 // This product includes software developed by the University of 7257 // California, Berkeley and its contributors. 7258 // 4. Neither the name of the University nor the names of its contributors 7259 // may be used to endorse or promote products derived from this software 7260 // without specific prior written permission. 7261 // 7262 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 7263 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 7264 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 7265 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 7266 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 7267 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 7268 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 7269 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 7270 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 7271 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 7272 // SUCH DAMAGE. 7273 // 7274 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 7275 7276 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 7277 // 7278 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7279 // 7280 // This file contains Original Code and/or Modifications of Original Code 7281 // as defined in and that are subject to the Apple Public Source License 7282 // Version 2.0 (the 'License'). You may not use this file except in 7283 // compliance with the License. The rights granted to you under the License 7284 // may not be used to create, or enable the creation or redistribution of, 7285 // unlawful or unlicensed copies of an Apple operating system, or to 7286 // circumvent, violate, or enable the circumvention or violation of, any 7287 // terms of an Apple operating system software license agreement. 7288 // 7289 // Please obtain a copy of the License at 7290 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7291 // 7292 // The Original Code and all software distributed under the License are 7293 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7294 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7295 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7296 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7297 // Please see the License for the specific language governing rights and 7298 // limitations under the License. 7299 // 7300 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7301 7302 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 7303 // 7304 // @APPLE_LICENSE_HEADER_START@ 7305 // 7306 // This file contains Original Code and/or Modifications of Original Code 7307 // as defined in and that are subject to the Apple Public Source License 7308 // Version 2.0 (the 'License'). You may not use this file except in 7309 // compliance with the License. Please obtain a copy of the License at 7310 // http://www.opensource.apple.com/apsl/ and read it before using this 7311 // file. 7312 // 7313 // The Original Code and all software distributed under the License are 7314 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7315 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7316 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7317 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7318 // Please see the License for the specific language governing rights and 7319 // limitations under the License. 7320 // 7321 // @APPLE_LICENSE_HEADER_END@ 7322 7323 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 7324 // 7325 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7326 // 7327 // This file contains Original Code and/or Modifications of Original Code 7328 // as defined in and that are subject to the Apple Public Source License 7329 // Version 2.0 (the 'License'). You may not use this file except in 7330 // compliance with the License. The rights granted to you under the License 7331 // may not be used to create, or enable the creation or redistribution of, 7332 // unlawful or unlicensed copies of an Apple operating system, or to 7333 // circumvent, violate, or enable the circumvention or violation of, any 7334 // terms of an Apple operating system software license agreement. 7335 // 7336 // Please obtain a copy of the License at 7337 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7338 // 7339 // The Original Code and all software distributed under the License are 7340 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7341 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7342 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7343 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7344 // Please see the License for the specific language governing rights and 7345 // limitations under the License. 7346 // 7347 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7348 7349 // Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved. 7350 // 7351 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7352 // 7353 // This file contains Original Code and/or Modifications of Original Code 7354 // as defined in and that are subject to the Apple Public Source License 7355 // Version 2.0 (the 'License'). You may not use this file except in 7356 // compliance with the License. The rights granted to you under the License 7357 // may not be used to create, or enable the creation or redistribution of, 7358 // unlawful or unlicensed copies of an Apple operating system, or to 7359 // circumvent, violate, or enable the circumvention or violation of, any 7360 // terms of an Apple operating system software license agreement. 7361 // 7362 // Please obtain a copy of the License at 7363 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7364 // 7365 // The Original Code and all software distributed under the License are 7366 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7367 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7368 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7369 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7370 // Please see the License for the specific language governing rights and 7371 // limitations under the License. 7372 // 7373 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7374 // Copyright (c) 1992 NeXT Computer, Inc. 7375 // 7376 7377 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 7378 // 7379 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7380 // 7381 // This file contains Original Code and/or Modifications of Original Code 7382 // as defined in and that are subject to the Apple Public Source License 7383 // Version 2.0 (the 'License'). You may not use this file except in 7384 // compliance with the License. The rights granted to you under the License 7385 // may not be used to create, or enable the creation or redistribution of, 7386 // unlawful or unlicensed copies of an Apple operating system, or to 7387 // circumvent, violate, or enable the circumvention or violation of, any 7388 // terms of an Apple operating system software license agreement. 7389 // 7390 // Please obtain a copy of the License at 7391 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7392 // 7393 // The Original Code and all software distributed under the License are 7394 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7395 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7396 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7397 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7398 // Please see the License for the specific language governing rights and 7399 // limitations under the License. 7400 // 7401 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7402 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 7403 // Copyright (c) 1991, 1993 7404 // The Regents of the University of California. All rights reserved. 7405 // 7406 // This code is derived from software contributed to Berkeley by 7407 // Berkeley Software Design, Inc. 7408 // 7409 // Redistribution and use in source and binary forms, with or without 7410 // modification, are permitted provided that the following conditions 7411 // are met: 7412 // 1. Redistributions of source code must retain the above copyright 7413 // notice, this list of conditions and the following disclaimer. 7414 // 2. Redistributions in binary form must reproduce the above copyright 7415 // notice, this list of conditions and the following disclaimer in the 7416 // documentation and/or other materials provided with the distribution. 7417 // 3. All advertising materials mentioning features or use of this software 7418 // must display the following acknowledgement: 7419 // This product includes software developed by the University of 7420 // California, Berkeley and its contributors. 7421 // 4. Neither the name of the University nor the names of its contributors 7422 // may be used to endorse or promote products derived from this software 7423 // without specific prior written permission. 7424 // 7425 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 7426 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 7427 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 7428 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 7429 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 7430 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 7431 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 7432 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 7433 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 7434 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 7435 // SUCH DAMAGE. 7436 // 7437 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 7438 7439 type sig_atomic_t = int32 /* signal.h:39:13 */ 7440 7441 // Language spec sez we must list exactly one parameter, even though we 7442 // actually supply three. Ugh! 7443 // SIG_HOLD is chosen to avoid KERN_SIG_* values in <sys/signalvar.h> 7444 7445 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 7446 // 7447 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7448 // 7449 // This file contains Original Code and/or Modifications of Original Code 7450 // as defined in and that are subject to the Apple Public Source License 7451 // Version 2.0 (the 'License'). You may not use this file except in 7452 // compliance with the License. The rights granted to you under the License 7453 // may not be used to create, or enable the creation or redistribution of, 7454 // unlawful or unlicensed copies of an Apple operating system, or to 7455 // circumvent, violate, or enable the circumvention or violation of, any 7456 // terms of an Apple operating system software license agreement. 7457 // 7458 // Please obtain a copy of the License at 7459 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7460 // 7461 // The Original Code and all software distributed under the License are 7462 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7463 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7464 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7465 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7466 // Please see the License for the specific language governing rights and 7467 // limitations under the License. 7468 // 7469 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7470 7471 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7472 // 7473 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7474 // 7475 // This file contains Original Code and/or Modifications of Original Code 7476 // as defined in and that are subject to the Apple Public Source License 7477 // Version 2.0 (the 'License'). You may not use this file except in 7478 // compliance with the License. The rights granted to you under the License 7479 // may not be used to create, or enable the creation or redistribution of, 7480 // unlawful or unlicensed copies of an Apple operating system, or to 7481 // circumvent, violate, or enable the circumvention or violation of, any 7482 // terms of an Apple operating system software license agreement. 7483 // 7484 // Please obtain a copy of the License at 7485 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7486 // 7487 // The Original Code and all software distributed under the License are 7488 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7489 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7490 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7491 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7492 // Please see the License for the specific language governing rights and 7493 // limitations under the License. 7494 // 7495 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7496 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 7497 // 7498 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7499 // 7500 // This file contains Original Code and/or Modifications of Original Code 7501 // as defined in and that are subject to the Apple Public Source License 7502 // Version 2.0 (the 'License'). You may not use this file except in 7503 // compliance with the License. The rights granted to you under the License 7504 // may not be used to create, or enable the creation or redistribution of, 7505 // unlawful or unlicensed copies of an Apple operating system, or to 7506 // circumvent, violate, or enable the circumvention or violation of, any 7507 // terms of an Apple operating system software license agreement. 7508 // 7509 // Please obtain a copy of the License at 7510 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7511 // 7512 // The Original Code and all software distributed under the License are 7513 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7514 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7515 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7516 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7517 // Please see the License for the specific language governing rights and 7518 // limitations under the License. 7519 // 7520 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7521 7522 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 7523 // 7524 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7525 // 7526 // This file contains Original Code and/or Modifications of Original Code 7527 // as defined in and that are subject to the Apple Public Source License 7528 // Version 2.0 (the 'License'). You may not use this file except in 7529 // compliance with the License. The rights granted to you under the License 7530 // may not be used to create, or enable the creation or redistribution of, 7531 // unlawful or unlicensed copies of an Apple operating system, or to 7532 // circumvent, violate, or enable the circumvention or violation of, any 7533 // terms of an Apple operating system software license agreement. 7534 // 7535 // Please obtain a copy of the License at 7536 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7537 // 7538 // The Original Code and all software distributed under the License are 7539 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7540 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7541 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7542 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7543 // Please see the License for the specific language governing rights and 7544 // limitations under the License. 7545 // 7546 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7547 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 7548 // Copyright (c) 1991, 1993 7549 // The Regents of the University of California. All rights reserved. 7550 // 7551 // This code is derived from software contributed to Berkeley by 7552 // Berkeley Software Design, Inc. 7553 // 7554 // Redistribution and use in source and binary forms, with or without 7555 // modification, are permitted provided that the following conditions 7556 // are met: 7557 // 1. Redistributions of source code must retain the above copyright 7558 // notice, this list of conditions and the following disclaimer. 7559 // 2. Redistributions in binary form must reproduce the above copyright 7560 // notice, this list of conditions and the following disclaimer in the 7561 // documentation and/or other materials provided with the distribution. 7562 // 3. All advertising materials mentioning features or use of this software 7563 // must display the following acknowledgement: 7564 // This product includes software developed by the University of 7565 // California, Berkeley and its contributors. 7566 // 4. Neither the name of the University nor the names of its contributors 7567 // may be used to endorse or promote products derived from this software 7568 // without specific prior written permission. 7569 // 7570 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 7571 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 7572 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 7573 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 7574 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 7575 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 7576 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 7577 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 7578 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 7579 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 7580 // SUCH DAMAGE. 7581 // 7582 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 7583 7584 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 7585 // 7586 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7587 // 7588 // This file contains Original Code and/or Modifications of Original Code 7589 // as defined in and that are subject to the Apple Public Source License 7590 // Version 2.0 (the 'License'). You may not use this file except in 7591 // compliance with the License. The rights granted to you under the License 7592 // may not be used to create, or enable the creation or redistribution of, 7593 // unlawful or unlicensed copies of an Apple operating system, or to 7594 // circumvent, violate, or enable the circumvention or violation of, any 7595 // terms of an Apple operating system software license agreement. 7596 // 7597 // Please obtain a copy of the License at 7598 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7599 // 7600 // The Original Code and all software distributed under the License are 7601 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7602 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7603 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7604 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7605 // Please see the License for the specific language governing rights and 7606 // limitations under the License. 7607 // 7608 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7609 7610 // Copyright (c) 2017 Apple Inc. All rights reserved. 7611 // 7612 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7613 // 7614 // This file contains Original Code and/or Modifications of Original Code 7615 // as defined in and that are subject to the Apple Public Source License 7616 // Version 2.0 (the 'License'). You may not use this file except in 7617 // compliance with the License. The rights granted to you under the License 7618 // may not be used to create, or enable the creation or redistribution of, 7619 // unlawful or unlicensed copies of an Apple operating system, or to 7620 // circumvent, violate, or enable the circumvention or violation of, any 7621 // terms of an Apple operating system software license agreement. 7622 // 7623 // Please obtain a copy of the License at 7624 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7625 // 7626 // The Original Code and all software distributed under the License are 7627 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7628 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7629 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7630 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7631 // Please see the License for the specific language governing rights and 7632 // limitations under the License. 7633 // 7634 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7635 7636 // Copyright (c) 2004-2006 Apple Computer, Inc. All rights reserved. 7637 // 7638 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7639 // 7640 // This file contains Original Code and/or Modifications of Original Code 7641 // as defined in and that are subject to the Apple Public Source License 7642 // Version 2.0 (the 'License'). You may not use this file except in 7643 // compliance with the License. The rights granted to you under the License 7644 // may not be used to create, or enable the creation or redistribution of, 7645 // unlawful or unlicensed copies of an Apple operating system, or to 7646 // circumvent, violate, or enable the circumvention or violation of, any 7647 // terms of an Apple operating system software license agreement. 7648 // 7649 // Please obtain a copy of the License at 7650 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7651 // 7652 // The Original Code and all software distributed under the License are 7653 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7654 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7655 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7656 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7657 // Please see the License for the specific language governing rights and 7658 // limitations under the License. 7659 // 7660 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7661 // @OSF_COPYRIGHT@ 7662 7663 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 7664 // 7665 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7666 // 7667 // This file contains Original Code and/or Modifications of Original Code 7668 // as defined in and that are subject to the Apple Public Source License 7669 // Version 2.0 (the 'License'). You may not use this file except in 7670 // compliance with the License. The rights granted to you under the License 7671 // may not be used to create, or enable the creation or redistribution of, 7672 // unlawful or unlicensed copies of an Apple operating system, or to 7673 // circumvent, violate, or enable the circumvention or violation of, any 7674 // terms of an Apple operating system software license agreement. 7675 // 7676 // Please obtain a copy of the License at 7677 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7678 // 7679 // The Original Code and all software distributed under the License are 7680 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7681 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7682 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7683 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7684 // Please see the License for the specific language governing rights and 7685 // limitations under the License. 7686 // 7687 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7688 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 7689 // Copyright (c) 1991, 1993 7690 // The Regents of the University of California. All rights reserved. 7691 // 7692 // This code is derived from software contributed to Berkeley by 7693 // Berkeley Software Design, Inc. 7694 // 7695 // Redistribution and use in source and binary forms, with or without 7696 // modification, are permitted provided that the following conditions 7697 // are met: 7698 // 1. Redistributions of source code must retain the above copyright 7699 // notice, this list of conditions and the following disclaimer. 7700 // 2. Redistributions in binary form must reproduce the above copyright 7701 // notice, this list of conditions and the following disclaimer in the 7702 // documentation and/or other materials provided with the distribution. 7703 // 3. All advertising materials mentioning features or use of this software 7704 // must display the following acknowledgement: 7705 // This product includes software developed by the University of 7706 // California, Berkeley and its contributors. 7707 // 4. Neither the name of the University nor the names of its contributors 7708 // may be used to endorse or promote products derived from this software 7709 // without specific prior written permission. 7710 // 7711 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 7712 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 7713 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 7714 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 7715 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 7716 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 7717 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 7718 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 7719 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 7720 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 7721 // SUCH DAMAGE. 7722 // 7723 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 7724 7725 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 7726 // 7727 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 7728 // 7729 // This file contains Original Code and/or Modifications of Original Code 7730 // as defined in and that are subject to the Apple Public Source License 7731 // Version 2.0 (the 'License'). You may not use this file except in 7732 // compliance with the License. The rights granted to you under the License 7733 // may not be used to create, or enable the creation or redistribution of, 7734 // unlawful or unlicensed copies of an Apple operating system, or to 7735 // circumvent, violate, or enable the circumvention or violation of, any 7736 // terms of an Apple operating system software license agreement. 7737 // 7738 // Please obtain a copy of the License at 7739 // http://www.opensource.apple.com/apsl/ and read it before using this file. 7740 // 7741 // The Original Code and all software distributed under the License are 7742 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 7743 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 7744 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 7745 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 7746 // Please see the License for the specific language governing rights and 7747 // limitations under the License. 7748 // 7749 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 7750 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 7751 7752 // i386 is the structure that is exported to user threads for 7753 // use in status/mutate calls. This structure should never change. 7754 // 7755 7756 type __darwin_i386_thread_state = struct { 7757 __eax uint32 7758 __ebx uint32 7759 __ecx uint32 7760 __edx uint32 7761 __edi uint32 7762 __esi uint32 7763 __ebp uint32 7764 __esp uint32 7765 __ss uint32 7766 __eflags uint32 7767 __eip uint32 7768 __cs uint32 7769 __ds uint32 7770 __es uint32 7771 __fs uint32 7772 __gs uint32 7773 } /* _structs.h:46:1 */ 7774 7775 // This structure should be double-word aligned for performance 7776 7777 type __darwin_fp_control = struct { 7778 _ [0]uint16 7779 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 7780 } /* _structs.h:92:1 */ 7781 7782 // Status word. 7783 7784 type __darwin_fp_status = struct { 7785 _ [0]uint16 7786 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 7787 } /* _structs.h:150:1 */ 7788 7789 // defn of 80bit x87 FPU or MMX register 7790 7791 type __darwin_mmst_reg = struct { 7792 __mmst_reg [10]int8 7793 __mmst_rsrv [6]int8 7794 } /* _structs.h:194:1 */ 7795 7796 // defn of 128 bit XMM regs 7797 7798 type __darwin_xmm_reg = struct{ __xmm_reg [16]int8 } /* _structs.h:213:1 */ 7799 7800 // defn of 256 bit YMM regs 7801 7802 type __darwin_ymm_reg = struct{ __ymm_reg [32]int8 } /* _structs.h:229:1 */ 7803 7804 // defn of 512 bit ZMM regs 7805 7806 type __darwin_zmm_reg = struct{ __zmm_reg [64]int8 } /* _structs.h:245:1 */ 7807 7808 type __darwin_opmask_reg = struct{ __opmask_reg [8]int8 } /* _structs.h:259:1 */ 7809 7810 // Floating point state. 7811 7812 type __darwin_i386_float_state = struct { 7813 __fpu_reserved [2]int32 7814 __fpu_fcw struct { 7815 _ [0]uint16 7816 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 7817 } 7818 __fpu_fsw struct { 7819 _ [0]uint16 7820 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 7821 } 7822 __fpu_ftw uint8 7823 __fpu_rsrv1 uint8 7824 __fpu_fop uint16 7825 __fpu_ip uint32 7826 __fpu_cs uint16 7827 __fpu_rsrv2 uint16 7828 __fpu_dp uint32 7829 __fpu_ds uint16 7830 __fpu_rsrv3 uint16 7831 __fpu_mxcsr uint32 7832 __fpu_mxcsrmask uint32 7833 __fpu_stmm0 struct { 7834 __mmst_reg [10]int8 7835 __mmst_rsrv [6]int8 7836 } 7837 __fpu_stmm1 struct { 7838 __mmst_reg [10]int8 7839 __mmst_rsrv [6]int8 7840 } 7841 __fpu_stmm2 struct { 7842 __mmst_reg [10]int8 7843 __mmst_rsrv [6]int8 7844 } 7845 __fpu_stmm3 struct { 7846 __mmst_reg [10]int8 7847 __mmst_rsrv [6]int8 7848 } 7849 __fpu_stmm4 struct { 7850 __mmst_reg [10]int8 7851 __mmst_rsrv [6]int8 7852 } 7853 __fpu_stmm5 struct { 7854 __mmst_reg [10]int8 7855 __mmst_rsrv [6]int8 7856 } 7857 __fpu_stmm6 struct { 7858 __mmst_reg [10]int8 7859 __mmst_rsrv [6]int8 7860 } 7861 __fpu_stmm7 struct { 7862 __mmst_reg [10]int8 7863 __mmst_rsrv [6]int8 7864 } 7865 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 7866 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 7867 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 7868 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 7869 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 7870 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 7871 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 7872 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 7873 __fpu_rsrv4 [224]int8 7874 __fpu_reserved1 int32 7875 } /* _structs.h:281:1 */ 7876 7877 type __darwin_i386_avx_state = struct { 7878 __fpu_reserved [2]int32 7879 __fpu_fcw struct { 7880 _ [0]uint16 7881 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 7882 } 7883 __fpu_fsw struct { 7884 _ [0]uint16 7885 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 7886 } 7887 __fpu_ftw uint8 7888 __fpu_rsrv1 uint8 7889 __fpu_fop uint16 7890 __fpu_ip uint32 7891 __fpu_cs uint16 7892 __fpu_rsrv2 uint16 7893 __fpu_dp uint32 7894 __fpu_ds uint16 7895 __fpu_rsrv3 uint16 7896 __fpu_mxcsr uint32 7897 __fpu_mxcsrmask uint32 7898 __fpu_stmm0 struct { 7899 __mmst_reg [10]int8 7900 __mmst_rsrv [6]int8 7901 } 7902 __fpu_stmm1 struct { 7903 __mmst_reg [10]int8 7904 __mmst_rsrv [6]int8 7905 } 7906 __fpu_stmm2 struct { 7907 __mmst_reg [10]int8 7908 __mmst_rsrv [6]int8 7909 } 7910 __fpu_stmm3 struct { 7911 __mmst_reg [10]int8 7912 __mmst_rsrv [6]int8 7913 } 7914 __fpu_stmm4 struct { 7915 __mmst_reg [10]int8 7916 __mmst_rsrv [6]int8 7917 } 7918 __fpu_stmm5 struct { 7919 __mmst_reg [10]int8 7920 __mmst_rsrv [6]int8 7921 } 7922 __fpu_stmm6 struct { 7923 __mmst_reg [10]int8 7924 __mmst_rsrv [6]int8 7925 } 7926 __fpu_stmm7 struct { 7927 __mmst_reg [10]int8 7928 __mmst_rsrv [6]int8 7929 } 7930 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 7931 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 7932 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 7933 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 7934 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 7935 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 7936 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 7937 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 7938 __fpu_rsrv4 [224]int8 7939 __fpu_reserved1 int32 7940 __avx_reserved1 [64]int8 7941 __fpu_ymmh0 struct{ __xmm_reg [16]int8 } 7942 __fpu_ymmh1 struct{ __xmm_reg [16]int8 } 7943 __fpu_ymmh2 struct{ __xmm_reg [16]int8 } 7944 __fpu_ymmh3 struct{ __xmm_reg [16]int8 } 7945 __fpu_ymmh4 struct{ __xmm_reg [16]int8 } 7946 __fpu_ymmh5 struct{ __xmm_reg [16]int8 } 7947 __fpu_ymmh6 struct{ __xmm_reg [16]int8 } 7948 __fpu_ymmh7 struct{ __xmm_reg [16]int8 } 7949 } /* _structs.h:318:1 */ 7950 7951 type __darwin_i386_avx512_state = struct { 7952 __fpu_reserved [2]int32 7953 __fpu_fcw struct { 7954 _ [0]uint16 7955 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 7956 } 7957 __fpu_fsw struct { 7958 _ [0]uint16 7959 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 7960 } 7961 __fpu_ftw uint8 7962 __fpu_rsrv1 uint8 7963 __fpu_fop uint16 7964 __fpu_ip uint32 7965 __fpu_cs uint16 7966 __fpu_rsrv2 uint16 7967 __fpu_dp uint32 7968 __fpu_ds uint16 7969 __fpu_rsrv3 uint16 7970 __fpu_mxcsr uint32 7971 __fpu_mxcsrmask uint32 7972 __fpu_stmm0 struct { 7973 __mmst_reg [10]int8 7974 __mmst_rsrv [6]int8 7975 } 7976 __fpu_stmm1 struct { 7977 __mmst_reg [10]int8 7978 __mmst_rsrv [6]int8 7979 } 7980 __fpu_stmm2 struct { 7981 __mmst_reg [10]int8 7982 __mmst_rsrv [6]int8 7983 } 7984 __fpu_stmm3 struct { 7985 __mmst_reg [10]int8 7986 __mmst_rsrv [6]int8 7987 } 7988 __fpu_stmm4 struct { 7989 __mmst_reg [10]int8 7990 __mmst_rsrv [6]int8 7991 } 7992 __fpu_stmm5 struct { 7993 __mmst_reg [10]int8 7994 __mmst_rsrv [6]int8 7995 } 7996 __fpu_stmm6 struct { 7997 __mmst_reg [10]int8 7998 __mmst_rsrv [6]int8 7999 } 8000 __fpu_stmm7 struct { 8001 __mmst_reg [10]int8 8002 __mmst_rsrv [6]int8 8003 } 8004 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 8005 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 8006 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 8007 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 8008 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 8009 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 8010 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 8011 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 8012 __fpu_rsrv4 [224]int8 8013 __fpu_reserved1 int32 8014 __avx_reserved1 [64]int8 8015 __fpu_ymmh0 struct{ __xmm_reg [16]int8 } 8016 __fpu_ymmh1 struct{ __xmm_reg [16]int8 } 8017 __fpu_ymmh2 struct{ __xmm_reg [16]int8 } 8018 __fpu_ymmh3 struct{ __xmm_reg [16]int8 } 8019 __fpu_ymmh4 struct{ __xmm_reg [16]int8 } 8020 __fpu_ymmh5 struct{ __xmm_reg [16]int8 } 8021 __fpu_ymmh6 struct{ __xmm_reg [16]int8 } 8022 __fpu_ymmh7 struct{ __xmm_reg [16]int8 } 8023 __fpu_k0 struct{ __opmask_reg [8]int8 } 8024 __fpu_k1 struct{ __opmask_reg [8]int8 } 8025 __fpu_k2 struct{ __opmask_reg [8]int8 } 8026 __fpu_k3 struct{ __opmask_reg [8]int8 } 8027 __fpu_k4 struct{ __opmask_reg [8]int8 } 8028 __fpu_k5 struct{ __opmask_reg [8]int8 } 8029 __fpu_k6 struct{ __opmask_reg [8]int8 } 8030 __fpu_k7 struct{ __opmask_reg [8]int8 } 8031 __fpu_zmmh0 struct{ __ymm_reg [32]int8 } 8032 __fpu_zmmh1 struct{ __ymm_reg [32]int8 } 8033 __fpu_zmmh2 struct{ __ymm_reg [32]int8 } 8034 __fpu_zmmh3 struct{ __ymm_reg [32]int8 } 8035 __fpu_zmmh4 struct{ __ymm_reg [32]int8 } 8036 __fpu_zmmh5 struct{ __ymm_reg [32]int8 } 8037 __fpu_zmmh6 struct{ __ymm_reg [32]int8 } 8038 __fpu_zmmh7 struct{ __ymm_reg [32]int8 } 8039 } /* _structs.h:364:1 */ 8040 8041 type __darwin_i386_exception_state = struct { 8042 __trapno uint16 8043 __cpu uint16 8044 __err uint32 8045 __faultvaddr uint32 8046 } /* _structs.h:575:1 */ 8047 8048 type __darwin_x86_debug_state32 = struct { 8049 __dr0 uint32 8050 __dr1 uint32 8051 __dr2 uint32 8052 __dr3 uint32 8053 __dr4 uint32 8054 __dr5 uint32 8055 __dr6 uint32 8056 __dr7 uint32 8057 } /* _structs.h:595:1 */ 8058 8059 type __x86_pagein_state = struct{ __pagein_error int32 } /* _structs.h:622:1 */ 8060 8061 // 64 bit versions of the above 8062 8063 type __darwin_x86_thread_state64 = struct { 8064 __rax uint64 8065 __rbx uint64 8066 __rcx uint64 8067 __rdx uint64 8068 __rdi uint64 8069 __rsi uint64 8070 __rbp uint64 8071 __rsp uint64 8072 __r8 uint64 8073 __r9 uint64 8074 __r10 uint64 8075 __r11 uint64 8076 __r12 uint64 8077 __r13 uint64 8078 __r14 uint64 8079 __r15 uint64 8080 __rip uint64 8081 __rflags uint64 8082 __cs uint64 8083 __fs uint64 8084 __gs uint64 8085 } /* _structs.h:633:1 */ 8086 8087 // 64 bit versions of the above (complete) 8088 8089 type __darwin_x86_thread_full_state64 = struct { 8090 __ss64 struct { 8091 __rax uint64 8092 __rbx uint64 8093 __rcx uint64 8094 __rdx uint64 8095 __rdi uint64 8096 __rsi uint64 8097 __rbp uint64 8098 __rsp uint64 8099 __r8 uint64 8100 __r9 uint64 8101 __r10 uint64 8102 __r11 uint64 8103 __r12 uint64 8104 __r13 uint64 8105 __r14 uint64 8106 __r15 uint64 8107 __rip uint64 8108 __rflags uint64 8109 __cs uint64 8110 __fs uint64 8111 __gs uint64 8112 } 8113 __ds uint64 8114 __es uint64 8115 __ss uint64 8116 __gsbase uint64 8117 } /* _structs.h:691:1 */ 8118 8119 type __darwin_x86_float_state64 = struct { 8120 __fpu_reserved [2]int32 8121 __fpu_fcw struct { 8122 _ [0]uint16 8123 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 8124 } 8125 __fpu_fsw struct { 8126 _ [0]uint16 8127 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 8128 } 8129 __fpu_ftw uint8 8130 __fpu_rsrv1 uint8 8131 __fpu_fop uint16 8132 __fpu_ip uint32 8133 __fpu_cs uint16 8134 __fpu_rsrv2 uint16 8135 __fpu_dp uint32 8136 __fpu_ds uint16 8137 __fpu_rsrv3 uint16 8138 __fpu_mxcsr uint32 8139 __fpu_mxcsrmask uint32 8140 __fpu_stmm0 struct { 8141 __mmst_reg [10]int8 8142 __mmst_rsrv [6]int8 8143 } 8144 __fpu_stmm1 struct { 8145 __mmst_reg [10]int8 8146 __mmst_rsrv [6]int8 8147 } 8148 __fpu_stmm2 struct { 8149 __mmst_reg [10]int8 8150 __mmst_rsrv [6]int8 8151 } 8152 __fpu_stmm3 struct { 8153 __mmst_reg [10]int8 8154 __mmst_rsrv [6]int8 8155 } 8156 __fpu_stmm4 struct { 8157 __mmst_reg [10]int8 8158 __mmst_rsrv [6]int8 8159 } 8160 __fpu_stmm5 struct { 8161 __mmst_reg [10]int8 8162 __mmst_rsrv [6]int8 8163 } 8164 __fpu_stmm6 struct { 8165 __mmst_reg [10]int8 8166 __mmst_rsrv [6]int8 8167 } 8168 __fpu_stmm7 struct { 8169 __mmst_reg [10]int8 8170 __mmst_rsrv [6]int8 8171 } 8172 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 8173 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 8174 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 8175 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 8176 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 8177 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 8178 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 8179 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 8180 __fpu_xmm8 struct{ __xmm_reg [16]int8 } 8181 __fpu_xmm9 struct{ __xmm_reg [16]int8 } 8182 __fpu_xmm10 struct{ __xmm_reg [16]int8 } 8183 __fpu_xmm11 struct{ __xmm_reg [16]int8 } 8184 __fpu_xmm12 struct{ __xmm_reg [16]int8 } 8185 __fpu_xmm13 struct{ __xmm_reg [16]int8 } 8186 __fpu_xmm14 struct{ __xmm_reg [16]int8 } 8187 __fpu_xmm15 struct{ __xmm_reg [16]int8 } 8188 __fpu_rsrv4 [96]int8 8189 __fpu_reserved1 int32 8190 } /* _structs.h:714:1 */ 8191 8192 type __darwin_x86_avx_state64 = struct { 8193 __fpu_reserved [2]int32 8194 __fpu_fcw struct { 8195 _ [0]uint16 8196 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 8197 } 8198 __fpu_fsw struct { 8199 _ [0]uint16 8200 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 8201 } 8202 __fpu_ftw uint8 8203 __fpu_rsrv1 uint8 8204 __fpu_fop uint16 8205 __fpu_ip uint32 8206 __fpu_cs uint16 8207 __fpu_rsrv2 uint16 8208 __fpu_dp uint32 8209 __fpu_ds uint16 8210 __fpu_rsrv3 uint16 8211 __fpu_mxcsr uint32 8212 __fpu_mxcsrmask uint32 8213 __fpu_stmm0 struct { 8214 __mmst_reg [10]int8 8215 __mmst_rsrv [6]int8 8216 } 8217 __fpu_stmm1 struct { 8218 __mmst_reg [10]int8 8219 __mmst_rsrv [6]int8 8220 } 8221 __fpu_stmm2 struct { 8222 __mmst_reg [10]int8 8223 __mmst_rsrv [6]int8 8224 } 8225 __fpu_stmm3 struct { 8226 __mmst_reg [10]int8 8227 __mmst_rsrv [6]int8 8228 } 8229 __fpu_stmm4 struct { 8230 __mmst_reg [10]int8 8231 __mmst_rsrv [6]int8 8232 } 8233 __fpu_stmm5 struct { 8234 __mmst_reg [10]int8 8235 __mmst_rsrv [6]int8 8236 } 8237 __fpu_stmm6 struct { 8238 __mmst_reg [10]int8 8239 __mmst_rsrv [6]int8 8240 } 8241 __fpu_stmm7 struct { 8242 __mmst_reg [10]int8 8243 __mmst_rsrv [6]int8 8244 } 8245 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 8246 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 8247 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 8248 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 8249 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 8250 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 8251 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 8252 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 8253 __fpu_xmm8 struct{ __xmm_reg [16]int8 } 8254 __fpu_xmm9 struct{ __xmm_reg [16]int8 } 8255 __fpu_xmm10 struct{ __xmm_reg [16]int8 } 8256 __fpu_xmm11 struct{ __xmm_reg [16]int8 } 8257 __fpu_xmm12 struct{ __xmm_reg [16]int8 } 8258 __fpu_xmm13 struct{ __xmm_reg [16]int8 } 8259 __fpu_xmm14 struct{ __xmm_reg [16]int8 } 8260 __fpu_xmm15 struct{ __xmm_reg [16]int8 } 8261 __fpu_rsrv4 [96]int8 8262 __fpu_reserved1 int32 8263 __avx_reserved1 [64]int8 8264 __fpu_ymmh0 struct{ __xmm_reg [16]int8 } 8265 __fpu_ymmh1 struct{ __xmm_reg [16]int8 } 8266 __fpu_ymmh2 struct{ __xmm_reg [16]int8 } 8267 __fpu_ymmh3 struct{ __xmm_reg [16]int8 } 8268 __fpu_ymmh4 struct{ __xmm_reg [16]int8 } 8269 __fpu_ymmh5 struct{ __xmm_reg [16]int8 } 8270 __fpu_ymmh6 struct{ __xmm_reg [16]int8 } 8271 __fpu_ymmh7 struct{ __xmm_reg [16]int8 } 8272 __fpu_ymmh8 struct{ __xmm_reg [16]int8 } 8273 __fpu_ymmh9 struct{ __xmm_reg [16]int8 } 8274 __fpu_ymmh10 struct{ __xmm_reg [16]int8 } 8275 __fpu_ymmh11 struct{ __xmm_reg [16]int8 } 8276 __fpu_ymmh12 struct{ __xmm_reg [16]int8 } 8277 __fpu_ymmh13 struct{ __xmm_reg [16]int8 } 8278 __fpu_ymmh14 struct{ __xmm_reg [16]int8 } 8279 __fpu_ymmh15 struct{ __xmm_reg [16]int8 } 8280 } /* _structs.h:765:1 */ 8281 8282 type __darwin_x86_avx512_state64 = struct { 8283 __fpu_reserved [2]int32 8284 __fpu_fcw struct { 8285 _ [0]uint16 8286 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 8287 } 8288 __fpu_fsw struct { 8289 _ [0]uint16 8290 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 8291 } 8292 __fpu_ftw uint8 8293 __fpu_rsrv1 uint8 8294 __fpu_fop uint16 8295 __fpu_ip uint32 8296 __fpu_cs uint16 8297 __fpu_rsrv2 uint16 8298 __fpu_dp uint32 8299 __fpu_ds uint16 8300 __fpu_rsrv3 uint16 8301 __fpu_mxcsr uint32 8302 __fpu_mxcsrmask uint32 8303 __fpu_stmm0 struct { 8304 __mmst_reg [10]int8 8305 __mmst_rsrv [6]int8 8306 } 8307 __fpu_stmm1 struct { 8308 __mmst_reg [10]int8 8309 __mmst_rsrv [6]int8 8310 } 8311 __fpu_stmm2 struct { 8312 __mmst_reg [10]int8 8313 __mmst_rsrv [6]int8 8314 } 8315 __fpu_stmm3 struct { 8316 __mmst_reg [10]int8 8317 __mmst_rsrv [6]int8 8318 } 8319 __fpu_stmm4 struct { 8320 __mmst_reg [10]int8 8321 __mmst_rsrv [6]int8 8322 } 8323 __fpu_stmm5 struct { 8324 __mmst_reg [10]int8 8325 __mmst_rsrv [6]int8 8326 } 8327 __fpu_stmm6 struct { 8328 __mmst_reg [10]int8 8329 __mmst_rsrv [6]int8 8330 } 8331 __fpu_stmm7 struct { 8332 __mmst_reg [10]int8 8333 __mmst_rsrv [6]int8 8334 } 8335 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 8336 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 8337 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 8338 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 8339 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 8340 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 8341 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 8342 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 8343 __fpu_xmm8 struct{ __xmm_reg [16]int8 } 8344 __fpu_xmm9 struct{ __xmm_reg [16]int8 } 8345 __fpu_xmm10 struct{ __xmm_reg [16]int8 } 8346 __fpu_xmm11 struct{ __xmm_reg [16]int8 } 8347 __fpu_xmm12 struct{ __xmm_reg [16]int8 } 8348 __fpu_xmm13 struct{ __xmm_reg [16]int8 } 8349 __fpu_xmm14 struct{ __xmm_reg [16]int8 } 8350 __fpu_xmm15 struct{ __xmm_reg [16]int8 } 8351 __fpu_rsrv4 [96]int8 8352 __fpu_reserved1 int32 8353 __avx_reserved1 [64]int8 8354 __fpu_ymmh0 struct{ __xmm_reg [16]int8 } 8355 __fpu_ymmh1 struct{ __xmm_reg [16]int8 } 8356 __fpu_ymmh2 struct{ __xmm_reg [16]int8 } 8357 __fpu_ymmh3 struct{ __xmm_reg [16]int8 } 8358 __fpu_ymmh4 struct{ __xmm_reg [16]int8 } 8359 __fpu_ymmh5 struct{ __xmm_reg [16]int8 } 8360 __fpu_ymmh6 struct{ __xmm_reg [16]int8 } 8361 __fpu_ymmh7 struct{ __xmm_reg [16]int8 } 8362 __fpu_ymmh8 struct{ __xmm_reg [16]int8 } 8363 __fpu_ymmh9 struct{ __xmm_reg [16]int8 } 8364 __fpu_ymmh10 struct{ __xmm_reg [16]int8 } 8365 __fpu_ymmh11 struct{ __xmm_reg [16]int8 } 8366 __fpu_ymmh12 struct{ __xmm_reg [16]int8 } 8367 __fpu_ymmh13 struct{ __xmm_reg [16]int8 } 8368 __fpu_ymmh14 struct{ __xmm_reg [16]int8 } 8369 __fpu_ymmh15 struct{ __xmm_reg [16]int8 } 8370 __fpu_k0 struct{ __opmask_reg [8]int8 } 8371 __fpu_k1 struct{ __opmask_reg [8]int8 } 8372 __fpu_k2 struct{ __opmask_reg [8]int8 } 8373 __fpu_k3 struct{ __opmask_reg [8]int8 } 8374 __fpu_k4 struct{ __opmask_reg [8]int8 } 8375 __fpu_k5 struct{ __opmask_reg [8]int8 } 8376 __fpu_k6 struct{ __opmask_reg [8]int8 } 8377 __fpu_k7 struct{ __opmask_reg [8]int8 } 8378 __fpu_zmmh0 struct{ __ymm_reg [32]int8 } 8379 __fpu_zmmh1 struct{ __ymm_reg [32]int8 } 8380 __fpu_zmmh2 struct{ __ymm_reg [32]int8 } 8381 __fpu_zmmh3 struct{ __ymm_reg [32]int8 } 8382 __fpu_zmmh4 struct{ __ymm_reg [32]int8 } 8383 __fpu_zmmh5 struct{ __ymm_reg [32]int8 } 8384 __fpu_zmmh6 struct{ __ymm_reg [32]int8 } 8385 __fpu_zmmh7 struct{ __ymm_reg [32]int8 } 8386 __fpu_zmmh8 struct{ __ymm_reg [32]int8 } 8387 __fpu_zmmh9 struct{ __ymm_reg [32]int8 } 8388 __fpu_zmmh10 struct{ __ymm_reg [32]int8 } 8389 __fpu_zmmh11 struct{ __ymm_reg [32]int8 } 8390 __fpu_zmmh12 struct{ __ymm_reg [32]int8 } 8391 __fpu_zmmh13 struct{ __ymm_reg [32]int8 } 8392 __fpu_zmmh14 struct{ __ymm_reg [32]int8 } 8393 __fpu_zmmh15 struct{ __ymm_reg [32]int8 } 8394 __fpu_zmm16 struct{ __zmm_reg [64]int8 } 8395 __fpu_zmm17 struct{ __zmm_reg [64]int8 } 8396 __fpu_zmm18 struct{ __zmm_reg [64]int8 } 8397 __fpu_zmm19 struct{ __zmm_reg [64]int8 } 8398 __fpu_zmm20 struct{ __zmm_reg [64]int8 } 8399 __fpu_zmm21 struct{ __zmm_reg [64]int8 } 8400 __fpu_zmm22 struct{ __zmm_reg [64]int8 } 8401 __fpu_zmm23 struct{ __zmm_reg [64]int8 } 8402 __fpu_zmm24 struct{ __zmm_reg [64]int8 } 8403 __fpu_zmm25 struct{ __zmm_reg [64]int8 } 8404 __fpu_zmm26 struct{ __zmm_reg [64]int8 } 8405 __fpu_zmm27 struct{ __zmm_reg [64]int8 } 8406 __fpu_zmm28 struct{ __zmm_reg [64]int8 } 8407 __fpu_zmm29 struct{ __zmm_reg [64]int8 } 8408 __fpu_zmm30 struct{ __zmm_reg [64]int8 } 8409 __fpu_zmm31 struct{ __zmm_reg [64]int8 } 8410 } /* _structs.h:833:1 */ 8411 8412 type __darwin_x86_exception_state64 = struct { 8413 __trapno uint16 8414 __cpu uint16 8415 __err uint32 8416 __faultvaddr uint64 8417 } /* _structs.h:1172:1 */ 8418 8419 type __darwin_x86_debug_state64 = struct { 8420 __dr0 uint64 8421 __dr1 uint64 8422 __dr2 uint64 8423 __dr3 uint64 8424 __dr4 uint64 8425 __dr5 uint64 8426 __dr6 uint64 8427 __dr7 uint64 8428 } /* _structs.h:1192:1 */ 8429 8430 type __darwin_x86_cpmu_state64 = struct{ __ctrs [16]uint64 } /* _structs.h:1220:1 */ 8431 8432 type __darwin_mcontext32 = struct { 8433 __es struct { 8434 __trapno uint16 8435 __cpu uint16 8436 __err uint32 8437 __faultvaddr uint32 8438 } 8439 __ss struct { 8440 __eax uint32 8441 __ebx uint32 8442 __ecx uint32 8443 __edx uint32 8444 __edi uint32 8445 __esi uint32 8446 __ebp uint32 8447 __esp uint32 8448 __ss uint32 8449 __eflags uint32 8450 __eip uint32 8451 __cs uint32 8452 __ds uint32 8453 __es uint32 8454 __fs uint32 8455 __gs uint32 8456 } 8457 __fs struct { 8458 __fpu_reserved [2]int32 8459 __fpu_fcw struct { 8460 _ [0]uint16 8461 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 8462 } 8463 __fpu_fsw struct { 8464 _ [0]uint16 8465 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 8466 } 8467 __fpu_ftw uint8 8468 __fpu_rsrv1 uint8 8469 __fpu_fop uint16 8470 __fpu_ip uint32 8471 __fpu_cs uint16 8472 __fpu_rsrv2 uint16 8473 __fpu_dp uint32 8474 __fpu_ds uint16 8475 __fpu_rsrv3 uint16 8476 __fpu_mxcsr uint32 8477 __fpu_mxcsrmask uint32 8478 __fpu_stmm0 struct { 8479 __mmst_reg [10]int8 8480 __mmst_rsrv [6]int8 8481 } 8482 __fpu_stmm1 struct { 8483 __mmst_reg [10]int8 8484 __mmst_rsrv [6]int8 8485 } 8486 __fpu_stmm2 struct { 8487 __mmst_reg [10]int8 8488 __mmst_rsrv [6]int8 8489 } 8490 __fpu_stmm3 struct { 8491 __mmst_reg [10]int8 8492 __mmst_rsrv [6]int8 8493 } 8494 __fpu_stmm4 struct { 8495 __mmst_reg [10]int8 8496 __mmst_rsrv [6]int8 8497 } 8498 __fpu_stmm5 struct { 8499 __mmst_reg [10]int8 8500 __mmst_rsrv [6]int8 8501 } 8502 __fpu_stmm6 struct { 8503 __mmst_reg [10]int8 8504 __mmst_rsrv [6]int8 8505 } 8506 __fpu_stmm7 struct { 8507 __mmst_reg [10]int8 8508 __mmst_rsrv [6]int8 8509 } 8510 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 8511 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 8512 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 8513 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 8514 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 8515 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 8516 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 8517 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 8518 __fpu_rsrv4 [224]int8 8519 __fpu_reserved1 int32 8520 } 8521 } /* _mcontext.h:39:1 */ 8522 8523 type __darwin_mcontext_avx32 = struct { 8524 __es struct { 8525 __trapno uint16 8526 __cpu uint16 8527 __err uint32 8528 __faultvaddr uint32 8529 } 8530 __ss struct { 8531 __eax uint32 8532 __ebx uint32 8533 __ecx uint32 8534 __edx uint32 8535 __edi uint32 8536 __esi uint32 8537 __ebp uint32 8538 __esp uint32 8539 __ss uint32 8540 __eflags uint32 8541 __eip uint32 8542 __cs uint32 8543 __ds uint32 8544 __es uint32 8545 __fs uint32 8546 __gs uint32 8547 } 8548 __fs struct { 8549 __fpu_reserved [2]int32 8550 __fpu_fcw struct { 8551 _ [0]uint16 8552 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 8553 } 8554 __fpu_fsw struct { 8555 _ [0]uint16 8556 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 8557 } 8558 __fpu_ftw uint8 8559 __fpu_rsrv1 uint8 8560 __fpu_fop uint16 8561 __fpu_ip uint32 8562 __fpu_cs uint16 8563 __fpu_rsrv2 uint16 8564 __fpu_dp uint32 8565 __fpu_ds uint16 8566 __fpu_rsrv3 uint16 8567 __fpu_mxcsr uint32 8568 __fpu_mxcsrmask uint32 8569 __fpu_stmm0 struct { 8570 __mmst_reg [10]int8 8571 __mmst_rsrv [6]int8 8572 } 8573 __fpu_stmm1 struct { 8574 __mmst_reg [10]int8 8575 __mmst_rsrv [6]int8 8576 } 8577 __fpu_stmm2 struct { 8578 __mmst_reg [10]int8 8579 __mmst_rsrv [6]int8 8580 } 8581 __fpu_stmm3 struct { 8582 __mmst_reg [10]int8 8583 __mmst_rsrv [6]int8 8584 } 8585 __fpu_stmm4 struct { 8586 __mmst_reg [10]int8 8587 __mmst_rsrv [6]int8 8588 } 8589 __fpu_stmm5 struct { 8590 __mmst_reg [10]int8 8591 __mmst_rsrv [6]int8 8592 } 8593 __fpu_stmm6 struct { 8594 __mmst_reg [10]int8 8595 __mmst_rsrv [6]int8 8596 } 8597 __fpu_stmm7 struct { 8598 __mmst_reg [10]int8 8599 __mmst_rsrv [6]int8 8600 } 8601 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 8602 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 8603 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 8604 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 8605 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 8606 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 8607 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 8608 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 8609 __fpu_rsrv4 [224]int8 8610 __fpu_reserved1 int32 8611 __avx_reserved1 [64]int8 8612 __fpu_ymmh0 struct{ __xmm_reg [16]int8 } 8613 __fpu_ymmh1 struct{ __xmm_reg [16]int8 } 8614 __fpu_ymmh2 struct{ __xmm_reg [16]int8 } 8615 __fpu_ymmh3 struct{ __xmm_reg [16]int8 } 8616 __fpu_ymmh4 struct{ __xmm_reg [16]int8 } 8617 __fpu_ymmh5 struct{ __xmm_reg [16]int8 } 8618 __fpu_ymmh6 struct{ __xmm_reg [16]int8 } 8619 __fpu_ymmh7 struct{ __xmm_reg [16]int8 } 8620 } 8621 } /* _mcontext.h:47:1 */ 8622 8623 type __darwin_mcontext_avx512_32 = struct { 8624 __es struct { 8625 __trapno uint16 8626 __cpu uint16 8627 __err uint32 8628 __faultvaddr uint32 8629 } 8630 __ss struct { 8631 __eax uint32 8632 __ebx uint32 8633 __ecx uint32 8634 __edx uint32 8635 __edi uint32 8636 __esi uint32 8637 __ebp uint32 8638 __esp uint32 8639 __ss uint32 8640 __eflags uint32 8641 __eip uint32 8642 __cs uint32 8643 __ds uint32 8644 __es uint32 8645 __fs uint32 8646 __gs uint32 8647 } 8648 __fs struct { 8649 __fpu_reserved [2]int32 8650 __fpu_fcw struct { 8651 _ [0]uint16 8652 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 8653 } 8654 __fpu_fsw struct { 8655 _ [0]uint16 8656 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 8657 } 8658 __fpu_ftw uint8 8659 __fpu_rsrv1 uint8 8660 __fpu_fop uint16 8661 __fpu_ip uint32 8662 __fpu_cs uint16 8663 __fpu_rsrv2 uint16 8664 __fpu_dp uint32 8665 __fpu_ds uint16 8666 __fpu_rsrv3 uint16 8667 __fpu_mxcsr uint32 8668 __fpu_mxcsrmask uint32 8669 __fpu_stmm0 struct { 8670 __mmst_reg [10]int8 8671 __mmst_rsrv [6]int8 8672 } 8673 __fpu_stmm1 struct { 8674 __mmst_reg [10]int8 8675 __mmst_rsrv [6]int8 8676 } 8677 __fpu_stmm2 struct { 8678 __mmst_reg [10]int8 8679 __mmst_rsrv [6]int8 8680 } 8681 __fpu_stmm3 struct { 8682 __mmst_reg [10]int8 8683 __mmst_rsrv [6]int8 8684 } 8685 __fpu_stmm4 struct { 8686 __mmst_reg [10]int8 8687 __mmst_rsrv [6]int8 8688 } 8689 __fpu_stmm5 struct { 8690 __mmst_reg [10]int8 8691 __mmst_rsrv [6]int8 8692 } 8693 __fpu_stmm6 struct { 8694 __mmst_reg [10]int8 8695 __mmst_rsrv [6]int8 8696 } 8697 __fpu_stmm7 struct { 8698 __mmst_reg [10]int8 8699 __mmst_rsrv [6]int8 8700 } 8701 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 8702 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 8703 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 8704 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 8705 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 8706 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 8707 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 8708 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 8709 __fpu_rsrv4 [224]int8 8710 __fpu_reserved1 int32 8711 __avx_reserved1 [64]int8 8712 __fpu_ymmh0 struct{ __xmm_reg [16]int8 } 8713 __fpu_ymmh1 struct{ __xmm_reg [16]int8 } 8714 __fpu_ymmh2 struct{ __xmm_reg [16]int8 } 8715 __fpu_ymmh3 struct{ __xmm_reg [16]int8 } 8716 __fpu_ymmh4 struct{ __xmm_reg [16]int8 } 8717 __fpu_ymmh5 struct{ __xmm_reg [16]int8 } 8718 __fpu_ymmh6 struct{ __xmm_reg [16]int8 } 8719 __fpu_ymmh7 struct{ __xmm_reg [16]int8 } 8720 __fpu_k0 struct{ __opmask_reg [8]int8 } 8721 __fpu_k1 struct{ __opmask_reg [8]int8 } 8722 __fpu_k2 struct{ __opmask_reg [8]int8 } 8723 __fpu_k3 struct{ __opmask_reg [8]int8 } 8724 __fpu_k4 struct{ __opmask_reg [8]int8 } 8725 __fpu_k5 struct{ __opmask_reg [8]int8 } 8726 __fpu_k6 struct{ __opmask_reg [8]int8 } 8727 __fpu_k7 struct{ __opmask_reg [8]int8 } 8728 __fpu_zmmh0 struct{ __ymm_reg [32]int8 } 8729 __fpu_zmmh1 struct{ __ymm_reg [32]int8 } 8730 __fpu_zmmh2 struct{ __ymm_reg [32]int8 } 8731 __fpu_zmmh3 struct{ __ymm_reg [32]int8 } 8732 __fpu_zmmh4 struct{ __ymm_reg [32]int8 } 8733 __fpu_zmmh5 struct{ __ymm_reg [32]int8 } 8734 __fpu_zmmh6 struct{ __ymm_reg [32]int8 } 8735 __fpu_zmmh7 struct{ __ymm_reg [32]int8 } 8736 } 8737 } /* _mcontext.h:56:1 */ 8738 8739 type __darwin_mcontext64 = struct { 8740 __es struct { 8741 __trapno uint16 8742 __cpu uint16 8743 __err uint32 8744 __faultvaddr uint64 8745 } 8746 __ss struct { 8747 __rax uint64 8748 __rbx uint64 8749 __rcx uint64 8750 __rdx uint64 8751 __rdi uint64 8752 __rsi uint64 8753 __rbp uint64 8754 __rsp uint64 8755 __r8 uint64 8756 __r9 uint64 8757 __r10 uint64 8758 __r11 uint64 8759 __r12 uint64 8760 __r13 uint64 8761 __r14 uint64 8762 __r15 uint64 8763 __rip uint64 8764 __rflags uint64 8765 __cs uint64 8766 __fs uint64 8767 __gs uint64 8768 } 8769 __fs struct { 8770 __fpu_reserved [2]int32 8771 __fpu_fcw struct { 8772 _ [0]uint16 8773 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 8774 } 8775 __fpu_fsw struct { 8776 _ [0]uint16 8777 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 8778 } 8779 __fpu_ftw uint8 8780 __fpu_rsrv1 uint8 8781 __fpu_fop uint16 8782 __fpu_ip uint32 8783 __fpu_cs uint16 8784 __fpu_rsrv2 uint16 8785 __fpu_dp uint32 8786 __fpu_ds uint16 8787 __fpu_rsrv3 uint16 8788 __fpu_mxcsr uint32 8789 __fpu_mxcsrmask uint32 8790 __fpu_stmm0 struct { 8791 __mmst_reg [10]int8 8792 __mmst_rsrv [6]int8 8793 } 8794 __fpu_stmm1 struct { 8795 __mmst_reg [10]int8 8796 __mmst_rsrv [6]int8 8797 } 8798 __fpu_stmm2 struct { 8799 __mmst_reg [10]int8 8800 __mmst_rsrv [6]int8 8801 } 8802 __fpu_stmm3 struct { 8803 __mmst_reg [10]int8 8804 __mmst_rsrv [6]int8 8805 } 8806 __fpu_stmm4 struct { 8807 __mmst_reg [10]int8 8808 __mmst_rsrv [6]int8 8809 } 8810 __fpu_stmm5 struct { 8811 __mmst_reg [10]int8 8812 __mmst_rsrv [6]int8 8813 } 8814 __fpu_stmm6 struct { 8815 __mmst_reg [10]int8 8816 __mmst_rsrv [6]int8 8817 } 8818 __fpu_stmm7 struct { 8819 __mmst_reg [10]int8 8820 __mmst_rsrv [6]int8 8821 } 8822 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 8823 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 8824 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 8825 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 8826 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 8827 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 8828 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 8829 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 8830 __fpu_xmm8 struct{ __xmm_reg [16]int8 } 8831 __fpu_xmm9 struct{ __xmm_reg [16]int8 } 8832 __fpu_xmm10 struct{ __xmm_reg [16]int8 } 8833 __fpu_xmm11 struct{ __xmm_reg [16]int8 } 8834 __fpu_xmm12 struct{ __xmm_reg [16]int8 } 8835 __fpu_xmm13 struct{ __xmm_reg [16]int8 } 8836 __fpu_xmm14 struct{ __xmm_reg [16]int8 } 8837 __fpu_xmm15 struct{ __xmm_reg [16]int8 } 8838 __fpu_rsrv4 [96]int8 8839 __fpu_reserved1 int32 8840 } 8841 _ [4]byte 8842 } /* _mcontext.h:97:1 */ 8843 8844 type __darwin_mcontext64_full = struct { 8845 __es struct { 8846 __trapno uint16 8847 __cpu uint16 8848 __err uint32 8849 __faultvaddr uint64 8850 } 8851 __ss struct { 8852 __ss64 struct { 8853 __rax uint64 8854 __rbx uint64 8855 __rcx uint64 8856 __rdx uint64 8857 __rdi uint64 8858 __rsi uint64 8859 __rbp uint64 8860 __rsp uint64 8861 __r8 uint64 8862 __r9 uint64 8863 __r10 uint64 8864 __r11 uint64 8865 __r12 uint64 8866 __r13 uint64 8867 __r14 uint64 8868 __r15 uint64 8869 __rip uint64 8870 __rflags uint64 8871 __cs uint64 8872 __fs uint64 8873 __gs uint64 8874 } 8875 __ds uint64 8876 __es uint64 8877 __ss uint64 8878 __gsbase uint64 8879 } 8880 __fs struct { 8881 __fpu_reserved [2]int32 8882 __fpu_fcw struct { 8883 _ [0]uint16 8884 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 8885 } 8886 __fpu_fsw struct { 8887 _ [0]uint16 8888 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 8889 } 8890 __fpu_ftw uint8 8891 __fpu_rsrv1 uint8 8892 __fpu_fop uint16 8893 __fpu_ip uint32 8894 __fpu_cs uint16 8895 __fpu_rsrv2 uint16 8896 __fpu_dp uint32 8897 __fpu_ds uint16 8898 __fpu_rsrv3 uint16 8899 __fpu_mxcsr uint32 8900 __fpu_mxcsrmask uint32 8901 __fpu_stmm0 struct { 8902 __mmst_reg [10]int8 8903 __mmst_rsrv [6]int8 8904 } 8905 __fpu_stmm1 struct { 8906 __mmst_reg [10]int8 8907 __mmst_rsrv [6]int8 8908 } 8909 __fpu_stmm2 struct { 8910 __mmst_reg [10]int8 8911 __mmst_rsrv [6]int8 8912 } 8913 __fpu_stmm3 struct { 8914 __mmst_reg [10]int8 8915 __mmst_rsrv [6]int8 8916 } 8917 __fpu_stmm4 struct { 8918 __mmst_reg [10]int8 8919 __mmst_rsrv [6]int8 8920 } 8921 __fpu_stmm5 struct { 8922 __mmst_reg [10]int8 8923 __mmst_rsrv [6]int8 8924 } 8925 __fpu_stmm6 struct { 8926 __mmst_reg [10]int8 8927 __mmst_rsrv [6]int8 8928 } 8929 __fpu_stmm7 struct { 8930 __mmst_reg [10]int8 8931 __mmst_rsrv [6]int8 8932 } 8933 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 8934 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 8935 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 8936 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 8937 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 8938 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 8939 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 8940 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 8941 __fpu_xmm8 struct{ __xmm_reg [16]int8 } 8942 __fpu_xmm9 struct{ __xmm_reg [16]int8 } 8943 __fpu_xmm10 struct{ __xmm_reg [16]int8 } 8944 __fpu_xmm11 struct{ __xmm_reg [16]int8 } 8945 __fpu_xmm12 struct{ __xmm_reg [16]int8 } 8946 __fpu_xmm13 struct{ __xmm_reg [16]int8 } 8947 __fpu_xmm14 struct{ __xmm_reg [16]int8 } 8948 __fpu_xmm15 struct{ __xmm_reg [16]int8 } 8949 __fpu_rsrv4 [96]int8 8950 __fpu_reserved1 int32 8951 } 8952 _ [4]byte 8953 } /* _mcontext.h:105:1 */ 8954 8955 type __darwin_mcontext_avx64 = struct { 8956 __es struct { 8957 __trapno uint16 8958 __cpu uint16 8959 __err uint32 8960 __faultvaddr uint64 8961 } 8962 __ss struct { 8963 __rax uint64 8964 __rbx uint64 8965 __rcx uint64 8966 __rdx uint64 8967 __rdi uint64 8968 __rsi uint64 8969 __rbp uint64 8970 __rsp uint64 8971 __r8 uint64 8972 __r9 uint64 8973 __r10 uint64 8974 __r11 uint64 8975 __r12 uint64 8976 __r13 uint64 8977 __r14 uint64 8978 __r15 uint64 8979 __rip uint64 8980 __rflags uint64 8981 __cs uint64 8982 __fs uint64 8983 __gs uint64 8984 } 8985 __fs struct { 8986 __fpu_reserved [2]int32 8987 __fpu_fcw struct { 8988 _ [0]uint16 8989 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 8990 } 8991 __fpu_fsw struct { 8992 _ [0]uint16 8993 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 8994 } 8995 __fpu_ftw uint8 8996 __fpu_rsrv1 uint8 8997 __fpu_fop uint16 8998 __fpu_ip uint32 8999 __fpu_cs uint16 9000 __fpu_rsrv2 uint16 9001 __fpu_dp uint32 9002 __fpu_ds uint16 9003 __fpu_rsrv3 uint16 9004 __fpu_mxcsr uint32 9005 __fpu_mxcsrmask uint32 9006 __fpu_stmm0 struct { 9007 __mmst_reg [10]int8 9008 __mmst_rsrv [6]int8 9009 } 9010 __fpu_stmm1 struct { 9011 __mmst_reg [10]int8 9012 __mmst_rsrv [6]int8 9013 } 9014 __fpu_stmm2 struct { 9015 __mmst_reg [10]int8 9016 __mmst_rsrv [6]int8 9017 } 9018 __fpu_stmm3 struct { 9019 __mmst_reg [10]int8 9020 __mmst_rsrv [6]int8 9021 } 9022 __fpu_stmm4 struct { 9023 __mmst_reg [10]int8 9024 __mmst_rsrv [6]int8 9025 } 9026 __fpu_stmm5 struct { 9027 __mmst_reg [10]int8 9028 __mmst_rsrv [6]int8 9029 } 9030 __fpu_stmm6 struct { 9031 __mmst_reg [10]int8 9032 __mmst_rsrv [6]int8 9033 } 9034 __fpu_stmm7 struct { 9035 __mmst_reg [10]int8 9036 __mmst_rsrv [6]int8 9037 } 9038 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 9039 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 9040 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 9041 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 9042 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 9043 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 9044 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 9045 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 9046 __fpu_xmm8 struct{ __xmm_reg [16]int8 } 9047 __fpu_xmm9 struct{ __xmm_reg [16]int8 } 9048 __fpu_xmm10 struct{ __xmm_reg [16]int8 } 9049 __fpu_xmm11 struct{ __xmm_reg [16]int8 } 9050 __fpu_xmm12 struct{ __xmm_reg [16]int8 } 9051 __fpu_xmm13 struct{ __xmm_reg [16]int8 } 9052 __fpu_xmm14 struct{ __xmm_reg [16]int8 } 9053 __fpu_xmm15 struct{ __xmm_reg [16]int8 } 9054 __fpu_rsrv4 [96]int8 9055 __fpu_reserved1 int32 9056 __avx_reserved1 [64]int8 9057 __fpu_ymmh0 struct{ __xmm_reg [16]int8 } 9058 __fpu_ymmh1 struct{ __xmm_reg [16]int8 } 9059 __fpu_ymmh2 struct{ __xmm_reg [16]int8 } 9060 __fpu_ymmh3 struct{ __xmm_reg [16]int8 } 9061 __fpu_ymmh4 struct{ __xmm_reg [16]int8 } 9062 __fpu_ymmh5 struct{ __xmm_reg [16]int8 } 9063 __fpu_ymmh6 struct{ __xmm_reg [16]int8 } 9064 __fpu_ymmh7 struct{ __xmm_reg [16]int8 } 9065 __fpu_ymmh8 struct{ __xmm_reg [16]int8 } 9066 __fpu_ymmh9 struct{ __xmm_reg [16]int8 } 9067 __fpu_ymmh10 struct{ __xmm_reg [16]int8 } 9068 __fpu_ymmh11 struct{ __xmm_reg [16]int8 } 9069 __fpu_ymmh12 struct{ __xmm_reg [16]int8 } 9070 __fpu_ymmh13 struct{ __xmm_reg [16]int8 } 9071 __fpu_ymmh14 struct{ __xmm_reg [16]int8 } 9072 __fpu_ymmh15 struct{ __xmm_reg [16]int8 } 9073 } 9074 _ [4]byte 9075 } /* _mcontext.h:113:1 */ 9076 9077 type __darwin_mcontext_avx64_full = struct { 9078 __es struct { 9079 __trapno uint16 9080 __cpu uint16 9081 __err uint32 9082 __faultvaddr uint64 9083 } 9084 __ss struct { 9085 __ss64 struct { 9086 __rax uint64 9087 __rbx uint64 9088 __rcx uint64 9089 __rdx uint64 9090 __rdi uint64 9091 __rsi uint64 9092 __rbp uint64 9093 __rsp uint64 9094 __r8 uint64 9095 __r9 uint64 9096 __r10 uint64 9097 __r11 uint64 9098 __r12 uint64 9099 __r13 uint64 9100 __r14 uint64 9101 __r15 uint64 9102 __rip uint64 9103 __rflags uint64 9104 __cs uint64 9105 __fs uint64 9106 __gs uint64 9107 } 9108 __ds uint64 9109 __es uint64 9110 __ss uint64 9111 __gsbase uint64 9112 } 9113 __fs struct { 9114 __fpu_reserved [2]int32 9115 __fpu_fcw struct { 9116 _ [0]uint16 9117 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 9118 } 9119 __fpu_fsw struct { 9120 _ [0]uint16 9121 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 9122 } 9123 __fpu_ftw uint8 9124 __fpu_rsrv1 uint8 9125 __fpu_fop uint16 9126 __fpu_ip uint32 9127 __fpu_cs uint16 9128 __fpu_rsrv2 uint16 9129 __fpu_dp uint32 9130 __fpu_ds uint16 9131 __fpu_rsrv3 uint16 9132 __fpu_mxcsr uint32 9133 __fpu_mxcsrmask uint32 9134 __fpu_stmm0 struct { 9135 __mmst_reg [10]int8 9136 __mmst_rsrv [6]int8 9137 } 9138 __fpu_stmm1 struct { 9139 __mmst_reg [10]int8 9140 __mmst_rsrv [6]int8 9141 } 9142 __fpu_stmm2 struct { 9143 __mmst_reg [10]int8 9144 __mmst_rsrv [6]int8 9145 } 9146 __fpu_stmm3 struct { 9147 __mmst_reg [10]int8 9148 __mmst_rsrv [6]int8 9149 } 9150 __fpu_stmm4 struct { 9151 __mmst_reg [10]int8 9152 __mmst_rsrv [6]int8 9153 } 9154 __fpu_stmm5 struct { 9155 __mmst_reg [10]int8 9156 __mmst_rsrv [6]int8 9157 } 9158 __fpu_stmm6 struct { 9159 __mmst_reg [10]int8 9160 __mmst_rsrv [6]int8 9161 } 9162 __fpu_stmm7 struct { 9163 __mmst_reg [10]int8 9164 __mmst_rsrv [6]int8 9165 } 9166 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 9167 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 9168 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 9169 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 9170 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 9171 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 9172 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 9173 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 9174 __fpu_xmm8 struct{ __xmm_reg [16]int8 } 9175 __fpu_xmm9 struct{ __xmm_reg [16]int8 } 9176 __fpu_xmm10 struct{ __xmm_reg [16]int8 } 9177 __fpu_xmm11 struct{ __xmm_reg [16]int8 } 9178 __fpu_xmm12 struct{ __xmm_reg [16]int8 } 9179 __fpu_xmm13 struct{ __xmm_reg [16]int8 } 9180 __fpu_xmm14 struct{ __xmm_reg [16]int8 } 9181 __fpu_xmm15 struct{ __xmm_reg [16]int8 } 9182 __fpu_rsrv4 [96]int8 9183 __fpu_reserved1 int32 9184 __avx_reserved1 [64]int8 9185 __fpu_ymmh0 struct{ __xmm_reg [16]int8 } 9186 __fpu_ymmh1 struct{ __xmm_reg [16]int8 } 9187 __fpu_ymmh2 struct{ __xmm_reg [16]int8 } 9188 __fpu_ymmh3 struct{ __xmm_reg [16]int8 } 9189 __fpu_ymmh4 struct{ __xmm_reg [16]int8 } 9190 __fpu_ymmh5 struct{ __xmm_reg [16]int8 } 9191 __fpu_ymmh6 struct{ __xmm_reg [16]int8 } 9192 __fpu_ymmh7 struct{ __xmm_reg [16]int8 } 9193 __fpu_ymmh8 struct{ __xmm_reg [16]int8 } 9194 __fpu_ymmh9 struct{ __xmm_reg [16]int8 } 9195 __fpu_ymmh10 struct{ __xmm_reg [16]int8 } 9196 __fpu_ymmh11 struct{ __xmm_reg [16]int8 } 9197 __fpu_ymmh12 struct{ __xmm_reg [16]int8 } 9198 __fpu_ymmh13 struct{ __xmm_reg [16]int8 } 9199 __fpu_ymmh14 struct{ __xmm_reg [16]int8 } 9200 __fpu_ymmh15 struct{ __xmm_reg [16]int8 } 9201 } 9202 _ [4]byte 9203 } /* _mcontext.h:121:1 */ 9204 9205 type __darwin_mcontext_avx512_64 = struct { 9206 __es struct { 9207 __trapno uint16 9208 __cpu uint16 9209 __err uint32 9210 __faultvaddr uint64 9211 } 9212 __ss struct { 9213 __rax uint64 9214 __rbx uint64 9215 __rcx uint64 9216 __rdx uint64 9217 __rdi uint64 9218 __rsi uint64 9219 __rbp uint64 9220 __rsp uint64 9221 __r8 uint64 9222 __r9 uint64 9223 __r10 uint64 9224 __r11 uint64 9225 __r12 uint64 9226 __r13 uint64 9227 __r14 uint64 9228 __r15 uint64 9229 __rip uint64 9230 __rflags uint64 9231 __cs uint64 9232 __fs uint64 9233 __gs uint64 9234 } 9235 __fs struct { 9236 __fpu_reserved [2]int32 9237 __fpu_fcw struct { 9238 _ [0]uint16 9239 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 9240 } 9241 __fpu_fsw struct { 9242 _ [0]uint16 9243 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 9244 } 9245 __fpu_ftw uint8 9246 __fpu_rsrv1 uint8 9247 __fpu_fop uint16 9248 __fpu_ip uint32 9249 __fpu_cs uint16 9250 __fpu_rsrv2 uint16 9251 __fpu_dp uint32 9252 __fpu_ds uint16 9253 __fpu_rsrv3 uint16 9254 __fpu_mxcsr uint32 9255 __fpu_mxcsrmask uint32 9256 __fpu_stmm0 struct { 9257 __mmst_reg [10]int8 9258 __mmst_rsrv [6]int8 9259 } 9260 __fpu_stmm1 struct { 9261 __mmst_reg [10]int8 9262 __mmst_rsrv [6]int8 9263 } 9264 __fpu_stmm2 struct { 9265 __mmst_reg [10]int8 9266 __mmst_rsrv [6]int8 9267 } 9268 __fpu_stmm3 struct { 9269 __mmst_reg [10]int8 9270 __mmst_rsrv [6]int8 9271 } 9272 __fpu_stmm4 struct { 9273 __mmst_reg [10]int8 9274 __mmst_rsrv [6]int8 9275 } 9276 __fpu_stmm5 struct { 9277 __mmst_reg [10]int8 9278 __mmst_rsrv [6]int8 9279 } 9280 __fpu_stmm6 struct { 9281 __mmst_reg [10]int8 9282 __mmst_rsrv [6]int8 9283 } 9284 __fpu_stmm7 struct { 9285 __mmst_reg [10]int8 9286 __mmst_rsrv [6]int8 9287 } 9288 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 9289 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 9290 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 9291 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 9292 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 9293 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 9294 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 9295 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 9296 __fpu_xmm8 struct{ __xmm_reg [16]int8 } 9297 __fpu_xmm9 struct{ __xmm_reg [16]int8 } 9298 __fpu_xmm10 struct{ __xmm_reg [16]int8 } 9299 __fpu_xmm11 struct{ __xmm_reg [16]int8 } 9300 __fpu_xmm12 struct{ __xmm_reg [16]int8 } 9301 __fpu_xmm13 struct{ __xmm_reg [16]int8 } 9302 __fpu_xmm14 struct{ __xmm_reg [16]int8 } 9303 __fpu_xmm15 struct{ __xmm_reg [16]int8 } 9304 __fpu_rsrv4 [96]int8 9305 __fpu_reserved1 int32 9306 __avx_reserved1 [64]int8 9307 __fpu_ymmh0 struct{ __xmm_reg [16]int8 } 9308 __fpu_ymmh1 struct{ __xmm_reg [16]int8 } 9309 __fpu_ymmh2 struct{ __xmm_reg [16]int8 } 9310 __fpu_ymmh3 struct{ __xmm_reg [16]int8 } 9311 __fpu_ymmh4 struct{ __xmm_reg [16]int8 } 9312 __fpu_ymmh5 struct{ __xmm_reg [16]int8 } 9313 __fpu_ymmh6 struct{ __xmm_reg [16]int8 } 9314 __fpu_ymmh7 struct{ __xmm_reg [16]int8 } 9315 __fpu_ymmh8 struct{ __xmm_reg [16]int8 } 9316 __fpu_ymmh9 struct{ __xmm_reg [16]int8 } 9317 __fpu_ymmh10 struct{ __xmm_reg [16]int8 } 9318 __fpu_ymmh11 struct{ __xmm_reg [16]int8 } 9319 __fpu_ymmh12 struct{ __xmm_reg [16]int8 } 9320 __fpu_ymmh13 struct{ __xmm_reg [16]int8 } 9321 __fpu_ymmh14 struct{ __xmm_reg [16]int8 } 9322 __fpu_ymmh15 struct{ __xmm_reg [16]int8 } 9323 __fpu_k0 struct{ __opmask_reg [8]int8 } 9324 __fpu_k1 struct{ __opmask_reg [8]int8 } 9325 __fpu_k2 struct{ __opmask_reg [8]int8 } 9326 __fpu_k3 struct{ __opmask_reg [8]int8 } 9327 __fpu_k4 struct{ __opmask_reg [8]int8 } 9328 __fpu_k5 struct{ __opmask_reg [8]int8 } 9329 __fpu_k6 struct{ __opmask_reg [8]int8 } 9330 __fpu_k7 struct{ __opmask_reg [8]int8 } 9331 __fpu_zmmh0 struct{ __ymm_reg [32]int8 } 9332 __fpu_zmmh1 struct{ __ymm_reg [32]int8 } 9333 __fpu_zmmh2 struct{ __ymm_reg [32]int8 } 9334 __fpu_zmmh3 struct{ __ymm_reg [32]int8 } 9335 __fpu_zmmh4 struct{ __ymm_reg [32]int8 } 9336 __fpu_zmmh5 struct{ __ymm_reg [32]int8 } 9337 __fpu_zmmh6 struct{ __ymm_reg [32]int8 } 9338 __fpu_zmmh7 struct{ __ymm_reg [32]int8 } 9339 __fpu_zmmh8 struct{ __ymm_reg [32]int8 } 9340 __fpu_zmmh9 struct{ __ymm_reg [32]int8 } 9341 __fpu_zmmh10 struct{ __ymm_reg [32]int8 } 9342 __fpu_zmmh11 struct{ __ymm_reg [32]int8 } 9343 __fpu_zmmh12 struct{ __ymm_reg [32]int8 } 9344 __fpu_zmmh13 struct{ __ymm_reg [32]int8 } 9345 __fpu_zmmh14 struct{ __ymm_reg [32]int8 } 9346 __fpu_zmmh15 struct{ __ymm_reg [32]int8 } 9347 __fpu_zmm16 struct{ __zmm_reg [64]int8 } 9348 __fpu_zmm17 struct{ __zmm_reg [64]int8 } 9349 __fpu_zmm18 struct{ __zmm_reg [64]int8 } 9350 __fpu_zmm19 struct{ __zmm_reg [64]int8 } 9351 __fpu_zmm20 struct{ __zmm_reg [64]int8 } 9352 __fpu_zmm21 struct{ __zmm_reg [64]int8 } 9353 __fpu_zmm22 struct{ __zmm_reg [64]int8 } 9354 __fpu_zmm23 struct{ __zmm_reg [64]int8 } 9355 __fpu_zmm24 struct{ __zmm_reg [64]int8 } 9356 __fpu_zmm25 struct{ __zmm_reg [64]int8 } 9357 __fpu_zmm26 struct{ __zmm_reg [64]int8 } 9358 __fpu_zmm27 struct{ __zmm_reg [64]int8 } 9359 __fpu_zmm28 struct{ __zmm_reg [64]int8 } 9360 __fpu_zmm29 struct{ __zmm_reg [64]int8 } 9361 __fpu_zmm30 struct{ __zmm_reg [64]int8 } 9362 __fpu_zmm31 struct{ __zmm_reg [64]int8 } 9363 } 9364 _ [4]byte 9365 } /* _mcontext.h:130:1 */ 9366 9367 type __darwin_mcontext_avx512_64_full = struct { 9368 __es struct { 9369 __trapno uint16 9370 __cpu uint16 9371 __err uint32 9372 __faultvaddr uint64 9373 } 9374 __ss struct { 9375 __ss64 struct { 9376 __rax uint64 9377 __rbx uint64 9378 __rcx uint64 9379 __rdx uint64 9380 __rdi uint64 9381 __rsi uint64 9382 __rbp uint64 9383 __rsp uint64 9384 __r8 uint64 9385 __r9 uint64 9386 __r10 uint64 9387 __r11 uint64 9388 __r12 uint64 9389 __r13 uint64 9390 __r14 uint64 9391 __r15 uint64 9392 __rip uint64 9393 __rflags uint64 9394 __cs uint64 9395 __fs uint64 9396 __gs uint64 9397 } 9398 __ds uint64 9399 __es uint64 9400 __ss uint64 9401 __gsbase uint64 9402 } 9403 __fs struct { 9404 __fpu_reserved [2]int32 9405 __fpu_fcw struct { 9406 _ [0]uint16 9407 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short : 2, unsigned short __pc: 2, unsigned short __rc: 2, unsigned short : 1, unsigned short : 3 */ 9408 } 9409 __fpu_fsw struct { 9410 _ [0]uint16 9411 __invalid uint16 /* unsigned short __invalid: 1, unsigned short __denorm: 1, unsigned short __zdiv: 1, unsigned short __ovrfl: 1, unsigned short __undfl: 1, unsigned short __precis: 1, unsigned short __stkflt: 1, unsigned short __errsumm: 1, unsigned short __c0: 1, unsigned short __c1: 1, unsigned short __c2: 1, unsigned short __tos: 3, unsigned short __c3: 1, unsigned short __busy: 1 */ 9412 } 9413 __fpu_ftw uint8 9414 __fpu_rsrv1 uint8 9415 __fpu_fop uint16 9416 __fpu_ip uint32 9417 __fpu_cs uint16 9418 __fpu_rsrv2 uint16 9419 __fpu_dp uint32 9420 __fpu_ds uint16 9421 __fpu_rsrv3 uint16 9422 __fpu_mxcsr uint32 9423 __fpu_mxcsrmask uint32 9424 __fpu_stmm0 struct { 9425 __mmst_reg [10]int8 9426 __mmst_rsrv [6]int8 9427 } 9428 __fpu_stmm1 struct { 9429 __mmst_reg [10]int8 9430 __mmst_rsrv [6]int8 9431 } 9432 __fpu_stmm2 struct { 9433 __mmst_reg [10]int8 9434 __mmst_rsrv [6]int8 9435 } 9436 __fpu_stmm3 struct { 9437 __mmst_reg [10]int8 9438 __mmst_rsrv [6]int8 9439 } 9440 __fpu_stmm4 struct { 9441 __mmst_reg [10]int8 9442 __mmst_rsrv [6]int8 9443 } 9444 __fpu_stmm5 struct { 9445 __mmst_reg [10]int8 9446 __mmst_rsrv [6]int8 9447 } 9448 __fpu_stmm6 struct { 9449 __mmst_reg [10]int8 9450 __mmst_rsrv [6]int8 9451 } 9452 __fpu_stmm7 struct { 9453 __mmst_reg [10]int8 9454 __mmst_rsrv [6]int8 9455 } 9456 __fpu_xmm0 struct{ __xmm_reg [16]int8 } 9457 __fpu_xmm1 struct{ __xmm_reg [16]int8 } 9458 __fpu_xmm2 struct{ __xmm_reg [16]int8 } 9459 __fpu_xmm3 struct{ __xmm_reg [16]int8 } 9460 __fpu_xmm4 struct{ __xmm_reg [16]int8 } 9461 __fpu_xmm5 struct{ __xmm_reg [16]int8 } 9462 __fpu_xmm6 struct{ __xmm_reg [16]int8 } 9463 __fpu_xmm7 struct{ __xmm_reg [16]int8 } 9464 __fpu_xmm8 struct{ __xmm_reg [16]int8 } 9465 __fpu_xmm9 struct{ __xmm_reg [16]int8 } 9466 __fpu_xmm10 struct{ __xmm_reg [16]int8 } 9467 __fpu_xmm11 struct{ __xmm_reg [16]int8 } 9468 __fpu_xmm12 struct{ __xmm_reg [16]int8 } 9469 __fpu_xmm13 struct{ __xmm_reg [16]int8 } 9470 __fpu_xmm14 struct{ __xmm_reg [16]int8 } 9471 __fpu_xmm15 struct{ __xmm_reg [16]int8 } 9472 __fpu_rsrv4 [96]int8 9473 __fpu_reserved1 int32 9474 __avx_reserved1 [64]int8 9475 __fpu_ymmh0 struct{ __xmm_reg [16]int8 } 9476 __fpu_ymmh1 struct{ __xmm_reg [16]int8 } 9477 __fpu_ymmh2 struct{ __xmm_reg [16]int8 } 9478 __fpu_ymmh3 struct{ __xmm_reg [16]int8 } 9479 __fpu_ymmh4 struct{ __xmm_reg [16]int8 } 9480 __fpu_ymmh5 struct{ __xmm_reg [16]int8 } 9481 __fpu_ymmh6 struct{ __xmm_reg [16]int8 } 9482 __fpu_ymmh7 struct{ __xmm_reg [16]int8 } 9483 __fpu_ymmh8 struct{ __xmm_reg [16]int8 } 9484 __fpu_ymmh9 struct{ __xmm_reg [16]int8 } 9485 __fpu_ymmh10 struct{ __xmm_reg [16]int8 } 9486 __fpu_ymmh11 struct{ __xmm_reg [16]int8 } 9487 __fpu_ymmh12 struct{ __xmm_reg [16]int8 } 9488 __fpu_ymmh13 struct{ __xmm_reg [16]int8 } 9489 __fpu_ymmh14 struct{ __xmm_reg [16]int8 } 9490 __fpu_ymmh15 struct{ __xmm_reg [16]int8 } 9491 __fpu_k0 struct{ __opmask_reg [8]int8 } 9492 __fpu_k1 struct{ __opmask_reg [8]int8 } 9493 __fpu_k2 struct{ __opmask_reg [8]int8 } 9494 __fpu_k3 struct{ __opmask_reg [8]int8 } 9495 __fpu_k4 struct{ __opmask_reg [8]int8 } 9496 __fpu_k5 struct{ __opmask_reg [8]int8 } 9497 __fpu_k6 struct{ __opmask_reg [8]int8 } 9498 __fpu_k7 struct{ __opmask_reg [8]int8 } 9499 __fpu_zmmh0 struct{ __ymm_reg [32]int8 } 9500 __fpu_zmmh1 struct{ __ymm_reg [32]int8 } 9501 __fpu_zmmh2 struct{ __ymm_reg [32]int8 } 9502 __fpu_zmmh3 struct{ __ymm_reg [32]int8 } 9503 __fpu_zmmh4 struct{ __ymm_reg [32]int8 } 9504 __fpu_zmmh5 struct{ __ymm_reg [32]int8 } 9505 __fpu_zmmh6 struct{ __ymm_reg [32]int8 } 9506 __fpu_zmmh7 struct{ __ymm_reg [32]int8 } 9507 __fpu_zmmh8 struct{ __ymm_reg [32]int8 } 9508 __fpu_zmmh9 struct{ __ymm_reg [32]int8 } 9509 __fpu_zmmh10 struct{ __ymm_reg [32]int8 } 9510 __fpu_zmmh11 struct{ __ymm_reg [32]int8 } 9511 __fpu_zmmh12 struct{ __ymm_reg [32]int8 } 9512 __fpu_zmmh13 struct{ __ymm_reg [32]int8 } 9513 __fpu_zmmh14 struct{ __ymm_reg [32]int8 } 9514 __fpu_zmmh15 struct{ __ymm_reg [32]int8 } 9515 __fpu_zmm16 struct{ __zmm_reg [64]int8 } 9516 __fpu_zmm17 struct{ __zmm_reg [64]int8 } 9517 __fpu_zmm18 struct{ __zmm_reg [64]int8 } 9518 __fpu_zmm19 struct{ __zmm_reg [64]int8 } 9519 __fpu_zmm20 struct{ __zmm_reg [64]int8 } 9520 __fpu_zmm21 struct{ __zmm_reg [64]int8 } 9521 __fpu_zmm22 struct{ __zmm_reg [64]int8 } 9522 __fpu_zmm23 struct{ __zmm_reg [64]int8 } 9523 __fpu_zmm24 struct{ __zmm_reg [64]int8 } 9524 __fpu_zmm25 struct{ __zmm_reg [64]int8 } 9525 __fpu_zmm26 struct{ __zmm_reg [64]int8 } 9526 __fpu_zmm27 struct{ __zmm_reg [64]int8 } 9527 __fpu_zmm28 struct{ __zmm_reg [64]int8 } 9528 __fpu_zmm29 struct{ __zmm_reg [64]int8 } 9529 __fpu_zmm30 struct{ __zmm_reg [64]int8 } 9530 __fpu_zmm31 struct{ __zmm_reg [64]int8 } 9531 } 9532 _ [4]byte 9533 } /* _mcontext.h:138:1 */ 9534 9535 type mcontext_t = uintptr /* _mcontext.h:204:33 */ 9536 9537 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 9538 // 9539 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9540 // 9541 // This file contains Original Code and/or Modifications of Original Code 9542 // as defined in and that are subject to the Apple Public Source License 9543 // Version 2.0 (the 'License'). You may not use this file except in 9544 // compliance with the License. The rights granted to you under the License 9545 // may not be used to create, or enable the creation or redistribution of, 9546 // unlawful or unlicensed copies of an Apple operating system, or to 9547 // circumvent, violate, or enable the circumvention or violation of, any 9548 // terms of an Apple operating system software license agreement. 9549 // 9550 // Please obtain a copy of the License at 9551 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9552 // 9553 // The Original Code and all software distributed under the License are 9554 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9555 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9556 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9557 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9558 // Please see the License for the specific language governing rights and 9559 // limitations under the License. 9560 // 9561 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9562 // Copyright (c) 2003-2013 Apple Inc. All rights reserved. 9563 // 9564 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9565 // 9566 // This file contains Original Code and/or Modifications of Original Code 9567 // as defined in and that are subject to the Apple Public Source License 9568 // Version 2.0 (the 'License'). You may not use this file except in 9569 // compliance with the License. The rights granted to you under the License 9570 // may not be used to create, or enable the creation or redistribution of, 9571 // unlawful or unlicensed copies of an Apple operating system, or to 9572 // circumvent, violate, or enable the circumvention or violation of, any 9573 // terms of an Apple operating system software license agreement. 9574 // 9575 // Please obtain a copy of the License at 9576 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9577 // 9578 // The Original Code and all software distributed under the License are 9579 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9580 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9581 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9582 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9583 // Please see the License for the specific language governing rights and 9584 // limitations under the License. 9585 // 9586 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9587 9588 type pthread_attr_t = _opaque_pthread_attr_t /* _pthread_attr_t.h:31:33 */ 9589 9590 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 9591 // 9592 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9593 // 9594 // This file contains Original Code and/or Modifications of Original Code 9595 // as defined in and that are subject to the Apple Public Source License 9596 // Version 2.0 (the 'License'). You may not use this file except in 9597 // compliance with the License. The rights granted to you under the License 9598 // may not be used to create, or enable the creation or redistribution of, 9599 // unlawful or unlicensed copies of an Apple operating system, or to 9600 // circumvent, violate, or enable the circumvention or violation of, any 9601 // terms of an Apple operating system software license agreement. 9602 // 9603 // Please obtain a copy of the License at 9604 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9605 // 9606 // The Original Code and all software distributed under the License are 9607 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9608 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9609 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9610 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9611 // Please see the License for the specific language governing rights and 9612 // limitations under the License. 9613 // 9614 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9615 9616 // Structure used in sigaltstack call. 9617 9618 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 9619 // 9620 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9621 // 9622 // This file contains Original Code and/or Modifications of Original Code 9623 // as defined in and that are subject to the Apple Public Source License 9624 // Version 2.0 (the 'License'). You may not use this file except in 9625 // compliance with the License. The rights granted to you under the License 9626 // may not be used to create, or enable the creation or redistribution of, 9627 // unlawful or unlicensed copies of an Apple operating system, or to 9628 // circumvent, violate, or enable the circumvention or violation of, any 9629 // terms of an Apple operating system software license agreement. 9630 // 9631 // Please obtain a copy of the License at 9632 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9633 // 9634 // The Original Code and all software distributed under the License are 9635 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9636 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9637 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9638 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9639 // Please see the License for the specific language governing rights and 9640 // limitations under the License. 9641 // 9642 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9643 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 9644 // Copyright (c) 1991, 1993 9645 // The Regents of the University of California. All rights reserved. 9646 // 9647 // This code is derived from software contributed to Berkeley by 9648 // Berkeley Software Design, Inc. 9649 // 9650 // Redistribution and use in source and binary forms, with or without 9651 // modification, are permitted provided that the following conditions 9652 // are met: 9653 // 1. Redistributions of source code must retain the above copyright 9654 // notice, this list of conditions and the following disclaimer. 9655 // 2. Redistributions in binary form must reproduce the above copyright 9656 // notice, this list of conditions and the following disclaimer in the 9657 // documentation and/or other materials provided with the distribution. 9658 // 3. All advertising materials mentioning features or use of this software 9659 // must display the following acknowledgement: 9660 // This product includes software developed by the University of 9661 // California, Berkeley and its contributors. 9662 // 4. Neither the name of the University nor the names of its contributors 9663 // may be used to endorse or promote products derived from this software 9664 // without specific prior written permission. 9665 // 9666 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 9667 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 9668 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 9669 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 9670 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 9671 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 9672 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 9673 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 9674 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 9675 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 9676 // SUCH DAMAGE. 9677 // 9678 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 9679 9680 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 9681 // 9682 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9683 // 9684 // This file contains Original Code and/or Modifications of Original Code 9685 // as defined in and that are subject to the Apple Public Source License 9686 // Version 2.0 (the 'License'). You may not use this file except in 9687 // compliance with the License. The rights granted to you under the License 9688 // may not be used to create, or enable the creation or redistribution of, 9689 // unlawful or unlicensed copies of an Apple operating system, or to 9690 // circumvent, violate, or enable the circumvention or violation of, any 9691 // terms of an Apple operating system software license agreement. 9692 // 9693 // Please obtain a copy of the License at 9694 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9695 // 9696 // The Original Code and all software distributed under the License are 9697 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9698 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9699 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9700 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9701 // Please see the License for the specific language governing rights and 9702 // limitations under the License. 9703 // 9704 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9705 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 9706 9707 type __darwin_sigaltstack = struct { 9708 ss_sp uintptr 9709 ss_size uint64 9710 ss_flags int32 9711 _ [4]byte 9712 } /* _sigaltstack.h:42:1 */ 9713 9714 type stack_t = __darwin_sigaltstack /* _sigaltstack.h:48:33 */ // [???] signal stack 9715 9716 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 9717 // 9718 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9719 // 9720 // This file contains Original Code and/or Modifications of Original Code 9721 // as defined in and that are subject to the Apple Public Source License 9722 // Version 2.0 (the 'License'). You may not use this file except in 9723 // compliance with the License. The rights granted to you under the License 9724 // may not be used to create, or enable the creation or redistribution of, 9725 // unlawful or unlicensed copies of an Apple operating system, or to 9726 // circumvent, violate, or enable the circumvention or violation of, any 9727 // terms of an Apple operating system software license agreement. 9728 // 9729 // Please obtain a copy of the License at 9730 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9731 // 9732 // The Original Code and all software distributed under the License are 9733 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9734 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9735 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9736 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9737 // Please see the License for the specific language governing rights and 9738 // limitations under the License. 9739 // 9740 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9741 9742 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 9743 // 9744 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9745 // 9746 // This file contains Original Code and/or Modifications of Original Code 9747 // as defined in and that are subject to the Apple Public Source License 9748 // Version 2.0 (the 'License'). You may not use this file except in 9749 // compliance with the License. The rights granted to you under the License 9750 // may not be used to create, or enable the creation or redistribution of, 9751 // unlawful or unlicensed copies of an Apple operating system, or to 9752 // circumvent, violate, or enable the circumvention or violation of, any 9753 // terms of an Apple operating system software license agreement. 9754 // 9755 // Please obtain a copy of the License at 9756 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9757 // 9758 // The Original Code and all software distributed under the License are 9759 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9760 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9761 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9762 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9763 // Please see the License for the specific language governing rights and 9764 // limitations under the License. 9765 // 9766 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9767 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 9768 // Copyright (c) 1991, 1993 9769 // The Regents of the University of California. All rights reserved. 9770 // 9771 // This code is derived from software contributed to Berkeley by 9772 // Berkeley Software Design, Inc. 9773 // 9774 // Redistribution and use in source and binary forms, with or without 9775 // modification, are permitted provided that the following conditions 9776 // are met: 9777 // 1. Redistributions of source code must retain the above copyright 9778 // notice, this list of conditions and the following disclaimer. 9779 // 2. Redistributions in binary form must reproduce the above copyright 9780 // notice, this list of conditions and the following disclaimer in the 9781 // documentation and/or other materials provided with the distribution. 9782 // 3. All advertising materials mentioning features or use of this software 9783 // must display the following acknowledgement: 9784 // This product includes software developed by the University of 9785 // California, Berkeley and its contributors. 9786 // 4. Neither the name of the University nor the names of its contributors 9787 // may be used to endorse or promote products derived from this software 9788 // without specific prior written permission. 9789 // 9790 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 9791 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 9792 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 9793 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 9794 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 9795 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 9796 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 9797 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 9798 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 9799 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 9800 // SUCH DAMAGE. 9801 // 9802 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 9803 9804 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 9805 // 9806 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9807 // 9808 // This file contains Original Code and/or Modifications of Original Code 9809 // as defined in and that are subject to the Apple Public Source License 9810 // Version 2.0 (the 'License'). You may not use this file except in 9811 // compliance with the License. The rights granted to you under the License 9812 // may not be used to create, or enable the creation or redistribution of, 9813 // unlawful or unlicensed copies of an Apple operating system, or to 9814 // circumvent, violate, or enable the circumvention or violation of, any 9815 // terms of an Apple operating system software license agreement. 9816 // 9817 // Please obtain a copy of the License at 9818 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9819 // 9820 // The Original Code and all software distributed under the License are 9821 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9822 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9823 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9824 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9825 // Please see the License for the specific language governing rights and 9826 // limitations under the License. 9827 // 9828 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9829 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 9830 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 9831 // 9832 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9833 // 9834 // This file contains Original Code and/or Modifications of Original Code 9835 // as defined in and that are subject to the Apple Public Source License 9836 // Version 2.0 (the 'License'). You may not use this file except in 9837 // compliance with the License. The rights granted to you under the License 9838 // may not be used to create, or enable the creation or redistribution of, 9839 // unlawful or unlicensed copies of an Apple operating system, or to 9840 // circumvent, violate, or enable the circumvention or violation of, any 9841 // terms of an Apple operating system software license agreement. 9842 // 9843 // Please obtain a copy of the License at 9844 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9845 // 9846 // The Original Code and all software distributed under the License are 9847 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9848 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9849 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9850 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9851 // Please see the License for the specific language governing rights and 9852 // limitations under the License. 9853 // 9854 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9855 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 9856 // 9857 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9858 // 9859 // This file contains Original Code and/or Modifications of Original Code 9860 // as defined in and that are subject to the Apple Public Source License 9861 // Version 2.0 (the 'License'). You may not use this file except in 9862 // compliance with the License. The rights granted to you under the License 9863 // may not be used to create, or enable the creation or redistribution of, 9864 // unlawful or unlicensed copies of an Apple operating system, or to 9865 // circumvent, violate, or enable the circumvention or violation of, any 9866 // terms of an Apple operating system software license agreement. 9867 // 9868 // Please obtain a copy of the License at 9869 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9870 // 9871 // The Original Code and all software distributed under the License are 9872 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9873 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9874 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9875 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9876 // Please see the License for the specific language governing rights and 9877 // limitations under the License. 9878 // 9879 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9880 9881 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 9882 // 9883 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9884 // 9885 // This file contains Original Code and/or Modifications of Original Code 9886 // as defined in and that are subject to the Apple Public Source License 9887 // Version 2.0 (the 'License'). You may not use this file except in 9888 // compliance with the License. The rights granted to you under the License 9889 // may not be used to create, or enable the creation or redistribution of, 9890 // unlawful or unlicensed copies of an Apple operating system, or to 9891 // circumvent, violate, or enable the circumvention or violation of, any 9892 // terms of an Apple operating system software license agreement. 9893 // 9894 // Please obtain a copy of the License at 9895 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9896 // 9897 // The Original Code and all software distributed under the License are 9898 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9899 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9900 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9901 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9902 // Please see the License for the specific language governing rights and 9903 // limitations under the License. 9904 // 9905 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9906 9907 type __darwin_ucontext = struct { 9908 uc_onstack int32 9909 uc_sigmask uint32 9910 uc_stack struct { 9911 ss_sp uintptr 9912 ss_size uint64 9913 ss_flags int32 9914 _ [4]byte 9915 } 9916 uc_link uintptr 9917 uc_mcsize uint64 9918 uc_mcontext uintptr 9919 } /* _ucontext.h:42:1 */ 9920 9921 // user context 9922 type ucontext_t = __darwin_ucontext /* _ucontext.h:56:33 */ // [???] user context 9923 9924 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 9925 // 9926 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9927 // 9928 // This file contains Original Code and/or Modifications of Original Code 9929 // as defined in and that are subject to the Apple Public Source License 9930 // Version 2.0 (the 'License'). You may not use this file except in 9931 // compliance with the License. The rights granted to you under the License 9932 // may not be used to create, or enable the creation or redistribution of, 9933 // unlawful or unlicensed copies of an Apple operating system, or to 9934 // circumvent, violate, or enable the circumvention or violation of, any 9935 // terms of an Apple operating system software license agreement. 9936 // 9937 // Please obtain a copy of the License at 9938 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9939 // 9940 // The Original Code and all software distributed under the License are 9941 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9942 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9943 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9944 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9945 // Please see the License for the specific language governing rights and 9946 // limitations under the License. 9947 // 9948 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9949 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 9950 // 9951 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9952 // 9953 // This file contains Original Code and/or Modifications of Original Code 9954 // as defined in and that are subject to the Apple Public Source License 9955 // Version 2.0 (the 'License'). You may not use this file except in 9956 // compliance with the License. The rights granted to you under the License 9957 // may not be used to create, or enable the creation or redistribution of, 9958 // unlawful or unlicensed copies of an Apple operating system, or to 9959 // circumvent, violate, or enable the circumvention or violation of, any 9960 // terms of an Apple operating system software license agreement. 9961 // 9962 // Please obtain a copy of the License at 9963 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9964 // 9965 // The Original Code and all software distributed under the License are 9966 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9967 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9968 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9969 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9970 // Please see the License for the specific language governing rights and 9971 // limitations under the License. 9972 // 9973 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9974 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 9975 // 9976 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 9977 // 9978 // This file contains Original Code and/or Modifications of Original Code 9979 // as defined in and that are subject to the Apple Public Source License 9980 // Version 2.0 (the 'License'). You may not use this file except in 9981 // compliance with the License. The rights granted to you under the License 9982 // may not be used to create, or enable the creation or redistribution of, 9983 // unlawful or unlicensed copies of an Apple operating system, or to 9984 // circumvent, violate, or enable the circumvention or violation of, any 9985 // terms of an Apple operating system software license agreement. 9986 // 9987 // Please obtain a copy of the License at 9988 // http://www.opensource.apple.com/apsl/ and read it before using this file. 9989 // 9990 // The Original Code and all software distributed under the License are 9991 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 9992 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 9993 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 9994 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 9995 // Please see the License for the specific language governing rights and 9996 // limitations under the License. 9997 // 9998 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 9999 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 10000 // 10001 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10002 // 10003 // This file contains Original Code and/or Modifications of Original Code 10004 // as defined in and that are subject to the Apple Public Source License 10005 // Version 2.0 (the 'License'). You may not use this file except in 10006 // compliance with the License. The rights granted to you under the License 10007 // may not be used to create, or enable the creation or redistribution of, 10008 // unlawful or unlicensed copies of an Apple operating system, or to 10009 // circumvent, violate, or enable the circumvention or violation of, any 10010 // terms of an Apple operating system software license agreement. 10011 // 10012 // Please obtain a copy of the License at 10013 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10014 // 10015 // The Original Code and all software distributed under the License are 10016 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10017 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10018 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10019 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10020 // Please see the License for the specific language governing rights and 10021 // limitations under the License. 10022 // 10023 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10024 10025 type sigval = struct { 10026 _ [0]uint64 10027 sival_int int32 10028 _ [4]byte 10029 } /* signal.h:158:1 */ 10030 10031 type sigevent = struct { 10032 sigev_notify int32 10033 sigev_signo int32 10034 sigev_value struct { 10035 _ [0]uint64 10036 sival_int int32 10037 _ [4]byte 10038 } 10039 sigev_notify_function uintptr 10040 sigev_notify_attributes uintptr 10041 } /* signal.h:168:1 */ 10042 10043 type __siginfo = struct { 10044 si_signo int32 10045 si_errno int32 10046 si_code int32 10047 si_pid pid_t 10048 si_uid uid_t 10049 si_status int32 10050 si_addr uintptr 10051 si_value struct { 10052 _ [0]uint64 10053 sival_int int32 10054 _ [4]byte 10055 } 10056 si_band int64 10057 __pad [7]uint64 10058 } /* signal.h:177:9 */ 10059 10060 type siginfo_t = __siginfo /* signal.h:188:3 */ 10061 10062 // When the signal is SIGILL or SIGFPE, si_addr contains the address of 10063 // the faulting instruction. 10064 // When the signal is SIGSEGV or SIGBUS, si_addr contains the address of 10065 // the faulting memory reference. Although for x86 there are cases of SIGSEGV 10066 // for which si_addr cannot be determined and is NULL. 10067 // If the signal is SIGCHLD, the si_pid field will contain the child process ID, 10068 // si_status contains the exit value or signal and 10069 // si_uid contains the real user ID of the process that sent the signal. 10070 10071 // Values for si_code 10072 10073 // Codes for SIGILL 10074 10075 // Codes for SIGFPE 10076 10077 // Codes for SIGSEGV 10078 10079 // Codes for SIGBUS 10080 10081 // Codes for SIGTRAP 10082 10083 // Codes for SIGCHLD 10084 10085 // Codes for SIGPOLL 10086 10087 // union for signal handlers 10088 type __sigaction_u = struct{ __sa_handler uintptr } /* signal.h:269:1 */ 10089 10090 // Signal vector template for Kernel user boundary 10091 type __sigaction = struct { 10092 __sigaction_u struct{ __sa_handler uintptr } 10093 sa_tramp uintptr 10094 sa_mask sigset_t 10095 sa_flags int32 10096 } /* signal.h:276:1 */ 10097 10098 // Signal vector "template" used in sigaction call. 10099 type sigaction = struct { 10100 __sigaction_u struct{ __sa_handler uintptr } 10101 sa_mask sigset_t 10102 sa_flags int32 10103 } /* signal.h:286:1 */ 10104 10105 // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler. 10106 10107 // This will provide 64bit register set in a 32bit user address space 10108 10109 // the following are the only bits we support from user space, the 10110 // rest are for kernel use only. 10111 10112 // Flags for sigprocmask: 10113 10114 // POSIX 1003.1b required values. 10115 10116 type sig_t = uintptr /* signal.h:331:14 */ // type of signal function 10117 10118 // Structure used in sigaltstack call. 10119 10120 // 4.3 compatibility: 10121 // Signal vector "template" used in sigvec call. 10122 type sigvec = struct { 10123 sv_handler uintptr 10124 sv_mask int32 10125 sv_flags int32 10126 } /* signal.h:348:1 */ 10127 10128 // Structure used in sigstack call. 10129 type sigstack = struct { 10130 ss_sp uintptr 10131 ss_onstack int32 10132 _ [4]byte 10133 } /* signal.h:367:1 */ 10134 10135 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 10136 // 10137 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10138 // 10139 // This file contains Original Code and/or Modifications of Original Code 10140 // as defined in and that are subject to the Apple Public Source License 10141 // Version 2.0 (the 'License'). You may not use this file except in 10142 // compliance with the License. The rights granted to you under the License 10143 // may not be used to create, or enable the creation or redistribution of, 10144 // unlawful or unlicensed copies of an Apple operating system, or to 10145 // circumvent, violate, or enable the circumvention or violation of, any 10146 // terms of an Apple operating system software license agreement. 10147 // 10148 // Please obtain a copy of the License at 10149 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10150 // 10151 // The Original Code and all software distributed under the License are 10152 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10153 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10154 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10155 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10156 // Please see the License for the specific language governing rights and 10157 // limitations under the License. 10158 // 10159 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10160 // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved 10161 // Copyright (c) 1982, 1986, 1993 10162 // The Regents of the University of California. All rights reserved. 10163 // 10164 // Redistribution and use in source and binary forms, with or without 10165 // modification, are permitted provided that the following conditions 10166 // are met: 10167 // 1. Redistributions of source code must retain the above copyright 10168 // notice, this list of conditions and the following disclaimer. 10169 // 2. Redistributions in binary form must reproduce the above copyright 10170 // notice, this list of conditions and the following disclaimer in the 10171 // documentation and/or other materials provided with the distribution. 10172 // 3. All advertising materials mentioning features or use of this software 10173 // must display the following acknowledgement: 10174 // This product includes software developed by the University of 10175 // California, Berkeley and its contributors. 10176 // 4. Neither the name of the University nor the names of its contributors 10177 // may be used to endorse or promote products derived from this software 10178 // without specific prior written permission. 10179 // 10180 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 10181 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 10182 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 10183 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 10184 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 10185 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 10186 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 10187 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 10188 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 10189 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 10190 // SUCH DAMAGE. 10191 // 10192 // @(#)resource.h 8.2 (Berkeley) 1/4/94 10193 10194 // Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 10195 // 10196 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10197 // 10198 // This file contains Original Code and/or Modifications of Original Code 10199 // as defined in and that are subject to the Apple Public Source License 10200 // Version 2.0 (the 'License'). You may not use this file except in 10201 // compliance with the License. The rights granted to you under the License 10202 // may not be used to create, or enable the creation or redistribution of, 10203 // unlawful or unlicensed copies of an Apple operating system, or to 10204 // circumvent, violate, or enable the circumvention or violation of, any 10205 // terms of an Apple operating system software license agreement. 10206 // 10207 // Please obtain a copy of the License at 10208 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10209 // 10210 // The Original Code and all software distributed under the License are 10211 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10212 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10213 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10214 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10215 // Please see the License for the specific language governing rights and 10216 // limitations under the License. 10217 // 10218 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10219 10220 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 10221 // 10222 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10223 // 10224 // This file contains Original Code and/or Modifications of Original Code 10225 // as defined in and that are subject to the Apple Public Source License 10226 // Version 2.0 (the 'License'). You may not use this file except in 10227 // compliance with the License. The rights granted to you under the License 10228 // may not be used to create, or enable the creation or redistribution of, 10229 // unlawful or unlicensed copies of an Apple operating system, or to 10230 // circumvent, violate, or enable the circumvention or violation of, any 10231 // terms of an Apple operating system software license agreement. 10232 // 10233 // Please obtain a copy of the License at 10234 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10235 // 10236 // The Original Code and all software distributed under the License are 10237 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10238 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10239 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10240 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10241 // Please see the License for the specific language governing rights and 10242 // limitations under the License. 10243 // 10244 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10245 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 10246 // Copyright (c) 1991, 1993 10247 // The Regents of the University of California. All rights reserved. 10248 // 10249 // This code is derived from software contributed to Berkeley by 10250 // Berkeley Software Design, Inc. 10251 // 10252 // Redistribution and use in source and binary forms, with or without 10253 // modification, are permitted provided that the following conditions 10254 // are met: 10255 // 1. Redistributions of source code must retain the above copyright 10256 // notice, this list of conditions and the following disclaimer. 10257 // 2. Redistributions in binary form must reproduce the above copyright 10258 // notice, this list of conditions and the following disclaimer in the 10259 // documentation and/or other materials provided with the distribution. 10260 // 3. All advertising materials mentioning features or use of this software 10261 // must display the following acknowledgement: 10262 // This product includes software developed by the University of 10263 // California, Berkeley and its contributors. 10264 // 4. Neither the name of the University nor the names of its contributors 10265 // may be used to endorse or promote products derived from this software 10266 // without specific prior written permission. 10267 // 10268 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 10269 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 10270 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 10271 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 10272 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 10273 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 10274 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 10275 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 10276 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 10277 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 10278 // SUCH DAMAGE. 10279 // 10280 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 10281 10282 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 10283 // 10284 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10285 // 10286 // This file contains Original Code and/or Modifications of Original Code 10287 // as defined in and that are subject to the Apple Public Source License 10288 // Version 2.0 (the 'License'). You may not use this file except in 10289 // compliance with the License. The rights granted to you under the License 10290 // may not be used to create, or enable the creation or redistribution of, 10291 // unlawful or unlicensed copies of an Apple operating system, or to 10292 // circumvent, violate, or enable the circumvention or violation of, any 10293 // terms of an Apple operating system software license agreement. 10294 // 10295 // Please obtain a copy of the License at 10296 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10297 // 10298 // The Original Code and all software distributed under the License are 10299 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10300 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10301 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10302 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10303 // Please see the License for the specific language governing rights and 10304 // limitations under the License. 10305 // 10306 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10307 10308 // DO NOT EDIT THIS FILE. 10309 // 10310 // It has been auto-edited by fixincludes from: 10311 // 10312 // "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdint.h" 10313 // 10314 // This had to be done to correct non-standard usages in the 10315 // original, manufacturer supplied header file. 10316 10317 // Copyright (c) 2000-2010 Apple Inc. 10318 // All rights reserved. 10319 10320 // from ISO/IEC 988:1999 spec 10321 10322 // 7.18.1.1 Exact-width integer types 10323 // Copyright (c) 2012 Apple Inc. All rights reserved. 10324 // 10325 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10326 // 10327 // This file contains Original Code and/or Modifications of Original Code 10328 // as defined in and that are subject to the Apple Public Source License 10329 // Version 2.0 (the 'License'). You may not use this file except in 10330 // compliance with the License. The rights granted to you under the License 10331 // may not be used to create, or enable the creation or redistribution of, 10332 // unlawful or unlicensed copies of an Apple operating system, or to 10333 // circumvent, violate, or enable the circumvention or violation of, any 10334 // terms of an Apple operating system software license agreement. 10335 // 10336 // Please obtain a copy of the License at 10337 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10338 // 10339 // The Original Code and all software distributed under the License are 10340 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10341 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10342 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10343 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10344 // Please see the License for the specific language governing rights and 10345 // limitations under the License. 10346 // 10347 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10348 // Copyright (c) 2012 Apple Inc. All rights reserved. 10349 // 10350 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10351 // 10352 // This file contains Original Code and/or Modifications of Original Code 10353 // as defined in and that are subject to the Apple Public Source License 10354 // Version 2.0 (the 'License'). You may not use this file except in 10355 // compliance with the License. The rights granted to you under the License 10356 // may not be used to create, or enable the creation or redistribution of, 10357 // unlawful or unlicensed copies of an Apple operating system, or to 10358 // circumvent, violate, or enable the circumvention or violation of, any 10359 // terms of an Apple operating system software license agreement. 10360 // 10361 // Please obtain a copy of the License at 10362 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10363 // 10364 // The Original Code and all software distributed under the License are 10365 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10366 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10367 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10368 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10369 // Please see the License for the specific language governing rights and 10370 // limitations under the License. 10371 // 10372 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10373 // Copyright (c) 2012 Apple Inc. All rights reserved. 10374 // 10375 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10376 // 10377 // This file contains Original Code and/or Modifications of Original Code 10378 // as defined in and that are subject to the Apple Public Source License 10379 // Version 2.0 (the 'License'). You may not use this file except in 10380 // compliance with the License. The rights granted to you under the License 10381 // may not be used to create, or enable the creation or redistribution of, 10382 // unlawful or unlicensed copies of an Apple operating system, or to 10383 // circumvent, violate, or enable the circumvention or violation of, any 10384 // terms of an Apple operating system software license agreement. 10385 // 10386 // Please obtain a copy of the License at 10387 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10388 // 10389 // The Original Code and all software distributed under the License are 10390 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10391 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10392 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10393 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10394 // Please see the License for the specific language governing rights and 10395 // limitations under the License. 10396 // 10397 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10398 // Copyright (c) 2012 Apple Inc. All rights reserved. 10399 // 10400 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10401 // 10402 // This file contains Original Code and/or Modifications of Original Code 10403 // as defined in and that are subject to the Apple Public Source License 10404 // Version 2.0 (the 'License'). You may not use this file except in 10405 // compliance with the License. The rights granted to you under the License 10406 // may not be used to create, or enable the creation or redistribution of, 10407 // unlawful or unlicensed copies of an Apple operating system, or to 10408 // circumvent, violate, or enable the circumvention or violation of, any 10409 // terms of an Apple operating system software license agreement. 10410 // 10411 // Please obtain a copy of the License at 10412 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10413 // 10414 // The Original Code and all software distributed under the License are 10415 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10416 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10417 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10418 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10419 // Please see the License for the specific language governing rights and 10420 // limitations under the License. 10421 // 10422 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10423 10424 // Copyright (c) 2012 Apple Inc. All rights reserved. 10425 // 10426 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10427 // 10428 // This file contains Original Code and/or Modifications of Original Code 10429 // as defined in and that are subject to the Apple Public Source License 10430 // Version 2.0 (the 'License'). You may not use this file except in 10431 // compliance with the License. The rights granted to you under the License 10432 // may not be used to create, or enable the creation or redistribution of, 10433 // unlawful or unlicensed copies of an Apple operating system, or to 10434 // circumvent, violate, or enable the circumvention or violation of, any 10435 // terms of an Apple operating system software license agreement. 10436 // 10437 // Please obtain a copy of the License at 10438 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10439 // 10440 // The Original Code and all software distributed under the License are 10441 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10442 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10443 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10444 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10445 // Please see the License for the specific language governing rights and 10446 // limitations under the License. 10447 // 10448 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10449 10450 type uint8_t = uint8 /* _uint8_t.h:31:23 */ 10451 // Copyright (c) 2012 Apple Inc. All rights reserved. 10452 // 10453 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10454 // 10455 // This file contains Original Code and/or Modifications of Original Code 10456 // as defined in and that are subject to the Apple Public Source License 10457 // Version 2.0 (the 'License'). You may not use this file except in 10458 // compliance with the License. The rights granted to you under the License 10459 // may not be used to create, or enable the creation or redistribution of, 10460 // unlawful or unlicensed copies of an Apple operating system, or to 10461 // circumvent, violate, or enable the circumvention or violation of, any 10462 // terms of an Apple operating system software license agreement. 10463 // 10464 // Please obtain a copy of the License at 10465 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10466 // 10467 // The Original Code and all software distributed under the License are 10468 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10469 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10470 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10471 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10472 // Please see the License for the specific language governing rights and 10473 // limitations under the License. 10474 // 10475 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10476 10477 type uint16_t = uint16 /* _uint16_t.h:31:24 */ 10478 // Copyright (c) 2012 Apple Inc. All rights reserved. 10479 // 10480 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10481 // 10482 // This file contains Original Code and/or Modifications of Original Code 10483 // as defined in and that are subject to the Apple Public Source License 10484 // Version 2.0 (the 'License'). You may not use this file except in 10485 // compliance with the License. The rights granted to you under the License 10486 // may not be used to create, or enable the creation or redistribution of, 10487 // unlawful or unlicensed copies of an Apple operating system, or to 10488 // circumvent, violate, or enable the circumvention or violation of, any 10489 // terms of an Apple operating system software license agreement. 10490 // 10491 // Please obtain a copy of the License at 10492 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10493 // 10494 // The Original Code and all software distributed under the License are 10495 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10496 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10497 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10498 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10499 // Please see the License for the specific language governing rights and 10500 // limitations under the License. 10501 // 10502 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10503 10504 // Copyright (c) 2012 Apple Inc. All rights reserved. 10505 // 10506 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10507 // 10508 // This file contains Original Code and/or Modifications of Original Code 10509 // as defined in and that are subject to the Apple Public Source License 10510 // Version 2.0 (the 'License'). You may not use this file except in 10511 // compliance with the License. The rights granted to you under the License 10512 // may not be used to create, or enable the creation or redistribution of, 10513 // unlawful or unlicensed copies of an Apple operating system, or to 10514 // circumvent, violate, or enable the circumvention or violation of, any 10515 // terms of an Apple operating system software license agreement. 10516 // 10517 // Please obtain a copy of the License at 10518 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10519 // 10520 // The Original Code and all software distributed under the License are 10521 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10522 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10523 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10524 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10525 // Please see the License for the specific language governing rights and 10526 // limitations under the License. 10527 // 10528 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10529 10530 // 7.18.1.2 Minimum-width integer types 10531 type int_least8_t = int8_t /* stdint.h:38:26 */ 10532 type int_least16_t = int16_t /* stdint.h:39:25 */ 10533 type int_least32_t = int32_t /* stdint.h:40:25 */ 10534 type int_least64_t = int64_t /* stdint.h:41:25 */ 10535 type uint_least8_t = uint8_t /* stdint.h:42:25 */ 10536 type uint_least16_t = uint16_t /* stdint.h:43:24 */ 10537 type uint_least32_t = uint32_t /* stdint.h:44:24 */ 10538 type uint_least64_t = uint64_t /* stdint.h:45:24 */ 10539 10540 // 7.18.1.3 Fastest-width integer types 10541 type int_fast8_t = int8_t /* stdint.h:49:27 */ 10542 type int_fast16_t = int16_t /* stdint.h:50:26 */ 10543 type int_fast32_t = int32_t /* stdint.h:51:26 */ 10544 type int_fast64_t = int64_t /* stdint.h:52:26 */ 10545 type uint_fast8_t = uint8_t /* stdint.h:53:26 */ 10546 type uint_fast16_t = uint16_t /* stdint.h:54:25 */ 10547 type uint_fast32_t = uint32_t /* stdint.h:55:25 */ 10548 type uint_fast64_t = uint64_t /* stdint.h:56:25 */ 10549 10550 // 7.18.1.4 Integer types capable of holding object pointers 10551 10552 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 10553 // 10554 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10555 // 10556 // This file contains Original Code and/or Modifications of Original Code 10557 // as defined in and that are subject to the Apple Public Source License 10558 // Version 2.0 (the 'License'). You may not use this file except in 10559 // compliance with the License. The rights granted to you under the License 10560 // may not be used to create, or enable the creation or redistribution of, 10561 // unlawful or unlicensed copies of an Apple operating system, or to 10562 // circumvent, violate, or enable the circumvention or violation of, any 10563 // terms of an Apple operating system software license agreement. 10564 // 10565 // Please obtain a copy of the License at 10566 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10567 // 10568 // The Original Code and all software distributed under the License are 10569 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10570 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10571 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10572 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10573 // Please see the License for the specific language governing rights and 10574 // limitations under the License. 10575 // 10576 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10577 10578 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 10579 // 10580 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10581 // 10582 // This file contains Original Code and/or Modifications of Original Code 10583 // as defined in and that are subject to the Apple Public Source License 10584 // Version 2.0 (the 'License'). You may not use this file except in 10585 // compliance with the License. The rights granted to you under the License 10586 // may not be used to create, or enable the creation or redistribution of, 10587 // unlawful or unlicensed copies of an Apple operating system, or to 10588 // circumvent, violate, or enable the circumvention or violation of, any 10589 // terms of an Apple operating system software license agreement. 10590 // 10591 // Please obtain a copy of the License at 10592 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10593 // 10594 // The Original Code and all software distributed under the License are 10595 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10596 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10597 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10598 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10599 // Please see the License for the specific language governing rights and 10600 // limitations under the License. 10601 // 10602 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10603 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 10604 // 10605 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10606 // 10607 // This file contains Original Code and/or Modifications of Original Code 10608 // as defined in and that are subject to the Apple Public Source License 10609 // Version 2.0 (the 'License'). You may not use this file except in 10610 // compliance with the License. The rights granted to you under the License 10611 // may not be used to create, or enable the creation or redistribution of, 10612 // unlawful or unlicensed copies of an Apple operating system, or to 10613 // circumvent, violate, or enable the circumvention or violation of, any 10614 // terms of an Apple operating system software license agreement. 10615 // 10616 // Please obtain a copy of the License at 10617 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10618 // 10619 // The Original Code and all software distributed under the License are 10620 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10621 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10622 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10623 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10624 // Please see the License for the specific language governing rights and 10625 // limitations under the License. 10626 // 10627 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10628 10629 // 7.18.1.5 Greatest-width integer types 10630 // Copyright (c) 2012 Apple Inc. All rights reserved. 10631 // 10632 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10633 // 10634 // This file contains Original Code and/or Modifications of Original Code 10635 // as defined in and that are subject to the Apple Public Source License 10636 // Version 2.0 (the 'License'). You may not use this file except in 10637 // compliance with the License. The rights granted to you under the License 10638 // may not be used to create, or enable the creation or redistribution of, 10639 // unlawful or unlicensed copies of an Apple operating system, or to 10640 // circumvent, violate, or enable the circumvention or violation of, any 10641 // terms of an Apple operating system software license agreement. 10642 // 10643 // Please obtain a copy of the License at 10644 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10645 // 10646 // The Original Code and all software distributed under the License are 10647 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10648 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10649 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10650 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10651 // Please see the License for the specific language governing rights and 10652 // limitations under the License. 10653 // 10654 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10655 10656 type intmax_t = int64 /* _intmax_t.h:32:25 */ 10657 // Copyright (c) 2012 Apple Inc. All rights reserved. 10658 // 10659 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10660 // 10661 // This file contains Original Code and/or Modifications of Original Code 10662 // as defined in and that are subject to the Apple Public Source License 10663 // Version 2.0 (the 'License'). You may not use this file except in 10664 // compliance with the License. The rights granted to you under the License 10665 // may not be used to create, or enable the creation or redistribution of, 10666 // unlawful or unlicensed copies of an Apple operating system, or to 10667 // circumvent, violate, or enable the circumvention or violation of, any 10668 // terms of an Apple operating system software license agreement. 10669 // 10670 // Please obtain a copy of the License at 10671 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10672 // 10673 // The Original Code and all software distributed under the License are 10674 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10675 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10676 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10677 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10678 // Please see the License for the specific language governing rights and 10679 // limitations under the License. 10680 // 10681 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10682 10683 type uintmax_t = uint64 /* _uintmax_t.h:32:26 */ 10684 10685 // 7.18.4 Macros for integer constants 10686 10687 // 7.18.2 Limits of specified-width integer types: 10688 // These #defines specify the minimum and maximum limits 10689 // of each of the types declared above. 10690 // 10691 // They must have "the same type as would an expression that is an 10692 // object of the corresponding type converted according to the integer 10693 // promotion". 10694 10695 // 7.18.2.1 Limits of exact-width integer types 10696 10697 // 10698 // Note: the literal "most negative int" cannot be written in C -- 10699 // the rules in the standard (section 6.4.4.1 in C99) will give it 10700 // an unsigned type, so INT32_MIN (and the most negative member of 10701 // any larger signed type) must be written via a constant expression. 10702 // 10703 10704 // 7.18.2.2 Limits of minimum-width integer types 10705 10706 // 7.18.2.3 Limits of fastest minimum-width integer types 10707 10708 // 7.18.2.4 Limits of integer types capable of holding object pointers 10709 10710 // 7.18.2.5 Limits of greatest-width integer types 10711 10712 // 7.18.3 "Other" 10713 10714 // WCHAR_MIN should be 0 if wchar_t is an unsigned type and 10715 // (-WCHAR_MAX-1) if wchar_t is a signed type. Unfortunately, 10716 // it turns out that -fshort-wchar changes the signedness of 10717 // the type. 10718 10719 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 10720 // 10721 // @APPLE_LICENSE_HEADER_START@ 10722 // 10723 // This file contains Original Code and/or Modifications of Original Code 10724 // as defined in and that are subject to the Apple Public Source License 10725 // Version 2.0 (the 'License'). You may not use this file except in 10726 // compliance with the License. Please obtain a copy of the License at 10727 // http://www.opensource.apple.com/apsl/ and read it before using this 10728 // file. 10729 // 10730 // The Original Code and all software distributed under the License are 10731 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10732 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10733 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10734 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10735 // Please see the License for the specific language governing rights and 10736 // limitations under the License. 10737 // 10738 // @APPLE_LICENSE_HEADER_END@ 10739 10740 // [XSI] The timeval structure shall be defined as described in 10741 // <sys/time.h> 10742 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 10743 // 10744 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10745 // 10746 // This file contains Original Code and/or Modifications of Original Code 10747 // as defined in and that are subject to the Apple Public Source License 10748 // Version 2.0 (the 'License'). You may not use this file except in 10749 // compliance with the License. The rights granted to you under the License 10750 // may not be used to create, or enable the creation or redistribution of, 10751 // unlawful or unlicensed copies of an Apple operating system, or to 10752 // circumvent, violate, or enable the circumvention or violation of, any 10753 // terms of an Apple operating system software license agreement. 10754 // 10755 // Please obtain a copy of the License at 10756 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10757 // 10758 // The Original Code and all software distributed under the License are 10759 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10760 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10761 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10762 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10763 // Please see the License for the specific language governing rights and 10764 // limitations under the License. 10765 // 10766 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10767 10768 // The id_t type shall be defined as described in <sys/types.h> 10769 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 10770 // 10771 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 10772 // 10773 // This file contains Original Code and/or Modifications of Original Code 10774 // as defined in and that are subject to the Apple Public Source License 10775 // Version 2.0 (the 'License'). You may not use this file except in 10776 // compliance with the License. The rights granted to you under the License 10777 // may not be used to create, or enable the creation or redistribution of, 10778 // unlawful or unlicensed copies of an Apple operating system, or to 10779 // circumvent, violate, or enable the circumvention or violation of, any 10780 // terms of an Apple operating system software license agreement. 10781 // 10782 // Please obtain a copy of the License at 10783 // http://www.opensource.apple.com/apsl/ and read it before using this file. 10784 // 10785 // The Original Code and all software distributed under the License are 10786 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 10787 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 10788 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 10789 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 10790 // Please see the License for the specific language governing rights and 10791 // limitations under the License. 10792 // 10793 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 10794 10795 // Resource limit type (low 63 bits, excluding the sign bit) 10796 type rlim_t = uint64 /* resource.h:89:25 */ 10797 10798 // **** 10799 // 10800 // PRIORITY 10801 10802 // Possible values of the first parameter to getpriority()/setpriority(), 10803 // used to indicate the type of the second parameter. 10804 10805 // Range limitations for the value of the third parameter to setpriority(). 10806 10807 // use PRIO_DARWIN_BG to set the current thread into "background" state 10808 // which lowers CPU, disk IO, and networking priorites until thread terminates 10809 // or "background" state is revoked 10810 10811 // use PRIO_DARWIN_NONUI to restrict a process's ability to make calls to 10812 // the GPU. (deprecated) 10813 10814 // **** 10815 // 10816 // RESOURCE USAGE 10817 10818 // Possible values of the first parameter to getrusage(), used to indicate 10819 // the scope of the information to be returned. 10820 10821 // A structure representing an accounting of resource utilization. The 10822 // address of an instance of this structure is the second parameter to 10823 // getrusage(). 10824 // 10825 // Note: All values other than ru_utime and ru_stime are implementaiton 10826 // defined and subject to change in a future release. Their use 10827 // is discouraged for standards compliant programs. 10828 type rusage = struct { 10829 ru_utime struct { 10830 tv_sec int64 10831 tv_usec int32 10832 _ [4]byte 10833 } 10834 ru_stime struct { 10835 tv_sec int64 10836 tv_usec int32 10837 _ [4]byte 10838 } 10839 ru_maxrss int64 10840 ru_ixrss int64 10841 ru_idrss int64 10842 ru_isrss int64 10843 ru_minflt int64 10844 ru_majflt int64 10845 ru_nswap int64 10846 ru_inblock int64 10847 ru_oublock int64 10848 ru_msgsnd int64 10849 ru_msgrcv int64 10850 ru_nsignals int64 10851 ru_nvcsw int64 10852 ru_nivcsw int64 10853 } /* resource.h:152:1 */ 10854 10855 // Flavors for proc_pid_rusage(). 10856 10857 type rusage_info_t = uintptr /* resource.h:193:14 */ 10858 10859 type rusage_info_v0 = struct { 10860 ri_uuid [16]uint8_t 10861 ri_user_time uint64_t 10862 ri_system_time uint64_t 10863 ri_pkg_idle_wkups uint64_t 10864 ri_interrupt_wkups uint64_t 10865 ri_pageins uint64_t 10866 ri_wired_size uint64_t 10867 ri_resident_size uint64_t 10868 ri_phys_footprint uint64_t 10869 ri_proc_start_abstime uint64_t 10870 ri_proc_exit_abstime uint64_t 10871 } /* resource.h:195:1 */ 10872 10873 type rusage_info_v1 = struct { 10874 ri_uuid [16]uint8_t 10875 ri_user_time uint64_t 10876 ri_system_time uint64_t 10877 ri_pkg_idle_wkups uint64_t 10878 ri_interrupt_wkups uint64_t 10879 ri_pageins uint64_t 10880 ri_wired_size uint64_t 10881 ri_resident_size uint64_t 10882 ri_phys_footprint uint64_t 10883 ri_proc_start_abstime uint64_t 10884 ri_proc_exit_abstime uint64_t 10885 ri_child_user_time uint64_t 10886 ri_child_system_time uint64_t 10887 ri_child_pkg_idle_wkups uint64_t 10888 ri_child_interrupt_wkups uint64_t 10889 ri_child_pageins uint64_t 10890 ri_child_elapsed_abstime uint64_t 10891 } /* resource.h:209:1 */ 10892 10893 type rusage_info_v2 = struct { 10894 ri_uuid [16]uint8_t 10895 ri_user_time uint64_t 10896 ri_system_time uint64_t 10897 ri_pkg_idle_wkups uint64_t 10898 ri_interrupt_wkups uint64_t 10899 ri_pageins uint64_t 10900 ri_wired_size uint64_t 10901 ri_resident_size uint64_t 10902 ri_phys_footprint uint64_t 10903 ri_proc_start_abstime uint64_t 10904 ri_proc_exit_abstime uint64_t 10905 ri_child_user_time uint64_t 10906 ri_child_system_time uint64_t 10907 ri_child_pkg_idle_wkups uint64_t 10908 ri_child_interrupt_wkups uint64_t 10909 ri_child_pageins uint64_t 10910 ri_child_elapsed_abstime uint64_t 10911 ri_diskio_bytesread uint64_t 10912 ri_diskio_byteswritten uint64_t 10913 } /* resource.h:229:1 */ 10914 10915 type rusage_info_v3 = struct { 10916 ri_uuid [16]uint8_t 10917 ri_user_time uint64_t 10918 ri_system_time uint64_t 10919 ri_pkg_idle_wkups uint64_t 10920 ri_interrupt_wkups uint64_t 10921 ri_pageins uint64_t 10922 ri_wired_size uint64_t 10923 ri_resident_size uint64_t 10924 ri_phys_footprint uint64_t 10925 ri_proc_start_abstime uint64_t 10926 ri_proc_exit_abstime uint64_t 10927 ri_child_user_time uint64_t 10928 ri_child_system_time uint64_t 10929 ri_child_pkg_idle_wkups uint64_t 10930 ri_child_interrupt_wkups uint64_t 10931 ri_child_pageins uint64_t 10932 ri_child_elapsed_abstime uint64_t 10933 ri_diskio_bytesread uint64_t 10934 ri_diskio_byteswritten uint64_t 10935 ri_cpu_time_qos_default uint64_t 10936 ri_cpu_time_qos_maintenance uint64_t 10937 ri_cpu_time_qos_background uint64_t 10938 ri_cpu_time_qos_utility uint64_t 10939 ri_cpu_time_qos_legacy uint64_t 10940 ri_cpu_time_qos_user_initiated uint64_t 10941 ri_cpu_time_qos_user_interactive uint64_t 10942 ri_billed_system_time uint64_t 10943 ri_serviced_system_time uint64_t 10944 } /* resource.h:251:1 */ 10945 10946 type rusage_info_v4 = struct { 10947 ri_uuid [16]uint8_t 10948 ri_user_time uint64_t 10949 ri_system_time uint64_t 10950 ri_pkg_idle_wkups uint64_t 10951 ri_interrupt_wkups uint64_t 10952 ri_pageins uint64_t 10953 ri_wired_size uint64_t 10954 ri_resident_size uint64_t 10955 ri_phys_footprint uint64_t 10956 ri_proc_start_abstime uint64_t 10957 ri_proc_exit_abstime uint64_t 10958 ri_child_user_time uint64_t 10959 ri_child_system_time uint64_t 10960 ri_child_pkg_idle_wkups uint64_t 10961 ri_child_interrupt_wkups uint64_t 10962 ri_child_pageins uint64_t 10963 ri_child_elapsed_abstime uint64_t 10964 ri_diskio_bytesread uint64_t 10965 ri_diskio_byteswritten uint64_t 10966 ri_cpu_time_qos_default uint64_t 10967 ri_cpu_time_qos_maintenance uint64_t 10968 ri_cpu_time_qos_background uint64_t 10969 ri_cpu_time_qos_utility uint64_t 10970 ri_cpu_time_qos_legacy uint64_t 10971 ri_cpu_time_qos_user_initiated uint64_t 10972 ri_cpu_time_qos_user_interactive uint64_t 10973 ri_billed_system_time uint64_t 10974 ri_serviced_system_time uint64_t 10975 ri_logical_writes uint64_t 10976 ri_lifetime_max_phys_footprint uint64_t 10977 ri_instructions uint64_t 10978 ri_cycles uint64_t 10979 ri_billed_energy uint64_t 10980 ri_serviced_energy uint64_t 10981 ri_interval_max_phys_footprint uint64_t 10982 ri_runnable_time uint64_t 10983 } /* resource.h:282:1 */ 10984 10985 type rusage_info_current = rusage_info_v4 /* resource.h:321:31 */ 10986 10987 // **** 10988 // 10989 // RESOURCE LIMITS 10990 10991 // Symbolic constants for resource limits; since all limits are representable 10992 // as a type rlim_t, we are permitted to define RLIM_SAVED_* in terms of 10993 // RLIM_INFINITY. 10994 10995 // Possible values of the first parameter to getrlimit()/setrlimit(), to 10996 // indicate for which resource the operation is being performed. 10997 10998 // A structure representing a resource limit. The address of an instance 10999 // of this structure is the second parameter to getrlimit()/setrlimit(). 11000 type rlimit = struct { 11001 rlim_cur rlim_t 11002 rlim_max rlim_t 11003 } /* resource.h:365:1 */ 11004 11005 // proc_rlimit_control() 11006 // 11007 // Resource limit flavors 11008 11009 // Flags for wakeups monitor control. 11010 11011 // Flags for CPU usage monitor control. 11012 11013 // Flags for memory footprint interval tracking. 11014 11015 type proc_rlimit_control_wakeupmon = struct { 11016 wm_flags uint32_t 11017 wm_rate int32_t 11018 } /* resource.h:400:1 */ 11019 11020 // Deprecated: 11021 // Structure of the information in the status word returned by wait4. 11022 // If w_stopval==_WSTOPPED, then the second structure describes 11023 // the information returned, else the first. 11024 type wait = struct{ w_status int32 } /* wait.h:194:1 */ 11025 11026 // built-in for gcc 11027 11028 // built-in for gcc 3 11029 11030 // DO NOT REMOVE THIS COMMENT: fixincludes needs to see: 11031 // _GCC_SIZE_T 11032 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 11033 // 11034 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11035 // 11036 // This file contains Original Code and/or Modifications of Original Code 11037 // as defined in and that are subject to the Apple Public Source License 11038 // Version 2.0 (the 'License'). You may not use this file except in 11039 // compliance with the License. The rights granted to you under the License 11040 // may not be used to create, or enable the creation or redistribution of, 11041 // unlawful or unlicensed copies of an Apple operating system, or to 11042 // circumvent, violate, or enable the circumvention or violation of, any 11043 // terms of an Apple operating system software license agreement. 11044 // 11045 // Please obtain a copy of the License at 11046 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11047 // 11048 // The Original Code and all software distributed under the License are 11049 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11050 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11051 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11052 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11053 // Please see the License for the specific language governing rights and 11054 // limitations under the License. 11055 // 11056 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11057 11058 // Copyright (c) 2012 Apple Inc. All rights reserved. 11059 // 11060 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11061 // 11062 // This file contains Original Code and/or Modifications of Original Code 11063 // as defined in and that are subject to the Apple Public Source License 11064 // Version 2.0 (the 'License'). You may not use this file except in 11065 // compliance with the License. The rights granted to you under the License 11066 // may not be used to create, or enable the creation or redistribution of, 11067 // unlawful or unlicensed copies of an Apple operating system, or to 11068 // circumvent, violate, or enable the circumvention or violation of, any 11069 // terms of an Apple operating system software license agreement. 11070 // 11071 // Please obtain a copy of the License at 11072 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11073 // 11074 // The Original Code and all software distributed under the License are 11075 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11076 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11077 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11078 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11079 // Please see the License for the specific language governing rights and 11080 // limitations under the License. 11081 // 11082 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11083 11084 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 11085 // 11086 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11087 // 11088 // This file contains Original Code and/or Modifications of Original Code 11089 // as defined in and that are subject to the Apple Public Source License 11090 // Version 2.0 (the 'License'). You may not use this file except in 11091 // compliance with the License. The rights granted to you under the License 11092 // may not be used to create, or enable the creation or redistribution of, 11093 // unlawful or unlicensed copies of an Apple operating system, or to 11094 // circumvent, violate, or enable the circumvention or violation of, any 11095 // terms of an Apple operating system software license agreement. 11096 // 11097 // Please obtain a copy of the License at 11098 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11099 // 11100 // The Original Code and all software distributed under the License are 11101 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11102 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11103 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11104 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11105 // Please see the License for the specific language governing rights and 11106 // limitations under the License. 11107 // 11108 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11109 type ct_rune_t = int32 /* _ct_rune_t.h:32:28 */ 11110 // Copyright (c) 2012 Apple Inc. All rights reserved. 11111 // 11112 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11113 // 11114 // This file contains Original Code and/or Modifications of Original Code 11115 // as defined in and that are subject to the Apple Public Source License 11116 // Version 2.0 (the 'License'). You may not use this file except in 11117 // compliance with the License. The rights granted to you under the License 11118 // may not be used to create, or enable the creation or redistribution of, 11119 // unlawful or unlicensed copies of an Apple operating system, or to 11120 // circumvent, violate, or enable the circumvention or violation of, any 11121 // terms of an Apple operating system software license agreement. 11122 // 11123 // Please obtain a copy of the License at 11124 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11125 // 11126 // The Original Code and all software distributed under the License are 11127 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11128 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11129 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11130 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11131 // Please see the License for the specific language governing rights and 11132 // limitations under the License. 11133 // 11134 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11135 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 11136 // 11137 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11138 // 11139 // This file contains Original Code and/or Modifications of Original Code 11140 // as defined in and that are subject to the Apple Public Source License 11141 // Version 2.0 (the 'License'). You may not use this file except in 11142 // compliance with the License. The rights granted to you under the License 11143 // may not be used to create, or enable the creation or redistribution of, 11144 // unlawful or unlicensed copies of an Apple operating system, or to 11145 // circumvent, violate, or enable the circumvention or violation of, any 11146 // terms of an Apple operating system software license agreement. 11147 // 11148 // Please obtain a copy of the License at 11149 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11150 // 11151 // The Original Code and all software distributed under the License are 11152 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11153 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11154 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11155 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11156 // Please see the License for the specific language governing rights and 11157 // limitations under the License. 11158 // 11159 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11160 type rune_t = int32 /* _rune_t.h:31:25 */ 11161 11162 type div_t = struct { 11163 quot int32 11164 rem int32 11165 } /* stdlib.h:86:3 */ 11166 11167 type ldiv_t = struct { 11168 quot int64 11169 rem int64 11170 } /* stdlib.h:91:3 */ 11171 11172 type lldiv_t = struct { 11173 quot int64 11174 rem int64 11175 } /* stdlib.h:97:3 */ 11176 11177 // C11 Annex K 11178 11179 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 11180 // 11181 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11182 // 11183 // This file contains Original Code and/or Modifications of Original Code 11184 // as defined in and that are subject to the Apple Public Source License 11185 // Version 2.0 (the 'License'). You may not use this file except in 11186 // compliance with the License. The rights granted to you under the License 11187 // may not be used to create, or enable the creation or redistribution of, 11188 // unlawful or unlicensed copies of an Apple operating system, or to 11189 // circumvent, violate, or enable the circumvention or violation of, any 11190 // terms of an Apple operating system software license agreement. 11191 // 11192 // Please obtain a copy of the License at 11193 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11194 // 11195 // The Original Code and all software distributed under the License are 11196 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11197 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11198 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11199 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11200 // Please see the License for the specific language governing rights and 11201 // limitations under the License. 11202 // 11203 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11204 // Copyright (c) 2000-2007 Apple Inc. All rights reserved. 11205 // 11206 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11207 // 11208 // This file contains Original Code and/or Modifications of Original Code 11209 // as defined in and that are subject to the Apple Public Source License 11210 // Version 2.0 (the 'License'). You may not use this file except in 11211 // compliance with the License. The rights granted to you under the License 11212 // may not be used to create, or enable the creation or redistribution of, 11213 // unlawful or unlicensed copies of an Apple operating system, or to 11214 // circumvent, violate, or enable the circumvention or violation of, any 11215 // terms of an Apple operating system software license agreement. 11216 // 11217 // Please obtain a copy of the License at 11218 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11219 // 11220 // The Original Code and all software distributed under the License are 11221 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11222 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11223 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11224 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11225 // Please see the License for the specific language governing rights and 11226 // limitations under the License. 11227 // 11228 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11229 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 11230 type rsize_t = uint64 /* _rsize_t.h:31:32 */ 11231 11232 // Copyright (c) 2000, 2007, 2010 Apple Inc. All rights reserved. 11233 // 11234 // @APPLE_LICENSE_HEADER_START@ 11235 // 11236 // This file contains Original Code and/or Modifications of Original Code 11237 // as defined in and that are subject to the Apple Public Source License 11238 // Version 2.0 (the 'License'). You may not use this file except in 11239 // compliance with the License. Please obtain a copy of the License at 11240 // http://www.opensource.apple.com/apsl/ and read it before using this 11241 // file. 11242 // 11243 // The Original Code and all software distributed under the License are 11244 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11245 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11246 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11247 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11248 // Please see the License for the specific language governing rights and 11249 // limitations under the License. 11250 // 11251 // @APPLE_LICENSE_HEADER_END@ 11252 // - 11253 // Copyright (c) 1990, 1993 11254 // The Regents of the University of California. All rights reserved. 11255 // 11256 // Redistribution and use in source and binary forms, with or without 11257 // modification, are permitted provided that the following conditions 11258 // are met: 11259 // 1. Redistributions of source code must retain the above copyright 11260 // notice, this list of conditions and the following disclaimer. 11261 // 2. Redistributions in binary form must reproduce the above copyright 11262 // notice, this list of conditions and the following disclaimer in the 11263 // documentation and/or other materials provided with the distribution. 11264 // 3. All advertising materials mentioning features or use of this software 11265 // must display the following acknowledgement: 11266 // This product includes software developed by the University of 11267 // California, Berkeley and its contributors. 11268 // 4. Neither the name of the University nor the names of its contributors 11269 // may be used to endorse or promote products derived from this software 11270 // without specific prior written permission. 11271 // 11272 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11273 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11274 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11275 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11276 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11277 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11278 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11279 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11280 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11281 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11282 // SUCH DAMAGE. 11283 // 11284 // @(#)string.h 8.1 (Berkeley) 6/2/93 11285 11286 // Security checking functions. 11287 // Copyright (c) 2017 Apple Inc. All rights reserved. 11288 // 11289 // @APPLE_LICENSE_HEADER_START@ 11290 // 11291 // This file contains Original Code and/or Modifications of Original Code 11292 // as defined in and that are subject to the Apple Public Source License 11293 // Version 2.0 (the 'License'). You may not use this file except in 11294 // compliance with the License. Please obtain a copy of the License at 11295 // http://www.opensource.apple.com/apsl/ and read it before using this 11296 // file. 11297 // 11298 // The Original Code and all software distributed under the License are 11299 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11300 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11301 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11302 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11303 // Please see the License for the specific language governing rights and 11304 // limitations under the License. 11305 // 11306 // @APPLE_LICENSE_HEADER_END@ 11307 11308 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 11309 // 11310 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11311 // 11312 // This file contains Original Code and/or Modifications of Original Code 11313 // as defined in and that are subject to the Apple Public Source License 11314 // Version 2.0 (the 'License'). You may not use this file except in 11315 // compliance with the License. The rights granted to you under the License 11316 // may not be used to create, or enable the creation or redistribution of, 11317 // unlawful or unlicensed copies of an Apple operating system, or to 11318 // circumvent, violate, or enable the circumvention or violation of, any 11319 // terms of an Apple operating system software license agreement. 11320 // 11321 // Please obtain a copy of the License at 11322 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11323 // 11324 // The Original Code and all software distributed under the License are 11325 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11326 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11327 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11328 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11329 // Please see the License for the specific language governing rights and 11330 // limitations under the License. 11331 // 11332 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11333 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 11334 // Copyright (c) 1991, 1993 11335 // The Regents of the University of California. All rights reserved. 11336 // 11337 // This code is derived from software contributed to Berkeley by 11338 // Berkeley Software Design, Inc. 11339 // 11340 // Redistribution and use in source and binary forms, with or without 11341 // modification, are permitted provided that the following conditions 11342 // are met: 11343 // 1. Redistributions of source code must retain the above copyright 11344 // notice, this list of conditions and the following disclaimer. 11345 // 2. Redistributions in binary form must reproduce the above copyright 11346 // notice, this list of conditions and the following disclaimer in the 11347 // documentation and/or other materials provided with the distribution. 11348 // 3. All advertising materials mentioning features or use of this software 11349 // must display the following acknowledgement: 11350 // This product includes software developed by the University of 11351 // California, Berkeley and its contributors. 11352 // 4. Neither the name of the University nor the names of its contributors 11353 // may be used to endorse or promote products derived from this software 11354 // without specific prior written permission. 11355 // 11356 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11357 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11358 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11359 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11360 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11361 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11362 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11363 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11364 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11365 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11366 // SUCH DAMAGE. 11367 // 11368 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 11369 11370 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 11371 // 11372 // @APPLE_LICENSE_HEADER_START@ 11373 // 11374 // This file contains Original Code and/or Modifications of Original Code 11375 // as defined in and that are subject to the Apple Public Source License 11376 // Version 2.0 (the 'License'). You may not use this file except in 11377 // compliance with the License. Please obtain a copy of the License at 11378 // http://www.opensource.apple.com/apsl/ and read it before using this 11379 // file. 11380 // 11381 // The Original Code and all software distributed under the License are 11382 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11383 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11384 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11385 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11386 // Please see the License for the specific language governing rights and 11387 // limitations under the License. 11388 // 11389 // @APPLE_LICENSE_HEADER_END@ 11390 11391 // Copyright (c) 2007, 2008 Apple Inc. All rights reserved. 11392 // 11393 // @APPLE_LICENSE_HEADER_START@ 11394 // 11395 // This file contains Original Code and/or Modifications of Original Code 11396 // as defined in and that are subject to the Apple Public Source License 11397 // Version 2.0 (the 'License'). You may not use this file except in 11398 // compliance with the License. Please obtain a copy of the License at 11399 // http://www.opensource.apple.com/apsl/ and read it before using this 11400 // file. 11401 // 11402 // The Original Code and all software distributed under the License are 11403 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11404 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11405 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11406 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11407 // Please see the License for the specific language governing rights and 11408 // limitations under the License. 11409 // 11410 // @APPLE_LICENSE_HEADER_END@ 11411 11412 // bcopy and bzero 11413 11414 // Removed in Issue 7 11415 11416 // void bcopy(const void *src, void *dst, size_t len) 11417 11418 // void bzero(void *s, size_t n) 11419 11420 // Security checking functions. 11421 // Copyright (c) 2007,2017 Apple Inc. All rights reserved. 11422 // 11423 // @APPLE_LICENSE_HEADER_START@ 11424 // 11425 // This file contains Original Code and/or Modifications of Original Code 11426 // as defined in and that are subject to the Apple Public Source License 11427 // Version 2.0 (the 'License'). You may not use this file except in 11428 // compliance with the License. Please obtain a copy of the License at 11429 // http://www.opensource.apple.com/apsl/ and read it before using this 11430 // file. 11431 // 11432 // The Original Code and all software distributed under the License are 11433 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11434 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11435 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11436 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11437 // Please see the License for the specific language governing rights and 11438 // limitations under the License. 11439 // 11440 // @APPLE_LICENSE_HEADER_END@ 11441 11442 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 11443 // 11444 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11445 // 11446 // This file contains Original Code and/or Modifications of Original Code 11447 // as defined in and that are subject to the Apple Public Source License 11448 // Version 2.0 (the 'License'). You may not use this file except in 11449 // compliance with the License. The rights granted to you under the License 11450 // may not be used to create, or enable the creation or redistribution of, 11451 // unlawful or unlicensed copies of an Apple operating system, or to 11452 // circumvent, violate, or enable the circumvention or violation of, any 11453 // terms of an Apple operating system software license agreement. 11454 // 11455 // Please obtain a copy of the License at 11456 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11457 // 11458 // The Original Code and all software distributed under the License are 11459 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11460 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11461 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11462 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11463 // Please see the License for the specific language governing rights and 11464 // limitations under the License. 11465 // 11466 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11467 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 11468 // Copyright (c) 1991, 1993 11469 // The Regents of the University of California. All rights reserved. 11470 // 11471 // This code is derived from software contributed to Berkeley by 11472 // Berkeley Software Design, Inc. 11473 // 11474 // Redistribution and use in source and binary forms, with or without 11475 // modification, are permitted provided that the following conditions 11476 // are met: 11477 // 1. Redistributions of source code must retain the above copyright 11478 // notice, this list of conditions and the following disclaimer. 11479 // 2. Redistributions in binary form must reproduce the above copyright 11480 // notice, this list of conditions and the following disclaimer in the 11481 // documentation and/or other materials provided with the distribution. 11482 // 3. All advertising materials mentioning features or use of this software 11483 // must display the following acknowledgement: 11484 // This product includes software developed by the University of 11485 // California, Berkeley and its contributors. 11486 // 4. Neither the name of the University nor the names of its contributors 11487 // may be used to endorse or promote products derived from this software 11488 // without specific prior written permission. 11489 // 11490 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11491 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11492 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11493 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11494 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11495 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11496 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11497 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11498 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11499 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11500 // SUCH DAMAGE. 11501 // 11502 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 11503 11504 // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. 11505 // 11506 // @APPLE_LICENSE_HEADER_START@ 11507 // 11508 // This file contains Original Code and/or Modifications of Original Code 11509 // as defined in and that are subject to the Apple Public Source License 11510 // Version 2.0 (the 'License'). You may not use this file except in 11511 // compliance with the License. Please obtain a copy of the License at 11512 // http://www.opensource.apple.com/apsl/ and read it before using this 11513 // file. 11514 // 11515 // The Original Code and all software distributed under the License are 11516 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11517 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11518 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11519 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11520 // Please see the License for the specific language governing rights and 11521 // limitations under the License. 11522 // 11523 // @APPLE_LICENSE_HEADER_END@ 11524 11525 // Copyright (c) 2007, 2008 Apple Inc. All rights reserved. 11526 // 11527 // @APPLE_LICENSE_HEADER_START@ 11528 // 11529 // This file contains Original Code and/or Modifications of Original Code 11530 // as defined in and that are subject to the Apple Public Source License 11531 // Version 2.0 (the 'License'). You may not use this file except in 11532 // compliance with the License. Please obtain a copy of the License at 11533 // http://www.opensource.apple.com/apsl/ and read it before using this 11534 // file. 11535 // 11536 // The Original Code and all software distributed under the License are 11537 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11538 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11539 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11540 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11541 // Please see the License for the specific language governing rights and 11542 // limitations under the License. 11543 // 11544 // @APPLE_LICENSE_HEADER_END@ 11545 11546 // <rdar://problem/12622659> 11547 11548 // memccpy, memcpy, mempcpy, memmove, memset, strcpy, strlcpy, stpcpy, 11549 // strncpy, stpncpy, strcat, strlcat, and strncat 11550 11551 // void *memcpy(void *dst, const void *src, size_t n) 11552 11553 // void *memmove(void *dst, const void *src, size_t len) 11554 11555 // void *memset(void *b, int c, size_t len) 11556 11557 // char *strcpy(char *dst, const char *src) 11558 11559 // char *stpcpy(char *dst, const char *src) 11560 11561 // char *stpncpy(char *dst, const char *src, size_t n) 11562 11563 // char *strncpy(char *dst, const char *src, size_t n) 11564 11565 // char *strcat(char *s1, const char *s2) 11566 11567 // char *strncat(char *s1, const char *s2, size_t n) 11568 11569 // - 11570 // Copyright (c) 1992, 1993 11571 // The Regents of the University of California. All rights reserved. 11572 // (c) UNIX System Laboratories, Inc. 11573 // All or some portions of this file are derived from material licensed 11574 // to the University of California by American Telephone and Telegraph 11575 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 11576 // the permission of UNIX System Laboratories, Inc. 11577 // 11578 // Redistribution and use in source and binary forms, with or without 11579 // modification, are permitted provided that the following conditions 11580 // are met: 11581 // 1. Redistributions of source code must retain the above copyright 11582 // notice, this list of conditions and the following disclaimer. 11583 // 2. Redistributions in binary form must reproduce the above copyright 11584 // notice, this list of conditions and the following disclaimer in the 11585 // documentation and/or other materials provided with the distribution. 11586 // 3. All advertising materials mentioning features or use of this software 11587 // must display the following acknowledgement: 11588 // This product includes software developed by the University of 11589 // California, Berkeley and its contributors. 11590 // 4. Neither the name of the University nor the names of its contributors 11591 // may be used to endorse or promote products derived from this software 11592 // without specific prior written permission. 11593 // 11594 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11595 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11596 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11597 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11598 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11599 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11600 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11601 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11602 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11603 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11604 // SUCH DAMAGE. 11605 // 11606 // @(#)assert.h 8.2 (Berkeley) 1/21/94 11607 // $FreeBSD: src/include/assert.h,v 1.4 2002/03/23 17:24:53 imp Exp $ 11608 11609 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 11610 // 11611 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11612 // 11613 // This file contains Original Code and/or Modifications of Original Code 11614 // as defined in and that are subject to the Apple Public Source License 11615 // Version 2.0 (the 'License'). You may not use this file except in 11616 // compliance with the License. The rights granted to you under the License 11617 // may not be used to create, or enable the creation or redistribution of, 11618 // unlawful or unlicensed copies of an Apple operating system, or to 11619 // circumvent, violate, or enable the circumvention or violation of, any 11620 // terms of an Apple operating system software license agreement. 11621 // 11622 // Please obtain a copy of the License at 11623 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11624 // 11625 // The Original Code and all software distributed under the License are 11626 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11627 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11628 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11629 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11630 // Please see the License for the specific language governing rights and 11631 // limitations under the License. 11632 // 11633 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11634 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 11635 // Copyright (c) 1991, 1993 11636 // The Regents of the University of California. All rights reserved. 11637 // 11638 // This code is derived from software contributed to Berkeley by 11639 // Berkeley Software Design, Inc. 11640 // 11641 // Redistribution and use in source and binary forms, with or without 11642 // modification, are permitted provided that the following conditions 11643 // are met: 11644 // 1. Redistributions of source code must retain the above copyright 11645 // notice, this list of conditions and the following disclaimer. 11646 // 2. Redistributions in binary form must reproduce the above copyright 11647 // notice, this list of conditions and the following disclaimer in the 11648 // documentation and/or other materials provided with the distribution. 11649 // 3. All advertising materials mentioning features or use of this software 11650 // must display the following acknowledgement: 11651 // This product includes software developed by the University of 11652 // California, Berkeley and its contributors. 11653 // 4. Neither the name of the University nor the names of its contributors 11654 // may be used to endorse or promote products derived from this software 11655 // without specific prior written permission. 11656 // 11657 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11658 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11659 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11660 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11661 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11662 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11663 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11664 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11665 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11666 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11667 // SUCH DAMAGE. 11668 // 11669 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 11670 11671 // Unlike other ANSI header files, <assert.h> may usefully be included 11672 // multiple times, with and without NDEBUG defined. 11673 11674 // Copyright (c) 2000, 2005, 2008 Apple Inc. All rights reserved. 11675 // 11676 // @APPLE_LICENSE_HEADER_START@ 11677 // 11678 // This file contains Original Code and/or Modifications of Original Code 11679 // as defined in and that are subject to the Apple Public Source License 11680 // Version 2.0 (the 'License'). You may not use this file except in 11681 // compliance with the License. Please obtain a copy of the License at 11682 // http://www.opensource.apple.com/apsl/ and read it before using this 11683 // file. 11684 // 11685 // The Original Code and all software distributed under the License are 11686 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11687 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11688 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11689 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11690 // Please see the License for the specific language governing rights and 11691 // limitations under the License. 11692 // 11693 // @APPLE_LICENSE_HEADER_END@ 11694 // Copyright (c) 1989, 1993 11695 // The Regents of the University of California. All rights reserved. 11696 // (c) UNIX System Laboratories, Inc. 11697 // All or some portions of this file are derived from material licensed 11698 // to the University of California by American Telephone and Telegraph 11699 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 11700 // the permission of UNIX System Laboratories, Inc. 11701 // 11702 // This code is derived from software contributed to Berkeley by 11703 // Paul Borman at Krystal Technologies. 11704 // 11705 // Redistribution and use in source and binary forms, with or without 11706 // modification, are permitted provided that the following conditions 11707 // are met: 11708 // 1. Redistributions of source code must retain the above copyright 11709 // notice, this list of conditions and the following disclaimer. 11710 // 2. Redistributions in binary form must reproduce the above copyright 11711 // notice, this list of conditions and the following disclaimer in the 11712 // documentation and/or other materials provided with the distribution. 11713 // 3. All advertising materials mentioning features or use of this software 11714 // must display the following acknowledgement: 11715 // This product includes software developed by the University of 11716 // California, Berkeley and its contributors. 11717 // 4. Neither the name of the University nor the names of its contributors 11718 // may be used to endorse or promote products derived from this software 11719 // without specific prior written permission. 11720 // 11721 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11722 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11723 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11724 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11725 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11726 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11727 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11728 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11729 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11730 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11731 // SUCH DAMAGE. 11732 // 11733 // @(#)ctype.h 8.4 (Berkeley) 1/21/94 11734 11735 // Copyright (c) 2000, 2005, 2008 Apple Inc. All rights reserved. 11736 // 11737 // @APPLE_LICENSE_HEADER_START@ 11738 // 11739 // This file contains Original Code and/or Modifications of Original Code 11740 // as defined in and that are subject to the Apple Public Source License 11741 // Version 2.0 (the 'License'). You may not use this file except in 11742 // compliance with the License. Please obtain a copy of the License at 11743 // http://www.opensource.apple.com/apsl/ and read it before using this 11744 // file. 11745 // 11746 // The Original Code and all software distributed under the License are 11747 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11748 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11749 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11750 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11751 // Please see the License for the specific language governing rights and 11752 // limitations under the License. 11753 // 11754 // @APPLE_LICENSE_HEADER_END@ 11755 // Copyright (c) 1989, 1993 11756 // The Regents of the University of California. All rights reserved. 11757 // (c) UNIX System Laboratories, Inc. 11758 // All or some portions of this file are derived from material licensed 11759 // to the University of California by American Telephone and Telegraph 11760 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 11761 // the permission of UNIX System Laboratories, Inc. 11762 // 11763 // This code is derived from software contributed to Berkeley by 11764 // Paul Borman at Krystal Technologies. 11765 // 11766 // Redistribution and use in source and binary forms, with or without 11767 // modification, are permitted provided that the following conditions 11768 // are met: 11769 // 1. Redistributions of source code must retain the above copyright 11770 // notice, this list of conditions and the following disclaimer. 11771 // 2. Redistributions in binary form must reproduce the above copyright 11772 // notice, this list of conditions and the following disclaimer in the 11773 // documentation and/or other materials provided with the distribution. 11774 // 3. All advertising materials mentioning features or use of this software 11775 // must display the following acknowledgement: 11776 // This product includes software developed by the University of 11777 // California, Berkeley and its contributors. 11778 // 4. Neither the name of the University nor the names of its contributors 11779 // may be used to endorse or promote products derived from this software 11780 // without specific prior written permission. 11781 // 11782 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11783 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11784 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11785 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11786 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11787 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11788 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11789 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11790 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11791 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11792 // SUCH DAMAGE. 11793 // 11794 // @(#)ctype.h 8.4 (Berkeley) 1/21/94 11795 11796 // Copyright (c) 2000-2018 Apple Inc. All rights reserved. 11797 // 11798 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11799 // 11800 // This file contains Original Code and/or Modifications of Original Code 11801 // as defined in and that are subject to the Apple Public Source License 11802 // Version 2.0 (the 'License'). You may not use this file except in 11803 // compliance with the License. The rights granted to you under the License 11804 // may not be used to create, or enable the creation or redistribution of, 11805 // unlawful or unlicensed copies of an Apple operating system, or to 11806 // circumvent, violate, or enable the circumvention or violation of, any 11807 // terms of an Apple operating system software license agreement. 11808 // 11809 // Please obtain a copy of the License at 11810 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11811 // 11812 // The Original Code and all software distributed under the License are 11813 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11814 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11815 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11816 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11817 // Please see the License for the specific language governing rights and 11818 // limitations under the License. 11819 // 11820 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11821 // Copyright 1995 NeXT Computer, Inc. All rights reserved. 11822 // Copyright (c) 1991, 1993 11823 // The Regents of the University of California. All rights reserved. 11824 // 11825 // This code is derived from software contributed to Berkeley by 11826 // Berkeley Software Design, Inc. 11827 // 11828 // Redistribution and use in source and binary forms, with or without 11829 // modification, are permitted provided that the following conditions 11830 // are met: 11831 // 1. Redistributions of source code must retain the above copyright 11832 // notice, this list of conditions and the following disclaimer. 11833 // 2. Redistributions in binary form must reproduce the above copyright 11834 // notice, this list of conditions and the following disclaimer in the 11835 // documentation and/or other materials provided with the distribution. 11836 // 3. All advertising materials mentioning features or use of this software 11837 // must display the following acknowledgement: 11838 // This product includes software developed by the University of 11839 // California, Berkeley and its contributors. 11840 // 4. Neither the name of the University nor the names of its contributors 11841 // may be used to endorse or promote products derived from this software 11842 // without specific prior written permission. 11843 // 11844 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11845 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11846 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11847 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11848 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11849 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11850 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11851 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11852 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11853 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11854 // SUCH DAMAGE. 11855 // 11856 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 11857 11858 // - 11859 // Copyright (c) 1993 11860 // The Regents of the University of California. All rights reserved. 11861 // 11862 // This code is derived from software contributed to Berkeley by 11863 // Paul Borman at Krystal Technologies. 11864 // 11865 // Redistribution and use in source and binary forms, with or without 11866 // modification, are permitted provided that the following conditions 11867 // are met: 11868 // 1. Redistributions of source code must retain the above copyright 11869 // notice, this list of conditions and the following disclaimer. 11870 // 2. Redistributions in binary form must reproduce the above copyright 11871 // notice, this list of conditions and the following disclaimer in the 11872 // documentation and/or other materials provided with the distribution. 11873 // 3. All advertising materials mentioning features or use of this software 11874 // must display the following acknowledgement: 11875 // This product includes software developed by the University of 11876 // California, Berkeley and its contributors. 11877 // 4. Neither the name of the University nor the names of its contributors 11878 // may be used to endorse or promote products derived from this software 11879 // without specific prior written permission. 11880 // 11881 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 11882 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 11883 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 11884 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 11885 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 11886 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 11887 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 11888 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 11889 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 11890 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11891 // SUCH DAMAGE. 11892 // 11893 // @(#)runetype.h 8.1 (Berkeley) 6/2/93 11894 11895 // Copyright (c) 2004, 2008, 2009 Apple Inc. All rights reserved. 11896 // 11897 // @APPLE_LICENSE_HEADER_START@ 11898 // 11899 // This file contains Original Code and/or Modifications of Original Code 11900 // as defined in and that are subject to the Apple Public Source License 11901 // Version 2.0 (the 'License'). You may not use this file except in 11902 // compliance with the License. Please obtain a copy of the License at 11903 // http://www.opensource.apple.com/apsl/ and read it before using this 11904 // file. 11905 // 11906 // The Original Code and all software distributed under the License are 11907 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11908 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11909 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11910 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11911 // Please see the License for the specific language governing rights and 11912 // limitations under the License. 11913 // 11914 // @APPLE_LICENSE_HEADER_END@ 11915 11916 // Copyright (c) 2003-2012 Apple Inc. All rights reserved. 11917 // 11918 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11919 // 11920 // This file contains Original Code and/or Modifications of Original Code 11921 // as defined in and that are subject to the Apple Public Source License 11922 // Version 2.0 (the 'License'). You may not use this file except in 11923 // compliance with the License. The rights granted to you under the License 11924 // may not be used to create, or enable the creation or redistribution of, 11925 // unlawful or unlicensed copies of an Apple operating system, or to 11926 // circumvent, violate, or enable the circumvention or violation of, any 11927 // terms of an Apple operating system software license agreement. 11928 // 11929 // Please obtain a copy of the License at 11930 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11931 // 11932 // The Original Code and all software distributed under the License are 11933 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11934 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11935 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11936 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11937 // Please see the License for the specific language governing rights and 11938 // limitations under the License. 11939 // 11940 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11941 // Copyright (c) 2012 Apple Inc. All rights reserved. 11942 // 11943 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11944 // 11945 // This file contains Original Code and/or Modifications of Original Code 11946 // as defined in and that are subject to the Apple Public Source License 11947 // Version 2.0 (the 'License'). You may not use this file except in 11948 // compliance with the License. The rights granted to you under the License 11949 // may not be used to create, or enable the creation or redistribution of, 11950 // unlawful or unlicensed copies of an Apple operating system, or to 11951 // circumvent, violate, or enable the circumvention or violation of, any 11952 // terms of an Apple operating system software license agreement. 11953 // 11954 // Please obtain a copy of the License at 11955 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11956 // 11957 // The Original Code and all software distributed under the License are 11958 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11959 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11960 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11961 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11962 // Please see the License for the specific language governing rights and 11963 // limitations under the License. 11964 // 11965 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11966 11967 // Copyright (c) 2012 Apple Inc. All rights reserved. 11968 // 11969 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11970 // 11971 // This file contains Original Code and/or Modifications of Original Code 11972 // as defined in and that are subject to the Apple Public Source License 11973 // Version 2.0 (the 'License'). You may not use this file except in 11974 // compliance with the License. The rights granted to you under the License 11975 // may not be used to create, or enable the creation or redistribution of, 11976 // unlawful or unlicensed copies of an Apple operating system, or to 11977 // circumvent, violate, or enable the circumvention or violation of, any 11978 // terms of an Apple operating system software license agreement. 11979 // 11980 // Please obtain a copy of the License at 11981 // http://www.opensource.apple.com/apsl/ and read it before using this file. 11982 // 11983 // The Original Code and all software distributed under the License are 11984 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 11985 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 11986 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 11987 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 11988 // Please see the License for the specific language governing rights and 11989 // limitations under the License. 11990 // 11991 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 11992 // Copyright (c) 2012 Apple Inc. All rights reserved. 11993 // 11994 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 11995 // 11996 // This file contains Original Code and/or Modifications of Original Code 11997 // as defined in and that are subject to the Apple Public Source License 11998 // Version 2.0 (the 'License'). You may not use this file except in 11999 // compliance with the License. The rights granted to you under the License 12000 // may not be used to create, or enable the creation or redistribution of, 12001 // unlawful or unlicensed copies of an Apple operating system, or to 12002 // circumvent, violate, or enable the circumvention or violation of, any 12003 // terms of an Apple operating system software license agreement. 12004 // 12005 // Please obtain a copy of the License at 12006 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12007 // 12008 // The Original Code and all software distributed under the License are 12009 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12010 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12011 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12012 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12013 // Please see the License for the specific language governing rights and 12014 // limitations under the License. 12015 // 12016 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12017 12018 // wchar_t is a built-in type in C++ 12019 // Copyright (c) 2012 Apple Inc. All rights reserved. 12020 // 12021 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12022 // 12023 // This file contains Original Code and/or Modifications of Original Code 12024 // as defined in and that are subject to the Apple Public Source License 12025 // Version 2.0 (the 'License'). You may not use this file except in 12026 // compliance with the License. The rights granted to you under the License 12027 // may not be used to create, or enable the creation or redistribution of, 12028 // unlawful or unlicensed copies of an Apple operating system, or to 12029 // circumvent, violate, or enable the circumvention or violation of, any 12030 // terms of an Apple operating system software license agreement. 12031 // 12032 // Please obtain a copy of the License at 12033 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12034 // 12035 // The Original Code and all software distributed under the License are 12036 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12037 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12038 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12039 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12040 // Please see the License for the specific language governing rights and 12041 // limitations under the License. 12042 // 12043 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12044 12045 // Copyright (c) 2003-2007 Apple Inc. All rights reserved. 12046 // 12047 // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 12048 // 12049 // This file contains Original Code and/or Modifications of Original Code 12050 // as defined in and that are subject to the Apple Public Source License 12051 // Version 2.0 (the 'License'). You may not use this file except in 12052 // compliance with the License. The rights granted to you under the License 12053 // may not be used to create, or enable the creation or redistribution of, 12054 // unlawful or unlicensed copies of an Apple operating system, or to 12055 // circumvent, violate, or enable the circumvention or violation of, any 12056 // terms of an Apple operating system software license agreement. 12057 // 12058 // Please obtain a copy of the License at 12059 // http://www.opensource.apple.com/apsl/ and read it before using this file. 12060 // 12061 // The Original Code and all software distributed under the License are 12062 // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12063 // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 12064 // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 12065 // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 12066 // Please see the License for the specific language governing rights and 12067 // limitations under the License. 12068 // 12069 // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 12070 type wint_t = int32 /* _wint_t.h:32:25 */ 12071 12072 // The lower 8 bits of runetype[] contain the digit value of the rune. 12073 type _RuneEntry = struct { 12074 __min int32 12075 __max int32 12076 __map int32 12077 _ [4]byte 12078 __types uintptr 12079 } /* runetype.h:65:3 */ 12080 12081 type _RuneRange = struct { 12082 __nranges int32 12083 _ [4]byte 12084 __ranges uintptr 12085 } /* runetype.h:70:3 */ 12086 12087 type _RuneCharClass = struct { 12088 __name [14]int8 12089 _ [2]byte 12090 __mask uint32 12091 } /* runetype.h:75:3 */ 12092 12093 type _RuneLocale = struct { 12094 __magic [8]int8 12095 __encoding [32]int8 12096 __sgetrune uintptr 12097 __sputrune uintptr 12098 __invalid_rune int32 12099 __runetype [256]uint32 12100 __maplower [256]int32 12101 __mapupper [256]int32 12102 _ [4]byte 12103 __runetype_ext _RuneRange 12104 __maplower_ext _RuneRange 12105 __mapupper_ext _RuneRange 12106 __variable uintptr 12107 __variable_len int32 12108 __ncharclasses int32 12109 __charclasses uintptr 12110 } /* runetype.h:106:3 */ 12111 12112 // The suffix to append to the child command lines, if any 12113 12114 // The directory separator character(s) 12115 12116 // Mark a parameter as unused to suppress compiler warnings 12117 12118 // Global data 12119 type Global = struct { 12120 argv0 uintptr 12121 zVfs uintptr 12122 zDbFile uintptr 12123 db uintptr 12124 zErrLog uintptr 12125 pErrLog uintptr 12126 zLog uintptr 12127 pLog uintptr 12128 zName [32]int8 12129 taskId int32 12130 iTrace int32 12131 bSqlTrace int32 12132 bIgnoreSqlErrors int32 12133 nError int32 12134 nTest int32 12135 iTimeout int32 12136 bSync int32 12137 } /* mptest.c:72:8 */ 12138 12139 // The suffix to append to the child command lines, if any 12140 12141 // The directory separator character(s) 12142 12143 // Mark a parameter as unused to suppress compiler warnings 12144 12145 // Global data 12146 var g Global /* mptest.c:90:3: */ 12147 12148 // Default timeout 12149 12150 // Print a message adding zPrefix[] to the beginning of every line. 12151 func printWithPrefix(tls *libc.TLS, pOut uintptr, zPrefix uintptr, zMsg uintptr) { /* mptest.c:98:13: */ 12152 bp := tls.Alloc(24) 12153 defer tls.Free(24) 12154 12155 for (zMsg != 0) && (*(*int8)(unsafe.Pointer(zMsg)) != 0) { 12156 var i int32 12157 for i = 0; ((*(*int8)(unsafe.Pointer(zMsg + uintptr(i))) != 0) && (int32(*(*int8)(unsafe.Pointer(zMsg + uintptr(i)))) != '\n')) && (int32(*(*int8)(unsafe.Pointer(zMsg + uintptr(i)))) != '\r'); i++ { 12158 } 12159 libc.Xfprintf(tls, pOut, ts /* "%s%.*s\n" */, libc.VaList(bp, zPrefix, i, zMsg)) 12160 zMsg += uintptr(i) 12161 for (int32(*(*int8)(unsafe.Pointer(zMsg))) == '\n') || (int32(*(*int8)(unsafe.Pointer(zMsg))) == '\r') { 12162 zMsg++ 12163 } 12164 } 12165 } 12166 12167 // Compare two pointers to strings, where the pointers might be NULL. 12168 func safe_strcmp(tls *libc.TLS, a uintptr, b uintptr) int32 { /* mptest.c:111:12: */ 12169 if a == b { 12170 return 0 12171 } 12172 if a == uintptr(0) { 12173 return -1 12174 } 12175 if b == uintptr(0) { 12176 return 1 12177 } 12178 return libc.Xstrcmp(tls, a, b) 12179 } 12180 12181 // Return TRUE if string z[] matches glob pattern zGlob[]. 12182 // Return FALSE if the pattern does not match. 12183 // 12184 // Globbing rules: 12185 // 12186 // '*' Matches any sequence of zero or more characters. 12187 // 12188 // '?' Matches exactly one character. 12189 // 12190 // [...] Matches one character from the enclosed list of 12191 // characters. 12192 // 12193 // [^...] Matches one character not in the enclosed list. 12194 // 12195 // '#' Matches any sequence of one or more digits with an 12196 // optional + or - sign in front 12197 func strglob(tls *libc.TLS, zGlob uintptr, z uintptr) int32 { /* mptest.c:136:5: */ 12198 var c int32 12199 var c2 int32 12200 var invert int32 12201 var seen int32 12202 12203 for (libc.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1)))))) != 0 { 12204 if c == '*' { 12205 for ((libc.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1)))))) == '*') || (c == '?') { 12206 if (c == '?') && ((int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1))))) == 0) { 12207 return 0 12208 } 12209 } 12210 if c == 0 { 12211 return 1 12212 } else if c == '[' { 12213 for (*(*int8)(unsafe.Pointer(z)) != 0) && (strglob(tls, (zGlob-uintptr(1)), z) != 0) { 12214 z++ 12215 } 12216 return (libc.Bool32((int32(*(*int8)(unsafe.Pointer(z)))) != 0)) 12217 } 12218 for (libc.AssignInt32(&c2, int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1)))))) != 0 { 12219 for c2 != c { 12220 c2 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1)))) 12221 if c2 == 0 { 12222 return 0 12223 } 12224 } 12225 if strglob(tls, zGlob, z) != 0 { 12226 return 1 12227 } 12228 } 12229 return 0 12230 } else if c == '?' { 12231 if (int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1))))) == 0 { 12232 return 0 12233 } 12234 } else if c == '[' { 12235 var prior_c int32 = 0 12236 seen = 0 12237 invert = 0 12238 c = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1)))) 12239 if c == 0 { 12240 return 0 12241 } 12242 c2 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1)))) 12243 if c2 == '^' { 12244 invert = 1 12245 c2 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1)))) 12246 } 12247 if c2 == ']' { 12248 if c == ']' { 12249 seen = 1 12250 } 12251 c2 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1)))) 12252 } 12253 for (c2 != 0) && (c2 != ']') { 12254 if (((c2 == '-') && (int32(*(*int8)(unsafe.Pointer(zGlob))) != ']')) && (int32(*(*int8)(unsafe.Pointer(zGlob))) != 0)) && (prior_c > 0) { 12255 c2 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1)))) 12256 if (c >= prior_c) && (c <= c2) { 12257 seen = 1 12258 } 12259 prior_c = 0 12260 } else { 12261 if c == c2 { 12262 seen = 1 12263 } 12264 prior_c = c2 12265 } 12266 c2 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1)))) 12267 } 12268 if (c2 == 0) || ((seen ^ invert) == 0) { 12269 return 0 12270 } 12271 } else if c == '#' { 12272 if ((int32(*(*int8)(unsafe.Pointer(z))) == '-') || (int32(*(*int8)(unsafe.Pointer(z))) == '+')) && (libc.Xisdigit(tls, int32(uint8(*(*int8)(unsafe.Pointer(z + 1))))) != 0) { 12273 z++ 12274 } 12275 if !(libc.Xisdigit(tls, int32(uint8(*(*int8)(unsafe.Pointer(z))))) != 0) { 12276 return 0 12277 } 12278 z++ 12279 for libc.Xisdigit(tls, int32(uint8(*(*int8)(unsafe.Pointer(z))))) != 0 { 12280 z++ 12281 } 12282 } else { 12283 if c != (int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1))))) { 12284 return 0 12285 } 12286 } 12287 } 12288 return (libc.Bool32(int32(*(*int8)(unsafe.Pointer(z))) == 0)) 12289 } 12290 12291 // Close output stream pOut if it is not stdout or stderr 12292 func maybeClose(tls *libc.TLS, pOut uintptr) { /* mptest.c:208:13: */ 12293 if (pOut != libc.X__stdoutp) && (pOut != libc.X__stderrp) { 12294 libc.Xfclose(tls, pOut) 12295 } 12296 } 12297 12298 // Print an error message 12299 func errorMessage(tls *libc.TLS, zFormat uintptr, va uintptr) { /* mptest.c:215:13: */ 12300 bp := tls.Alloc(38) 12301 defer tls.Free(38) 12302 12303 var ap va_list 12304 _ = ap 12305 var zMsg uintptr 12306 // var zPrefix [30]int8 at bp+8, 30 12307 12308 ap = va 12309 zMsg = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap) 12310 _ = ap 12311 sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zPrefix[0] */, ts+8 /* "%s:ERROR: " */, libc.VaList(bp, uintptr(unsafe.Pointer(&g))+64 /* &.zName */)) 12312 if g.pLog != 0 { 12313 printWithPrefix(tls, g.pLog, bp+8 /* &zPrefix[0] */, zMsg) 12314 libc.Xfflush(tls, g.pLog) 12315 } 12316 if (g.pErrLog != 0) && (safe_strcmp(tls, g.zErrLog, g.zLog) != 0) { 12317 printWithPrefix(tls, g.pErrLog, bp+8 /* &zPrefix[0] */, zMsg) 12318 libc.Xfflush(tls, g.pErrLog) 12319 } 12320 sqlite3.Xsqlite3_free(tls, zMsg) 12321 g.nError++ 12322 } 12323 12324 // Print an error message and then quit. 12325 func fatalError(tls *libc.TLS, zFormat uintptr, va uintptr) { /* mptest.c:241:13: */ 12326 bp := tls.Alloc(38) 12327 defer tls.Free(38) 12328 12329 var ap va_list 12330 _ = ap 12331 var zMsg uintptr 12332 // var zPrefix [30]int8 at bp+8, 30 12333 12334 ap = va 12335 zMsg = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap) 12336 _ = ap 12337 sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zPrefix[0] */, ts+19 /* "%s:FATAL: " */, libc.VaList(bp, uintptr(unsafe.Pointer(&g))+64 /* &.zName */)) 12338 if g.pLog != 0 { 12339 printWithPrefix(tls, g.pLog, bp+8 /* &zPrefix[0] */, zMsg) 12340 libc.Xfflush(tls, g.pLog) 12341 maybeClose(tls, g.pLog) 12342 } 12343 if (g.pErrLog != 0) && (safe_strcmp(tls, g.zErrLog, g.zLog) != 0) { 12344 printWithPrefix(tls, g.pErrLog, bp+8 /* &zPrefix[0] */, zMsg) 12345 libc.Xfflush(tls, g.pErrLog) 12346 maybeClose(tls, g.pErrLog) 12347 } 12348 sqlite3.Xsqlite3_free(tls, zMsg) 12349 if g.db != 0 { 12350 var nTry int32 = 0 12351 g.iTimeout = 0 12352 for (trySql(tls, ts+30 /* "UPDATE client SE..." */, 0) == SQLITE_BUSY) && 12353 ((libc.PostIncInt32(&nTry, 1)) < 100) { 12354 sqlite3.Xsqlite3_sleep(tls, 10) 12355 } 12356 } 12357 sqlite3.Xsqlite3_close(tls, g.db) 12358 libc.Xexit(tls, 1) 12359 } 12360 12361 // Print a log message 12362 func logMessage(tls *libc.TLS, zFormat uintptr, va uintptr) { /* mptest.c:276:13: */ 12363 bp := tls.Alloc(38) 12364 defer tls.Free(38) 12365 12366 var ap va_list 12367 _ = ap 12368 var zMsg uintptr 12369 // var zPrefix [30]int8 at bp+8, 30 12370 12371 ap = va 12372 zMsg = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap) 12373 _ = ap 12374 sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zPrefix[0] */, ts+60 /* "%s: " */, libc.VaList(bp, uintptr(unsafe.Pointer(&g))+64 /* &.zName */)) 12375 if g.pLog != 0 { 12376 printWithPrefix(tls, g.pLog, bp+8 /* &zPrefix[0] */, zMsg) 12377 libc.Xfflush(tls, g.pLog) 12378 } 12379 sqlite3.Xsqlite3_free(tls, zMsg) 12380 } 12381 12382 // Return the length of a string omitting trailing whitespace 12383 func clipLength(tls *libc.TLS, z uintptr) int32 { /* mptest.c:294:12: */ 12384 var n int32 = int32(libc.Xstrlen(tls, z)) 12385 for (n > 0) && (libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n - 1))))))) != 0) { 12386 n-- 12387 } 12388 return n 12389 } 12390 12391 // Auxiliary SQL function to return the name of the VFS 12392 func vfsNameFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* mptest.c:303:13: */ 12393 bp := tls.Alloc(8) 12394 defer tls.Free(8) 12395 12396 var db uintptr = sqlite3.Xsqlite3_context_db_handle(tls, context) 12397 *(*uintptr)(unsafe.Pointer(bp /* zVfs */)) = uintptr(0) 12398 _ = argc 12399 _ = argv 12400 sqlite3.Xsqlite3_file_control(tls, db, ts+65 /* "main" */, SQLITE_FCNTL_VFSNAME, bp /* &zVfs */) 12401 if *(*uintptr)(unsafe.Pointer(bp /* zVfs */)) != 0 { 12402 sqlite3.Xsqlite3_result_text(tls, context, *(*uintptr)(unsafe.Pointer(bp /* zVfs */)), -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free}))) 12403 } 12404 } 12405 12406 // Busy handler with a g.iTimeout-millisecond timeout 12407 func busyHandler(tls *libc.TLS, pCD uintptr, count int32) int32 { /* mptest.c:321:12: */ 12408 bp := tls.Alloc(8) 12409 defer tls.Free(8) 12410 12411 _ = pCD 12412 if (count * 10) > g.iTimeout { 12413 if g.iTimeout > 0 { 12414 errorMessage(tls, ts+70 /* "timeout after %d..." */, libc.VaList(bp, g.iTimeout)) 12415 } 12416 return 0 12417 } 12418 sqlite3.Xsqlite3_sleep(tls, 10) 12419 return 1 12420 } 12421 12422 // SQL Trace callback 12423 func sqlTraceCallback(tls *libc.TLS, NotUsed1 uintptr, zSql uintptr) { /* mptest.c:334:13: */ 12424 bp := tls.Alloc(16) 12425 defer tls.Free(16) 12426 12427 _ = NotUsed1 12428 logMessage(tls, ts+89 /* "[%.*s]" */, libc.VaList(bp, clipLength(tls, zSql), zSql)) 12429 } 12430 12431 // SQL error log callback 12432 func sqlErrorCallback(tls *libc.TLS, pArg uintptr, iErrCode int32, zMsg uintptr) { /* mptest.c:342:13: */ 12433 bp := tls.Alloc(24) 12434 defer tls.Free(24) 12435 12436 _ = pArg 12437 if (iErrCode == SQLITE_ERROR) && (g.bIgnoreSqlErrors != 0) { 12438 return 12439 } 12440 if ((iErrCode & 0xff) == SQLITE_SCHEMA) && (g.iTrace < 3) { 12441 return 12442 } 12443 if ((g.iTimeout == 0) && ((iErrCode & 0xff) == SQLITE_BUSY)) && (g.iTrace < 3) { 12444 return 12445 } 12446 if (iErrCode & 0xff) == SQLITE_NOTICE { 12447 logMessage(tls, ts+96 /* "(info) %s" */, libc.VaList(bp, zMsg)) 12448 } else { 12449 errorMessage(tls, ts+106 /* "(errcode=%d) %s" */, libc.VaList(bp+8, iErrCode, zMsg)) 12450 } 12451 } 12452 12453 // Prepare an SQL statement. Issue a fatal error if unable. 12454 func prepareSql(tls *libc.TLS, zFormat uintptr, va uintptr) uintptr { /* mptest.c:357:21: */ 12455 bp := tls.Alloc(24) 12456 defer tls.Free(24) 12457 12458 var ap va_list 12459 _ = ap 12460 var zSql uintptr 12461 var rc int32 12462 *(*uintptr)(unsafe.Pointer(bp + 16 /* pStmt */)) = uintptr(0) 12463 ap = va 12464 zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap) 12465 _ = ap 12466 rc = sqlite3.Xsqlite3_prepare_v2(tls, g.db, zSql, -1, bp+16 /* &pStmt */, uintptr(0)) 12467 if rc != SQLITE_OK { 12468 sqlite3.Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* pStmt */))) 12469 fatalError(tls, ts+122 /* "%s\n%s\n" */, libc.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, g.db), zSql)) 12470 } 12471 sqlite3.Xsqlite3_free(tls, zSql) 12472 return *(*uintptr)(unsafe.Pointer(bp + 16 /* pStmt */)) 12473 } 12474 12475 // Run arbitrary SQL. Issue a fatal error on failure. 12476 func runSql(tls *libc.TLS, zFormat uintptr, va uintptr) { /* mptest.c:377:13: */ 12477 bp := tls.Alloc(16) 12478 defer tls.Free(16) 12479 12480 var ap va_list 12481 _ = ap 12482 var zSql uintptr 12483 var rc int32 12484 ap = va 12485 zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap) 12486 _ = ap 12487 rc = sqlite3.Xsqlite3_exec(tls, g.db, zSql, uintptr(0), uintptr(0), uintptr(0)) 12488 if rc != SQLITE_OK { 12489 fatalError(tls, ts+122 /* "%s\n%s\n" */, libc.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, g.db), zSql)) 12490 } 12491 sqlite3.Xsqlite3_free(tls, zSql) 12492 } 12493 12494 // Try to run arbitrary SQL. Return success code. 12495 func trySql(tls *libc.TLS, zFormat uintptr, va uintptr) int32 { /* mptest.c:394:12: */ 12496 var ap va_list 12497 _ = ap 12498 var zSql uintptr 12499 var rc int32 12500 ap = va 12501 zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap) 12502 _ = ap 12503 rc = sqlite3.Xsqlite3_exec(tls, g.db, zSql, uintptr(0), uintptr(0), uintptr(0)) 12504 sqlite3.Xsqlite3_free(tls, zSql) 12505 return rc 12506 } 12507 12508 // Structure for holding an arbitrary length string 12509 type String1 = struct { 12510 z uintptr 12511 n int32 12512 nAlloc int32 12513 } /* mptest.c:408:9 */ 12514 12515 // Structure for holding an arbitrary length string 12516 type String = String1 /* mptest.c:408:23 */ 12517 12518 // Free a string 12519 func stringFree(tls *libc.TLS, p uintptr) { /* mptest.c:416:13: */ 12520 if (*String)(unsafe.Pointer(p)).z != 0 { 12521 sqlite3.Xsqlite3_free(tls, (*String)(unsafe.Pointer(p)).z) 12522 } 12523 libc.X__builtin___memset_chk(tls, p, 0, uint64(unsafe.Sizeof(String{})), libc.X__builtin_object_size(tls, p, 0)) 12524 } 12525 12526 // Append n bytes of text to a string. If n<0 append the entire string. 12527 func stringAppend(tls *libc.TLS, p uintptr, z uintptr, n int32) { /* mptest.c:422:13: */ 12528 if n < 0 { 12529 n = int32(libc.Xstrlen(tls, z)) 12530 } 12531 if ((*String)(unsafe.Pointer(p)).n + n) >= (*String)(unsafe.Pointer(p)).nAlloc { 12532 var nAlloc int32 = ((((*String)(unsafe.Pointer(p)).nAlloc * 2) + n) + 100) 12533 var zNew uintptr = sqlite3.Xsqlite3_realloc(tls, (*String)(unsafe.Pointer(p)).z, nAlloc) 12534 if zNew == uintptr(0) { 12535 fatalError(tls, ts+129 /* "out of memory" */, 0) 12536 } 12537 (*String)(unsafe.Pointer(p)).z = zNew 12538 (*String)(unsafe.Pointer(p)).nAlloc = nAlloc 12539 } 12540 libc.X__builtin___memcpy_chk(tls, ((*String)(unsafe.Pointer(p)).z + uintptr((*String)(unsafe.Pointer(p)).n)), z, uint64(n), libc.X__builtin_object_size(tls, ((*String)(unsafe.Pointer(p)).z+uintptr((*String)(unsafe.Pointer(p)).n)), 0)) 12541 *(*int32)(unsafe.Pointer(p + 8 /* &.n */)) += (n) 12542 *(*int8)(unsafe.Pointer((*String)(unsafe.Pointer(p)).z + uintptr((*String)(unsafe.Pointer(p)).n))) = int8(0) 12543 } 12544 12545 // Reset a string to an empty string 12546 func stringReset(tls *libc.TLS, p uintptr) { /* mptest.c:437:13: */ 12547 if (*String)(unsafe.Pointer(p)).z == uintptr(0) { 12548 stringAppend(tls, p, ts+143 /* " " */, 1) 12549 } 12550 (*String)(unsafe.Pointer(p)).n = 0 12551 *(*int8)(unsafe.Pointer((*String)(unsafe.Pointer(p)).z)) = int8(0) 12552 } 12553 12554 // Append a new token onto the end of the string 12555 func stringAppendTerm(tls *libc.TLS, p uintptr, z uintptr) { /* mptest.c:444:13: */ 12556 var i int32 12557 if (*String)(unsafe.Pointer(p)).n != 0 { 12558 stringAppend(tls, p, ts+143 /* " " */, 1) 12559 } 12560 if z == uintptr(0) { 12561 stringAppend(tls, p, ts+145 /* "nil" */, 3) 12562 return 12563 } 12564 for i = 0; (*(*int8)(unsafe.Pointer(z + uintptr(i))) != 0) && !(libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr(i)))))) != 0); i++ { 12565 } 12566 if (i > 0) && (int32(*(*int8)(unsafe.Pointer(z + uintptr(i)))) == 0) { 12567 stringAppend(tls, p, z, i) 12568 return 12569 } 12570 stringAppend(tls, p, ts+149 /* "'" */, 1) 12571 for *(*int8)(unsafe.Pointer(z)) != 0 { 12572 for i = 0; (*(*int8)(unsafe.Pointer(z + uintptr(i))) != 0) && (int32(*(*int8)(unsafe.Pointer(z + uintptr(i)))) != '\''); i++ { 12573 } 12574 if *(*int8)(unsafe.Pointer(z + uintptr(i))) != 0 { 12575 stringAppend(tls, p, z, (i + 1)) 12576 stringAppend(tls, p, ts+149 /* "'" */, 1) 12577 z += (uintptr(i + 1)) 12578 } else { 12579 stringAppend(tls, p, z, i) 12580 break 12581 } 12582 } 12583 stringAppend(tls, p, ts+149 /* "'" */, 1) 12584 } 12585 12586 // Callback function for evalSql() 12587 func evalCallback(tls *libc.TLS, pCData uintptr, argc int32, argv uintptr, azCol uintptr) int32 { /* mptest.c:474:12: */ 12588 var p uintptr = pCData 12589 var i int32 12590 _ = azCol 12591 for i = 0; i < argc; i++ { 12592 stringAppendTerm(tls, p, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))) 12593 } 12594 return 0 12595 } 12596 12597 // Run arbitrary SQL and record the results in an output string 12598 // given by the first parameter. 12599 func evalSql(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) int32 { /* mptest.c:486:12: */ 12600 bp := tls.Alloc(46) 12601 defer tls.Free(46) 12602 12603 var ap va_list 12604 _ = ap 12605 var zSql uintptr 12606 var rc int32 12607 *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrMsg */)) = uintptr(0) 12608 ap = va 12609 zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap) 12610 _ = ap 12611 12612 rc = sqlite3.Xsqlite3_exec(tls, g.db, zSql, *(*uintptr)(unsafe.Pointer(&struct { 12613 f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32 12614 }{evalCallback})), p, bp+8 /* &zErrMsg */) 12615 sqlite3.Xsqlite3_free(tls, zSql) 12616 if rc != 0 { 12617 // var zErr [30]int8 at bp+16, 30 12618 12619 sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+16 /* &zErr[0] */, ts+151 /* "error(%d)" */, libc.VaList(bp, rc)) 12620 stringAppendTerm(tls, p, bp+16 /* &zErr[0] */) 12621 if *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrMsg */)) != 0 { 12622 stringAppendTerm(tls, p, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrMsg */))) 12623 sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrMsg */))) 12624 } 12625 } 12626 return rc 12627 } 12628 12629 // Auxiliary SQL function to recursively evaluate SQL. 12630 func evalFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* mptest.c:512:13: */ 12631 bp := tls.Alloc(24) 12632 defer tls.Free(24) 12633 12634 var db uintptr = sqlite3.Xsqlite3_context_db_handle(tls, context) 12635 var zSql uintptr = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv))) 12636 // var res String at bp, 16 12637 12638 *(*uintptr)(unsafe.Pointer(bp + 16 /* zErrMsg */)) = uintptr(0) 12639 var rc int32 12640 _ = argc 12641 libc.X__builtin___memset_chk(tls, bp /* &res */, 0, uint64(unsafe.Sizeof(String{})), libc.X__builtin_object_size(tls, bp /* &res */, 0)) 12642 rc = sqlite3.Xsqlite3_exec(tls, db, zSql, *(*uintptr)(unsafe.Pointer(&struct { 12643 f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32 12644 }{evalCallback})), bp /* &res */, bp+16 /* &zErrMsg */) 12645 if *(*uintptr)(unsafe.Pointer(bp + 16 /* zErrMsg */)) != 0 { 12646 sqlite3.Xsqlite3_result_error(tls, context, *(*uintptr)(unsafe.Pointer(bp + 16 /* zErrMsg */)), -1) 12647 sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* zErrMsg */))) 12648 } else if rc != 0 { 12649 sqlite3.Xsqlite3_result_error_code(tls, context, rc) 12650 } else { 12651 sqlite3.Xsqlite3_result_text(tls, context, (*String)(unsafe.Pointer(bp /* &res */)).z, -1, libc.UintptrFromInt32(-1)) 12652 } 12653 stringFree(tls, bp /* &res */) 12654 } 12655 12656 // Look up the next task for client iClient in the database. 12657 // Return the task script and the task number and mark that 12658 // task as being under way. 12659 func startScript(tls *libc.TLS, iClient int32, pzScript uintptr, pTaskId uintptr, pzTaskName uintptr) int32 { /* mptest.c:541:12: */ 12660 bp := tls.Alloc(80) 12661 defer tls.Free(80) 12662 12663 var pStmt uintptr = uintptr(0) 12664 var taskId int32 12665 var rc int32 12666 var totalTime int32 = 0 12667 12668 *(*uintptr)(unsafe.Pointer(pzScript)) = uintptr(0) 12669 g.iTimeout = 0 12670 for 1 != 0 { 12671 rc = trySql(tls, ts+161 /* "BEGIN IMMEDIATE" */, 0) 12672 if rc == SQLITE_BUSY { 12673 sqlite3.Xsqlite3_sleep(tls, 10) 12674 totalTime = totalTime + (10) 12675 continue 12676 } 12677 if rc != SQLITE_OK { 12678 fatalError(tls, ts+177 /* "in startScript: ..." */, libc.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, g.db))) 12679 } 12680 if (g.nError != 0) || (g.nTest != 0) { 12681 runSql(tls, ts+196, /* "UPDATE counters ..." */ 12682 libc.VaList(bp+8, g.nError, g.nTest)) 12683 g.nError = 0 12684 g.nTest = 0 12685 } 12686 pStmt = prepareSql(tls, ts+249 /* "SELECT 1 FROM cl..." */, libc.VaList(bp+24, iClient)) 12687 rc = sqlite3.Xsqlite3_step(tls, pStmt) 12688 sqlite3.Xsqlite3_finalize(tls, pStmt) 12689 if rc == SQLITE_ROW { 12690 runSql(tls, ts+295 /* "DELETE FROM clie..." */, libc.VaList(bp+32, iClient)) 12691 g.iTimeout = DEFAULT_TIMEOUT 12692 runSql(tls, ts+326 /* "COMMIT TRANSACTI..." */, 0) 12693 return SQLITE_DONE 12694 } 12695 pStmt = prepareSql(tls, 12696 12697 ts+346 /* "SELECT script, i..." */, libc.VaList(bp+40, iClient)) 12698 rc = sqlite3.Xsqlite3_step(tls, pStmt) 12699 if rc == SQLITE_ROW { 12700 var n int32 = sqlite3.Xsqlite3_column_bytes(tls, pStmt, 0) 12701 *(*uintptr)(unsafe.Pointer(pzScript)) = sqlite3.Xsqlite3_malloc(tls, (n + 1)) 12702 libc.X__builtin___strcpy_chk(tls, *(*uintptr)(unsafe.Pointer(pzScript)), sqlite3.Xsqlite3_column_text(tls, pStmt, 0), libc.X__builtin_object_size(tls, *(*uintptr)(unsafe.Pointer(pzScript)), func() int32 { 12703 if X_USE_FORTIFY_LEVEL > 1 { 12704 return 1 12705 } 12706 return 0 12707 }())) 12708 *(*int32)(unsafe.Pointer(pTaskId)) = libc.AssignInt32(&taskId, sqlite3.Xsqlite3_column_int(tls, pStmt, 1)) 12709 *(*uintptr)(unsafe.Pointer(pzTaskName)) = sqlite3.Xsqlite3_mprintf(tls, ts+438 /* "%s" */, libc.VaList(bp+48, sqlite3.Xsqlite3_column_text(tls, pStmt, 2))) 12710 sqlite3.Xsqlite3_finalize(tls, pStmt) 12711 runSql(tls, 12712 12713 ts+441 /* "UPDATE task SE..." */, libc.VaList(bp+56, taskId)) 12714 g.iTimeout = DEFAULT_TIMEOUT 12715 runSql(tls, ts+326 /* "COMMIT TRANSACTI..." */, 0) 12716 return SQLITE_OK 12717 } 12718 sqlite3.Xsqlite3_finalize(tls, pStmt) 12719 if rc == SQLITE_DONE { 12720 if totalTime > 30000 { 12721 errorMessage(tls, ts+524 /* "Waited over 30 s..." */, 0) 12722 runSql(tls, ts+573 /* "DELETE FROM clie..." */, libc.VaList(bp+64, iClient)) 12723 sqlite3.Xsqlite3_close(tls, g.db) 12724 libc.Xexit(tls, 1) 12725 } 12726 for trySql(tls, ts+613 /* "COMMIT" */, 0) == SQLITE_BUSY { 12727 sqlite3.Xsqlite3_sleep(tls, 10) 12728 totalTime = totalTime + (10) 12729 } 12730 sqlite3.Xsqlite3_sleep(tls, 100) 12731 totalTime = totalTime + (100) 12732 continue 12733 } 12734 fatalError(tls, ts+438 /* "%s" */, libc.VaList(bp+72, sqlite3.Xsqlite3_errmsg(tls, g.db))) 12735 } 12736 g.iTimeout = DEFAULT_TIMEOUT 12737 return int32(0) 12738 } 12739 12740 // Mark a script as having finished. Remove the CLIENT table entry 12741 // if bShutdown is true. 12742 func finishScript(tls *libc.TLS, iClient int32, taskId int32, bShutdown int32) int32 { /* mptest.c:623:12: */ 12743 bp := tls.Alloc(16) 12744 defer tls.Free(16) 12745 12746 runSql(tls, 12747 12748 ts+620 /* "UPDATE task SE..." */, libc.VaList(bp, taskId)) 12749 if bShutdown != 0 { 12750 runSql(tls, ts+295 /* "DELETE FROM clie..." */, libc.VaList(bp+8, iClient)) 12751 } 12752 return SQLITE_OK 12753 } 12754 12755 // Start up a client process for iClient, if it is not already 12756 // running. If the client is already running, then this routine 12757 // is a no-op. 12758 func startClient(tls *libc.TLS, iClient int32) { /* mptest.c:638:13: */ 12759 bp := tls.Alloc(96) 12760 defer tls.Free(96) 12761 12762 runSql(tls, ts+701 /* "INSERT OR IGNORE..." */, libc.VaList(bp, iClient)) 12763 if sqlite3.Xsqlite3_changes(tls, g.db) != 0 { 12764 var zSys uintptr 12765 var rc int32 12766 zSys = sqlite3.Xsqlite3_mprintf(tls, ts+743, /* "%s \"%s\" --client..." */ 12767 libc.VaList(bp+8, g.argv0, g.zDbFile, iClient, g.iTrace)) 12768 if g.bSqlTrace != 0 { 12769 zSys = sqlite3.Xsqlite3_mprintf(tls, ts+774 /* "%z --sqltrace" */, libc.VaList(bp+40, zSys)) 12770 } 12771 if g.bSync != 0 { 12772 zSys = sqlite3.Xsqlite3_mprintf(tls, ts+788 /* "%z --sync" */, libc.VaList(bp+48, zSys)) 12773 } 12774 if g.zVfs != 0 { 12775 zSys = sqlite3.Xsqlite3_mprintf(tls, ts+798 /* "%z --vfs \"%s\"" */, libc.VaList(bp+56, zSys, g.zVfs)) 12776 } 12777 if g.iTrace >= 2 { 12778 logMessage(tls, ts+812 /* "system('%q')" */, libc.VaList(bp+72, zSys)) 12779 } 12780 zSys = sqlite3.Xsqlite3_mprintf(tls, ts+825 /* "%z &" */, libc.VaList(bp+80, zSys)) 12781 rc = libc.Xsystem(tls, zSys) 12782 if rc != 0 { 12783 errorMessage(tls, ts+830 /* "system() fails w..." */, libc.VaList(bp+88, rc)) 12784 } 12785 sqlite3.Xsqlite3_free(tls, zSys) 12786 } 12787 } 12788 12789 // Read the entire content of a file into memory 12790 func readFile(tls *libc.TLS, zFilename uintptr) uintptr { /* mptest.c:684:13: */ 12791 bp := tls.Alloc(8) 12792 defer tls.Free(8) 12793 12794 var in uintptr = libc.Xfopen(tls, zFilename, ts+864 /* "rb" */) 12795 var sz int64 12796 var z uintptr 12797 if in == uintptr(0) { 12798 fatalError(tls, ts+867 /* "cannot open \"%s\"..." */, libc.VaList(bp, zFilename)) 12799 } 12800 libc.Xfseek(tls, in, int64(0), SEEK_END) 12801 sz = libc.Xftell(tls, in) 12802 libc.Xrewind(tls, in) 12803 z = sqlite3.Xsqlite3_malloc(tls, (int32(sz + int64(1)))) 12804 sz = int64(libc.Xfread(tls, z, uint64(1), uint64(sz), in)) 12805 *(*int8)(unsafe.Pointer(z + uintptr(sz))) = int8(0) 12806 libc.Xfclose(tls, in) 12807 return z 12808 } 12809 12810 // Return the length of the next token. 12811 func tokenLength(tls *libc.TLS, z uintptr, pnLine uintptr) int32 { /* mptest.c:704:12: */ 12812 var n int32 = 0 12813 if (libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(z))))) != 0) || ((int32(*(*int8)(unsafe.Pointer(z))) == '/') && (int32(*(*int8)(unsafe.Pointer(z + 1))) == '*')) { 12814 var inC int32 = 0 12815 var c int32 12816 if int32(*(*int8)(unsafe.Pointer(z))) == '/' { 12817 inC = 1 12818 n = 2 12819 } 12820 for (libc.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&n, 1))))))) != 0 { 12821 if c == '\n' { 12822 (*(*int32)(unsafe.Pointer(pnLine)))++ 12823 } 12824 if libc.Xisspace(tls, int32(uint8(c))) != 0 { 12825 continue 12826 } 12827 if ((inC != 0) && (c == '*')) && (int32(*(*int8)(unsafe.Pointer(z + uintptr(n)))) == '/') { 12828 n++ 12829 inC = 0 12830 } else if (!(inC != 0) && (c == '/')) && (int32(*(*int8)(unsafe.Pointer(z + uintptr(n)))) == '*') { 12831 n++ 12832 inC = 1 12833 } else if !(inC != 0) { 12834 break 12835 } 12836 } 12837 n-- 12838 } else if (int32(*(*int8)(unsafe.Pointer(z))) == '-') && (int32(*(*int8)(unsafe.Pointer(z + 1))) == '-') { 12839 for n = 2; (*(*int8)(unsafe.Pointer(z + uintptr(n))) != 0) && (int32(*(*int8)(unsafe.Pointer(z + uintptr(n)))) != '\n'); n++ { 12840 } 12841 if *(*int8)(unsafe.Pointer(z + uintptr(n))) != 0 { 12842 (*(*int32)(unsafe.Pointer(pnLine)))++ 12843 n++ 12844 } 12845 } else if (int32(*(*int8)(unsafe.Pointer(z))) == '"') || (int32(*(*int8)(unsafe.Pointer(z))) == '\'') { 12846 var delim int32 = int32(*(*int8)(unsafe.Pointer(z))) 12847 for n = 1; *(*int8)(unsafe.Pointer(z + uintptr(n))) != 0; n++ { 12848 if int32(*(*int8)(unsafe.Pointer(z + uintptr(n)))) == '\n' { 12849 (*(*int32)(unsafe.Pointer(pnLine)))++ 12850 } 12851 if int32(*(*int8)(unsafe.Pointer(z + uintptr(n)))) == delim { 12852 n++ 12853 if int32(*(*int8)(unsafe.Pointer(z + uintptr((n + 1))))) != delim { 12854 break 12855 } 12856 } 12857 } 12858 } else { 12859 var c int32 12860 for n = 1; (((((libc.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(z + uintptr(n)))))) != 0) && !(libc.Xisspace(tls, int32(uint8(c))) != 0)) && (c != '"')) && (c != '\'')) && (c != ';'); n++ { 12861 } 12862 } 12863 return n 12864 } 12865 12866 // Copy a single token into a string buffer. 12867 func extractToken(tls *libc.TLS, zIn uintptr, nIn int32, zOut uintptr, nOut int32) int32 { /* mptest.c:749:12: */ 12868 var i int32 12869 if nIn <= 0 { 12870 *(*int8)(unsafe.Pointer(zOut)) = int8(0) 12871 return 0 12872 } 12873 for i = 0; ((i < nIn) && (i < (nOut - 1))) && !(libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(zIn + uintptr(i)))))) != 0); i++ { 12874 *(*int8)(unsafe.Pointer(zOut + uintptr(i))) = *(*int8)(unsafe.Pointer(zIn + uintptr(i))) 12875 } 12876 *(*int8)(unsafe.Pointer(zOut + uintptr(i))) = int8(0) 12877 return i 12878 } 12879 12880 // Find the number of characters up to the start of the next "--end" token. 12881 func findEnd(tls *libc.TLS, z uintptr, pnLine uintptr) int32 { /* mptest.c:763:12: */ 12882 var n int32 = 0 12883 for (*(*int8)(unsafe.Pointer(z + uintptr(n))) != 0) && ((libc.Xstrncmp(tls, (z+uintptr(n)), ts+896 /* "--end" */, uint64(5)) != 0) || !(libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n + 5))))))) != 0)) { 12884 n = n + (tokenLength(tls, (z + uintptr(n)), pnLine)) 12885 } 12886 return n 12887 } 12888 12889 // Find the number of characters up to the first character past the 12890 // of the next "--endif" or "--else" token. Nested --if commands are 12891 // also skipped. 12892 func findEndif(tls *libc.TLS, z uintptr, stopAtElse int32, pnLine uintptr) int32 { /* mptest.c:776:12: */ 12893 var n int32 = 0 12894 for *(*int8)(unsafe.Pointer(z + uintptr(n))) != 0 { 12895 var len int32 = tokenLength(tls, (z + uintptr(n)), pnLine) 12896 if ((libc.Xstrncmp(tls, (z+uintptr(n)), ts+902 /* "--endif" */, uint64(7)) == 0) && (libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n + 7))))))) != 0)) || 12897 (((stopAtElse != 0) && (libc.Xstrncmp(tls, (z+uintptr(n)), ts+910 /* "--else" */, uint64(6)) == 0)) && (libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n + 6))))))) != 0)) { 12898 return (n + len) 12899 } 12900 if (libc.Xstrncmp(tls, (z+uintptr(n)), ts+917 /* "--if" */, uint64(4)) == 0) && (libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr((n + 4))))))) != 0) { 12901 var skip int32 = findEndif(tls, ((z + uintptr(n)) + uintptr(len)), 0, pnLine) 12902 n = n + (skip + len) 12903 } else { 12904 n = n + (len) 12905 } 12906 } 12907 return n 12908 } 12909 12910 // Wait for a client process to complete all its tasks 12911 func waitForClient(tls *libc.TLS, iClient int32, iTimeout int32, zErrPrefix uintptr) { /* mptest.c:798:13: */ 12912 bp := tls.Alloc(32) 12913 defer tls.Free(32) 12914 12915 var pStmt uintptr 12916 var rc int32 12917 if iClient > 0 { 12918 pStmt = prepareSql(tls, 12919 12920 ts+922, /* "SELECT 1 FROM ta..." */ 12921 libc.VaList(bp, iClient)) 12922 } else { 12923 pStmt = prepareSql(tls, 12924 12925 ts+1018 /* "SELECT 1 FROM ta..." */, 0) 12926 } 12927 g.iTimeout = 0 12928 for (((libc.AssignInt32(&rc, sqlite3.Xsqlite3_step(tls, pStmt))) == SQLITE_BUSY) || (rc == SQLITE_ROW)) && 12929 (iTimeout > 0) { 12930 sqlite3.Xsqlite3_reset(tls, pStmt) 12931 sqlite3.Xsqlite3_sleep(tls, 50) 12932 iTimeout = iTimeout - (50) 12933 } 12934 sqlite3.Xsqlite3_finalize(tls, pStmt) 12935 g.iTimeout = DEFAULT_TIMEOUT 12936 if rc != SQLITE_DONE { 12937 if zErrPrefix == uintptr(0) { 12938 zErrPrefix = ts + 1099 /* "" */ 12939 } 12940 if iClient > 0 { 12941 errorMessage(tls, ts+1100 /* "%stimeout waitin..." */, libc.VaList(bp+8, zErrPrefix, iClient)) 12942 } else { 12943 errorMessage(tls, ts+1132 /* "%stimeout waitin..." */, libc.VaList(bp+24, zErrPrefix)) 12944 } 12945 } 12946 } 12947 12948 // Return a pointer to the tail of a filename 12949 func filenameTail(tls *libc.TLS, z uintptr) uintptr { /* mptest.c:836:13: */ 12950 var i int32 12951 var j int32 12952 for i = libc.AssignInt32(&j, 0); *(*int8)(unsafe.Pointer(z + uintptr(i))) != 0; i++ { 12953 if (int32(*(*int8)(unsafe.Pointer(z + uintptr(i))))) == '/' { 12954 j = (i + 1) 12955 } 12956 } 12957 return (z + uintptr(j)) 12958 } 12959 12960 // Interpret zArg as a boolean value. Return either 0 or 1. 12961 func booleanValue(tls *libc.TLS, zArg uintptr) int32 { /* mptest.c:845:12: */ 12962 bp := tls.Alloc(8) 12963 defer tls.Free(8) 12964 12965 var i int32 12966 if zArg == uintptr(0) { 12967 return 0 12968 } 12969 for i = 0; (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(i)))) >= '0') && (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(i)))) <= '9'); i++ { 12970 } 12971 if (i > 0) && (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(i)))) == 0) { 12972 return libc.Xatoi(tls, zArg) 12973 } 12974 if (sqlite3.Xsqlite3_stricmp(tls, zArg, ts+1166 /* "on" */) == 0) || (sqlite3.Xsqlite3_stricmp(tls, zArg, ts+1169 /* "yes" */) == 0) { 12975 return 1 12976 } 12977 if (sqlite3.Xsqlite3_stricmp(tls, zArg, ts+1173 /* "off" */) == 0) || (sqlite3.Xsqlite3_stricmp(tls, zArg, ts+1177 /* "no" */) == 0) { 12978 return 0 12979 } 12980 errorMessage(tls, ts+1180 /* "unknown boolean:..." */, libc.VaList(bp, zArg)) 12981 return 0 12982 } 12983 12984 // This routine exists as a convenient place to set a debugger 12985 // breakpoint. 12986 func test_breakpoint(tls *libc.TLS) { /* mptest.c:864:13: */ 12987 atomic.AddInt32(&cnt, 1) 12988 } 12989 12990 var cnt int32 = 0 /* mptest.c:864:56 */ 12991 12992 // Maximum number of arguments to a --command 12993 12994 // Run a script. 12995 func runScript(tls *libc.TLS, iClient int32, taskId int32, zScript uintptr, zFilename uintptr) { /* mptest.c:872:13: */ 12996 bp := tls.Alloc(1610) 12997 defer tls.Free(1610) 12998 12999 *(*int32)(unsafe.Pointer(bp + 376 /* lineno */)) = 1 13000 var prevLine int32 = 1 13001 var ii int32 = 0 13002 var iBegin int32 = 0 13003 var n int32 13004 var c int32 13005 var j int32 13006 var len int32 13007 var nArg int32 13008 // var sResult String at bp+360, 16 13009 13010 // var zCmd [30]int8 at bp+380, 30 13011 13012 // var zError [1000]int8 at bp+610, 1000 13013 13014 // var azArg [2][100]int8 at bp+410, 200 13015 13016 libc.X__builtin___memset_chk(tls, bp+360 /* &sResult */, 0, uint64(unsafe.Sizeof(String{})), libc.X__builtin_object_size(tls, bp+360 /* &sResult */, 0)) 13017 stringReset(tls, bp+360 /* &sResult */) 13018 for (libc.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(zScript + uintptr(ii)))))) != 0 { 13019 prevLine = *(*int32)(unsafe.Pointer(bp + 376 /* lineno */)) 13020 len = tokenLength(tls, (zScript + uintptr(ii)), bp+376 /* &lineno */) 13021 if (libc.Xisspace(tls, int32(uint8(c))) != 0) || ((c == '/') && (int32(*(*int8)(unsafe.Pointer(zScript + uintptr((ii + 1))))) == '*')) { 13022 ii = ii + (len) 13023 continue 13024 } 13025 if ((c != '-') || (int32(*(*int8)(unsafe.Pointer(zScript + uintptr((ii + 1))))) != '-')) || !(libc.Xisalpha(tls, int32(*(*int8)(unsafe.Pointer(zScript + uintptr((ii + 2)))))) != 0) { 13026 ii = ii + (len) 13027 continue 13028 } 13029 13030 // Run any prior SQL before processing the new --command 13031 if ii > iBegin { 13032 var zSql uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+1202 /* "%.*s" */, libc.VaList(bp, (ii-iBegin), (zScript+uintptr(iBegin)))) 13033 evalSql(tls, bp+360 /* &sResult */, zSql, 0) 13034 sqlite3.Xsqlite3_free(tls, zSql) 13035 iBegin = (ii + len) 13036 } 13037 13038 // Parse the --command 13039 if g.iTrace >= 2 { 13040 logMessage(tls, ts+1202 /* "%.*s" */, libc.VaList(bp+16, len, (zScript+uintptr(ii)))) 13041 } 13042 n = extractToken(tls, ((zScript + uintptr(ii)) + uintptr(2)), (len - 2), bp+380 /* &zCmd[0] */, int32(unsafe.Sizeof([30]int8{}))) 13043 for nArg = 0; (n < (len - 2)) && (nArg < MX_ARG); nArg++ { 13044 for (n < (len - 2)) && (libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(zScript + uintptr(((ii + 2) + n))))))) != 0) { 13045 n++ 13046 } 13047 if n >= (len - 2) { 13048 break 13049 } 13050 n = n + (extractToken(tls, (((zScript + uintptr(ii)) + uintptr(2)) + uintptr(n)), ((len - 2) - n), 13051 (bp + 410 /* &azArg[0] */ + uintptr(nArg)*100), int32(unsafe.Sizeof([100]int8{})))) 13052 } 13053 for j = nArg; j < MX_ARG; j++ { 13054 *(*int8)(unsafe.Pointer((bp + 410 /* &azArg[0] */ + uintptr(libc.PostIncInt32(&j, 1))*100))) = int8(0) 13055 } 13056 13057 // --sleep N 13058 // 13059 // Pause for N milliseconds 13060 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1207 /* "sleep" */) == 0 { 13061 sqlite3.Xsqlite3_sleep(tls, libc.Xatoi(tls, (bp+410 /* &azArg[0] */))) 13062 } else 13063 13064 // --exit N 13065 // 13066 // Exit this process. If N>0 then exit without shutting down 13067 // SQLite. (In other words, simulate a crash.) 13068 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1213 /* "exit" */) == 0 { 13069 var rc int32 = libc.Xatoi(tls, (bp + 410 /* &azArg[0] */)) 13070 finishScript(tls, iClient, taskId, 1) 13071 if rc == 0 { 13072 sqlite3.Xsqlite3_close(tls, g.db) 13073 } 13074 libc.Xexit(tls, rc) 13075 } else 13076 13077 // --testcase NAME 13078 // 13079 // Begin a new test case. Announce in the log that the test case 13080 // has begun. 13081 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1218 /* "testcase" */) == 0 { 13082 if g.iTrace == 1 { 13083 logMessage(tls, ts+1202 /* "%.*s" */, libc.VaList(bp+32, (len-1), (zScript+uintptr(ii)))) 13084 } 13085 stringReset(tls, bp+360 /* &sResult */) 13086 } else 13087 13088 // --finish 13089 // 13090 // Mark the current task as having finished, even if it is not. 13091 // This can be used in conjunction with --exit to simulate a crash. 13092 if (libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1227 /* "finish" */) == 0) && (iClient > 0) { 13093 finishScript(tls, iClient, taskId, 1) 13094 } else 13095 13096 // --reset 13097 // 13098 // Reset accumulated results back to an empty string 13099 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1234 /* "reset" */) == 0 { 13100 stringReset(tls, bp+360 /* &sResult */) 13101 } else 13102 13103 // --match ANSWER... 13104 // 13105 // Check to see if output matches ANSWER. Report an error if not. 13106 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1240 /* "match" */) == 0 { 13107 var jj int32 13108 var zAns uintptr = (zScript + uintptr(ii)) 13109 for jj = 7; (jj < (len - 1)) && (libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(zAns + uintptr(jj)))))) != 0); jj++ { 13110 } 13111 zAns += uintptr(jj) 13112 if (((len - jj) - 1) != (*String)(unsafe.Pointer(bp+360 /* &sResult */)).n) || (libc.Xstrncmp(tls, (*String)(unsafe.Pointer(bp+360 /* &sResult */)).z, zAns, (uint64((len-jj)-1))) != 0) { 13113 errorMessage(tls, ts+1246, /* "line %d of %s:\nE..." */ 13114 libc.VaList(bp+48, prevLine, zFilename, ((len-jj)-1), zAns, (*String)(unsafe.Pointer(bp+360 /* &sResult */)).z)) 13115 } 13116 g.nTest++ 13117 stringReset(tls, bp+360 /* &sResult */) 13118 } else 13119 13120 // --glob ANSWER... 13121 // --notglob ANSWER.... 13122 // 13123 // Check to see if output does or does not match the glob pattern 13124 // ANSWER. 13125 if (libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1291 /* "glob" */) == 0) || (libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1296 /* "notglob" */) == 0) { 13126 var jj int32 13127 var zAns uintptr = (zScript + uintptr(ii)) 13128 var zCopy uintptr 13129 var isGlob int32 = (libc.Bool32(int32(*(*int8)(unsafe.Pointer(bp + 380 /* &zCmd[0] */))) == 'g')) 13130 for jj = (9 - (3 * isGlob)); (jj < (len - 1)) && (libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(zAns + uintptr(jj)))))) != 0); jj++ { 13131 } 13132 zAns += uintptr(jj) 13133 zCopy = sqlite3.Xsqlite3_mprintf(tls, ts+1202 /* "%.*s" */, libc.VaList(bp+88, ((len-jj)-1), zAns)) 13134 if ((libc.Bool32(sqlite3.Xsqlite3_strglob(tls, zCopy, (*String)(unsafe.Pointer(bp+360 /* &sResult */)).z) == 0)) ^ isGlob) != 0 { 13135 errorMessage(tls, ts+1304, /* "line %d of %s:\nE..." */ 13136 libc.VaList(bp+104, prevLine, zFilename, zCopy, (*String)(unsafe.Pointer(bp+360 /* &sResult */)).z)) 13137 } 13138 sqlite3.Xsqlite3_free(tls, zCopy) 13139 g.nTest++ 13140 stringReset(tls, bp+360 /* &sResult */) 13141 } else 13142 13143 // --output 13144 // 13145 // Output the result of the previous SQL. 13146 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1347 /* "output" */) == 0 { 13147 logMessage(tls, ts+438 /* "%s" */, libc.VaList(bp+136, (*String)(unsafe.Pointer(bp+360 /* &sResult */)).z)) 13148 } else 13149 13150 // --source FILENAME 13151 // 13152 // Run a subscript from a separate file. 13153 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1354 /* "source" */) == 0 { 13154 var zNewFile uintptr 13155 var zNewScript uintptr 13156 var zToDel uintptr = uintptr(0) 13157 zNewFile = (bp + 410 /* &azArg[0] */) 13158 if !((int32(*(*int8)(unsafe.Pointer(zNewFile)))) == '/') { 13159 var k int32 13160 for k = (int32(libc.Xstrlen(tls, zFilename)) - 1); (k >= 0) && !((int32(*(*int8)(unsafe.Pointer(zFilename + uintptr(k))))) == '/'); k-- { 13161 } 13162 if k > 0 { 13163 zNewFile = libc.AssignUintptr(&zToDel, sqlite3.Xsqlite3_mprintf(tls, ts+1361 /* "%.*s/%s" */, libc.VaList(bp+144, k, zFilename, zNewFile))) 13164 } 13165 } 13166 zNewScript = readFile(tls, zNewFile) 13167 if g.iTrace != 0 { 13168 logMessage(tls, ts+1369 /* "begin script [%s..." */, libc.VaList(bp+168, zNewFile)) 13169 } 13170 runScript(tls, 0, 0, zNewScript, zNewFile) 13171 sqlite3.Xsqlite3_free(tls, zNewScript) 13172 if g.iTrace != 0 { 13173 logMessage(tls, ts+1388 /* "end script [%s]\n" */, libc.VaList(bp+176, zNewFile)) 13174 } 13175 sqlite3.Xsqlite3_free(tls, zToDel) 13176 } else 13177 13178 // --print MESSAGE.... 13179 // 13180 // Output the remainder of the line to the log file 13181 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1405 /* "print" */) == 0 { 13182 var jj int32 13183 for jj = 7; (jj < len) && (libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(zScript + uintptr((ii + jj))))))) != 0); jj++ { 13184 } 13185 logMessage(tls, ts+1202 /* "%.*s" */, libc.VaList(bp+184, (len-jj), ((zScript+uintptr(ii))+uintptr(jj)))) 13186 } else 13187 13188 // --if EXPR 13189 // 13190 // Skip forward to the next matching --endif or --else if EXPR is false. 13191 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1411 /* "if" */) == 0 { 13192 var jj int32 13193 var rc int32 13194 var pStmt uintptr 13195 for jj = 4; (jj < len) && (libc.Xisspace(tls, int32(uint8(*(*int8)(unsafe.Pointer(zScript + uintptr((ii + jj))))))) != 0); jj++ { 13196 } 13197 pStmt = prepareSql(tls, ts+1414 /* "SELECT %.*s" */, libc.VaList(bp+200, (len-jj), ((zScript+uintptr(ii))+uintptr(jj)))) 13198 rc = sqlite3.Xsqlite3_step(tls, pStmt) 13199 if (rc != SQLITE_ROW) || (sqlite3.Xsqlite3_column_int(tls, pStmt, 0) == 0) { 13200 ii = ii + (findEndif(tls, ((zScript + uintptr(ii)) + uintptr(len)), 1, bp+376 /* &lineno */)) 13201 } 13202 sqlite3.Xsqlite3_finalize(tls, pStmt) 13203 } else 13204 13205 // --else 13206 // 13207 // This command can only be encountered if currently inside an --if that 13208 // is true. Skip forward to the next matching --endif. 13209 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1426 /* "else" */) == 0 { 13210 ii = ii + (findEndif(tls, ((zScript + uintptr(ii)) + uintptr(len)), 0, bp+376 /* &lineno */)) 13211 } else 13212 13213 // --endif 13214 // 13215 // This command can only be encountered if currently inside an --if that 13216 // is true or an --else of a false if. This is a no-op. 13217 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1431 /* "endif" */) == 0 { 13218 // no-op 13219 } else 13220 13221 // --start CLIENT 13222 // 13223 // Start up the given client. 13224 if (libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1437 /* "start" */) == 0) && (iClient == 0) { 13225 var iNewClient int32 = libc.Xatoi(tls, (bp + 410 /* &azArg[0] */)) 13226 if iNewClient > 0 { 13227 startClient(tls, iNewClient) 13228 } 13229 } else 13230 13231 // --wait CLIENT TIMEOUT 13232 // 13233 // Wait until all tasks complete for the given client. If CLIENT is 13234 // "all" then wait for all clients to complete. Wait no longer than 13235 // TIMEOUT milliseconds (default 10,000) 13236 if (libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1443 /* "wait" */) == 0) && (iClient == 0) { 13237 var iTimeout int32 13238 if nArg >= 2 { 13239 iTimeout = libc.Xatoi(tls, (bp + 410 /* &azArg[0] */ + 1*100)) 13240 } else { 13241 iTimeout = 10000 13242 } 13243 sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([1000]int8{})), bp+610 /* &zError[0] */, ts+1448, /* "line %d of %s\n" */ 13244 libc.VaList(bp+216, prevLine, zFilename)) 13245 waitForClient(tls, libc.Xatoi(tls, (bp+410 /* &azArg[0] */)), iTimeout, bp+610 /* &zError[0] */) 13246 } else 13247 13248 // --task CLIENT 13249 // <task-content-here> 13250 // --end 13251 // 13252 // Assign work to a client. Start the client if it is not running 13253 // already. 13254 if (libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1463 /* "task" */) == 0) && (iClient == 0) { 13255 var iTarget int32 = libc.Xatoi(tls, (bp + 410 /* &azArg[0] */)) 13256 var iEnd int32 13257 var zTask uintptr 13258 var zTName uintptr 13259 iEnd = findEnd(tls, ((zScript + uintptr(ii)) + uintptr(len)), bp+376 /* &lineno */) 13260 if iTarget < 0 { 13261 errorMessage(tls, ts+1468, /* "line %d of %s: b..." */ 13262 libc.VaList(bp+232, prevLine, zFilename, iTarget)) 13263 } else { 13264 zTask = sqlite3.Xsqlite3_mprintf(tls, ts+1202 /* "%.*s" */, libc.VaList(bp+256, iEnd, ((zScript+uintptr(ii))+uintptr(len)))) 13265 if nArg > 1 { 13266 zTName = sqlite3.Xsqlite3_mprintf(tls, ts+438 /* "%s" */, libc.VaList(bp+272, (bp+410 /* &azArg[0] */ +1*100))) 13267 } else { 13268 zTName = sqlite3.Xsqlite3_mprintf(tls, ts+1505 /* "%s:%d" */, libc.VaList(bp+280, filenameTail(tls, zFilename), prevLine)) 13269 } 13270 startClient(tls, iTarget) 13271 runSql(tls, 13272 ts+1511 /* "INSERT INTO task..." */, libc.VaList(bp+296, iTarget, zTask, zTName)) 13273 sqlite3.Xsqlite3_free(tls, zTask) 13274 sqlite3.Xsqlite3_free(tls, zTName) 13275 } 13276 iEnd = iEnd + (tokenLength(tls, (((zScript + uintptr(ii)) + uintptr(len)) + uintptr(iEnd)), bp+376 /* &lineno */)) 13277 len = len + (iEnd) 13278 iBegin = (ii + len) 13279 } else 13280 13281 // --breakpoint 13282 // 13283 // This command calls "test_breakpoint()" which is a routine provided 13284 // as a convenient place to set a debugger breakpoint. 13285 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1567 /* "breakpoint" */) == 0 { 13286 test_breakpoint(tls) 13287 } else 13288 13289 // --show-sql-errors BOOLEAN 13290 // 13291 // Turn display of SQL errors on and off. 13292 if libc.Xstrcmp(tls, bp+380 /* &zCmd[0] */, ts+1578 /* "show-sql-errors" */) == 0 { 13293 g.bIgnoreSqlErrors = func() int32 { 13294 if nArg >= 1 { 13295 return libc.BoolInt32(!(booleanValue(tls, (bp+410 /* &azArg[0] */)) != 0)) 13296 } 13297 return 1 13298 }() 13299 } else { 13300 errorMessage(tls, ts+1594, /* "line %d of %s: u..." */ 13301 libc.VaList(bp+320, prevLine, zFilename, bp+380 /* &zCmd[0] */)) 13302 } 13303 ii = ii + (len) 13304 } 13305 if iBegin < ii { 13306 var zSql uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+1202 /* "%.*s" */, libc.VaList(bp+344, (ii-iBegin), (zScript+uintptr(iBegin)))) 13307 runSql(tls, zSql, 0) 13308 sqlite3.Xsqlite3_free(tls, zSql) 13309 } 13310 stringFree(tls, bp+360 /* &sResult */) 13311 } 13312 13313 // Look for a command-line option. If present, return a pointer. 13314 // Return NULL if missing. 13315 // 13316 // hasArg==0 means the option is a flag. It is either present or not. 13317 // hasArg==1 means the option has an argument. Return a pointer to the 13318 // argument. 13319 func findOption(tls *libc.TLS, azArg uintptr, pnArg uintptr, zOption uintptr, hasArg int32) uintptr { /* mptest.c:1201:13: */ 13320 bp := tls.Alloc(8) 13321 defer tls.Free(8) 13322 13323 var i int32 13324 var j int32 13325 var zReturn uintptr = uintptr(0) 13326 var nArg int32 = *(*int32)(unsafe.Pointer(pnArg)) 13327 13328 for i = 0; i < nArg; i++ { 13329 var z uintptr 13330 if (i + hasArg) >= nArg { 13331 break 13332 } 13333 z = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)) 13334 if int32(*(*int8)(unsafe.Pointer(z))) != '-' { 13335 continue 13336 } 13337 z++ 13338 if int32(*(*int8)(unsafe.Pointer(z))) == '-' { 13339 if int32(*(*int8)(unsafe.Pointer(z + 1))) == 0 { 13340 break 13341 } 13342 z++ 13343 } 13344 if libc.Xstrcmp(tls, z, zOption) == 0 { 13345 if (hasArg != 0) && (i == (nArg - 1)) { 13346 fatalError(tls, ts+1630 /* "command-line opt..." */, libc.VaList(bp, z)) 13347 } 13348 if hasArg != 0 { 13349 zReturn = *(*uintptr)(unsafe.Pointer(azArg + uintptr((i+1))*8)) 13350 } else { 13351 zReturn = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)) 13352 } 13353 j = ((i + 1) + (libc.Bool32(hasArg != 0))) 13354 for j < nArg { 13355 *(*uintptr)(unsafe.Pointer(azArg + uintptr(libc.PostIncInt32(&i, 1))*8)) = *(*uintptr)(unsafe.Pointer(azArg + uintptr(libc.PostIncInt32(&j, 1))*8)) 13356 } 13357 *(*int32)(unsafe.Pointer(pnArg)) = i 13358 return zReturn 13359 } 13360 } 13361 return zReturn 13362 } 13363 13364 // Print a usage message for the program and exit 13365 func usage(tls *libc.TLS, argv0 uintptr) { /* mptest.c:1241:13: */ 13366 bp := tls.Alloc(8) 13367 defer tls.Free(8) 13368 13369 var i int32 13370 var zTail uintptr = argv0 13371 for i = 0; *(*int8)(unsafe.Pointer(argv0 + uintptr(i))) != 0; i++ { 13372 if (int32(*(*int8)(unsafe.Pointer(argv0 + uintptr(i))))) == '/' { 13373 zTail = ((argv0 + uintptr(i)) + uintptr(1)) 13374 } 13375 } 13376 libc.Xfprintf(tls, libc.X__stderrp, ts+1678 /* "Usage: %s DATABA..." */, libc.VaList(bp, zTail)) 13377 libc.Xfprintf(tls, libc.X__stderrp, 13378 13379 ts+1717 /* "Options:\n --er..." */, 0) 13380 libc.Xexit(tls, 1) 13381 } 13382 13383 // Report on unrecognized arguments 13384 func unrecognizedArguments(tls *libc.TLS, argv0 uintptr, nArg int32, azArg uintptr) { /* mptest.c:1265:13: */ 13385 bp := tls.Alloc(16) 13386 defer tls.Free(16) 13387 13388 var i int32 13389 libc.Xfprintf(tls, libc.X__stderrp, ts+2289 /* "%s: unrecognized..." */, libc.VaList(bp, argv0)) 13390 for i = 0; i < nArg; i++ { 13391 libc.Xfprintf(tls, libc.X__stderrp, ts+2317 /* " %s" */, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)))) 13392 } 13393 libc.Xfprintf(tls, libc.X__stderrp, ts+2321 /* "\n" */, 0) 13394 libc.Xexit(tls, 1) 13395 } 13396 13397 func main1(tls *libc.TLS, argc int32, argv uintptr) int32 { /* mptest.c:1279:18: */ 13398 bp := tls.Alloc(264) 13399 defer tls.Free(264) 13400 13401 var zClient uintptr 13402 var iClient int32 13403 // var n int32 at bp+232, 4 13404 13405 var i int32 13406 var openFlags int32 = SQLITE_OPEN_READWRITE 13407 var rc int32 13408 // var zScript uintptr at bp+240, 8 13409 13410 // var taskId int32 at bp+248, 4 13411 13412 var zTrace uintptr 13413 var zCOption uintptr 13414 var zJMode uintptr 13415 var zNRep uintptr 13416 var nRep int32 = 1 13417 var iRep int32 13418 var iTmout int32 = 0 // Default: no timeout 13419 var zTmout uintptr 13420 13421 g.argv0 = *(*uintptr)(unsafe.Pointer(argv)) 13422 g.iTrace = 1 13423 if argc < 2 { 13424 usage(tls, *(*uintptr)(unsafe.Pointer(argv))) 13425 } 13426 g.zDbFile = *(*uintptr)(unsafe.Pointer(argv + 1*8)) 13427 if strglob(tls, ts+2323 /* "*.test" */, g.zDbFile) != 0 { 13428 usage(tls, *(*uintptr)(unsafe.Pointer(argv))) 13429 } 13430 if libc.Xstrcmp(tls, sqlite3.Xsqlite3_sourceid(tls), ts+2330 /* "2021-06-18 18:36..." */) != 0 { 13431 libc.Xfprintf(tls, libc.X__stderrp, 13432 13433 ts+2415, /* "SQLite library a..." */ 13434 libc.VaList(bp, sqlite3.Xsqlite3_sourceid(tls), ts+2330 /* "2021-06-18 18:36..." */)) 13435 libc.Xexit(tls, 1) 13436 } 13437 *(*int32)(unsafe.Pointer(bp + 232 /* n */)) = (argc - 2) 13438 sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([32]int8{})), uintptr(unsafe.Pointer(&g))+64 /* &.zName */, ts+2475 /* "%05d.mptest" */, libc.VaList(bp+16, libc.Xgetpid(tls))) 13439 zJMode = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2487 /* "journalmode" */, 1) 13440 zNRep = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2499 /* "repeat" */, 1) 13441 if zNRep != 0 { 13442 nRep = libc.Xatoi(tls, zNRep) 13443 } 13444 if nRep < 1 { 13445 nRep = 1 13446 } 13447 g.zVfs = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2506 /* "vfs" */, 1) 13448 zClient = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2510 /* "client" */, 1) 13449 g.zErrLog = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2517 /* "errlog" */, 1) 13450 g.zLog = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2524 /* "log" */, 1) 13451 zTrace = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2528 /* "trace" */, 1) 13452 if zTrace != 0 { 13453 g.iTrace = libc.Xatoi(tls, zTrace) 13454 } 13455 if findOption(tls, (argv+uintptr(2)*8), bp+232 /* &n */, ts+2534 /* "quiet" */, 0) != uintptr(0) { 13456 g.iTrace = 0 13457 } 13458 zTmout = findOption(tls, (argv + uintptr(2)*8), bp+232 /* &n */, ts+2540 /* "timeout" */, 1) 13459 if zTmout != 0 { 13460 iTmout = libc.Xatoi(tls, zTmout) 13461 } 13462 g.bSqlTrace = (libc.Bool32(findOption(tls, (argv+uintptr(2)*8), bp+232 /* &n */, ts+2548 /* "sqltrace" */, 0) != uintptr(0))) 13463 g.bSync = (libc.Bool32(findOption(tls, (argv+uintptr(2)*8), bp+232 /* &n */, ts+2557 /* "sync" */, 0) != uintptr(0))) 13464 if g.zErrLog != 0 { 13465 g.pErrLog = libc.Xfopen(tls, g.zErrLog, ts+2562 /* "a" */) 13466 } else { 13467 g.pErrLog = libc.X__stderrp 13468 } 13469 if g.zLog != 0 { 13470 g.pLog = libc.Xfopen(tls, g.zLog, ts+2562 /* "a" */) 13471 } else { 13472 g.pLog = libc.X__stdoutp 13473 } 13474 13475 sqlite3.Xsqlite3_config(tls, SQLITE_CONFIG_LOG, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(&struct { 13476 f func(*libc.TLS, uintptr, int32, uintptr) 13477 }{sqlErrorCallback})), 0)) 13478 if zClient != 0 { 13479 iClient = libc.Xatoi(tls, zClient) 13480 if iClient < 1 { 13481 fatalError(tls, ts+2564 /* "illegal client n..." */, libc.VaList(bp+40, iClient)) 13482 } 13483 sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([32]int8{})), uintptr(unsafe.Pointer(&g))+64 /* &.zName */, ts+2591, /* "%05d.client%02d" */ 13484 libc.VaList(bp+48, libc.Xgetpid(tls), iClient)) 13485 } else { 13486 var nTry int32 = 0 13487 if g.iTrace > 0 { 13488 libc.Xprintf(tls, ts+2607 /* "BEGIN: %s" */, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer(argv)))) 13489 for i = 1; i < argc; i++ { 13490 libc.Xprintf(tls, ts+2317 /* " %s" */, libc.VaList(bp+72, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))) 13491 } 13492 libc.Xprintf(tls, ts+2321 /* "\n" */, 0) 13493 libc.Xprintf(tls, ts+2617 /* "With SQLite 3.36..." */, 0) 13494 for i = 0; (libc.AssignUintptr(&zCOption, sqlite3.Xsqlite3_compileoption_get(tls, i))) != uintptr(0); i++ { 13495 libc.Xprintf(tls, ts+2722 /* "-DSQLITE_%s\n" */, libc.VaList(bp+80, zCOption)) 13496 } 13497 libc.Xfflush(tls, libc.X__stdoutp) 13498 } 13499 iClient = 0 13500 for ok := true; ok; ok = (((rc != 0) && ((libc.PreIncInt32(&nTry, 1)) < 60)) && (sqlite3.Xsqlite3_sleep(tls, 1000) > 0)) { 13501 if (nTry % 5) == 4 { 13502 libc.Xprintf(tls, ts+2735, /* "... %strying to ..." */ 13503 libc.VaList(bp+88, func() uintptr { 13504 if nTry > 5 { 13505 return ts + 2764 /* "still " */ 13506 } 13507 return ts + 1099 /* "" */ 13508 }(), g.zDbFile)) 13509 } 13510 rc = libc.Xunlink(tls, g.zDbFile) 13511 if (rc != 0) && ((*(*int32)(unsafe.Pointer(libc.X__error(tls)))) == ENOENT) { 13512 rc = 0 13513 } 13514 } 13515 if rc != 0 { 13516 fatalError(tls, ts+2771, /* "unable to unlink..." */ 13517 libc.VaList(bp+104, g.zDbFile, nTry)) 13518 } 13519 openFlags = openFlags | (SQLITE_OPEN_CREATE) 13520 } 13521 rc = sqlite3.Xsqlite3_open_v2(tls, g.zDbFile, (uintptr(unsafe.Pointer(&g)) + 24 /* &.db */), openFlags, g.zVfs) 13522 if rc != 0 { 13523 fatalError(tls, ts+2812 /* "cannot open [%s]" */, libc.VaList(bp+120, g.zDbFile)) 13524 } 13525 if iTmout > 0 { 13526 sqlite3.Xsqlite3_busy_timeout(tls, g.db, iTmout) 13527 } 13528 13529 if zJMode != 0 { 13530 runSql(tls, ts+2829 /* "PRAGMA journal_m..." */, libc.VaList(bp+128, zJMode)) 13531 } 13532 if !(g.bSync != 0) { 13533 trySql(tls, ts+2853 /* "PRAGMA synchrono..." */, 0) 13534 } 13535 sqlite3.Xsqlite3_enable_load_extension(tls, g.db, 1) 13536 sqlite3.Xsqlite3_busy_handler(tls, g.db, *(*uintptr)(unsafe.Pointer(&struct { 13537 f func(*libc.TLS, uintptr, int32) int32 13538 }{busyHandler})), uintptr(0)) 13539 sqlite3.Xsqlite3_create_function(tls, g.db, ts+2876 /* "vfsname" */, 0, SQLITE_UTF8, uintptr(0), 13540 *(*uintptr)(unsafe.Pointer(&struct { 13541 f func(*libc.TLS, uintptr, int32, uintptr) 13542 }{vfsNameFunc})), uintptr(0), uintptr(0)) 13543 sqlite3.Xsqlite3_create_function(tls, g.db, ts+2884 /* "eval" */, 1, SQLITE_UTF8, uintptr(0), 13544 *(*uintptr)(unsafe.Pointer(&struct { 13545 f func(*libc.TLS, uintptr, int32, uintptr) 13546 }{evalFunc})), uintptr(0), uintptr(0)) 13547 g.iTimeout = DEFAULT_TIMEOUT 13548 if g.bSqlTrace != 0 { 13549 sqlite3.Xsqlite3_trace(tls, g.db, *(*uintptr)(unsafe.Pointer(&struct { 13550 f func(*libc.TLS, uintptr, uintptr) 13551 }{sqlTraceCallback})), uintptr(0)) 13552 } 13553 if iClient > 0 { 13554 if *(*int32)(unsafe.Pointer(bp + 232 /* n */)) > 0 { 13555 unrecognizedArguments(tls, *(*uintptr)(unsafe.Pointer(argv)), *(*int32)(unsafe.Pointer(bp + 232 /* n */)), (argv + uintptr(2)*8)) 13556 } 13557 if g.iTrace != 0 { 13558 logMessage(tls, ts+2889 /* "start-client" */, 0) 13559 } 13560 for 1 != 0 { 13561 *(*uintptr)(unsafe.Pointer(bp + 256 /* zTaskName */)) = uintptr(0) 13562 rc = startScript(tls, iClient, bp+240 /* &zScript */, bp+248 /* &taskId */, bp+256 /* &zTaskName */) 13563 if rc == SQLITE_DONE { 13564 break 13565 } 13566 if g.iTrace != 0 { 13567 logMessage(tls, ts+2902 /* "begin %s (%d)" */, libc.VaList(bp+136, *(*uintptr)(unsafe.Pointer(bp + 256 /* zTaskName */)), *(*int32)(unsafe.Pointer(bp + 248 /* taskId */)))) 13568 } 13569 runScript(tls, iClient, *(*int32)(unsafe.Pointer(bp + 248 /* taskId */)), *(*uintptr)(unsafe.Pointer(bp + 240 /* zScript */)), *(*uintptr)(unsafe.Pointer(bp + 256 /* zTaskName */))) 13570 if g.iTrace != 0 { 13571 logMessage(tls, ts+2916 /* "end %s (%d)" */, libc.VaList(bp+152, *(*uintptr)(unsafe.Pointer(bp + 256 /* zTaskName */)), *(*int32)(unsafe.Pointer(bp + 248 /* taskId */)))) 13572 } 13573 finishScript(tls, iClient, *(*int32)(unsafe.Pointer(bp + 248 /* taskId */)), 0) 13574 sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 256 /* zTaskName */))) 13575 sqlite3.Xsqlite3_sleep(tls, 10) 13576 } 13577 if g.iTrace != 0 { 13578 logMessage(tls, ts+2928 /* "end-client" */, 0) 13579 } 13580 } else { 13581 var pStmt uintptr 13582 var iTimeout int32 13583 if *(*int32)(unsafe.Pointer(bp + 232 /* n */)) == 0 { 13584 fatalError(tls, ts+2939 /* "missing script f..." */, 0) 13585 } 13586 if *(*int32)(unsafe.Pointer(bp + 232 /* n */)) > 1 { 13587 unrecognizedArguments(tls, *(*uintptr)(unsafe.Pointer(argv)), *(*int32)(unsafe.Pointer(bp + 232 /* n */)), (argv + uintptr(2)*8)) 13588 } 13589 runSql(tls, 13590 13591 ts+2963 /* "DROP TABLE IF EX..." */, 0) 13592 *(*uintptr)(unsafe.Pointer(bp + 240 /* zScript */)) = readFile(tls, *(*uintptr)(unsafe.Pointer(argv + 2*8))) 13593 for iRep = 1; iRep <= nRep; iRep++ { 13594 if g.iTrace != 0 { 13595 logMessage(tls, ts+3399 /* "begin script [%s..." */, libc.VaList(bp+168, *(*uintptr)(unsafe.Pointer(argv + 2*8)), iRep)) 13596 } 13597 runScript(tls, 0, 0, *(*uintptr)(unsafe.Pointer(bp + 240 /* zScript */)), *(*uintptr)(unsafe.Pointer(argv + 2*8))) 13598 if g.iTrace != 0 { 13599 logMessage(tls, ts+3427 /* "end script [%s] ..." */, libc.VaList(bp+184, *(*uintptr)(unsafe.Pointer(argv + 2*8)), iRep)) 13600 } 13601 } 13602 sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 240 /* zScript */))) 13603 waitForClient(tls, 0, 2000, ts+3453 /* "during shutdown...." */) 13604 trySql(tls, ts+3473 /* "UPDATE client SE..." */, 0) 13605 sqlite3.Xsqlite3_sleep(tls, 10) 13606 g.iTimeout = 0 13607 iTimeout = 1000 13608 for (((libc.AssignInt32(&rc, trySql(tls, ts+3502 /* "SELECT 1 FROM cl..." */, 0))) == SQLITE_BUSY) || 13609 (rc == SQLITE_ROW)) && (iTimeout > 0) { 13610 sqlite3.Xsqlite3_sleep(tls, 10) 13611 iTimeout = iTimeout - (10) 13612 } 13613 sqlite3.Xsqlite3_sleep(tls, 100) 13614 pStmt = prepareSql(tls, ts+3523 /* "SELECT nError, n..." */, 0) 13615 iTimeout = 1000 13616 for ((libc.AssignInt32(&rc, sqlite3.Xsqlite3_step(tls, pStmt))) == SQLITE_BUSY) && (iTimeout > 0) { 13617 sqlite3.Xsqlite3_sleep(tls, 10) 13618 iTimeout = iTimeout - (10) 13619 } 13620 if rc == SQLITE_ROW { 13621 *(*int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&g)) + 112 /* &.nError */)) += (sqlite3.Xsqlite3_column_int(tls, pStmt, 0)) 13622 *(*int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&g)) + 116 /* &.nTest */)) += (sqlite3.Xsqlite3_column_int(tls, pStmt, 1)) 13623 } 13624 sqlite3.Xsqlite3_finalize(tls, pStmt) 13625 } 13626 sqlite3.Xsqlite3_close(tls, g.db) 13627 maybeClose(tls, g.pLog) 13628 maybeClose(tls, g.pErrLog) 13629 if iClient == 0 { 13630 libc.Xprintf(tls, ts+3558 /* "Summary: %d erro..." */, libc.VaList(bp+200, g.nError, g.nTest)) 13631 libc.Xprintf(tls, ts+3594 /* "END: %s" */, libc.VaList(bp+216, *(*uintptr)(unsafe.Pointer(argv)))) 13632 for i = 1; i < argc; i++ { 13633 libc.Xprintf(tls, ts+2317 /* " %s" */, libc.VaList(bp+224, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))) 13634 } 13635 libc.Xprintf(tls, ts+2321 /* "\n" */, 0) 13636 } 13637 return (libc.Bool32(g.nError > 0)) 13638 } 13639 13640 var ts1 = "%s%.*s\n\x00%s:ERROR: \x00%s:FATAL: \x00UPDATE client SET wantHalt=1;\x00%s: \x00main\x00timeout after %dms\x00[%.*s]\x00(info) %s\x00(errcode=%d) %s\x00%s\n%s\n\x00out of memory\x00 \x00nil\x00'\x00error(%d)\x00BEGIN IMMEDIATE\x00in startScript: %s\x00UPDATE counters SET nError=nError+%d, nTest=nTest+%d\x00SELECT 1 FROM client WHERE id=%d AND wantHalt\x00DELETE FROM client WHERE id=%d\x00COMMIT TRANSACTION;\x00SELECT script, id, name FROM task WHERE client=%d AND starttime IS NULL ORDER BY id LIMIT 1\x00%s\x00UPDATE task SET starttime=strftime('%%Y-%%m-%%d %%H:%%M:%%f','now') WHERE id=%d;\x00Waited over 30 seconds with no work. Giving up.\x00DELETE FROM client WHERE id=%d; COMMIT;\x00COMMIT\x00UPDATE task SET endtime=strftime('%%Y-%%m-%%d %%H:%%M:%%f','now') WHERE id=%d;\x00INSERT OR IGNORE INTO client VALUES(%d,0)\x00%s \"%s\" --client %d --trace %d\x00%z --sqltrace\x00%z --sync\x00%z --vfs \"%s\"\x00system('%q')\x00%z &\x00system() fails with error code %d\x00rb\x00cannot open \"%s\" for reading\x00--end\x00--endif\x00--else\x00--if\x00SELECT 1 FROM task WHERE client=%d AND client IN (SELECT id FROM client) AND endtime IS NULL\x00SELECT 1 FROM task WHERE client IN (SELECT id FROM client) AND endtime IS NULL\x00\x00%stimeout waiting for client %d\x00%stimeout waiting for all clients\x00on\x00yes\x00off\x00no\x00unknown boolean: [%s]\x00%.*s\x00sleep\x00exit\x00testcase\x00finish\x00reset\x00match\x00line %d of %s:\nExpected [%.*s]\n Got [%s]\x00glob\x00notglob\x00line %d of %s:\nExpected [%s]\n Got [%s]\x00output\x00source\x00%.*s/%s\x00begin script [%s]\n\x00end script [%s]\n\x00print\x00if\x00SELECT %.*s\x00else\x00endif\x00start\x00wait\x00line %d of %s\n\x00task\x00line %d of %s: bad client number: %d\x00%s:%d\x00INSERT INTO task(client,script,name) VALUES(%d,'%q',%Q)\x00breakpoint\x00show-sql-errors\x00line %d of %s: unknown command --%s\x00command-line option \"--%s\" requires an argument\x00Usage: %s DATABASE ?OPTIONS? ?SCRIPT?\n\x00Options:\n --errlog FILENAME Write errors to FILENAME\n --journalmode MODE Use MODE as the journal_mode\n --log FILENAME Log messages to FILENAME\n --quiet Suppress unnecessary output\n --vfs NAME Use NAME as the VFS\n --repeat N Repeat the test N times\n --sqltrace Enable SQL tracing\n --sync Enable synchronous disk writes\n --timeout MILLISEC Busy timeout is MILLISEC\n --trace BOOLEAN Enable or disable tracing\n\x00%s: unrecognized arguments:\x00 %s\x00\n\x00*.test\x002021-06-18 18:36:39 5c9a6c06871cb9fe42814af9c039eb6da5427a6ec28f187af7ebfb62eafa66e5\x00SQLite library and header mismatch\nLibrary: %s\nHeader: %s\n\x00%05d.mptest\x00journalmode\x00repeat\x00vfs\x00client\x00errlog\x00log\x00trace\x00quiet\x00timeout\x00sqltrace\x00sync\x00a\x00illegal client number: %d\n\x00%05d.client%02d\x00BEGIN: %s\x00With SQLite 3.36.0 2021-06-18 18:36:39 5c9a6c06871cb9fe42814af9c039eb6da5427a6ec28f187af7ebfb62eafa66e5\n\x00-DSQLITE_%s\n\x00... %strying to unlink '%s'\n\x00still \x00unable to unlink '%s' after %d attempts\n\x00cannot open [%s]\x00PRAGMA journal_mode=%Q;\x00PRAGMA synchronous=OFF\x00vfsname\x00eval\x00start-client\x00begin %s (%d)\x00end %s (%d)\x00end-client\x00missing script filename\x00DROP TABLE IF EXISTS task;\nDROP TABLE IF EXISTS counters;\nDROP TABLE IF EXISTS client;\nCREATE TABLE task(\n id INTEGER PRIMARY KEY,\n name TEXT,\n client INTEGER,\n starttime DATE,\n endtime DATE,\n script TEXT\n);CREATE INDEX task_i1 ON task(client, starttime);\nCREATE INDEX task_i2 ON task(client, endtime);\nCREATE TABLE counters(nError,nTest);\nINSERT INTO counters VALUES(0,0);\nCREATE TABLE client(id INTEGER PRIMARY KEY, wantHalt);\n\x00begin script [%s] cycle %d\n\x00end script [%s] cycle %d\n\x00during shutdown...\n\x00UPDATE client SET wantHalt=1\x00SELECT 1 FROM client\x00SELECT nError, nTest FROM counters\x00Summary: %d errors out of %d tests\n\x00END: %s\x00" 13641 var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data