spawn.cpp File Reference

posix_spawn_file_actions_init(posix_spawn_file_actions_t *)

EXPORT_C int posix_spawn_file_actions_init ( posix_spawn_file_actions_t * file_actions )

Parameters

posix_spawn_file_actions_t * file_actions

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

EXPORT_C int posix_spawn_file_actions_addopen ( posix_spawn_file_actions_t * file_actions,
int fid,
const char * path,
int oflag,
mode_t mode
)

Parameters

posix_spawn_file_actions_t * file_actions
int fid
const char * path
int oflag
mode_t mode

posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *, int, int)

EXPORT_C int posix_spawn_file_actions_adddup2 ( posix_spawn_file_actions_t * file_actions,
int fid1,
int fid2
)

Parameters

posix_spawn_file_actions_t * file_actions
int fid1
int fid2

posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *, int)

EXPORT_C int posix_spawn_file_actions_addclose ( posix_spawn_file_actions_t * file_actions,
int fid
)

Parameters

posix_spawn_file_actions_t * file_actions
int fid

posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *)

EXPORT_C int posix_spawn_file_actions_destroy ( posix_spawn_file_actions_t * file_actions )

Parameters

posix_spawn_file_actions_t * file_actions

posix_spawnattr_init(posix_spawnattr_t *)

EXPORT_C int posix_spawnattr_init ( posix_spawnattr_t * attrp )

Parameters

posix_spawnattr_t * attrp

posix_spawnattr_getsigdefault(const posix_spawnattr_t *, sigset_t *)

EXPORT_C int posix_spawnattr_getsigdefault ( const posix_spawnattr_t * attrp,
sigset_t * sigdefault
)

Parameters

const posix_spawnattr_t * attrp
sigset_t * sigdefault

posix_spawnattr_getflags(const posix_spawnattr_t *, short *)

EXPORT_C int posix_spawnattr_getflags ( const posix_spawnattr_t * attrp,
short * flags
)

Parameters

const posix_spawnattr_t * attrp
short * flags

posix_spawnattr_getpgroup(const posix_spawnattr_t *, pid_t *)

EXPORT_C int posix_spawnattr_getpgroup ( const posix_spawnattr_t * attrp,
pid_t * pgroup
)

Parameters

const posix_spawnattr_t * attrp
pid_t * pgroup

posix_spawnattr_getschedparam(const posix_spawnattr_t *, struct sched_param *)

EXPORT_C int posix_spawnattr_getschedparam ( const posix_spawnattr_t * attrp,
struct sched_param * schedparam
)

Parameters

const posix_spawnattr_t * attrp
struct sched_param * schedparam

posix_spawnattr_getschedpolicy(const posix_spawnattr_t *, int *)

EXPORT_C int posix_spawnattr_getschedpolicy ( const posix_spawnattr_t * attrp,
int * policy
)

Parameters

const posix_spawnattr_t * attrp
int * policy

posix_spawnattr_getsigmask(const posix_spawnattr_t *, sigset_t *)

EXPORT_C int posix_spawnattr_getsigmask ( const posix_spawnattr_t * attrp,
sigset_t * sigmask
)

Parameters

const posix_spawnattr_t * attrp
sigset_t * sigmask

posix_spawnattr_setsigdefault(posix_spawnattr_t *, const sigset_t *)

EXPORT_C int posix_spawnattr_setsigdefault ( posix_spawnattr_t * attrp,
const sigset_t * sigdefault
)

Parameters

posix_spawnattr_t * attrp
const sigset_t * sigdefault

posix_spawnattr_setflags(posix_spawnattr_t *, short)

EXPORT_C int posix_spawnattr_setflags ( posix_spawnattr_t * attrp,
short flags
)

Parameters

posix_spawnattr_t * attrp
short flags

posix_spawnattr_setpgroup(posix_spawnattr_t *, pid_t)

EXPORT_C int posix_spawnattr_setpgroup ( posix_spawnattr_t * attrp,
pid_t pgroup
)

Parameters

posix_spawnattr_t * attrp
pid_t pgroup

posix_spawnattr_setschedparam(posix_spawnattr_t *, const struct sched_param *)

EXPORT_C int posix_spawnattr_setschedparam ( posix_spawnattr_t * attrp,
const struct sched_param * schedparam
)

Parameters

posix_spawnattr_t * attrp
const struct sched_param * schedparam

posix_spawnattr_setschedpolicy(posix_spawnattr_t *, int)

EXPORT_C int posix_spawnattr_setschedpolicy ( posix_spawnattr_t * attrp,
int policy
)

Parameters

posix_spawnattr_t * attrp
int policy

posix_spawnattr_setsigmask(posix_spawnattr_t *, const sigset_t *)

EXPORT_C int posix_spawnattr_setsigmask ( posix_spawnattr_t * attrp,
const sigset_t * sigmask
)

Parameters

posix_spawnattr_t * attrp
const sigset_t * sigmask

posix_spawnattr_destroy(posix_spawnattr_t *)

EXPORT_C int posix_spawnattr_destroy ( posix_spawnattr_t * )

Parameters

posix_spawnattr_t *

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

EXPORT_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
)

Parameters

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