Commit cbb6da2d authored by Damjan Jovanovic's avatar Damjan Jovanovic Committed by Alexandre Julliard

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

parent 6f7f2bf8
...@@ -59,6 +59,7 @@ typedef unsigned int MSVCRT__dev_t; ...@@ -59,6 +59,7 @@ typedef unsigned int MSVCRT__dev_t;
typedef int MSVCRT__off_t; typedef int MSVCRT__off_t;
typedef long MSVCRT_clock_t; typedef long MSVCRT_clock_t;
typedef long MSVCRT_time_t; typedef long MSVCRT_time_t;
typedef __int64 MSVCRT___time64_t;
typedef __int64 MSVCRT_fpos_t; typedef __int64 MSVCRT_fpos_t;
typedef void (*MSVCRT_terminate_handler)(void); typedef void (*MSVCRT_terminate_handler)(void);
...@@ -372,6 +373,20 @@ struct MSVCRT__stati64 { ...@@ -372,6 +373,20 @@ struct MSVCRT__stati64 {
MSVCRT_time_t st_ctime; 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_WEOF (MSVCRT_wint_t)(0xFFFF)
#define MSVCRT_EOF (-1) #define MSVCRT_EOF (-1)
#define MSVCRT_TMP_MAX 0x7fff #define MSVCRT_TMP_MAX 0x7fff
......
...@@ -114,6 +114,20 @@ struct _stati64 { ...@@ -114,6 +114,20 @@ struct _stati64 {
time_t st_mtime; time_t st_mtime;
time_t st_ctime; 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 */ #endif /* _STAT_DEFINED */
#ifdef __cplusplus #ifdef __cplusplus
...@@ -124,12 +138,15 @@ int _fstat(int,struct _stat*); ...@@ -124,12 +138,15 @@ int _fstat(int,struct _stat*);
int _stat(const char*,struct _stat*); int _stat(const char*,struct _stat*);
int _fstati64(int,struct _stati64*); int _fstati64(int,struct _stati64*);
int _stati64(const char*,struct _stati64*); int _stati64(const char*,struct _stati64*);
int _fstat64(int,struct _stat64*);
int _stat64(const char*,struct _stat64*);
int _umask(int); int _umask(int);
#ifndef _WSTAT_DEFINED #ifndef _WSTAT_DEFINED
#define _WSTAT_DEFINED #define _WSTAT_DEFINED
int _wstat(const wchar_t*,struct _stat*); int _wstat(const wchar_t*,struct _stat*);
int _wstati64(const wchar_t*,struct _stati64*); int _wstati64(const wchar_t*,struct _stati64*);
int _wstat64(const wchar_t*,struct _stat64*);
#endif /* _WSTAT_DEFINED */ #endif /* _WSTAT_DEFINED */
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -56,6 +56,11 @@ typedef long time_t; ...@@ -56,6 +56,11 @@ typedef long time_t;
#define _TIME_T_DEFINED #define _TIME_T_DEFINED
#endif #endif
#ifndef _TIME64_T_DEFINED
#define _TIME64_T_DEFINED
typedef __int64 __time64_t;
#endif
#ifndef _BSDTYPES_DEFINED #ifndef _BSDTYPES_DEFINED
typedef unsigned char u_char; typedef unsigned char u_char;
typedef unsigned short u_short; typedef unsigned short u_short;
......
...@@ -99,6 +99,11 @@ typedef long time_t; ...@@ -99,6 +99,11 @@ typedef long time_t;
#define _TIME_T_DEFINED #define _TIME_T_DEFINED
#endif #endif
#ifndef _TIME64_T_DEFINED
#define _TIME64_T_DEFINED
typedef __int64 __time64_t;
#endif
#ifndef _TM_DEFINED #ifndef _TM_DEFINED
#define _TM_DEFINED #define _TM_DEFINED
struct tm { struct tm {
...@@ -196,6 +201,20 @@ struct _stati64 { ...@@ -196,6 +201,20 @@ struct _stati64 {
time_t st_mtime; time_t st_mtime;
time_t st_ctime; 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 */ #endif /* _STAT_DEFINED */
/* ASCII char classification table - binary compatible */ /* ASCII char classification table - binary compatible */
...@@ -286,6 +305,7 @@ int _wsystem(const wchar_t*); ...@@ -286,6 +305,7 @@ int _wsystem(const wchar_t*);
#define _WSTAT_DEFINED #define _WSTAT_DEFINED
int _wstat(const wchar_t*,struct _stat*); int _wstat(const wchar_t*,struct _stat*);
int _wstati64(const wchar_t*,struct _stati64*); int _wstati64(const wchar_t*,struct _stati64*);
int _wstat64(const wchar_t*,struct _stat64*);
#endif /* _WSTAT_DEFINED */ #endif /* _WSTAT_DEFINED */
#ifndef _WSTDIO_DEFINED #ifndef _WSTDIO_DEFINED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment