Flags that can be set in posix_spawnattr_t. The POSIX_SPAWN_RESETIDS flag in the spawn-flags attribute of the object referenced by attrp governs the effective user ID of the child process. If this flag is not set, the child process shall inherit the parent process' effective user ID. If this flag is set, the child process' effective user ID shall be reset to the parent's real user ID. In either case, if the set-user-ID mode bit of the new process image file is set, the effective user ID of the child process shall become that file's owner ID before the new process image begins execution.
Flags that can be set in posix_spawnattr_t If the POSIX_SPAWN_SETPGROUP flag is set in the spawn-flags attribute of the object referenced by attrp, and the spawn-pgroup attribute of the same object is non-zero, then the child's process group shall be as specified in the spawn-pgroup attribute of the object referenced by attrp.
Flags that can be set in posix_spawnattr_t If the POSIX_SPAWN_SETSIGDEF flag is set in the spawn-flags attribute of the object referenced by attrp, the signals specified in the spawn-sigdefault attribute of the same object shall be set to their default actions in the child process. Signals set to the default action in the parent process shall be set to the default action in the child process.
Flags that can be set in posix_spawnattr_t If the POSIX_SPAWN_SETSIGMASK flag is set in the spawn-flags attribute of the object referenced by attrp, the child process shall initially have the signal mask specified in the spawn-sigmask attribute of the object referenced by attrp.
Flags that can be set in posix_spawnattr_t If the POSIX_SPAWN_SETSCHEDPARAM flag is set in the spawn-flags attribute of the object referenced by attrp, but POSIX_SPAWN_SETSCHEDULER is not set, the new process image shall initially have the scheduling policy of the calling process with the scheduling parameters specified in the spawn-schedparam attribute of the object referenced by attrp.
Flags that can be set in posix_spawnattr_t If the POSIX_SPAWN_SETSCHEDULER flag is set in the spawn-flags attribute of the object referenced by attrp (regardless of the setting of the POSIX_SPAWN_SETSCHEDPARAM flag), the new process image shall initially have the scheduling policy specified in the spawn-schedpolicy attribute of the object referenced by attrp and the scheduling parameters specified in the spawn-schedparam attribute of the same object.
IMPORT_C int | posix_spawn | ( | pid_t * | pid, |
const char * | path, | |||
const posix_spawn_file_actions_t * | file_actions, | |||
const posix_spawnattr_t * | attrp, | |||
char *const | argv, | |||
char *const | envp | |||
) |
IMPORT_C int | posix_spawn_file_actions_addclose | ( | posix_spawn_file_actions_t * | file_actions, |
int | fid | |||
) |
IMPORT_C int | posix_spawn_file_actions_adddup2 | ( | posix_spawn_file_actions_t * | file_actions, |
int | fid1, | |||
int | fid2 | |||
) |
IMPORT_C int | posix_spawn_file_actions_addopen | ( | posix_spawn_file_actions_t * | file_actions, |
int | fid, | |||
const char * | path, | |||
int | oflag, | |||
mode_t | mode | |||
) |
IMPORT_C int | posix_spawn_file_actions_destroy | ( | posix_spawn_file_actions_t * | file_actions | ) |
IMPORT_C int | posix_spawn_file_actions_init | ( | posix_spawn_file_actions_t * | file_actions | ) |
IMPORT_C int | posix_spawnattr_destroy | ( | posix_spawnattr_t * | attrp | ) |
IMPORT_C int | posix_spawnattr_getsigdefault | ( | const posix_spawnattr_t * | attrp, |
sigset_t * | sigdefault | |||
) |
IMPORT_C int | posix_spawnattr_getflags | ( | const posix_spawnattr_t * | attrp, |
short * | flags | |||
) |
IMPORT_C int | posix_spawnattr_getpgroup | ( | const posix_spawnattr_t * | attrp, |
pid_t * | pgroup | |||
) |
IMPORT_C int | posix_spawnattr_getschedparam | ( | const posix_spawnattr_t * | attrp, |
struct sched_param * | schedparam | |||
) |
IMPORT_C int | posix_spawnattr_getschedpolicy | ( | const posix_spawnattr_t * | attrp, |
int * | policy | |||
) |
IMPORT_C int | posix_spawnattr_getsigmask | ( | const posix_spawnattr_t * | attrp, |
sigset_t * | sigmask | |||
) |
IMPORT_C int | posix_spawnattr_init | ( | posix_spawnattr_t * | attrp | ) |
IMPORT_C int | posix_spawnattr_setsigdefault | ( | posix_spawnattr_t * | attrp, |
const sigset_t * | sigdefault | |||
) |
IMPORT_C int | posix_spawnattr_setflags | ( | posix_spawnattr_t * | attrp, |
short | flags | |||
) |
IMPORT_C int | posix_spawnattr_setpgroup | ( | posix_spawnattr_t * | attrp, |
pid_t | pgroup | |||
) |
IMPORT_C int | posix_spawnattr_setschedparam | ( | posix_spawnattr_t * | attrp, |
const struct sched_param * | schedparam | |||
) |
IMPORT_C int | posix_spawnattr_setschedpolicy | ( | posix_spawnattr_t * | attrp, |
int | policy | |||
) |
IMPORT_C int | posix_spawnattr_setsigmask | ( | posix_spawnattr_t * | attrp, |
const sigset_t * | sigmask | |||
) |