redox/kernel/context/file.rs

16 lines
350 B
Rust
Raw Normal View History

2016-08-15 02:16:56 +02:00
//! File struct
use scheme::SchemeId;
2016-08-15 02:16:56 +02:00
/// A file
//TODO: Close on exec
2016-08-15 02:16:56 +02:00
#[derive(Copy, Clone, Debug)]
pub struct File {
/// The scheme that this file refers to
pub scheme: SchemeId,
2016-08-15 02:16:56 +02:00
/// The number the scheme uses to refer to this file
pub number: usize,
/// If events are on, this is the event ID
pub event: Option<usize>,
2016-08-15 02:16:56 +02:00
}