1.\"	$OpenBSD: posix_spawnattr_getpgroup.3,v 1.9 2017/05/29 09:40:02 deraadt Exp $
2.\"
3.\" Copyright (c) 2012 Marc Espie <espie@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: May 29 2017 $
18.Dt POSIX_SPAWNATTR_GETPGROUP 3
19.Os
20.Sh NAME
21.Nm posix_spawnattr_getpgroup ,
22.Nm posix_spawnattr_getschedparam ,
23.Nm posix_spawnattr_getschedpolicy ,
24.Nm posix_spawnattr_getsigdefault ,
25.Nm posix_spawnattr_getsigmask ,
26.Nm posix_spawnattr_setpgroup ,
27.Nm posix_spawnattr_setschedparam ,
28.Nm posix_spawnattr_setschedpolicy ,
29.Nm posix_spawnattr_setsigdefault ,
30.Nm posix_spawnattr_setsigmask
31.Nd get and set misc attributes of a posix_spawn attributes object
32.Sh SYNOPSIS
33.In spawn.h
34.Ft int
35.Fn posix_spawnattr_getpgroup "const posix_spawnattr_t *restrict attr" "pid_t *restrict pgroup"
36.Ft int
37.Fn posix_spawnattr_getschedparam "const posix_spawnattr_t *restrict attr" "struct sched_param *restrict schedparam"
38.Ft int
39.Fn posix_spawnattr_getschedpolicy "const posix_spawnattr_t *restrict attr" "int *restrict schedpolicy"
40.Ft int
41.Fn posix_spawnattr_getsigdefault "const posix_spawnattr_t *restrict attr" "sigset_t *restrict sigdefault"
42.Ft int
43.Fn posix_spawnattr_getsigmask "const posix_spawnattr_t *restrict attr" "sigset_t *restrict sigmask"
44.Ft int
45.Fn posix_spawnattr_setpgroup "posix_spawnattr_t *attr" "pid_t pgroup"
46.Ft int
47.Fn posix_spawnattr_setschedparam "posix_spawnattr_t *attr" "const struct sched_param *restrict schedparam"
48.Ft int
49.Fn posix_spawnattr_setschedpolicy "posix_spawnattr_t *attr" "int schedpolicy"
50.Ft int
51.Fn posix_spawnattr_setsigdefault "posix_spawnattr_t *attr" "const sigset_t *restrict sigdefault"
52.Ft int
53.Fn posix_spawnattr_setsigmask "posix_spawnattr_t *attr" "const sigset_t *restrict sigmask"
54.Sh DESCRIPTION
55The
56.Fn posix_spawnattr_get*
57functions obtain the value of the corresponding attribute from the
58attributes object referenced by
59.Fa attr .
60.Pp
61The
62.Fn posix_spawnattr_set*
63functions set the value of the corresponding attribute in the
64attributes object referenced by
65.Fa attr .
66.Pp
67See
68.Xr posix_spawnattr_getflags 3
69for attribute details.
70.Sh RETURN VALUES
71Those functions return 0.
72.Sh SEE ALSO
73.Xr posix_spawn 3 ,
74.Xr posix_spawnattr_init 3 ,
75.Xr sigaddset 3
76.Sh STANDARDS
77These functions conform to
78.St -p1003.1-2001 .
79.Sh AUTHORS
80.An \&Ed Schouten Aq Mt ed@FreeBSD.org
81