Searched defs:pid (Results 76 - 100 of 517) sorted by relevance

1234567891011>>

/external/lldb/test/functionalities/exec/
H A Dmain.cpp29 pid_t pid = 0; local
35 return pid;
57 err = posix_spawn (&pid,
67 return pid;
73 printf ("pid %i: Pointer size is %zu.\n", getpid(), sizeof(void *));
/external/lldb/tools/debugserver/source/
H A DPseudoTerminal.cpp160 // In the parent process when a valid pid is returned, the master file
174 // in the parent process: the pid of the child, or -1 if fork fails
181 pid_t pid = invalid_pid; local
188 pid = ::fork ();
189 if (pid < 0)
194 else if (pid == 0)
223 // Do nothing and let the pid get returned!
226 return pid;
/external/ltrace/
H A Dexecute_program.c95 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/
H A Dbreakpoint.c41 arch_enable_breakpoint(pid_t pid, struct breakpoint *sbp) argument
47 "arch_enable_breakpoint: pid=%d, addr=%p, symbol=%s",
48 pid, sbp->addr, breakpoint_name(sbp));
51 long a = ptrace(PTRACE_PEEKTEXT, pid,
55 " pid=%d, addr=%p, symbol=%s: %s\n",
56 pid, sbp->addr, breakpoint_name(sbp),
68 a = ptrace(PTRACE_POKETEXT, pid,
72 " pid=%d, addr=%p, symbol=%s: %s\n",
73 pid, sbp->addr, breakpoint_name(sbp),
84 debug(DEBUG_PROCESS, "enable_breakpoint: pid
93 arch_disable_breakpoint(pid_t pid, const struct breakpoint *sbp) argument
[all...]
/external/ltrace/sysdeps/linux-gnu/cris/
H A Dtrace.c56 (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/qemu/distrib/ext4_utils/src/
H A Dsetup_fs.c17 pid_t pid; local
56 while ((pid=waitpid(-1, &status, 0)) != child) {
57 if (pid == -1) {
/external/strace/test/
H A Dsfd.c6 int pid = atoi(argv[1]); local
14 sprintf(sname, "/proc/%d/stat", pid);
33 fprintf(stderr, "/proc/pid/stat format error\n");
/external/strace/tests/
H A Dscm_rights.c38 pid_t pid = fork(); local
39 assert(pid >= 0);
41 if (pid) {
59 assert(waitpid(pid, &status, 0) == pid);
/external/valgrind/main/coregrind/
H A Dm_debugger.c50 static Int ptrace_setregs(Int pid, VexGuestArchState* vex) argument
71 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, &regs);
109 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, &regs);
114 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R0 * 4), (void*)vex->guest_GPR0);
115 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R1 * 4), (void*)vex->guest_GPR1);
116 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R2 * 4), (void*)vex->guest_GPR2);
117 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R3 * 4), (void*)vex->guest_GPR3);
118 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R4 * 4), (void*)vex->guest_GPR4);
119 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R5 * 4), (void*)vex->guest_GPR5);
120 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (voi
402 Int pid, rc; local
[all...]
/external/valgrind/main/memcheck/tests/linux/
H A Dgetregset.c49 pid_t cpid, pid; local
58 pid = wait(&status);
59 if (pid == -1)
H A Dstack_switch.c37 pid_t pid; local
48 if ( ( pid = clone( thread_main, stack + STACK_SIZE, CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|SIGCHLD, NULL ) ) == -1 )
/external/valgrind/main/none/tests/
H A Dasync-sigs.c28 static void do_kill(int pid, int sig) argument
45 sprintf(pidbuf, "%d", pid);
71 int pid; local
78 pid = fork();
79 if (pid == -1) {
89 if (pid == 0) {
103 do_kill(pid, caughtsig); // Should be caught.
105 do_kill(pid, caughtsig); // Ditto.
106 do_kill(pid, caughtsig); // Ditto.
111 do_kill(pid, fatalsi
[all...]
H A Dexec-sigmask.c12 pid_t pid; local
15 pid = fork();
16 if (pid == -1) {
20 if (pid == 0) {
29 ret = waitpid(pid, &status, 0);
31 if (ret != pid) {
H A Dfdleak_ipv4.c74 int pid, status; local
78 if ((pid = fork()) == 0) {
/external/chromium_org/chrome/browser/
H A Dprocess_info_snapshot_mac_unittest.cc35 EXPECT_EQ(1, static_cast<int64>(proc_info.pid));
62 base::ProcessId pid = static_cast<base::ProcessId>(getpid()); local
69 pid_list.push_back(pid);
76 ASSERT_TRUE(snapshot.GetProcInfo(pid, &proc_info));
77 EXPECT_EQ(pid, proc_info.pid);
97 EXPECT_EQ(ppid, proc_info.pid);
/external/chromium_org/chrome/test/base/
H A Dchrome_process_util_mac.cc25 cmdline.push_back("pid=,rss=,vsz="); // fields we need, no headings
51 int pid; local
52 base::StringToInt(values[0], &pid);
53 proc_info.pid = pid;
56 if (proc_info.pid && proc_info.rsz_in_kb && proc_info.vsz_in_kb)
86 if (it->pid != static_cast<base::ProcessId>(process_id))
/external/chromium_org/media/formats/mp2t/
H A Dts_packet.h35 int pid() const { return pid_; } function in class:media::mp2t::TsPacket
/external/chromium_org/remoting/tools/
H A Dbreakpad_tester_win.cc21 "Usage: %s <pid>\n"
23 " pid - PID of the process to be crashed.\n";
57 int pid = _wtoi(args[0].c_str()); local
58 if (pid == 0) {
66 process.Set(OpenProcess(desired_access, FALSE, pid));
68 PLOG(ERROR) << "Failed to open the process " << pid;
77 PLOG(ERROR) << "Failed to create a remote thread in " << pid;
/external/chromium_org/third_party/sqlite/src/test/
H A Dthreadtest2.c42 int check_callback(void *pid, int argc, char **argv, char **notUsed2){ argument
43 int id = (int)pid;
/external/chromium_org/tools/cygprofile/
H A Dcygprofile.h70 const pid_t pid; member in struct:cygprofile::LogEntry
/external/chromium_org/win8/metro_driver/
H A Dmetro_driver.cc129 DWORD pid = 0; local
130 hr = activator->ActivateApplication(app_id, L"", AO_NONE, &pid);
/external/kernel-headers/original/uapi/rdma/
H A Drdma_netlink.h29 __s32 pid; member in struct:rdma_cm_id_stats
/external/libcap-ng/libcap-ng-0.7/utils/
H A Dproc-llist.h34 pid_t pid; // process ID member in struct:_lnode
/external/libselinux/src/
H A Dprocattr.c19 pid_t pid, const char *attr)
28 if (pid > 0)
29 rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr);
77 pid_t pid, const char *attr)
85 if (pid > 0)
86 rc = asprintf(&path, "/proc/%d/attr/%s", pid, attr);
132 int get##fn(pid_t pid, char **c) \
134 return getprocattrcon(c, pid, #attr); \
18 getprocattrcon(char ** context, pid_t pid, const char *attr) argument
76 setprocattrcon(const char * context, pid_t pid, const char *attr) argument
/external/libunwind/src/
H A Dos-freebsd.c59 int i, pid; local
79 pid = -1;
83 pid = kv->ki_pid;
88 return (pid);
93 map_create_list(pid_t pid) argument
105 mib[3] = pid;
111 mib[3] = get_pid_by_tid(pid);

Completed in 454 milliseconds

1234567891011>>