NAME

spawn.h - spawn (ADVANCEDREALTIME)

SYNOPSIS

#include<spawn.h>

DESCRIPTION

The <spawn.h> header shall define the posix_spawnattr_t and
posix_spawn_file_actions_t types used in performing spawn operations.
The <spawn.h> header shall define the flags that may be set in a
posix_spawnattr_t object using the posix_spawnattr_setflags() function:
POSIX_SPAWN_RESETIDS
POSIX_SPAWN_SETPGROUP
POSIX_SPAWN_SETSCHEDPARAM
POSIX_SPAWN_SETSCHEDULER
POSIX_SPAWN_SETSIGDEF
POSIX_SPAWN_SETSIGMASK
The following shall be declared as functions and may also be defined as
macros. Function prototypes shall be provided.
intposix_spawn(pid_t*restrict,constchar*restrict,constposix_spawn_file_actions_t*,constposix_spawnattr_t*restrict,char*const[restrict],char*const[restrict]);intposix_spawn_file_actions_addclose(posix_spawn_file_actions_t*,int);intposix_spawn_file_actions_adddup2(posix_spawn_file_actions_t*,int,int);intposix_spawn_file_actions_addopen(posix_spawn_file_actions_t*restrict,int,constchar*restrict,int,mode_t);intposix_spawn_file_actions_destroy(posix_spawn_file_actions_t*);intposix_spawn_file_actions_init(posix_spawn_file_actions_t*);intposix_spawnattr_destroy(posix_spawnattr_t*);intposix_spawnattr_getsigdefault(constposix_spawnattr_t*restrict,sigset_t*restrict);intposix_spawnattr_getflags(constposix_spawnattr_t*restrict,short*restrict);intposix_spawnattr_getpgroup(constposix_spawnattr_t*restrict,pid_t*restrict);intposix_spawnattr_getschedparam(constposix_spawnattr_t*restrict,structsched_param*restrict);intposix_spawnattr_getschedpolicy(constposix_spawnattr_t*restrict,int*restrict);intposix_spawnattr_getsigmask(constposix_spawnattr_t*restrict,sigset_t*restrict);intposix_spawnattr_init(posix_spawnattr_t*);intposix_spawnattr_setsigdefault(posix_spawnattr_t*restrict,constsigset_t*restrict);intposix_spawnattr_setflags(posix_spawnattr_t*,short);intposix_spawnattr_setpgroup(posix_spawnattr_t*,pid_t);intposix_spawnattr_setschedparam(posix_spawnattr_t*restrict,conststructsched_param*restrict);intposix_spawnattr_setschedpolicy(posix_spawnattr_t*,int);intposix_spawnattr_setsigmask(posix_spawnattr_t*restrict,constsigset_t*restrict);intposix_spawnp(pid_t*restrict,constchar*restrict,constposix_spawn_file_actions_t*,constposix_spawnattr_t*restrict,char*const[restrict],char*const[restrict]);
Inclusion of the <spawn.h> header may make visible symbols defined in
the <sched.h>, <signal.h>, and <sys/types.h> headers.
Thefollowingsectionsareinformative.

COPYRIGHT

Portions of this text are reprinted and reproduced in electronic form
from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
-- Portable Operating System Interface (POSIX), The Open Group Base
Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online
at http://www.opengroup.org/unix/online.html .