summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc
diff options
context:
space:
mode:
authorDmitry Chestnykh <dm.chestnykh@gmail.com>2024-02-26 13:21:25 +0300
committerWaldemar Brodkorb <wbx@openadk.org>2024-02-26 11:28:42 +0100
commitfb800e73a9c81a299f55de7a3aba4a0c3ab074e0 (patch)
treeddce3ecfc8ca988ccf6f23fd0c01e79be111e2e8 /libc/sysdeps/linux/powerpc
parentf9df8bfdf6645c2727367da113a7e1937b00eb80 (diff)
Refactor `ts32_struct` and `TO_ITS64_P`.
- Renamed `ts32_struct` to `__ts32_struct` like `__ts64_struct` and moved its definition to the header. - Removed extra space from TO_ITS64_P() macro. Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/powerpc')
-rw-r--r--libc/sysdeps/linux/powerpc/bits/kernel_stat.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/libc/sysdeps/linux/powerpc/bits/kernel_stat.h b/libc/sysdeps/linux/powerpc/bits/kernel_stat.h
index 0e76120ab..c28ef2a9a 100644
--- a/libc/sysdeps/linux/powerpc/bits/kernel_stat.h
+++ b/libc/sysdeps/linux/powerpc/bits/kernel_stat.h
@@ -6,13 +6,7 @@
* 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;
-};
-
+#include "internal/time64_helpers.h"
#endif
#if __WORDSIZE == 64
@@ -30,9 +24,9 @@ struct kernel_stat {
unsigned long st_blksize;
unsigned long st_blocks;
#if defined(__UCLIBC_USE_TIME64__)
- struct ts32_struct __st_atim32;
- struct ts32_struct __st_mtim32;
- struct ts32_struct __st_ctim32;
+ struct __ts32_struct __st_atim32;
+ struct __ts32_struct __st_mtim32;
+ struct __ts32_struct __st_ctim32;
#else
struct timespec st_atim;
struct timespec st_mtim;
@@ -56,9 +50,9 @@ struct kernel_stat64 {
long st_blksize; /* Optimal block size for I/O. */
long long st_blocks; /* Number 512-byte blocks allocated. */
#if defined(__UCLIBC_USE_TIME64__)
- struct ts32_struct __st_atim32;
- struct ts32_struct __st_mtim32;
- struct ts32_struct __st_ctim32;
+ struct __ts32_struct __st_atim32;
+ struct __ts32_struct __st_mtim32;
+ struct __ts32_struct __st_ctim32;
#else
struct timespec st_atim;
struct timespec st_mtim;