Searched refs:pid (Results 251 - 275 of 1140) sorted by relevance

<<11121314151617181920>>

/freebsd-head/contrib/kyua/utils/process/
H A Dchild.cpp72 /// \param pid The process identifier.
74 impl(const pid_t pid, process::ifdstream* output) : argument
75 _pid(pid), _output(output) {}
207 pid_t pid = detail::syscall_fork(); local
208 if (pid == -1) {
213 } else if (pid == 0) {
229 LD(F("Spawned process %s: stdout and stderr inherited") % pid);
230 signals::add_pid_to_kill(pid);
233 new process::child(new impl(pid, new process::ifdstream(fds[0]))));
264 pid_t pid local
356 process::child::pid(void) const function in class:process::child
[all...]
/freebsd-head/contrib/gdb/gdb/
H A Dtarget.h138 /* Forked child pid, execd pathname, exit status or signal number. */
386 char *(*to_pid_to_exec_file) (int pid);
476 #define target_post_attach(pid) \
477 (*current_target.to_post_attach) (pid)
504 /* Wait for process pid to do something. PTID = -1 to wait for any
505 pid to do something. Return pid of child, or -1 in case of error;
616 extern int inferior_has_forked (int pid, int *child_pid);
618 extern int inferior_has_vforked (int pid, int *child_pid);
620 extern int inferior_has_execd (int pid, cha
[all...]
H A Dfork-child.c115 /* Start an inferior Unix child process and sets inferior_ptid to its pid.
129 int pid; local
287 pid = fork ();
289 pid = vfork ();
291 if (pid < 0)
294 if (pid == 0)
385 inferior_ptid = pid_to_ptid (pid); /* Needed for wait_for_inferior stuff below */
390 (*init_trace_fun) (pid);
399 TARGET_CREATE_INFERIOR_HOOK (pid);
402 SOLIB_CREATE_INFERIOR_HOOK (pid);
[all...]
H A Dlin-lwp.c92 #define BUILD_LWP(lwp, pid) ptid_build (pid, lwp, 0)
310 pid_t pid;
322 pid = waitpid (GET_LWP (ptid), &status, 0);
323 if (pid == -1 && errno == ECHILD)
326 pid = waitpid (GET_LWP (ptid), &status, __WCLONE);
330 gdb_assert (pid == GET_LWP (ptid)
333 child_post_attach (pid);
361 pid_t pid;
374 pid
304 pid_t pid; local
355 pid_t pid; local
599 pid_t pid; local
840 lin_lwp_has_pending(int pid, sigset_t *pending, sigset_t *flush_mask) argument
873 int pid, status; local
1098 pid_t pid; local
1200 pid_t pid = PIDGET (ptid); local
1620 pid_t pid; local
[all...]
H A Dinfptrace.c122 call_ptrace (int request, int pid, PTRACE_ARG3_TYPE addr, int data)
129 printf ("call_ptrace(request=%d, pid=%d, addr=0x%x, data=0x%x)",
130 request, pid, addr, data);
138 pt_status = ptrace (PT_SETTRC, pid, addr, data);
142 pt_status = ptrace (PT_SETTRC, pid, addr, data, 0);
152 return parent_attach_all (pid, addr, data);
175 pt_status = ptrace (request, pid, addr, data);
179 pt_status = ptrace (request, pid, addr, data, 0);
217 int pid = PIDGET (inferior_ptid);
219 if (pid
121 call_ptrace(int request, int pid, PTRACE_ARG3_TYPE addr, int data) argument
216 int pid = PIDGET (inferior_ptid); local
244 int pid = PIDGET (ptid); local
286 attach(int pid) argument
[all...]
H A Dinfttrace.c181 "pid" (process id) values. See "thread.c" for details. The
183 back different pid values (for _events_). See wait_for_inferior
193 corresponding pid, rather than having a single global.
205 there's only a pid of 0 around in the child, so the
209 uses a real pid;
217 Rest of GDB sees these PIDs: pid tid1 tid2 tid3 ...
219 Our thread list stores: pid pid pid pid
355 int pid; /* Process ID */ member in struct:thread_info_struct
602 create_thread_info(int pid, lwpid_t tid) argument
873 is_process_id(int pid) argument
912 add_tthread(int pid, lwpid_t tid) argument
1037 set_handled(int pid, lwpid_t tid) argument
1283 call_real_ttrace(ttreq_t request, pid_t pid, lwpid_t tid, TTRACE_ARG_TYPE addr, TTRACE_ARG_TYPE data, TTRACE_ARG_TYPE addr2) argument
1337 call_real_ttrace_wait(int pid, lwpid_t tid, ttwopt_t option, ttstate_t *tsp, size_t tsp_size) argument
1368 get_process_first_stopped_thread_id(int pid, ttstate_t *thread_state) argument
1416 get_process_next_stopped_thread_id(int pid, ttstate_t *thread_state) argument
1458 get_active_tid_of_pid(int pid) argument
1761 can_touch_threads_of_process(int pid, ttevents_t stopping_event) argument
1789 select_stopped_thread_of_process(int pid, ttstate_t *tsp) argument
2009 call_ttrace_wait(int pid, ttwopt_t option, ttstate_t *tsp, size_t tsp_size) argument
2389 write_protect_page(int pid, CORE_ADDR page_start) argument
2428 unwrite_protect_page(int pid, CORE_ADDR page_start, int original_permissions) argument
2451 hppa_enable_page_protection_events(int pid) argument
2478 hppa_disable_page_protection_events(int pid) argument
3092 child_acknowledge_created_inferior(int pid) argument
3503 hpux_has_syscall_event(int pid, enum target_waitkind *kind, int *syscall_id) argument
4572 update_thread_state_after_attach(int pid, attach_continue_t kind_of_go) argument
4743 attach(int pid) argument
4774 child_post_attach(int pid) argument
4992 pid_t pid; local
5050 hppa_require_attach(int pid) argument
5108 hppa_require_detach(int pid, int signal) argument
5157 get_dictionary_entry_of_page(int pid, CORE_ADDR page_start) argument
5206 remove_dictionary_entry_of_page(int pid, memory_page_t *page) argument
5227 hppa_enable_syscall_events(int pid) argument
5256 hppa_disable_syscall_events(int pid) argument
5297 hppa_insert_hw_watchpoint(int pid, CORE_ADDR start, LONGEST len, int type) argument
5370 hppa_remove_hw_watchpoint(int pid, CORE_ADDR start, LONGEST len, int type) argument
5442 hppa_range_profitable_for_hw_watchpoint(int pid, CORE_ADDR start, LONGEST len) argument
5528 hppa_ensure_vforking_parent_remains_stopped(int pid) argument
5552 pid_t pid; local
[all...]
H A Dproc-service.c57 #define BUILD_LWP(lwp, pid) ptid_build (pid, lwp, 0)
78 inferior_ptid = pid_to_ptid (ph->pid);
238 inferior_ptid = BUILD_LWP (lwpid, ph->pid);
255 inferior_ptid = BUILD_LWP (lwpid, ph->pid);
274 inferior_ptid = BUILD_LWP (lwpid, ph->pid);
292 inferior_ptid = BUILD_LWP (lwpid, ph->pid);
308 return ph->pid;
/freebsd-head/sys/fs/fuse/
H A Dfuse_file.c211 * A pid of 0 means "don't care"
215 struct ucred *cred, pid_t pid)
229 (pid == 0 || fufh->pid == pid))
241 (pid == 0 || fufh->pid == pid))
250 struct fuse_filehandle **fufhp, struct ucred *cred, pid_t pid)
265 (pid
214 fuse_filehandle_validrw(struct vnode *vp, int mode, struct ucred *cred, pid_t pid) argument
249 fuse_filehandle_get(struct vnode *vp, int fflag, struct fuse_filehandle **fufhp, struct ucred *cred, pid_t pid) argument
287 fuse_filehandle_get_anyflags(struct vnode *vp, struct fuse_filehandle **fufhp, struct ucred *cred, pid_t pid) argument
317 fuse_filehandle_getrw(struct vnode *vp, int fflag, struct fuse_filehandle **fufhp, struct ucred *cred, pid_t pid) argument
[all...]
/freebsd-head/contrib/wpa/wpa_supplicant/examples/
H A Dp2p-action.sh26 kill_daemon dhclient /var/run/dhclient-$GIFNAME.pid
28 kill_daemon dnsmasq /var/run/dnsmasq.pid-$GIFNAME
30 if ! dnsmasq -x /var/run/dnsmasq.pid-$GIFNAME \
35 dnsmasq -x /var/run/dnsmasq.pid-$GIFNAME \
41 kill_daemon dhclient /var/run/dhclient-$GIFNAME.pid
43 kill_daemon dnsmasq /var/run/dnsmasq.pid-$GIFNAME
57 dhclient -pf /var/run/dhclient-$GIFNAME.pid \
67 kill_daemon dnsmasq /var/run/dnsmasq.pid-$GIFNAME
71 kill_daemon dhclient /var/run/dhclient-$GIFNAME.pid
/freebsd-head/contrib/netbsd-tests/lib/libc/sys/
H A Dt_select.c142 pid_t pid; local
147 switch (pid = fork()) {
155 if (kill(pid, SIGTERM) == -1)
158 switch (waitpid(pid, &status, WNOHANG)) {
162 if (kill(pid, SIGKILL) == -1)
182 pid_t pid; local
188 switch (pid = fork()) {
196 switch (waitpid(pid, &status, WNOHANG)) {
200 if (kill(pid, SIGKILL) == -1)
H A Dt_msgsnd.c83 pid_t pid; local
88 pid = fork();
89 ATF_REQUIRE(pid >= 0);
91 if (pid == 0) {
111 (void)kill(pid, SIGKILL);
244 pid_t pid; local
249 pid = fork();
250 ATF_REQUIRE(pid >= 0);
252 if (pid == 0) {
269 (void)kill(pid, SIGKIL
295 pid_t pid; local
[all...]
H A Dt_msgctl.c117 pid_t pid; local
130 pid = fork();
131 ATF_REQUIRE(pid >= 0);
133 if (pid == 0) {
196 pid_t pid; local
201 pid = fork();
202 ATF_REQUIRE(pid >= 0);
204 if (pid == 0) {
221 if (pid != msgds.msg_lspid)
224 pid
[all...]
/freebsd-head/contrib/llvm-project/lldb/source/Host/common/
H A DHost.cpp94 lldb::pid_t pid; // The process ID to monitor member in struct:MonitorInfo
96 callback; // The callback function to call when "pid" exits or signals
97 bool monitor_signals; // If true, call the callback when "pid" gets signaled.
103 const Host::MonitorChildProcessCallback &callback, lldb::pid_t pid,
107 info_ptr->pid = pid;
113 "<lldb.host.wait4(pid=%" PRIu64 ")>", pid);
174 assert(info->pid <= UINT32_MAX);
175 const ::pid_t pid local
102 StartMonitoringChildProcess( const Host::MonitorChildProcessCallback &callback, lldb::pid_t pid, bool monitor_signals) argument
438 FindProcessThreads(const lldb::pid_t pid, TidMap &tids_to_attach) argument
449 lldb::pid_t pid; member in struct:ShellInfo
455 MonitorShellCommand(std::shared_ptr<ShellInfo> shell_info, lldb::pid_t pid, bool exited, int signo, int status) argument
545 const lldb::pid_t pid = launch_info.GetProcessID(); local
614 Kill(lldb::pid_t pid, int signo) argument
[all...]
/freebsd-head/sbin/hastd/
H A Dhooks.c201 hook_add(struct hookproc *hp, pid_t pid) argument
207 hp->hp_pid = pid;
238 hook_find(pid_t pid) argument
248 if (hp->hp_pid == pid)
256 hook_check_one(pid_t pid, int status) argument
261 hp = hook_find(pid);
264 pjdlog_debug(1, "Unknown process pid=%u", pid);
270 pjdlog_debug(1, "Hook exited gracefully (pid=%u, cmd=[%s]).",
271 pid, h
348 pid_t pid; local
[all...]
/freebsd-head/tools/regression/posixsem2/
H A Dsemtest.c24 pid_t pid; local
34 if ((pid = fork()) == 0) {
45 waitpid(pid, &status, 0);
58 pid_t pid; local
74 if ((pid = fork()) == 0) {
85 waitpid(pid, &status, 0);
/freebsd-head/cddl/usr.sbin/dtrace/tests/tools/
H A Ddtest.sh27 local dflags exe exstatus pid retval status
52 pid=$!
53 dflags="$dflags ${pid}"
67 if [ -n "$pid" ]; then
68 kill -0 $pid >/dev/null 2>&1 && kill -9 $pid >/dev/null 2>&1
/freebsd-head/crypto/openssh/
H A Dsshlogin.c133 record_login(pid_t pid, const char *tty, const char *user, uid_t uid, argument
141 li = login_alloc_entry(pid, user, host, tty);
149 record_utmp_only(pid_t pid, const char *ttyname, const char *user, argument
154 li = login_alloc_entry(pid, user, host, ttyname);
163 record_logout(pid_t pid, const char *tty, const char *user) argument
167 li = login_alloc_entry(pid, user, NULL, tty);
/freebsd-head/lib/libcasper/libcasper/
H A Dzygote.c114 pid_t pid; local
152 pid = pdfork(&procfd, 0);
153 switch (pid) {
192 pid_t pid; local
197 pid = fork();
198 switch (pid) {
/freebsd-head/contrib/llvm-project/lldb/bindings/interface/
H A DSBAttachInfo.i16 SBAttachInfo (lldb::pid_t pid);
28 SetProcessID (lldb::pid_t pid);
103 SetParentProcessID (lldb::pid_t pid);
/freebsd-head/contrib/llvm-project/lldb/source/Plugins/Process/Darwin/
H A DDarwinProcessLauncher.cpp54 static uint32_t GetCPUTypeForLocalProcess(::pid_t pid) { argument
62 mib[len] = pid;
135 char const *envp[], ::pid_t *pid,
138 if (!path || !argv || !envp || !pid || !pty_fd) {
149 *pid = static_cast<::pid_t>(pty.Fork(fork_error, sizeof(fork_error)));
150 if (*pid < 0) {
152 *pid = static_cast<::pid_t>(LLDB_INVALID_PROCESS_ID);
156 } else if (pid == 0) {
172 // Set the child process group to match its pid.
190 // Set the child process group to match its pid
134 ForkChildForPTraceDebugging(const char *path, char const *argv[], char const *envp[], ::pid_t *pid, int *pty_fd) argument
265 PosixSpawnChildForPTraceDebugging(const char *path, ProcessLaunchInfo &launch_info, ::pid_t *pid, cpu_type_t *actual_cpu_type) argument
517 ::pid_t pid = LLDB_INVALID_PROCESS_ID; local
595 ::pid_t pid = LLDB_INVALID_PROCESS_ID; local
[all...]
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/buffering/
H A Dtst.cputime.ksh45 /pid == \$pid/
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/docsExamples/
H A Dksyms.d61 printf("uiomove %u bytes to %p in pid %d\n", this->iov->iov_len,
62 this->iov->iov_base, pid);
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/profile-n/
H A Dtst.ufuncsort.ksh54 pid\$target::fN:entry
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/
H A Dtst.newprobes.ksh38 pid*:date::
52 system("dtrace -c date -ln 'pid\$target::main:entry' >/dev/null");
58 system("dtrace -c date -ln 'pid\$target::main:return' >/dev/null");
/freebsd-head/libexec/ftpd/
H A Dpopen.c77 int argc, gargc, pdes[2], pid; local
121 pid = (strcmp(gargv[0], _PATH_LS) == 0) ? fork() : vfork();
122 switch(pid) {
171 pids[fileno(iop)] = pid;
183 pid_t pid; local
193 while ((pid = waitpid(pids[fdes], &status, 0)) < 0 && errno == EINTR)
197 if (pid < 0)
198 return (pid);

Completed in 118 milliseconds

<<11121314151617181920>>