1MONGOC_STREAM_FILE_NEW_FOR_PATH(3) libmongocMONGOC_STREAM_FILE_NEW_FOR_PATH(3)
2
3
4
6 mongoc_stream_file_new_for_path - mongoc_stream_file_new_for_path()
7
9 mongoc_stream_t *
10 mongoc_stream_file_new_for_path (const char *path,
11 int flags,
12 int mode) BSON_GNUC_WARN_UNUSED_RESULT;
13
15 • path: The path of the target file.
16
17 • flags: Flags to be passed to open().
18
19 • mode: An optional mode to be passed to open() when creating a file.
20
21 This function shall create a new mongoc_stream_file_t after opening the
22 underlying file with open() or the platform equivalent.
23
25 NULL on failure, otherwise a newly allocated mongoc_stream_file_t that
26 should be freed with mongoc_stream_destroy() when no longer in use.
27
28 errno is set upon failure.
29
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.21.1 Mar 02, 2022MONGOC_STREAM_FILE_NEW_FOR_PATH(3)