Searched defs:pid (Results 1 - 25 of 447) sorted by relevance

1234567891011>>

/external/strace/linux/x86_64/
H A Dgetregs_old.c6 getregs_old(pid_t pid) argument
9 get_regs_error = ptrace(PTRACE_GETREGS, pid, NULL, &x86_64_regs);
/external/valgrind/none/tests/
H A Dfork.c9 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 Dwaitpid.c27 waitpid (pid_t pid, int *statusp, int options) argument
29 return _cwait (statusp, pid, WAIT_CHILD);
H A Dspawnp.c27 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 Dfork.cc16 pid_t pid = fork(); local
17 assert(pid >= 0);
18 if (pid > 0) {
19 waitpid(pid, &status, 0);
/external/elfutils/src/tests/
H A Ddeleted.c35 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.c31 _UPT_create (pid_t pid) argument
39 ui->pid = pid;
H A D_UPT_internal.h53 pid_t pid; /* the process-id of the child we're unwinding */ member in struct:UPT_info
/external/ltrace/testsuite/ltrace.minor/
H A Dtrace-fork.c20 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 Dtrace-clone.c25 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 Dgetregs_old.c6 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 Ddebug.c10 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 Dptrace.cc17 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 Dsignal_during_stop_the_world.cc26 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 Dptrace.cc17 pid_t pid; local
18 pid = fork();
19 if (pid == 0) { // child
28 res = ptrace(PTRACE_GETREGS, pid, NULL, &regs);
34 res = ptrace(PTRACE_GETFPREGS, pid, NULL, &fpregs);
42 res = ptrace((enum __ptrace_request)PTRACE_GETREGS, pid, NULL, &regs);
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 Dfork_atexit.cc20 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 Dclient_info.h37 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 Dbsd-waitpid.c33 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 Dgetpidcon.c8 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 Dkillall.c36 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 Dpidof.c18 -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 Dvgdb-invoker-none.c47 Bool invoker_invoke_gdbserver(pid_t pid) argument
/external/valgrind/gdbserver_tests/
H A Dclean_after_fork.c8 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 Dfork_chain.c8 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 Dwait.cc19 pid_t pid = fork(); local
20 if (pid) { // parent
27 res = waitpid(pid, status, WNOHANG);

Completed in 4274 milliseconds

1234567891011>>