Gio.UnixFDList.lookup

### Method

# Gio UnixFDListlookup

unstable since: 2.90

#### Declaration [src]

    int
    g_unix_fd_list_lookup (
      GUnixFDList* list,
      size_t index_
    )

#### Description [src]

Looks up a file descriptor in `list` at position `index_`.

`index_` specifies the index of the file descriptor to get. If no file descriptor exists at this index, `-1` is returned.

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 file descriptor index.

#### Return value

Type: `int`

The file descriptor, or `-1` if not found.