MONGOC_STREAM_FILE_NEW(3)

πŸŽ€ MONGOC_STREAM_FILE_NEW(3) πŸŽ€

okay so welcome to the libmongoc manual, bestie β€” this page is about mongoc_stream_file_new, and it's literally turning a UNIX-style file descriptor into a fresh mongoc_stream_file_t. slay. πŸ’…


✨ SYNOPSIS ✨

mongoc_stream_t *
mongoc_stream_file_new (int fd);

🌸 PARAMETERS 🌸

  • fd β€” a UNIX style file-descriptor. yes bestie, that exact kind. πŸ“

This creates a new mongoc_stream_file_t using the file-descriptor provided. iconic behavior, honestly. ✨

πŸ’– RETURNS πŸ’–

NULL upon failure 😭 β€” otherwise you get a newly allocated mongoc_stream_file_t that should be freed with mongoc_stream_destroy() when it's no longer in use. clean up after yourself, icon. 🫢

errno is set upon failure. noted, fr fr. πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” main character energy, no cap. πŸ’œ

2009-present, MongoDB, Inc. πŸŽ€


kisses and stream objects, bestie β€” this was libmongoc 2.5.6, dated Oct 09, 2026, and the page is MONGOC_STREAM_FILE_NEW(3). πŸ’–πŸ¦‹

πŸ“¦ where this page comes from