13 #ifndef __STOUT_OS_OPEN_HPP__
14 #define __STOUT_OS_OPEN_HPP__
17 #include <sys/types.h>
34 #error "missing O_CLOEXEC support on this platform"
46 int_fd fd = ::_wopen(longpath.data(), oflag | O_BINARY,
mode);
59 #endif // __STOUT_OS_OPEN_HPP__
Definition: errorbase.hpp:49
int mode_t
Definition: windows.hpp:183
Try< int_fd > open(const std::string &path, int oflag, mode_t mode=0)
Definition: open.hpp:39
Try< mode_t > mode(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
Definition: stat.hpp:126
std::wstring longpath(const std::string &path)
Definition: longpath.hpp:38
int int_fd
Definition: int_fd.hpp:35