@@ -260,7 +260,9 @@ pub struct _IO_FILE {
260260 pub _markers : * mut _IO_marker ,
261261 pub _chain : * mut _IO_FILE ,
262262 pub _fileno : :: std:: os:: raw:: c_int ,
263- pub _flags2 : :: std:: os:: raw:: c_int ,
263+ pub _bitfield_align_1 : [ u32 ; 0 ] ,
264+ pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 3usize ] > ,
265+ pub _short_backupbuf : [ :: std:: os:: raw:: c_char ; 1usize ] ,
264266 pub _old_offset : __off_t ,
265267 pub _cur_column : :: std:: os:: raw:: c_ushort ,
266268 pub _vtable_offset : :: std:: os:: raw:: c_schar ,
@@ -271,10 +273,32 @@ pub struct _IO_FILE {
271273 pub _wide_data : * mut _IO_wide_data ,
272274 pub _freeres_list : * mut _IO_FILE ,
273275 pub _freeres_buf : * mut :: std:: os:: raw:: c_void ,
274- pub __pad5 : usize ,
276+ pub _prevchain : * mut * mut _IO_FILE ,
275277 pub _mode : :: std:: os:: raw:: c_int ,
276278 pub _unused2 : [ :: std:: os:: raw:: c_char ; 20usize ] ,
277279}
280+ impl _IO_FILE {
281+ #[ inline]
282+ pub fn _flags2 ( & self ) -> :: std:: os:: raw:: c_int {
283+ unsafe { :: std:: mem:: transmute ( self . _bitfield_1 . get ( 0usize , 24u8 ) as u32 ) }
284+ }
285+ #[ inline]
286+ pub fn set__flags2 ( & mut self , val : :: std:: os:: raw:: c_int ) {
287+ unsafe {
288+ let val: u32 = :: std:: mem:: transmute ( val) ;
289+ self . _bitfield_1 . set ( 0usize , 24u8 , val as u64 )
290+ }
291+ }
292+ #[ inline]
293+ pub fn new_bitfield_1 ( _flags2 : :: std:: os:: raw:: c_int ) -> __BindgenBitfieldUnit < [ u8 ; 3usize ] > {
294+ let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit < [ u8 ; 3usize ] > = Default :: default ( ) ;
295+ __bindgen_bitfield_unit. set ( 0usize , 24u8 , {
296+ let _flags2: u32 = unsafe { :: std:: mem:: transmute ( _flags2) } ;
297+ _flags2 as u64
298+ } ) ;
299+ __bindgen_bitfield_unit
300+ }
301+ }
278302pub type zend_long = i64 ;
279303pub type zend_ulong = u64 ;
280304pub type zend_off_t = i64 ;
0 commit comments