13 #ifndef __STOUT_OS_POSIX_FSYNC_HPP__ 14 #define __STOUT_OS_POSIX_FSYNC_HPP__ 31 if (::
fsync(fd) == -1) {
61 #endif // __STOUT_OS_POSIX_FSYNC_HPP__
Definition: nothing.hpp:16
Definition: errorbase.hpp:36
T & get()&
Definition: try.hpp:80
Try< int_fd > open(const std::string &path, int oflag, mode_t mode=0)
Definition: open.hpp:35
Definition: errorbase.hpp:50
Definition: posix_signalhandler.hpp:23
constexpr int O_CLOEXEC
Definition: open.hpp:41
Try< Nothing > close(int fd)
Definition: close.hpp:24
static Try error(const E &e)
Definition: try.hpp:43
Try< Nothing > fsync(int fd)
Definition: fsync.hpp:29
bool isError() const
Definition: try.hpp:78