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

This commit is contained in:
Damjan Jovanovic 2007-02-14 12:24:27 +02:00 committed by Alexandre Julliard
parent 6f7f2bf882
commit cbb6da2d70
4 changed files with 57 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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