Initializes statx implementation pointer
| 417 | |
| 418 | //! Initializes statx implementation pointer |
| 419 | inline void init_statx_impl(unsigned int major_ver, unsigned int minor_ver, unsigned int patch_ver) |
| 420 | { |
| 421 | #if !defined(BOOST_FILESYSTEM_HAS_STATX) && defined(BOOST_FILESYSTEM_HAS_STATX_SYSCALL) |
| 422 | statx_t* stx = &statx_fstatat; |
| 423 | if (major_ver > 4u || (major_ver == 4u && minor_ver >= 11u)) |
| 424 | stx = &statx_syscall; |
| 425 | |
| 426 | filesystem::detail::atomic_store_relaxed(statx_ptr, stx); |
| 427 | #endif // !defined(BOOST_FILESYSTEM_HAS_STATX) && defined(BOOST_FILESYSTEM_HAS_STATX_SYSCALL) |
| 428 | } |
| 429 | |
| 430 | #endif // defined(linux) || defined(__linux) || defined(__linux__) |
| 431 |
no test coverage detected