/external/strace/tests/ |
getsid.c | 8 pid_t pid = getpid(); local 9 printf("getsid(%d) = %d\n", pid, getsid(pid));
|
attach-f-p-cmd.c | 41 pid_t pid = getpid(); local 46 pid, dir, sprintrc(rc), pid);
|
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());
|
/external/strace/tests-m32/ |
getsid.c | 8 pid_t pid = getpid(); local 9 printf("getsid(%d) = %d\n", pid, getsid(pid));
|
/external/strace/tests-mx32/ |
getsid.c | 8 pid_t pid = getpid(); local 9 printf("getsid(%d) = %d\n", pid, getsid(pid));
|
/external/valgrind/none/tests/ |
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);
|
/bionic/libc/bionic/ |
raise.cpp | 35 // Protect ourselves against stale cached PID/TID values by fetching them via syscall. 37 pid_t pid = syscall(__NR_getpid); local 39 return tgkill(pid, tid, sig);
|
termios.cpp | 39 pid_t pid; local 40 return (ioctl(fd, TIOCGPGRP, &pid) == -1) ? -1 : pid; 44 int tcsetpgrp(int fd, pid_t pid) { 45 return ioctl(fd, TIOCSPGRP, &pid);
|
/external/autotest/client/tools/ |
setidle.c | 15 int pid; local 19 printf("usage: %s pid\n", argv[0]); 23 pid = atoi(argv[1]); 25 if (sched_setscheduler(pid, SCHED_IDLE, ¶m) == -1) {
|
/external/compiler-rt/test/lsan/TestCases/ |
fork.cc | 16 pid_t pid = fork(); local 17 assert(pid >= 0); 18 if (pid > 0) { 19 waitpid(pid, &status, 0);
|
/external/elfutils/tests/ |
deleted.c | 38 pid_t pid = fork (); local 39 assert (pid != -1); 40 if (pid == 0) 56 printf ("%d\n", pid);
|
/external/fio/ |
debug.c | 10 pid_t pid; local 14 pid = getpid(); 16 && pid != *fio_debug_jobp) 20 log_info("%-5u ", (int) pid);
|
/external/iproute2/lib/ |
exec.c | 13 pid_t pid; local 15 pid = fork(); 16 if (pid < 0) { 21 if (pid != 0) { 23 if (waitpid(pid, &status, 0) < 0) {
|
/external/libunwind/src/ptrace/ |
_UPT_internal.h | 53 pid_t pid; /* the process-id of the child we're unwinding */ member in struct:UPT_info
|
/external/linux-kselftest/tools/testing/selftests/powerpc/tm/ |
tm-signal-stack.c | 35 int pid; local 39 pid = fork(); 40 if (pid < 0) 43 if (pid) { /* Parent */
|
/external/ltp/lib/tests/ |
tst_checkpoint.c | 33 int pid; local 39 pid = fork(); 41 switch (pid) {
|
tst_checkpoint_wait_timeout.c | 33 int pid; local 39 pid = fork(); 41 switch (pid) {
|
tst_record_childstatus.c | 31 int pid; local 33 pid = tst_fork(); 35 switch (pid) { 45 tst_record_childstatus(NULL, pid);
|
/external/ltp/lib/ |
tst_sig_proc.c | 25 pid_t pid, cpid; local 27 pid = getpid(); 33 if (kill(pid, sig) == -1)
|
/external/ltp/testcases/kernel/containers/pidns/ |
pidns_helper.h | 26 int pid, status; local 31 pid = do_clone_unshare_test(T_CLONE, CLONE_NEWPID, dummy_child, NULL); 32 if (pid == -1)
|
/external/ltp/testcases/kernel/containers/sysvipc/ |
ipcns_helper.h | 31 int pid, status; local 36 pid = do_clone_unshare_test(T_CLONE, CLONE_NEWIPC, dummy_child, NULL); 37 if (pid == -1)
|
/external/ltp/testcases/kernel/controllers/cgroup/ |
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/ |
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/ |
2-1.c | 31 pid_t pid; local 49 pid = fork(); 51 if (pid < 0) { 55 if (pid == 0) {
|
/external/selinux/libselinux/utils/ |
getpidcon.c | 8 pid_t pid; local 13 fprintf(stderr, "usage: %s pid\n", argv[0]); 17 if (sscanf(argv[1], "%d", &pid) != 1) { 18 fprintf(stderr, "%s: invalid pid %s\n", argv[0], argv[1]); 22 rc = getpidcon(pid, &buf);
|