This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ Bionic libc: https://android.googlesource.com/platform/bionic.git/+/master/libc/
18
18
19
19
Musl libc: https://git.musl-libc.org/cgit/musl/tree/include/spawn.h
20
20
21
+ uClibc: https://git.uclibc.org/uClibc/tree/include/spawn.h
22
+
21
23
Darwin XNU:
22
24
https://opensource.apple.com/source/xnu/xnu-4570.71.2/libsyscall/wrappers/spawn/spawn.h.auto.html
23
25
https://opensource.apple.com/source/xnu/xnu-4570.71.2/bsd/sys/spawn.h.auto.html
@@ -171,6 +173,44 @@ version (linux)
171
173
int [16 ] __pad;
172
174
}
173
175
}
176
+ else version (CRuntime_UClibc )
177
+ {
178
+ // Source: https://git.uclibc.org/uClibc/tree/include/spawn.h
179
+ enum
180
+ {
181
+ POSIX_SPAWN_RESETIDS = 0x01 ,
182
+ POSIX_SPAWN_SETPGROUP = 0x02 ,
183
+ POSIX_SPAWN_SETSIGDEF = 0x04 ,
184
+ POSIX_SPAWN_SETSIGMASK = 0x08 ,
185
+ POSIX_SPAWN_SETSCHEDPARAM = 0x10 ,
186
+ POSIX_SPAWN_SETSCHEDULER = 0x20
187
+ }
188
+ import core.sys.posix.config : __USE_GNU;
189
+ static if (__USE_GNU)
190
+ {
191
+ enum
192
+ {
193
+ POSIX_SPAWN_USEVFORK = 0x40 ,
194
+ }
195
+ }
196
+ struct posix_spawnattr_t
197
+ {
198
+ short __flags;
199
+ pid_t __pgrp;
200
+ sigset_t __sd;
201
+ sigset_t __ss;
202
+ sched_param __sp;
203
+ int __policy;
204
+ int [16 ] __pad;
205
+ }
206
+ struct posix_spawn_file_actions_t
207
+ {
208
+ int __allocated;
209
+ int __used;
210
+ __spawn_action* __actions;
211
+ int [16 ] __pad;
212
+ }
213
+ }
174
214
else
175
215
static assert (0 , " Unsupported Linux libc" );
176
216
}
You can’t perform that action at this time.
0 commit comments