Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenstat.c
Go to the documentation of this file.
00001 #include <precomp.h> 00002 #include <tchar.h> 00003 00004 #define stat64_to_stat(buf64, buf) \ 00005 buf->st_dev = (buf64)->st_dev; \ 00006 buf->st_ino = (buf64)->st_ino; \ 00007 buf->st_mode = (buf64)->st_mode; \ 00008 buf->st_nlink = (buf64)->st_nlink; \ 00009 buf->st_uid = (buf64)->st_uid; \ 00010 buf->st_gid = (buf64)->st_gid; \ 00011 buf->st_rdev = (buf64)->st_rdev; \ 00012 buf->st_size = (_off_t)(buf64)->st_size; \ 00013 buf->st_atime = (time_t)(buf64)->st_atime; \ 00014 buf->st_mtime = (time_t)(buf64)->st_mtime; \ 00015 buf->st_ctime = (time_t)(buf64)->st_ctime; \ 00016 00017 int CDECL _tstat(const _TCHAR* path, struct _stat * buf) 00018 { 00019 int ret; 00020 struct __stat64 buf64; 00021 00022 ret = _tstat64(path, &buf64); 00023 if (!ret) 00024 stat64_to_stat(&buf64, buf); 00025 return ret; 00026 } 00027 00028 int CDECL _tstati64(const _TCHAR* path, struct _stati64 * buf) 00029 { 00030 int ret; 00031 struct __stat64 buf64; 00032 00033 ret = _tstat64(path, &buf64); 00034 if (!ret) 00035 stat64_to_stat(&buf64, buf); 00036 return ret; 00037 } 00038 00039 #ifndef _UNICODE 00040 00041 int CDECL _fstat(int fd, struct _stat* buf) 00042 { int ret; 00043 struct __stat64 buf64; 00044 00045 ret = _fstat64(fd, &buf64); 00046 if (!ret) 00047 stat64_to_stat(&buf64, buf); 00048 return ret; 00049 } 00050 00051 int CDECL _fstati64(int fd, struct _stati64* buf) 00052 { 00053 int ret; 00054 struct __stat64 buf64; 00055 00056 ret = _fstat64(fd, &buf64); 00057 if (!ret) 00058 stat64_to_stat(&buf64, buf); 00059 return ret; 00060 } 00061 00062 #endif Generated on Sun May 27 2012 04:36:37 for ReactOS by
1.7.6.1
|