HomeSort by relevance Sort by last modified time
    Searched defs:pid (Results 151 - 175 of 1842) sorted by null

1 2 3 4 5 67 8 91011>>

  /external/strace/tests/
net-accept-connect.c 79 pid_t pid = fork(); local
80 if (pid < 0)
83 if (pid) {
86 assert(kill(pid, SIGUSR1) == 0);
88 assert(waitpid(pid, &status, 0) == pid);
xet_robust_list.c 53 const pid_t pid = getpid(); local
54 const long long_pid = (unsigned long) (0xdeadbeef00000000LL | pid);
61 (int) pid, sprintaddr(*p_head), (unsigned long) *p_len);
72 (int) pid, sprintaddr(*p_head), (unsigned long) *p_len);
  /external/strace/tests-m32/
attach-p-cmd-cmd.c 38 write_pidfile(const pid_t pid)
44 if (fprintf(fp, "%d", pid) < 0)
64 const pid_t pid = getpid(); local
65 write_pidfile(pid);
74 pid, dir, sprintrc(rc), pid);
clone_parent.c 57 const pid_t pid = clone(child, tail_alloc(child_stack_size), local
59 if (pid < 0)
66 while (!kill(pid, 0))
74 if (fprintf(fp, "%s: Exit of unknown pid %d ignored\n",
75 getenv("STRACE_EXE") ?: "strace", pid) < 0)
net-accept-connect.c 79 pid_t pid = fork(); local
80 if (pid < 0)
83 if (pid) {
86 assert(kill(pid, SIGUSR1) == 0);
88 assert(waitpid(pid, &status, 0) == pid);
xet_robust_list.c 53 const pid_t pid = getpid(); local
54 const long long_pid = (unsigned long) (0xdeadbeef00000000LL | pid);
61 (int) pid, sprintaddr(*p_head), (unsigned long) *p_len);
72 (int) pid, sprintaddr(*p_head), (unsigned long) *p_len);
  /external/strace/tests-mx32/
attach-p-cmd-cmd.c 38 write_pidfile(const pid_t pid)
44 if (fprintf(fp, "%d", pid) < 0)
64 const pid_t pid = getpid(); local
65 write_pidfile(pid);
74 pid, dir, sprintrc(rc), pid);
clone_parent.c 57 const pid_t pid = clone(child, tail_alloc(child_stack_size), local
59 if (pid < 0)
66 while (!kill(pid, 0))
74 if (fprintf(fp, "%s: Exit of unknown pid %d ignored\n",
75 getenv("STRACE_EXE") ?: "strace", pid) < 0)
net-accept-connect.c 79 pid_t pid = fork(); local
80 if (pid < 0)
83 if (pid) {
86 assert(kill(pid, SIGUSR1) == 0);
88 assert(waitpid(pid, &status, 0) == pid);
xet_robust_list.c 53 const pid_t pid = getpid(); local
54 const long long_pid = (unsigned long) (0xdeadbeef00000000LL | pid);
61 (int) pid, sprintaddr(*p_head), (unsigned long) *p_len);
72 (int) pid, sprintaddr(*p_head), (unsigned long) *p_len);
  /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)
40 // - Fork a child (PID 1 is special: can't exit, has various signals blocked).
45 // PID 1 then reaps zombies until the child process it spawned exits, at which
57 // PID 1 can't call reboot() because it kills the task that calls it,
65 int i, pid, pipes[] = {SIGUSR1, SIGUSR2, SIGTERM, SIGINT}; local
82 pid = XVFORK();
83 if (pid) {
85 // pid 1 reaps zombies until it gets its child, then halts system.
89 while (pid != wait(&i)) if (toys.optflags & FLAG_3) i = write(4, &pid, 4)
    [all...]
  /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);
  /external/valgrind/none/tests/x86-solaris/
syscalls.c 21 static void check_pid(int pid, int pid2, const char *instr)
23 if (pid == pid2)
26 fprintf(stderr, "Pid values differ, instruction: %s\n", instr);
31 int pid, pid2, dummy; local
34 SYSCALL("int $0x91", SYS_getpid, pid);
38 check_pid(pid, pid2, "syscall");
42 check_pid(pid, pid2, "sysenter");
46 check_pid(pid, pid2, "int $0x80");
49 check_pid(pid, pid2, "int $0x81");
52 check_pid(pid, pid2, "int $0x82")
    [all...]
  /libcore/luni/src/main/java/android/system/
StructCapUserHeader.java 34 /** Pid of the header. The pid a call applies to. */
35 public final int pid; field in class:StructCapUserHeader
40 public StructCapUserHeader(int version, int pid) {
42 this.pid = pid;
StructUcred.java 28 public final int pid; field in class:StructUcred
36 public StructUcred(int pid, int uid, int gid) {
37 this.pid = pid;
  /prebuilts/go/darwin-x86/src/runtime/
runtime_linux_test.go 15 var pid, tid int var
18 // Record pid and tid of init thread for use during test.
23 pid, tid = syscall.Getpid(), syscall.Gettid()
39 if pid != tid {
40 t.Fatalf("pid=%d but tid=%d", pid, tid)
  /prebuilts/go/linux-x86/src/runtime/
runtime_linux_test.go 15 var pid, tid int var
18 // Record pid and tid of init thread for use during test.
23 pid, tid = syscall.Getpid(), syscall.Gettid()
39 if pid != tid {
40 t.Fatalf("pid=%d but tid=%d", pid, tid)
  /system/core/libunwindstack/tools/
unwind.cpp 37 static bool Attach(pid_t pid) {
38 if (ptrace(PTRACE_ATTACH, pid, 0, 0) == -1) {
45 if (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) == 0) {
50 printf("%d: Failed to stop.\n", pid);
54 void DoUnwind(pid_t pid) {
55 unwindstack::RemoteMaps remote_maps(pid);
61 unwindstack::Regs* regs = unwindstack::Regs::RemoteGet(pid);
93 auto process_memory = unwindstack::Memory::CreateProcessMemory(pid);
112 printf("Usage: unwind <PID>\n");
116 pid_t pid = atoi(argv[1]) local
    [all...]
  /system/extras/simpleperf/runtest/
function_fork.cpp 24 pid_t pid = fork(); local
25 if (pid == 0) {
30 waitpid(pid, nullptr, 0);
  /system/extras/tests/memeater/
memeater.c 16 * Simple memory eater. Runs as a daemon. Prints the child PID to
30 pid_t pid; local
50 switch (pid = fork()) {
96 printf("%d\n", pid);
  /toolchain/binutils/binutils-2.27/libiberty/
tmpnam.c 32 int pid = getpid (); local
43 sprintf (s, "%s/%s%x.%x", P_tmpdir, "t", pid, tmpnam_counter);
  /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 58 pid_t pid = getpid(); local
60 if (_rs_pid == 0 || _rs_pid != pid || _rs_forked) {
61 _rs_pid = pid;

Completed in 2554 milliseconds

1 2 3 4 5 67 8 91011>>