Method

GioUnixFDListpeek

unstable since: 2.90

Declaration [src]

int
g_unix_fd_list_peek (
  GUnixFDList* list,
  size_t index_
)

Description [src]

Gets a file descriptor out of list.

index_ specifies the index of the file descriptor to get. It is a programmer error for index_ to be out of range; see g_unix_fd_list_get_length().

This will always return a valid (non-negative) file descriptor.

After this call, the descriptor remains the property of list. The caller must not close it. The descriptor is valid only until list is changed in any way.

Available since: 2.90

Parameters

index_

Type: size_t

The index into the list.

Return value

Type: int

The file descriptor.