13 #ifndef __STOUT_OS_WINDOWS_LSEEK_HPP__ 14 #define __STOUT_OS_WINDOWS_LSEEK_HPP__ 31 LARGE_INTEGER offset_;
32 offset_.QuadPart = offset;
34 LARGE_INTEGER new_offset;
39 ::SetFilePointerEx(fd, offset_, &new_offset, static_cast<DWORD>(whence));
41 if (result == FALSE) {
45 return static_cast<off_t
>(new_offset.QuadPart);
50 #endif // __STOUT_OS_WINDOWS_LSEEK_HPP__
Definition: error.hpp:108
Definition: posix_signalhandler.hpp:23
Try< off_t > lseek(int_fd fd, off_t offset, int whence)
Definition: lseek.hpp:25
int int_fd
Definition: int_fd.hpp:35