@@ -4,23 +4,10 @@ pub type c_char = u8;
4
4
pub type c_long = i64 ;
5
5
pub type c_ulong = u64 ;
6
6
pub type wchar_t = :: c_int ;
7
- pub type time_t = :: c_long ;
8
7
9
- pub type dev_t = :: c_ulong ;
10
- pub type uid_t = :: c_uint ;
11
- pub type gid_t = :: c_uint ;
12
- pub type ino_t = :: c_ulong ;
13
- pub type ino64_t = :: c_ulong ;
14
- pub type mode_t = :: c_uint ;
15
8
pub type nlink_t = :: c_uint ;
16
- pub type off_t = :: c_long ;
17
- pub type off64_t = :: c_long ;
18
- pub type pid_t = :: c_int ;
19
9
pub type blksize_t = :: c_int ;
20
- pub type blkcnt_t = :: c_long ;
21
- pub type fsblkcnt_t = :: c_ulong ;
22
10
pub type fsblkcnt64_t = :: c_ulong ;
23
- pub type fsfilcnt_t = :: c_ulong ;
24
11
pub type fsfilcnt64_t = :: c_ulong ;
25
12
pub type suseconds_t = i64 ;
26
13
pub type __u64 = :: c_ulonglong ;
31
18
}
32
19
33
20
pub struct timespec {
34
- pub tv_sec: time_t,
21
+ pub tv_sec: :: time_t,
35
22
pub tv_nsec: :: c_long,
36
23
}
37
24
38
25
pub struct stat {
39
- pub st_dev: dev_t,
40
- pub st_ino: ino_t,
41
- pub st_mode: mode_t,
42
- pub st_nlink: nlink_t,
43
- pub st_uid: uid_t,
44
- pub st_gid: gid_t,
45
- pub st_rdev: dev_t,
46
- pub __pad1: dev_t,
47
- pub st_size: off_t,
48
- pub st_blksize: blksize_t,
26
+ pub st_dev: :: dev_t,
27
+ pub st_ino: :: ino_t,
28
+ pub st_mode: :: mode_t,
29
+ pub st_nlink: :: nlink_t,
30
+ pub st_uid: :: uid_t,
31
+ pub st_gid: :: gid_t,
32
+ pub st_rdev: :: dev_t,
33
+ pub __pad1: :: dev_t,
34
+ pub st_size: :: off_t,
35
+ pub st_blksize: :: blksize_t,
49
36
pub __pad2: :: c_int,
50
- pub st_blocks: blkcnt_t,
51
- pub st_atime: time_t,
37
+ pub st_blocks: :: blkcnt_t,
38
+ pub st_atime: :: time_t,
52
39
pub st_atime_nsec: :: c_long,
53
- pub st_mtime: time_t,
40
+ pub st_mtime: :: time_t,
54
41
pub st_mtime_nsec: :: c_long,
55
- pub st_ctime: time_t,
42
+ pub st_ctime: :: time_t,
56
43
pub st_ctime_nsec: :: c_long,
57
44
pub __unused: [ :: c_int; 2usize ] ,
58
45
}
59
46
60
47
pub struct stat64 {
61
- pub st_dev: dev_t,
62
- pub st_ino: ino64_t,
63
- pub st_mode: mode_t,
64
- pub st_nlink: nlink_t,
65
- pub st_uid: uid_t,
66
- pub st_gid: gid_t,
67
- pub st_rdev: dev_t,
68
- pub __pad1: dev_t,
69
- pub st_size: off64_t,
70
- pub st_blksize: blksize_t,
48
+ pub st_dev: :: dev_t,
49
+ pub st_ino: :: ino64_t,
50
+ pub st_mode: :: mode_t,
51
+ pub st_nlink: :: nlink_t,
52
+ pub st_uid: :: uid_t,
53
+ pub st_gid: :: gid_t,
54
+ pub st_rdev: :: dev_t,
55
+ pub __pad1: :: dev_t,
56
+ pub st_size: :: off64_t,
57
+ pub st_blksize: :: blksize_t,
71
58
pub __pad2: :: c_int,
72
- pub st_blocks: blkcnt_t,
73
- pub st_atime: time_t,
59
+ pub st_blocks: :: blkcnt_t,
60
+ pub st_atime: :: time_t,
74
61
pub st_atime_nsec: :: c_long,
75
- pub st_mtime: time_t,
62
+ pub st_mtime: :: time_t,
76
63
pub st_mtime_nsec: :: c_long,
77
- pub st_ctime: time_t,
64
+ pub st_ctime: :: time_t,
78
65
pub st_ctime_nsec: :: c_long,
79
66
pub __unused: [ :: c_int; 2 ] ,
80
67
}
81
68
82
69
pub struct statfs {
83
70
pub f_type: :: c_long,
84
71
pub f_bsize: :: c_long,
85
- pub f_blocks: fsblkcnt_t,
86
- pub f_bfree: fsblkcnt_t,
87
- pub f_bavail: fsblkcnt_t,
88
- pub f_files: fsfilcnt_t,
89
- pub f_ffree: fsfilcnt_t,
72
+ pub f_blocks: :: fsblkcnt_t,
73
+ pub f_bfree: :: fsblkcnt_t,
74
+ pub f_bavail: :: fsblkcnt_t,
75
+ pub f_files: :: fsfilcnt_t,
76
+ pub f_ffree: :: fsfilcnt_t,
90
77
pub f_fsid: :: fsid_t,
91
78
pub f_namelen: :: c_long,
92
79
pub f_frsize: :: c_long,
97
84
pub struct statfs64 {
98
85
pub f_type: :: c_long,
99
86
pub f_bsize: :: c_long,
100
- pub f_blocks: fsblkcnt64_t,
101
- pub f_bfree: fsblkcnt64_t,
102
- pub f_bavail: fsblkcnt64_t,
103
- pub f_files: fsfilcnt64_t,
104
- pub f_ffree: fsfilcnt64_t,
87
+ pub f_blocks: :: fsblkcnt64_t,
88
+ pub f_bfree: :: fsblkcnt64_t,
89
+ pub f_bavail: :: fsblkcnt64_t,
90
+ pub f_files: :: fsfilcnt64_t,
91
+ pub f_ffree: :: fsfilcnt64_t,
105
92
pub f_fsid: :: fsid_t,
106
93
pub f_namelen: :: c_long,
107
94
pub f_frsize: :: c_long,
@@ -112,12 +99,12 @@ s! {
112
99
pub struct statvfs {
113
100
pub f_bsize: :: c_ulong,
114
101
pub f_frsize: :: c_ulong,
115
- pub f_blocks: fsblkcnt_t,
116
- pub f_bfree: fsblkcnt_t,
117
- pub f_bavail: fsblkcnt_t,
118
- pub f_files: fsfilcnt_t,
119
- pub f_ffree: fsfilcnt_t,
120
- pub f_favail: fsfilcnt_t,
102
+ pub f_blocks: :: fsblkcnt_t,
103
+ pub f_bfree: :: fsblkcnt_t,
104
+ pub f_bavail: :: fsblkcnt_t,
105
+ pub f_files: :: fsfilcnt_t,
106
+ pub f_ffree: :: fsfilcnt_t,
107
+ pub f_favail: :: fsfilcnt_t,
121
108
pub f_fsid: :: c_ulong,
122
109
pub f_flag: :: c_ulong,
123
110
pub f_namemax: :: c_ulong,
@@ -127,12 +114,12 @@ s! {
127
114
pub struct statvfs64 {
128
115
pub f_bsize: :: c_ulong,
129
116
pub f_frsize: :: c_ulong,
130
- pub f_blocks: fsblkcnt64_t,
131
- pub f_bfree: fsblkcnt64_t,
132
- pub f_bavail: fsblkcnt64_t,
133
- pub f_files: fsfilcnt64_t,
134
- pub f_ffree: fsfilcnt64_t,
135
- pub f_favail: fsfilcnt64_t,
117
+ pub f_blocks: :: fsblkcnt64_t,
118
+ pub f_bfree: :: fsblkcnt64_t,
119
+ pub f_bavail: :: fsblkcnt64_t,
120
+ pub f_files: :: fsfilcnt64_t,
121
+ pub f_ffree: :: fsfilcnt64_t,
122
+ pub f_favail: :: fsfilcnt64_t,
136
123
pub f_fsid: :: c_ulong,
137
124
pub f_flag: :: c_ulong,
138
125
pub f_namemax: :: c_ulong,
@@ -167,16 +154,12 @@ s! {
167
154
pub sa_restorer: :: Option <unsafe extern "C" fn ( ) >,
168
155
}
169
156
170
- pub struct sigset_t {
171
- pub __val: [ :: c_ulong; 16 ] ,
172
- }
173
-
174
157
pub struct ipc_perm {
175
158
pub __key: :: key_t,
176
- pub uid: uid_t,
177
- pub gid: gid_t,
178
- pub cuid: uid_t,
179
- pub cgid: gid_t,
159
+ pub uid: :: uid_t,
160
+ pub gid: :: gid_t,
161
+ pub cuid: :: uid_t,
162
+ pub cgid: :: gid_t,
180
163
pub mode: :: c_ushort,
181
164
pub __pad1: :: c_ushort,
182
165
pub __seq: :: c_ushort,
@@ -186,13 +169,13 @@ s! {
186
169
}
187
170
188
171
pub struct shmid_ds {
189
- pub shm_perm: ipc_perm,
172
+ pub shm_perm: :: ipc_perm,
190
173
pub shm_segsz: :: size_t,
191
- pub shm_atime: time_t,
192
- pub shm_dtime: time_t,
193
- pub shm_ctime: time_t,
194
- pub shm_cpid: pid_t,
195
- pub shm_lpid: pid_t,
174
+ pub shm_atime: :: time_t,
175
+ pub shm_dtime: :: time_t,
176
+ pub shm_ctime: :: time_t,
177
+ pub shm_cpid: :: pid_t,
178
+ pub shm_lpid: :: pid_t,
196
179
pub shm_nattch: :: shmatt_t,
197
180
pub __unused5: :: c_ulong,
198
181
pub __unused6: :: c_ulong,
@@ -225,6 +208,11 @@ pub const TIOCGSOFTCAR: ::c_ulong = 21529;
225
208
pub const TIOCSSOFTCAR : :: c_ulong = 21530 ;
226
209
pub const TIOCGRS485 : :: c_int = 21550 ;
227
210
pub const TIOCSRS485 : :: c_int = 21551 ;
211
+ pub const RLIMIT_RSS : :: __rlimit_resource_t = 5 ;
212
+ pub const RLIMIT_AS : :: __rlimit_resource_t = 9 ;
213
+ pub const RLIMIT_MEMLOCK : :: __rlimit_resource_t = 8 ;
214
+ pub const RLIMIT_NOFILE : :: __rlimit_resource_t = 7 ;
215
+ pub const RLIMIT_NPROC : :: __rlimit_resource_t = 6 ;
228
216
pub const O_APPEND : :: c_int = 1024 ;
229
217
pub const O_CREAT : :: c_int = 64 ;
230
218
pub const O_EXCL : :: c_int = 128 ;
0 commit comments