1posix_spawnattr_getsigdefaSutlatn(d3aCr)d C Library Fupnocstiixo_nsspawnattr_getsigdefault(3C)
2
3
4

NAME

6       posix_spawnattr_getsigdefault,  posix_spawnattr_setsigdefault - get and
7       set spawn-sigdefault attribute of spawn attributes object
8

SYNOPSIS

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

DESCRIPTION

22       The posix_spawnattr_getsigdefault() function obtains the value  of  the
23       spawn-sigdefault  attribute  from  the  attributes object referenced by
24       attr.
25
26
27       The posix_spawnattr_setsigdefault() function sets the  spawn-sigdefault
28       attribute in an initialized attributes object referenced by attr.
29
30
31       The  spawn-sigdefault  attribute  represents  the  set of signals to be
32       forced to  default  signal  handling  in  the  new  process  image  (if
33       POSIX_SPAWN_SETSIGDEF  is  set in the spawn-flags attribute) by a spawn
34       operation. The default value of this attribute is an empty signal set.
35

RETURN VALUES

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

ERRORS

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

ATTRIBUTES

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

SEE ALSO

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