#include <sys/spawn.h>
sys/spawn.h
[SPN] Support for _POSIX_SPAWN
This header contains information that is shared between the user space
and kernel versions of the posix_spawn() code. Shared elements are all
manifest constants, at the current time.
macroPOSIX_SPAWN_RESETIDS
Possible bit values which may be OR'ed together and provided as the second
parameter to posix_spawnattr_setflags() or implicit returned in the value of
the second parameter to posix_spawnattr_getflags().
#define POSIX_SPAWN_RESETIDS 0x0001
[SPN] R[UG]ID not E[UG]ID
macroPOSIX_SPAWN_START_SUSPENDED
#define POSIX_SPAWN_START_SUSPENDED 0x0080
macroPOSIX_SPAWN_SETSID
#define POSIX_SPAWN_SETSID 0x0400
macroPOSIX_SPAWN_CLOEXEC_DEFAULT
#define POSIX_SPAWN_CLOEXEC_DEFAULT 0x4000
macro_POSIX_SPAWN_RESLIDE
#define _POSIX_SPAWN_RESLIDE 0x0800
macroPOSIX_SPAWN_PCONTROL_NONE
Possible values to be set for the process control actions on resource starvation.
POSIX_SPAWN_PCONTROL_THROTTLE indicates that the process is to be throttled on starvation.
POSIX_SPAWN_PCONTROL_SUSPEND indicates that the process is to be suspended on starvation.
POSIX_SPAWN_PCONTROL_KILL indicates that the process is to be terminated on starvation.
#define POSIX_SPAWN_PCONTROL_NONE 0x0000
macroPOSIX_SPAWN_PCONTROL_THROTTLE
#define POSIX_SPAWN_PCONTROL_THROTTLE 0x0001
macroPOSIX_SPAWN_PCONTROL_SUSPEND
#define POSIX_SPAWN_PCONTROL_SUSPEND 0x0002
macroPOSIX_SPAWN_PCONTROL_KILL
#define POSIX_SPAWN_PCONTROL_KILL 0x0003
macroPOSIX_SPAWN_PANIC_ON_CRASH
#define POSIX_SPAWN_PANIC_ON_CRASH 0x1
macroPOSIX_SPAWN_PANIC_ON_NON_ZERO_EXIT
#define POSIX_SPAWN_PANIC_ON_NON_ZERO_EXIT 0x2
macroPOSIX_SPAWN_PANIC_ON_EXIT
#define POSIX_SPAWN_PANIC_ON_EXIT 0x4
macroPOSIX_SPAWN_PANIC_ON_SPAWN_FAIL
#define POSIX_SPAWN_PANIC_ON_SPAWN_FAIL 0x8