/external/autotest/client/site_tests/security_Minijail0/src/ |
H A D | test-pid-file | 9 read pid < pidfile 10 [ "$$" -eq "$pid" ]
|
/external/strace/tests/ |
H A D | getsid.c | 8 pid_t pid = getpid(); local 9 printf("getsid(%d) = %d\n", pid, getsid(pid));
|
H A D | xetpgid.c | 42 const int pid = getpid(); local 43 long rc = syscall(__NR_getpgid, F8ILL_KULONG_MASK | pid); 44 printf("getpgid(%d) = %ld\n", pid, rc); 46 rc = syscall(__NR_setpgid, F8ILL_KULONG_MASK, F8ILL_KULONG_MASK | pid); 47 printf("setpgid(0, %d) = %ld\n", pid, rc);
|
H A D | attach-f-p-cmd.c | 41 pid_t pid = getpid(); local 46 pid, dir, sprintrc(rc), pid);
|
H A D | migrate_pages.c | 41 const long pid = (long) 0xfacefeedffffffffULL; local 42 long rc = syscall(__NR_migrate_pages, pid, 0, 0, 0); 44 (int) pid, rc, errno2name());
|
/external/strace/tests-m32/ |
H A D | getsid.c | 8 pid_t pid = getpid(); local 9 printf("getsid(%d) = %d\n", pid, getsid(pid));
|
H A D | xetpgid.c | 42 const int pid = getpid(); local 43 long rc = syscall(__NR_getpgid, F8ILL_KULONG_MASK | pid); 44 printf("getpgid(%d) = %ld\n", pid, rc); 46 rc = syscall(__NR_setpgid, F8ILL_KULONG_MASK, F8ILL_KULONG_MASK | pid); 47 printf("setpgid(0, %d) = %ld\n", pid, rc);
|
H A D | attach-f-p-cmd.c | 41 pid_t pid = getpid(); local 46 pid, dir, sprintrc(rc), pid);
|
H A D | migrate_pages.c | 41 const long pid = (long) 0xfacefeedffffffffULL; local 42 long rc = syscall(__NR_migrate_pages, pid, 0, 0, 0); 44 (int) pid, rc, errno2name());
|
/external/strace/tests-mx32/ |
H A D | getsid.c | 8 pid_t pid = getpid(); local 9 printf("getsid(%d) = %d\n", pid, getsid(pid));
|
H A D | xetpgid.c | 42 const int pid = getpid(); local 43 long rc = syscall(__NR_getpgid, F8ILL_KULONG_MASK | pid); 44 printf("getpgid(%d) = %ld\n", pid, rc); 46 rc = syscall(__NR_setpgid, F8ILL_KULONG_MASK, F8ILL_KULONG_MASK | pid); 47 printf("setpgid(0, %d) = %ld\n", pid, rc);
|
H A D | attach-f-p-cmd.c | 41 pid_t pid = getpid(); local 46 pid, dir, sprintrc(rc), pid);
|
H A D | migrate_pages.c | 41 const long pid = (long) 0xfacefeedffffffffULL; local 42 long rc = syscall(__NR_migrate_pages, pid, 0, 0, 0); 44 (int) pid, rc, errno2name());
|
/external/ltp/lib/tests/ |
H A D | tst_record_childstatus.c | 31 int pid; local 33 pid = tst_fork(); 35 switch (pid) { 45 tst_record_childstatus(NULL, 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/ltp/include/ |
H A D | tst_process_state.h | 26 These functions helps you wait till a process with given pid changes state. 50 #define TST_PROCESS_STATE_WAIT(pid, state) \ 52 (pid), (state)) 61 int tst_process_state_wait2(pid_t pid, const char state); 63 # define TST_PROCESS_STATE_WAIT(cleanup_fn, pid, state) \ 65 (pid), (state)) 70 pid_t pid, const char state);
|
/external/robolectric-shadows/ |
H A D | java-timeout | 25 # empty string as the pid, but it is possible. 29 local pid="${1-}" 30 shift || fatal '[on_timeout] missing argument: pid' 33 if [ "$pid" != '' ]; then 36 kill -TERM -- "-$pid" # Kill the entire process group. 45 local pid # Set below after we run the process. 46 trap 'on_timeout $pid' SIGTERM 53 setsid java "$@" & pid="$!"; wait "$pid"
|
/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) {
|
/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/ltp/testcases/kernel/controllers/cgroup/ |
H A D | fork_processes.c | 31 pid_t pid; local 35 pid = fork(); 36 if (pid == 0) { 38 } else if (pid == -1) {
|
/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/honggfuzz/linux/ |
H A D | trace.h | 36 extern bool arch_traceWaitForPidStop(pid_t pid); 38 extern void arch_traceAnalyze(run_t* run, int status, pid_t pid); 39 extern void arch_traceExitAnalyze(run_t* run, pid_t pid); 40 extern bool arch_traceAttach(run_t* run, pid_t pid); 41 extern void arch_traceDetach(pid_t pid); 42 extern void arch_traceGetCustomPerf(run_t* run, pid_t pid, uint64_t* cnt); 43 extern void arch_traceSetCustomPerf(run_t* run, pid_t pid, uint64_t cnt);
|