__FILE

Type Alias __FILE 

Source
pub type __FILE = _IO_FILE;
Expand description

Define outside of namespace so the C++ is happy.

Aliased Type§

#[repr(C)]
pub struct __FILE {
Show 29 fields pub _flags: i32, pub _IO_read_ptr: *mut i8, pub _IO_read_end: *mut i8, pub _IO_read_base: *mut i8, pub _IO_write_base: *mut i8, pub _IO_write_ptr: *mut i8, pub _IO_write_end: *mut i8, pub _IO_buf_base: *mut i8, pub _IO_buf_end: *mut i8, pub _IO_save_base: *mut i8, pub _IO_backup_base: *mut i8, pub _IO_save_end: *mut i8, pub _markers: *mut _IO_marker, pub _chain: *mut _IO_FILE, pub _fileno: i32, pub _flags2: i32, pub _old_offset: i64, pub _cur_column: u16, pub _vtable_offset: i8, pub _shortbuf: [i8; 1], pub _lock: *mut c_void, pub _offset: i64, pub __pad1: *mut c_void, pub __pad2: *mut c_void, pub __pad3: *mut c_void, pub __pad4: *mut c_void, pub __pad5: usize, pub _mode: i32, pub _unused2: [i8; 20],
}

Fields§

§_flags: i32

High-order word is _IO_MAGIC; rest is flags.

§_IO_read_ptr: *mut i8

Current read pointer

§_IO_read_end: *mut i8

End of get area.

§_IO_read_base: *mut i8

Start of putback+get area.

§_IO_write_base: *mut i8

Start of put area.

§_IO_write_ptr: *mut i8

Current put pointer.

§_IO_write_end: *mut i8

End of put area.

§_IO_buf_base: *mut i8

Start of reserve area.

§_IO_buf_end: *mut i8

End of reserve area.

§_IO_save_base: *mut i8

Pointer to start of non-current get area.

§_IO_backup_base: *mut i8

Pointer to first valid character of backup area

§_IO_save_end: *mut i8

Pointer to end of non-current get area.

§_markers: *mut _IO_marker§_chain: *mut _IO_FILE§_fileno: i32§_flags2: i32§_old_offset: i64

This used to be _offset but it’s too small.

§_cur_column: u16

1+column number of pbase(); 0 is unknown.

§_vtable_offset: i8§_shortbuf: [i8; 1]§_lock: *mut c_void

char* _save_gptr; char* _save_egptr;

§_offset: i64§__pad1: *mut c_void§__pad2: *mut c_void§__pad3: *mut c_void§__pad4: *mut c_void§__pad5: usize§_mode: i32§_unused2: [i8; 20]

Make sure we don’t get into trouble again.