1POSIX_SPAWNATTR_GETSIGDEFAULPTO(SPI)X Programmer's MPaOnSuIaXl_SPAWNATTR_GETSIGDEFAULT(P)
2
3
4

NAME

6       posix_spawnattr_getsigdefault,  posix_spawnattr_setsigdefault - get and
7       set  the  spawn-sigdefault  attribute  of  a  spawn  attributes  object
8       (ADVANCED REALTIME)
9

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

35       Upon  successful  completion,   posix_spawnattr_getsigdefault()   shall
36       return  zero  and  store the value of the spawn-sigdefault attribute of
37       attr into the object referenced by the sigdefault parameter; otherwise,
38       an error number shall be returned to indicate the error.
39
40       Upon   successful   completion,  posix_spawnattr_setsigdefault()  shall
41       return zero; otherwise, an error number shall be returned  to  indicate
42       the error.
43

ERRORS

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

EXAMPLES

58       None.
59

APPLICATION USAGE

61       These  functions  are part of the Spawn option and need not be provided
62       on all implementations.
63

RATIONALE

65       None.
66

FUTURE DIRECTIONS

68       None.
69

SEE ALSO

71       posix_spawn() , posix_spawnattr_destroy()  ,  posix_spawnattr_init()  ,
72       posix_spawnattr_getflags()  , posix_spawnattr_getpgroup() , posix_spaw‐
73       nattr_getschedparam() , posix_spawnattr_getschedpolicy() ,  posix_spaw‐
74       nattr_getsigmask() , posix_spawnattr_setflags() , posix_spawnattr_setp‐
75       group() , posix_spawnattr_setschedparam()  ,  posix_spawnattr_setsched‐
76       policy()  ,  posix_spawnattr_setsigmask()  ,  posix_spawnp() , the Base
77       Definitions volume of IEEE Std 1003.1-2001, <signal.h>, <spawn.h>
78
80       Portions of this text are reprinted and reproduced in  electronic  form
81       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
82       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
83       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
84       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
85       event of any discrepancy between this version and the original IEEE and
86       The Open Group Standard, the original IEEE and The Open Group  Standard
87       is  the  referee document. The original Standard can be obtained online
88       at http://www.opengroup.org/unix/online.html .
89
90
91
92IEEE/The Open Group                  2003     POSIX_SPAWNATTR_GETSIGDEFAULT(P)
Impressum