posix_spawn_file_actions_destroy(), posix_spawn_file_actions_init()

destroy and initialize spawn file actions object 

Advanced Realtime Function


SYNOPSIS

#include <spawn.h>

int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *file_actions);

int posix_spawn_file_actions_init(posix_spawn_file_actions_t *file_actions);


DESCRIPTION

The posix_spawn_file_actions_destroy() function the file_actions spawn file actions object, making the object effectively uninitialized.

The posix_spawn_file_actions_init() function initializes the file_actions spawn file actions object to contain no file actions for posix_spawn() or posix_spawnp() to perform.

For more information on spawn file actions objects, see the posix_spawn_file_actions_addclose() reference page.`


PARAMETERS

file_actions 

Points to a spawn file actions object.


RETURN VALUES

On successful completion, the posix_spawn_file_actions_destroy() and posix_spawn_file_actions_init() functions return 0.

Otherwise, these functions one of the following error numbers:

ENOMEM 

There is not enough memory to initialize the spawn file actions object.

EINVAL 

The file_actions argument contains an invalid value.


CONFORMANCE

UNIX 03.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
posix_spawn(), posix_spawnp()

Miscellaneous:
spawn


PTC MKS Toolkit 10.3 Documentation Build 39.