Searched refs:pid (Results 1 - 25 of 888) sorted by relevance

1234567891011>>

/external/autotest/client/site_tests/security_Minijail0/src/
H A Dtest-pid-file9 read pid < pidfile
10 [ "$$" -eq "$pid" ]
/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);
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowProcess.java9 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 Dftp.pm33 # 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 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/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/valgrind/gdbserver_tests/
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) {
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) {
/external/strace/linux/alpha/
H A Dget_syscall_result.c4 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 Dfork.cc16 pid_t pid = fork(); local
17 assert(pid >= 0);
18 if (pid > 0) {
19 waitpid(pid, &status, 0);
/external/strace/linux/bfin/
H A Dget_syscall_result.c4 return upeek(tcp->pid, PT_R0, &bfin_r0) < 0 ? -1 : 0;
/external/strace/linux/crisv10/
H A Dget_syscall_result.c4 return upeek(tcp->pid, 4 * PT_R10, &cris_r10) < 0 ? -1 : 0;
/external/strace/linux/hppa/
H A Dget_syscall_result.c4 return upeek(tcp->pid, PT_GR28, &hppa_r28) < 0 ? -1 : 0;
/external/strace/linux/m68k/
H A Dget_syscall_result.c4 return upeek(tcp->pid, 4 * PT_D0, &m68k_d0) < 0 ? -1 : 0;
/external/strace/linux/microblaze/
H A Dget_scno.c5 return upeek(tcp->pid, 0, &tcp->scno) < 0 ? -1 : 1;
H A Dget_syscall_result.c4 return upeek(tcp->pid, 3 * 4, &microblaze_r3) < 0 ? -1 : 0;
/external/strace/linux/sh/
H A Dget_syscall_result.c5 return upeek(tcp->pid, 4 * REG_REG0, (long *)&sh_r0) < 0 ? -1 : 0;
/external/strace/linux/sh64/
H A Dget_syscall_result.c5 return upeek(tcp->pid, REG_GENERAL(9), (long *)&sh64_r9) < 0 ? -1 : 0;
/external/strace/linux/xtensa/
H A Dget_syscall_result.c4 return upeek(tcp->pid, REG_A_BASE + 2, &xtensa_a2) < 0 ? -1 : 0;
/external/clang/test/Analysis/
H A Dvfork.c10 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 Droot-ptrace-restrictions.sh13 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 Dwait.c43 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 Dsyscalls.c21 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 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/bison/lib/
H A Dwaitpid.c27 waitpid (pid_t pid, int *statusp, int options) argument
29 return _cwait (statusp, pid, WAIT_CHILD);

Completed in 739 milliseconds

1234567891011>>