Split io module
This commit is contained in:
parent
e42bbe6f3e
commit
7c965cc9ff
22
src/io.rs
Normal file
22
src/io.rs
Normal file
@ -0,0 +1,22 @@
|
||||
#![allow(missing_docs)]
|
||||
|
||||
pub mod device {
|
||||
pub use abi::io::{DeviceRequest, MountOptions, UnmountOptions};
|
||||
}
|
||||
|
||||
pub mod terminal {
|
||||
pub use abi::io::{
|
||||
TerminalInputOptions, TerminalLineOptions, TerminalOptions, TerminalOutputOptions,
|
||||
TerminalSize,
|
||||
};
|
||||
}
|
||||
|
||||
pub mod message_channel {
|
||||
pub use abi::io::{MessageDestination, ReceivedMessageMetadata, SentMessage};
|
||||
}
|
||||
|
||||
pub mod poll {
|
||||
pub use abi::io::PollControl;
|
||||
}
|
||||
|
||||
pub use abi::io::{DirectoryEntry, FileAttr, FileMode, FileType, OpenOptions, RawFd, SeekFrom};
|
12
src/lib.rs
12
src/lib.rs
@ -13,22 +13,12 @@ extern crate yggdrasil_abi as abi;
|
||||
pub use abi::error::Error;
|
||||
pub use abi::path;
|
||||
pub mod debug;
|
||||
pub mod io;
|
||||
pub mod netc;
|
||||
pub mod process;
|
||||
pub mod sys;
|
||||
pub mod time;
|
||||
|
||||
pub mod io {
|
||||
//! I/O data structures
|
||||
|
||||
pub use abi::io::{
|
||||
DeviceRequest, DirectoryEntry, FileAttr, FileMode, FileType, MessageDestination,
|
||||
MountOptions, OpenOptions, PollControl, RawFd, ReceivedMessageMetadata, SeekFrom,
|
||||
SentMessage, TerminalInputOptions, TerminalLineOptions, TerminalOptions,
|
||||
TerminalOutputOptions, TerminalSize, UnmountOptions,
|
||||
};
|
||||
}
|
||||
|
||||
pub mod mem {
|
||||
//! Memory-related data structures
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user