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