Layout stat structures exactly the same as in Microsoft MSVCRT, for

binary compatibility

svn path=/trunk/; revision=4607
This commit is contained in:
Gé van Geldorp 2003-04-27 23:14:04 +00:00
parent 8429d49021
commit 458d8d250c

View file

@ -19,9 +19,9 @@
* DISCLAIMED. This includes but is not limited to warranties of * DISCLAIMED. This includes but is not limited to warranties of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* *
* $Revision: 1.6 $ * $Revision: 1.7 $
* $Author: robd $ * $Author: gvg $
* $Date: 2002/11/24 18:06:01 $ * $Date: 2003/04/27 23:14:04 $
* *
*/ */
@ -85,34 +85,29 @@ typedef __WCHAR_TYPE__ wchar_t;
*/ */
struct stat struct stat
{ {
#ifdef _MSVCRT_LIB_ unsigned st_dev; /* Equivalent to drive number 0=A 1=B ... */
long st_dev; /* Equivalent to drive number 0=A 1=B ... */ short st_ino; /* Always zero ? */
#else short st_mode; /* See above constants */
short st_dev; /* Equivalent to drive number 0=A 1=B ... */ short st_nlink; /* Number of links. */
short st_padding; /* Pad structure to equal msvcrt version req */ short st_uid; /* User: Maybe significant on NT ? */
#endif short st_gid; /* Group: Ditto */
short st_ino; /* Always zero ? */ unsigned st_rdev; /* Seems useless (not even filled in) */
short st_mode; /* See above constants */ long st_size; /* File size in bytes */
short st_nlink; /* Number of links. */ time_t st_atime; /* Accessed date (always 00:00 hrs local on FAT) */
int st_uid; /* User: Maybe significant on NT ? */ time_t st_mtime; /* Modified time */
short st_gid; /* Group: Ditto */ time_t st_ctime; /* Creation time */
short st_rdev; /* Seems useless (not even filled in) */
long st_size; /* File size in bytes */
time_t st_atime; /* Accessed date (always 00:00 hrs local on FAT) */
time_t st_mtime; /* Modified time */
time_t st_ctime; /* Creation time */
}; };
struct _stati64 struct _stati64
{ {
short st_dev; /* Equivalent to drive number 0=A 1=B ... */ unsigned st_dev; /* Equivalent to drive number 0=A 1=B ... */
short st_ino; /* Always zero ? */ short st_ino; /* Always zero ? */
short st_mode; /* See above constants */ short st_mode; /* See above constants */
short st_nlink; /* Number of links. */ short st_nlink; /* Number of links. */
int st_uid; /* User: Maybe significant on NT ? */ short st_uid; /* User: Maybe significant on NT ? */
short st_gid; /* Group: Ditto */ short st_gid; /* Group: Ditto */
short st_rdev; /* Seems useless (not even filled in) */ unsigned st_rdev; /* Seems useless (not even filled in) */
__int64 st_size; /* File size in bytes */ __int64 st_size; /* File size in bytes */
time_t st_atime; /* Accessed date (always 00:00 hrs local on FAT) */ time_t st_atime; /* Accessed date (always 00:00 hrs local on FAT) */
time_t st_mtime; /* Modified time */ time_t st_mtime; /* Modified time */