#include <corecrt_internal_lowio.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
◆ _filelength()
Definition at line 55 of file filelength.cpp.
56{
57 return common_filelength<long>(fh);
58}
◆ _filelengthi64()
Definition at line 60 of file filelength.cpp.
61{
62 return common_filelength<__int64>(fh);
63}
◆ _Success_()
_Success_ |
( |
return ! |
= -1 | ) |
const |
throw | ( | |
| ) | | |
Definition at line 17 of file filelength.cpp.
19{
21
25
29 {
31 {
34 _ASSERTE((
"Invalid file descriptor. File possibly closed by a different thread", 0));
36 }
37
38
39 Integer
const here = traits::lseek_nolock(fh, 0,
SEEK_CUR);
40 if (here == -1)
42
45 traits::lseek_nolock(fh, here,
SEEK_SET);
46 }
48 {
50 }
53}
#define _CHECK_FH_CLEAR_OSSERR_RETURN(handle, errorcode, retexpr)
void __cdecl __acrt_lowio_lock_fh(_In_ int _FileHandle)
void __cdecl __acrt_lowio_unlock_fh(_In_ int _FileHandle)
#define _VALIDATE_CLEAR_OSSERR_RETURN(expr, errorcode, retexpr)