Damjan Jovanovic : msvcrt: Added declarations for functions and structures related to stat64.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 14 09:25:41 CST 2007


Module: wine
Branch: master
Commit: cbb6da2d70fa41eee3af65aef151935bb218c19d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cbb6da2d70fa41eee3af65aef151935bb218c19d

Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date:   Wed Feb 14 12:24:27 2007 +0200

msvcrt: Added declarations for functions and structures related to stat64.

---

 dlls/msvcrt/msvcrt.h       |   15 +++++++++++++++
 include/msvcrt/sys/stat.h  |   17 +++++++++++++++++
 include/msvcrt/sys/types.h |    5 +++++
 include/msvcrt/wchar.h     |   20 ++++++++++++++++++++
 4 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/dlls/msvcrt/msvcrt.h b/dlls/msvcrt/msvcrt.h
index 83a27fd..c0bebba 100644
--- a/dlls/msvcrt/msvcrt.h
+++ b/dlls/msvcrt/msvcrt.h
@@ -59,6 +59,7 @@ typedef unsigned int   MSVCRT__dev_t;
 typedef int  MSVCRT__off_t;
 typedef long MSVCRT_clock_t;
 typedef long MSVCRT_time_t;
+typedef __int64 MSVCRT___time64_t;
 typedef __int64 MSVCRT_fpos_t;
 
 typedef void (*MSVCRT_terminate_handler)(void);
@@ -372,6 +373,20 @@ struct MSVCRT__stati64 {
   MSVCRT_time_t  st_ctime;
 };
 
+struct MSVCRT__stat64 {
+  MSVCRT__dev_t     st_dev;
+  MSVCRT__ino_t     st_ino;
+  unsigned short    st_mode;
+  short             st_nlink;
+  short             st_uid;
+  short             st_gid;
+  MSVCRT__dev_t     st_rdev;
+  __int64 DECLSPEC_ALIGN(8) st_size;
+  MSVCRT___time64_t st_atime;
+  MSVCRT___time64_t st_mtime;
+  MSVCRT___time64_t st_ctime;
+};
+
 #define MSVCRT_WEOF (MSVCRT_wint_t)(0xFFFF)
 #define MSVCRT_EOF       (-1)
 #define MSVCRT_TMP_MAX   0x7fff
diff --git a/include/msvcrt/sys/stat.h b/include/msvcrt/sys/stat.h
index c8b1888..dcedcd5 100644
--- a/include/msvcrt/sys/stat.h
+++ b/include/msvcrt/sys/stat.h
@@ -114,6 +114,20 @@ struct _stati64 {
   time_t st_mtime;
   time_t st_ctime;
 };
+
+struct _stat64 {
+  _dev_t st_dev;
+  _ino_t st_ino;
+  unsigned short st_mode;
+  short          st_nlink;
+  short          st_uid;
+  short          st_gid;
+  _dev_t st_rdev;
+  __int64 DECLSPEC_ALIGN(8) st_size;
+  __time64_t     st_atime;
+  __time64_t     st_mtime;
+  __time64_t     st_ctime;
+};
 #endif /* _STAT_DEFINED */
 
 #ifdef __cplusplus
@@ -124,12 +138,15 @@ int _fstat(int,struct _stat*);
 int _stat(const char*,struct _stat*);
 int _fstati64(int,struct _stati64*);
 int _stati64(const char*,struct _stati64*);
+int _fstat64(int,struct _stat64*);
+int _stat64(const char*,struct _stat64*);
 int _umask(int);
 
 #ifndef _WSTAT_DEFINED
 #define _WSTAT_DEFINED
 int _wstat(const wchar_t*,struct _stat*);
 int _wstati64(const wchar_t*,struct _stati64*);
+int _wstat64(const wchar_t*,struct _stat64*);
 #endif /* _WSTAT_DEFINED */
 
 #ifdef __cplusplus
diff --git a/include/msvcrt/sys/types.h b/include/msvcrt/sys/types.h
index 53d5c6b..05a5ef1 100644
--- a/include/msvcrt/sys/types.h
+++ b/include/msvcrt/sys/types.h
@@ -56,6 +56,11 @@ typedef long time_t;
 #define _TIME_T_DEFINED
 #endif
 
+#ifndef _TIME64_T_DEFINED
+#define _TIME64_T_DEFINED
+typedef __int64 __time64_t;
+#endif
+
 #ifndef _BSDTYPES_DEFINED
 typedef unsigned char u_char;
 typedef unsigned short u_short;
diff --git a/include/msvcrt/wchar.h b/include/msvcrt/wchar.h
index 03bf7cc..48aa311 100644
--- a/include/msvcrt/wchar.h
+++ b/include/msvcrt/wchar.h
@@ -99,6 +99,11 @@ typedef long time_t;
 #define _TIME_T_DEFINED
 #endif
 
+#ifndef _TIME64_T_DEFINED
+#define _TIME64_T_DEFINED
+typedef __int64 __time64_t;
+#endif
+
 #ifndef _TM_DEFINED
 #define _TM_DEFINED
 struct tm {
@@ -196,6 +201,20 @@ struct _stati64 {
   time_t st_mtime;
   time_t st_ctime;
 };
+
+struct _stat64 {
+  _dev_t st_dev;
+  _ino_t st_ino;
+  unsigned short st_mode;
+  short          st_nlink;
+  short          st_uid;
+  short          st_gid;
+  _dev_t st_rdev;
+  __int64 DECLSPEC_ALIGN(8) st_size;
+  __time64_t     st_atime;
+  __time64_t     st_mtime;
+  __time64_t     st_ctime;
+};
 #endif /* _STAT_DEFINED */
 
 /* ASCII char classification table - binary compatible */
@@ -286,6 +305,7 @@ int         _wsystem(const wchar_t*);
 #define _WSTAT_DEFINED
 int _wstat(const wchar_t*,struct _stat*);
 int _wstati64(const wchar_t*,struct _stati64*);
+int _wstat64(const wchar_t*,struct _stat64*);
 #endif /* _WSTAT_DEFINED */
 
 #ifndef _WSTDIO_DEFINED




More information about the wine-cvs mailing list