/external/strace/tests/ |
H A D | getsid.c | 8 pid_t pid = getpid(); local 9 printf("getsid(%d) = %d\n", pid, getsid(pid));
|
H A D | attach-f-p-cmd.c | 41 pid_t pid = getpid(); local 46 pid, dir, sprintrc(rc), pid);
|
H A D | migrate_pages.c | 41 const long pid = (long) 0xfacefeedffffffffULL; local 42 long rc = syscall(__NR_migrate_pages, pid, 0, 0, 0); 44 (int) pid, rc, errno2name());
|
H A D | rt_sigqueueinfo.c | 44 pid_t pid = getpid(); local 47 if (sigqueue(pid, SIGUSR1, value)) 52 pid, pid, getuid(), value.sival_int, value.sival_ptr);
|
H A D | waitpid.c | 42 unsigned long pid = local 44 long rc = syscall(__NR_waitpid, pid, 0L, (unsigned long) WNOHANG); 46 (int) pid, rc, errno2name());
|
H A D | xetpgid.c | 42 const int pid = getpid(); local 43 long rc = syscall(__NR_getpgid, F8ILL_KULONG_MASK | pid); 44 printf("getpgid(%d) = %ld\n", pid, rc); 46 rc = syscall(__NR_setpgid, F8ILL_KULONG_MASK, F8ILL_KULONG_MASK | pid); 47 printf("setpgid(0, %d) = %ld\n", pid, rc);
|
H A D | xetpriority.c | 13 const int pid = getpid(); local 15 F8ILL_KULONG_MASK | pid); 16 printf("getpriority(PRIO_PROCESS, %d) = %ld\n", pid, rc); 19 F8ILL_KULONG_MASK | pid, F8ILL_KULONG_MASK); 20 printf("setpriority(PRIO_PROCESS, %d, 0) = %s\n", pid, sprintrc(rc));
|
/external/strace/tests-m32/ |
H A D | getsid.c | 8 pid_t pid = getpid(); local 9 printf("getsid(%d) = %d\n", pid, getsid(pid));
|
H A D | attach-f-p-cmd.c | 41 pid_t pid = getpid(); local 46 pid, dir, sprintrc(rc), pid);
|
H A D | migrate_pages.c | 41 const long pid = (long) 0xfacefeedffffffffULL; local 42 long rc = syscall(__NR_migrate_pages, pid, 0, 0, 0); 44 (int) pid, rc, errno2name());
|
H A D | rt_sigqueueinfo.c | 44 pid_t pid = getpid(); local 47 if (sigqueue(pid, SIGUSR1, value)) 52 pid, pid, getuid(), value.sival_int, value.sival_ptr);
|
H A D | waitpid.c | 42 unsigned long pid = local 44 long rc = syscall(__NR_waitpid, pid, 0L, (unsigned long) WNOHANG); 46 (int) pid, rc, errno2name());
|
H A D | xetpgid.c | 42 const int pid = getpid(); local 43 long rc = syscall(__NR_getpgid, F8ILL_KULONG_MASK | pid); 44 printf("getpgid(%d) = %ld\n", pid, rc); 46 rc = syscall(__NR_setpgid, F8ILL_KULONG_MASK, F8ILL_KULONG_MASK | pid); 47 printf("setpgid(0, %d) = %ld\n", pid, rc);
|
/external/strace/tests-mx32/ |
H A D | getsid.c | 8 pid_t pid = getpid(); local 9 printf("getsid(%d) = %d\n", pid, getsid(pid));
|
/external/valgrind/none/tests/ |
H A D | fork.c | 9 pid_t pid; local 11 pid = fork (); 18 printf("%s", pid==0 ? "X" : "XX"); 20 if (pid != 0) 21 waitpid(pid, NULL, 0);
|
/external/compiler-rt/test/lsan/TestCases/ |
H A D | fork.cc | 16 pid_t pid = fork(); local 17 assert(pid >= 0); 18 if (pid > 0) { 19 waitpid(pid, &status, 0);
|
/external/elfutils/tests/ |
H A D | deleted.c | 38 pid_t pid = fork (); local 39 assert (pid != -1); 40 if (pid == 0) 56 printf ("%d\n", pid);
|
/external/libunwind/src/ptrace/ |
H A D | _UPT_create.c | 31 _UPT_create (pid_t pid) argument 39 ui->pid = pid;
|
H A D | _UPT_internal.h | 53 pid_t pid; /* the process-id of the child we're unwinding */ member in struct:UPT_info
|
/external/ltp/lib/tests/ |
H A D | tst_checkpoint.c | 33 int pid; local 39 pid = fork(); 41 switch (pid) {
|
H A D | tst_checkpoint_wait_timeout.c | 33 int pid; local 39 pid = fork(); 41 switch (pid) {
|
H A D | tst_record_childstatus.c | 31 int pid; local 33 pid = tst_fork(); 35 switch (pid) { 45 tst_record_childstatus(NULL, pid);
|
/external/ltp/testcases/kernel/controllers/cgroup/ |
H A D | fork_processes.c | 31 pid_t pid; local 35 pid = fork(); 36 if (pid == 0) { 38 } else if (pid == -1) {
|
/external/ltp/testcases/kernel/syscalls/waitpid/ |
H A D | waitpid06.c | 28 * Check proper functioning of waitpid with pid = -1 and arg = 0 35 pid_t pid; local 42 pid = SAFE_FORK(); 43 if (pid == 0) 46 fork_kid_pid[i] = pid;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/ |
H A D | 2-1.c | 31 pid_t pid; local 49 pid = fork(); 51 if (pid < 0) { 55 if (pid == 0) {
|