spawn.h File Reference

POSIX_SPAWN_RESETIDS

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.

POSIX_SPAWN_SETPGROUP

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.

POSIX_SPAWN_SETSIGDEF

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.

POSIX_SPAWN_SETSIGMASK

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.

POSIX_SPAWN_SETSCHEDPARAM

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.

POSIX_SPAWN_SETSCHEDULER

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.

posix_spawn ( pid_t *, const char *, const posix_spawn_file_actions_t *, const posix_spawnattr_t *, char *const, char *const )

IMPORT_C intposix_spawn(pid_t *pid,
const char *path,
const posix_spawn_file_actions_t *file_actions,
const posix_spawnattr_t *attrp,
char *constargv,
char *constenvp
)

posix_spawn_file_actions_addclose ( posix_spawn_file_actions_t *, int )

IMPORT_C intposix_spawn_file_actions_addclose(posix_spawn_file_actions_t *file_actions,
intfid
)

posix_spawn_file_actions_adddup2 ( posix_spawn_file_actions_t *, int, int )

IMPORT_C intposix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *file_actions,
intfid1,
intfid2
)

posix_spawn_file_actions_addopen ( posix_spawn_file_actions_t *, int, const char *, int, mode_t )

IMPORT_C intposix_spawn_file_actions_addopen(posix_spawn_file_actions_t *file_actions,
intfid,
const char *path,
intoflag,
mode_tmode
)

posix_spawn_file_actions_destroy ( posix_spawn_file_actions_t * )

IMPORT_C intposix_spawn_file_actions_destroy(posix_spawn_file_actions_t *file_actions)

posix_spawn_file_actions_init ( posix_spawn_file_actions_t * )

IMPORT_C intposix_spawn_file_actions_init(posix_spawn_file_actions_t *file_actions)

posix_spawnattr_destroy ( posix_spawnattr_t * )

IMPORT_C intposix_spawnattr_destroy(posix_spawnattr_t *attrp)

posix_spawnattr_getsigdefault ( const posix_spawnattr_t *, sigset_t * )

IMPORT_C intposix_spawnattr_getsigdefault(const posix_spawnattr_t *attrp,
sigset_t *sigdefault
)

posix_spawnattr_getflags ( const posix_spawnattr_t *, short * )

IMPORT_C intposix_spawnattr_getflags(const posix_spawnattr_t *attrp,
short *flags
)

posix_spawnattr_getpgroup ( const posix_spawnattr_t *, pid_t * )

IMPORT_C intposix_spawnattr_getpgroup(const posix_spawnattr_t *attrp,
pid_t *pgroup
)

posix_spawnattr_getschedparam ( const posix_spawnattr_t *, struct sched_param * )

IMPORT_C intposix_spawnattr_getschedparam(const posix_spawnattr_t *attrp,
struct sched_param *schedparam
)

posix_spawnattr_getschedpolicy ( const posix_spawnattr_t *, int * )

IMPORT_C intposix_spawnattr_getschedpolicy(const posix_spawnattr_t *attrp,
int *policy
)

posix_spawnattr_getsigmask ( const posix_spawnattr_t *, sigset_t * )

IMPORT_C intposix_spawnattr_getsigmask(const posix_spawnattr_t *attrp,
sigset_t *sigmask
)

posix_spawnattr_init ( posix_spawnattr_t * )

IMPORT_C intposix_spawnattr_init(posix_spawnattr_t *attrp)

posix_spawnattr_setsigdefault ( posix_spawnattr_t *, const sigset_t * )

IMPORT_C intposix_spawnattr_setsigdefault(posix_spawnattr_t *attrp,
const sigset_t *sigdefault
)

posix_spawnattr_setflags ( posix_spawnattr_t *, short )

IMPORT_C intposix_spawnattr_setflags(posix_spawnattr_t *attrp,
shortflags
)

posix_spawnattr_setpgroup ( posix_spawnattr_t *, pid_t )

IMPORT_C intposix_spawnattr_setpgroup(posix_spawnattr_t *attrp,
pid_tpgroup
)

posix_spawnattr_setschedparam ( posix_spawnattr_t *, const struct sched_param * )

IMPORT_C intposix_spawnattr_setschedparam(posix_spawnattr_t *attrp,
const struct sched_param *schedparam
)

posix_spawnattr_setschedpolicy ( posix_spawnattr_t *, int )

IMPORT_C intposix_spawnattr_setschedpolicy(posix_spawnattr_t *attrp,
intpolicy
)

posix_spawnattr_setsigmask ( posix_spawnattr_t *, const sigset_t * )

IMPORT_C intposix_spawnattr_setsigmask(posix_spawnattr_t *attrp,
const sigset_t *sigmask
)