1#ifndef _ASM_POWERPC_STAT_H
2#define _ASM_POWERPC_STAT_H
3
4
5
6
7
8
9#include <linux/types.h>
10
11#define STAT_HAVE_NSEC 1
12
13#ifndef __powerpc64__
14struct __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;
26};
27#endif
28
29struct stat {
30 unsigned long st_dev;
31 ino_t st_ino;
32#ifdef __powerpc64__
33 unsigned long st_nlink;
34 mode_t st_mode;
35#else
36 mode_t st_mode;
37 unsigned short st_nlink;
38#endif
39 uid_t st_uid;
40 gid_t st_gid;
41 unsigned long st_rdev;
42 off_t st_size;
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;
53#ifdef __powerpc64__
54 unsigned long __unused6;
55#endif
56};
57
58
59struct stat64 {
60 unsigned long long st_dev;
61 unsigned long long st_ino;
62 unsigned int st_mode;
63 unsigned int st_nlink;
64 unsigned int st_uid;
65 unsigned int st_gid;
66 unsigned long long st_rdev;
67 unsigned short __pad2;
68 long long st_size;
69 int st_blksize;
70 long long st_blocks;
71 int st_atime;
72 unsigned int st_atime_nsec;
73 int st_mtime;
74 unsigned int st_mtime_nsec;
75 int st_ctime;
76 unsigned int st_ctime_nsec;
77 unsigned int __unused4;
78 unsigned int __unused5;
79};
80
81#endif
82