4.1cBSD/usr/man/man2/setpgrp.2

Compare this file to the similar file:
Show the results in this format:

.TH SETPGRP 2 2/12/83
.SH NAME
setpgrp \- set process group
.SH SYNOPSIS
.ft B
setpgrp(pid, pgrp)
.br
int pid, pgrp;
.ft R
.SH DESCRIPTION
.I Setpgrp
sets the process group of the specified process
.I pid
to the specified
.IR pgrp .
If
.I pid
is zero, then the call applies to the current process.
.PP
If the invoker is not the super-user, then the affected process
must have the same effective user-id as the invoker or be a descendant
of the invoking process.
.SH "RETURN VALUE
???
.SH ERRORS
???
.SH "SEE ALSO"
getpgrp(2), intro(3J)