add no-op POSIX_SPAWN_USEVFORK to spawn.h
authorRich Felker <dalias@aerifal.cx>
Sun, 23 Apr 2017 00:40:09 +0000 (20:40 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 23 Apr 2017 00:40:09 +0000 (20:40 -0400)
the bit is reserved anyway for ABI-compat reasons; this documents it
and makes it so we can have posix_spawnattr_setflags check for flag
validity without hard-coding an anonymous bit value.

include/spawn.h

index f3e9e23c6525bea36b886a6aeb8dc6e7ddd7e260..bba57ce4975613b73fff1c2819fd95f8af7c53ec 100644 (file)
@@ -21,6 +21,7 @@ struct sched_param;
 #define POSIX_SPAWN_SETSIGMASK 8
 #define POSIX_SPAWN_SETSCHEDPARAM 16
 #define POSIX_SPAWN_SETSCHEDULER 32
+#define POSIX_SPAWN_USEVFORK 64
 #define POSIX_SPAWN_SETSID 128
 
 typedef struct {