1posix_spawnattr_getsigmaskS(t3aCn)dard C Library Functpioosnisx_spawnattr_getsigmask(3C)
2
3
4

NAME

6       posix_spawnattr_getsigmask,  posix_spawnattr_setsigmask  -  get and set
7       spawn-sigmask attribute of spawn attributes object
8

SYNOPSIS

10       #include <signal.h>
11       #include <spawn.h>
12
13       int posix_spawnattr_getsigmask(const posix_spawnattr_t *restrict attr,
14            sigset_t *restrict sigmask);
15
16
17       int posix_spawnattr_setsigmask(posix_spawnattr_t *restrict attr,
18            const sigset_t *restrict sigmask);
19
20

DESCRIPTION

22       The posix_spawnattr_getsigmask() function  obtains  the  value  of  the
23       spawn-sigmask attribute from the attributes object referenced by attr.
24
25
26       The   posix_spawnattr_setsigmask()   function  sets  the  spawn-sigmask
27       attribute in an initialized attributes object referenced by attr.
28
29
30       The spawn-sigmask attribute represents the signal mask in effect in the
31       new  process  image  of a spawn operation (if POSIX_SPAWN_SETSIGMASK is
32       set in the spawn-flags attribute). The default value of this  attribute
33       is unspecified.
34

RETURN VALUES

36       Upon  successful completion, posix_spawnattr_getsigmask() returns 0 and
37       stores the value of the spawn-sigmask attribute of attr into the object
38       referenced  by  the  sigmask  parameter.  Otherwise, an error number is
39       returned to indicate the error.
40
41
42       Upon successful  completion,  posix_spawnattr_setsigmask()  returns  0.
43       Otherwise, an error number is returned to indicate the error.
44

ERRORS

46       These functions may fail if:
47
48       EINVAL    The value specified by attr is invalid.
49
50
51
52       The posix_spawnattr_setsigmask() function may fail if:
53
54       EINVAL    The value of the attribute being set is not valid.
55
56

ATTRIBUTES

58       See attributes(5) for descriptions of the following attributes:
59
60
61
62
63       ┌─────────────────────────────┬─────────────────────────────┐
64       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
65       ├─────────────────────────────┼─────────────────────────────┤
66       │Interface Stability          │Standard                     │
67       ├─────────────────────────────┼─────────────────────────────┤
68       │MT-Level                     │MT-Safe                      │
69       └─────────────────────────────┴─────────────────────────────┘
70

SEE ALSO

72       posix_spawn(3C),    posix_spawnattr_destroy(3C),   posix_spawnattr_get‐
73       flags(3C),   posix_spawnattr_getpgroup(3C),   posix_spawnattr_getsched‐
74       param(3C),  posix_spawnattr_getschedpolicy(3C), posix_spawnattr_getsig‐
75       mask(3C), attributes(5), standards(5)
76
77
78
79SunOS 5.11                        30 Jan 2004   posix_spawnattr_getsigmask(3C)
Impressum