├── .gitattributes ├── .github └── workflows │ ├── build-single.yml │ └── build.yml ├── .gitignore ├── .gn ├── BUILD.gclient.gn ├── BUILD.gn ├── LICENSE ├── README.md ├── V8_REVISION ├── build.zig ├── cross-macos └── sysroot │ └── macos-12 │ └── usr │ └── include │ ├── libkern │ ├── OSAtomic.h │ ├── OSAtomicDeprecated.h │ ├── OSAtomicQueue.h │ ├── OSByteOrder.h │ ├── OSCacheControl.h │ ├── OSDebug.h │ ├── OSKextLib.h │ ├── OSReturn.h │ ├── OSSpinLockDeprecated.h │ ├── OSThermalNotification.h │ ├── OSTypes.h │ ├── _OSByteOrder.h │ ├── arm │ │ └── OSByteOrder.h │ ├── i386 │ │ ├── OSByteOrder.h │ │ └── _OSByteOrder.h │ └── machine │ │ └── OSByteOrder.h │ ├── mach-o │ ├── arch.h │ ├── arm │ │ └── reloc.h │ ├── arm64 │ │ └── reloc.h │ ├── compact_unwind_encoding.h │ ├── compact_unwind_encoding.modulemap │ ├── dyld.h │ ├── dyld.modulemap │ ├── dyld_images.h │ ├── fat.h │ ├── fixup-chains.h │ ├── getsect.h │ ├── i386 │ │ └── swap.h │ ├── ldsyms.h │ ├── loader.h │ ├── module.modulemap │ ├── nlist.h │ ├── ranlib.h │ ├── reloc.h │ ├── stab.h │ ├── swap.h │ └── x86_64 │ │ └── reloc.h │ ├── os │ ├── _workgroup.h │ ├── activity.h │ ├── atomic.h │ ├── availability.h │ ├── base.h │ ├── clock.h │ ├── lock.h │ ├── log.h │ ├── object.h │ ├── overflow.h │ ├── proc.h │ ├── signpost.h │ ├── trace.h │ ├── trace_base.h │ ├── workgroup.h │ ├── workgroup_base.h │ ├── workgroup_interval.h │ ├── workgroup_object.h │ └── workgroup_parallel.h │ └── sys │ ├── _endian.h │ ├── _posix_availability.h │ ├── _pthread │ ├── _pthread_attr_t.h │ ├── _pthread_cond_t.h │ ├── _pthread_condattr_t.h │ ├── _pthread_key_t.h │ ├── _pthread_mutex_t.h │ ├── _pthread_mutexattr_t.h │ ├── _pthread_once_t.h │ ├── _pthread_rwlock_t.h │ ├── _pthread_rwlockattr_t.h │ ├── _pthread_t.h │ └── _pthread_types.h │ ├── _select.h │ ├── _structs.h │ ├── _symbol_aliasing.h │ ├── _types.h │ ├── _types │ ├── _blkcnt_t.h │ ├── _blksize_t.h │ ├── _caddr_t.h │ ├── _clock_t.h │ ├── _ct_rune_t.h │ ├── _dev_t.h │ ├── _errno_t.h │ ├── _fd_clr.h │ ├── _fd_copy.h │ ├── _fd_def.h │ ├── _fd_isset.h │ ├── _fd_set.h │ ├── _fd_setsize.h │ ├── _fd_zero.h │ ├── _filesec_t.h │ ├── _fsblkcnt_t.h │ ├── _fsfilcnt_t.h │ ├── _fsid_t.h │ ├── _fsobj_id_t.h │ ├── _gid_t.h │ ├── _guid_t.h │ ├── _id_t.h │ ├── _in_addr_t.h │ ├── _in_port_t.h │ ├── _ino64_t.h │ ├── _ino_t.h │ ├── _int16_t.h │ ├── _int32_t.h │ ├── _int64_t.h │ ├── _int8_t.h │ ├── _intptr_t.h │ ├── _iovec_t.h │ ├── _key_t.h │ ├── _mach_port_t.h │ ├── _mbstate_t.h │ ├── _mode_t.h │ ├── _nlink_t.h │ ├── _null.h │ ├── _o_dsync.h │ ├── _o_sync.h │ ├── _off_t.h │ ├── _offsetof.h │ ├── _os_inline.h │ ├── _pid_t.h │ ├── _posix_vdisable.h │ ├── _ptrdiff_t.h │ ├── _rsize_t.h │ ├── _rune_t.h │ ├── _s_ifmt.h │ ├── _sa_family_t.h │ ├── _seek_set.h │ ├── _sigaltstack.h │ ├── _sigset_t.h │ ├── _size_t.h │ ├── _socklen_t.h │ ├── _ssize_t.h │ ├── _suseconds_t.h │ ├── _time_t.h │ ├── _timespec.h │ ├── _timeval.h │ ├── _timeval32.h │ ├── _timeval64.h │ ├── _u_char.h │ ├── _u_int.h │ ├── _u_int16_t.h │ ├── _u_int32_t.h │ ├── _u_int64_t.h │ ├── _u_int8_t.h │ ├── _u_short.h │ ├── _ucontext.h │ ├── _ucontext64.h │ ├── _uid_t.h │ ├── _uintptr_t.h │ ├── _useconds_t.h │ ├── _uuid_t.h │ ├── _va_list.h │ ├── _wchar_t.h │ └── _wint_t.h │ ├── acct.h │ ├── acl.h │ ├── aio.h │ ├── appleapiopts.h │ ├── attr.h │ ├── buf.h │ ├── cdefs.h │ ├── clonefile.h │ ├── commpage.h │ ├── conf.h │ ├── dir.h │ ├── dirent.h │ ├── disk.h │ ├── dkstat.h │ ├── domain.h │ ├── dtrace.h │ ├── dtrace_glue.h │ ├── dtrace_impl.h │ ├── errno.h │ ├── ev.h │ ├── event.h │ ├── fasttrap.h │ ├── fasttrap_isa.h │ ├── fcntl.h │ ├── file.h │ ├── filedesc.h │ ├── filio.h │ ├── fsgetpath.h │ ├── gmon.h │ ├── ioccom.h │ ├── ioctl.h │ ├── ioctl_compat.h │ ├── ipc.h │ ├── kauth.h │ ├── kdebug.h │ ├── kdebug_signpost.h │ ├── kern_control.h │ ├── kern_event.h │ ├── kernel.h │ ├── kernel_types.h │ ├── lctx.h │ ├── loadable_fs.h │ ├── lock.h │ ├── lockf.h │ ├── lockstat.h │ ├── log_data.h │ ├── malloc.h │ ├── mbuf.h │ ├── mman.h │ ├── mount.h │ ├── msg.h │ ├── msgbuf.h │ ├── netport.h │ ├── param.h │ ├── paths.h │ ├── pipe.h │ ├── poll.h │ ├── posix_sem.h │ ├── posix_shm.h │ ├── proc.h │ ├── proc_info.h │ ├── protosw.h │ ├── ptrace.h │ ├── qos.h │ ├── queue.h │ ├── quota.h │ ├── random.h │ ├── rbtree.h │ ├── reboot.h │ ├── resource.h │ ├── resourcevar.h │ ├── sbuf.h │ ├── sdt.h │ ├── select.h │ ├── sem.h │ ├── semaphore.h │ ├── shm.h │ ├── signal.h │ ├── signalvar.h │ ├── snapshot.h │ ├── socket.h │ ├── socketvar.h │ ├── sockio.h │ ├── spawn.h │ ├── stat.h │ ├── statvfs.h │ ├── stdio.h │ ├── sys_domain.h │ ├── syscall.h │ ├── sysctl.h │ ├── syslimits.h │ ├── syslog.h │ ├── termios.h │ ├── time.h │ ├── timeb.h │ ├── times.h │ ├── timex.h │ ├── tprintf.h │ ├── trace.h │ ├── tty.h │ ├── ttychars.h │ ├── ttycom.h │ ├── ttydefaults.h │ ├── ttydev.h │ ├── types.h │ ├── ubc.h │ ├── ucontext.h │ ├── ucred.h │ ├── uio.h │ ├── un.h │ ├── unistd.h │ ├── unpcb.h │ ├── user.h │ ├── utfconv.h │ ├── utsname.h │ ├── vadvise.h │ ├── vcmd.h │ ├── vm.h │ ├── vmmeter.h │ ├── vmparam.h │ ├── vnioctl.h │ ├── vnode.h │ ├── vnode_if.h │ ├── vsock.h │ ├── vstat.h │ ├── wait.h │ └── xattr.h ├── cross-windows ├── TraceLoggingProvider.h ├── VersionHelpers.h ├── Windows.h └── src │ └── base │ └── win32-headers.h ├── parse_deps.py ├── patches ├── v8.patch └── v8_build.patch └── src ├── binding.cpp ├── binding.h ├── shell.zig ├── test.zig └── v8.zig /.gitattributes: -------------------------------------------------------------------------------- 1 | *.zig text eol=lf 2 | *.md text eol=lf 3 | *.patch text eol=lf 4 | V8_REVISION text eol=lf 5 | 6 | cross-macos/** linguist-vendored 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /zig-cache/ 2 | /tools/ninja_gn_binaries* 3 | /v8-build/ 4 | /gclient/ 5 | /v8/ 6 | /zig-out/ 7 | /vendor 8 | /libc_v8.a 9 | /tools/ 10 | -------------------------------------------------------------------------------- /.gn: -------------------------------------------------------------------------------- 1 | # This file is used by the GN meta build system to find the root of the source 2 | # tree and to set startup options. For documentation on the values set in this 3 | # file, run "gn help dotfile" at the command line. 4 | 5 | # Use the default python3 so gn succeeds. Not sure why deno requires python2 atm. 6 | script_executable = "python3" 7 | 8 | # The location of the build configuration file. 9 | buildconfig = "//build/config/BUILDCONFIG.gn" 10 | 11 | # These are the targets to check headers for by default. The files in targets 12 | # matching these patterns (see "gn help label_pattern" for format) will have 13 | # their includes checked for proper dependencies when you run either 14 | # "gn check" or "gn gen --check". 15 | check_targets = [] 16 | 17 | # The secondary source root is a parallel directory tree where 18 | # GN build files are placed when they can not be placed directly 19 | # in the source tree, e.g. for third party source trees. 20 | #secondary_source = "//gclient/v8" 21 | 22 | default_args = { 23 | linux_use_bundled_binutils = false 24 | use_sysroot = false 25 | 26 | use_dummy_lastchange = true 27 | treat_warnings_as_errors = true 28 | v8_enable_shared_ro_heap = false 29 | v8_imminent_deprecation_warnings = false 30 | clang_use_chrome_plugins = false 31 | v8_monolithic = false 32 | v8_use_external_startup_data = false 33 | 34 | v8_use_snapshot = true 35 | is_component_build = false 36 | win_crt_flavor_agnostic = true 37 | } 38 | -------------------------------------------------------------------------------- /BUILD.gclient.gn: -------------------------------------------------------------------------------- 1 | # Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. 2 | # Based on https://github.com/denoland/rusty_v8/blob/main/BUILD.gn 3 | import("//build/config/host_byteorder.gni") 4 | 5 | static_library("c_v8") { 6 | complete_static_lib = true 7 | sources = [ "../../../src/binding.cpp" ] 8 | deps = [ 9 | "//build/config:shared_library_deps", 10 | "//:v8", 11 | "//:v8_libbase", 12 | "//:v8_libplatform", 13 | ] 14 | configs -= [ 15 | "//build/config/compiler:default_init_stack_vars", 16 | "//build/config/compiler:thin_archive", 17 | ] 18 | configs += [ ":c_v8_config" ] 19 | } 20 | 21 | config("c_v8_config") { 22 | configs = [ 23 | "//:external_config", 24 | "//:toolchain", 25 | "//:features", 26 | ] 27 | cflags = [] 28 | 29 | # We need these directories in the search path to be able to include some 30 | # internal V8 headers. 31 | include_dirs = [ 32 | "v8", 33 | "$target_gen_dir/v8", 34 | ] 35 | 36 | if (is_debug) { 37 | defines = [ "DEBUG" ] 38 | } 39 | 40 | if (is_clang) { 41 | cflags += [ 42 | "-fcolor-diagnostics", 43 | "-fansi-escape-codes", 44 | ] 45 | } 46 | 47 | if (is_debug && is_clang && !is_win) { 48 | cflags += [ "-glldb" ] 49 | } 50 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 fubark 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /V8_REVISION: -------------------------------------------------------------------------------- 1 | 11.1.134 2 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/libkern/OSAtomic.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004-2016 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. Please obtain a copy of the License at 10 | * http://www.opensource.apple.com/apsl/ and read it before using this 11 | * file. 12 | * 13 | * The Original Code and all software distributed under the License are 14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 | * Please see the License for the specific language governing rights and 19 | * limitations under the License. 20 | * 21 | * @APPLE_LICENSE_HEADER_END@ 22 | */ 23 | 24 | #ifndef _OSATOMIC_H_ 25 | #define _OSATOMIC_H_ 26 | 27 | /*! @header 28 | * These are deprecated legacy interfaces for atomic and synchronization 29 | * operations. 30 | * 31 | * Define OSATOMIC_USE_INLINED=1 to get inline implementations of the 32 | * OSAtomic interfaces in terms of the primitives. 33 | * 34 | * Define OSSPINLOCK_USE_INLINED=1 to get inline implementations of the 35 | * OSSpinLock interfaces in terms of the primitives. 36 | * 37 | * These are intended as a transition convenience, direct use of those 38 | * primitives should be preferred. 39 | */ 40 | 41 | #include 42 | 43 | #include "OSAtomicDeprecated.h" 44 | #include "OSSpinLockDeprecated.h" 45 | #include "OSAtomicQueue.h" 46 | 47 | #endif /* _OSATOMIC_H_ */ 48 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/libkern/OSCacheControl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. Please obtain a copy of the License at 10 | * http://www.opensource.apple.com/apsl/ and read it before using this 11 | * file. 12 | * 13 | * The Original Code and all software distributed under the License are 14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 | * Please see the License for the specific language governing rights and 19 | * limitations under the License. 20 | * 21 | * @APPLE_LICENSE_HEADER_END@ 22 | */ 23 | 24 | #ifndef _OS_CACHE_CONTROL_H_ 25 | #define _OS_CACHE_CONTROL_H_ 26 | 27 | #include 28 | #include 29 | #include 30 | #include 31 | 32 | __BEGIN_DECLS 33 | 34 | 35 | /* Functions performed by sys_cache_control(): */ 36 | 37 | /* Prepare memory for execution. This should be called 38 | * after writing machine instructions to memory, before 39 | * executing them. It syncs the dcache and icache. 40 | * On IA32 processors this function is a NOP, because 41 | * no synchronization is required. 42 | */ 43 | #define kCacheFunctionPrepareForExecution 1 44 | 45 | /* Flush data cache(s). This ensures that cached data 46 | * makes it all the way out to DRAM, and then removes 47 | * copies of the data from all processor caches. 48 | * It can be useful when dealing with cache incoherent 49 | * devices or DMA. 50 | */ 51 | #define kCacheFunctionFlushDcache 2 52 | 53 | 54 | /* perform one of the above cache functions: */ 55 | int sys_cache_control( int function, void *start, size_t len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); 56 | 57 | /* equivalent to sys_cache_control(kCacheFunctionPrepareForExecution): */ 58 | void sys_icache_invalidate( void *start, size_t len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); 59 | 60 | /* equivalent to sys_cache_control(kCacheFunctionFlushDcache): */ 61 | void sys_dcache_flush( void *start, size_t len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); 62 | 63 | 64 | __END_DECLS 65 | 66 | #endif /* _OS_CACHE_CONTROL_H_ */ 67 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/libkern/OSTypes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2012 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #include 30 | 31 | #ifndef _OS_OSTYPES_H 32 | #define _OS_OSTYPES_H 33 | 34 | #define OSTYPES_K64_REV 2 35 | 36 | typedef unsigned int UInt; 37 | typedef signed int SInt; 38 | 39 | 40 | #include 41 | 42 | #endif /* _OS_OSTYPES_H */ 43 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/mach-o/compact_unwind_encoding.modulemap: -------------------------------------------------------------------------------- 1 | module MachO.compact_unwind_encoding [system] [extern_c] { 2 | header "compact_unwind_encoding.h" 3 | export * 4 | } 5 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/mach-o/dyld.modulemap: -------------------------------------------------------------------------------- 1 | module MachO.dyld [system] [extern_c] { 2 | header "dyld.h" 3 | export * 4 | } 5 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/mach-o/module.modulemap: -------------------------------------------------------------------------------- 1 | module MachO [system] [extern_c] { 2 | 3 | extern module dyld "dyld.modulemap" 4 | 5 | extern module compact_unwind_encoding "compact_unwind_encoding.modulemap" 6 | 7 | export * 8 | 9 | module arch { 10 | header "arch.h" 11 | export * 12 | } 13 | 14 | module fat { 15 | header "fat.h" 16 | export * 17 | } 18 | 19 | module getsect { 20 | header "getsect.h" 21 | export * 22 | } 23 | 24 | module ldsyms { 25 | header "ldsyms.h" 26 | export * 27 | } 28 | 29 | module loader { 30 | header "loader.h" 31 | export * 32 | } 33 | 34 | module nlist { 35 | header "nlist.h" 36 | export * 37 | } 38 | 39 | module ranlib { 40 | header "ranlib.h" 41 | export * 42 | } 43 | 44 | module reloc { 45 | header "reloc.h" 46 | export * 47 | } 48 | 49 | module stab { 50 | header "stab.h" 51 | export * 52 | } 53 | 54 | module swap { 55 | header "swap.h" 56 | export * 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/os/_workgroup.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. Please obtain a copy of the License at 10 | * http://www.opensource.apple.com/apsl/ and read it before using this 11 | * file. 12 | * 13 | * The Original Code and all software distributed under the License are 14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 | * Please see the License for the specific language governing rights and 19 | * limitations under the License. 20 | * 21 | * @APPLE_LICENSE_HEADER_END@ 22 | */ 23 | 24 | #ifndef ___WORKGROUP_H__ 25 | #define ___WORKGROUP_H__ 26 | 27 | #if !defined(__has_feature) 28 | # define __has_feature(x) 0 29 | #endif 30 | #if (!__has_feature(modules)) 31 | #error "Do not include this header directly, please include instead" 32 | #endif 33 | 34 | #include 35 | 36 | #endif /* ___WORKGROUP_H__ */ 37 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/os/clock.h: -------------------------------------------------------------------------------- 1 | #ifndef __OS_CLOCK__ 2 | #define __OS_CLOCK__ 3 | 4 | #include 5 | #include 6 | 7 | /* 8 | * @typedef os_clockid_t 9 | * 10 | * @abstract 11 | * Describes the kind of clock that the workgroup timestamp parameters are 12 | * specified in 13 | */ 14 | OS_ENUM(os_clockid, uint32_t, 15 | OS_CLOCK_MACH_ABSOLUTE_TIME = 32, 16 | ); 17 | 18 | #endif /* __OS_CLOCK__ */ 19 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/os/workgroup.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_APACHE_LICENSE_HEADER_START@ 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | * 18 | * @APPLE_APACHE_LICENSE_HEADER_END@ 19 | */ 20 | 21 | #ifndef __OS_WORKGROUP__ 22 | #define __OS_WORKGROUP__ 23 | 24 | #ifndef __DISPATCH_BUILDING_DISPATCH__ 25 | #ifndef __OS_WORKGROUP_INDIRECT__ 26 | #define __OS_WORKGROUP_INDIRECT__ 27 | #endif /* __OS_WORKGROUP_INDIRECT__ */ 28 | 29 | #include 30 | #include 31 | #include 32 | #include 33 | 34 | #undef __OS_WORKGROUP_INDIRECT__ 35 | #endif /* __DISPATCH_BUILDING_DISPATCH__ */ 36 | 37 | #endif /* __OS_WORKGROUP__ */ 38 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/os/workgroup_base.h: -------------------------------------------------------------------------------- 1 | #ifndef __OS_WORKGROUP_BASE__ 2 | #define __OS_WORKGROUP_BASE__ 3 | 4 | #ifndef __OS_WORKGROUP_INDIRECT__ 5 | #error "Please #include instead of this file directly." 6 | #endif 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | #include 16 | 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | #if __has_feature(assume_nonnull) 23 | #define OS_WORKGROUP_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin") 24 | #define OS_WORKGROUP_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end") 25 | #else 26 | #define OS_WORKGROUP_ASSUME_NONNULL_BEGIN 27 | #define OS_WORKGROUP_ASSUME_NONNULL_END 28 | #endif 29 | #define OS_WORKGROUP_WARN_RESULT __attribute__((__warn_unused_result__)) 30 | #define OS_WORKGROUP_EXPORT OS_EXPORT 31 | #define OS_WORKGROUP_RETURNS_RETAINED OS_OBJECT_RETURNS_RETAINED 32 | 33 | #define OS_WORKGROUP_DECL(name, swift_name) \ 34 | OS_SWIFT_NAME(swift_name) \ 35 | OS_OBJECT_SHOW_CLASS(name, OS_OBJECT_CLASS(object)) 36 | 37 | #if OS_OBJECT_USE_OBJC 38 | #define OS_WORKGROUP_SUBCLASS_DECL_PROTO(name, swift_name, ...) \ 39 | OS_SWIFT_NAME(swift_name) \ 40 | OS_OBJECT_DECL_PROTOCOL(name ## __VA_ARGS__ ) 41 | #else 42 | #define OS_WORKGROUP_SUBCLASS_DECL_PROTO(name, swift_name, ...) 43 | #endif 44 | 45 | #define OS_WORKGROUP_SUBCLASS_DECL(name, super, swift_name, ...) \ 46 | OS_SWIFT_NAME(swift_name) \ 47 | OS_OBJECT_SHOW_SUBCLASS(name, super, name, ## __VA_ARGS__) 48 | 49 | #if defined(__LP64__) 50 | #define __OS_WORKGROUP_ATTR_SIZE__ 60 51 | #define __OS_WORKGROUP_INTERVAL_DATA_SIZE__ 56 52 | #define __OS_WORKGROUP_JOIN_TOKEN_SIZE__ 36 53 | #else 54 | #define __OS_WORKGROUP_ATTR_SIZE__ 60 55 | #define __OS_WORKGROUP_INTERVAL_DATA_SIZE__ 56 56 | #define __OS_WORKGROUP_JOIN_TOKEN_SIZE__ 28 57 | #endif 58 | 59 | #define _OS_WORKGROUP_ATTR_SIG_DEFAULT_INIT 0x2FA863B4 60 | #define _OS_WORKGROUP_ATTR_SIG_EMPTY_INIT 0x2FA863C4 61 | 62 | struct OS_REFINED_FOR_SWIFT os_workgroup_attr_opaque_s { 63 | uint32_t sig; 64 | char opaque[__OS_WORKGROUP_ATTR_SIZE__]; 65 | }; 66 | 67 | #define _OS_WORKGROUP_INTERVAL_DATA_SIG_INIT 0x52A74C4D 68 | struct OS_REFINED_FOR_SWIFT os_workgroup_interval_data_opaque_s { 69 | uint32_t sig; 70 | char opaque[__OS_WORKGROUP_INTERVAL_DATA_SIZE__]; 71 | }; 72 | 73 | struct OS_REFINED_FOR_SWIFT os_workgroup_join_token_opaque_s { 74 | uint32_t sig; 75 | char opaque[__OS_WORKGROUP_JOIN_TOKEN_SIZE__]; 76 | }; 77 | 78 | #endif /* __OS_WORKGROUP_BASE__ */ 79 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/os/workgroup_parallel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_APACHE_LICENSE_HEADER_START@ 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | * 18 | * @APPLE_APACHE_LICENSE_HEADER_END@ 19 | */ 20 | 21 | #ifndef __OS_WORKGROUP_PARALLEL__ 22 | #define __OS_WORKGROUP_PARALLEL__ 23 | 24 | #ifndef __OS_WORKGROUP_INDIRECT__ 25 | #error "Please #include instead of this file directly." 26 | #include // For header doc 27 | #endif 28 | 29 | #include 30 | 31 | __BEGIN_DECLS 32 | 33 | OS_WORKGROUP_ASSUME_NONNULL_BEGIN 34 | 35 | /*! 36 | * @typedef os_workgroup_parallel_t 37 | * 38 | * @abstract 39 | * A subclass of an os_workgroup_t for tracking parallel work. 40 | */ 41 | OS_WORKGROUP_SUBCLASS_DECL_PROTO(os_workgroup_parallel, Parallelizable); 42 | OS_WORKGROUP_SUBCLASS_DECL(os_workgroup_parallel, os_workgroup, WorkGroupParallel); 43 | 44 | /*! 45 | * @function os_workgroup_parallel_create 46 | * 47 | * @abstract 48 | * Creates an os_workgroup_t which tracks a parallel workload. 49 | * A newly created os_workgroup_interval_t has no initial member threads - 50 | * in particular the creating thread does not join the os_workgroup_parallel_t 51 | * implicitly. 52 | * 53 | * See also os_workgroup_max_parallel_threads(). 54 | * 55 | * @param name 56 | * A client specified string for labelling the workgroup. This parameter is 57 | * optional and can be NULL. 58 | * 59 | * @param attr 60 | * The requested set of workgroup attributes. NULL is to be specified for the 61 | * default set of attributes. 62 | */ 63 | API_AVAILABLE(macos(11.0), ios(14.0), tvos(14.0), watchos(7.0)) 64 | OS_WORKGROUP_EXPORT OS_WORKGROUP_RETURNS_RETAINED 65 | OS_SWIFT_NAME(WorkGroupParallel.init(__name:attr:)) 66 | os_workgroup_parallel_t _Nullable 67 | os_workgroup_parallel_create(const char * _Nullable name, 68 | os_workgroup_attr_t _Nullable attr); 69 | 70 | OS_WORKGROUP_ASSUME_NONNULL_END 71 | 72 | __END_DECLS 73 | 74 | #endif /* __OS_WORKGROUP_PARALLEL__ */ 75 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_pthread/_pthread_attr_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _PTHREAD_ATTR_T 29 | #define _PTHREAD_ATTR_T 30 | #include /* __darwin_pthread_attr_t */ 31 | typedef __darwin_pthread_attr_t pthread_attr_t; 32 | #endif /* _PTHREAD_ATTR_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_pthread/_pthread_cond_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _PTHREAD_COND_T 29 | #define _PTHREAD_COND_T 30 | #include /* __darwin_pthread_cond_t */ 31 | typedef __darwin_pthread_cond_t pthread_cond_t; 32 | #endif /* _PTHREAD_COND_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_pthread/_pthread_condattr_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _PTHREAD_CONDATTR_T 29 | #define _PTHREAD_CONDATTR_T 30 | #include /* __darwin_pthread_condattr_t */ 31 | typedef __darwin_pthread_condattr_t pthread_condattr_t; 32 | #endif /* _PTHREAD_CONDATTR_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_pthread/_pthread_key_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _PTHREAD_KEY_T 29 | #define _PTHREAD_KEY_T 30 | #include /* __darwin_pthread_key_t */ 31 | typedef __darwin_pthread_key_t pthread_key_t; 32 | #endif /* _PTHREAD_KEY_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_pthread/_pthread_mutex_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _PTHREAD_MUTEX_T 29 | #define _PTHREAD_MUTEX_T 30 | #include /* __darwin_pthread_mutex_t */ 31 | typedef __darwin_pthread_mutex_t pthread_mutex_t; 32 | #endif /*_PTHREAD_MUTEX_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_pthread/_pthread_mutexattr_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _PTHREAD_MUTEXATTR_T 29 | #define _PTHREAD_MUTEXATTR_T 30 | #include /* __darwin_pthread_mutexattr_t */ 31 | typedef __darwin_pthread_mutexattr_t pthread_mutexattr_t; 32 | #endif /* _PTHREAD_MUTEXATTR_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_pthread/_pthread_once_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _PTHREAD_ONCE_T 29 | #define _PTHREAD_ONCE_T 30 | #include /* __darwin_pthread_once_t */ 31 | typedef __darwin_pthread_once_t pthread_once_t; 32 | #endif /* _PTHREAD_ONCE_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_pthread/_pthread_rwlock_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _PTHREAD_RWLOCK_T 29 | #define _PTHREAD_RWLOCK_T 30 | #include /* __darwin_pthread_rwlock_t */ 31 | typedef __darwin_pthread_rwlock_t pthread_rwlock_t; 32 | #endif /* _PTHREAD_RWLOCK_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_pthread/_pthread_rwlockattr_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _PTHREAD_RWLOCKATTR_T 29 | #define _PTHREAD_RWLOCKATTR_T 30 | #include /* __darwin_pthread_rwlockattr_t */ 31 | typedef __darwin_pthread_rwlockattr_t pthread_rwlockattr_t; 32 | #endif /* _PTHREAD_RWLOCKATTR_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_pthread/_pthread_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _PTHREAD_T 29 | #define _PTHREAD_T 30 | #include /* __darwin_pthread_t */ 31 | typedef __darwin_pthread_t pthread_t; 32 | #endif /* _PTHREAD_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_select.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2005, 2007 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | /* 30 | * This is called from sys/select.h and sys/time.h for the common prototype 31 | * of select(). Setting _DARWIN_C_SOURCE or _DARWIN_UNLIMITED_SELECT uses 32 | * the version of select() that does not place a limit on the first argument 33 | * (nfds). In the UNIX conformance case, values of nfds greater than 34 | * FD_SETSIZE will return an error of EINVAL. 35 | */ 36 | #ifndef _SYS__SELECT_H_ 37 | #define _SYS__SELECT_H_ 38 | 39 | #include /* __DARWIN_EXTSN_C, __DARWIN_1050, __DARWIN_ALIAS_C */ 40 | #include /* fd_set */ 41 | #include /* struct timeval */ 42 | 43 | int select(int, fd_set * __restrict, fd_set * __restrict, 44 | fd_set * __restrict, struct timeval * __restrict) 45 | 46 | #if defined(_DARWIN_C_SOURCE) || defined(_DARWIN_UNLIMITED_SELECT) 47 | __DARWIN_EXTSN_C(select) 48 | #else /* !_DARWIN_C_SOURCE && !_DARWIN_UNLIMITED_SELECT */ 49 | # if defined(__LP64__) && !__DARWIN_NON_CANCELABLE 50 | __DARWIN_1050(select) 51 | # else /* !__LP64__ || __DARWIN_NON_CANCELABLE */ 52 | __DARWIN_ALIAS_C(select) 53 | # endif /* __LP64__ && !__DARWIN_NON_CANCELABLE */ 54 | #endif /* _DARWIN_C_SOURCE || _DARWIN_UNLIMITED_SELECT */ 55 | ; 56 | 57 | #endif /* !_SYS__SELECT_H_ */ 58 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_structs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004-2013 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #include 30 | #include 31 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_blkcnt_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _BLKCNT_T 29 | #define _BLKCNT_T 30 | #include /* __darwin_blkcnt_t */ 31 | typedef __darwin_blkcnt_t blkcnt_t; 32 | #endif /* _BLKCNT_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_blksize_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _BLKSIZE_T 29 | #define _BLKSIZE_T 30 | #include /* __darwin_blksize_t */ 31 | typedef __darwin_blksize_t blksize_t; 32 | #endif /* _BLKSIZE_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_caddr_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _CADDR_T 29 | #define _CADDR_T 30 | typedef char * caddr_t; 31 | #endif /* _CADDR_T */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_clock_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _CLOCK_T 29 | #define _CLOCK_T 30 | #include /* __darwin_clock_t */ 31 | typedef __darwin_clock_t clock_t; 32 | #endif /* _CLOCK_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_ct_rune_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef _CT_RUNE_T 30 | #define _CT_RUNE_T 31 | #include /* __darwin_ct_rune_t */ 32 | typedef __darwin_ct_rune_t ct_rune_t; 33 | #endif /* _CT_RUNE_T */ 34 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_dev_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _DEV_T 29 | #define _DEV_T 30 | #include /* __darwin_dev_t */ 31 | typedef __darwin_dev_t dev_t; /* device number */ 32 | #endif /* _DEV_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_errno_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _ERRNO_T 29 | #define _ERRNO_T 30 | typedef int errno_t; 31 | #endif /* _ERRNO_T */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_fd_clr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef FD_CLR 29 | #define FD_CLR(n, p) __DARWIN_FD_CLR(n, p) 30 | #endif /* FD_CLR */ 31 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_fd_copy.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef FD_COPY 29 | #define FD_COPY(f, t) __DARWIN_FD_COPY(f, t) 30 | #endif /* FD_COPY */ 31 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_fd_isset.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef FD_ISSET 29 | #define FD_ISSET(n, p) __DARWIN_FD_ISSET(n, p) 30 | #endif /* FD_ISSET */ 31 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_fd_set.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef FD_SET 29 | #define FD_SET(n, p) __DARWIN_FD_SET(n, p) 30 | #endif /* FD_SET */ 31 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_fd_setsize.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef FD_SETSIZE 29 | #define FD_SETSIZE __DARWIN_FD_SETSIZE 30 | #endif /* FD_SETSIZE */ 31 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_fd_zero.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef FD_ZERO 29 | #define FD_ZERO(p) __DARWIN_FD_ZERO(p) 30 | #endif /* FD_ZERO */ 31 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_filesec_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _FILESEC_T 29 | #define _FILESEC_T 30 | struct _filesec; 31 | typedef struct _filesec *filesec_t; 32 | #endif /* _FILESEC_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_fsblkcnt_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _FSBLKCNT_T 29 | #define _FSBLKCNT_T 30 | #include /* __darwin_fsblkcnt_t */ 31 | typedef __darwin_fsblkcnt_t fsblkcnt_t; 32 | #endif /* _FSBLKCNT_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_fsfilcnt_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _FSFILCNT_T 29 | #define _FSFILCNT_T 30 | #include /* __darwin_fsfilcnt_t */ 31 | typedef __darwin_fsfilcnt_t fsfilcnt_t; 32 | #endif /* _FSFILCNT_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_fsid_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2014 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _FSID_T 29 | #define _FSID_T 30 | #include /* int32_t */ 31 | typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */ 32 | #endif /* _FSID_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_fsobj_id_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _FSOBJ_ID_T 29 | #define _FSOBJ_ID_T 30 | 31 | #include /* u_int32_t */ 32 | 33 | typedef struct fsobj_id { 34 | u_int32_t fid_objno; 35 | u_int32_t fid_generation; 36 | } fsobj_id_t; 37 | 38 | #endif /* _FSOBJ_ID_T */ 39 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_gid_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _GID_T 29 | #define _GID_T 30 | #include /* __darwin_gid_t */ 31 | typedef __darwin_gid_t gid_t; 32 | #endif 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_guid_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _KAUTH_GUID 29 | #define _KAUTH_GUID 30 | /* Apple-style globally unique identifier */ 31 | typedef union { 32 | #define KAUTH_GUID_SIZE 16 /* 128-bit identifier */ 33 | unsigned char g_guid[KAUTH_GUID_SIZE]; 34 | unsigned int g_guid_asint[KAUTH_GUID_SIZE / sizeof(unsigned int)]; 35 | } guid_t; 36 | #define _GUID_T 37 | #endif /* _KAUTH_GUID */ 38 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_id_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _ID_T 29 | #define _ID_T 30 | #include /* __darwin_id_t */ 31 | typedef __darwin_id_t id_t; /* can hold pid_t, gid_t, or uid_t */ 32 | #endif /* _ID_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_in_addr_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _IN_ADDR_T 29 | #define _IN_ADDR_T 30 | #include /* __uint32_t */ 31 | typedef __uint32_t in_addr_t; /* base type for internet address */ 32 | #endif /* _IN_ADDR_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_in_port_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _IN_PORT_T 29 | #define _IN_PORT_T 30 | #include /* __uint16_t */ 31 | typedef __uint16_t in_port_t; 32 | #endif /* _IN_PORT_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_ino64_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _INO64_T 29 | #define _INO64_T 30 | #include /* __darwin_ino64_t */ 31 | typedef __darwin_ino64_t ino64_t; /* 64bit inode number */ 32 | #endif /* _INO64_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_ino_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _INO_T 29 | #define _INO_T 30 | #include /* __darwin_ino_t */ 31 | typedef __darwin_ino_t ino_t; /* inode number */ 32 | #endif /* _INO_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_int16_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _INT16_T 29 | #define _INT16_T 30 | typedef short int16_t; 31 | #endif /* _INT16_T */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_int32_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _INT32_T 29 | #define _INT32_T 30 | typedef int int32_t; 31 | #endif /* _INT32_T */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_int64_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _INT64_T 29 | #define _INT64_T 30 | typedef long long int64_t; 31 | #endif /* _INT64_T */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_int8_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _INT8_T 29 | #define _INT8_T 30 | typedef signed char int8_t; 31 | #endif /* _INT8_T */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_intptr_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _INTPTR_T 29 | #define _INTPTR_T 30 | #include /* __darwin_intptr_t */ 31 | 32 | typedef __darwin_intptr_t intptr_t; 33 | #endif /* _INTPTR_T */ 34 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_iovec_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _STRUCT_IOVEC 29 | #define _STRUCT_IOVEC 30 | #include /* size_t */ 31 | struct iovec { 32 | void * iov_base; /* [XSI] Base address of I/O memory region */ 33 | size_t iov_len; /* [XSI] Size of region iov_base points to */ 34 | }; 35 | #endif /* _STRUCT_IOVEC */ 36 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_key_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _KEY_T 29 | #define _KEY_T 30 | #include /* __int32_t */ 31 | typedef __int32_t key_t; /* IPC key (for Sys V IPC) */ 32 | #endif /* _KEY_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_mach_port_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | /* 30 | * mach_port_t - a named port right 31 | * 32 | * In user-space, "rights" are represented by the name of the 33 | * right in the Mach port namespace. Even so, this type is 34 | * presented as a unique one to more clearly denote the presence 35 | * of a right coming along with the name. 36 | * 37 | * Often, various rights for a port held in a single name space 38 | * will coalesce and are, therefore, be identified by a single name 39 | * [this is the case for send and receive rights]. But not 40 | * always [send-once rights currently get a unique name for 41 | * each right]. 42 | * 43 | * This definition of mach_port_t is only for user-space. 44 | * 45 | */ 46 | 47 | #ifndef _MACH_PORT_T 48 | #define _MACH_PORT_T 49 | #include /* __darwin_mach_port_t */ 50 | typedef __darwin_mach_port_t mach_port_t; 51 | #endif /* _MACH_PORT_T */ 52 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_mbstate_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef _MBSTATE_T 30 | #define _MBSTATE_T 31 | #include /* __darwin_mbstate_t */ 32 | typedef __darwin_mbstate_t mbstate_t; 33 | #endif /* _MBSTATE_T */ 34 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_mode_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _MODE_T 29 | #define _MODE_T 30 | #include /* __darwin_mode_t */ 31 | typedef __darwin_mode_t mode_t; 32 | #endif /* _MODE_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_nlink_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _NLINK_T 29 | #define _NLINK_T 30 | #include /* __uint16_t */ 31 | typedef __uint16_t nlink_t; /* link count */ 32 | #endif /* _NLINK_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_null.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef NULL 29 | #include /* __DARWIN_NULL */ 30 | #define NULL __DARWIN_NULL 31 | #endif /* NULL */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_o_dsync.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef O_DSYNC 29 | #define O_DSYNC 0x400000 /* synch I/O data integrity */ 30 | #endif /* O_DSYNC */ 31 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_o_sync.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef O_SYNC 29 | #define O_SYNC 0x0080 /* synch I/O file integrity */ 30 | #endif /* O_SYNC */ 31 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_off_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _OFF_T 29 | #define _OFF_T 30 | #include /* __darwin_off_t */ 31 | typedef __darwin_off_t off_t; 32 | #endif /* _OFF_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_offsetof.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef offsetof 29 | #define offsetof(type, field) __offsetof(type, field) 30 | #endif /* offsetof */ 31 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_os_inline.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #if !defined(OS_INLINE) 29 | # if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 30 | # define OS_INLINE static inline 31 | # else 32 | # define OS_INLINE static __inline__ 33 | # endif 34 | #endif /* OS_INLINE */ 35 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_pid_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _PID_T 29 | #define _PID_T 30 | #include /* __darwin_pid_t */ 31 | typedef __darwin_pid_t pid_t; 32 | #endif /* _PID_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_posix_vdisable.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _POSIX_VDISABLE 29 | #define _POSIX_VDISABLE ((unsigned char)'\377') 30 | #endif /* POSIX_VDISABLE */ 31 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_ptrdiff_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef _PTRDIFF_T 30 | #define _PTRDIFF_T 31 | #include /* __darwin_ptrdiff_t */ 32 | typedef __darwin_ptrdiff_t ptrdiff_t; 33 | #endif /* _PTRDIFF_T */ 34 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_rsize_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _RSIZE_T 29 | #define _RSIZE_T 30 | #include /* __darwin_size_t */ 31 | typedef __darwin_size_t rsize_t; 32 | #endif /* _RSIZE_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_rune_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _RUNE_T 29 | #define _RUNE_T 30 | #include /* __darwin_rune_t */ 31 | typedef __darwin_rune_t rune_t; 32 | #endif /* _RUNE_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_sa_family_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _SA_FAMILY_T 29 | #define _SA_FAMILY_T 30 | #include /* __uint8_t */ 31 | typedef __uint8_t sa_family_t; 32 | #endif /* _SA_FAMILY_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_seek_set.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #include 30 | 31 | /* whence values for lseek(2) */ 32 | #ifndef SEEK_SET 33 | #define SEEK_SET 0 /* set file offset to offset */ 34 | #define SEEK_CUR 1 /* set file offset to current plus offset */ 35 | #define SEEK_END 2 /* set file offset to EOF plus offset */ 36 | #endif /* !SEEK_SET */ 37 | 38 | #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL 39 | #ifndef SEEK_HOLE 40 | #define SEEK_HOLE 3 /* set file offset to the start of the next hole greater than or equal to the supplied offset */ 41 | #endif 42 | 43 | #ifndef SEEK_DATA 44 | #define SEEK_DATA 4 /* set file offset to the start of the next non-hole file region greater than or equal to the supplied offset */ 45 | #endif 46 | #endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */ 47 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_sigaltstack.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | /* Structure used in sigaltstack call. */ 30 | #ifndef _STRUCT_SIGALTSTACK 31 | 32 | #include /* __DARWIN_UNIX03 */ 33 | 34 | #if __DARWIN_UNIX03 35 | #define _STRUCT_SIGALTSTACK struct __darwin_sigaltstack 36 | #else /* !__DARWIN_UNIX03 */ 37 | #define _STRUCT_SIGALTSTACK struct sigaltstack 38 | #endif /* __DARWIN_UNIX03 */ 39 | 40 | #include /* __darwin_size_t */ 41 | 42 | _STRUCT_SIGALTSTACK 43 | { 44 | void *ss_sp; /* signal stack base */ 45 | __darwin_size_t ss_size; /* signal stack length */ 46 | int ss_flags; /* SA_DISABLE and/or SA_ONSTACK */ 47 | }; 48 | typedef _STRUCT_SIGALTSTACK stack_t; /* [???] signal stack */ 49 | 50 | #endif /* _STRUCT_SIGALTSTACK */ 51 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_sigset_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _SIGSET_T 29 | #define _SIGSET_T 30 | #include /* __darwin_sigset_t */ 31 | typedef __darwin_sigset_t sigset_t; 32 | #endif /* _SIGSET_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_size_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _SIZE_T 29 | #define _SIZE_T 30 | #include /* __darwin_size_t */ 31 | typedef __darwin_size_t size_t; 32 | #endif /* _SIZE_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_socklen_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _SOCKLEN_T 29 | #define _SOCKLEN_T 30 | #include /* __darwin_socklen_t */ 31 | typedef __darwin_socklen_t socklen_t; 32 | #endif 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_ssize_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _SSIZE_T 29 | #define _SSIZE_T 30 | #include /* __darwin_ssize_t */ 31 | typedef __darwin_ssize_t ssize_t; 32 | #endif /* _SSIZE_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_suseconds_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _SUSECONDS_T 29 | #define _SUSECONDS_T 30 | #include /* __darwin_suseconds_t */ 31 | typedef __darwin_suseconds_t suseconds_t; 32 | #endif /* _SUSECONDS_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_time_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _TIME_T 29 | #define _TIME_T 30 | #include /* __darwin_time_t */ 31 | typedef __darwin_time_t time_t; 32 | #endif /* _TIME_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_timespec.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _STRUCT_TIMESPEC 29 | #define _STRUCT_TIMESPEC struct timespec 30 | 31 | #include /* __darwin_time_t */ 32 | 33 | _STRUCT_TIMESPEC 34 | { 35 | __darwin_time_t tv_sec; 36 | long tv_nsec; 37 | }; 38 | #endif /* _STRUCT_TIMESPEC */ 39 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_timeval.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _STRUCT_TIMEVAL 29 | #define _STRUCT_TIMEVAL struct timeval 30 | 31 | #include /* __darwin_time_t */ 32 | #include /* __darwin_suseconds_t */ 33 | 34 | _STRUCT_TIMEVAL 35 | { 36 | __darwin_time_t tv_sec; /* seconds */ 37 | __darwin_suseconds_t tv_usec; /* and microseconds */ 38 | }; 39 | #endif /* _STRUCT_TIMEVAL */ 40 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_timeval32.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _STRUCT_TIMEVAL32 29 | #define _STRUCT_TIMEVAL32 struct timeval32 30 | 31 | #include /* __int32_t */ 32 | 33 | _STRUCT_TIMEVAL32 34 | { 35 | __int32_t tv_sec; /* seconds */ 36 | __int32_t tv_usec; /* and microseconds */ 37 | }; 38 | #endif /* _STRUCT_TIMEVAL32 */ 39 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_timeval64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef _STRUCT_TIMEVAL64 30 | #define _STRUCT_TIMEVAL64 31 | 32 | #include /* __int64_t */ 33 | 34 | struct timeval64 { 35 | __int64_t tv_sec; /* seconds */ 36 | __int64_t tv_usec; /* and microseconds */ 37 | }; 38 | #endif /* _STRUCT_TIMEVAL32 */ 39 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_u_char.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _U_CHAR 29 | #define _U_CHAR 30 | typedef unsigned char u_char; 31 | #endif /* _U_CHAR */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_u_int.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _U_INT 29 | #define _U_INT 30 | typedef unsigned int u_int; 31 | #endif /* _U_INT */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_u_int16_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _U_INT16_T 29 | #define _U_INT16_T 30 | typedef unsigned short u_int16_t; 31 | #endif /* _U_INT16_T */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_u_int32_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _U_INT32_T 29 | #define _U_INT32_T 30 | typedef unsigned int u_int32_t; 31 | #endif /* _U_INT32_T */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_u_int64_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _U_INT64_T 29 | #define _U_INT64_T 30 | typedef unsigned long long u_int64_t; 31 | #endif /* _U_INT64_T */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_u_int8_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _U_INT8_T 29 | #define _U_INT8_T 30 | typedef unsigned char u_int8_t; 31 | #endif /* _U_INT8_T */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_u_short.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _U_SHORT 29 | #define _U_SHORT 30 | typedef unsigned short u_short; 31 | #endif /* _U_SHORT */ 32 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_ucontext.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _STRUCT_UCONTEXT 29 | 30 | #include /* __DARWIN_UNIX03 */ 31 | 32 | #if __DARWIN_UNIX03 33 | #define _STRUCT_UCONTEXT struct __darwin_ucontext 34 | #else /* !__DARWIN_UNIX03 */ 35 | #define _STRUCT_UCONTEXT struct ucontext 36 | #endif /* __DARWIN_UNIX03 */ 37 | 38 | #include /* __darwin_size_t */ 39 | #include /* _STRUCT_MCONTEXT */ 40 | #include /* __darwin_sigset_t */ 41 | #include /* _STRUCT_SIGALTSTACK */ 42 | 43 | _STRUCT_UCONTEXT 44 | { 45 | int uc_onstack; 46 | __darwin_sigset_t uc_sigmask; /* signal mask used by this context */ 47 | _STRUCT_SIGALTSTACK uc_stack; /* stack used by this context */ 48 | _STRUCT_UCONTEXT *uc_link; /* pointer to resuming context */ 49 | __darwin_size_t uc_mcsize; /* size of the machine context passed in */ 50 | _STRUCT_MCONTEXT *uc_mcontext; /* pointer to machine specific context */ 51 | #ifdef _XOPEN_SOURCE 52 | _STRUCT_MCONTEXT __mcontext_data; 53 | #endif /* _XOPEN_SOURCE */ 54 | }; 55 | 56 | /* user context */ 57 | typedef _STRUCT_UCONTEXT ucontext_t; /* [???] user context */ 58 | 59 | #endif /* _STRUCT_UCONTEXT */ 60 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_ucontext64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _STRUCT_UCONTEXT64 29 | 30 | #include /* __DARWIN_UNIX03 */ 31 | 32 | #if __DARWIN_UNIX03 33 | #define _STRUCT_UCONTEXT64 struct __darwin_ucontext64 34 | #else /* !__DARWIN_UNIX03 */ 35 | #define _STRUCT_UCONTEXT64 struct ucontext64 36 | #endif /* __DARWIN_UNIX03 */ 37 | 38 | #include /* __darwin_size_t */ 39 | #include /* _STRUCT_MCONTEXT */ 40 | #include /* __darwin_sigset_t */ 41 | #include /* _STRUCT_SIGALTSTACK */ 42 | 43 | _STRUCT_UCONTEXT64 44 | { 45 | int uc_onstack; 46 | __darwin_sigset_t uc_sigmask; /* signal mask used by this context */ 47 | _STRUCT_SIGALTSTACK uc_stack; /* stack used by this context */ 48 | _STRUCT_UCONTEXT64 *uc_link; /* pointer to resuming context */ 49 | __darwin_size_t uc_mcsize; /* size of the machine context passed in */ 50 | _STRUCT_MCONTEXT64 *uc_mcontext64; /* pointer to machine specific context */ 51 | }; 52 | typedef _STRUCT_UCONTEXT64 ucontext64_t; /* [???] user context */ 53 | 54 | #endif /* _STRUCT_UCONTEXT64 */ 55 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_uid_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _UID_T 29 | #define _UID_T 30 | #include /* __darwin_uid_t */ 31 | typedef __darwin_uid_t uid_t; 32 | #endif /* _UID_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_uintptr_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _UINTPTR_T 29 | #define _UINTPTR_T 30 | 31 | #ifndef __has_attribute 32 | typedef unsigned long uintptr_t; 33 | #else 34 | typedef unsigned long uintptr_t; 35 | #endif /* __has_attribute */ 36 | 37 | #endif /* _UINTPTR_T */ 38 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_useconds_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _USECONDS_T 29 | #define _USECONDS_T 30 | #include /* __darwin_useconds_t */ 31 | typedef __darwin_useconds_t useconds_t; 32 | #endif /* _USECONDS_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_uuid_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2003-2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _UUID_T 29 | #define _UUID_T 30 | #include /* __darwin_uuid_t */ 31 | typedef __darwin_uuid_t uuid_t; 32 | #endif /* _UUID_T */ 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_va_list.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef _VA_LIST_T 30 | #define _VA_LIST_T 31 | #include /* __darwin_va_list */ 32 | typedef __darwin_va_list va_list; 33 | #endif /* _VA_LIST_T */ 34 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_wchar_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | /* wchar_t is a built-in type in C++ */ 30 | #ifndef __cplusplus 31 | #ifndef _WCHAR_T 32 | #define _WCHAR_T 33 | #include /* __darwin_wchar_t */ 34 | typedef __darwin_wchar_t wchar_t; 35 | #endif /* _WCHAR_T */ 36 | #endif /* __cplusplus */ 37 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/_types/_wint_t.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef _WINT_T 30 | #define _WINT_T 31 | #include /* __darwin_wint_t */ 32 | typedef __darwin_wint_t wint_t; 33 | #endif /* _WINT_T */ 34 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/appleapiopts.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef __SYS_APPLEAPIOPTS_H__ 30 | #define __SYS_APPLEAPIOPTS_H__ 31 | 32 | 33 | #ifndef __APPLE_API_STANDARD 34 | #define __APPLE_API_STANDARD 35 | #endif /* __APPLE_API_STANDARD */ 36 | 37 | #ifndef __APPLE_API_STABLE 38 | #define __APPLE_API_STABLE 39 | #endif /* __APPLE_API_STABLE */ 40 | 41 | #ifndef __APPLE_API_STRICT_CONFORMANCE 42 | 43 | #ifndef __APPLE_API_EVOLVING 44 | #define __APPLE_API_EVOLVING 45 | #endif /* __APPLE_API_EVOLVING */ 46 | 47 | #ifndef __APPLE_API_UNSTABLE 48 | #define __APPLE_API_UNSTABLE 49 | #endif /* __APPLE_API_UNSTABLE */ 50 | 51 | #ifndef __APPLE_API_PRIVATE 52 | #define __APPLE_API_PRIVATE 53 | #endif /* __APPLE_API_PRIVATE */ 54 | 55 | #ifndef __APPLE_API_OBSOLETE 56 | #define __APPLE_API_OBSOLETE 57 | #endif /* __APPLE_API_OBSOLETE */ 58 | 59 | #endif /* __APPLE_API_STRICT_CONFORMANCE */ 60 | 61 | #endif /* __SYS_APPLEAPIOPTS_H__ */ 62 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/clonefile.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2017 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef _SYS_CLONEFILE_H_ 30 | #define _SYS_CLONEFILE_H_ 31 | 32 | /* Options for clonefile calls */ 33 | #define CLONE_NOFOLLOW 0x0001 /* Don't follow symbolic links */ 34 | #define CLONE_NOOWNERCOPY 0x0002 /* Don't copy ownership information from source */ 35 | 36 | 37 | #include 38 | #include 39 | #include <_types/_uint32_t.h> 40 | #include 41 | 42 | __BEGIN_DECLS 43 | 44 | int clonefileat(int, const char *, int, const char *, uint32_t) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); 45 | 46 | int fclonefileat(int, int, const char *, uint32_t) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); 47 | 48 | int clonefile(const char *, const char *, uint32_t) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); 49 | 50 | __END_DECLS 51 | 52 | 53 | #endif /* _SYS_CLONEFILE_H_ */ 54 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/commpage.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2017 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | #ifndef _COMMPAGE_H 29 | #define _COMMPAGE_H 30 | 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/ev.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2000-2007 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | /* Copyright (c) 1998 Apple Computer, Inc. All rights reserved */ 29 | 30 | #ifndef _SYS_EV_H_ 31 | #define _SYS_EV_H_ 32 | 33 | #include 34 | 35 | #include 36 | #include 37 | 38 | struct eventreq { 39 | int er_type; 40 | #define EV_FD 1 // file descriptor 41 | int er_handle; 42 | void *er_data; 43 | int er_rcnt; 44 | int er_wcnt; 45 | int er_ecnt; 46 | int er_eventbits; 47 | #define EV_RE 1 48 | #define EV_WR 2 49 | #define EV_EX 4 50 | #define EV_RM 8 51 | #define EV_MASK 0xf 52 | }; 53 | 54 | typedef struct eventreq *er_t; 55 | 56 | #define EV_RBYTES 0x100 57 | #define EV_WBYTES 0x200 58 | #define EV_RWBYTES (EV_RBYTES|EV_WBYTES) 59 | #define EV_RCLOSED 0x400 60 | #define EV_RCONN 0x800 61 | #define EV_WCLOSED 0x1000 62 | #define EV_WCONN 0x2000 63 | #define EV_OOB 0x4000 64 | #define EV_FIN 0x8000 65 | #define EV_RESET 0x10000 66 | #define EV_TIMEOUT 0x20000 67 | #define EV_DMASK 0xffffff00 68 | 69 | 70 | 71 | __BEGIN_DECLS 72 | int modwatch(er_t, int); 73 | int watchevent(er_t, int); 74 | int waitevent(er_t, struct timeval *); 75 | __END_DECLS 76 | 77 | 78 | #endif /* _SYS_EV_H_ */ 79 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/fasttrap_isa.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2006 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | /* 29 | * Mach Operating System 30 | * Copyright (c) 1989 Carnegie-Mellon University 31 | * Copyright (c) 1988 Carnegie-Mellon University 32 | * All rights reserved. The CMU software License Agreement specifies 33 | * the terms and conditions for use and redistribution. 34 | */ 35 | /* 36 | * HISTORY 37 | */ 38 | 39 | #ifndef _SYS_FASTTRAP_ISA_H_ 40 | #define _SYS_FASTTRAP_ISA_H_ 41 | 42 | /* 43 | * Machine dependent constants 44 | */ 45 | 46 | #include 47 | 48 | #endif /* _SYS_FASTTRAP_ISA_H_ */ 49 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/fsgetpath.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2008-2017 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef _FSGETPATH_H_ 30 | #define _FSGETPATH_H_ 31 | 32 | 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include <_types/_uint64_t.h> 38 | #include 39 | 40 | 41 | __BEGIN_DECLS 42 | 43 | /* 44 | * Obtain the full pathname of a file system object by id. 45 | */ 46 | ssize_t fsgetpath(char *, size_t, fsid_t *, uint64_t) __OSX_AVAILABLE(10.13) __IOS_AVAILABLE(11.0) __TVOS_AVAILABLE(11.0) __WATCHOS_AVAILABLE(4.0); 47 | 48 | 49 | __END_DECLS 50 | 51 | 52 | #endif /* !_FSGETPATH_H_ */ 53 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/kdebug_signpost.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016-2019 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef BSD_SYS_KDEBUG_SIGNPOST_H 30 | #define BSD_SYS_KDEBUG_SIGNPOST_H 31 | 32 | #include 33 | #include 34 | #include 35 | 36 | __BEGIN_DECLS 37 | 38 | 39 | /* 40 | * kdebug_signpost(2) is deprecated. Use the os_signpost(3) family of tracing 41 | * functions, instead. 42 | */ 43 | 44 | int kdebug_signpost(uint32_t code, uintptr_t arg1, uintptr_t arg2, 45 | uintptr_t arg3, uintptr_t arg4) 46 | __API_DEPRECATED_WITH_REPLACEMENT("os_signpost_event_emit", 47 | macos(10.12, 10.15), ios(10.0, 13.0), watchos(3.0, 6.0), tvos(10.0, 13.0)); 48 | 49 | int kdebug_signpost_start(uint32_t code, uintptr_t arg1, uintptr_t arg2, 50 | uintptr_t arg3, uintptr_t arg4) 51 | __API_DEPRECATED_WITH_REPLACEMENT("os_signpost_interval_begin", 52 | macos(10.12, 10.15), ios(10.0, 13.0), watchos(3.0, 6.0), tvos(10.0, 13.0)); 53 | 54 | int kdebug_signpost_end(uint32_t code, uintptr_t arg1, uintptr_t arg2, 55 | uintptr_t arg3, uintptr_t arg4) 56 | __API_DEPRECATED_WITH_REPLACEMENT("os_signpost_interval_end", 57 | macos(10.12, 10.15), ios(10.0, 13.0), watchos(3.0, 6.0), tvos(10.0, 13.0)); 58 | 59 | 60 | __END_DECLS 61 | 62 | #endif /* !BSD_SYS_KDEBUG_SIGNPOST_H */ 63 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/lctx.h: -------------------------------------------------------------------------------- 1 | /* 2 | * TODO: remove this file 3 | */ 4 | #ifndef _SYS_LCTX_H_ 5 | #define _SYS_LCTX_H_ 6 | 7 | #include /* errno, ENOSYS */ 8 | #include /* pid_t */ 9 | static __inline pid_t 10 | getlcid(pid_t pid) 11 | { 12 | errno = ENOSYS; 13 | return -1; 14 | } 15 | 16 | static __inline int 17 | setlcid(pid_t pid, pid_t lcid) 18 | { 19 | errno = ENOSYS; 20 | return -1; 21 | } 22 | 23 | #define LCID_PROC_SELF (0) 24 | #define LCID_REMOVE (-1) 25 | #define LCID_CREATE (0) 26 | 27 | #endif /* !_SYS_LCTX_H_ */ 28 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/log_data.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2019 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | /* 29 | * @OSF_COPYRIGHT@ 30 | */ 31 | /* 32 | */ 33 | 34 | #ifndef _DATA_LOG_H_ 35 | #define _DATA_LOG_H_ 36 | 37 | /* 38 | * rdar://problem/48252465 39 | * This header should be exported only to dexts. 40 | */ 41 | int log_data_as_kernel(unsigned int tag, unsigned int flags, void *buffer, unsigned int size); 42 | 43 | #endif /* _DATA_LOG_H_ */ 44 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/netport.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | /* Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved */ 29 | /* 30 | * Copyright (c) 1987,1988,1989 Carnegie-Mellon University All rights reserved. 31 | */ 32 | #ifndef _SYS_NETPORT_H_ 33 | #define _SYS_NETPORT_H_ 34 | 35 | #include <_types/_uint32_t.h> /* uint32_t */ 36 | 37 | typedef uint32_t netaddr_t; 38 | 39 | /* 40 | * Network Port structure. 41 | */ 42 | typedef struct { 43 | long np_uid_high; 44 | long np_uid_low; 45 | } np_uid_t; 46 | 47 | typedef struct { 48 | netaddr_t np_receiver; 49 | netaddr_t np_owner; 50 | np_uid_t np_puid; 51 | np_uid_t np_sid; 52 | } network_port_t; 53 | 54 | #endif /* !_SYS_NETPORT_H_ */ 55 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/paths.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | /* @(#)paths.h 1.0 11/13/00 */ 29 | 30 | #ifndef _SYS_PATHS_H_ 31 | #define _SYS_PATHS_H_ 32 | 33 | #include 34 | 35 | #ifdef __APPLE_API_PRIVATE 36 | 37 | /* Provides support for system wide forks */ 38 | #define _PATH_FORKSPECIFIER "/..namedfork/" 39 | #define _PATH_DATANAME "data" 40 | #define _PATH_RSRCNAME "rsrc" 41 | #define _PATH_RSRCFORKSPEC "/..namedfork/rsrc" 42 | 43 | #endif /* __APPLE_API_PRIVATE */ 44 | #endif /* !_SYS_PATHS_H_ */ 45 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/posix_shm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999-2003 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | /* 29 | * Copyright (c) 1990, 1996-1998 Apple Computer, Inc. 30 | * All Rights Reserved. 31 | */ 32 | /* 33 | * posix_shm.c : Support for POSIX shared memory APIs 34 | * 35 | * File: posix_shm.c 36 | * Author: Ananthakrishna Ramesh 37 | * 38 | * HISTORY 39 | * 2-Sep-1999 A.Ramesh 40 | * Created for MacOSX 41 | * 42 | */ 43 | 44 | #ifndef _SYS_POSIX_SHM_H_ 45 | #define _SYS_POSIX_SHM_H_ 46 | 47 | #include 48 | #include 49 | #include 50 | 51 | struct label; 52 | 53 | #define PSHMNAMLEN 31 /* maximum name segment length we bother with */ 54 | 55 | struct pshminfo { 56 | unsigned int pshm_flags; 57 | unsigned int pshm_usecount; 58 | off_t pshm_length; 59 | mode_t pshm_mode; 60 | uid_t pshm_uid; 61 | gid_t pshm_gid; 62 | char pshm_name[PSHMNAMLEN + 1]; 63 | void *pshm_memobject; 64 | struct label *pshm_label; 65 | }; 66 | 67 | #endif 68 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/random.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 1999, 2000-2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef __SYS_RANDOM_H__ 30 | #define __SYS_RANDOM_H__ 31 | 32 | #include 33 | #include 34 | #include 35 | #include 36 | 37 | __BEGIN_DECLS 38 | int getentropy(void* buffer, size_t size) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); 39 | __END_DECLS 40 | 41 | #endif /* __SYS_RANDOM_H__ */ 42 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/sdt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * CDDL HEADER START 3 | * 4 | * The contents of this file are subject to the terms of the 5 | * Common Development and Distribution License, Version 1.0 only 6 | * (the "License"). You may not use this file except in compliance 7 | * with the License. 8 | * 9 | * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 | * or http://www.opensolaris.org/os/licensing. 11 | * See the License for the specific language governing permissions 12 | * and limitations under the License. 13 | * 14 | * When distributing Covered Code, include this CDDL HEADER in each 15 | * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 | * If applicable, add the following below this CDDL HEADER, with the 17 | * fields enclosed by brackets "[]" replaced with your own identifying 18 | * information: Portions Copyright [yyyy] [name of copyright owner] 19 | * 20 | * CDDL HEADER END 21 | */ 22 | /* 23 | * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24 | * Use is subject to license terms. 25 | */ 26 | 27 | #ifndef _SYS_SDT_H 28 | #define _SYS_SDT_H 29 | 30 | /* 31 | * This is a wrapper header that wraps the mach visible sdt.h header so that 32 | * the header file ends up visible where software expects it to be. We also 33 | * do the C/C++ symbol wrapping here, since Mach headers are technically C 34 | * interfaces. 35 | * 36 | * Note: The process of adding USDT probes to code is slightly different 37 | * than documented in the "Solaris Dynamic Tracing Guide". 38 | * The DTRACE_PROBE*() macros are not supported on Mac OS X -- instead see 39 | * "BUILDING CODE CONTAINING USDT PROBES" in the dtrace(1) manpage 40 | * 41 | */ 42 | #include 43 | __BEGIN_DECLS 44 | #include 45 | __END_DECLS 46 | 47 | #endif /* _SYS_SDT_H */ 48 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/semaphore.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | /* @(#)semaphore.h 1.0 2/29/00 */ 29 | 30 | 31 | 32 | /* 33 | * semaphore.h - POSIX semaphores 34 | * 35 | * HISTORY 36 | * 29-Feb-00 A.Ramesh at Apple 37 | * Created for Mac OS X 38 | */ 39 | 40 | #ifndef _SYS_SEMAPHORE_H_ 41 | #define _SYS_SEMAPHORE_H_ 42 | 43 | typedef int sem_t; 44 | 45 | /* this should go in limits.h> */ 46 | #define SEM_VALUE_MAX 32767 47 | #define SEM_FAILED ((sem_t *)-1) 48 | 49 | #include 50 | 51 | __BEGIN_DECLS 52 | int sem_close(sem_t *); 53 | int sem_destroy(sem_t *) __deprecated; 54 | int sem_getvalue(sem_t * __restrict, int * __restrict) __deprecated; 55 | int sem_init(sem_t *, int, unsigned int) __deprecated; 56 | sem_t * sem_open(const char *, int, ...); 57 | int sem_post(sem_t *); 58 | int sem_trywait(sem_t *); 59 | int sem_unlink(const char *); 60 | int sem_wait(sem_t *) __DARWIN_ALIAS_C(sem_wait); 61 | __END_DECLS 62 | 63 | 64 | #endif /* _SYS_SEMAPHORE_H_ */ 65 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/snapshot.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef _SYS_SNAPSHOT_H_ 30 | #define _SYS_SNAPSHOT_H_ 31 | 32 | 33 | #include 34 | #include 35 | #include 36 | #include <_types/_uint32_t.h> 37 | #include 38 | #include 39 | 40 | __BEGIN_DECLS 41 | 42 | int fs_snapshot_create(int, const char *, uint32_t) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); 43 | 44 | int fs_snapshot_list(int, struct attrlist *, void *, size_t, uint32_t) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); 45 | 46 | int fs_snapshot_delete(int, const char *, uint32_t) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); 47 | 48 | int fs_snapshot_rename(int, const char *, const char *, uint32_t) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); 49 | 50 | int fs_snapshot_mount(int, const char *, const char *, uint32_t) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); 51 | 52 | int fs_snapshot_revert(int, const char *, uint32_t) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); 53 | 54 | 55 | __END_DECLS 56 | 57 | 58 | 59 | #endif /* !_SYS_SNAPSHOT_H_ */ 60 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/statvfs.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. Please obtain a copy of the License at 10 | * http://www.opensource.apple.com/apsl/ and read it before using this 11 | * file. 12 | * 13 | * The Original Code and all software distributed under the License are 14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 | * Please see the License for the specific language governing rights and 19 | * limitations under the License. 20 | * 21 | * @APPLE_LICENSE_HEADER_END@ 22 | */ 23 | 24 | /* 25 | * sys/statvfs.h 26 | */ 27 | #ifndef _SYS_STATVFS_H_ 28 | #define _SYS_STATVFS_H_ 29 | 30 | #include 31 | #include 32 | 33 | #include 34 | #include 35 | 36 | /* Following structure is used as a statvfs/fstatvfs function parameter */ 37 | struct statvfs { 38 | unsigned long f_bsize; /* File system block size */ 39 | unsigned long f_frsize; /* Fundamental file system block size */ 40 | fsblkcnt_t f_blocks; /* Blocks on FS in units of f_frsize */ 41 | fsblkcnt_t f_bfree; /* Free blocks */ 42 | fsblkcnt_t f_bavail; /* Blocks available to non-root */ 43 | fsfilcnt_t f_files; /* Total inodes */ 44 | fsfilcnt_t f_ffree; /* Free inodes */ 45 | fsfilcnt_t f_favail; /* Free inodes for non-root */ 46 | unsigned long f_fsid; /* Filesystem ID */ 47 | unsigned long f_flag; /* Bit mask of values */ 48 | unsigned long f_namemax; /* Max file name length */ 49 | }; 50 | 51 | /* Defined bits for f_flag field value */ 52 | #define ST_RDONLY 0x00000001 /* Read-only file system */ 53 | #define ST_NOSUID 0x00000002 /* Does not honor setuid/setgid */ 54 | 55 | __BEGIN_DECLS 56 | int fstatvfs(int, struct statvfs *); 57 | int statvfs(const char * __restrict, struct statvfs * __restrict); 58 | __END_DECLS 59 | 60 | #endif /* _SYS_STATVFS_H_ */ 61 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/stdio.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef _SYS_STDIO_H_ 30 | #define _SYS_STDIO_H_ 31 | 32 | #include 33 | 34 | #if __DARWIN_C_LEVEL >= 200809L 35 | #include 36 | 37 | __BEGIN_DECLS 38 | 39 | int renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0); 40 | 41 | #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL 42 | 43 | #define RENAME_SECLUDE 0x00000001 44 | #define RENAME_SWAP 0x00000002 45 | #define RENAME_EXCL 0x00000004 46 | int renamex_np(const char *, const char *, unsigned int) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); 47 | int renameatx_np(int, const char *, int, const char *, unsigned int) __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); 48 | 49 | #endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */ 50 | 51 | __END_DECLS 52 | 53 | #endif /* __DARWIN_C_LEVEL >= 200809L */ 54 | 55 | #endif /* _SYS_STDIO_H_ */ 56 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/sys_domain.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2000-2005, 2012, 2014 Apple Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | 30 | #ifndef _SYSTEM_DOMAIN_H_ 31 | #define _SYSTEM_DOMAIN_H_ 32 | 33 | #include 34 | #include 35 | #include 36 | 37 | 38 | /* Kernel Events Protocol */ 39 | #define SYSPROTO_EVENT 1 /* kernel events protocol */ 40 | 41 | /* Kernel Control Protocol */ 42 | #define SYSPROTO_CONTROL 2 /* kernel control protocol */ 43 | #define AF_SYS_CONTROL 2 /* corresponding sub address type */ 44 | 45 | /* System family socket address */ 46 | struct sockaddr_sys { 47 | u_char ss_len; /* sizeof(struct sockaddr_sys) */ 48 | u_char ss_family; /* AF_SYSTEM */ 49 | u_int16_t ss_sysaddr; /* protocol address in AF_SYSTEM */ 50 | u_int32_t ss_reserved[7]; /* reserved to the protocol use */ 51 | }; 52 | 53 | 54 | 55 | #endif /* _SYSTEM_DOMAIN_H_ */ 56 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/ucontext.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002-2006 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef _SYS_UCONTEXT_H_ 30 | #define _SYS_UCONTEXT_H_ 31 | 32 | #include 33 | #include 34 | 35 | #include 36 | #include 37 | 38 | #include 39 | 40 | 41 | #endif /* _SYS_UCONTEXT_H_ */ 42 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/utfconv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | 29 | #ifndef _SYS_UTFCONV_H_ 30 | #define _SYS_UTFCONV_H_ 31 | 32 | #include 33 | #include 34 | 35 | 36 | #endif /* !_SYS_UTFCONV_H_ */ 37 | -------------------------------------------------------------------------------- /cross-macos/sysroot/macos-12/usr/include/sys/vmparam.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. 3 | * 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 | * 6 | * This file contains Original Code and/or Modifications of Original Code 7 | * as defined in and that are subject to the Apple Public Source License 8 | * Version 2.0 (the 'License'). You may not use this file except in 9 | * compliance with the License. The rights granted to you under the License 10 | * may not be used to create, or enable the creation or redistribution of, 11 | * unlawful or unlicensed copies of an Apple operating system, or to 12 | * circumvent, violate, or enable the circumvention or violation of, any 13 | * terms of an Apple operating system software license agreement. 14 | * 15 | * Please obtain a copy of the License at 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 | * 18 | * The Original Code and all software distributed under the License are 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 | * Please see the License for the specific language governing rights and 24 | * limitations under the License. 25 | * 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 | */ 28 | /* 29 | * Mach Operating System 30 | * Copyright (c) 1989 Carnegie-Mellon University 31 | * Copyright (c) 1988 Carnegie-Mellon University 32 | * All rights reserved. The CMU software License Agreement specifies 33 | * the terms and conditions for use and redistribution. 34 | */ 35 | /* 36 | * HISTORY 37 | */ 38 | 39 | #ifndef _SYS_VMPARAM_H_ 40 | #define _SYS_VMPARAM_H_ 41 | 42 | /* 43 | * Machine dependent constants 44 | */ 45 | 46 | #include 47 | 48 | #endif /* _SYS_VMPARAM_H_ */ 49 | -------------------------------------------------------------------------------- /cross-windows/TraceLoggingProvider.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fubark/zig-v8/168c4a868287f5a655b013e5016c6a22092d84d8/cross-windows/TraceLoggingProvider.h -------------------------------------------------------------------------------- /cross-windows/VersionHelpers.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /cross-windows/Windows.h: -------------------------------------------------------------------------------- 1 | #include -------------------------------------------------------------------------------- /parse_deps.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Parses DEPS file and outputs json. 4 | # The DEPS file is just python code so we capture the vars in exec and convert to json. 5 | 6 | import sys 7 | import json 8 | 9 | def Var(arg): 10 | return '@' + arg 11 | 12 | def main(): 13 | deps_file = open(sys.argv[1], "r") 14 | deps_str = deps_file.read() 15 | deps_file.close() 16 | 17 | out = {} 18 | exec(deps_str, globals(), out) 19 | print(json.dumps(out)) 20 | 21 | if __name__ == "__main__": 22 | main() -------------------------------------------------------------------------------- /src/test.zig: -------------------------------------------------------------------------------- 1 | const std = @import("std"); 2 | const t = std.testing; 3 | const v8 = @import("./v8.zig"); 4 | 5 | test { 6 | // Based on https://chromium.googlesource.com/v8/v8/+/branch-heads/6.8/samples/hello-world.cc 7 | 8 | const platform = v8.Platform.initDefault(0, true); 9 | defer platform.deinit(); 10 | 11 | std.log.info("v8 version: {s}\n", .{v8.getVersion()}); 12 | 13 | v8.initV8Platform(platform); 14 | v8.initV8(); 15 | defer { 16 | _ = v8.deinitV8(); 17 | v8.deinitV8Platform(); 18 | } 19 | 20 | var params = v8.initCreateParams(); 21 | params.array_buffer_allocator = v8.createDefaultArrayBufferAllocator(); 22 | defer v8.destroyArrayBufferAllocator(params.array_buffer_allocator.?); 23 | 24 | var isolate = v8.Isolate.init(¶ms); 25 | defer isolate.deinit(); 26 | 27 | isolate.enter(); 28 | defer isolate.exit(); 29 | 30 | // Create a stack-allocated handle scope. 31 | var hscope: v8.HandleScope = undefined; 32 | hscope.init(isolate); 33 | defer hscope.deinit(); 34 | 35 | // Create a new context. 36 | var context = v8.Context.init(isolate, null, null); 37 | context.enter(); 38 | defer context.exit(); 39 | 40 | // Create a string containing the JavaScript source code. 41 | const source = v8.String.initUtf8(isolate, "'Hello' + ', World! 🍏🍓' + Math.sin(Math.PI/2)"); 42 | 43 | // Compile the source code. 44 | const script = try v8.Script.compile(context, source, null); 45 | 46 | // Run the script to get the result. 47 | const value = try script.run(context); 48 | 49 | // Convert the result to an UTF8 string and print it. 50 | const res = valueToRawUtf8Alloc(t.allocator, isolate, context, value); 51 | defer t.allocator.free(res); 52 | 53 | std.log.info("{s}", .{res}); 54 | try t.expectEqualStrings(res, "Hello, World! 🍏🍓1"); 55 | } 56 | 57 | pub fn valueToRawUtf8Alloc(alloc: std.mem.Allocator, isolate: v8.Isolate, ctx: v8.Context, val: v8.Value) []const u8 { 58 | const str = val.toString(ctx) catch unreachable; 59 | const len = str.lenUtf8(isolate); 60 | const buf = alloc.alloc(u8, len) catch unreachable; 61 | _ = str.writeUtf8(isolate, buf); 62 | return buf; 63 | } 64 | --------------------------------------------------------------------------------