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