/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 in function:main 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 in function:compat_43_sys_killpg 270 pgid &= kern_sig_43_pgid_mask; 279 return killpg1(l, &ksi, pgid, 0);
|
/src/usr.bin/newgrp/ |
grutil.c | 113 gid_t pgid; local in function:addgid 117 pgid = pwd->pw_gid; 119 if (groups[i] != pgid)
|
/src/sys/kern/ |
kern_prot.c | 260 * pgid must be in valid range (EINVAL) 265 * if pgid != pid 266 * there must exist some pid in same session having pgid (EPERM) 277 syscallarg(int) pgid; 280 pid_t targp, pgid; local in function:sys_setpgid 282 if (SCARG(uap, pgid) < 0) 286 if ((pgid = SCARG(uap, pgid)) == 0) 287 pgid = targp; 289 return proc_enterpgrp(p, targp, pgid, false) [all...] |
kern_descrip.c | 1839 * Sets descriptor owner. If the owner is a process, 'pgid' 1841 * 'pgid' is set to -pg_id. 1844 fsetown(pid_t *pgid, u_long cmd, const void *data) 1871 *pgid = id; 1904 fgetown(pid_t pgid, u_long cmd, void *data) 1909 KASSERT(pgid > INT_MIN); 1910 *(int *)data = -pgid; 1913 *(int *)data = pgid; 1923 fownsignal(pid_t pgid, int signo, int code, int band, void *fdescdata) 1929 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 in function:ttioctl 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 in function:ttioctl 1453 if (pgid == NO_PGID) 1461 pgrp = pgrp_find(pgid);
|
kern_sig.c | 788 killpg1(struct lwp *l, ksiginfo_t *ksi, int pgid, int all) 820 if (pgid == 0) 821 /* Zero pgid means send to my process group. */ 824 pgrp = pgrp_find(pgid);
|
/src/sys/miscfs/procfs/ |
procfs_status.c | 101 int pid, ppid, pgid, sid; local in function:procfs_status_netbsd 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) &&
|
ultrix_syscallargs.h | 174 syscallarg(int) 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 in function:ttyprt 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 in function:linux_sys_fcntl 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...] |
linux_syscall_hooks.h | 141 #define __sanitizer_syscall_pre_setpgid(pid, pgid) \ 142 __sanitizer_syscall_pre_impl_setpgid((long)(pid), (long)(pgid)) 143 #define __sanitizer_syscall_post_setpgid(res, pid, pgid) \ 144 __sanitizer_syscall_post_impl_setpgid(res, (long)(pid), (long)(pgid)) 2079 void __sanitizer_syscall_pre_impl_setpgid(long pid, long pgid); 2080 void __sanitizer_syscall_post_impl_setpgid(long res, long pid, long pgid);
|
/src/usr.bin/xlint/llib/ |
llib-lposix | 233 int (setpgid)(pid_t pid, pid_t pgid);
|
/src/sys/compat/sunos/ |
sunos_syscallargs.h | 196 syscallarg(int) pgid;
|
sunos_misc.c | 679 if (!SCARG(uap, pgid) &&
|
/src/sys/compat/sunos32/ |
sunos32_syscallargs.h | 208 syscallarg(int) pgid;
|
/src/sys/compat/netbsd32/ |
netbsd32_compat_43.c | 333 syscallarg(int) pgid; 338 NETBSD32TO64_UAP(pgid);
|