1MONGOC_STREAM_FILE_NEW_FOR_PATH(3) libmongocMONGOC_STREAM_FILE_NEW_FOR_PATH(3)
2
3
4

SYNOPSIS

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

PARAMETERS

12path: The path of the target file.
13
14flags: Flags to be passed to open().
15
16mode: 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

RETURNS

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

AUTHOR

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)
Impressum