1POSIX_SPAWNATTR_GETSIGDEFAULPTO(S3IPX)Programmer'sPMOaSnIuXa_lSPAWNATTR_GETSIGDEFAULT(3P)
2
3
4
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
12 posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault - get and
13 set the spawn-sigdefault attribute of a spawn attributes object
14 (ADVANCED REALTIME)
15
17 #include <signal.h>
18 #include <spawn.h>
19
20 int posix_spawnattr_getsigdefault(const posix_spawnattr_t *
21 restrict attr, sigset_t *restrict sigdefault);
22 int posix_spawnattr_setsigdefault(posix_spawnattr_t *restrict attr,
23 const sigset_t *restrict sigdefault);
24
25
27 The posix_spawnattr_getsigdefault() function shall obtain the value of
28 the spawn-sigdefault attribute from the attributes object referenced by
29 attr.
30
31 The posix_spawnattr_setsigdefault() function shall set the spawn-sigde‐
32 fault attribute in an initialized attributes object referenced by attr.
33
34 The spawn-sigdefault attribute represents the set of signals to be
35 forced to default signal handling in the new process image (if
36 POSIX_SPAWN_SETSIGDEF is set in the spawn-flags attribute) by a spawn
37 operation. The default value of this attribute shall be an empty signal
38 set.
39
41 Upon successful completion, posix_spawnattr_getsigdefault() shall
42 return zero and store the value of the spawn-sigdefault attribute of
43 attr into the object referenced by the sigdefault parameter; otherwise,
44 an error number shall be returned to indicate the error.
45
46 Upon successful completion, posix_spawnattr_setsigdefault() shall
47 return zero; otherwise, an error number shall be returned to indicate
48 the error.
49
51 These functions may fail if:
52
53 EINVAL The value specified by attr is invalid.
54
55
56 The posix_spawnattr_setsigdefault() function may fail if:
57
58 EINVAL The value of the attribute being set is not valid.
59
60
61 The following sections are informative.
62
64 None.
65
67 These functions are part of the Spawn option and need not be provided
68 on all implementations.
69
71 None.
72
74 None.
75
77 posix_spawn(), posix_spawnattr_destroy(), posix_spawnattr_init(),
78 posix_spawnattr_getflags(), posix_spawnattr_getpgroup(), posix_spaw‐
79 nattr_getschedparam(), posix_spawnattr_getschedpolicy(), posix_spaw‐
80 nattr_getsigmask(), posix_spawnattr_setflags(), posix_spawnattr_setp‐
81 group(), posix_spawnattr_setschedparam(), posix_spawnattr_setschedpol‐
82 icy(), posix_spawnattr_setsigmask(), posix_spawnp(), the Base Defini‐
83 tions volume of IEEE Std 1003.1-2001, <signal.h>, <spawn.h>
84
86 Portions of this text are reprinted and reproduced in electronic form
87 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
88 -- Portable Operating System Interface (POSIX), The Open Group Base
89 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
90 Electrical and Electronics Engineers, Inc and The Open Group. In the
91 event of any discrepancy between this version and the original IEEE and
92 The Open Group Standard, the original IEEE and The Open Group Standard
93 is the referee document. The original Standard can be obtained online
94 at http://www.opengroup.org/unix/online.html .
95
96
97
98IEEE/The Open Group 2003 POSIX_SPAWNATTR_GETSIGDEFAULT(3P)