UnixFDList.from_array


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.24" ) ]
public UnixFDList.from_array (int[] fds)

Creates a new UnixFDList containing the file descriptors given in fds.

The file descriptors become the property of the new list and may no longer be used by the caller. The array itself is owned by the caller.

Each file descriptor in the array should be set to close-on-exec.

If fds.length is -1 then fds must be terminated with -1.

Parameters:

fds

the initial list of file descriptors

n_fds

the length of fdss, or -1

Returns:

a new UnixFDList