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. π
π COPYRIGHT π
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
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms