|
@@ -5,6 +5,16 @@
|
|
* struct kernel_stat should look like... It turns out each arch has a
|
|
* struct kernel_stat should look like... It turns out each arch has a
|
|
* different opinion on the subject... */
|
|
* different opinion on the subject... */
|
|
|
|
|
|
|
|
+#if defined(__UCLIBC_USE_TIME64__)
|
|
|
|
+#include <bits/types.h>
|
|
|
|
+
|
|
|
|
+struct ts32_struct {
|
|
|
|
+ __S32_TYPE tv_sec;
|
|
|
|
+ __S32_TYPE tv_nsec;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+#endif
|
|
|
|
+
|
|
#if __WORDSIZE == 64
|
|
#if __WORDSIZE == 64
|
|
#define kernel_stat kernel_stat64
|
|
#define kernel_stat kernel_stat64
|
|
#else
|
|
#else
|
|
@@ -19,9 +29,15 @@ struct kernel_stat {
|
|
__kernel_off_t st_size;
|
|
__kernel_off_t st_size;
|
|
unsigned long st_blksize;
|
|
unsigned long st_blksize;
|
|
unsigned long st_blocks;
|
|
unsigned long st_blocks;
|
|
|
|
+#if defined(__UCLIBC_USE_TIME64__)
|
|
|
|
+ struct ts32_struct __st_atim32;
|
|
|
|
+ struct ts32_struct __st_mtim32;
|
|
|
|
+ struct ts32_struct __st_ctim32;
|
|
|
|
+#else
|
|
struct timespec st_atim;
|
|
struct timespec st_atim;
|
|
struct timespec st_mtim;
|
|
struct timespec st_mtim;
|
|
struct timespec st_ctim;
|
|
struct timespec st_ctim;
|
|
|
|
+#endif
|
|
unsigned long __unused4;
|
|
unsigned long __unused4;
|
|
unsigned long __unused5;
|
|
unsigned long __unused5;
|
|
};
|
|
};
|
|
@@ -39,9 +55,15 @@ struct kernel_stat64 {
|
|
long long st_size; /* Size of file, in bytes. */
|
|
long long st_size; /* Size of file, in bytes. */
|
|
long st_blksize; /* Optimal block size for I/O. */
|
|
long st_blksize; /* Optimal block size for I/O. */
|
|
long long st_blocks; /* Number 512-byte blocks allocated. */
|
|
long long st_blocks; /* Number 512-byte blocks allocated. */
|
|
- struct timespec st_atim; /* Time of last access. */
|
|
+#if defined(__UCLIBC_USE_TIME64__)
|
|
- struct timespec st_mtim; /* Time of last modification. */
|
|
+ struct ts32_struct __st_atim32;
|
|
- struct timespec st_ctim; /* Time of last status change. */
|
|
+ struct ts32_struct __st_mtim32;
|
|
|
|
+ struct ts32_struct __st_ctim32;
|
|
|
|
+#else
|
|
|
|
+ struct timespec st_atim;
|
|
|
|
+ struct timespec st_mtim;
|
|
|
|
+ struct timespec st_ctim;
|
|
|
|
+#endif
|
|
unsigned long int __uclibc_unused4;
|
|
unsigned long int __uclibc_unused4;
|
|
unsigned long int __uclibc_unused5;
|
|
unsigned long int __uclibc_unused5;
|
|
};
|
|
};
|