/usr/include/boost/nowide
NameSizeModeActions
detail/-0755rm
utf/-0755rm
args.hpp57360644editdlrm
config.hpp34990644editdlrm
convert.hpp48950644editdlrm
cstdio.hpp13870644editdlrm
cstdlib.hpp19900644editdlrm
filebuf.hpp156220644editdlrm
filesystem.hpp9270644editdlrm
fstream.hpp144860644editdlrm
iostream.hpp27110644editdlrm
replacement.hpp5630644editdlrm
stackstring.hpp73040644editdlrm
stat.hpp20480644editdlrm
utf8_codecvt.hpp160550644editdlrm
windows.hpp10690644editdlrm
Edit: /usr/include/boost/nowide/stat.hpp (2048B)
// // Copyright (c) 2020 Alexander Grund // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_NOWIDE_STAT_HPP_INCLUDED #define BOOST_NOWIDE_STAT_HPP_INCLUDED #include #include // Include after sys/types.h #include #if defined(__MINGW32__) && defined(__MSVCRT_VERSION__) && __MSVCRT_VERSION__ < 0x0601 /// Forward declaration in case MinGW32 is used and __MSVCRT_VERSION__ is defined lower than 6.1 struct __stat64; #endif namespace boost { namespace nowide { #if !defined(BOOST_WINDOWS) && !defined(BOOST_NOWIDE_DOXYGEN) using stat_t = struct stat; using posix_stat_t = struct stat; using ::stat; #else /// \brief Typedef for the file info structure. /// Able to hold 64 bit filesize and timestamps on Windows and usually also on other 64 Bit systems /// This allows to write portable code with option LFS support typedef struct ::__stat64 stat_t; /// \brief Typedef for the file info structure used in the POSIX stat call /// Resolves to `struct _stat` on Windows and `struct stat` otherwise /// This allows to write portable code using the default stat function typedef struct ::_stat posix_stat_t; /// \cond INTERNAL namespace detail { BOOST_NOWIDE_DECL int stat(const char* path, posix_stat_t* buffer, size_t buffer_size); } /// \endcond /// /// \brief UTF-8 aware stat function, returns 0 on success /// /// Return information about a file from an UTF-8 encoded path /// BOOST_NOWIDE_DECL int stat(const char* path, stat_t* buffer); /// /// \brief UTF-8 aware stat function, returns 0 on success /// /// Return information about a file from an UTF-8 encoded path /// inline int stat(const char* path, posix_stat_t* buffer) { return detail::stat(path, buffer, sizeof(*buffer)); } #endif } // namespace nowide } // namespace boost #endif