mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
y2038: Use a common definition for stat for sparc32
The sparc32 misses support for support done by 4e8521333b
.
Checked on sparcv9-linux-gnu.
This commit is contained in:
@ -28,6 +28,9 @@
|
|||||||
|
|
||||||
struct stat
|
struct stat
|
||||||
{
|
{
|
||||||
|
#ifdef __USE_TIME_BITS64
|
||||||
|
# include <bits/struct_stat_time64_helper.h>
|
||||||
|
#else
|
||||||
__dev_t st_dev; /* Device. */
|
__dev_t st_dev; /* Device. */
|
||||||
# if __WORDSIZE == 64 || !defined __USE_FILE_OFFSET64
|
# if __WORDSIZE == 64 || !defined __USE_FILE_OFFSET64
|
||||||
unsigned short int __pad1;
|
unsigned short int __pad1;
|
||||||
@ -76,11 +79,15 @@ struct stat
|
|||||||
# endif
|
# endif
|
||||||
unsigned long int __glibc_reserved4;
|
unsigned long int __glibc_reserved4;
|
||||||
unsigned long int __glibc_reserved5;
|
unsigned long int __glibc_reserved5;
|
||||||
|
#endif /* __USE_TIME_BITS64 */
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __USE_LARGEFILE64
|
#ifdef __USE_LARGEFILE64
|
||||||
struct stat64
|
struct stat64
|
||||||
{
|
{
|
||||||
|
# ifdef __USE_TIME_BITS64
|
||||||
|
# include <bits/struct_stat_time64_helper.h>
|
||||||
|
# else
|
||||||
__dev_t st_dev; /* Device. */
|
__dev_t st_dev; /* Device. */
|
||||||
# if __WORDSIZE == 64
|
# if __WORDSIZE == 64
|
||||||
unsigned short int __pad1;
|
unsigned short int __pad1;
|
||||||
@ -119,6 +126,7 @@ struct stat64
|
|||||||
# endif
|
# endif
|
||||||
unsigned long int __glibc_reserved4;
|
unsigned long int __glibc_reserved4;
|
||||||
unsigned long int __glibc_reserved5;
|
unsigned long int __glibc_reserved5;
|
||||||
|
# endif /* __USE_TIME_BITS64 */
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user