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

NAME

12       posix_spawnattr_getflags, posix_spawnattr_setflags - get  and  set  the
13       spawn-flags attribute of a spawn attributes object (ADVANCED REALTIME)
14

SYNOPSIS

16       #include <spawn.h>
17
18       int posix_spawnattr_getflags(const posix_spawnattr_t *restrict attr,
19              short *restrict flags);
20       int posix_spawnattr_setflags(posix_spawnattr_t *attr, short flags);
21
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
40       POSIX_SPAWN_SETSCHEDPARAM
41       POSIX_SPAWN_SETSCHEDULER
42
43
44       These flags are  defined  in  <spawn.h>.  The  default  value  of  this
45       attribute shall be as if no flags were set.
46

RETURN VALUE

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

ERRORS

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

EXAMPLES

71       None.
72

APPLICATION USAGE

74       These functions are part of the Spawn option and need not  be  provided
75       on all implementations.
76

RATIONALE

78       None.
79

FUTURE DIRECTIONS

81       None.
82

SEE ALSO

84       posix_spawn(),    posix_spawnattr_destroy(),    posix_spawnattr_init(),
85       posix_spawnattr_getsigdefault(),           posix_spawnattr_getpgroup(),
86       posix_spawnattr_getschedparam(),      posix_spawnattr_getschedpolicy(),
87       posix_spawnattr_getsigmask(),          posix_spawnattr_setsigdefault(),
88       posix_spawnattr_setpgroup(),           posix_spawnattr_setschedparam(),
89       posix_spawnattr_setschedpolicy(),         posix_spawnattr_setsigmask(),
90       posix_spawnp(),  the  Base  Definitions volume of IEEE Std 1003.1-2001,
91       <spawn.h>
92
94       Portions of this text are reprinted and reproduced in  electronic  form
95       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
96       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
97       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
98       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
99       event of any discrepancy between this version and the original IEEE and
100       The Open Group Standard, the original IEEE and The Open Group  Standard
101       is  the  referee document. The original Standard can be obtained online
102       at http://www.opengroup.org/unix/online.html .
103
104
105
106IEEE/The Open Group                  2003         POSIX_SPAWNATTR_GETFLAGS(3P)
Impressum