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
11

NAME

13       spawn.h — spawn (ADVANCED REALTIME)
14

SYNOPSIS

16       #include <spawn.h>
17

DESCRIPTION

19       The  <spawn.h>  header   shall   define   the   posix_spawnattr_t   and
20       posix_spawn_file_actions_t types used in performing spawn operations.
21
22       The  <spawn.h>  header  shall  define  the  mode_t  and  pid_t types as
23       described in <sys/types.h>.
24
25       The <spawn.h> header shall define the sigset_t  type  as  described  in
26       <signal.h>.
27
28       The tag sched_param shall be declared as naming an incomplete structure
29       type, the contents of which are described in the <sched.h> header.
30
31       The <spawn.h> header shall define the following symbolic constants  for
32       use  as  the  flags that may be set in a posix_spawnattr_t object using
33       the posix_spawnattr_setflags() function:
34
35       POSIX_SPAWN_RESETIDS
36       POSIX_SPAWN_SETPGROUP
37       POSIX_SPAWN_SETSCHEDPARAM
38       POSIX_SPAWN_SETSCHEDULER
39       POSIX_SPAWN_SETSIGDEF
40       POSIX_SPAWN_SETSIGMASK
41
42       The following shall be declared as functions and may also be defined as
43       macros. Function prototypes shall be provided.
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‐2008, 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, 2013 Edition, Standard for Information Technology
113       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
114       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
115       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
116       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) In the
117       event of any discrepancy between this version and the original IEEE and
118       The  Open Group Standard, the original IEEE and The Open Group Standard
119       is the referee document. The original Standard can be  obtained  online
120       at http://www.unix.org/online.html .
121
122       Any  typographical  or  formatting  errors that appear in this page are
123       most likely to have been introduced during the conversion of the source
124       files  to  man page format. To report such errors, see https://www.ker
125       nel.org/doc/man-pages/reporting_bugs.html .
126
127
128
129IEEE/The Open Group                  2013                          spawn.h(0P)
Impressum