api

spawn.ch

Declarations in spawn.ch

11 declarationscstd

Declarations

Public only
__sigset_t#
Publicstruct
struct __sigset_t { var __val : ulong[16] }
sigset_t#
Publictypealias
type sigset_t = __sigset_t
sched_param#
Publicstruct
struct sched_param { var sched_priority : int }
Data structure to describe a process' schedulability.
posix_spawnattr_t#
Publicstruct
struct posix_spawnattr_t { var __flags : short var __pgrp : pid_t var __sd : sigset_t var __ss : sigset_t var __sp : sched_param var __policy : int var __cgroup : int var __pad : int[15] }
Data structure to contain attributes for thread creation.
posix_spawn_file_actions_t#
Publicstruct
struct posix_spawn_file_actions_t { var __allocated : int var __used : int var __actions : *void var __pad : int[16] }
posix_spawn_file_actions_init#
Publicfunction
func posix_spawn_file_actions_init(__file_actions : *posix_spawn_file_actions_t) : int
Initialize data structure for file attribute for `spawn' call.
posix_spawn_file_actions_adddup2#
Publicfunction
func posix_spawn_file_actions_adddup2(__file_actions : *posix_spawn_file_actions_t, __fd : int, __newfd : int) : int
Add an action to FILE-ACTIONS which tells the implementation to call `dup2' for the given file descriptors during the `spawn' call.
posix_spawn_file_actions_addclose#
Publicfunction
func posix_spawn_file_actions_addclose(__file_actions : *posix_spawn_file_actions_t, __fd : int) : int
Add an action to FILE-ACTIONS which tells the implementation to call `close' for the given file descriptor during the `spawn' call.
posix_spawn_file_actions_destroy#
Publicfunction
func posix_spawn_file_actions_destroy(__file_actions : *posix_spawn_file_actions_t) : int
Free resources associated with FILE-ACTIONS.
posix_spawn#
Publicfunction
func posix_spawn(__pid : *pid_t, __file : *char, __file_actions : *posix_spawn_file_actions_t, __attrp : *posix_spawnattr_t, __argv : **char, __envp : **char) : int
Create a new process using file path directly (no PATH search).
posix_spawnp#
Publicfunction
func posix_spawnp(__pid : *pid_t, __file : *char, __file_actions : *posix_spawn_file_actions_t, __attrp : *posix_spawnattr_t, __argv : **char, __envp : **char) : int
Similar to `posix_spawn' but search for FILE in the PATH. This function is a possible cancellation point and therefore not marked with __THROW.