1posix_spawnattr_getflags(3SCt)andard C Library Functiopnossix_spawnattr_getflags(3C)
2
3
4

NAME

6       posix_spawnattr_getflags, posix_spawnattr_setflags - get and set spawn-
7       flags attribute of spawn attributes object
8

SYNOPSIS

10       #include <spawn.h>
11
12       int posix_spawnattr_getflags(const posix_spawnattr_t *restrict attr,
13            short *restrict flags);
14
15
16       int posix_spawnattr_setflags(posix_spawnattr_t * attr, short flags);
17
18

DESCRIPTION

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

RETURN VALUES

47       Upon successful completion, posix_spawnattr_getflags()  returns  0  and
48       stores  the  value of the spawn-flags attribute of attr into the object
49       referenced by the  flags  parameter.  Otherwise,  an  error  number  is
50       returned to indicate the error.
51
52
53       Upon  successful completion, posix_spawnattr_setflags() returns 0. Oth‐
54       erwise, an error number is returned to indicate the error.
55

ERRORS

57       These functions may fail if:
58
59       EINVAL    The value specified by attr is invalid.
60
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

ATTRIBUTES

69       See attributes(5) for descriptions of the following attributes:
70
71
72
73
74       ┌─────────────────────────────┬─────────────────────────────┐
75       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
76       ├─────────────────────────────┼─────────────────────────────┤
77       │Interface Stability          │Committed                    │
78       ├─────────────────────────────┼─────────────────────────────┤
79       │MT-Level                     │MT-Safe                      │
80       ├─────────────────────────────┼─────────────────────────────┤
81       │Standard                     │See standards(5).            │
82       └─────────────────────────────┴─────────────────────────────┘
83

SEE ALSO

85       posix_spawn(3C),   posix_spawnattr_destroy(3C),   posix_spawnattr_getp‐
86       group(3C), posix_spawnattr_getschedparam(3C), posix_spawnattr_getsched‐
87       policy(3C), posix_spawnattr_getsigdefault(3C),  posix_spawnattr_getsig‐
88       mask(3C), attributes(5), standards(5)
89
90
91
92SunOS 5.11                        25 Sep 2008     posix_spawnattr_getflags(3C)
Impressum