1POSIX_SPAWNATTR_GETPGROUP(3PP)OSIX Programmer's ManuPaOlSIX_SPAWNATTR_GETPGROUP(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup — get and set the
13 spawn-pgroup attribute of a spawn attributes object (ADVANCED REALTIME)
14
16 #include <spawn.h>
17
18 int posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict attr,
19 pid_t *restrict pgroup);
20 int posix_spawnattr_setpgroup(posix_spawnattr_t *attr, pid_t pgroup);
21
23 The posix_spawnattr_getpgroup() function shall obtain the value of the
24 spawn-pgroup attribute from the attributes object referenced by attr.
25
26 The posix_spawnattr_setpgroup() function shall set the spawn-pgroup
27 attribute in an initialized attributes object referenced by attr.
28
29 The spawn-pgroup attribute represents the process group to be joined by
30 the new process image in a spawn operation (if POSIX_SPAWN_SETPGROUP is
31 set in the spawn-flags attribute). The default value of this attribute
32 shall be zero.
33
35 Upon successful completion, posix_spawnattr_getpgroup() shall return
36 zero and store the value of the spawn-pgroup attribute of attr into the
37 object referenced by the pgroup parameter; otherwise, an error number
38 shall be returned to indicate the error.
39
40 Upon successful completion, posix_spawnattr_setpgroup() shall return
41 zero; otherwise, an error number shall be returned to indicate the
42 error.
43
45 These functions may fail if:
46
47 EINVAL The value specified by attr is invalid.
48
49 The posix_spawnattr_setpgroup() function may fail if:
50
51 EINVAL The value of the attribute being set is not valid.
52
53 The following sections are informative.
54
56 None.
57
59 These functions are part of the Spawn option and need not be provided
60 on all implementations.
61
63 None.
64
66 None.
67
69 posix_spawn(), posix_spawnattr_destroy(), posix_spawnattr_getsigde‐
70 fault(), posix_spawnattr_getflags(), posix_spawnattr_getschedparam(),
71 posix_spawnattr_getschedpolicy(), posix_spawnattr_getsigmask()
72
73 The Base Definitions volume of POSIX.1‐2017, <spawn.h>
74
76 Portions of this text are reprinted and reproduced in electronic form
77 from IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
78 table Operating System Interface (POSIX), The Open Group Base Specifi‐
79 cations Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of
80 Electrical and Electronics Engineers, Inc and The Open Group. In the
81 event of any discrepancy between this version and the original IEEE and
82 The Open Group Standard, the original IEEE and The Open Group Standard
83 is the referee document. The original Standard can be obtained online
84 at http://www.opengroup.org/unix/online.html .
85
86 Any typographical or formatting errors that appear in this page are
87 most likely to have been introduced during the conversion of the source
88 files to man page format. To report such errors, see https://www.ker‐
89 nel.org/doc/man-pages/reporting_bugs.html .
90
91
92
93IEEE/The Open Group 2017 POSIX_SPAWNATTR_GETPGROUP(3P)