1 #ifndef _BITS_STAT_STRUCT_H
2 #define _BITS_STAT_STRUCT_H
4 /* This file provides whatever this particular arch's kernel thinks
5 * struct kernel_stat should look like... It turns out each arch has a
6 * different opinion on the subject... */
8 #if defined(__UCLIBC_USE_TIME64__)
9 #include <bits/types.h>
19 #define kernel_stat kernel_stat64
22 __kernel_dev_t st_dev
;
23 __kernel_ino_t st_ino
;
24 __kernel_mode_t st_mode
;
25 __kernel_nlink_t st_nlink
;
26 __kernel_uid_t st_uid
;
27 __kernel_gid_t st_gid
;
28 __kernel_dev_t st_rdev
;
29 __kernel_off_t st_size
;
30 unsigned long st_blksize
;
31 unsigned long st_blocks
;
32 #if defined(__UCLIBC_USE_TIME64__)
33 struct ts32_struct __st_atim32
;
34 struct ts32_struct __st_mtim32
;
35 struct ts32_struct __st_ctim32
;
37 struct timespec st_atim
;
38 struct timespec st_mtim
;
39 struct timespec st_ctim
;
41 unsigned long __unused4
;
42 unsigned long __unused5
;
46 struct kernel_stat64
{
47 unsigned long long st_dev
; /* Device. */
48 unsigned long long st_ino
; /* File serial number. */
49 unsigned int st_mode
; /* File mode. */
50 unsigned int st_nlink
; /* Link count. */
51 unsigned int st_uid
; /* User ID of the file's owner. */
52 unsigned int st_gid
; /* Group ID of the file's group. */
53 unsigned long long st_rdev
; /* Device number, if device. */
54 unsigned short int __pad2
;
55 long long st_size
; /* Size of file, in bytes. */
56 long st_blksize
; /* Optimal block size for I/O. */
57 long long st_blocks
; /* Number 512-byte blocks allocated. */
58 #if defined(__UCLIBC_USE_TIME64__)
59 struct ts32_struct __st_atim32
;
60 struct ts32_struct __st_mtim32
;
61 struct ts32_struct __st_ctim32
;
63 struct timespec st_atim
;
64 struct timespec st_mtim
;
65 struct timespec st_ctim
;
67 unsigned long int __uclibc_unused4
;
68 unsigned long int __uclibc_unused5
;
71 #endif /* _BITS_STAT_STRUCT_H */