/external/autotest/client/site_tests/security_Minijail0/src/ |
test-pid-file | 9 read pid < pidfile 10 [ "$$" -eq "$pid" ]
|
/external/ltrace/testsuite/ltrace.minor/ |
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/curl/tests/ |
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 if the process exists and is alive [all...] |
/frameworks/base/core/java/android/app/ |
IProcessObserver.aidl | 22 void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities); 23 void onProcessStateChanged(int pid, int uid, int procState); 24 void onProcessDied(int pid, int uid);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
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) { 20 ShadowProcess.pid = pid; 24 ShadowProcess.pid = null;
|
/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);
|
/frameworks/base/core/java/android/net/ |
Credentials.java | 24 /** pid of process. root peers may lie. */ 25 private final int pid; field in class:Credentials 31 public Credentials (int pid, int uid, int gid) { 32 this.pid = pid; 38 return pid;
|
/external/google-breakpad/src/client/mac/crash_generation/ |
client_info.h | 37 explicit ClientInfo(pid_t pid) : pid_(pid) {} 39 pid_t pid() const { return pid_; } function in class:google_breakpad::ClientInfo
|
/external/valgrind/gdbserver_tests/ |
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/strace/linux/alpha/ |
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;
|
/frameworks/av/include/media/stagefright/ |
ProcessInfoInterface.h | 25 virtual bool getPriority(int pid, int* priority) = 0; 26 virtual bool isValidPid(int pid) = 0;
|
/frameworks/base/core/java/android/os/ |
ISchedulingPolicyService.aidl | 29 * The thread group leader of tid must be pid. 32 int requestPriority(int pid, int tid, int prio);
|
/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/strace/linux/bfin/ |
get_syscall_result.c | 4 return upeek(tcp->pid, PT_R0, &bfin_r0) < 0 ? -1 : 0;
|
/external/strace/linux/crisv10/ |
get_syscall_result.c | 4 return upeek(tcp->pid, 4 * PT_R10, &cris_r10) < 0 ? -1 : 0;
|
/external/strace/linux/hppa/ |
get_syscall_result.c | 4 return upeek(tcp->pid, PT_GR28, &hppa_r28) < 0 ? -1 : 0;
|
/external/strace/linux/m68k/ |
get_syscall_result.c | 4 return upeek(tcp->pid, 4 * PT_D0, &m68k_d0) < 0 ? -1 : 0;
|
/external/strace/linux/microblaze/ |
get_scno.c | 5 return upeek(tcp->pid, 0, &tcp->scno) < 0 ? -1 : 1;
|
get_syscall_result.c | 4 return upeek(tcp->pid, 3 * 4, µblaze_r3) < 0 ? -1 : 0;
|
/external/strace/linux/sh/ |
get_syscall_result.c | 5 return upeek(tcp->pid, 4 * REG_REG0, (long *)&sh_r0) < 0 ? -1 : 0;
|
/external/strace/linux/sh64/ |
get_syscall_result.c | 5 return upeek(tcp->pid, REG_GENERAL(9), (long *)&sh64_r9) < 0 ? -1 : 0;
|
/external/strace/linux/xtensa/ |
get_syscall_result.c | 4 return upeek(tcp->pid, REG_A_BASE + 2, &xtensa_a2) < 0 ? -1 : 0;
|
/libcore/luni/src/main/java/android/system/ |
StructUcred.java | 28 public final int pid; field in class:StructUcred 36 public StructUcred(int pid, int uid, int gid) { 37 this.pid = pid;
|
/external/clang/test/Analysis/ |
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 = vfork()) == 0) // expected-warning{{Call to function 'vfork' is insecure} [all...] |
/external/autotest/client/site_tests/security_ptraceRestrictions/src/ |
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"'" -ex "quit" --batch' $NONROOT [all...] |