/external/strace/ |
kcmp.c | 33 pid_t pid1 = tcp->u_arg[0]; local 39 tprintf("%d, %d, ", pid1, pid2);
|
/external/linux-kselftest/tools/testing/selftests/kcmp/ |
kcmp_test.c | 22 static long sys_kcmp(int pid1, int pid2, int type, int fd1, int fd2) 24 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); 30 int pid1, pid2; local 35 pid1 = getpid(); 59 printf("pid1: %6d pid2: %6d FD: %2ld FILES: %2ld VM: %2ld " 62 pid1, pid2, 63 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), 64 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), 65 sys_kcmp(pid1, pid2, KCMP_VM, 0, 0), 66 sys_kcmp(pid1, pid2, KCMP_FS, 0, 0) [all...] |
/external/ltp/testcases/kernel/syscalls/fork/ |
fork02.c | 57 int pid1, pid2, status; local 68 pid1 = fork(); 69 if (pid1 == -1) 72 if (pid1 == 0) { 80 if (pid1 == pid2)
|
fork03.c | 57 int pid1, pid2, status; local 67 pid1 = fork(); 68 if (pid1 == -1) 71 if (pid1 == 0) { 83 if (pid1 != 0) 89 "fork : %d", pid1); 92 if (pid1 != pid2) { 94 pid1, pid2);
|
fork08.c | 58 int status, count, forks, pid1; local 90 pid1 = fork(); 91 if (pid1 != 0) { 94 if ((pid1 != (-1)) && (forks < 2)) 96 else if (pid1 < 0)
|
fork12.c | 57 int forks, pid1, fork_errno, waitstatus; local 70 while ((pid1 = fork()) != -1) { 71 if (pid1 == 0) { /* child */
|
fork07.c | 73 int status, forks, pid1; local 115 pid1 = fork(); 116 if (pid1 == 0) { 141 } else if (pid1 == -1)
|
/external/ltp/testcases/kernel/syscalls/unshare/ |
unshare01.c | 157 pid_t pid1; local 169 pid1 = fork(); //call to fork() 170 if (pid1 == -1) { 173 } else if (pid1 == 0) { 207 pid1 = fork(); 208 if (pid1 == -1) { 211 } else if (pid1 == 0) { 245 pid1 = fork(); 246 if (pid1 == -1) { 249 } else if (pid1 == 0) [all...] |
unshare02.c | 120 pid_t pid1; local 132 TEST(pid1 = fork()); //call to fork() 173 TEST(pid1 = fork()); //call to fork() 174 if (pid1 == -1) {
|
/external/ltp/testcases/kernel/syscalls/vhangup/ |
vhangup02.c | 62 pid_t pid, pid1; local 81 pid1 = setsid(); 82 if (pid1 < 0) {
|
/external/ltp/testcases/kernel/mem/shmt/ |
shmt04.c | 69 int pid, pid1, shmid; local 120 while ((pid1 = wait(&status)) < 0 && (errno == EINTR)) ; 121 if (pid1 != pid) { 124 "Error: wait_status = %d, pid1= %d\n", status, 125 pid1);
|
shmt06.c | 68 int pid, pid1, shmid; local 119 while ((pid1 = wait(&status)) < 0 && (errno == EINTR)) ; 120 if (pid1 != pid) { 123 "Error: wait_status = %d, pid1= %d\n", status, 124 pid1);
|
/external/ltp/testcases/kernel/syscalls/chdir/ |
chdir03.c | 78 pid_t pid, pid1; local 105 if ((pid1 = FORK_OR_VFORK()) < 0) 108 if (pid1 == 0) { /* second child */
|
/external/ltp/testcases/kernel/syscalls/kill/ |
kill06.c | 77 pid_t pid1, pid2; local 98 pid1 = FORK_OR_VFORK(); 99 if (pid1 < 0) { 101 } else if (pid1 == 0) { 127 waitpid(pid1, &status, 0);
|
kill08.c | 77 pid_t pid1, pid2; local 98 pid1 = FORK_OR_VFORK(); 99 if (pid1 < 0) { 101 } else if (pid1 == 0) { 124 waitpid(pid1, &status, 0);
|
kill05.c | 144 pid_t pid1; local 156 pid1 = FORK_OR_VFORK(); 158 if (pid1 == -1) 161 if (pid1 == 0) { 186 TEST(kill(pid1, TEST_SIG)); 191 if (waitpid(pid1, &status, 0) == -1) {
|
kill02.c | 159 int pid1; /*Return value from 1st fork. Global so that it can be */ variable 234 if ((pid1 = FORK_OR_VFORK()) > 0) { 240 if (kill(pid1, SIGKILL) == -1 255 if (kill(pid1, SIGKILL) == -1 && errno != ESRCH) { 263 } else if (pid1 == 0) { 817 if (kill(pid1, SIGUSR2) == -1 && errno != ESRCH) {
|
/external/ltp/testcases/kernel/syscalls/mkdir/ |
mkdir02.c | 99 pid_t pid, pid1; local 202 if ((pid1 = FORK_OR_VFORK()) < 0) { 206 } else if (pid1 == 0) { /* second child */ 283 waitpid(pid1, &status, 0);
|
mkdir04.c | 101 pid_t pid, pid1; local 155 if ((pid1 = FORK_OR_VFORK()) < 0) { 159 if (pid1 == 0) { /* second child */ 181 waitpid(pid1, &status, 0);
|
/external/ltp/testcases/kernel/syscalls/rename/ |
rename09.c | 100 pid_t pid, pid1; local 156 if ((pid1 = FORK_OR_VFORK()) == -1) { 160 if (pid1 == 0) { /* second child */ 212 waitpid(pid1, &status, 0);
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
IProcessStatusTracker.java | 31 public int pid0, pid1; field in class:IProcessStatusTracker.ProcessDetails
|
/cts/hostsidetests/security/securityPatch/CVE-2017-0580/ |
poc.c | 95 pid_t pid1 = fork(); local 96 if (0 == pid1) {
|
/external/ltp/testcases/kernel/syscalls/kcmp/ |
kcmp01.c | 41 static int pid1; variable 47 int *pid1; member in struct:test_case 54 {&pid1, &pid1, KCMP_FILE, &fd1, &fd1, 0}, 56 {&pid1, &pid2, KCMP_FILE, &fd1, &fd1, 0}, 57 {&pid1, &pid2, KCMP_FILE, &fd1, &fd2, 0}, 58 {&pid1, &pid2, KCMP_FILE, &fd1, &fd3, 1}, 103 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, 140 pid1 = getpid();
|
kcmp02.c | 42 static int pid1; variable 52 int *pid1; member in struct:test_case 59 {&pid1, &pid_unused, KCMP_FILE, &fd1, &fd2, ESRCH}, 60 {&pid1, &pid1, KCMP_TYPES + 1, &fd1, &fd2, EINVAL}, 61 {&pid1, &pid1, -1, &fd1, &fd2, EINVAL}, 62 {&pid1, &pid1, INT_MIN, &fd1, &fd2, EINVAL}, 63 {&pid1, &pid1, INT_MAX, &fd1, &fd2, EINVAL} [all...] |
/toolchain/binutils/binutils-2.25/libiberty/testsuite/ |
test-pexecute.c | 384 int pid1, pid2; local 393 pid1 = pexecute ("./test-pexecute", subargv, "test-pexecute", "temp", 395 if (pid1 < 0) 414 if (pwait (pid1, &status, 0) < 0)
|