mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 11:41:07 +00:00
Add pads to show alignment for structs stat and stat64.
Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
This commit is contained in:
parent
cc9ced9792
commit
546afa8c7b
@ -48,12 +48,13 @@ 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.*/
|
||||||
unsigned long int st_rdev; /* Device number, if device. */
|
unsigned long int st_rdev; /* Device number, if device. */
|
||||||
long int st_pad2[2];
|
|
||||||
#ifndef __USE_FILE_OFFSET64
|
#ifndef __USE_FILE_OFFSET64
|
||||||
|
long int st_pad2[2];
|
||||||
__off_t st_size; /* Size of file, in bytes. */
|
__off_t st_size; /* Size of file, in bytes. */
|
||||||
/* SVR4 added this extra long to allow for expansion of off_t. */
|
/* SVR4 added this extra long to allow for expansion of off_t. */
|
||||||
long int st_pad3;
|
long int st_pad3;
|
||||||
#else
|
#else
|
||||||
|
long int st_pad2[3];
|
||||||
__off64_t st_size; /* Size of file, in bytes. */
|
__off64_t st_size; /* Size of file, in bytes. */
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
@ -87,7 +88,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.*/
|
||||||
unsigned long int st_rdev; /* Device number, if device. */
|
unsigned long int st_rdev; /* Device number, if device. */
|
||||||
long int st_pad2[2];
|
long int st_pad2[3];
|
||||||
__off64_t st_size; /* Size of file, in bytes. */
|
__off64_t st_size; /* Size of file, in bytes. */
|
||||||
/*
|
/*
|
||||||
* Actually this should be timestruc_t st_atime, st_mtime and
|
* Actually this should be timestruc_t st_atime, st_mtime and
|
||||||
|
Loading…
Reference in New Issue
Block a user