1<spawn.h>(0P) POSIX Programmer's Manual <spawn.h>(0P)
2
3
4
6 spawn.h - spawn (ADVANCED REALTIME)
7
9 #include <spawn.h>
10
12 The <spawn.h> header shall define the posix_spawnattr_t and
13 posix_spawn_file_actions_t types used in performing spawn operations.
14
15 The <spawn.h> header shall define the flags that may be set in a
16 posix_spawnattr_t object using the posix_spawnattr_setflags() function:
17
18 POSIX_SPAWN_RESETIDS
19 POSIX_SPAWN_SETPGROUP
20
21 POSIX_SPAWN_SETSCHEDPARAM
22 POSIX_SPAWN_SETSCHEDULER
23
24 POSIX_SPAWN_SETSIGDEF
25 POSIX_SPAWN_SETSIGMASK
26
27 The following shall be declared as functions and may also be defined as
28 macros. Function prototypes shall be provided.
29
30
31 int posix_spawn(pid_t *restrict, const char *restrict,
32 const posix_spawn_file_actions_t *,
33 const posix_spawnattr_t *restrict, char *const [restrict],
34 char *const [restrict]);
35 int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *,
36 int);
37 int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *,
38 int, int);
39 int posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *restrict,
40 int, const char *restrict, int, mode_t);
41 int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *);
42 int posix_spawn_file_actions_init(posix_spawn_file_actions_t *);
43 int posix_spawnattr_destroy(posix_spawnattr_t *);
44 int posix_spawnattr_getsigdefault(const posix_spawnattr_t *restrict,
45 sigset_t *restrict);
46 int posix_spawnattr_getflags(const posix_spawnattr_t *restrict,
47 short *restrict);
48 int posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict,
49 pid_t *restrict);
50
51 int posix_spawnattr_getschedparam(const posix_spawnattr_t *restrict,
52 struct sched_param *restrict);
53 int posix_spawnattr_getschedpolicy(const posix_spawnattr_t *restrict,
54 int *restrict);
55
56 int posix_spawnattr_getsigmask(const posix_spawnattr_t *restrict,
57 sigset_t *restrict);
58 int posix_spawnattr_init(posix_spawnattr_t *);
59 int posix_spawnattr_setsigdefault(posix_spawnattr_t *restrict,
60 const sigset_t *restrict);
61 int posix_spawnattr_setflags(posix_spawnattr_t *, short);
62 int posix_spawnattr_setpgroup(posix_spawnattr_t *, pid_t);
63
64
65
66 int posix_spawnattr_setschedparam(posix_spawnattr_t *restrict,
67 const struct sched_param *restrict);
68 int posix_spawnattr_setschedpolicy(posix_spawnattr_t *, int);
69
70 int posix_spawnattr_setsigmask(posix_spawnattr_t *restrict,
71 const sigset_t *restrict);
72 int posix_spawnp(pid_t *restrict, const char *restrict,
73 const posix_spawn_file_actions_t *,
74 const posix_spawnattr_t *restrict,
75 char *const [restrict], char *const [restrict]);
76
77 Inclusion of the <spawn.h> header may make visible symbols defined in
78 the <sched.h>, <signal.h>, and <sys/types.h> headers.
79
80 The following sections are informative.
81
83 None.
84
86 None.
87
89 None.
90
92 <sched.h>, <semaphore.h>, <signal.h>, <sys/types.h>, the System Inter‐
93 faces volume of IEEE Std 1003.1-2001, posix_spawnattr_destroy(),
94 posix_spawnattr_getsigdefault(), posix_spawnattr_getflags(),
95 posix_spawnattr_getpgroup(), posix_spawnattr_getschedparam(),
96 posix_spawnattr_getschedpolicy(), posix_spawnattr_getsigmask(),
97 posix_spawnattr_init(), posix_spawnattr_setsigdefault(), posix_spaw‐
98 nattr_setflags(), posix_spawnattr_setpgroup(), posix_spaw‐
99 nattr_setschedparam(), posix_spawnattr_setschedpolicy(), posix_spaw‐
100 nattr_setsigmask(), posix_spawn(), posix_spawn_file_actions_addclose(),
101 posix_spawn_file_actions_adddup2(), posix_spawn_file_actions_addopen(),
102 posix_spawn_file_actions_destroy(), posix_spawn_file_actions_init(),
103 posix_spawnp()
104
106 Portions of this text are reprinted and reproduced in electronic form
107 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
108 -- Portable Operating System Interface (POSIX), The Open Group Base
109 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
110 Electrical and Electronics Engineers, Inc and The Open Group. In the
111 event of any discrepancy between this version and the original IEEE and
112 The Open Group Standard, the original IEEE and The Open Group Standard
113 is the referee document. The original Standard can be obtained online
114 at http://www.opengroup.org/unix/online.html .
115
116
117
118IEEE/The Open Group 2003 <spawn.h>(0P)