13 #ifndef __STOUT_OS_WINDOWS_FCNTL_HPP__    14 #define __STOUT_OS_WINDOWS_FCNTL_HPP__    16 #include <glog/logging.h>    53       const u_long non_block_mode = 1;
    54       u_long 
mode = non_block_mode;
    56       int result = ::ioctlsocket(fd, FIONBIO, &mode);
    57       if (result != NO_ERROR) {
    71   VLOG(2) << 
"`os::isNonblock` has been called, but is a stub on Windows";
    77 #endif // __STOUT_OS_WINDOWS_FCNTL_HPP__ Definition: nothing.hpp:16
Try< bool > isNonblock(int fd)
Definition: fcntl.hpp:87
Definition: error.hpp:123
Try< bool > isCloexec(int fd)
Definition: fcntl.hpp:59
Definition: posix_signalhandler.hpp:23
Try< Nothing > nonblock(int fd)
Definition: fcntl.hpp:71
Try< Nothing > cloexec(int fd)
Definition: fcntl.hpp:27
#define UNREACHABLE()
Definition: unreachable.hpp:22
Try< Nothing > unsetCloexec(int fd)
Definition: fcntl.hpp:43
Try< mode_t > mode(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
Definition: stat.hpp:168
int int_fd
Definition: int_fd.hpp:35