blob: a5b4272f2894dde6eaa0bc5f914913611f15b904 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* $Id: stat.h,v 1.12 2000/08/04 05:35:55 davem Exp $ */
2#ifndef _SPARC_STAT_H
3#define _SPARC_STAT_H
4
5#include <linux/types.h>
6
7struct __old_kernel_stat {
8 unsigned short st_dev;
9 unsigned short st_ino;
10 unsigned short st_mode;
11 unsigned short st_nlink;
12 unsigned short st_uid;
13 unsigned short st_gid;
14 unsigned short st_rdev;
15 unsigned long st_size;
16 unsigned long st_atime;
17 unsigned long st_mtime;
18 unsigned long st_ctime;
19};
20
21struct stat {
22 unsigned short st_dev;
23 unsigned long st_ino;
24 unsigned short st_mode;
25 short st_nlink;
26 unsigned short st_uid;
27 unsigned short st_gid;
28 unsigned short st_rdev;
29 long st_size;
30 long st_atime;
31 unsigned long st_atime_nsec;
32 long st_mtime;
33 unsigned long st_mtime_nsec;
34 long st_ctime;
35 unsigned long st_ctime_nsec;
36 long st_blksize;
37 long st_blocks;
38 unsigned long __unused4[2];
39};
40
41#define STAT_HAVE_NSEC 1
42
43struct stat64 {
44 unsigned long long st_dev;
45
46 unsigned long long st_ino;
47
48 unsigned int st_mode;
49 unsigned int st_nlink;
50
51 unsigned int st_uid;
52 unsigned int st_gid;
53
54 unsigned long long st_rdev;
55
56 unsigned char __pad3[8];
57
58 long long st_size;
59 unsigned int st_blksize;
60
61 unsigned char __pad4[8];
62 unsigned int st_blocks;
63
64 unsigned int st_atime;
65 unsigned int st_atime_nsec;
66
67 unsigned int st_mtime;
68 unsigned int st_mtime_nsec;
69
70 unsigned int st_ctime;
71 unsigned int st_ctime_nsec;
72
73 unsigned int __unused4;
74 unsigned int __unused5;
75};
76
77#endif