forked from ish-app/ish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stat.h
126 lines (117 loc) · 2.11 KB
/
stat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#ifndef FS_STAT_H
#define FS_STAT_H
#include "misc.h"
struct statbuf {
qword_t dev;
qword_t inode;
dword_t mode;
dword_t nlink;
dword_t uid;
dword_t gid;
qword_t rdev;
qword_t size;
dword_t blksize;
qword_t blocks;
dword_t atime;
dword_t atime_nsec;
dword_t mtime;
dword_t mtime_nsec;
dword_t ctime;
dword_t ctime_nsec;
};
struct oldstat {
word_t dev;
word_t ino;
word_t mode;
word_t nlink;
word_t uid;
word_t gid;
word_t rdev;
uint_t size;
uint_t atime;
uint_t mtime;
uint_t ctime;
};
struct newstat {
dword_t dev;
dword_t ino;
word_t mode;
word_t nlink;
word_t uid;
word_t gid;
dword_t rdev;
dword_t size;
dword_t blksize;
dword_t blocks;
dword_t atime;
dword_t atime_nsec;
dword_t mtime;
dword_t mtime_nsec;
dword_t ctime;
dword_t ctime_nsec;
char pad[8];
};
struct newstat64 {
qword_t dev;
dword_t _pad1;
dword_t fucked_ino;
dword_t mode;
dword_t nlink;
dword_t uid;
dword_t gid;
qword_t rdev;
dword_t _pad2;
qword_t size;
dword_t blksize;
qword_t blocks;
dword_t atime;
dword_t atime_nsec;
dword_t mtime;
dword_t mtime_nsec;
dword_t ctime;
dword_t ctime_nsec;
qword_t ino;
} __attribute__((packed));
struct statfsbuf {
long type;
long bsize;
uint64_t blocks;
uint64_t bfree;
uint64_t bavail;
uint64_t files;
uint64_t ffree;
uint64_t fsid;
long namelen;
long frsize;
long flags;
long spare[4];
};
struct statfs_ {
uint_t type;
uint_t bsize;
uint_t blocks;
uint_t bfree;
uint_t bavail;
uint_t files;
uint_t ffree;
uint64_t fsid;
uint_t namelen;
uint_t frsize;
uint_t flags;
uint_t spare[4];
} __attribute__((packed));
struct statfs64_ {
uint_t type;
uint_t bsize;
uint64_t blocks;
uint64_t bfree;
uint64_t bavail;
uint64_t files;
uint64_t ffree;
uint64_t fsid;
uint_t namelen;
uint_t frsize;
uint_t flags;
uint_t pad[4];
} __attribute__((packed));
#endif