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 +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ FreeBSD: https://github.com/freebsd/freebsd/blob/master/include/spawn.h
30
30
NetBSD: https://github.com/NetBSD/src/blob/trunk/sys/sys/spawn.h
31
31
32
32
OpenBSD: https://github.com/openbsd/src/blob/master/include/spawn.h
33
+
34
+ DragonFlyBSD: https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/include/spawn.h
33
35
*/
34
36
35
37
version (OSX ) // macOS and iOS only as this API is prohibited on WatchOS and TVOS
@@ -301,5 +303,22 @@ else version (OpenBSD)
301
303
struct __posix_spawnattr ;
302
304
struct __posix_spawn_file_actions ;
303
305
}
306
+ else version (DragonFlyBSD )
307
+ {
308
+ // Source: https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/include/spawn.h
309
+ enum
310
+ {
311
+ POSIX_SPAWN_RESETIDS = 0x01 ,
312
+ POSIX_SPAWN_SETPGROUP = 0x02 ,
313
+ POSIX_SPAWN_SETSCHEDPARAM = 0x04 ,
314
+ POSIX_SPAWN_SETSCHEDULER = 0x08 ,
315
+ POSIX_SPAWN_SETSIGDEF = 0x10 ,
316
+ POSIX_SPAWN_SETSIGMASK = 0x20
317
+ }
318
+ alias posix_spawnattr_t = __posix_spawnattr* ;
319
+ alias posix_spawn_file_actions_t = __posix_spawn_file_actions* ;
320
+ struct __posix_spawnattr ;
321
+ struct __posix_spawn_file_actions ;
322
+ }
304
323
else
305
324
static assert (0 , " Unsupported OS" );
You can’t perform that action at this time.
0 commit comments