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

NAME

6       mongoc_stream_file_new_for_path - mongoc_stream_file_new_for_path()
7

SYNOPSIS

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

PARAMETERS

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

RETURNS

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

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.23.1                           Oct 20, 2022MONGOC_STREAM_FILE_NEW_FOR_PATH(3)
Impressum