/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
1-1.c | 46 int result, child_pid, tmp_errno, policy; local 51 child_pid = fork(); 52 if (child_pid == -1) { 55 } else if (child_pid == 0) { 59 if (sched_getparam(child_pid, ¶m) != 0) { 61 kill(child_pid, SIGUSR1); 80 result = sched_setparam(child_pid, ¶m); 83 if (sched_getparam(child_pid, ¶m) != 0) { 85 kill(child_pid, SIGUSR1); 91 kill(child_pid, SIGUSR1) [all...] |
23-7.c | 25 int child_pid, stat_loc, old_priority; local 34 child_pid = fork(); 35 if (child_pid == -1) { 38 } else if (child_pid == 0) { 50 sched_setparam(child_pid, ¶m);
|
27-1.c | 28 int result, child_pid, stat_loc; local 36 child_pid = fork(); 37 if (child_pid == -1) { 40 } else if (child_pid == 0) { 51 result = sched_setparam(child_pid, ¶m);
|
9-1.c | 98 static void kill_children(int *child_pid, int count) 103 kill(child_pid[i], SIGTERM); 104 free(child_pid); 109 int *child_pid, oldcount, newcount, shm_id, i; local 126 child_pid = malloc(nb_cpu * sizeof(int)); 156 child_pid[i] = fork(); 157 if (child_pid[i] == -1) { 159 kill_children(child_pid, i); 161 } else if (child_pid[i] == 0) { 170 child_pid[i] = fork() [all...] |
2-2.c | 88 int *child_pid; local 109 child_pid = malloc(nb_child * sizeof(int)); 110 if (child_pid == NULL) { 136 child_pid[i] = fork(); 137 if (child_pid[i] == -1) { 140 } else if (child_pid[i] == 0) { 163 if (kill(child_pid[nb_child - 1], SIGTERM) != 0) { 178 if (kill(child_pid[i], SIGKILL) != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/ |
4-1.c | 28 int result = -1, child_pid; local 32 child_pid = fork(); 33 if (child_pid == -1) { 36 } else if (child_pid == 0) { 47 result = sched_getparam(child_pid, ¶m);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getscheduler/ |
5-1.c | 27 int result = -1, child_pid; local 31 child_pid = fork(); 32 if (child_pid == -1) { 35 } else if (child_pid == 0) { 46 result = sched_getscheduler(child_pid);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
21-1.c | 27 int result, child_pid, stat_loc; local 33 child_pid = fork(); 34 if (child_pid == -1) { 37 } else if (child_pid == 0) { 48 result = sched_setscheduler(child_pid, SCHED_FIFO, ¶m);
|
17-7.c | 34 int child_pid, stat_loc; local 58 child_pid = fork(); 59 if (child_pid == -1) { 62 } else if (child_pid == 0) { 73 sched_setscheduler(child_pid, policy, ¶m);
|
/external/ltp/testcases/kernel/syscalls/clone/ |
clone01.c | 45 int status, child_pid; local 61 child_pid = wait(&status); 62 if (child_pid == -1) 66 if (TEST_RETURN == child_pid) 70 TEST_RETURN, child_pid);
|
clone07.c | 44 static int child_pid; variable 64 child_pid = ltp_clone(SIGCHLD, do_child, NULL, 67 if (child_pid < 0) 117 if (child_pid == 0) { 126 if (child_pid != 0)
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_rr_get_interval/ |
3-1.c | 29 int result = -2, child_pid, stat_loc; local 40 child_pid = fork(); 41 if (child_pid == -1) { 44 } else if (child_pid == 0) { 55 result = sched_rr_get_interval(child_pid, &interval);
|
/external/openssh/ |
sandbox-pledge.c | 41 pid_t child_pid; member in struct:ssh_sandbox 51 box->child_pid = 0; 71 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) 73 box->child_pid = child_pid;
|
sandbox-darwin.c | 40 pid_t child_pid; member in struct:ssh_sandbox 54 box->child_pid = 0; 94 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) 96 box->child_pid = child_pid;
|
sandbox-rlimit.c | 40 pid_t child_pid; member in struct:ssh_sandbox 54 box->child_pid = 0; 91 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) 93 box->child_pid = child_pid;
|
platform.h | 24 void platform_post_fork_parent(pid_t child_pid);
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
coverage-fork-direct.cc | 23 pid_t child_pid = fork(); local 24 if (child_pid == 0) {
|
coverage-fork.cc | 22 pid_t child_pid = fork(); local 23 if (child_pid == 0) {
|
/external/ltp/testcases/kernel/syscalls/setpgid/ |
setpgid03.c | 52 int child_pid; local 69 if ((child_pid = FORK_OR_VFORK()) == -1) 72 if (child_pid == 0) { 82 rval = setpgid(child_pid, getppid()); 100 if ((child_pid = FORK_OR_VFORK()) == -1) 103 if (child_pid == 0) { 111 rval = setpgid(child_pid, getppid());
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
11-1.c | 67 pid_t child_pid; local 88 child_pid = fork(); 89 if (child_pid == -1) { 94 if (child_pid == 0) 97 if (waitpid(child_pid, &child_stat, 0) == -1) {
|
/external/autotest/client/profilers/powertop/ |
powertop.py | 20 self.child_pid = os.fork() 21 if self.child_pid: # parent 36 os.kill(self.child_pid, 15)
|
/external/ltp/testcases/kernel/syscalls/sched_getparam/ |
sched_getparam02.c | 92 pid_t child_pid; local 102 switch (child_pid = FORK_OR_VFORK()) { 140 if ((waitpid(child_pid, &status, 0)) < 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/killpg/ |
1-2.c | 39 int child_pid, child_pgid; local 41 if ((child_pid = fork()) == 0) { 71 if ((child_pgid = getpgid(child_pid)) == -1) {
|
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ |
lib.h | 23 extern int kill_child_and_wait(pid_t child_pid); 24 extern int wait_for_child(pid_t child_pid);
|
/system/connectivity/wificond/tests/ |
shell_utils.cpp | 68 const pid_t child_pid = fork(); local 69 if (child_pid == -1) { 73 if (child_pid == 0) { // We are in the child process. 114 auto NeedToWaitForChild = [child_pid, &wait_status, &waitpid_ret]() { 116 waitpid_ret = waitpid(child_pid, &wait_status, WNOHANG); 131 if (waitpid_ret != child_pid) { 132 int kill_ret = kill(child_pid, SIGKILL); 146 if (waitpid_ret == child_pid && WIFEXITED(wait_status)) {
|