/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/openssh/openbsd-compat/ |
H A D | bsd-waitpid.c | 33 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/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/strace/ |
H A D | upoke.c | 32 upoke(int pid, unsigned long off, kernel_ulong_t val) argument 34 if (ptrace(PTRACE_POKEUSER, pid, off, val)) { 36 perror_msg("upoke: PTRACE_POKEUSER pid:%d @%#lx)", pid, off);
|
/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/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/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/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) {
|