getconf: don't include xpg4 bits, gcc7 includes xpg6 bits for us
[unleashed.git] / share / man / man1 / setpgrp.1
blob7528f8a7de61198512f53dcf3788f8bbbdad3ad1
1 '\" te
2 .\" Copyright (c) 2000 Sun Microsystems, Inc.,
3 .\" All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH SETPGRP 1 "Jan 5, 2000"
8 .SH NAME
9 setpgrp \- set process group ID
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fBsetpgrp\fR \fIcommand\fR [\fIarg\fR]...
14 .fi
16 .SH DESCRIPTION
17 .sp
18 .LP
19 If the current process is not already a session leader, the \fBsetpgrp\fR
20 utility sets the process group \fBID\fR and session \fBID\fR to the current
21 process \fBID\fR and does an \fBexec()\fR of \fIcommand\fR and its argument(s),
22 if any.
23 .SH OPERANDS
24 .sp
25 .LP
26 The following operands are supported:
27 .sp
28 .ne 2
29 .na
30 \fB\fIcommand\fR\fR
31 .ad
32 .RS 11n
33 The name of a command to be invoked.
34 .RE
36 .sp
37 .ne 2
38 .na
39 \fB\fIarg\fR\fR
40 .ad
41 .RS 11n
42 An option or argument to \fIcommand\fR.
43 .RE
45 .SH EXIT STATUS
46 .sp
47 .LP
48 The following exit values are returned:
49 .sp
50 .ne 2
51 .na
52 \fB\fB1\fR\fR
53 .ad
54 .RS 5n
55 Error executing the \fBsetpgrp\fR utility or during \fBexec()\fR of
56 \fIcommand\fR.
57 .RE
59 .sp
60 .LP
61 Otherwise, the exit status will be that of \fIcommand\fR.
62 .SH SEE ALSO
63 .sp
64 .LP
65 \fBexec\fR(2), \fBsetpgrp\fR(2), \fBattributes\fR(5)