/third_party/ltp/testcases/network/nfs/nfs_stress/ |
H A D | nfs06.sh | 19 [ -n "$pids" ] && kill -9 $pids 28 local pids 31 pids="$pids $!" 35 tst_res TINFO "waiting for pids:$pids" 36 for p in $pids; do 40 pids=
|
/third_party/ltp/testcases/kernel/syscalls/sched_getparam/ |
H A D | sched_getparam01.c | 27 static pid_t pids[2] = {0, 0}; variable 39 TST_EXP_PASS_SILENT(tv->sched_getparam(pids[n], ¶m), in verify_sched_getparam() 40 "sched_getparam(%d)", pids[n]); in verify_sched_getparam() 51 pids[n], param.sched_priority); in verify_sched_getparam() 53 tst_res(TPASS, "sched_getparam(%d) got expected sched_priority 0", pids[n]); in verify_sched_getparam() 67 pids[1] = getpid(); in setup() 74 .tcnt = ARRAY_SIZE(pids),
|
/third_party/libwebsockets/lwsws/ |
H A D | main.c | 64 static int pids[32]; variable 215 for (m = 0; m < (int)LWS_ARRAY_SIZE(pids); m++) in reload_handler() 216 if (pids[m]) in reload_handler() 217 kill(pids[m], SIGHUP); in reload_handler() 228 for (m = 0; m < (int)LWS_ARRAY_SIZE(pids); m++) in reload_handler() 229 if (pids[m]) in reload_handler() 230 kill(pids[m], SIGTERM); in reload_handler() 294 for (m = 0; m < (int)LWS_ARRAY_SIZE(pids); m++) in main() 295 if (!pids[m]) { in main() 296 pids[ in main() [all...] |
/third_party/node/test/fixtures/clustered-server/ |
H A D | app.js | 22 const pids = []; 23 pids.push(process.pid); 25 pids.push(cluster.workers[key].process.pid); 26 process.send({ type: 'pids', pids: pids });
|
/third_party/ltp/testcases/network/nfs/nfslock01/ |
H A D | nfslock01 | 43 local pids=$! 45 pids="$pids $!" 47 tst_res TINFO "waiting for pids: $pids" 48 for p in $pids; do
|
H A D | nfslock01.sh | 63 local pids=$! 65 pids="$pids $!" 67 tst_res TINFO "waiting for pids: $pids" 68 for p in $pids; do
|
/third_party/ltp/testcases/kernel/containers/pidns/ |
H A D | pidns05.c | 52 static int find_cinit_pids(pid_t *pids) in find_cinit_pids() argument 68 pids[next] = pid; in find_cinit_pids() 86 pid_t pids[MAX_DEPTH]; in run() local 97 TST_EXP_POSITIVE(find_cinit_pids(pids)); in run() 108 kill(pids[i], SIGKILL); in run() 109 waitpid(pids[i], &status, 0); in run()
|
/third_party/ltp/testcases/kernel/syscalls/futex/ |
H A D | futex_wake03.c | 68 pid_t pids[55]; in run() local 71 for (i = 0; i < ARRAY_SIZE(pids); i++) { in run() 72 pids[i] = SAFE_FORK(); in run() 73 if (!pids[i]) in run() 77 for (i = 0; i < ARRAY_SIZE(pids); i++) in run() 78 TST_PROCESS_STATE_WAIT(pids[i], 'S', 0); in run()
|
/third_party/ltp/testcases/kernel/controllers/pids/ |
H A D | pids.sh | 6 # ./pids.sh caseno max 44 cgroup_require "pids" 45 cgroup_version=$(cgroup_get_version "pids") 46 testpath=$(cgroup_get_test_path "pids") 47 task_list=$(cgroup_get_task_list "pids") 110 ROD echo $max \> $testpath/pids.max 114 # should return 2 because the limit of pids is reached 133 ROD echo $lim \> $testpath/pids.max 154 ROD echo 0 \> $testpath/pids.max 166 echo -1 > $testpath/pids [all...] |
/third_party/ltp/testcases/kernel/mem/cpuset/ |
H A D | cpuset01.c | 115 pid_t *pids; in mem_hog_cpuset() local 126 pids = SAFE_MALLOC(sizeof(pid_t) * ntasks); in mem_hog_cpuset() 128 switch (pids[i] = fork()) { in mem_hog_cpuset() 130 tst_res(TFAIL | TERRNO, "fork %d", pids[i]); in mem_hog_cpuset() 142 if (kill(pids[i], SIGUSR1) == -1) { in mem_hog_cpuset() 143 tst_res(TFAIL | TERRNO, "kill %d", pids[i]); in mem_hog_cpuset()
|
/third_party/toybox/toys/lsb/ |
H A D | killall.c | 35 struct int_list { struct int_list *next; int val; } *pids; 52 struct int_list *new = xmalloc(sizeof(*TT.pids)); in kill_process() 54 new->next = TT.pids; in kill_process() 55 TT.pids = new; in kill_process() 110 struct int_list *p = TT.pids; in killall_main() 120 llist_traverse(TT.pids, free); in killall_main()
|
/third_party/ltp/testcases/kernel/controllers/memcg/stress/ |
H A D | memcg_stress_test.sh | 66 local i pid pids 75 pids="$pids $!" 78 for pid in $pids; do 87 for pid in $pids; do
|
/third_party/cups-filters/filter/ |
H A D | sys5ippprinter.c | 628 cups_array_t *pids; /* Executed filters array */ in exec_filters() local 650 pids = cupsArrayNew((cups_array_func_t)compare_pids, NULL); in exec_filters() 700 cupsArrayAdd(pids, pid_entry); in exec_filters() 730 while (cupsArrayCount(pids) > 0) in exec_filters() 737 for (pid_entry = (filter_pid_t *)cupsArrayFirst(pids); in exec_filters() 739 pid_entry = (filter_pid_t *)cupsArrayNext(pids)) in exec_filters() 748 if ((pid_entry = (filter_pid_t *)cupsArrayFind(pids, &key)) != NULL) in exec_filters() 750 cupsArrayRemove(pids, pid_entry); in exec_filters() 771 cupsArrayDelete(pids); in exec_filters()
|
/third_party/cups-filters/cupsfilters/ |
H A D | pdftoippprinter.c | 678 cups_array_t *pids; /* Executed filters array */ in exec_filters() local 700 pids = cupsArrayNew((cups_array_func_t)compare_pids, NULL); in exec_filters() 745 cupsArrayAdd(pids, pid_entry); in exec_filters() 772 while (cupsArrayCount(pids) > 0) { in exec_filters() 776 for (pid_entry = (filter_pid_t *)cupsArrayFirst(pids); in exec_filters() 778 pid_entry = (filter_pid_t *)cupsArrayNext(pids)) in exec_filters() 786 if ((pid_entry = (filter_pid_t *)cupsArrayFind(pids, &key)) != NULL) { in exec_filters() 787 cupsArrayRemove(pids, pid_entry); in exec_filters() 806 cupsArrayDelete(pids); in exec_filters()
|
/third_party/ltp/testcases/kernel/controllers/cgroup/ |
H A D | cgroup_core03.c | 82 pid_t pids[MAX_PID_NUM]; in run() local 96 pids[i] = cg_run_nowait(cg_child_test_simple); in run() 103 TST_EXP_PASS_SILENT(wait_for_pid(pids[i])); in run()
|
/third_party/ltp/testcases/network/stress/multicast/grp-operation/ |
H A D | mcast-lib.sh | 117 local cnt define_src_addr filter params pid pids ret 140 pids="$! $pids" 144 for pid in $pids; do wait $pid; done
|
/third_party/toybox/toys/pending/ |
H A D | tcpsvd.c | 71 struct list_pid *pids = NULL; variable 123 static char *delete(struct list_pid **pids, int pid) in delete() argument 125 struct list_pid *prev, *free_node, *head = *pids; in delete() 134 if (!prev) *pids = head->next; in delete() 176 char *ip = delete(&pids, pid_n); in handle_exit() 397 insert(&pids, pid, addr); in tcpsvd_main()
|
/third_party/alsa-lib/src/control/ |
H A D | control_shm.c | 158 size_t bytes = list->space * sizeof(*list->pids); in snd_ctl_shm_elem_list() 160 snd_ctl_elem_id_t *pids = list->pids; in snd_ctl_shm_elem_list() local 169 list->pids = pids; in snd_ctl_shm_elem_list() 170 bytes = list->used * sizeof(*list->pids); in snd_ctl_shm_elem_list() 171 memcpy(pids, (void *)ctrl->data, bytes); in snd_ctl_shm_elem_list()
|
H A D | control.c | 415 assert(list->space == 0 || list->pids); in snd_ctl_elem_list() 1742 free(obj->pids); in snd_ctl_elem_list_alloc_space() 1743 obj->pids = calloc(entries, sizeof(*obj->pids)); in snd_ctl_elem_list_alloc_space() 1744 if (!obj->pids) { in snd_ctl_elem_list_alloc_space() 1762 free(obj->pids); in snd_ctl_elem_list_free_space() 1763 obj->pids = NULL; in snd_ctl_elem_list_free_space() 2477 *ptr = obj->pids[idx]; in snd_ctl_elem_list_get_id() 2490 return obj->pids[idx].numid; in snd_ctl_elem_list_get_numid() 2503 return obj->pids[id in snd_ctl_elem_list_get_interface() [all...] |
H A D | hcontrol.c | 602 elem->id = list.pids[idx]; in snd_hctl_load() 620 free(list.pids); in snd_hctl_load()
|
H A D | control_ext.c | 101 ids = list->pids; in snd_ctl_ext_elem_list()
|
/third_party/ltp/testcases/network/stress/ssh/ |
H A D | ssh-stress.sh | 28 local pids 133 local start_epoc pids total_connections elapse_epoc new_pids 157 ssh_num=$(echo "$pids" | wc -w)
|
/third_party/ffmpeg/libavformat/ |
H A D | mpegts.c | 162 unsigned int pids[MAX_PIDS_PER_PROGRAM]; member 179 /** if true, all pids are analyzed to find streams */ 212 /** structure to keep track of Program->pids mapping */ 218 MpegTSFilter *pids[NB_PID_MAX]; member 238 {"merge_pmt_versions", "re-use streams when PMT's version/pids change", offsetof(MpegTSContext, merge_pmt_versions), AV_OPT_TYPE_BOOL, 936 if (p->pids[i] == pid) in add_pid_to_program() 939 p->pids[p->nb_pids++] = pid; in add_pid_to_program() 992 if (p->pids[j] != pid) in discard_pid() 1087 if (pid >= NB_PID_MAX || ts->pids[pid]) in mpegts_open_filter() 1092 ts->pids[pi in mpegts_open_filter() [all...] |
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
H A D | libcpuset.c | 2382 * 1) First, kill all the pids, looping until there are 2383 * no more pids in this cpuset or below, or until the 2412 * scan the task pids in a cpuset. If SIGKILL should -not- be sent, 2438 struct cpuset_pidlist *pl = NULL; /* pids in cpuset subtree */ in cpuset_nuke() 2558 * the end of pb->buf[] and accidentally find more pids. 2598 pid_t *pids; member 2602 /* Count how many pids in buf (one per line - just count newlines) */ 2615 /* Transform one-per-line ascii pids in pb to pid_t entries in pl */ 2624 pl->pids[n++] = p; in pid_transform() 2649 /* Return list pids i [all...] |
/third_party/alsa-lib/aserver/ |
H A D | aserver.c | 650 if (ctrl->u.element_list.space * sizeof(*ctrl->u.element_list.pids) > maxsize) { in ctl_shm_cmd() 654 ctrl->u.element_list.pids = (snd_ctl_elem_id_t*) ctrl->data; in ctl_shm_cmd()
|