Go to the source code of this file.
|
static long __cdecl | common_lseek_do_seek_nolock (HANDLE const os_handle, long const offset, int const origin, __crt_cached_ptd_host &ptd) throw () |
|
static __int64 __cdecl | common_lseek_do_seek_nolock (HANDLE const os_handle, __int64 const offset, int const origin, __crt_cached_ptd_host &ptd) throw () |
|
template<typename Integer > |
static Integer __cdecl | common_lseek_nolock (int const fh, Integer const offset, int const origin, __crt_cached_ptd_host &ptd) throw () |
|
template<typename Integer > |
static Integer __cdecl | common_lseek (int const fh, Integer const offset, int const origin, __crt_cached_ptd_host &ptd) throw () |
|
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) |
|
long __cdecl | _lseek_nolock_internal (int const fh, long const offset, int const origin, __crt_cached_ptd_host &ptd) |
|
__int64 __cdecl | _lseeki64_nolock_internal (int const fh, __int64 const offset, int const origin, __crt_cached_ptd_host &ptd) |
|
long __cdecl | _lseek (int const fh, long const offset, int const origin) |
|
__int64 __cdecl | _lseeki64 (int const fh, __int64 const offset, int const origin) |
|
long __cdecl | _lseek_nolock (int const fh, long const offset, int const origin) |
|
__int64 __cdecl | _lseeki64_nolock (int const fh, __int64 const offset, int const origin) |
|
◆ _lseek()
Definition at line 150 of file lseek.cpp.
151{
152 __crt_cached_ptd_host
ptd;
154}
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
static Integer __cdecl common_lseek(int const fh, Integer const offset, int const origin, __crt_cached_ptd_host &ptd)
◆ _lseek_internal()
◆ _lseek_nolock()
Definition at line 162 of file lseek.cpp.
163{
164 __crt_cached_ptd_host
ptd;
166}
static Integer __cdecl common_lseek_nolock(int const fh, Integer const offset, int const origin, __crt_cached_ptd_host &ptd)
◆ _lseek_nolock_internal()
◆ _lseeki64()
Definition at line 156 of file lseek.cpp.
157{
158 __crt_cached_ptd_host
ptd;
160}
◆ _lseeki64_internal()
◆ _lseeki64_nolock()
Definition at line 168 of file lseek.cpp.
169{
170 __crt_cached_ptd_host
ptd;
172}
◆ _lseeki64_nolock_internal()
◆ common_lseek()
Definition at line 102 of file lseek.cpp.
103{
107
111 {
113 {
115 ptd.get_doserrno().set(0);
116 _ASSERTE((
"Invalid file descriptor. File possibly closed by a different thread",0));
118 }
119
121 }
123 {
125 }
128}
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)
Referenced by _lseek(), _lseek_internal(), _lseeki64(), and _lseeki64_internal().
◆ common_lseek_do_seek_nolock() [1/2]
Definition at line 55 of file lseek.cpp.
56{
59 {
61 return -1;
62 }
63
65}
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)
DWORD WINAPI GetLastError(void)
◆ common_lseek_do_seek_nolock() [2/2]
Definition at line 21 of file lseek.cpp.
22{
24
27 {
29 return -1;
30 }
31
34
37 {
39 return -1;
40 }
41
42
43
44
46 {
49 return -1;
50 }
51
52 return static_cast<long>(new_pos.
LowPart);
53}
Referenced by common_lseek_nolock().
◆ common_lseek_nolock()