12#if SEEK_SET != FILE_BEGIN || SEEK_CUR != FILE_CURRENT || SEEK_END != FILE_END
13 #error Xenix and Win32 seek constants not compatible
52 return static_cast<long>(new_pos.
LowPart);
68template <
typename Integer>
72 if (os_handle ==
reinterpret_cast<HANDLE>(-1))
75 _ASSERTE((
"Invalid file descriptor",0));
80 if (new_position == -1)
101template <
typename Integer>
115 ptd.get_doserrno().set(0);
116 _ASSERTE((
"Invalid file descriptor. File possibly closed by a different thread",0));
152 __crt_cached_ptd_host
ptd;
158 __crt_cached_ptd_host
ptd;
164 __crt_cached_ptd_host
ptd;
170 __crt_cached_ptd_host
ptd;
void __cdecl __acrt_lowio_lock_fh(_In_ int _FileHandle)
void __cdecl __acrt_lowio_unlock_fh(_In_ int _FileHandle)
#define _UCRT_VALIDATE_CLEAR_OSSERR_RETURN(ptd, expr, errorcode, retexpr)
#define _UCRT_CHECK_FH_CLEAR_OSSERR_RETURN(ptd, handle, errorcode, retexpr)
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
BOOL WINAPI SetFilePointerEx(HANDLE hFile, LARGE_INTEGER liDistanceToMove, PLARGE_INTEGER lpNewFilePointer, DWORD dwMoveMethod)
void __cdecl __acrt_errno_map_os_error_ptd(unsigned long const oserrno, __crt_cached_ptd_host &ptd)
static Integer __cdecl common_lseek(int const fh, Integer const offset, int const origin, __crt_cached_ptd_host &ptd)
__int64 __cdecl _lseeki64(int const fh, __int64 const offset, int const origin)
__int64 __cdecl _lseeki64_nolock_internal(int const fh, __int64 const offset, int const origin, __crt_cached_ptd_host &ptd)
long __cdecl _lseek_nolock_internal(int const fh, long const offset, int const origin, __crt_cached_ptd_host &ptd)
static long __cdecl common_lseek_do_seek_nolock(HANDLE const os_handle, long const offset, int const origin, __crt_cached_ptd_host &ptd)
long __cdecl _lseek(int const fh, long const offset, int const origin)
static Integer __cdecl common_lseek_nolock(int const fh, Integer const offset, int const origin, __crt_cached_ptd_host &ptd)
__int64 __cdecl _lseeki64_nolock(int const fh, __int64 const offset, int const origin)
long __cdecl _lseek_nolock(int const fh, long const offset, int const origin)
long __cdecl _lseek_internal(int const fh, long const offset, int const origin, __crt_cached_ptd_host &ptd)
__int64 __cdecl _lseeki64_internal(int const fh, __int64 const offset, int const origin, __crt_cached_ptd_host &ptd)
_CRTIMP intptr_t __cdecl _get_osfhandle(_In_ int _FileHandle)
DWORD WINAPI GetLastError(void)