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

NAME

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

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

48       These functions may fail if:
49
50       EINVAL The value specified by attr is invalid.
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       The following sections are informative.
57

EXAMPLES

59       None.
60

APPLICATION USAGE

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

RATIONALE

66       None.
67

FUTURE DIRECTIONS

69       None.
70

SEE ALSO

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