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, int flags, int mode);
11
13 • path: The path of the target file.
14
15 • flags: Flags to be passed to open().
16
17 • mode: An optional mode to be passed to open() when creating a file.
18
19 This function shall create a new mongoc_stream_file_t after opening the
20 underlying file with open() or the platform equivalent.
21
23 NULL on failure, otherwise a newly allocated mongoc_stream_file_t that
24 should be freed with mongoc_stream_destroy() when no longer in use.
25
26 errno is set upon failure.
27
29 MongoDB, Inc
30
32 2017-present, MongoDB, Inc
33
34
35
36
371.17.6 Jun 03, 2021MONGOC_STREAM_FILE_NEW_FOR_PATH(3)