| /xnu-11215/tools/lockstat/ |
| H A D | lockstat.c | 119 if (strcmp(argv[1], "all") == 0) { in main() 126 } else if (strcmp(argv[1], "spin") == 0) { in main() 129 } else if (strcmp(argv[1], "mutex") == 0) { in main() 132 } else if (strcmp(argv[1], "rw") == 0) { in main() 162 if (strcmp(argv[1], "all") == 0) { in main() 173 } else if (strcmp(argv[1], "spin") == 0) { in main() 187 } else if (strcmp(argv[1], "rw") == 0) { in main() 217 if (strcmp(argv[3], "abs") != 0) { in main() 223 if (strcmp(argv[1], "all") == 0) { in main() 233 } else if (strcmp(argv[1], "spin") == 0) { in main() [all …]
|
| /xnu-11215/tests/ |
| H A D | posix_spawnattr_set_crash_behavior_np_child.c | 24 if (strcmp(mode, spin_modes[i]) == 0) { in _should_spin() 39 if (strcmp(argv[1], "crash") == 0) { in main() 41 } else if (strcmp(argv[1], "success") == 0) { in main() 43 } else if (strcmp(argv[1], "exit") == 0) { in main() 45 } else if (strcmp(argv[1], "wait") == 0) { in main()
|
| H A D | subsystem_root_path_helper.c | 18 if (!strcmp(behavior, HELPER_BEHAVIOR_SET)) { in main() 20 if (strcmp(subsystem_root_path, expected_subsystem_root_path)) { in main() 23 } else if (!strcmp(behavior, HELPER_BEHAVIOR_NOT_SET)) { in main() 28 } else if (!strcmp(behavior, HELPER_BEHAVIOR_FORK_EXEC)) { in main() 50 } else if (!strcmp(behavior, HELPER_BEHAVIOR_SPAWN)) { in main()
|
| H A D | text_corruption_helper.c | 38 if (strcmp(argv[argc - 1], "foo") == 0) { in main() 40 } else if (strcmp(argv[argc - 1], "Xfoo") == 0) { in main() 46 } else if (strcmp(argv[argc - 1], "atan") == 0) { in main() 48 } else if (strcmp(argv[argc - 1], "Xatan") == 0) { in main()
|
| H A D | prioritize_process_launch_helper.c | 175 if (strcmp(argv[1], "EXIT") == 0) { in main() 178 } else if (strcmp(argv[1], "EXEC") == 0) { in main() 187 } else if (strcmp(argv[1], "SETEXEC") == 0) { in main() 210 } else if (strcmp(argv[1], "SETEXEC_PORTS") == 0) { in main() 254 } else if (strcmp(argv[1], "WAIT") == 0) { in main() 260 } else if (strcmp(argv[1], "MULTIWAIT") == 0) { in main() 272 } else if (strcmp(argv[1], "MSGSYNC") == 0) { in main()
|
| H A D | posix_spawnattr_set_crash_behavior_np.c | 28 bool should_wait = (strcmp(child_mode, "wait") == 0); in _do_set_crash_behavior_test() 29 bool reason = (strcmp(child_mode, "reason") == 0); in _do_set_crash_behavior_test() 30 bool reason_signal = (strcmp(child_mode, "reason_signal") == 0); in _do_set_crash_behavior_test() 31 bool dirty = (strcmp(child_mode, "dirty") == 0); in _do_set_crash_behavior_test() 32 bool shutdown = (strcmp(child_mode, "clean") == 0) || dirty; in _do_set_crash_behavior_test()
|
| H A D | posix_spawn_alt_rosetta_helper.c | 31 if (strcmp(path_buffer, "/usr/libexec/rosetta/runtime") == 0) { in main() 34 } else if (strcmp(path_buffer, "/usr/local/libexec/rosetta/runtime_internal") == 0) { in main()
|
| H A D | kevent_qos.c | 1631 if (strcmp(wl_function, "workloop_cb_test_intransit") == 0) { in expect_kevent_id_recv() 1635 } else if (strcmp(wl_function, "workloop_cb_test_sync_send") == 0) { in expect_kevent_id_recv() 1639 } else if (strcmp(wl_function, "workloop_cb_test_sync_send_and_enable") == 0) { in expect_kevent_id_recv() 1647 } else if (strcmp(wl_function, "workloop_cb_test_send_two_sync") == 0) { in expect_kevent_id_recv() 1651 } else if (strcmp(wl_function, "workloop_cb_test_two_send_and_destroy") == 0) { in expect_kevent_id_recv() 1655 } else if (strcmp(wl_function, "workloop_cb_test_sync_send_reply") == 0) { in expect_kevent_id_recv() 1659 } else if (strcmp(wl_function, "workloop_cb_test_sync_send_deallocate") == 0) { in expect_kevent_id_recv() 1663 } else if (strcmp(wl_function, "workloop_cb_test_sync_send_reply_kevent") == 0) { in expect_kevent_id_recv() 1675 } else if (strcmp(wl_function, "workloop_cb_test_sync_send_do_nothing") == 0) { in expect_kevent_id_recv() 1703 } else if (strcmp(wl_function, "workloop_cb_test_kernel_sync_send") == 0) { in expect_kevent_id_recv() [all …]
|
| H A D | pfz.c | 111 T_ASSERT_EQ(strcmp(node_ptr->str, str1), 0, "Dequeued first node correctly"); 114 T_ASSERT_EQ(strcmp(node_ptr->str, str2), 0, "Dequeued second node correctly"); 165 T_ASSERT_EQ(strcmp(node_ptr->str, str1), 0, "Dequeued first node correctly"); 169 T_ASSERT_EQ(strcmp(node_ptr->str, str2), 0, "Dequeued second node correctly");
|
| H A D | manual_wq_cooperative.c | 249 if (strcmp(cmd, "cooperative_then_overcommit") == 0) { in main() 253 if (strcmp(cmd, "stress_test") == 0) { in main()
|
| H A D | get_shared_cache_address.c | 31 if (strcmp(argv[1], "check_rusage_flag") == 0) { in main()
|
| /xnu-11215/tools/tests/MPMMTest/ |
| H A D | KQMPMMtest.c | 151 if (0 == strcmp("-verbose", argv[0])) { in parse_args() 163 } else if (0 == strcmp("-oneway", argv[0])) { in parse_args() 166 } else if (0 == strcmp("-type", argv[0])) { in parse_args() 170 if (0 == strcmp("trivial", argv[1])) { in parse_args() 172 } else if (0 == strcmp("inline", argv[1])) { in parse_args() 186 } else if (0 == strcmp("-count", argv[0])) { in parse_args() 204 } else if (0 == strcmp("-delay", argv[0])) { in parse_args() 210 } else if (0 == strcmp("-spin", argv[0])) { in parse_args() 216 } else if (0 == strcmp("-pages", argv[0])) { in parse_args() 222 } else if (0 == strcmp("-select", argv[0])) { in parse_args() [all …]
|
| H A D | MPMMtest.c | 181 if (0 == strcmp("-verbose", argv[0])) { in parse_args() 193 } else if (0 == strcmp("-oneway", argv[0])) { in parse_args() 196 } else if (0 == strcmp("-perf", argv[0])) { in parse_args() 199 } else if (0 == strcmp("-type", argv[0])) { in parse_args() 203 if (0 == strcmp("trivial", argv[1])) { in parse_args() 205 } else if (0 == strcmp("inline", argv[1])) { in parse_args() 219 } else if (0 == strcmp("-count", argv[0])) { in parse_args() 237 } else if (0 == strcmp("-delay", argv[0])) { in parse_args() 243 } else if (0 == strcmp("-spin", argv[0])) { in parse_args() 249 } else if (0 == strcmp("-pages", argv[0])) { in parse_args() [all …]
|
| /xnu-11215/tools/tests/personas/ |
| H A D | persona_mgr.c | 210 if (strcmp(op_str, "create") == 0) { in main() 212 } else if (strcmp(op_str, "destroy") == 0) { in main() 214 } else if (strcmp(op_str, "lookup") == 0) { in main() 216 } else if (strcmp(op_str, "support") == 0) { in main() 218 } else if (strcmp(op_str, "help") == 0 || strcmp(op_str, "-h") == 0) { in main()
|
| /xnu-11215/libkern/c++/ |
| H A D | OSUnserializeXML.y | 977 if (!strcmp(tag, "array")) { in yylex() 986 if (!strcmp(tag, "dict")) { in yylex() 993 if (!strcmp(tag, "data")) { in yylex() 1003 if (!strcmp(attributes[i], "format") && !strcmp(values[i], "hex")) { in yylex() 1022 if (!strcmp(tag, "false")) { in yylex() 1049 if (!strcmp(tag, "key")) { in yylex() 1059 || strcmp(tag, "key")) { in yylex() 1066 if (!strcmp(tag, "plist")) { in yylex() 1072 if (!strcmp(tag, "string")) { in yylex() 1090 if (!strcmp(tag, "set")) { in yylex() [all …]
|
| /xnu-11215/osfmk/kern/ |
| H A D | core_analytics.c | 76 if (strcmp(*field_spec, _CA_STRINGIFY_EXPAND(CA_INT)) == 0) { in event_field_size() 78 } else if ((strcmp(*field_spec, core_analytics_ca_bool_cpp_stringified) == 0) || in event_field_size() 79 (strcmp(*field_spec, core_analytics_ca_bool_c_stringified) == 0)) { in event_field_size()
|
| /xnu-11215/tests/skywalk/ |
| H A D | skt_flowlookup.c | 129 assert(strcmp(rx_payload.data, tx_payload.data) == 0); in test_tcp_flow_send() 168 assert(strcmp(rx_payload.data, tx_payload.data) == 0); in test_tcp_flow_receive() 202 assert(strcmp(rx_payload.data, tx_payload.data) == 0); in test_tcp_flow_listen() 221 assert(strcmp(rx_payload.data, tx_payload.data) == 0); in test_tcp_flow_listen() 256 assert(strcmp(rx_payload.data, tx_payload.data) == 0); in test_tcp_flow_listen_v6() 276 assert(strcmp(rx_payload.data, tx_payload.data) == 0); in test_tcp_flow_listen_v6() 363 assert(strcmp(rx_payload.data, tx_payload.data) == 0); in test_ip_flow_listen() 383 assert(strcmp(rx_payload.data, tx_payload.data) == 0); in test_ip_flow_listen()
|
| /xnu-11215/libsyscall/wrappers/spawn/ |
| H A D | posix_spawn_filtering.c | 182 if (strcmp(fname_basename, binary_name) == 0) { in evaluate_rules() 204 if (strcmp(binpref, "x86_64") == 0) { in evaluate_rules() 210 if (strcmp(alt_rosetta, "1") == 0) { in evaluate_rules() 215 if (strcmp(enable_sec_transitions, "1") == 0) { in evaluate_rules()
|
| /xnu-11215/libkern/coreanalytics/ |
| H A D | coreanalytics_shim.cpp | 94 if (strcmp(*field_spec, _CA_STRINGIFY_EXPAND(CA_INT)) == 0) { in serialize_event_field() 98 } else if (strcmp(*field_spec, core_analytics_ca_bool_cpp_stringified) == 0 || in serialize_event_field() 99 strcmp(*field_spec, core_analytics_ca_bool_c_stringified) == 0) { in serialize_event_field()
|
| /xnu-11215/SETUP/kextsymboltool/ |
| H A D | kextsymboltool.c | 205 return strcmp(left->name, right->name); in qsort_cmp() 218 return strcmp(key, cmp->name); in bsearch_cmp() 484 if (0 == strcmp(archstring, archlist[i].name)) { in lookup_arch() 529 if (!strcmp("-sect", argv[i])) { in main() 534 if (!strcmp("-diff", argv[i])) { in main() 546 if (!strcmp("-arch", argv[i])) { in main() 554 if (!strcmp("-output", argv[i])) { in main() 559 if (!strcmp("-import", argv[i])) { in main() 561 } else if (!strcmp("-export", argv[i])) { in main() 844 && !strcmp(export_symbols[export_idx - 1].name, export_symbols[export_idx].name)) { in main()
|
| /xnu-11215/iokit/System/ |
| H A D | OSUnserializeXMLSharedImplementation.h | 2588 if (!strcmp(tag, "array")) { in yylex() 2597 if (!strcmp(tag, "dict")) { in yylex() 2604 if (!strcmp(tag, "data")) { in yylex() 2614 if (!strcmp(attributes[i], "format") && !strcmp(values[i], "hex")) { in yylex() 2633 if (!strcmp(tag, "false")) { in yylex() 2660 if (!strcmp(tag, "key")) { in yylex() 2670 || strcmp(tag, "key")) { in yylex() 2677 if (!strcmp(tag, "plist")) { in yylex() 2683 if (!strcmp(tag, "string")) { in yylex() 2701 if (!strcmp(tag, "set")) { in yylex() [all …]
|
| /xnu-11215/libkern/libkern/c++/ |
| H A D | OSUnserializeXMLSharedImplementation.h | 2588 if (!strcmp(tag, "array")) { in yylex() 2597 if (!strcmp(tag, "dict")) { in yylex() 2604 if (!strcmp(tag, "data")) { in yylex() 2614 if (!strcmp(attributes[i], "format") && !strcmp(values[i], "hex")) { in yylex() 2633 if (!strcmp(tag, "false")) { in yylex() 2660 if (!strcmp(tag, "key")) { in yylex() 2670 || strcmp(tag, "key")) { in yylex() 2677 if (!strcmp(tag, "plist")) { in yylex() 2683 if (!strcmp(tag, "string")) { in yylex() 2701 if (!strcmp(tag, "set")) { in yylex() [all …]
|
| /xnu-11215/libsyscall/wrappers/ |
| H A D | _libc_funcptr.c | 167 .strcmp = _libkernel_strcmp, 254 strcmp(const char *s1, const char *s2) in strcmp() function 256 return _libkernel_string_functions->strcmp(s1, s2); in strcmp()
|
| /xnu-11215/tests/vfs/ |
| H A D | getattrlist_mountextflags.c | 79 if (strcmp(mntbuf[i].f_fstypename, FSTYPE_MSDOS)) { in get_mount_path() 84 if (strcmp(mntbuf[i].f_fstypename, FSTYPE_LIFS)) { in get_mount_path()
|
| /xnu-11215/doc/primitives/ |
| H A D | string-handling.md | 23 result. Given `strcmp(first, secnd, n)`, you need to know the types of `first` 55 strings (`strlen`, `strcmp`, `strchr`, etc) are generally found to be safe 107 * `strbufcmp(a, alen, b, len)`: like `strcmp`; 115 * `strlcmp(a, b, alen)`: like `strcmp`; 224 if (strcmp(f->buf1, f->buf2) == 0) { /* ... */ } 240 That is, to implement `bar`, you have a choice of `strcmp`, `strncmp` and 246 `strbufcmp`, `strlcmp` or even `strcmp` over `strncmp` (depending on whether
|