Bitcoin ABC  0.26.3
P2P Digital Currency
Classes | Typedefs | Functions
fsbridge Namespace Reference

Bridge operations to C stdio. More...

Classes

class  FileLock
 

Typedefs

using FopenFn = std::function< FILE *(const fs::path &, const char *)>
 

Functions

FILE * fopen (const fs::path &p, const char *mode)
 
fs::path AbsPathJoin (const fs::path &base, const fs::path &path)
 Helper function for joining two paths. More...
 
static std::string GetErrorReason ()
 
static bool IsWSL ()
 
std::string get_filesystem_error_message (const fs::filesystem_error &e)
 
fs::path GetTempDirectoryPath ()
 
FILE * freopen (const fs::path &p, const char *mode, FILE *stream)
 

Detailed Description

Bridge operations to C stdio.

Typedef Documentation

◆ FopenFn

using fsbridge::FopenFn = typedef std::function<FILE *(const fs::path &, const char *)>

Definition at line 198 of file fs.h.

Function Documentation

◆ AbsPathJoin()

fs::path fsbridge::AbsPathJoin ( const fs::path base,
const fs::path path 
)

Helper function for joining two paths.

Parameters
[in]baseBase path
[in]pathPath to combine with base
Returns
path unchanged if it is an absolute path, otherwise returns base joined with path. Returns base unchanged if path is empty.
Precondition
Base path must be absolute
Postcondition
Returned path will always be absolute

Definition at line 37 of file fs.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fopen()

FILE * fsbridge::fopen ( const fs::path p,
const char *  mode 
)

Definition at line 28 of file fs.cpp.

Here is the caller graph for this function:

◆ freopen()

FILE* fsbridge::freopen ( const fs::path p,
const char *  mode,
FILE *  stream 
)

◆ get_filesystem_error_message()

std::string fsbridge::get_filesystem_error_message ( const fs::filesystem_error &  e)

Definition at line 140 of file fs.cpp.

Here is the caller graph for this function:

◆ GetErrorReason()

static std::string fsbridge::GetErrorReason ( )
static

Definition at line 44 of file fs.cpp.

Here is the caller graph for this function:

◆ GetTempDirectoryPath()

fs::path fsbridge::GetTempDirectoryPath ( )

Definition at line 158 of file fs.cpp.

Here is the call graph for this function:

◆ IsWSL()

static bool fsbridge::IsWSL ( )
static

Definition at line 61 of file fs.cpp.

Here is the caller graph for this function: