Standard C Library Functions
posixspawnfileactionsdestroy(3C)
NAME
posixspawnfileactionsdestroy,
posixspawnfileactionsinit - destroy and initialize spawn
file actions object
SYNOPSIS
#include
int posixspawnfileactionsdestroy(
posixspawnfileactionst *fileactions);
int posixspawnfileactionsinit(
posixspawnfileactionst *fileactions);
DESCRIPTION
The posixspawnfileactionsdestroy() function destroys the
object referenced by fileactions. The object becomes, in
effect, uninitialized. An implementation can cause
posixspawnfileactionsdestroy() to set the object refer-
enced by fileactions to an invalid value. A destroyed spawn
file actions object can be reinitialized using
posixspawnfileactionsinit(). The results of otherwise
referencing the object after it has been destroyed are unde-
fined.
The posixspawnfileactionsinit() function initializes the
object referenced by fileactions to contain no file actions
for posixspawn(3C) or posixspawnp(3C) to perform.
A spawn file actions object is as defined in
posixspawnfileactionsaddclose(3C).
The effect of initializing an already initialized spawn file
actions object is undefined.
RETURN VALUES
Upon successful completion, these functions return 0. Other-
wise, an error number is returned to indicate the error.
ERORS
The posixspawnfileactionsinit() function will fail if:
ENOMEM Insufficient memory exists to initialize the spawn
file actions object.
SunOS 5.11 Last change: 30 Jan 2004 1
Standard C Library Functions
posixspawnfileactionsdestroy(3C)
The posixspawnfileactionsdestroy() function will may if:
EINVAL The value specified by fileactions is invalid.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Standard
MT-Level MT-Safe
SEE ALSO
posixspawn(3C), posixspawnfileactionsaddclose(3C),
attributes(5), standards(5)
SunOS 5.11 Last change: 30 Jan 2004 2
Standard C Library Functions
posixspawnfileactionsdestroy(3C)
SunOS 5.11 Last change: 30 Jan 2004 3
|