HomeSort by relevance Sort by last modified time
    Searched defs:pid (Results 26 - 50 of 1289) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/toybox/toys/other/
oneit.c 19 -3 Write 32 bit PID of each exiting reparented process to fd 3 of child.
22 Spawns a single child process (because PID 1 has signals blocked)
37 // - Fork a child (PID 1 is special: can't exit, has various signals blocked).
42 // PID 1 then reaps zombies until the child process it spawned exits, at which
54 // PID 1 can't call reboot() because it kills the task that calls it,
62 int i, pid, pipes[] = {SIGUSR1, SIGUSR2, SIGTERM, SIGINT}; local
79 pid = vfork();
80 if (pid) {
82 // pid 1 reaps zombies until it gets its child, then halts system.
86 while (pid != wait(&i)) if (FLAG_3) i = write(4, &pid, 4)
    [all...]
lsusb.c 22 int busnum = 0, devnum = 0, pid = 0, vid = 0; local
35 || sscanf(toybuf, "PRODUCT=%x/%x/", &pid, &vid)) count++;
38 printf("Bus %03d Device %03d: ID %04x:%04x\n", busnum, devnum, pid, vid);
  /external/valgrind/gdbserver_tests/
clean_after_fork.c 8 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/valgrind/none/tests/
syscall-restart1.c 17 int pid; local
25 pid = fork();
27 if (pid == -1) {
32 if (pid == 0) {
54 kill(pid, SIGUSR1);
59 waitpid(pid, NULL, 0);
syscall-restart2.c 17 int pid; local
25 pid = fork();
27 if (pid == -1) {
32 if (pid == 0) {
54 kill(pid, SIGUSR1);
58 waitpid(pid, NULL, 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;
  /system/core/toolbox/
prlimit.c 41 fprintf(stderr, "usage: %s pid resource cur max\n", s);
47 pid_t pid; local
55 if (sscanf(argv[1], "%d", &pid) != 1)
67 printf("setting resource %d of pid %d to [%llu,%llu]\n", resource, pid,
69 rc = prlimit64(pid, resource, &rl, NULL);
  /bionic/libc/bionic/
ptrace.cpp 32 extern "C" long __ptrace(int req, pid_t pid, void* addr, void* data);
40 pid_t pid = va_arg(args, pid_t); local
50 long result = __ptrace(req, pid, addr, data);
  /bionic/libc/upstream-openbsd/android/include/
arc4random.h 62 pid_t pid = getpid(); local
64 if (_rs_pid == 0 || _rs_pid != pid || _rs_forked) {
65 _rs_pid = pid;
  /bionic/libc/upstream-openbsd/lib/libc/stdlib/
system.c 43 pid_t pid; local
57 switch (pid = vfork()) {
69 pid = waitpid(pid, (int *)&pstat, 0);
73 return (pid == -1 ? -1 : pstat);
  /bionic/tests/
pty_test.cpp 50 pid_t pid = forkpty(&master, NULL, NULL, NULL); local
51 ASSERT_NE(-1, pid);
53 if (pid == 0) {
62 ASSERT_EQ(pid, waitpid(pid, &status, 0));
  /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);
  /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/tsan/
vfork.cc 27 int pid = vfork(); local
28 if (pid < 0) {
32 if (pid == 0) { // child
  /external/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.member/
native_handle.pass.cpp 49 pthread_t pid = t0.native_handle(); local
50 assert(pid != 0);
  /external/libunwind/tests/
forker.c 40 pid_t pid; local
53 pid = fork ();
54 if (pid == 0)
61 waitpid (pid, &status, 0);
  /external/ltrace/
execute_program.c 95 pid_t pid; local
99 pid = fork();
100 if (pid < 0) {
104 } else if (!pid) { /* child */
113 if (wait_for_proc(pid) < 0)
116 debug(1, "PID=%d", pid);
117 return pid;
  /external/ltrace/sysdeps/linux-gnu/cris/
trace.c 56 (int)ptrace(PTRACE_PEEKTEXT, proc->pid, pc - sizeof(long),
61 (int)ptrace(PTRACE_PEEKUSER, proc->pid,
77 int pid = proc->pid; local
80 return ptrace(PTRACE_PEEKUSER, pid, PT_R10 * 4, 0);
87 return ptrace(PTRACE_PEEKUSER, pid, pt_arg[arg_num] * 4, 0);
89 return ptrace(PTRACE_PEEKDATA, pid,
  /external/ltrace/testsuite/ltrace.main/
signals.c 25 pid_t pid; local
31 pid=getpid();
45 sigqueue(pid,sig,mysigval);
  /external/ltrace/testsuite/ltrace.torture/
signals.c 23 pid_t pid; local
27 pid=getpid();
41 sigqueue(pid,sig,mysigval);
  /external/robolectric/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/strace/tests/
inet-accept-connect-send-recv.c 17 pid_t pid; local
39 assert((pid = fork()) >= 0);
41 if (pid) {
48 assert(waitpid(pid, &status, 0) == pid);
pc.c 31 int pid = fork(); local
32 if (pid < 0)
35 if (!pid) {
63 if (wait(&status) != pid ||
unix-pair-send-recv.c 34 pid_t pid = fork(); local
35 assert(pid >= 0);
37 if (pid) {
45 assert(waitpid(pid, &status, 0) == pid);
  /external/toybox/lib/
portability.c 12 pid_t pid = fork(); local
14 if (pid < 0) perror_exit("fork");
16 return pid;

Completed in 757 milliseconds

12 3 4 5 6 7 8 91011>>