---
name: "mongoc_stream_file_get_fd"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_stream_file_get_fd"
---

# mongoc\_stream\_file\_get\_fd(3)

## SYNOPSIS

```
int
mongoc_stream_file_get_fd (mongoc_stream_file_t *stream);
```

## PARAMETERS

- •

  **stream**: A *mongoc\_stream\_file\_t*.

This function shall return the underlying file-descriptor of a *mongoc\_stream\_file\_t*.

**WARNING:**

Performing operations on the underlying file-descriptor may not be safe if used in conjunction with buffering. Avoid reading or writing from this file-descriptor.

## RETURNS

A file-descriptor that should not be modified by the caller.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
