Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 160) sorted by relevance

1234567

/xnu-11215/libsyscall/wrappers/libproc/
H A Dproc_listpidspath.c188 return status; in check_process_vnodes()
195 return status; in check_process_vnodes()
235 return status; in check_process_text()
282 int status; in check_process_fds() local
480 int status; in check_process_phase1() local
486 return status; in check_process_phase1()
493 return status; in check_process_phase1()
500 return status; in check_process_phase1()
518 int status; in check_process_phase2() local
524 return status; in check_process_phase2()
[all …]
/xnu-11215/bsd/kern/
H A Dkern_memorystatus_policy.c84 &status->msh_available_pages_below_soft, in memorystatus_health_check()
85 &status->msh_available_pages_below_idle, in memorystatus_health_check()
93 status->msh_phantom_cache_pressure = false; in memorystatus_health_check()
96 status->msh_phantom_cache_pressure && in memorystatus_health_check()
97 !(status->msh_compressor_is_thrashing && status->msh_compressor_is_low_on_space)) { in memorystatus_health_check()
98 status->msh_filecache_is_thrashing = true; in memorystatus_health_check()
119 status->msh_pageout_starved); in memorystatus_is_system_healthy()
121 return !status->msh_zone_map_is_exhausted; in memorystatus_is_system_healthy()
149 memorystatus_system_health_t status; in memorystatus_pick_action() local
150 memorystatus_health_check(&status); in memorystatus_pick_action()
[all …]
/xnu-11215/osfmk/arm64/
H A Ddbgwrap.c145 if (*status < 0) { in ml_dbgwrap_stuff_instr()
169 *status = DBGWRAP_ERR_INSTR_TIMEOUT; in ml_dbgwrap_stuff_instr()
190 *status = DBGWRAP_ERR_INSTR_ERROR; in ml_dbgwrap_stuff_instr()
198 if (*status < 0) { in ml_dbgwrap_read_dtr()
212 *status = DBGWRAP_ERR_INSTR_ERROR; in ml_dbgwrap_read_dtr()
216 *status = DBGWRAP_ERR_INSTR_TIMEOUT; in ml_dbgwrap_read_dtr()
259 ml_dbgwrap_stuff_instr(cdp, instr, timeout_ns, &status); in ml_dbgwrap_halt_cpu_with_state()
263 ml_dbgwrap_stuff_instr(cdp, instr, timeout_ns, &status); in ml_dbgwrap_halt_cpu_with_state()
273 ml_dbgwrap_stuff_instr(cdp, instr, timeout_ns, &status); in ml_dbgwrap_halt_cpu_with_state()
275 ml_dbgwrap_stuff_instr(cdp, instr, timeout_ns, &status); in ml_dbgwrap_halt_cpu_with_state()
[all …]
/xnu-11215/osfmk/kern/
H A Dexclaves_boot.c193 assert3u(status, !=, EXCLAVES_BS_NOT_DEFINED); in exclaves_boot_status_is_supported()
195 return status != EXCLAVES_BS_NOT_DEFINED && in exclaves_boot_status_is_supported()
196 status != EXCLAVES_BS_NOT_SUPPORTED; in exclaves_boot_status_is_supported()
205 const exclaves_boot_status_t status = in exclaves_boot_exclavecore() local
216 if (status != EXCLAVES_BS_NOT_STARTED) { in exclaves_boot_exclavecore()
257 const exclaves_boot_status_t status = in exclaves_boot_exclavekit() local
264 switch (status) { in exclaves_boot_exclavekit()
437 exclaves_boot_status_t status = in exclaves_get_boot_stage() local
440 switch (status) { in exclaves_get_boot_stage()
456 panic("unknown boot status: %u", status); in exclaves_get_boot_stage()
[all …]
H A Dexclaves_sensor.c81 assert3u(status, >, 0); in eic_sensorstatus_to_sensor_status()
84 switch (status) { in eic_sensorstatus_to_sensor_status()
150 assert3p(status, !=, NULL); in exclaves_eic_sensor_start()
167 assert3p(status, !=, NULL); in exclaves_eic_sensor_status()
184 assert3p(status, !=, NULL); in exclaves_eic_sensor_copy()
283 exclaves_sensor_status_t status; in do_healthcheck() local
317 exclaves_sensor_status_t status; in do_min_on_time() local
319 &status); in do_min_on_time()
406 exclaves_sensor_status_t *status) in exclaves_sensor_start() argument
454 exclaves_sensor_status_t *status) in exclaves_sensor_stop() argument
[all …]
/xnu-11215/tests/
H A Dsuspended_spawn_26184412.c59 int status = 0; in spawn_and_signal() local
60 int waitpid_result = waitpid(child_pid, &status, WUNTRACED | WNOHANG); in spawn_and_signal()
65 T_ASSERT_EQ(WIFEXITED(status), 0, "before SIGCONT: must not have exited"); in spawn_and_signal()
66 T_ASSERT_EQ(WIFSTOPPED(status), 1, "before SIGCONT: must be stopped"); in spawn_and_signal()
75 status = 0; in spawn_and_signal()
76 waitpid_result = waitpid(child_pid, &status, 0); in spawn_and_signal()
82 T_ASSERT_EQ(WIFSIGNALED(status), 1, "child should have exited due to signal"); in spawn_and_signal()
83 T_ASSERT_EQ(WTERMSIG(status), SIGKILL, "child should have exited due to SIGKILL"); in spawn_and_signal()
85 T_ASSERT_EQ(WIFEXITED(status), 1, "child should have exited normally"); in spawn_and_signal()
86 T_ASSERT_EQ(WEXITSTATUS(status), EX_OK, "child should have exited with success"); in spawn_and_signal()
[all …]
H A Dfreebsd_waitpid_nohang.c39 int status, r; variable
49 status = 42;
50 pid = waitpid(child, &status, WNOHANG);
52 T_EXPECT_EQ(status, 42, "status is unaffected as expected");
59 status = -1;
60 pid = waitpid(child, &status, WNOHANG);
62 T_EXPECT_EQ(WIFSIGNALED(status), true, "child was signaled");
63 T_EXPECT_EQ(WTERMSIG(status), SIGTERM, "child was sent SIGTERM");
H A Dcodesigntests.c94 uint32_t status; variable
120 rcent = csops(pid, CS_OPS_SET_STATUS, &status, sizeof(status) - 1);
123 status = CS_RESTRICT;
124 rcent = csops(pid, CS_OPS_SET_STATUS, &status, sizeof(status));
127 rcent = csops(pid, CS_OPS_STATUS, &status, sizeof(status));
135 if ((status & CS_KILL) == 0) {
139 status = CS_ENFORCEMENT;
140 rcent = csops(pid, CS_OPS_SET_STATUS, &status, sizeof(status));
H A Dperf_spawn_fork.c20 int status; \
28 waitpid(pid, &status, 0); \
29 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { \
50 int status; \
59 waitpid(pid, &status, 0); \
60 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { \
H A Dposix_spawn_file_actions.c56 int status = 0; variable
57 int waitpid_result = waitpid(child_pid, &status, 0);
60 T_ASSERT_EQ(WIFEXITED(status), 1, "child should have exited normally");
61 T_ASSERT_EQ(WEXITSTATUS(status), EX_OK, "child should have exited with success");
125 int status = 0; variable
126 int waitpid_result = waitpid(child_pid, &status, 0);
129 T_ASSERT_EQ(WIFEXITED(status), 1, "child should have exited normally");
130 T_ASSERT_EQ(WEXITSTATUS(status), EX_OK, "child should have exited with success");
H A Dnet_ndrv.c69 int status; in ndrv_socket_do_multicast() local
79 status = setsockopt(s, SOL_NDRVPROTO, in ndrv_socket_do_multicast()
82 T_ASSERT_POSIX_SUCCESS(status, in ndrv_socket_do_multicast()
104 int status; in ndrv_socket_open() local
112 status = bind(s, (struct sockaddr *)&ndrv, sizeof(ndrv)); in ndrv_socket_open()
113 T_ASSERT_POSIX_SUCCESS(status, "bind ndrv socket"); in ndrv_socket_open()
H A Dvm_set_max_addr_test.c27 int status = 0; variable
38 result = waitpid(child_pid, &status, 0);
41 code = WEXITSTATUS(status);
50 result = waitpid(child_pid, &status, 0);
53 code = WEXITSTATUS(status);
H A Dsubsystem_root_path.h16 int status; in _spawn_and_wait() local
21 if (waitpid(pid, &status, 0) < 0) { in _spawn_and_wait()
25 if (WIFEXITED(status) && (WEXITSTATUS(status) == 0)) { in _spawn_and_wait()
H A Dsr_entitlement.c19 int status = 0; in my_system() local
36 if (!dt_waitpid(pid, &status, NULL, 30)) { in my_system()
37 if (status != 0) { in my_system()
38 return status; in my_system()
42 return status; in my_system()
H A Dtask_fatal_port.c27 int port_name_size, status, ret; variable
50 pid = waitpid(child, &status, 0);
52 T_EXPECT_EQ(WIFSIGNALED(status), true, "child was signaled");
53 T_EXPECT_EQ(WTERMSIG(status), SIGKILL, "child was sent SIGKILL");
H A Dpipe_read_infloop_55437634.c25 int status = 0; variable
48 T_ASSERT_POSIX_SUCCESS(waitpid(child, &status, 0), NULL);
51 T_ASSERT_TRUE(WIFEXITED(status), NULL);
52 T_ASSERT_EQ(WEXITSTATUS(status), 0, NULL);
H A Dtest_static_binary_csflags.c20 uint32_t status = 0; variable
21 ret = csops(pid, CS_OPS_STATUS, &status, sizeof(status));
26 …T_EXPECT_BITS_SET(status, CS_NO_UNTRUSTED_HELPERS, "CS_NO_UNTRUSTED_HELPERS should be set on stati…
/xnu-11215/tests/vm/
H A Dvm_reclaim.c138 int status; in spawn_helper_and_wait_for_exit() local
142 rc = waitpid(child_pid, &status, 0); in spawn_helper_and_wait_for_exit()
144 return status; in spawn_helper_and_wait_for_exit()
449 int status = 0, code = 0;
450 pid_t rc = waitpid(child_pid, &status, 0);
452 code = WEXITSTATUS(status);
597 int status; in vm_reclaim_async_exception()
598 pid_t rc = waitpid(child_pid, &status, 0); in vm_reclaim_async_exception()
649 int status; variable
689 int status;
[all …]
H A Dzalloc.c55 int status = 0; variable
73 dt_waitpid(pid, &status, NULL, 0);
74 if (WIFEXITED(status)) {
76 pid, WEXITSTATUS(status));
78 int sig = WTERMSIG(status);
82 T_ASSERT_TRUE(WIFEXITED(status) && WEXITSTATUS(status) == 0,
H A Dmemorystatus_jetsam_zprint_snapshot.c175 int status; in run_jzs_test() local
201 while (0 == waitpid(child_pid, &status, WNOHANG)) { in run_jzs_test()
214 if (WIFEXITED(status)) { in run_jzs_test()
215 T_LOG("child %d exited, status %d", child_pid, WEXITSTATUS(status)); in run_jzs_test()
216 } else if (WIFSIGNALED(status)) { in run_jzs_test()
217 T_LOG("child %d killed, status %d", child_pid, WTERMSIG(status)); in run_jzs_test()
218 } else if (WIFSTOPPED(status)) { in run_jzs_test()
219 T_LOG("child %d stopped, status %d", child_pid, WSTOPSIG(status)); in run_jzs_test()
221 T_LOG("child %d, unexpected status 0x%x", child_pid, status); in run_jzs_test()
/xnu-11215/tests/ipc/
H A Dimmovable_rights.c23 mach_port_status_t status; variable
26 MACH_PORT_RECEIVE_STATUS, (mach_port_info_t)&status, &status_size);
28 T_LOG("Status flags %d", status.mps_flags);
29 …T_ASSERT_NE(0, (status.mps_flags & MACH_PORT_STATUS_FLAG_GUARD_IMMOVABLE_RECEIVE), "Imm rcv bit is…
41 MACH_PORT_RECEIVE_STATUS, (mach_port_info_t)&status, &status_size);
43 T_LOG("Status flags %d", status.mps_flags);
44 …T_ASSERT_NE(0, (status.mps_flags & MACH_PORT_STATUS_FLAG_GUARD_IMMOVABLE_RECEIVE), "Imm rcv bit is…
/xnu-11215/iokit/Kernel/
H A DIOInterleavedMemoryDescriptor.cpp197 IOReturn status = kIOReturnSuccess; in prepare() local
205 status = _descriptors[index]->prepare(forDirection); in prepare()
206 if (status != kIOReturnSuccess) { in prepare()
211 if (status != kIOReturnSuccess) { in prepare()
218 if (status == kIOReturnSuccess) { in prepare()
222 return status; in prepare()
236 IOReturn status; in complete() local
244 status = _descriptors[index]->complete(forDirection); in complete()
245 if (status != kIOReturnSuccess) { in complete()
246 statusFinal = status; in complete()
[all …]
/xnu-11215/osfmk/corecrypto/
H A Dccdrbg_nisthmac.c157 int status = CCDRBG_STATUS_PARAM_ERROR; in init() local
162 status = CCDRBG_STATUS_OK; in init()
172 return status; in init()
188 int status = CCDRBG_STATUS_PARAM_ERROR; in reseed() local
192 status = CCDRBG_STATUS_OK; in reseed()
199 return status; in reseed()
219 int status = CCDRBG_STATUS_PARAM_ERROR; in generate() local
223 status = CCDRBG_STATUS_NEED_RESEED; in generate()
226 status = CCDRBG_STATUS_OK; in generate()
242 status = CCDRBG_STATUS_ABORT; in generate()
[all …]
/xnu-11215/osfmk/kdp/output_stages/
H A Dout_lz4.c63 compression_status_t status; in lz4_stage_reset() local
73 status = compression_ki_ptr->compression_stream_reinit(&data->stream, in lz4_stage_reset()
75 if (COMPRESSION_STATUS_OK != status) { in lz4_stage_reset()
91 compression_status_t status; in lz4_stage_stream() local
110 status = compression_ki_ptr->compression_stream_process(&data->stream, in lz4_stage_stream()
112 if (COMPRESSION_STATUS_ERROR == status) { in lz4_stage_stream()
130 } while (data->stream.src_size || (finalize && COMPRESSION_STATUS_END != status)); in lz4_stage_stream()
222 compression_status_t status; in lz4_stage_initialize() local
243 status = compression_ki_ptr->compression_stream_init(&data->stream, COMPRESSION_STREAM_ENCODE, in lz4_stage_initialize()
245 if (COMPRESSION_STATUS_ERROR == status) { in lz4_stage_initialize()
/xnu-11215/osfmk/i386/
H A Dmachine_check.c272 ia32_mci_status_t status; in mca_dump_bank() local
275 status = bank->mca_mci_status; in mca_dump_bank()
276 if (!status.bits.val) { in mca_dump_bank()
281 i, IA32_MCi_STATUS(i), status.u64); in mca_dump_bank()
283 if (status.bits.addrv) { in mca_dump_bank()
288 if (status.bits.miscv) { in mca_dump_bank()
362 ia32_mcg_status_t status; in mca_dump() local
370 status = mcsp->mca_mcg_status; in mca_dump()
372 i, status.u64); in mca_dump()

1234567