/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
system.c | 44 pid_t pid, cpid; local 71 pid = waitpid(cpid, &pstat, 0); 72 } while (pid == -1 && errno == EINTR); 76 return (pid == -1 ? -1 : pstat);
|
/cts/hostsidetests/jdwpsecurity/app/src/com/android/cts/jdwpsecurity/ |
JdwpTest.java | 23 // Print pid so the test knows who we are. 24 int pid = android.os.Process.myPid(); local 25 System.out.println(pid);
|
/cts/hostsidetests/os/test-apps/ProcfsTestApp/src/android/os/procfs/ |
ProcfsTest.java | 29 // Log pid to Logcat so the test knows who we are. 30 int pid = android.os.Process.myPid(); local 31 Log.i(TAG, "PID is " + pid);
|
/development/tools/bugreport/src/com/android/bugreport/bugreport/ |
ProcessInfo.java | 28 public int pid; field in class:ProcessInfo 43 public ProcessInfo(int pid, String cmdLine) { 44 this.pid = pid;
|
/external/autotest/client/profilers/powertop/src/ |
process.c | 44 int pid = 0; local 47 file = popen(" ps -A -o pid,command", "r"); 56 pid = strtoul(line, NULL, 10); 60 if (pid<2) 62 kill(pid, SIGTERM);
|
/external/blktrace/btt/ |
bno_plot.py | 115 pid = os.fork() variable 116 if pid == 0: 126 os.waitpid(pid, 0)
|
/external/compiler-rt/test/lsan/TestCases/ |
fork_threaded.cc | 30 pid_t pid = fork(); local 31 assert(pid >= 0); 32 if (pid > 0) { 33 waitpid(pid, &status, 0); 38 // thread's pid correctly even if leak checking is initiated from another
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
ptrace.cc | 23 pid_t pid; local 24 pid = fork(); 25 if (pid == 0) { // child 34 res = ptrace(PTRACE_GETREGS, pid, NULL, ®s); 40 res = ptrace(PTRACE_GETFPREGS, pid, NULL, &fpregs); 48 res = ptrace((enum __ptrace_request)PTRACE_GETREGS, pid, NULL, ®s); 62 res = ptrace((enum __ptrace_request)PTRACE_GETFPREGS, pid, NULL, &fpregs); 68 res = ptrace((enum __ptrace_request)PTRACE_GETVFPREGS, pid, 0, regbuf); 81 res = ptrace(PTRACE_GETREGSET, pid, (void*)NT_PRSTATUS, (void*)®set_io); 89 res = ptrace(PTRACE_GETREGSET, pid, (void*)NT_FPREGSET, (void*)®set_io) [all...] |
/external/compiler-rt/test/tsan/ |
vfork.cc | 27 int pid = vfork(); local 28 if (pid < 0) { 32 if (pid == 0) { // child
|
/external/libcxx/test/libcxx/thread/thread.threads/thread.thread.class/thread.thread.member/ |
native_handle.pass.cpp | 52 pthread_t pid = t0.native_handle(); local 53 assert(pid != 0);
|
/external/libdaemon/examples/ |
testd.c | 41 pid_t pid; local 55 /* Set indetification string for the daemon for both syslog and PID file */ 72 if ((pid = daemon_pid_file_is_running()) >= 0) { 73 daemon_log(LOG_ERR, "Daemon already running on PID file %u", pid); 84 if ((pid = daemon_fork()) < 0) { 90 } else if (pid) { /* The parent */ 115 /* Create the PID file */ 117 daemon_log(LOG_ERR, "Could not create PID file (%s).", strerror(errno));
|
/external/libunwind/tests/ |
forker.c | 40 pid_t pid; local 53 pid = fork (); 54 if (pid == 0) 61 waitpid (pid, &status, 0);
|
/external/linux-kselftest/tools/testing/selftests/powerpc/dscr/ |
dscr_inherit_test.c | 26 pid_t pid; local 43 pid = fork(); 44 if (pid == -1) { 47 } else if (pid) { 50 if (waitpid(pid, &status, 0) == -1) {
|
/external/linux-kselftest/tools/testing/selftests/powerpc/math/ |
fpu_syscall.c | 22 extern int test_fpu(double *darray, pid_t *pid); 55 pid_t pid = fork(); local 58 FAIL_IF(pid == -1); 77 if (pid) 78 waitpid(pid, &child_ret, 0);
|
vmx_syscall.c | 27 extern int test_vmx(vector int *varray, pid_t *pid); 56 pid_t pid = fork(); local 59 FAIL_IF(pid == -1); 78 if (pid) 79 waitpid(pid, &child_ret, 0);
|
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/ |
cpu_event_pinned_vs_ebb_test.c | 44 pid_t pid; local 55 pid = fork(); 56 if (pid == 0) { 64 kill_child_and_wait(pid); 78 FAIL_IF(wait_for_child(pid) != 2);
|
cpu_event_vs_ebb_test.c | 42 pid_t pid; local 53 pid = fork(); 54 if (pid == 0) { 62 kill_child_and_wait(pid); 76 FAIL_IF(wait_for_child(pid));
|
ebb_on_child_test.c | 48 pid_t pid; local 55 pid = fork(); 56 if (pid == 0) { 72 FAIL_IF(event_open_with_pid(&event, pid)); 78 FAIL_IF(wait_for_child(pid));
|
ebb_vs_cpu_event_test.c | 42 pid_t pid; local 53 pid = fork(); 54 if (pid == 0) { 65 kill_child_and_wait(pid); 73 FAIL_IF(wait_for_child(pid));
|
task_event_pinned_vs_ebb_test.c | 42 pid_t pid; local 50 pid = fork(); 51 if (pid == 0) { 57 rc = setup_child_event(&event, pid); 59 kill_child_and_wait(pid); 73 FAIL_IF(wait_for_child(pid) != 2);
|
task_event_vs_ebb_test.c | 40 pid_t pid; local 48 pid = fork(); 49 if (pid == 0) { 55 rc = setup_child_event(&event, pid); 57 kill_child_and_wait(pid); 71 FAIL_IF(wait_for_child(pid));
|
/external/ltp/lib/ |
tst_pid.c | 32 pid_t pid; local 34 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &pid); 36 return pid; 60 /* max_pids contains the maximum PID + 1,
|
/external/ltp/testcases/kernel/containers/libclone/ |
libclone.c | 42 int pid, ret = 0; local 50 pid = fork(); 51 if (pid == -1) { 57 if (pid == 0) { 92 int ret = 0, pid; local 94 pid = fork(); 95 if (pid == -1) { 99 if (pid == 0)
|
/external/ltp/testcases/kernel/containers/mountns/ |
mountns_helper.h | 31 int pid, status; local 36 pid = do_clone_unshare_test(T_CLONE, CLONE_NEWNS, dummy_child, NULL); 37 if (pid == -1)
|
/external/ltp/testcases/kernel/containers/netns/ |
netns_helper.h | 67 int pid, status; local 73 pid = do_clone_unshare_test(T_UNSHARE, CLONE_NEWNET | CLONE_NEWNS, 75 if (pid == -1)
|