63 #ifndef __INCLUDE_SPAWN_H 64 #define __INCLUDE_SPAWN_H 70 #include <tinyara/config.h> 72 #include <sys/types.h> 83 #ifndef CONFIG_TASK_SPAWN_DEFAULT_STACKSIZE 84 #define CONFIG_TASK_SPAWN_DEFAULT_STACKSIZE 2048 91 #define POSIX_SPAWN_RESETIDS (1 << 0) 92 #define POSIX_SPAWN_SETPGROUP (1 << 1) 93 #define POSIX_SPAWN_SETSCHEDPARAM (1 << 2) 94 #define POSIX_SPAWN_SETSCHEDULER (1 << 3) 95 #define POSIX_SPAWN_SETSIGDEF (1 << 4) 96 #define POSIX_SPAWN_SETSIGMASK (1 << 5) 116 #ifndef CONFIG_DISABLE_SIGNALS 120 #ifndef CONFIG_BUILD_KERNEL 160 #define posix_spawnp(pid, path, file_actions, attr, argv, envp) \ 161 posix_spawn(pid, path, file_actions, attr, argv, envp) 165 #ifndef CONFIG_BUILD_KERNEL 223 #define posix_spawnattr_destroy(attr) (attr ? 0 : EINVAL) 225 #define posix_spawnattr_destroy(attr) (0) 234 #define posix_spawnattr_getpgroup(attr, group) (ENOSYS) 245 #define posix_spawnattr_getsigdefault(attr, sigdefault) (ENOSYS) 246 #ifndef CONFIG_DISABLE_SIGNALS 253 #define posix_spawnattr_getsigmask(attr, sigmask) (ENOSYS) 262 #define posix_spawnattr_setpgroup(attr, group) (ENOSYS) 273 #define posix_spawnattr_setsigdefault(attr, sigdefault) (ENOSYS) 274 #ifndef CONFIG_DISABLE_SIGNALS 281 #define posix_spawnattr_setsigmask(attr, sigmask) (ENOSYS) 324 #define posix_spawn_file_actions_dump(fa) 325 #define posix_spawnattr_dump(a) int posix_spawn_file_actions_init(FAR posix_spawn_file_actions_t *file_actions)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
Structure of posix_spawn attributes.
int posix_spawnattr_setschedparam(FAR posix_spawnattr_t *attr, FAR const struct sched_param *param)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int posix_spawnattr_setsigmask(FAR posix_spawnattr_t *attr, FAR const sigset_t *sigmask)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int posix_spawn_file_actions_addopen(FAR posix_spawn_file_actions_t *file_actions, int fd, FAR const char *path, int oflags, mode_t mode)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int posix_spawnattr_getschedpolicy(FAR const posix_spawnattr_t *attr, FAR int *policy)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int posix_spawnattr_init(FAR posix_spawnattr_t *attr)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
void posix_spawn_file_actions_dump(FAR posix_spawn_file_actions_t *file_actions)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int posix_spawnattr_getsigmask(FAR const posix_spawnattr_t *attr, FAR sigset_t *sigmask)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
POSIX-like scheduling parameter structure.
int posix_spawn_file_actions_addclose(FAR posix_spawn_file_actions_t *file_actions, int fd)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int posix_spawnattr_getschedparam(FAR const posix_spawnattr_t *attr, FAR struct sched_param *param)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int posix_spawn_file_actions_destroy(FAR posix_spawn_file_actions_t *file_actions)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int task_spawnattr_getstacksize(FAR const posix_spawnattr_t *attr, size_t *stacksize)
The task_spawnattr_getstacksize() function will obtain the value of the spawn-stacksize attribute fro...
int task_spawnattr_setstacksize(FAR posix_spawnattr_t *attr, size_t stacksize)
The task_spawnattr_setstacksize() function shall set the spawn- stacksize attribute in an initialized...
FAR void * posix_spawn_file_actions_t
int posix_spawnattr_setflags(FAR posix_spawnattr_t *attr, short flags)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int posix_spawnattr_setschedpolicy(FAR posix_spawnattr_t *attr, int policy)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
void posix_spawnattr_dump(FAR posix_spawnattr_t *attr)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int posix_spawnattr_getflags(FAR const posix_spawnattr_t *attr, FAR short *flags)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)