HomeSort by: relevance | last modified time | path
    Searched defs:pgrp (Results 1 - 18 of 18) sorted by relevancy

  /src/sys/ddb/
db_proc.c 126 static struct pgrp pgrp; local in function:db_show_all_procs
161 "PPID", "PGRP", "UID", "FLAGS", "LWPS", "COMMAND", "WAIT");
226 db_read_bytes((db_addr_t)p.p_pgrp, sizeof(pgrp),
227 (char *)&pgrp);
236 p.p_pptr != NULL ? p.p_pptr->p_pid : -1, pgrp.pg_id,
  /src/bin/csh/
sem.c 293 int pgrp; local in function:execute
306 pgrp = pcurrjob ? pcurrjob->p_jobid : getpid();
333 pgetty(wanttty, pgrp);
proc.c 1236 * -1: leave tty alone; inherit pgrp from parent
1245 int pgrp, pid; local in function:pfork
1281 pgrp = pcurrjob ? pcurrjob->p_jobid : getpid();
1305 pgetty(wanttty, pgrp);
1345 pgetty(int wanttty, int pgrp)
1367 if (setpgid(0, pgrp) == -1) {
1373 (void)tcsetpgrp(FSHTTY, pgrp);
  /src/bin/sh/
jobs.h 74 pid_t pgrp; /* process group of this job */ member in struct:job
jobs.c 100 int initialpgrp; /* pgrp of shell on invocation */
127 static int tcsetpgrp(int fd, pid_t pgrp);
132 pid_t pgrp; local in function:tcgetpgrp
133 if (ioctl(fd, TIOCGPGRP, (char *)&pgrp) == -1)
136 return pgrp;
142 return ioctl(fd, TIOCSPGRP, (char *)&pgrp);
270 if (tcsetpgrp(ttyfd, jp->pgrp) == -1) {
375 if (jp->pgrp == 0)
392 if (killpg(jp->pgrp, SIGCONT) != -1)
443 jp->pgrp != 0 ? (long)jp->pgrp : (long)jp->ps->pid)
1031 int pgrp = 0; local in function:suspendcmd
1346 int pgrp = 0; local in function:forkparent
1381 int pgrp; local in function:forkchild
    [all...]
  /src/usr.bin/ftp/
progressbar.c 63 static pid_t pgrp = -1; local in function:foregroundproc
65 if (pgrp == -1)
66 pgrp = getpgrp();
68 return (tcgetpgrp(fileno(ttyout)) == pgrp);
  /src/sys/kern/
kern_exit.c 204 struct pgrp *pgrp; local in function:exit1
383 * Signal foreground pgrp,
391 pgrp = tp->t_pgrp;
395 if (pgrp != NULL) {
396 pgsignal(pgrp, SIGHUP, 1);
kern_sig.c 792 struct pgrp *pgrp; local in function:killpg1
822 pgrp = cp->p_pgrp;
824 pgrp = pgrp_find(pgid);
825 if (pgrp == NULL)
828 LIST_FOREACH(p, &pgrp->pg_members, p_pglist) {
851 pgsignal(struct pgrp *pgrp, int sig, int checkctty)
860 kpgsignal(pgrp, &ksi, NULL, checkctty);
864 kpgsignal(struct pgrp *pgrp, ksiginfo_t *ksi, void *data, int checkctty
    [all...]
kern_descrip.c 1947 struct pgrp *pgrp; local in function:fownsignal
1950 pgrp = pgrp_find(-pgid);
1951 if (pgrp != NULL) {
1952 kpgsignal(pgrp, &ksi, fdescdata, 0);
tty.c 1205 case TIOCGPGRP: /* get pgrp of tty */
1409 case FIOSETOWN: { /* set pgrp of tty */
1411 struct pgrp *pgrp; local in function:ttioctl
1424 pgrp = pgrp_find(-pgid);
1425 if (pgrp == NULL) {
1436 pgrp = p1->p_pgrp;
1439 if (pgrp->pg_session != p->p_session) {
1444 tp->t_pgrp = pgrp;
1449 case TIOCSPGRP: { /* set pgrp of tty *
1450 struct pgrp *pgrp; local in function:ttioctl
3109 struct pgrp *pgrp; local in function:ttysigintr
    [all...]
kern_proc.c 132 * (an orphaned pgrp will lock the slot, a session will lock
133 * the pgrp with the same number.)
147 struct pgrp *pt_pgrp;
196 struct pgrp pgrp0 = {
259 static struct pgrp * pg_remove(pid_t);
261 static void orphanpg(struct pgrp *);
468 KERN_PROC_PGRP pgrp
487 struct pgrp *pg;
596 struct pgrp *pg;
602 * We keep the pgrp with the same id as the session in order t
630 struct pgrp *pgrp; local in function:pgid_in_session
954 struct pgrp *pgrp; local in function:expand_pid_table
1294 struct pgrp *new_pgrp, *pgrp; local in function:proc_enterpgrp
1457 struct pgrp *pgrp; local in function:proc_leavepgrp
1484 struct pgrp *pgrp; local in function:pg_remove
1643 struct pgrp *pgrp; local in function:pidtbl_dump
    [all...]
kern_exec.c 2246 pid_t pgrp = attrs->sa_pgroup; local in function:handle_posix_spawn_attrs
2248 if (pgrp == 0)
2249 pgrp = mypid;
2251 error = proc_enterpgrp(parent, mypid, pgrp, false);
  /src/sys/compat/sunos/
sunos_ioctl.c 506 int pgrp; local in function:sunos_sys_ioctl
508 error = (*ctl)(fp, TIOCGPGRP, &pgrp);
509 if (error == 0 && pgrp == 0)
513 error = copyout((void *)&pgrp, SCARG(uap, data), sizeof(pgrp));
522 * sigh, must do error translation on pty devices. if the pgrp
526 int pgrp; local in function:sunos_sys_ioctl
529 error = (*ctl)(fp, TIOCGPGRP, &pgrp);
533 if ((error == EIO || (error == 0 && pgrp == 0)) &&
540 error = copyout((void *)&pgrp, SCARG(uap, data), sizeof(pgrp))
    [all...]
  /src/sys/compat/sunos32/
sunos32_ioctl.c 560 int pgrp; local in function:sunos32_sys_ioctl
561 error = sunos32_do_ioctl(SCARG(&bsd_ua, fd), TIOCGPGRP, &pgrp,
565 return copyout(&pgrp, SCARG_P32(uap, data), sizeof(pgrp));
  /src/sys/compat/linux/common/
linux_file.c 302 struct pgrp *pgrp; local in function:linux_sys_fcntl
396 * fcntl(), since NetBSD tty TIOC{G,S}PGRP semantics is too
444 pgrp = pgrp_find(pgid);
445 if (pgrp == NULL || pgrp->pg_session != p->p_session) {
449 tp->t_pgrp = pgrp;
  /src/lib/libkvm/
kvm_proc.c 307 struct pgrp pgrp; local in function:kvm_proclist
353 if (KREAD(kd, (u_long)proc.p_pgrp, &pgrp)) {
354 _kvm_err(kd, kd->program, "can't read pgrp at %p",
358 eproc.e_sess = pgrp.pg_session;
359 eproc.e_pgid = pgrp.pg_id;
360 eproc.e_jobc = pgrp.pg_jobc;
361 if (KREAD(kd, (u_long)pgrp.pg_session, &sess)) {
363 pgrp.pg_session);
375 if (KREAD(kd, (u_long)tty.t_pgrp, &pgrp)) {
    [all...]
  /src/bin/ksh/
jobs.c 111 #define JP_PGRP 4 /* print pgrp */
122 #define JF_FG 0x010 /* running in foreground (also has tty pgrp) */
138 pid_t pgrp; /* process group of job */ member in struct:job
292 if (j->pgrp == 0)
295 killpg(j->pgrp, SIGHUP);
298 if (j->pgrp == 0)
301 killpg(j->pgrp, SIGCONT);
313 /* Need to restore the tty pgrp to what it was when the
486 j->pgrp = 0;
543 if (j->pgrp == 0) { /* First process *
    [all...]
  /src/sys/sys/
proc.h 120 struct pgrp { struct
121 LIST_HEAD(, proc) pg_members; /* Pointer to pgrp members */
123 pid_t pg_id; /* Pgrp id */
126 * pgrp for job control
263 LIST_ENTRY(proc) p_pglist; /* l: List of processes in pgrp. */
330 struct pgrp *p_pgrp; /* l: Pointer to process group */
435 #define PL_ORPHANPG 0x00000008 /* Member of an orphaned pgrp */
506 struct pgrp * pgrp_find(pid_t); /* Find process group by ID */
514 void fixjobc(struct proc *, struct pgrp *, int);

Completed in 79 milliseconds