Searched refs:npids (Results 1 – 2 of 2) sorted by relevance
| /xnu-8020.101.4/bsd/kern/ |
| H A D | sys_coalition.c | 552 int npids = 0; variable 595 npids = coalition_get_pid_list(coal, COALITION_ROLEMASK_ALLROLES, sort_order, 597 if (npids > (int)(sizeof(pidlist) / sizeof(pidlist[0]))) { 599 coalition_id(coal), pid, npids); 600 npids = sizeof(pidlist) / sizeof(pidlist[0]); 606 if (npids < 0) { 608 return -npids; 611 if (npids == 0) { 615 return SYSCTL_OUT(req, pidlist, sizeof(pidlist[0]) * npids);
|
| /xnu-8020.101.4/tests/ |
| H A D | proc_info.c | 2058 int npids; variable 2080 npids = proc_listpids(PROC_KDBG_ONLY, 0, pids, sizeof(pids)); 2081 T_EXPECT_EQ(npids, 0, "no processes should be filtered initially"); 2090 npids = proc_listpids(PROC_KDBG_ONLY, 0, pids, sizeof(pids)); 2091 npids /= 4; 2092 T_EXPECT_EQ(npids, 1, "a process should be filtered");
|