1POSIX_SPAWNATTR_GETSIGMASK(PP)OSIX Programmer's ManuPaOlSIX_SPAWNATTR_GETSIGMASK(P)
2
3
4

NAME

6       posix_spawnattr_getsigmask,  posix_spawnattr_setsigmask  -  get and set
7       the spawn-sigmask attribute of  a  spawn  attributes  object  (ADVANCED
8       REALTIME)
9

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

EXAMPLES

56       None.
57

APPLICATION USAGE

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

RATIONALE

63       None.
64

FUTURE DIRECTIONS

66       None.
67

SEE ALSO

69       posix_spawn() , posix_spawnattr_destroy()  ,  posix_spawnattr_init()  ,
70       posix_spawnattr_getsigdefault()    ,    posix_spawnattr_getflags()    ,
71       posix_spawnattr_getpgroup()   ,    posix_spawnattr_getschedparam()    ,
72       posix_spawnattr_getschedpolicy()  ,  posix_spawnattr_setsigdefault()  ,
73       posix_spawnattr_setflags() , posix_spawnattr_setpgroup() ,  posix_spaw‐
74       nattr_setschedparam()      ,     posix_spawnattr_setschedpolicy()     ,
75       posix_spawnp() , the Base Definitions volume  of  IEEE Std 1003.1-2001,
76       <signal.h>, <spawn.h>
77
79       Portions  of  this text are reprinted and reproduced in electronic form
80       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
81       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
82       Specifications Issue 6, Copyright (C) 2001-2003  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
90
91IEEE/The Open Group                  2003        POSIX_SPAWNATTR_GETSIGMASK(P)
Impressum