Searched refs:pgrp (Results 1 - 25 of 72) sorted by last modified time

123

/macosx-10.9.5/xnu-2422.115.4/bsd/sys/
H A Dproc.h87 struct pgrp;
139 struct pgrp *p_pgrp; /* Pointer to process group. */
H A Dproc_internal.h128 pid_t s_ttypgrpid; /* tty's pgrp id */
165 struct pgrp { struct
166 LIST_ENTRY(pgrp) pg_hash; /* Hash chain. (LL) */
167 LIST_HEAD(, proc) pg_members; /* Pointer to pgrp members. (PGL) */
170 int pg_jobc; /* # procs qualifying pgrp for job control (PGL) */
174 lck_mtx_t pg_mlock; /* mutex lock to protect pgrp */
183 #define PGRP_NULL (struct pgrp *)0
231 LIST_ENTRY(proc) p_pglist; /* List of processes in pgrp.(PGL) */
334 struct pgrp *p_pgrp; /* Pointer to process group. (LL) */
426 #define P_LIST_INPGRP 0x00020000 /* process is in pgrp */
[all...]
H A Dsignalvar.h215 void pgsignal(struct pgrp *pgrp, int sig, int checkctty);
/macosx-10.9.5/xnu-2422.115.4/bsd/kern/
H A Dproc_info.c510 struct pgrp * pg;
H A Dbsd_init.c205 struct pgrp pgrp0;
423 /* Initialize process and pgrp structures. */
517 /* There is no other bsd thread this point and is safe without pgrp lock */
H A Dkern_proc.c173 static void orphanpg(struct pgrp *pg);
177 static void pgrp_add(struct pgrp * pgrp, proc_t parent, proc_t child);
179 static void pgrp_replace(proc_t p, struct pgrp *pgrp);
180 static void pgdelete_dropref(struct pgrp *pgrp);
181 extern void pg_rele_dropref(struct pgrp * pgrp);
186 struct pgrp * p
977 struct pgrp * pgrp; local
994 struct pgrp *pgrp; local
1003 pg_rele(struct pgrp * pgrp) argument
1011 pg_rele_dropref(struct pgrp * pgrp) argument
1092 struct pgrp *pgrp; local
1186 LIST_INSERT_HEAD(PGRPHASH(pgid), pgrp, pg_hash); local
1230 pgdelete_dropref(struct pgrp *pgrp) argument
1362 fixjobc(proc_t p, struct pgrp *pgrp, int entering) argument
1429 orphanpg(struct pgrp * pgrp) argument
2479 pgrp_add(struct pgrp * pgrp, struct proc * parent, struct proc * child) argument
2633 pgrp_lock(struct pgrp * pgrp) argument
2639 pgrp_unlock(struct pgrp * pgrp) argument
2660 struct pgrp * pgrp; local
[all...]
H A Dkern_resource.c200 struct pgrp *pg = PGRP_NULL;
203 /* returns the pgrp to ref */
356 struct pgrp *pg = PGRP_NULL;
H A Dkern_sysctl.c1471 SYSCTL_PROC(_kern_proc, KERN_PROC_PGRP, pgrp, CTLTYPE_NODE|CTLFLAG_RD | CTLFLAG_LOCKED,
1504 struct pgrp *pg;
1564 struct pgrp *pg;
H A Dkern_exit.c467 struct pgrp * pg;
610 * Signal foreground pgrp,
1773 struct pgrp * pg;
1801 * Signal foreground pgrp,
H A Dtty.c345 struct pgrp *pg, *oldpg;
429 struct pgrp * oldpg;
458 /* drop the reference on prev session and pgrp */
1056 struct pgrp *pg, *oldpg;
1203 case TIOCGPGRP: /* get pgrp of tty */
1421 /* drop the reference on prev session and pgrp */
1431 case TIOCSPGRP: { /* set pgrp of tty */
1432 struct pgrp *pgrp = PGRP_NULL; local
1441 else if ((pgrp
[all...]
H A Dtty_ptmx.c664 struct pgrp * pg;
H A Dkern_sig.c1505 struct pgrp *pgrp; local
1532 pgrp = proc_pgrp(cp);
1534 pgrp = pgfind(pgid);
1535 if (pgrp == NULL) {
1548 /* PGRP_DROPREF drops the pgrp refernce */
1549 pgrp_iterate(pgrp, PGRP_BLOCKITERATE | PGRP_DROPREF, killpg1_callback, &karg,
1565 struct pgrp *pgrp; local
1567 if (pgid && (pgrp
1601 pgsignal(struct pgrp *pgrp, int signum, int checkctty) argument
[all...]
H A Dtty_pty.c277 struct pgrp *pg;
H A Dkern_malloc.c145 "pgrp", /* 17 M_PGRP */
339 { SOS(pgrp), KMZ_CREATEZONE, FALSE }, /* 17 M_PGRP */
/macosx-10.9.5/ruby-104/ruby/
H A Dprocess.c4125 rb_pid_t pgrp; local
4129 pgrp = getpgrp();
4130 if (pgrp < 0) rb_sys_fail(0);
4131 return PIDT2NUM(pgrp);
4133 pgrp = getpgid(0);
4134 if (pgrp < 0) rb_sys_fail(0);
4135 return PIDT2NUM(pgrp);
4208 proc_setpgid(VALUE obj, VALUE pid, VALUE pgrp) argument
4214 ipgrp = NUM2PIDT(pgrp);
/macosx-10.9.5/top-89.1.2/
H A Dlibtop.c1884 pinfo->psamp.pgrp = kinfo.kp_eproc.e_pgid;
H A Dlibtop.h200 gid_t pgrp; member in struct:libtop_psamp_s
H A Dtop.c156 case STATISTIC_PGRP: return COMP(a_a->pgrp, a_b->pgrp);
/macosx-10.9.5/Libc-997.90.3/include/
H A Dunistd.h709 int setpgrp(pid_t pid, pid_t pgrp); /* obsoleted by setpgid() */
/macosx-10.9.5/ksh-20/ksh/src/cmd/ksh93/sh/
H A Djobs.c158 int tcsetpgrp(int fd,pid_t pgrp) argument
160 int pgid = pgrp;
724 * restore tty driver and pgrp
/macosx-10.9.5/libedit-39/src/
H A Dtty.c497 int pgrp; local
522 if (ioctl(el->el_outfd, TIOCGPGRP, &pgrp) < 0) {
528 else pgrp = -1;
530 if (pgrp >= 0 && getpgrp() != pgrp) {
533 "%s: getpgrp(%d) != pgrp(%d)\n", __func__,
534 (int)getpgrp(), (int)pgrp);
/macosx-10.9.5/sudo-72/src/
H A Dexec_pty.c414 ppgrp = getpgrp(); /* parent's pgrp, so child can signal us */
905 * in the foreground, assign its pgrp to the tty.
1141 pid_t pgrp; local
1145 if ((pgrp = tcgetpgrp(dst)) != -1)
1146 killpg(pgrp, SIGWINCH);
H A Dpp2203 pgrp="${2:-$1}" \
/macosx-10.9.5/OpenSSH-186/openssh/contrib/aix/
H A Dbuildbff.sh221 mkuser gecos='SSHD PrivSep User' login=false rlogin=false account_locked=true pgrp=$SSH_PRIVSEP_USER $SSH_PRIVSEP_USER
/macosx-10.9.5/OpenSSH-186/openssh/openbsd-compat/
H A Dbsd-nextstep.c75 int tcsetpgrp(int fd, pid_t pgrp) argument
77 return (ioctl(fd, TIOCSPGRP, &pgrp));

Completed in 298 milliseconds

123