/external/autotest/client/site_tests/security_Minijail0/src/ |
H A D | test-pid-file | 9 read pid < pidfile 10 [ "$$" -eq "$pid" ]
|
/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);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowProcess.java | 9 private static Integer pid; field in class:ShadowProcess 13 if (pid != null) { 14 return pid; 19 public static void setPid(int pid) { argument 20 ShadowProcess.pid = pid; 24 ShadowProcess.pid = null;
|
/external/curl/tests/ |
H A D | ftp.pm | 33 # pidfromfile returns the pid stored in the given pidfile. The value 34 # of the returned pid will never be a negative value. It will be zero 35 # on any file related error or if a pid can not be extracted from the 40 my $pid = 0; 43 $pid = 0 + <PIDFH>; 45 $pid = 0 unless($pid > 0); 47 return $pid; 51 # pidexists checks if a process with a given pid exists and is alive. 52 # This will return the positive pid i [all...] |
/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/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/valgrind/gdbserver_tests/ |
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) {
|
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) {
|
/external/strace/linux/alpha/ |
H A D | get_syscall_result.c | 4 return (upeek(tcp->pid, REG_A3, &alpha_a3) < 0 || 5 upeek(tcp->pid, REG_R0, &alpha_r0) < 0) ? -1 : 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/strace/linux/bfin/ |
H A D | get_syscall_result.c | 4 return upeek(tcp->pid, PT_R0, &bfin_r0) < 0 ? -1 : 0;
|
/external/strace/linux/crisv10/ |
H A D | get_syscall_result.c | 4 return upeek(tcp->pid, 4 * PT_R10, &cris_r10) < 0 ? -1 : 0;
|
/external/strace/linux/hppa/ |
H A D | get_syscall_result.c | 4 return upeek(tcp->pid, PT_GR28, &hppa_r28) < 0 ? -1 : 0;
|
/external/strace/linux/m68k/ |
H A D | get_syscall_result.c | 4 return upeek(tcp->pid, 4 * PT_D0, &m68k_d0) < 0 ? -1 : 0;
|
/external/strace/linux/microblaze/ |
H A D | get_scno.c | 5 return upeek(tcp->pid, 0, &tcp->scno) < 0 ? -1 : 1;
|
H A D | get_syscall_result.c | 4 return upeek(tcp->pid, 3 * 4, µblaze_r3) < 0 ? -1 : 0;
|
/external/strace/linux/sh/ |
H A D | get_syscall_result.c | 5 return upeek(tcp->pid, 4 * REG_REG0, (long *)&sh_r0) < 0 ? -1 : 0;
|
/external/strace/linux/sh64/ |
H A D | get_syscall_result.c | 5 return upeek(tcp->pid, REG_GENERAL(9), (long *)&sh64_r9) < 0 ? -1 : 0;
|
/external/strace/linux/xtensa/ |
H A D | get_syscall_result.c | 4 return upeek(tcp->pid, REG_A_BASE + 2, &xtensa_a2) < 0 ? -1 : 0;
|
/external/clang/test/Analysis/ |
H A D | vfork.c | 10 pid_t pid = vfork(); // expected-warning{{Call to function 'vfork' is insecure}} local 11 if (pid != 0) 16 // Ensure that modifying pid is ok. 17 pid = 1; // no-warning 38 // Same as previous but without explicit pid variable. 40 pid_t pid = vfork(); // expected-warning{{Call to function 'vfork' is insecure}} local 44 // Ensure that writing pid is ok. 45 pid = 1; // no-warning 96 pid_t pid; local 97 if ((pid [all...] |
/external/autotest/client/site_tests/security_ptraceRestrictions/src/ |
H A D | root-ptrace-restrictions.sh | 13 pid= 21 pid=$! 23 disown $pid 26 # Find sleeper pid. 27 while [ $(ps -p $pid -o comm=) != "sleeper" ]; do 28 pid=$(ps -ef | awk '{ if ($3 == '"$pid"') { print $2 }}') 29 if [ -z "$pid" ]; then 38 kill $pid 46 OUT=$(su -c 'gdb -ex "attach '"$pid"'" [all...] |
/external/strace/tests/ |
H A D | wait.c | 43 pid_t pid; local 51 pid = fork(); 52 assert(pid >= 0); 53 if (!pid) { 61 assert(wait4(pid, &s, WNOHANG | __WALL, NULL) == 0); 62 assert(waitid(P_PID, pid, &info, WNOHANG | WEXITED) == 0); 66 assert(wait4(pid, &s, 0, &rusage) == pid); 69 pid = fork(); 70 assert(pid > [all...] |
/external/valgrind/none/tests/x86-solaris/ |
H A D | syscalls.c | 21 static void check_pid(int pid, int pid2, const char *instr) argument 23 if (pid == pid2) 31 int pid, pid2, dummy; local 34 SYSCALL("int $0x91", SYS_getpid, pid); 38 check_pid(pid, pid2, "syscall"); 42 check_pid(pid, pid2, "sysenter"); 46 check_pid(pid, pid2, "int $0x80"); 49 check_pid(pid, pid2, "int $0x81"); 52 check_pid(pid, pid2, "int $0x82");
|
/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/bison/lib/ |
H A D | waitpid.c | 27 waitpid (pid_t pid, int *statusp, int options) argument 29 return _cwait (statusp, pid, WAIT_CHILD);
|