• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2004-2006 Analog Devices Inc.
3  *
4  * Licensed under the GPL-2.
5  */
6 
7 #ifndef _UAPI_BFIN_STAT_H
8 #define _UAPI_BFIN_STAT_H
9 
10 struct stat {
11 	unsigned short st_dev;
12 	unsigned short __pad1;
13 	unsigned long st_ino;
14 	unsigned short st_mode;
15 	unsigned short st_nlink;
16 	unsigned short st_uid;
17 	unsigned short st_gid;
18 	unsigned short st_rdev;
19 	unsigned short __pad2;
20 	unsigned long st_size;
21 	unsigned long st_blksize;
22 	unsigned long st_blocks;
23 	unsigned long st_atime;
24 	unsigned long __unused1;
25 	unsigned long st_mtime;
26 	unsigned long __unused2;
27 	unsigned long st_ctime;
28 	unsigned long __unused3;
29 	unsigned long __unused4;
30 	unsigned long __unused5;
31 };
32 
33 /* This matches struct stat64 in glibc2.1, hence the absolutely
34  * insane amounts of padding around dev_t's.
35  */
36 struct stat64 {
37 	unsigned long long st_dev;
38 	unsigned char __pad1[4];
39 
40 #define STAT64_HAS_BROKEN_ST_INO	1
41 	unsigned long __st_ino;
42 
43 	unsigned int st_mode;
44 	unsigned int st_nlink;
45 
46 	unsigned long st_uid;
47 	unsigned long st_gid;
48 
49 	unsigned long long st_rdev;
50 	unsigned char __pad2[4];
51 
52 	long long st_size;
53 	unsigned long st_blksize;
54 
55 	long long st_blocks;	/* Number 512-byte blocks allocated. */
56 
57 	unsigned long st_atime;
58 	unsigned long st_atime_nsec;
59 
60 	unsigned long st_mtime;
61 	unsigned long st_mtime_nsec;
62 
63 	unsigned long st_ctime;
64 	unsigned long st_ctime_nsec;
65 
66 	unsigned long long st_ino;
67 };
68 
69 #endif /* _UAPI_BFIN_STAT_H */
70