File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed
src/unix/bsd/freebsdlike/dragonfly Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -1215,6 +1215,7 @@ fn test_dragonflybsd(target: &str) {
1215
1215
"sys/file.h" ,
1216
1216
"sys/ioctl.h" ,
1217
1217
"sys/ipc.h" ,
1218
+ "sys/kinfo.h" ,
1218
1219
"sys/ktrace.h" ,
1219
1220
"sys/malloc.h" ,
1220
1221
"sys/mman.h" ,
Original file line number Diff line number Diff line change @@ -1292,6 +1292,8 @@ in6_pktinfo
1292
1292
initgroups
1293
1293
kevent
1294
1294
killpg
1295
+ kinfo_cputime
1296
+ kinfo_file
1295
1297
kqueue
1296
1298
labs
1297
1299
lastlog
Original file line number Diff line number Diff line change @@ -215,6 +215,33 @@ s! {
215
215
pub shm_ctime: :: time_t,
216
216
shm_internal: * mut :: c_void,
217
217
}
218
+
219
+ pub struct kinfo_file {
220
+ pub f_size: :: size_t,
221
+ pub f_pid: :: pid_t,
222
+ pub f_uid: :: uid_t,
223
+ pub f_fd: :: c_int,
224
+ pub f_file: * mut :: c_void,
225
+ pub f_type: :: c_short,
226
+ pub f_count: :: c_int,
227
+ pub f_msgcount: :: c_int,
228
+ pub f_offset: :: off_t,
229
+ pub f_data: * mut :: c_void,
230
+ pub f_flag: :: c_uint,
231
+ }
232
+
233
+ pub struct kinfo_cputime {
234
+ pub cp_user: u64 ,
235
+ pub cp_nice: u64 ,
236
+ pub cp_sys: u64 ,
237
+ pub cp_intr: u64 ,
238
+ pub cp_idel: u64 ,
239
+ cp_unused01: u64 ,
240
+ cp_unused02: u64 ,
241
+ pub cp_sample_pc: u64 ,
242
+ pub cp_sample_sp: u64 ,
243
+ pub cp_msg: [ :: c_char; 32 ] ,
244
+ }
218
245
}
219
246
220
247
s_no_extra_traits ! {
You can’t perform that action at this time.
0 commit comments