1POSIX_SPAWNATTR_GETPGROUP(3PP)OSIX Programmer's ManuPaOlSIX_SPAWNATTR_GETPGROUP(3P)
2
3
4

PROLOG

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
11

NAME

13       posix_spawnattr_getpgroup, posix_spawnattr_setpgroup — get and set  the
14       spawn-pgroup attribute of a spawn attributes object (ADVANCED REALTIME)
15

SYNOPSIS

17       #include <spawn.h>
18
19       int posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict attr,
20           pid_t *restrict pgroup);
21       int posix_spawnattr_setpgroup(posix_spawnattr_t *attr, pid_t pgroup);
22

DESCRIPTION

24       The  posix_spawnattr_getpgroup() function shall obtain the value of the
25       spawn-pgroup attribute from the attributes object referenced by attr.
26
27       The posix_spawnattr_setpgroup() function  shall  set  the  spawn-pgroup
28       attribute in an initialized attributes object referenced by attr.
29
30       The spawn-pgroup attribute represents the process group to be joined by
31       the new process image in a spawn operation (if POSIX_SPAWN_SETPGROUP is
32       set  in the spawn-flags attribute). The default value of this attribute
33       shall be zero.
34

RETURN VALUE

36       Upon successful completion,  posix_spawnattr_getpgroup()  shall  return
37       zero and store the value of the spawn-pgroup attribute of attr into the
38       object referenced by the pgroup parameter; otherwise, an  error  number
39       shall be returned to indicate the error.
40
41       Upon  successful  completion,  posix_spawnattr_setpgroup() shall return
42       zero; otherwise, an error number shall  be  returned  to  indicate  the
43       error.
44

ERRORS

46       These functions may fail if:
47
48       EINVAL The value specified by attr is invalid.
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       The following sections are informative.
55

EXAMPLES

57       None.
58

APPLICATION USAGE

60       These  functions  are part of the Spawn option and need not be provided
61       on all implementations.
62

RATIONALE

64       None.
65

FUTURE DIRECTIONS

67       None.
68

SEE ALSO

70       posix_spawn(), posix_spawnattr_destroy(), posix_spawnattr_getsigde‐
71       fault(), posix_spawnattr_getflags(), posix_spawnattr_getschedparam(),
72       posix_spawnattr_getschedpolicy(), posix_spawnattr_getsigmask()
73
74       The Base Definitions volume of POSIX.1‐2008, <spawn.h>
75
77       Portions of this text are reprinted and reproduced in  electronic  form
78       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
79       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
80       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
81       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
82       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) In the
83       event of any discrepancy between this version and the original IEEE and
84       The  Open Group Standard, the original IEEE and The Open Group Standard
85       is the referee document. The original Standard can be  obtained  online
86       at http://www.unix.org/online.html .
87
88       Any  typographical  or  formatting  errors that appear in this page are
89       most likely to have been introduced during the conversion of the source
90       files  to  man page format. To report such errors, see https://www.ker
91       nel.org/doc/man-pages/reporting_bugs.html .
92
93
94
95IEEE/The Open Group                  2013        POSIX_SPAWNATTR_GETPGROUP(3P)
Impressum