Files
redox-kernel/src/context/file.rs
Jeremy Soller efd64d55e1 Bug fixes for fcntl and o_cloexec
Add fcntl to schemes
Fix debug: hang
2017-04-19 21:56:09 -06:00

18 lines
415 B
Rust

//! File struct
use scheme::SchemeId;
/// A file
//TODO: Close on exec
#[derive(Clone, Debug)]
pub struct File {
/// The scheme that this file refers to
pub scheme: SchemeId,
/// The number the scheme uses to refer to this file
pub number: usize,
/// The flags passed to open or fcntl(SETFL)
pub flags: usize,
/// If events are on, this is the event ID
pub event: Option<usize>,
}