Type Alias simics_api_sys::bindings::FILE
source · pub type FILE = _IO_FILE;
Expand description
The opaque type of streams. This is the definition used elsewhere.
Aliased Type§
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 _codecvt: *mut _IO_codecvt,
pub _wide_data: *mut _IO_wide_data,
pub _freeres_list: *mut _IO_FILE,
pub _freeres_buf: *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
§_offset: i64
§_codecvt: *mut _IO_codecvt
Wide character stream stuff.
_wide_data: *mut _IO_wide_data
§_freeres_list: *mut _IO_FILE
§_freeres_buf: *mut c_void
§__pad5: usize
§_mode: i32
§_unused2: [i8; 20]
Make sure we don’t get into trouble again.