mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
Layout stat structures exactly the same as in Microsoft MSVCRT, for
binary compatibility svn path=/trunk/; revision=4607
This commit is contained in:
parent
8429d49021
commit
458d8d250c
1 changed files with 21 additions and 26 deletions
|
@ -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,18 +85,13 @@ 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 ... */
|
|
||||||
#else
|
|
||||||
short st_dev; /* Equivalent to drive number 0=A 1=B ... */
|
|
||||||
short st_padding; /* Pad structure to equal msvcrt version req */
|
|
||||||
#endif
|
|
||||||
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) */
|
||||||
long st_size; /* File size in bytes */
|
long 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 */
|
||||||
|
@ -106,13 +101,13 @@ struct stat
|
||||||
|
|
||||||
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 */
|
||||||
|
|
Loading…
Reference in a new issue