Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 64) sorted by relevance

123

/xnu-12377.61.12/libsyscall/mach/
H A Derr_kern.sub40 "(os/kern) successful", /* 0 */
41 "(os/kern) invalid address",
42 "(os/kern) protection failure",
43 "(os/kern) no space available",
44 "(os/kern) invalid argument",
45 "(os/kern) failure", /* 5 */
46 "(os/kern) resource shortage",
47 "(os/kern) not receiver",
48 "(os/kern) no access",
49 "(os/kern) memory failure",
[all …]
/xnu-12377.61.12/tests/unit/tools/
H A Dmerge_cmds_json.py3 import os
11 xnu_json = os.path.join(xnu_build_dir, "compile_commands.json")
12 if not os.path.exists(xnu_json):
15 root_json = os.path.join(xnu_root, "compile_commands.json")
17 if os.path.exists(root_json):
18 if not os.path.islink(root_json):
23 for filename in glob.glob(os.path.join(tests_obj_dir, "*.json")):
44 tests_json = os.path.join(tests_obj_dir, "compile_commands.json")
48 if os.path.exists(root_json):
50 os.unlink(root_json)
[all …]
H A Dgenerate_ut_proj.py4 import os
13 SRC_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))
192 ext = os.path.splitext(self.name)[1]
408 name = os.path.splitext(os.path.split(c_file_ref.name)[1])[0]
501 path = os.path.join(folder, target.name + ".xcscheme")
567 output = os.path.join(SRC_ROOT, "ut_xnu_proj.xcodeproj")
568 os.makedirs(output, exist_ok=True)
569 proj_path = os.path.join(output, "project.pbxproj")
574 os.makedirs(schemes_dir, exist_ok=True)
588 name = os.path.splitext(src_file[len(TESTS_UNIT_PREFIX):])[0]
[all …]
/xnu-12377.61.12/tools/lldbmacros/core/
H A Dxnu_lldb_init.py1 import os
26 return os.path.dirname(str(s.name))
46 new_path = os.path.expanduser(new_path)
47 new_path = os.path.normpath(new_path)
58 new_path = new_path + os.path.sep + projpath
94 if "DEBUG_XNU_LLDBMACROS" in os.environ and len(os.environ['DEBUG_XNU_LLDBMACROS']) > 0:
144 …if "XNU_LLDBMACROS_NOBUILTINKEXTS" in os.environ and len(os.environ['XNU_LLDBMACROS_NOBUILTINKEXTS…
146 builtinkexts_path = os.path.join(os.path.dirname(self_path), "lldbmacros", "builtinkexts")
147 if os.access(builtinkexts_path, os.F_OK):
148 kexts = os.listdir(builtinkexts_path)
[all …]
/xnu-12377.61.12/tools/tests/kernpost_test_report/
H A Dkernpost_test_report.lua37 os.exit(1)
55 local now = os.time()
56 local timezone = os.difftime(now, os.time(os.date("!*t", now)))
66 local time_str = os.date('%Y-%m-%dT%H:%M:%S', walltime_secs)
96 os.exit(1)
120 os.exit(1)
127 os.exit(1)
137 os.exit(1)
144 os.exit(1)
152 os.exit(1)
/xnu-12377.61.12/tests/cxx_safe_buffers_src/
H A Dreinterpret_span_cast.cpp53 std::span<std::byte> writable_sp = os::reinterpret_span_cast<std::byte>(sp); in tests()
54 std::span<const std::byte> nonwritable_sp = os::reinterpret_span_cast<const std::byte>(sp); in tests()
63 std::span<A> span_a = os::reinterpret_span_cast<A>(sp); in tests()
71 std::span<B> span_b = os::reinterpret_span_cast<B>(span_a); in tests()
79 std::span<C> span_c = os::reinterpret_span_cast<C>(span_b); in tests()
87 std::span<B> span_b = os::reinterpret_span_cast<B>(span_c); in tests()
93 std::span<D> span_d = os::reinterpret_span_cast<D>(sp); in tests()
109 std::span<B> span_b = os::reinterpret_span_cast<B>(span_a); in trapping_test()
H A Dunsafe_forge_span.cpp23 std::span<T> span = os::span::__unsafe_forge_span(p, 10); in tests()
30 std::span<const T> span = os::span::__unsafe_forge_span(p, 10); in tests()
37 std::span<T> span = os::span::__unsafe_forge_span(v.begin(), v.end()); in tests()
43 std::span<T> span = os::unsafe_forge_span(p, 10); in tests()
44 std::span<T, 10> span2 = os::unsafe_forge_span<T, 10>(p); in tests()
52 std::span<T> span = os::unsafe_forge_span(v.begin(), v.end()); in tests()
/xnu-12377.61.12/tests/nvram_tests/
H A Drun_tests.py3 import os
88 if not os.path.exists(file_path) or os.path.basename(os.getcwd()) != 'xnu':
93 for file in os.listdir(file_path):
98 if os.path.isdir(build_path):
111 for file in os.listdir(build_path):
/xnu-12377.61.12/tools/lldbmacros/plugins/
H A Diosspeedtracer.py15 import subprocess,os
23 …ios_process = subprocess.Popen([os.path.join(os.path.dirname(os.path.abspath(__file__)), "iosspeed…
/xnu-12377.61.12/libkern/os/
H A Dcpp_util.h21 namespace os {
90 typedef typename os::remove_reference<_T>::type _U;
99 *d_first = os::move(*first);
105 constexpr T && forward(os::remove_reference_t<T>&t) noexcept {
110 constexpr T && forward(os::remove_reference_t<T>&& t) noexcept {
111 static_assert(!os::is_lvalue_reference<T>::value,
124 *(--d_last) = os::move(*(--last));
134 ::new (static_cast<void*>(d_first)) T(os::move(*first));
H A Datomic.h71 #define os_cast_to_atomic_pointer(p) os::cast_to_atomic_pointer(p)
73 #define os_cast_to_nonatomic_pointer(p) os::cast_to_nonatomic_pointer(p)
103 namespace os {
H A DMakefile69 INSTALL_MI_DIR = os
80 EXPORT_MI_DIR = os
/xnu-12377.61.12/tools/lldbmacros/tests/integration_smoke/
H A Dtest_lldb_macros.py16 import os.path
594 os.kill(os.getpid(), signal.SIGTERM)
682 abs_file = os.path.abspath(__file__)
683 abs_root = os.path.dirname(abs_file)
684 os.chdir(abs_root)
705 abs_file = os.path.abspath(__file__)
706 abs_root = os.path.dirname(abs_file)
707 os.chdir(abs_root)
/xnu-12377.61.12/libkern/conf/
H A Dfiles59 libkern/os/log.c standard
60 libkern/os/log_encode.c standard
61 libkern/os/log_mem.c standard
62 libkern/os/log_queue.c standard
63 libkern/os/object.c standard
64 libkern/os/internal.c standard
65 libkern/os/refcnt.c standard
66 libkern/os/system_event_log.c standard
/xnu-12377.61.12/tools/lldbmacros/
H A Dutils.py6 import sys, re, time, os, time
183 …lldb_py = os.path.join(os.path.dirname(os.path.dirname(platdir)), 'Library/PrivateFrameworks/LLDB.…
185 …lldb_py = os.path.join(platdir[0:offset+8], 'SharedFrameworks/LLDB.framework/Versions/A/Resources/…
186 if os.path.isdir(lldb_py):
464 expanded_path = os.path.expanduser(path)
465 norm_path = os.path.normpath(expanded_path)
H A Dsysreg.py13 import os
23 _SYSREG_DOC_PATH = os.path.dirname(os.path.abspath(__file__)) + '/sysregdoc/'
/xnu-12377.61.12/tools/trace/
H A Dktruss.lua10 os.exit(arg[1] == nil)
27 os.exit(1)
H A Dpirate.lua11 os.exit(0)
28 os.exit(1)
/xnu-12377.61.12/libkern/
H A DMakefile10 libkern os firehose libcxx_support
16 libkern os firehose
/xnu-12377.61.12/libkern/c++/
H A DOSArray.cpp172 os::destroy(array, array + capacity); in free()
276 array[i] = os::move(array[i - 1]); in setObject()
350 oldObject = os::move(array[index]); in removeObject()
354 array[i] = os::move(array[i + 1]); in removeObject()
539 ret = os::move(newArray); in copyCollection()
/xnu-12377.61.12/tools/lldbmacros/lint/
H A Dsyntax_checker.py12 import os
28 if not os.path.exists(fname):
/xnu-12377.61.12/libsyscall/
H A DLibsyscall.xcconfig21 OS_PRIVATE_HEADERS_FOLDER_PATH = $(SDK_INSTALL_HEADERS_ROOT)/usr/local/include/os
22 OS_PUBLIC_HEADERS_FOLDER_PATH = $(SDK_INSTALL_HEADERS_ROOT)/usr/include/os
31 HEADER_SEARCH_PATHS = $(PROJECT_DIR)/mach $(PROJECT_DIR)/os $(PROJECT_DIR)/wrappers $(PROJECT_DIR)/…
/xnu-12377.61.12/bsd/net/
H A Dpf_osfp.c242 pf_osfp_match(struct pf_osfp_enlist *list, pf_osfp_t os) in pf_osfp_match() argument
248 if (os == PF_OSFP_ANY) { in pf_osfp_match()
252 DPFPRINTF("osfp no match against %x\n", os); in pf_osfp_match()
253 return os == PF_OSFP_UNKNOWN; in pf_osfp_match()
255 PF_OSFP_UNPACK(os, os_class, os_version, os_subtype); in pf_osfp_match()
263 entry->fp_subtype_nm, os, entry->fp_os); in pf_osfp_match()
267 DPFPRINTF("fingerprint 0x%x didn't match\n", os); in pf_osfp_match()
/xnu-12377.61.12/EXTERNAL_HEADERS/image4/
H A Dimage4.h69 #if __has_include(<os/base.h>)
89 #if __has_include(<os/availability.h>)
/xnu-12377.61.12/tools/
H A Dsymbolify.py5 import os
81 KERNEL_FILE = os.environ.get("SYMBOLIFY_KERNEL")

123