1POSIX_SPAWNATTR_GETSIGMASK(3PPO)SIX Programmer's ManPuOaSlIX_SPAWNATTR_GETSIGMASK(3P)
2
3
4

PROLOG

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
11

NAME

13       posix_spawnattr_getsigmask, posix_spawnattr_setsigmask —  get  and  set
14       the  spawn-sigmask  attribute  of  a  spawn attributes object (ADVANCED
15       REALTIME)
16

SYNOPSIS

18       #include <signal.h>
19       #include <spawn.h>
20
21       int posix_spawnattr_getsigmask(const posix_spawnattr_t *restrict attr,
22           sigset_t *restrict sigmask);
23       int posix_spawnattr_setsigmask(posix_spawnattr_t *restrict attr,
24           const sigset_t *restrict sigmask);
25

DESCRIPTION

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

RETURN VALUE

39       Upon  successful  completion, posix_spawnattr_getsigmask() shall return
40       zero and store the value of the spawn-sigmask attribute  of  attr  into
41       the  object  referenced  by  the sigmask parameter; otherwise, an error
42       number shall be returned to indicate the error.
43
44       Upon successful completion, posix_spawnattr_setsigmask()  shall  return
45       zero;  otherwise,  an  error  number  shall be returned to indicate the
46       error.
47

ERRORS

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

EXAMPLES

60       None.
61

APPLICATION USAGE

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

RATIONALE

67       None.
68

FUTURE DIRECTIONS

70       None.
71

SEE ALSO

73       posix_spawn(), posix_spawnattr_destroy(), posix_spawnattr_getsigde‐
74       fault(), posix_spawnattr_getflags(), posix_spawnattr_getpgroup(),
75       posix_spawnattr_getschedparam(), posix_spawnattr_getschedpolicy()
76
77       The Base Definitions volume of POSIX.1‐2008, <signal.h>, <spawn.h>
78
80       Portions  of  this text are reprinted and reproduced in electronic form
81       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
82       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
83       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
84       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
85       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
86       event of any discrepancy between this version and the original IEEE and
87       The Open Group Standard, the original IEEE and The Open Group  Standard
88       is  the  referee document. The original Standard can be obtained online
89       at http://www.unix.org/online.html .
90
91       Any typographical or formatting errors that appear  in  this  page  are
92       most likely to have been introduced during the conversion of the source
93       files to man page format. To report such errors,  see  https://www.ker
94       nel.org/doc/man-pages/reporting_bugs.html .
95
96
97
98IEEE/The Open Group                  2013       POSIX_SPAWNATTR_GETSIGMASK(3P)
Impressum