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

1 2

  /src/external/bsd/tmux/dist/
osdep-darwin.c 42 pid_t pgrp; local
45 if ((pgrp = tcgetpgrp(fd)) == -1)
48 ret = proc_pidinfo(pgrp, PROC_PIDT_SHORTBSDINFO, 0,
77 pid_t pgrp; local
80 if ((pgrp = tcgetpgrp(fd)) == -1)
83 ret = proc_pidinfo(pgrp, PROC_PIDVNODEPATHINFO, 0,
osdep-cygwin.c 35 pid_t pgrp; local
37 if ((pgrp = tcgetpgrp(fd)) == -1)
40 xasprintf(&path, "/proc/%lld/cmdline", (long long) pgrp);
67 pid_t pgrp; local
70 if ((pgrp = tcgetpgrp(fd)) == -1)
73 xasprintf(&path, "/proc/%lld/cwd", (long long) pgrp);
osdep-linux.c 36 pid_t pgrp; local
38 if ((pgrp = tcgetpgrp(fd)) == -1)
41 xasprintf(&path, "/proc/%lld/cmdline", (long long) pgrp);
68 pid_t pgrp, sid; local
71 if ((pgrp = tcgetpgrp(fd)) == -1)
74 xasprintf(&path, "/proc/%lld/cwd", (long long) pgrp);
osdep-sunos.c 38 pid_t pgrp; local
43 if (fstat(f, &st) != 0 || ioctl(f, TIOCGPGRP, &pgrp) != 0) {
49 xasprintf(&path, "/proc/%u/psinfo", (u_int) pgrp);
73 pid_t pgrp; local
81 retval = ioctl(ttyfd, TIOCGPGRP, &pgrp);
86 xasprintf(&path, "/proc/%u/path/cwd", (u_int) pgrp);
osdep-netbsd.c 132 pid_t pgrp; local
141 if ((pgrp = tcgetpgrp(fd)) == -1)
147 mib[2] = pgrp;
153 xasprintf(&path, "/proc/%lld/cwd", (long long) pgrp);
osdep-freebsd.c 141 pid_t pgrp; local
144 if ((pgrp = tcgetpgrp(fd)) == -1)
147 if ((info = kinfo_getfile(pgrp, &nrecords)) == NULL)
  /src/sys/ddb/
db_proc.c 126 static struct pgrp pgrp; local
162 "PPID", "PGRP", "UID", "FLAGS", "LWPS", "COMMAND", "WAIT");
233 db_read_bytes((db_addr_t)p.p_pgrp, sizeof(pgrp),
234 (char *)&pgrp);
243 p.p_pptr != NULL ? p.p_pptr->p_pid : -1, pgrp.pg_id,
  /src/external/gpl3/gdb/dist/readline/readline/examples/rlfe/
pty.c 371 int pgrp; local
374 if (ioctl(f, TIOCGPGRP, (char *)&pgrp) != -1 || errno != EIO)
  /src/external/gpl3/gdb.old/dist/readline/readline/examples/rlfe/
pty.c 371 int pgrp; local
374 if (ioctl(f, TIOCGPGRP, (char *)&pgrp) != -1 || errno != EIO)
  /src/bin/csh/
sem.c 293 int pgrp; local
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
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/usr.bin/ftp/
progressbar.c 63 static pid_t pgrp = -1; local
65 if (pgrp == -1)
66 pgrp = getpgrp();
68 return (tcgetpgrp(fileno(ttyout)) == pgrp);
  /src/crypto/external/bsd/heimdal/dist/kadmin/
kadm_conn.c 92 static pid_t pgrp; variable
111 if(getpid() == pgrp) {
115 killpg(pgrp, sig);
194 pgrp = getpid();
197 if(setpgid(0, pgrp) < 0 && errno != EPERM)
  /src/bin/sh/
jobs.h 74 pid_t pgrp; /* process group of this job */ member in struct:job
  /src/sys/kern/
kern_exit.c 204 struct pgrp *pgrp; local
383 * Signal foreground pgrp,
391 pgrp = tp->t_pgrp;
395 if (pgrp != NULL) {
396 pgsignal(pgrp, SIGHUP, 1);
kern_descrip.c 1950 struct pgrp *pgrp; local
1953 pgrp = pgrp_find(-pgid);
1954 if (pgrp != NULL) {
1955 kpgsignal(pgrp, &ksi, fdescdata, 0);
kern_sig.c 795 struct pgrp *pgrp; local
825 pgrp = cp->p_pgrp;
827 pgrp = pgrp_find(pgid);
828 if (pgrp == NULL)
831 LIST_FOREACH(p, &pgrp->pg_members, p_pglist) {
854 pgsignal(struct pgrp *pgrp, int sig, int checkctty)
863 kpgsignal(pgrp, &ksi, NULL, checkctty);
867 kpgsignal(struct pgrp *pgrp, ksiginfo_t *ksi, void *data, int checkctty
    [all...]
  /src/external/bsd/am-utils/dist/conf/autofs/
autofs_linux.c 675 * We also need to temporarily change pgrp, otherwise our stat() won't
686 pid_t pgrp = getpgrp(); local
689 if ((err = setpgid(0, pgrp))) {
690 plog(XLOG_ERROR, "autofs: cannot restore pgrp: %s", strerror(errno));
  /src/external/gpl3/gdb.old/dist/gdb/
inflow.c 80 inferior stops. This is the pgrp displayed by "info terminal".
84 resumes, if we can determine the inferior's actual pgrp, then we
85 make that the foreground pgrp instead of what was saved here.
86 While it's a bit arbitrary which inferior's pgrp ends up in the
89 inf2's pgrp in the foreground instead of inf1's (which would be
349 then restore whatever was the foreground pgrp the last
352 pid_t pgrp = tinfo->process_group;
363 foreground pgrp away from GDB, for consistency. */
366 pgrp = getpgid (cygpid);
368 pgrp = getpgid (inf->pid)
351 pid_t pgrp = tinfo->process_group; local
    [all...]
  /src/external/gpl3/gdb/dist/gdb/
inflow.c 98 inferior stops. This is the pgrp displayed by "info terminal".
102 resumes, if we can determine the inferior's actual pgrp, then we
103 make that the foreground pgrp instead of what was saved here.
104 While it's a bit arbitrary which inferior's pgrp ends up in the
107 inf2's pgrp in the foreground instead of inf1's (which would be
376 then restore whatever was the foreground pgrp the last
379 pid_t pgrp = tinfo->process_group;
390 foreground pgrp away from GDB, for consistency. */
393 pgrp = getpgid (cygpid);
395 pgrp = getpgid (inf->pid)
378 pid_t pgrp = tinfo->process_group; local
    [all...]
  /src/sys/compat/sunos/
sunos_ioctl.c 507 int pgrp; local
509 error = (*ctl)(fp, TIOCGPGRP, &pgrp);
510 if (error == 0 && pgrp == 0)
514 error = copyout((void *)&pgrp, SCARG(uap, data), sizeof(pgrp));
523 * sigh, must do error translation on pty devices. if the pgrp
527 int pgrp; local
530 error = (*ctl)(fp, TIOCGPGRP, &pgrp);
534 if ((error == EIO || (error == 0 && pgrp == 0)) &&
541 error = copyout((void *)&pgrp, SCARG(uap, data), sizeof(pgrp))
    [all...]
  /src/sys/compat/sunos32/
sunos32_ioctl.c 561 int pgrp; local
562 error = sunos32_do_ioctl(SCARG(&bsd_ua, fd), TIOCGPGRP, &pgrp,
566 return copyout(&pgrp, SCARG_P32(uap, data), sizeof(pgrp));
  /src/lib/libkvm/
kvm_proc.c 307 struct pgrp pgrp; local
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/sys/compat/linux/common/
linux_file.c 305 struct pgrp *pgrp; local
401 * fcntl(), since NetBSD tty TIOC{G,S}PGRP semantics is too
449 pgrp = pgrp_find(pgid);
450 if (pgrp == NULL || pgrp->pg_session != p->p_session) {
454 tp->t_pgrp = pgrp;
  /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...]

Completed in 42 milliseconds

1 2