1spawn.h(0P)                POSIX Programmer's Manual               spawn.h(0P)
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       spawn.h — spawn (ADVANCED REALTIME)
13

SYNOPSIS

15       #include <spawn.h>
16

DESCRIPTION

18       The  <spawn.h>  header   shall   define   the   posix_spawnattr_t   and
19       posix_spawn_file_actions_t types used in performing spawn operations.
20
21       The  <spawn.h>  header  shall  define  the  mode_t  and  pid_t types as
22       described in <sys/types.h>.
23
24       The <spawn.h> header shall define the sigset_t  type  as  described  in
25       <signal.h>.
26
27       The tag sched_param shall be declared as naming an incomplete structure
28       type, the contents of which are described in the <sched.h> header.
29
30       The <spawn.h> header shall define the following symbolic constants  for
31       use  as  the  flags that may be set in a posix_spawnattr_t object using
32       the posix_spawnattr_setflags() function:
33
34       POSIX_SPAWN_RESETIDS
35       POSIX_SPAWN_SETPGROUP
36       POSIX_SPAWN_SETSCHEDPARAM
37       POSIX_SPAWN_SETSCHEDULER
38       POSIX_SPAWN_SETSIGDEF
39       POSIX_SPAWN_SETSIGMASK
40
41       The following shall be declared as functions and may also be defined as
42       macros. Function prototypes shall be provided.
43
44
45           int   posix_spawn(pid_t *restrict, const char *restrict,
46                     const posix_spawn_file_actions_t *,
47                     const posix_spawnattr_t *restrict, char *const [restrict],
48                     char *const [restrict]);
49           int   posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *,
50                     int);
51           int   posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *,
52                     int, int);
53           int   posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *restrict,
54                     int, const char *restrict, int, mode_t);
55           int   posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *);
56           int   posix_spawn_file_actions_init(posix_spawn_file_actions_t *);
57           int   posix_spawnattr_destroy(posix_spawnattr_t *);
58           int   posix_spawnattr_getflags(const posix_spawnattr_t *restrict,
59                     short *restrict);
60           int   posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict,
61                     pid_t *restrict);
62           int   posix_spawnattr_getschedparam(const posix_spawnattr_t *restrict,
63                     struct sched_param *restrict);
64           int   posix_spawnattr_getschedpolicy(const posix_spawnattr_t *restrict,
65                     int *restrict);
66           int   posix_spawnattr_getsigdefault(const posix_spawnattr_t *restrict,
67                     sigset_t *restrict);
68           int   posix_spawnattr_getsigmask(const posix_spawnattr_t *restrict,
69                     sigset_t *restrict);
70           int   posix_spawnattr_init(posix_spawnattr_t *);
71           int   posix_spawnattr_setflags(posix_spawnattr_t *, short);
72           int   posix_spawnattr_setpgroup(posix_spawnattr_t *, pid_t);
73           int   posix_spawnattr_setschedparam(posix_spawnattr_t *restrict,
74                     const struct sched_param *restrict);
75           int   posix_spawnattr_setschedpolicy(posix_spawnattr_t *, int);
76           int   posix_spawnattr_setsigdefault(posix_spawnattr_t *restrict,
77                     const sigset_t *restrict);
78           int   posix_spawnattr_setsigmask(posix_spawnattr_t *restrict,
79                     const sigset_t *restrict);
80           int   posix_spawnp(pid_t *restrict, const char *restrict,
81                     const posix_spawn_file_actions_t *,
82                     const posix_spawnattr_t *restrict,
83                     char *const [restrict], char *const [restrict]);
84
85       Inclusion  of  the <spawn.h> header may make visible symbols defined in
86       the <sched.h> and <signal.h> headers.
87
88       The following sections are informative.
89

APPLICATION USAGE

91       None.
92

RATIONALE

94       None.
95

FUTURE DIRECTIONS

97       None.
98

SEE ALSO

100       <sched.h>, <semaphore.h>, <signal.h>, <sys_types.h>
101
102       The System Interfaces volume of POSIX.1‐2017, posix_spawn(),
103       posix_spawn_file_actions_addclose(),
104       posix_spawn_file_actions_adddup2(), posix_spawn_file_actions_destroy(),
105       posix_spawnattr_destroy(), posix_spawnattr_getflags(), posix_spaw‐
106       nattr_getpgroup(), posix_spawnattr_getschedparam(), posix_spaw‐
107       nattr_getschedpolicy(), posix_spawnattr_getsigdefault(), posix_spaw‐
108       nattr_getsigmask()
109
111       Portions of this text are reprinted and reproduced in  electronic  form
112       from  IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
113       table Operating System Interface (POSIX), The Open Group Base  Specifi‐
114       cations  Issue  7, 2018 Edition, Copyright (C) 2018 by the Institute of
115       Electrical and Electronics Engineers, Inc and The Open Group.   In  the
116       event of any discrepancy between this version and the original IEEE and
117       The Open Group Standard, the original IEEE and The Open Group  Standard
118       is  the  referee document. The original Standard can be obtained online
119       at http://www.opengroup.org/unix/online.html .
120
121       Any typographical or formatting errors that appear  in  this  page  are
122       most likely to have been introduced during the conversion of the source
123       files to man page format. To report such errors,  see  https://www.ker
124       nel.org/doc/man-pages/reporting_bugs.html .
125
126
127
128IEEE/The Open Group                  2017                          spawn.h(0P)
Impressum