* syscalls.cc (stat64_to_stat32): Transform st_dev correctly.
(fstat64): Add evaluating st_ino and st_dev. (stat_worker): Evaluate st_dev as 32 bit value. * include/cygwin/stat.h: Use new dev_t definition throughout. * include/cygwin/types.h: Define __dev16_t and __dev32_t. Define dev_t according to __CYGWIN_USE_BIG_TYPES__ setting. * include/sys/sysmacros.h: Define major, minor and makedev according to __CYGWIN_USE_BIG_TYPES__ setting.
This commit is contained in:
@ -19,13 +19,13 @@ extern "C" {
|
||||
#ifdef __INSIDE_CYGWIN__
|
||||
struct __stat32
|
||||
{
|
||||
dev_t st_dev;
|
||||
__dev16_t st_dev;
|
||||
ino_t st_ino;
|
||||
mode_t st_mode;
|
||||
nlink_t st_nlink;
|
||||
__uid16_t st_uid;
|
||||
__gid16_t st_gid;
|
||||
dev_t st_rdev;
|
||||
__dev16_t st_rdev;
|
||||
__off32_t st_size;
|
||||
time_t st_atime;
|
||||
long st_spare1;
|
||||
@ -40,13 +40,13 @@ struct __stat32
|
||||
|
||||
struct __stat64
|
||||
{
|
||||
dev_t st_dev;
|
||||
__dev32_t st_dev;
|
||||
ino_t st_ino;
|
||||
mode_t st_mode;
|
||||
nlink_t st_nlink;
|
||||
__uid32_t st_uid;
|
||||
__gid32_t st_gid;
|
||||
dev_t st_rdev;
|
||||
__dev32_t st_rdev;
|
||||
__off64_t st_size;
|
||||
time_t st_atime;
|
||||
long st_spare1;
|
||||
|
Reference in New Issue
Block a user