1 #ifndef _STAT_DEFINED 2 3 #ifdef _USE_32BIT_TIME_T 4 #define _fstat32 _fstat 5 #define _stat32 _stat 6 #define _wstat32 _wstat 7 #define _fstat32i64 _fstati64 8 #define _stat32i64 _stati64 9 #define _wstat32i64 _wstati64 10 #else 11 #define _fstat _fstat64i32 12 #define _fstati64 _fstat64 13 #define _stat _stat64i32 14 #define _stati64 _stat64 15 #define _wstat _wstat64i32 16 #define _wstati64 _wstat64 17 #endif /* _USE_32BIT_TIME_T */ 18 19 struct _stat32 { 20 _dev_t st_dev; 21 _ino_t st_ino; 22 unsigned short st_mode; 23 short st_nlink; 24 short st_uid; 25 short st_gid; 26 _dev_t st_rdev; 27 _off_t st_size; 28 __time32_t st_atime; 29 __time32_t st_mtime; 30 __time32_t st_ctime; 31 }; 32 33 #ifndef NO_OLDNAMES 34 struct stat { 35 _dev_t st_dev; 36 _ino_t st_ino; 37 unsigned short st_mode; 38 short st_nlink; 39 short st_uid; 40 short st_gid; 41 _dev_t st_rdev; 42 _off_t st_size; 43 time_t st_atime; 44 time_t st_mtime; 45 time_t st_ctime; 46 }; 47 #endif /* NO_OLDNAMES */ 48 49 struct _stat32i64 { 50 _dev_t st_dev; 51 _ino_t st_ino; 52 unsigned short st_mode; 53 short st_nlink; 54 short st_uid; 55 short st_gid; 56 _dev_t st_rdev; 57 __MINGW_EXTENSION __int64 st_size; 58 __time32_t st_atime; 59 __time32_t st_mtime; 60 __time32_t st_ctime; 61 }; 62 63 struct _stat64i32 { 64 _dev_t st_dev; 65 _ino_t st_ino; 66 unsigned short st_mode; 67 short st_nlink; 68 short st_uid; 69 short st_gid; 70 _dev_t st_rdev; 71 _off_t st_size; 72 __time64_t st_atime; 73 __time64_t st_mtime; 74 __time64_t st_ctime; 75 }; 76 77 struct _stat64 { 78 _dev_t st_dev; 79 _ino_t st_ino; 80 unsigned short st_mode; 81 short st_nlink; 82 short st_uid; 83 short st_gid; 84 _dev_t st_rdev; 85 __MINGW_EXTENSION __int64 st_size; 86 __time64_t st_atime; 87 __time64_t st_mtime; 88 __time64_t st_ctime; 89 }; 90 91 #define __stat64 _stat64 92 #define stat64 _stat64 /* for POSIX */ 93 #define fstat64 _fstat64 /* for POSIX */ 94 95 #define _STAT_DEFINED 96 #endif /* _STAT_DEFINED */ 97