123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef BOOST_NOWIDE_STAT_HPP_INCLUDED
- #define BOOST_NOWIDE_STAT_HPP_INCLUDED
- #include <boost/nowide/config.hpp>
- #include <sys/types.h>
- #include <sys/stat.h>
- #if defined(__MINGW32__) && defined(__MSVCRT_VERSION__) && __MSVCRT_VERSION__ < 0x0601
- struct __stat64;
- #endif
- namespace boost {
- namespace nowide {
- #if !defined(BOOST_WINDOWS) && !defined(BOOST_NOWIDE_DOXYGEN)
-
-
- typedef struct ::stat stat_t;
- typedef struct ::stat posix_stat_t;
- using ::stat;
- #else
-
-
-
- typedef struct ::__stat64 stat_t;
-
-
-
- typedef struct ::_stat posix_stat_t;
-
- namespace detail {
- BOOST_NOWIDE_DECL int stat(const char* path, stat_t* buffer, size_t buffer_size);
- BOOST_NOWIDE_DECL int stat(const char* path, posix_stat_t* buffer, size_t buffer_size);
- }
-
-
-
-
-
-
- inline int stat(const char* path, stat_t* buffer)
- {
- return detail::stat(path, buffer, sizeof(*buffer));
- }
-
-
-
-
-
- inline int stat(const char* path, posix_stat_t* buffer)
- {
- return detail::stat(path, buffer, sizeof(*buffer));
- }
- #endif
- }
- }
- #endif
|