| * This file has no copyright assigned and is placed in the Public Domain. |
| * This file is part of the mingw-w64 runtime package. |
| * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| /* When the file size does not fit into the st_size field: |
| * crtdll-msvcr90 msvcr100 msvcr110+ |
| * errno no change no change EOVERFLOW |
| * This file is used only for pre-msvcr80 builds, |
| * So use the pre-msvcr80 behavior - truncate without error. |
| int __cdecl _fstat64i32(int _FileDes,struct _stat64i32 *_Stat) |
| int ret=_fstat64(_FileDes,&st); |
| _Stat->st_mode=st.st_mode; |
| _Stat->st_nlink=st.st_nlink; |
| _Stat->st_rdev=st.st_rdev; |
| _Stat->st_size=(_off_t) st.st_size; /* truncate 64-bit st_size to 32-bit */ |
| _Stat->st_atime=st.st_atime; |
| _Stat->st_mtime=st.st_mtime; |
| _Stat->st_ctime=st.st_ctime; |
| int (__cdecl *__MINGW_IMP_SYMBOL(_fstat64i32))(int, struct _stat64i32 *) = _fstat64i32; |