1POSIX_SPAWNATTR_GETFLAGS(3P)POSIX Programmer's ManuaPlOSIX_SPAWNATTR_GETFLAGS(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_getflags, posix_spawnattr_setflags — get  and  set  the
14       spawn-flags attribute of a spawn attributes object (ADVANCED REALTIME)
15

SYNOPSIS

17       #include <spawn.h>
18
19       int posix_spawnattr_getflags(const posix_spawnattr_t *restrict attr,
20           short *restrict flags);
21       int posix_spawnattr_setflags(posix_spawnattr_t *attr, short flags);
22

DESCRIPTION

24       The  posix_spawnattr_getflags()  function shall obtain the value of the
25       spawn-flags attribute from the attributes object referenced by attr.
26
27       The  posix_spawnattr_setflags()  function  shall  set  the  spawn-flags
28       attribute in an initialized attributes object referenced by attr.
29
30       The  spawn-flags attribute is used to indicate which process attributes
31       are to be changed in the new process image when invoking  posix_spawn()
32       or  posix_spawnp().   It is the bitwise-inclusive OR of zero or more of
33       the following flags:
34
35       POSIX_SPAWN_RESETIDS
36       POSIX_SPAWN_SETPGROUP
37       POSIX_SPAWN_SETSIGDEF
38       POSIX_SPAWN_SETSIGMASK
39       POSIX_SPAWN_SETSCHEDPARAM
40       POSIX_SPAWN_SETSCHEDULER
41
42       These flags are defined  in  <spawn.h>.   The  default  value  of  this
43       attribute shall be as if no flags were set.
44

RETURN VALUE

46       Upon  successful  completion,  posix_spawnattr_getflags()  shall return
47       zero and store the value of the spawn-flags attribute of attr into  the
48       object  referenced  by  the flags parameter; otherwise, an error number
49       shall be returned to indicate the error.
50
51       Upon successful  completion,  posix_spawnattr_setflags()  shall  return
52       zero;  otherwise,  an  error  number  shall be returned to indicate the
53       error.
54

ERRORS

56       These functions may fail if:
57
58       EINVAL The value specified by attr is invalid.
59
60       The posix_spawnattr_setflags() function may fail if:
61
62       EINVAL The value of the attribute being set is not valid.
63
64       The following sections are informative.
65

EXAMPLES

67       None.
68

APPLICATION USAGE

70       These functions are part of the Spawn option and need not  be  provided
71       on all implementations.
72

RATIONALE

74       None.
75

FUTURE DIRECTIONS

77       None.
78

SEE ALSO

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