1posix_spawnattr_getpgroup(S3tCa)ndard C Library Functipoonssix_spawnattr_getpgroup(3C)
2
3
4
6 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup - get and set
7 spawn-pgroup attribute of spawn attributes object
8
10 #include <spawn.h>
11
12 int posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict attr,
13 pid_t *restrict pgroup);
14
15
16 int posix_spawnattr_setpgroup(posix_spawnattr_t *attr, pid_t pgroup);
17
18
20 The posix_spawnattr_getpgroup() function obtains the value of the
21 spawn-pgroup attribute from the attributes object referenced by attr.
22
23
24 The posix_spawnattr_setpgroup() function sets the spawn-pgroup
25 attribute in an initialized attributes object referenced by attr.
26
27
28 The spawn-pgroup attribute represents the process group to be joined by
29 the new process image in a spawn operation (if POSIX_SPAWN_SETPGROUP is
30 set in the spawn-flags attribute). The default value of this attribute
31 is zero.
32
34 Upon successful completion, posix_spawnattr_getpgroup() returns 0 and
35 stores the value of the spawn-pgroup attribute of attr into the object
36 referenced by the pgroup parameter. Otherwise, an error number is
37 returned to indicate the error.
38
39
40 Upon successful completion, posix_spawnattr_setpgroup() returns 0. Oth‐
41 erwise, an error number is returned to indicate the error.
42
44 These functions may fail if:
45
46 EINVAL The value specified by attr is invalid.
47
48
49
50 The posix_spawnattr_setpgroup() function may fail if:
51
52 EINVAL The value of the attribute being set is not valid.
53
54
56 See attributes(5) for descriptions of the following attributes:
57
58
59
60
61 ┌─────────────────────────────┬─────────────────────────────┐
62 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
63 ├─────────────────────────────┼─────────────────────────────┤
64 │Interface Stability │Standard │
65 ├─────────────────────────────┼─────────────────────────────┤
66 │MT-Level │MT-Safe │
67 └─────────────────────────────┴─────────────────────────────┘
68
70 posix_spawn(3C), posix_spawnattr_getpgroup(3C), posix_spawnattr_getp‐
71 group(3C), posix_spawnattr_getschedparam(3C), posix_spawnattr_getsched‐
72 policy(3C), posix_spawnattr_getsigdefault(3C), posix_spawnattr_getsig‐
73 mask(3C), attributes(5), standards(5)
74
75
76
77SunOS 5.11 30 Jan 2004 posix_spawnattr_getpgroup(3C)