blob: 0235fd5c98d436a03891bc0fbc1105375dc25dec [file] [log] [blame]
#include <sys/stat.h>
int __cdecl _fstat64i32(int _FileDes,struct _stat64i32 *_Stat)
{
struct _stat64 st;
int ret=_fstat64(_FileDes,&st);
_Stat->st_dev=st.st_dev;
_Stat->st_ino=st.st_ino;
_Stat->st_mode=st.st_mode;
_Stat->st_nlink=st.st_nlink;
_Stat->st_uid=st.st_uid;
_Stat->st_gid=st.st_gid;
_Stat->st_rdev=st.st_rdev;
_Stat->st_size=(_off_t) st.st_size;
_Stat->st_atime=st.st_atime;
_Stat->st_mtime=st.st_mtime;
_Stat->st_ctime=st.st_ctime;
return ret;
}
int __cdecl _stat64i32(const char *_Name,struct _stat64i32 *_Stat)
{
struct _stat64 st;
int ret=_stat64(_Name,&st);
_Stat->st_dev=st.st_dev;
_Stat->st_ino=st.st_ino;
_Stat->st_mode=st.st_mode;
_Stat->st_nlink=st.st_nlink;
_Stat->st_uid=st.st_uid;
_Stat->st_gid=st.st_gid;
_Stat->st_rdev=st.st_rdev;
_Stat->st_size=(_off_t) st.st_size;
_Stat->st_atime=st.st_atime;
_Stat->st_mtime=st.st_mtime;
_Stat->st_ctime=st.st_ctime;
return ret;
}
#ifdef _USE_32BIT_TIME_T
int __cdecl fstat(int _Desc,struct stat *_Stat)
{
return _fstat32(_Desc,(struct _stat32 *)_Stat);
}
int __cdecl stat(const char *_Filename,struct stat *_Stat)
{
return _stat32(_Filename,(struct _stat32 *)_Stat);
}
#else
int __cdecl fstat(int _Desc,struct stat *_Stat)
{
return _fstat64i32(_Desc,(struct _stat64i32 *)_Stat);
}
int __cdecl stat(const char *_Filename,struct stat *_Stat)
{
return _stat64i32(_Filename,(struct _stat64i32 *)_Stat);
}
#endif