12#if ALIB_SYSTEM_FILE_STATUS_IMPL == ALIB_SYSTEM_FILE_POSIX_STATUS
14# if defined(__linux__)
15# include <asm/unistd.h>
18# if defined(__linux__)
19# include <linux/stat.h>
20# include <linux/magic.h>
24# if !defined(__APPLE__)
25# include <sys/sysmacros.h>
27# include <sys/types.h>
28# include <sys/mount.h>
35 namespace fs = std::filesystem;
38 #if defined(__APPLE__) || defined(_LIBCPP_VERSION) || defined(__ANDROID_NDK__)
41 template <
typename TP>
42 std::time_t to_time_t(TP tp)
44 auto sctp = std::chrono::time_point_cast<std::chrono::system_clock::duration>(tp - TP::clock::now()
45 + std::chrono::system_clock::now());
46 return std::chrono::system_clock::to_time_t(sctp);
67#include "filestatus.cpp"
#define ALIB_ALLOW_IMPLEMENTATION_INCLUSION
#define ALIB_POP_ALLOWANCE