1997-10-31 22:52:16 +00:00
|
|
|
/* Definition of `struct stat' used in the kernel. */
|
1997-03-16 20:11:57 +00:00
|
|
|
struct kernel_stat
|
|
|
|
{
|
|
|
|
unsigned int st_dev;
|
|
|
|
unsigned int st_ino;
|
|
|
|
unsigned int st_mode;
|
|
|
|
unsigned int st_nlink;
|
|
|
|
unsigned int st_uid;
|
|
|
|
unsigned int st_gid;
|
|
|
|
unsigned int st_rdev;
|
|
|
|
long int st_size;
|
2020-12-21 12:09:43 +00:00
|
|
|
unsigned long int st_atime_sec;
|
|
|
|
unsigned long int st_mtime_sec;
|
|
|
|
unsigned long int st_ctime_sec;
|
1997-03-16 20:11:57 +00:00
|
|
|
unsigned int st_blksize;
|
|
|
|
int st_blocks;
|
|
|
|
unsigned int st_flags;
|
|
|
|
unsigned int st_gen;
|
|
|
|
};
|
1997-10-31 22:52:16 +00:00
|
|
|
|
2004-03-11 02:58:44 +00:00
|
|
|
/* Definition of `struct stat64' used in the kernel. */
|
|
|
|
struct kernel_stat64
|
|
|
|
{
|
|
|
|
unsigned long st_dev;
|
|
|
|
unsigned long st_ino;
|
|
|
|
unsigned long st_rdev;
|
|
|
|
long st_size;
|
|
|
|
unsigned long st_blocks;
|
|
|
|
|
|
|
|
unsigned int st_mode;
|
|
|
|
unsigned int st_uid;
|
|
|
|
unsigned int st_gid;
|
|
|
|
unsigned int st_blksize;
|
|
|
|
unsigned int st_nlink;
|
|
|
|
unsigned int __pad0;
|
|
|
|
|
2020-12-21 12:09:43 +00:00
|
|
|
unsigned long st_atime_sec;
|
2013-06-05 20:26:40 +00:00
|
|
|
unsigned long st_atimensec;
|
2020-12-21 12:09:43 +00:00
|
|
|
unsigned long st_mtime_sec;
|
2004-03-11 02:58:44 +00:00
|
|
|
unsigned long st_mtimensec;
|
2020-12-21 12:09:43 +00:00
|
|
|
unsigned long st_ctime_sec;
|
2004-03-11 02:58:44 +00:00
|
|
|
unsigned long st_ctimensec;
|
2013-11-26 11:29:20 +00:00
|
|
|
long __glibc_reserved[3];
|
2004-03-11 02:58:44 +00:00
|
|
|
};
|
|
|
|
|
1997-10-31 22:52:16 +00:00
|
|
|
/* Definition of `struct stat' used by glibc 2.0. */
|
|
|
|
struct glibc2_stat
|
|
|
|
{
|
|
|
|
__dev_t st_dev;
|
|
|
|
__ino_t st_ino;
|
|
|
|
__mode_t st_mode;
|
|
|
|
__nlink_t st_nlink;
|
|
|
|
__uid_t st_uid;
|
|
|
|
__gid_t st_gid;
|
|
|
|
__dev_t st_rdev;
|
|
|
|
__off_t st_size;
|
2020-12-21 12:09:43 +00:00
|
|
|
__time_t st_atime_sec;
|
|
|
|
__time_t st_mtime_sec;
|
|
|
|
__time_t st_ctime_sec;
|
1997-10-31 22:52:16 +00:00
|
|
|
unsigned int st_blksize;
|
|
|
|
int st_blocks;
|
|
|
|
unsigned int st_flags;
|
|
|
|
unsigned int st_gen;
|
|
|
|
};
|
|
|
|
|
2004-03-11 02:58:44 +00:00
|
|
|
/* Definition of `struct stat' used by glibc 2.1. */
|
|
|
|
struct glibc21_stat
|
|
|
|
{
|
|
|
|
__dev_t st_dev;
|
|
|
|
__ino64_t st_ino;
|
|
|
|
__mode_t st_mode;
|
|
|
|
__nlink_t st_nlink;
|
|
|
|
__uid_t st_uid;
|
|
|
|
__gid_t st_gid;
|
|
|
|
__dev_t st_rdev;
|
|
|
|
__off_t st_size;
|
2020-12-21 12:09:43 +00:00
|
|
|
__time_t st_atime_sec;
|
|
|
|
__time_t st_mtime_sec;
|
|
|
|
__time_t st_ctime_sec;
|
2004-03-11 02:58:44 +00:00
|
|
|
__blkcnt64_t st_blocks;
|
|
|
|
__blksize_t st_blksize;
|
|
|
|
unsigned int st_flags;
|
|
|
|
unsigned int st_gen;
|
|
|
|
int __pad3;
|
2013-11-26 11:29:20 +00:00
|
|
|
long __glibc_reserved[4];
|
2004-03-11 02:58:44 +00:00
|
|
|
};
|
|
|
|
|
2020-07-15 12:42:32 +00:00
|
|
|
#define STAT_IS_KERNEL_STAT 0
|
2020-07-18 02:49:50 +00:00
|
|
|
#define STAT64_IS_KERNEL_STAT64 1
|
1997-10-31 22:52:16 +00:00
|
|
|
#define XSTAT_IS_XSTAT64 1
|
2016-11-22 17:59:12 +00:00
|
|
|
#define STATFS_IS_STATFS64 0
|