1 #ifndef _ASM_POWERPC_STAT_H
2 #define _ASM_POWERPC_STAT_H
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
9 #include <linux/types.h>
11 #define STAT_HAVE_NSEC 1
14 struct __old_kernel_stat
{
15 unsigned short st_dev
;
16 unsigned short st_ino
;
17 unsigned short st_mode
;
18 unsigned short st_nlink
;
19 unsigned short st_uid
;
20 unsigned short st_gid
;
21 unsigned short st_rdev
;
22 unsigned long st_size
;
23 unsigned long st_atime
;
24 unsigned long st_mtime
;
25 unsigned long st_ctime
;
27 #endif /* !__powerpc64__ */
41 unsigned long st_rdev
;
43 unsigned long st_blksize
;
44 unsigned long st_blocks
;
45 unsigned long st_atime
;
46 unsigned long st_atime_nsec
;
47 unsigned long st_mtime
;
48 unsigned long st_mtime_nsec
;
49 unsigned long st_ctime
;
50 unsigned long st_ctime_nsec
;
51 unsigned long __unused4
;
52 unsigned long __unused5
;
54 unsigned long __unused6
;
58 /* This matches struct stat64 in glibc2.1. Only used for 32 bit. */
60 unsigned long long st_dev
; /* Device. */
61 unsigned long long st_ino
; /* File serial number. */
62 unsigned int st_mode
; /* File mode. */
63 unsigned int st_nlink
; /* Link count. */
64 unsigned int st_uid
; /* User ID of the file's owner. */
65 unsigned int st_gid
; /* Group ID of the file's group. */
66 unsigned long long st_rdev
; /* Device number, if device. */
67 unsigned short __pad2
;
68 long long st_size
; /* Size of file, in bytes. */
69 int st_blksize
; /* Optimal block size for I/O. */
70 long long st_blocks
; /* Number 512-byte blocks allocated. */
71 int st_atime
; /* Time of last access. */
72 unsigned int st_atime_nsec
;
73 int st_mtime
; /* Time of last modification. */
74 unsigned int st_mtime_nsec
;
75 int st_ctime
; /* Time of last status change. */
76 unsigned int st_ctime_nsec
;
77 unsigned int __unused4
;
78 unsigned int __unused5
;
81 #endif /* _ASM_POWERPC_STAT_H */