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 +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ Darwin XNU:
24
24
https://opensource.apple.com/source/xnu/xnu-4570.71.2/libsyscall/wrappers/spawn/spawn.h.auto.html
25
25
https://opensource.apple.com/source/xnu/xnu-4570.71.2/bsd/sys/spawn.h.auto.html
26
26
https://github.com/opensource-apple/xnu (GitHub mirror)
27
+
28
+ FreeBSD: https://github.com/freebsd/freebsd/blob/master/include/spawn.h
27
29
*/
28
30
29
31
version (OSX ) // macOS and iOS only as this API is prohibited on WatchOS and TVOS
@@ -233,5 +235,20 @@ else version (Darwin)
233
235
alias posix_spawnattr_t = void * ;
234
236
alias posix_spawn_file_actions_t = void * ;
235
237
}
238
+ else version (FreeBSD )
239
+ {
240
+ // Source: https://github.com/freebsd/freebsd/blob/master/include/spawn.h
241
+ enum
242
+ {
243
+ POSIX_SPAWN_RESETIDS = 0x01 ,
244
+ POSIX_SPAWN_SETPGROUP = 0x02 ,
245
+ POSIX_SPAWN_SETSCHEDPARAM = 0x04 ,
246
+ POSIX_SPAWN_SETSCHEDULER = 0x08 ,
247
+ POSIX_SPAWN_SETSIGDEF = 0x10 ,
248
+ POSIX_SPAWN_SETSIGMASK = 0x20
249
+ }
250
+ alias posix_spawnattr_t = void * ;
251
+ alias posix_spawn_file_actions_t = void * ;
252
+ }
236
253
else
237
254
static assert (0 , " Unsupported OS" );
You can’t perform that action at this time.
0 commit comments