Home
last modified time | relevance | path

Searched refs:pid (Results 176 – 200 of 575) sorted by relevance

12345678910>>...23

/dragonfly/crypto/openssh/
H A Dloginrec.h68 pid_t pid; /* PID of login process */ member
91 struct logininfo *login_alloc_entry(pid_t pid, const char *username,
96 int login_init_entry(struct logininfo *li, pid_t pid, const char *username,
H A Dsession.c391 pid_t pid; in do_exec_no_pty() local
516 s->pid = pid; in do_exec_no_pty()
561 pid_t pid; in do_exec_pty() local
640 s->pid = pid; in do_exec_pty()
743 pid_t pid = getpid(); in do_login() local
1791 (long)s->pid); in session_dump()
1876 if (s->used && s->pid == pid) in session_by_pid()
2145 if (s->pid <= 0) { in session_signal_req()
2274 if (s->pid != 0) in session_pty_cleanup2()
2464 s->pid = 0; in session_close_by_pid()
[all …]
/dragonfly/usr.sbin/pw/
H A Dpwupd.c75 pid_t pid; in pwdb() local
92 if ((pid = fork()) == -1) /* Error (errno set) */ in pwdb()
94 else if (pid == 0) { /* Child */ in pwdb()
98 waitpid(pid, &i, 0); in pwdb()
H A Dpw.c238 pid_t pid; in main() local
243 else if ((pid = fork()) == -1) in main()
245 else if (pid == 0) { in main()
251 waitpid(pid, &i, 0); in main()
/dragonfly/test/stress/stress2/misc/
H A Ddatamove2.sh170 pid_t pid;
183 pid = fork();
185 if (pid == 0) {
189 if (pid == -1) {
H A Ddatamove3.sh179 pid_t pid;
207 pid = fork();
209 if (pid == 0) {
213 if (pid == -1) {
H A Dsendfile.sh194 pid_t pid;
204 if ((pid = fork()) == 0) {
208 } else if (pid > 0) {
210 kill(pid, SIGINT);
/dragonfly/test/stress/stress2/testcases/mmap/
H A Dmmap.c74 pid_t pid; in test() local
80 pid = getpid(); in test()
82 sprintf(file,"p%05d.%05d", pid, i); in test()
/dragonfly/sys/bus/u4b/quirk/
H A Dusb_quirk.c67 uint16_t pid; member
688 if (usb_quirks[x].pid != info->idProduct) { in usb_test_quirk_by_info()
689 if (usb_quirks[x].pid != 0) in usb_test_quirk_by_info()
714 usb_quirk_get_entry(uint16_t vid, uint16_t pid, in usb_quirk_get_entry() argument
721 if ((vid | pid | lo_rev | hi_rev) == 0) { in usb_quirk_get_entry()
729 (usb_quirks[x].pid != pid) || in usb_quirk_get_entry()
745 usb_quirks[x].pid | in usb_quirk_get_entry()
751 usb_quirks[x].pid = pid; in usb_quirk_get_entry()
790 pgq->pid = usb_quirks[y].pid; in usb_quirk_ioctl()
830 pqe = usb_quirk_get_entry(pgq->vid, pgq->pid, in usb_quirk_ioctl()
[all …]
/dragonfly/contrib/dhcpcd/src/
H A Dprivsep.c350 pid_t pid; in ps_startprocess() local
368 pid = pdfork(&psp->psp_pfd, PD_CLOEXEC); in ps_startprocess()
370 pid = fork(); in ps_startprocess()
372 switch (pid) { in ps_startprocess()
386 psp->psp_pid = pid; in ps_startprocess()
408 return pid; in ps_startprocess()
546 pid_t pid; in ps_start() local
557 switch (pid = ps_root_start(ctx)) { in ps_start()
572 switch (pid = ps_inet_start(ctx)) { in ps_start()
583 switch (pid = ps_ctl_start(ctx)) { in ps_start()
[all …]
H A Dprivsep-root.c286 pid_t pid; in ps_root_run_script() local
296 if (pid == -1) in ps_root_run_script()
300 while (waitpid(pid, &status, 0) == -1) { in ps_root_run_script()
751 pid_t pid; in ps_root_signalcb() local
759 psp = ps_findprocesspid(ctx, pid); in ps_root_signalcb()
775 name, pid, WEXITSTATUS(status)); in ps_root_signalcb()
784 name, pid); in ps_root_signalcb()
882 pid_t pid; in ps_root_start() local
905 if (pid == 0) { in ps_root_start()
914 } else if (pid == -1) in ps_root_start()
[all …]
H A Dprivsep-control.c223 pid_t pid; in ps_ctl_start() local
238 pid = ps_startprocess(psp, ps_ctl_recvmsg, ps_ctl_dodispatch, in ps_ctl_start()
241 if (pid == -1) in ps_ctl_start()
243 else if (pid != 0) { in ps_ctl_start()
251 return pid; in ps_ctl_start()
/dragonfly/games/rogue/
H A Dmachdep.c507 pid_t pid; in md_shell() local
509 pid = fork(); in md_shell()
510 switch (pid) { in md_shell()
519 waitpid(pid, &w, 0); in md_shell()
/dragonfly/contrib/gdb-7/gdb/
H A Dthread.c440 first_thread_of_process (int pid) in first_thread_of_process() argument
445 if (pid == -1 || ptid_get_pid (tp->ptid) == pid) in first_thread_of_process()
453 any_thread_of_process (int pid) in any_thread_of_process() argument
458 if (ptid_get_pid (tp->ptid) == pid) in any_thread_of_process()
465 any_live_thread_of_process (int pid) in any_live_thread_of_process() argument
471 if (tp->state != THREAD_EXITED && ptid_get_pid (tp->ptid) == pid) in any_live_thread_of_process()
561 inf->pid = ptid_get_pid (new_ptid); in thread_change_ptid()
765 print_thread_info (struct ui_out *uiout, char *requested_threads, int pid) in print_thread_info() argument
793 if (pid != -1 && PIDGET (tp->ptid) != pid) in print_thread_info()
830 if (pid != -1 && PIDGET (tp->ptid) != pid) in print_thread_info()
[all …]
/dragonfly/sys/kern/
H A Dusched_bsd4.c209 pid_t pid, int cpuid, int curr);
213 pid_t pid, int cpuid, int curr);
221 pid_t pid, int cpuid, int curr);
226 pid_t pid, int cpuid, int curr);
236 pid_t pid, int cpuid, unsigned long mask);
240 pid_t pid, int cpuid, unsigned long mask);
261 pid_t pid, int cpuid, int try_cpuid, int curr);
269 pid_t pid, int old_cpuid, int curr);
272 pid_t pid, int old_cpuid, int curr);
284 int id, pid_t pid, int cpuid);
[all …]
/dragonfly/usr.sbin/rpc.statd/
H A Dfile.c272 pid_t pid; in notify_hosts() local
286 pid = fork(); in notify_hosts()
287 if (pid == -1) in notify_hosts()
292 if (pid) return; in notify_hosts()
/dragonfly/contrib/gcc-8.0/libgcc/
H A Dlibgcov-interface.c178 pid_t pid; in __gcov_fork() local
180 pid = fork (); in __gcov_fork()
181 if (pid == 0) in __gcov_fork()
183 return pid; in __gcov_fork()
/dragonfly/contrib/tcsh-6/
H A Dsh.sem.c88 pid_t pid = 0; in execute() local
405 pid = pfork(t, wanttty); in execute()
406 if (pid == 0 && nosigchld) { in execute()
410 else if (pid != 0 && (t->t_dflg & F_AMPERSAND)) in execute()
411 backpid = pid; in execute()
475 pid = fork(); in execute()
477 pid = vfork(); in execute()
479 if (pid < 0) { in execute()
487 if (pid) { /* parent */ in execute()
517 palloc(pid, t); in execute()
[all …]
H A Ddotlock.c52 pid_t pid; in create_exclusive() local
60 pid = getpid(); in create_exclusive()
62 cookie = pid ^ tv.tv_usec; in create_exclusive()
/dragonfly/usr.sbin/rpc.lockd/
H A Dlockd_lock.c336 pid_t pid; in sigchild_handler() local
340 pid = wait4(-1, &status, WNOHANG, NULL); in sigchild_handler()
341 if (pid == -1) { in sigchild_handler()
350 if (pid == 0) { in sigchild_handler()
360 if (pid == fl->locker) in sigchild_handler()
363 if (pid != fl->locker) { in sigchild_handler()
364 syslog(LOG_NOTICE, "unknown child %d", pid); in sigchild_handler()
367 syslog(LOG_NOTICE, "child %d failed", pid); in sigchild_handler()
380 pid, fl->status); in sigchild_handler()
392 " child %d", fl->status, pid); in sigchild_handler()
/dragonfly/sbin/vinum/
H A Dv.c757 pid_t pid; in continue_revive() local
761 pid = fork(); /* do this in the background */ in continue_revive()
763 pid = 0; in continue_revive()
764 if (pid == 0) { /* we're the child */ in continue_revive()
799 } else if (pid < 0) /* couldn't fork? */ in continue_revive()
815 int pid; in start_daemon() local
819 pid = (int) fork(); in start_daemon()
821 if (pid == 0) { /* We're the child, do the work */ in start_daemon()
850 } else if (pid < 0) /* couldn't fork */ in start_daemon()
/dragonfly/contrib/tcp_wrappers/
H A Dsafe_finger.c151 int pid; local
175 switch (pid = fork()) {
194 return (pid);
/dragonfly/test/testcases/posixipc/common/
H A Dcommon.c200 pid_t pid; in child_worker() local
208 pid = fork(); in child_worker()
209 switch (pid) { in child_worker()
229 if (waitpid(pid, NULL, 0) < 0) { in child_worker()
/dragonfly/share/examples/libusb20/
H A Dcontrol.c306 unsigned int vid = UINT_MAX, pid = UINT_MAX; /* impossible VID:PID */ in main() local
339 pid = strtol(optarg, NULL, 0); in main()
353 if (vid != UINT_MAX || pid != UINT_MAX) in main()
409 if (ddp->idVendor == vid && ddp->idProduct == pid) in main()
/dragonfly/lib/libc/compat-43/
H A Dsetpgrp.c37 setpgrp(pid_t pid, pid_t pgid) in setpgrp() argument
39 return(setpgid(pid, pgid)); in setpgrp()

12345678910>>...23