/external/strace/linux/x86_64/ |
H A D | getregs_old.c | 6 getregs_old(pid_t pid) argument 9 get_regs_error = ptrace(PTRACE_GETREGS, pid, NULL, &x86_64_regs);
|
/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/bison/lib/ |
H A D | waitpid.c | 27 waitpid (pid_t pid, int *statusp, int options) argument 29 return _cwait (statusp, pid, WAIT_CHILD);
|
H A D | spawnp.c | 27 posix_spawnp (pid_t *pid, const char *file, argument 32 return __spawni (pid, file, file_actions, attrp, argv, envp, 1);
|
/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/src/tests/ |
H A D | deleted.c | 35 pid_t pid = fork (); local 36 assert (pid != -1); 37 if (pid == 0) 48 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/ltrace/testsuite/ltrace.minor/ |
H A D | trace-fork.c | 20 pid_t pid; local 21 pid = fork (); 23 if (pid == -1) 25 else if (pid == 0) 29 printf("My child pid is %d\n",pid);
|
H A D | trace-clone.c | 25 pid_t pid; local 29 pid = __clone2((myfunc)&child, stack, STACK_SIZE, CLONE_FS, NULL); 31 pid = clone((myfunc)&child, stack + STACK_SIZE, CLONE_FS, NULL); 33 if (pid < 0)
|
/external/strace/linux/powerpc/ |
H A D | getregs_old.c | 6 getregs_old(pid_t pid) argument 12 r = upeek(pid, sizeof(long) * PT_NIP, (long *)&ppc_regs.nip); 17 r = upeek(pid, sizeof(long) * PT_MSR, (long *)&ppc_regs.msr); 21 r = upeek(pid, sizeof(long) * PT_CCR, (long *)&ppc_regs.ccr); 24 r = upeek(pid, sizeof(long) * PT_ORIG_R3, (long *)&ppc_regs.orig_gpr3); 28 r = upeek(pid, sizeof(long) * (PT_R0 + i),
|
/external/fio/ |
H A D | debug.c | 10 pid_t pid; local 14 pid = getpid(); 16 && pid != *fio_debug_jobp) 20 log_info("%-5u ", (int) pid);
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
H A D | ptrace.cc | 17 pid_t pid; local 18 pid = fork(); 19 if (pid == 0) { // child 30 res = ptrace(PTRACE_GETREGS, pid, NULL, pregs); 41 res = ptrace(PTRACE_GETFPREGS, pid, NULL, &fpregs); 47 res = ptrace(PTRACE_GETFPXREGS, pid, NULL, &fpxregs); 52 ptrace(PTRACE_CONT, pid, NULL, NULL);
|
H A D | signal_during_stop_the_world.cc | 26 pid_t pid = fork(); local 27 if (pid < 0) { 31 if (pid == 0) { 46 kill(pid, SIGTERM); 47 waitpid(pid, 0, 0);
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
H A D | ptrace.cc | 17 pid_t pid; local 18 pid = fork(); 19 if (pid == 0) { // child 28 res = ptrace(PTRACE_GETREGS, pid, NULL, ®s); 34 res = ptrace(PTRACE_GETFPREGS, pid, NULL, &fpregs); 42 res = ptrace((enum __ptrace_request)PTRACE_GETREGS, pid, NULL, ®s); 52 res = ptrace((enum __ptrace_request)PTRACE_GETFPREGS, pid, NULL, &fpregs); 59 res = ptrace(PTRACE_GETSIGINFO, pid, NULL, &siginfo); 61 assert(siginfo.si_pid == pid); 63 ptrace(PTRACE_CONT, pid, NUL [all...] |
/external/compiler-rt/test/tsan/ |
H A D | fork_atexit.cc | 20 int pid = fork(); local 21 if (pid == 0) { 27 if (waitpid(pid, 0, 0) == -1) {
|
/external/google-breakpad/src/client/mac/crash_generation/ |
H A D | client_info.h | 37 explicit ClientInfo(pid_t pid) : pid_(pid) {} argument 39 pid_t pid() const { return pid_; } function in class:google_breakpad::ClientInfo
|
/external/openssh/openbsd-compat/ |
H A D | bsd-waitpid.c | 33 waitpid(int pid, int *stat_loc, int options) argument 38 if (pid <= 0) { 39 if (pid != -1) { 43 /* wait4() wants pid=0 for indiscriminate wait. */ 44 pid = 0; 46 wait_pid = wait4(pid, &statusp, options, NULL);
|
/external/selinux/libselinux/utils/ |
H A D | 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);
|
/external/toybox/toys/lsb/ |
H A D | killall.c | 36 static int kill_process(pid_t pid, char *name) argument 40 if (pid == TT.cur_pid) return 0; 43 snprintf(toybuf, sizeof(toybuf), "Signal %s(%d) ?", name, (int)pid); 48 kill(pid, TT.signum); 56 if (!(toys.optflags & FLAG_q)) perror_msg("pid %d", (int)pid); 58 printf("Killed %s(%d) with signal %d\n", name, pid, TT.signum);
|
H A D | pidof.c | 18 -s single shot, only return one pid. 29 static int print_pid(pid_t pid, char *name) argument 34 sprintf(toybuf, "%d", (int)pid);
|
/external/valgrind/coregrind/ |
H A D | vgdb-invoker-none.c | 47 Bool invoker_invoke_gdbserver(pid_t pid) argument
|
/external/valgrind/gdbserver_tests/ |
H A D | clean_after_fork.c | 8 int mem = 0, pid; local 9 pid = fork(); 10 if (pid == -1) { 16 if (pid == 0) { 26 while((ret = waitpid(pid, &status, 0)) != pid) {
|
H A D | fork_chain.c | 8 int pid; local 12 pid = fork(); 13 if (pid == -1) { 18 if (pid == 0) { 25 while((ret = waitpid(pid, &status, 0)) != pid) {
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
H A D | wait.cc | 19 pid_t pid = fork(); local 20 if (pid) { // parent 27 res = waitpid(pid, status, WNOHANG);
|