/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 | 58 int forks, pid1, fork_errno, waitstatus; local 71 while ((pid1 = fork()) != -1) { 72 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 | 158 pid_t pid1; local 170 pid1 = fork(); //call to fork() 171 if (pid1 == -1) { 174 } else if (pid1 == 0) { 206 pid1 = fork(); 207 if (pid1 == -1) { 210 } else if (pid1 == 0) { 242 pid1 = fork(); 243 if (pid1 == -1) { 246 } else if (pid1 == 0) [all...] |
unshare02.c | 123 pid_t pid1; local 135 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/linux-kselftest/tools/testing/selftests/kcmp/ |
kcmp_test.c | 23 static long sys_kcmp(int pid1, int pid2, int type, unsigned long fd1, unsigned long fd2) 25 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); 35 int pid1, pid2; local 43 pid1 = getpid(); 98 printf("pid1: %6d pid2: %6d FD: %2ld FILES: %2ld VM: %2ld " 101 pid1, pid2, 102 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), 103 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), 104 sys_kcmp(pid1, pid2, KCMP_VM, 0, 0), 105 sys_kcmp(pid1, pid2, KCMP_FS, 0, 0) [all...] |
/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/kcmp/ |
kcmp03.c | 41 static int pid1; variable 69 TEST(kcmp(pid1, pid2, *(int *)arg, 0, 0)); 89 pid1 = getpid();
|
kcmp01.c | 39 static int pid1; variable 43 int *pid1; member in struct:test_case 50 {&pid1, &pid1, KCMP_FILE, &fd1, &fd1, 0}, 52 {&pid1, &pid2, KCMP_FILE, &fd1, &fd1, 0}, 53 {&pid1, &pid2, KCMP_FILE, &fd1, &fd2, 0}, 54 {&pid1, &pid2, KCMP_FILE, &fd1, &fd3, 1}, 81 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, 106 pid1 = getpid();
|
kcmp02.c | 41 static int pid1; variable 50 int *pid1; member in struct:test_case 57 {&pid1, &pid_unused, KCMP_FILE, &fd1, &fd2, ESRCH}, 58 {&pid1, &pid1, KCMP_TYPES + 1, &fd1, &fd2, EINVAL}, 59 {&pid1, &pid1, -1, &fd1, &fd2, EINVAL}, 60 {&pid1, &pid1, INT_MIN, &fd1, &fd2, EINVAL}, 61 {&pid1, &pid1, INT_MAX, &fd1, &fd2, EINVAL} [all...] |
/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/strace/ |
kcmp.c | 57 pid_t pid1 = tcp->u_arg[0]; local 63 tprintf("%d, %d, ", pid1, pid2); 69 printpidfd(tcp, pid1, idx1); 71 printpidfd(tcp, pid1, idx2); 79 printpidfd(tcp, pid1, idx1);
|
/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 */ 204 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
|
/toolchain/binutils/binutils-2.27/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)
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
WifiAwareStateManagerTest.java | 237 final int pid1 = 2000; local 273 mDut.connect(clientId1, uid1, pid1, callingPackage, mockCallback1, configRequest, false); [all...] |