peek_fds


Description:

[ CCode ( array_length_pos = 0.1 ) ]
[ Version ( since = "2.24" ) ]
public unowned int[] peek_fds ()

Returns the array of file descriptors that is contained in this object.

After this call, the descriptors remain the property of this. The caller must not close them and must not free the array. The array is valid only until this is changed in any way.

If return.length is non-null then it is set to the number of file descriptors in the returned array. The returned array is also terminated with -1.

This function never returns null. In case there are no file descriptors contained in this, an empty array is returned.

Parameters:

this

a UnixFDList

length

pointer to the length of the returned array, or null

Returns:

an array of file descriptors