@@ -91,23 +91,6 @@ s_no_extra_traits! {
9191 pub a_type: :: c_long,
9292 pub a_un: __c_anonymous_elf64_auxv_union,
9393 }
94-
95- pub struct kinfo_file {
96- pub kf_structsize: :: c_int,
97- pub kf_type: :: c_int,
98- pub kf_fd: :: c_int,
99- pub kf_ref_count: :: c_int,
100- pub kf_flags: :: c_int,
101- _kf_pad0: :: c_int,
102- pub kf_offset: i64 ,
103- _priv: [ :: uintptr_t; 38 ] , // FIXME if needed
104- pub kf_status: u16 ,
105- _kf_pad1: u16 ,
106- _kf_ispare0: :: c_int,
107- pub kf_cap_rights: :: cap_rights_t,
108- _kf_cap_spare: u64 ,
109- pub kf_path: [ :: c_char; :: PATH_MAX as usize ] ,
110- }
11194}
11295
11396cfg_if ! {
@@ -232,52 +215,6 @@ cfg_if! {
232215 . finish( )
233216 }
234217 }
235-
236- impl PartialEq for kinfo_file {
237- fn eq( & self , other: & kinfo_file) -> bool {
238- self . kf_structsize == other. kf_structsize &&
239- self . kf_type == other. kf_type &&
240- self . kf_fd == other. kf_fd &&
241- self . kf_ref_count == other. kf_ref_count &&
242- self . kf_flags == other. kf_flags &&
243- self . kf_offset == other. kf_offset &&
244- self . kf_status == other. kf_status &&
245- self . kf_cap_rights == other. kf_cap_rights &&
246- self . kf_path
247- . iter( )
248- . zip( other. kf_path. iter( ) )
249- . all( |( a, b) | a == b)
250- }
251- }
252- impl Eq for kinfo_file { }
253- impl :: fmt:: Debug for kinfo_file {
254- fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
255- f. debug_struct( "kinfo_file" )
256- . field( "kf_structsize" , & self . kf_structsize)
257- . field( "kf_type" , & self . kf_type)
258- . field( "kf_fd" , & self . kf_fd)
259- . field( "kf_ref_count" , & self . kf_ref_count)
260- . field( "kf_flags" , & self . kf_flags)
261- . field( "kf_offset" , & self . kf_offset)
262- . field( "kf_status" , & self . kf_status)
263- . field( "kf_cap_rights" , & self . kf_cap_rights)
264- . field( "kf_path" , &&self . kf_path[ ..] )
265- . finish( )
266- }
267- }
268- impl :: hash:: Hash for kinfo_file {
269- fn hash<H : :: hash:: Hasher >( & self , state: & mut H ) {
270- self . kf_structsize. hash( state) ;
271- self . kf_type. hash( state) ;
272- self . kf_fd. hash( state) ;
273- self . kf_ref_count. hash( state) ;
274- self . kf_flags. hash( state) ;
275- self . kf_offset. hash( state) ;
276- self . kf_status. hash( state) ;
277- self . kf_cap_rights. hash( state) ;
278- self . kf_path. hash( state) ;
279- }
280- }
281218 }
282219}
283220
@@ -297,5 +234,7 @@ pub const _MC_FPOWNED_NONE: c_long = 0x20000;
297234pub const _MC_FPOWNED_FPU: c_long = 0x20001 ;
298235pub const _MC_FPOWNED_PCB: c_long = 0x20002 ;
299236
237+ pub const KINFO_FILE_SIZE : :: c_int = 1392 ;
238+
300239mod align;
301240pub use self :: align:: * ;
0 commit comments