mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-06 12:00:24 +08:00
Make struct stat64 backward compatible.
This commit is contained in:
parent
e2d6906870
commit
79e6a4e059
@ -36,11 +36,10 @@
|
|||||||
struct stat
|
struct stat
|
||||||
{
|
{
|
||||||
__dev_t st_dev; /* Device. */
|
__dev_t st_dev; /* Device. */
|
||||||
#ifndef __USE_FILE_OFFSET64
|
|
||||||
unsigned short int __pad1;
|
unsigned short int __pad1;
|
||||||
|
#ifndef __USE_FILE_OFFSET64
|
||||||
__ino_t st_ino; /* File serial number. */
|
__ino_t st_ino; /* File serial number. */
|
||||||
#else
|
#else
|
||||||
unsigned int __pad1;
|
|
||||||
__ino_t __st_ino; /* 32bit file serial number. */
|
__ino_t __st_ino; /* 32bit file serial number. */
|
||||||
#endif
|
#endif
|
||||||
__mode_t st_mode; /* File mode. */
|
__mode_t st_mode; /* File mode. */
|
||||||
@ -48,11 +47,10 @@ struct stat
|
|||||||
__uid_t st_uid; /* User ID of the file's owner. */
|
__uid_t st_uid; /* User ID of the file's owner. */
|
||||||
__gid_t st_gid; /* Group ID of the file's group.*/
|
__gid_t st_gid; /* Group ID of the file's group.*/
|
||||||
__dev_t st_rdev; /* Device number, if device. */
|
__dev_t st_rdev; /* Device number, if device. */
|
||||||
#ifndef __USE_FILE_OFFSET64
|
|
||||||
unsigned short int __pad2;
|
unsigned short int __pad2;
|
||||||
|
#ifndef __USE_FILE_OFFSET64
|
||||||
__off_t st_size; /* Size of file, in bytes. */
|
__off_t st_size; /* Size of file, in bytes. */
|
||||||
#else
|
#else
|
||||||
unsigned int __pad2;
|
|
||||||
__off64_t st_size; /* Size of file, in bytes. */
|
__off64_t st_size; /* Size of file, in bytes. */
|
||||||
#endif
|
#endif
|
||||||
__blksize_t st_blksize; /* Optimal block size for I/O. */
|
__blksize_t st_blksize; /* Optimal block size for I/O. */
|
||||||
@ -80,7 +78,7 @@ struct stat
|
|||||||
struct stat64
|
struct stat64
|
||||||
{
|
{
|
||||||
__dev_t st_dev; /* Device. */
|
__dev_t st_dev; /* Device. */
|
||||||
unsigned int __pad1;
|
unsigned short int __pad1;
|
||||||
|
|
||||||
__ino_t __st_ino; /* 32bit file serial number. */
|
__ino_t __st_ino; /* 32bit file serial number. */
|
||||||
__mode_t st_mode; /* File mode. */
|
__mode_t st_mode; /* File mode. */
|
||||||
@ -88,7 +86,7 @@ struct stat64
|
|||||||
__uid_t st_uid; /* User ID of the file's owner. */
|
__uid_t st_uid; /* User ID of the file's owner. */
|
||||||
__gid_t st_gid; /* Group ID of the file's group.*/
|
__gid_t st_gid; /* Group ID of the file's group.*/
|
||||||
__dev_t st_rdev; /* Device number, if device. */
|
__dev_t st_rdev; /* Device number, if device. */
|
||||||
unsigned int __pad2;
|
unsigned short int __pad2;
|
||||||
__off64_t st_size; /* Size of file, in bytes. */
|
__off64_t st_size; /* Size of file, in bytes. */
|
||||||
__blksize_t st_blksize; /* Optimal block size for I/O. */
|
__blksize_t st_blksize; /* Optimal block size for I/O. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user