| /src/lib/libc/compat-43/ |
| killpg.c | 52 killpg(pid_t pgid, int sig) 54 if (pgid == 1 || pgid <= INT_MIN) { 58 return (kill(-pgid, sig));
|
| setpgrp.c | 45 setpgrp(pid_t pid, pid_t pgid) 47 return(setpgid(pid, pgid));
|
| /src/usr.bin/timeout/ |
| timeout.c | 191 pid_t pgid, pid, cpid; local 212 pgid = -1; 259 pgid = setpgid(0,0); 261 if (pgid == -1) 322 killpg(pgid, killsig); 336 killpg(pgid, killsig);
|
| /src/sys/compat/common/ |
| kern_sig_43.c | 264 syscallarg(int) pgid; 268 int pgid = SCARG(uap, pgid); local 270 pgid &= kern_sig_43_pgid_mask; 279 return killpg1(l, &ksi, pgid, 0);
|
| /src/external/gpl3/gdb.old/dist/gdb/nat/ |
| linux-osdata.c | 363 /* A simple PID/PGID pair. */ 368 : pid (pid_), pgid (pgid_) 375 return pid == pgid; 380 /* Sort by PGID. */ 381 if (this->pgid != other.pgid) 382 return this->pgid < other.pgid; 397 PID_T pid, pgid; member in struct:pid_pgid_entry 417 associated PGID. * 420 PID_T pid, pgid; local 441 PID_T pgid = entry.pgid; local [all...] |
| /src/external/gpl3/gdb/dist/gdb/nat/ |
| linux-osdata.c | 363 /* A simple PID/PGID pair. */ 368 : pid (pid_), pgid (pgid_) 375 return pid == pgid; 380 /* Sort by PGID. */ 381 if (this->pgid != other.pgid) 382 return this->pgid < other.pgid; 397 PID_T pid, pgid; member in struct:pid_pgid_entry 417 associated PGID. * 420 PID_T pid, pgid; local 441 PID_T pgid = entry.pgid; local [all...] |
| /src/usr.bin/newgrp/ |
| grutil.c | 113 gid_t pgid; local 117 pgid = pwd->pw_gid; 119 if (groups[i] != pgid)
|
| /src/sys/kern/ |
| kern_prot.c | 262 * pgid must be in valid range (EINVAL) 267 * if pgid != pid 268 * there must exist some pid in same session having pgid (EPERM) 279 syscallarg(int) pgid; 282 pid_t targp, pgid; local 284 if (SCARG(uap, pgid) < 0) 288 if ((pgid = SCARG(uap, pgid)) == 0) 289 pgid = targp; 291 return proc_enterpgrp(p, targp, pgid, false) [all...] |
| kern_descrip.c | 1842 * Sets descriptor owner. If the owner is a process, 'pgid' 1844 * 'pgid' is set to -pg_id. 1847 fsetown(pid_t *pgid, u_long cmd, const void *data) 1874 *pgid = id; 1907 fgetown(pid_t pgid, u_long cmd, void *data) 1912 KASSERT(pgid > INT_MIN); 1913 *(int *)data = -pgid; 1916 *(int *)data = pgid; 1926 fownsignal(pid_t pgid, int signo, int code, int band, void *fdescdata) 1932 if (pgid == 0) [all...] |
| kern_proc.c | 930 pgrp_find(pid_t pgid) 936 pg = pid_table[pgid & pid_tbl_mask].pt_pgrp; 942 if (pg == NULL || pg->pg_id != pgid || LIST_EMPTY(&pg->pg_members)) { 1283 * If we are creating a new pgrp, the pgid should equal 1292 proc_enterpgrp(struct proc *curp, pid_t pid, pid_t pgid, bool mksess) 1307 pgrp = pid_table[pgid & pid_tbl_mask].pt_pgrp; 1308 if (pgrp != NULL && pgrp->pg_id != pgid) 1322 /* ... existing pgid must be in same session ... */ 1350 if (pgrp == NULL && pgid != pid) 1394 pgrp->pg_id = pgid; [all...] |
| tty.c | 1410 pid_t pgid = *(pid_t *)data; local 1419 if (pgid < 0) { 1420 if (pgid <= INT_MIN) { 1424 pgrp = pgrp_find(-pgid); 1431 p1 = proc_find(pgid); 1451 pid_t pgid = *(pid_t *)data; local 1453 if (pgid == NO_PGID) 1461 pgrp = pgrp_find(pgid);
|
| /src/sys/miscfs/procfs/ |
| procfs_status.c | 101 int pid, ppid, pgid, sid; local 112 pgid = p->p_pgrp->pg_id; 139 /* comm pid ppid pgid sid maj,min ctty,sldr start ut st wmsg uid gid groups ... */ 145 pid, ppid, pgid, sid);
|
| /src/usr.sbin/mtree/ |
| create.c | 331 statd(FILE *fp, FTS *t, FTSENT *parent, uid_t *puid, gid_t *pgid, mode_t *pmode, 349 savegid = *pgid; 399 ((keys & (F_GNAME | F_GID)) && (*pgid != savegid)) || 433 *pgid = savegid;
|
| /src/sys/compat/ultrix/ |
| ultrix_misc.c | 440 SCARG(&ap, pgid) = SCARG(uap, pgid); 447 if (!SCARG(&ap, pgid) &&
|
| /src/sys/coda/ |
| coda.h | 373 u_short pgid; /* Common to all */ member in struct:coda_in_hdr 382 pid_t pgid; /* Common to all */ member in struct:coda_in_hdr
|
| coda_venus.c | 114 (in)->pgid = p ? p->p_pgid : -1; \ 133 (in)->pgid = p ? p->p_pgid : -1; \
|
| /src/usr.sbin/pstat/ |
| pstat.c | 807 " LINE RAW CAN OUT HWT LWT COL STATE %-*s PGID DISC\n", 842 pid_t pgid; local 864 pgid = 0; 866 KGET2(&tp->t_pgrp->pg_id, &pgid, sizeof(pid_t), "pgid"); 867 PRWORD(ovflw, " %*d", 6, 1, pgid);
|
| /src/sys/compat/linux/common/ |
| linux_file.c | 301 long pgid; local 435 pgid = -(long)arg; 442 pgid = (long)p1->p_pgrp->pg_id; 444 pgrp = pgrp_find(pgid);
|
| /src/sys/external/bsd/compiler_rt/dist/include/sanitizer/ |
| netbsd_syscall_hooks.h | 433 #define __sanitizer_syscall_pre_setpgid(pid, pgid) \ 434 __sanitizer_syscall_pre_impl_setpgid((long long)(pid), (long long)(pgid)) 435 #define __sanitizer_syscall_post_setpgid(res, pid, pgid) \ 437 (long long)(pgid)) 765 #define __sanitizer_syscall_pre_compat_43_okillpg(pgid, signum) \ 766 __sanitizer_syscall_pre_impl_compat_43_okillpg((long long)(pgid), \ 768 #define __sanitizer_syscall_post_compat_43_okillpg(res, pgid, signum) \ 769 __sanitizer_syscall_post_impl_compat_43_okillpg(res, (long long)(pgid), \ 3008 void __sanitizer_syscall_pre_impl_setpgid(long long pid, long long pgid); 3010 long long pgid); [all...] |
| /src/external/gpl3/gdb.old/dist/gdb/ |
| go32-nat.c | 2135 tcsetpgrp (int fd, pid_t pgid) 2137 if (isatty (fd) && pgid == SOME_PID) 2139 errno = pgid == SOME_PID ? ENOTTY : ENOSYS;
|
| /src/external/gpl3/gdb/dist/gdb/ |
| go32-nat.c | 2133 tcsetpgrp (int fd, pid_t pgid) 2135 if (isatty (fd) && pgid == SOME_PID) 2137 errno = pgid == SOME_PID ? ENOTTY : ENOSYS;
|
| /src/usr.bin/xlint/llib/ |
| llib-lposix | 233 int (setpgid)(pid_t pid, pid_t pgid);
|
| /src/external/gpl3/gcc/dist/libsanitizer/include/sanitizer/ |
| netbsd_syscall_hooks.h | 432 #define __sanitizer_syscall_pre_setpgid(pid, pgid) \ 433 __sanitizer_syscall_pre_impl_setpgid((long long)(pid), (long long)(pgid)) 434 #define __sanitizer_syscall_post_setpgid(res, pid, pgid) \ 436 (long long)(pgid)) 769 #define __sanitizer_syscall_pre_compat_43_okillpg(pgid, signum) \ 770 __sanitizer_syscall_pre_impl_compat_43_okillpg((long long)(pgid), \ 772 #define __sanitizer_syscall_post_compat_43_okillpg(res, pgid, signum) \ 773 __sanitizer_syscall_post_impl_compat_43_okillpg(res, (long long)(pgid), \ 3160 void __sanitizer_syscall_pre_impl_setpgid(long long pid, long long pgid); 3162 long long pgid); [all...] |
| /src/external/gpl3/gcc.old/dist/libsanitizer/include/sanitizer/ |
| netbsd_syscall_hooks.h | 432 #define __sanitizer_syscall_pre_setpgid(pid, pgid) \ 433 __sanitizer_syscall_pre_impl_setpgid((long long)(pid), (long long)(pgid)) 434 #define __sanitizer_syscall_post_setpgid(res, pid, pgid) \ 436 (long long)(pgid)) 769 #define __sanitizer_syscall_pre_compat_43_okillpg(pgid, signum) \ 770 __sanitizer_syscall_pre_impl_compat_43_okillpg((long long)(pgid), \ 772 #define __sanitizer_syscall_post_compat_43_okillpg(res, pgid, signum) \ 773 __sanitizer_syscall_post_impl_compat_43_okillpg(res, (long long)(pgid), \ 3160 void __sanitizer_syscall_pre_impl_setpgid(long long pid, long long pgid); 3162 long long pgid); [all...] |
| /src/sys/compat/netbsd32/ |
| netbsd32_compat_43.c | 333 syscallarg(int) pgid; 338 NETBSD32TO64_UAP(pgid);
|