Standard C Library Functions
posixspawnfileactionsaddclosefromnp(3C)
NAME
posixspawnfileactionsaddclosefromnp - add closefrom
action to spawn file actions object
SYNOPSIS
#include
int posixspawnfileactionsaddclosefromnp(
posixspawnfileactionst *fileactions, int lowfildes);
DESCRIPTION
The posixspawnfileactionsaddclosefromnp() function adds
a closefrom action to the object referenced by fileactions
that causes all open file descriptors greater than or equal
to lowfildes to be closed when a new process is spawned
using this file actions object (see closefrom(3C)).
A spawn file actions object is as defined in
posixspawnfileactionsaddclose(3C).
RETURN VALUES
Upon successful completion, the
posixspawnfileactionsaddclosefromnp() function returns
0. Otherwise, an error number is returned to indicate the
error.
ERORS
The posixspawnfileactionsaddclosefromnp() function will
fail if:
EBADF The value specified by lowfildes is negative.
The posixspawnfileactionsaddclosefromnp() function may
fail if:
EINVAL The value specified by fileactions is invalid.
ENOMEM Insufficient memory exists to add to the spawn
file actions object.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 20 Feb 2009 1
Standard C Library Functions
posixspawnfileactionsaddclosefromnp(3C)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
close(2), closefrom(3C), posixspawn(3C),
posixspawnfileactionsaddclose(3C), attributes(5)
SunOS 5.11 Last change: 20 Feb 2009 2
Standard C Library Functions
posixspawnfileactionsaddclosefromnp(3C)
SunOS 5.11 Last change: 20 Feb 2009 3
|