MCPcopy Create free account
hub / github.com/boostorg/filesystem / equivalent_stat

Function equivalent_stat

src/operations.cpp:435–438  ·  view source on GitHub ↗

Returns \c true if the two \c statx structures refer to the same file

Source from the content-addressed store, hash-verified

433
434//! Returns \c true if the two \c statx structures refer to the same file
435inline bool equivalent_stat(struct ::statx const& s1, struct ::statx const& s2) noexcept
436{
437 return s1.stx_dev_major == s2.stx_dev_major && s1.stx_dev_minor == s2.stx_dev_minor && s1.stx_ino == s2.stx_ino;
438}
439
440//! Returns file type/access mode from \c statx structure
441inline mode_t get_mode(struct ::statx const& st) noexcept

Callers 3

copy_fileFunction · 0.85
equivalent_v3Function · 0.85
equivalent_v4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected