[−][src]Struct finch::platform::linux::Linux
A basic model of the Linux Operating System.
Methods
impl Linux
[src]
pub fn new(
elf_linker: &ElfLinker,
base_path: Option<PathBuf>,
constants: &'static Constants
) -> Result<Linux>
[src]
elf_linker: &ElfLinker,
base_path: Option<PathBuf>,
constants: &'static Constants
) -> Result<Linux>
Create a new basic model of the Linux Operating System.
pub fn file_system(&self) -> &FileSystem
[src]
pub fn file_system_mut(&mut self) -> &mut FileSystem
[src]
pub fn access(&self, path: &str, _mode: u64) -> u64
[src]
pub fn brk(&mut self, address: u64, memory: &mut Memory) -> Result<u64>
[src]
pub fn lseek(&mut self, fd: u64, offset: isize, whence: u64) -> Result<u64>
[src]
pub fn mmap(
&mut self,
memory: &mut Memory,
address: u64,
length: u64,
prot: u64,
flags: u64,
fd: u64,
offset: u64
) -> Result<u64>
[src]
&mut self,
memory: &mut Memory,
address: u64,
length: u64,
prot: u64,
flags: u64,
fd: u64,
offset: u64
) -> Result<u64>
pub fn mprotect(
&mut self,
memory: &mut Memory,
address: u64,
length: u64,
prot: u64
) -> Result<u64>
[src]
&mut self,
memory: &mut Memory,
address: u64,
length: u64,
prot: u64
) -> Result<u64>
pub fn open(&mut self, path: &str, flags: u64, _mode: u64) -> Result<u64>
[src]
pub fn openat(
&mut self,
dirfd: u64,
path: &str,
flags: u64,
mode: u64
) -> Result<u64>
[src]
&mut self,
dirfd: u64,
path: &str,
flags: u64,
mode: u64
) -> Result<u64>
pub fn read(&mut self, fd: u64, length: u64) -> Result<Option<Vec<Expression>>>
[src]
pub fn write(&mut self, fd: u64, data: Vec<Expression>) -> Result<u64>
[src]
Trait Implementations
impl Clone for Linux
[src]
impl Debug for Linux
[src]
impl Eq for Linux
[src]
impl PartialEq<Linux> for Linux
[src]
impl Serialize for Linux
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Linux
[src]
impl StructuralPartialEq for Linux
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Linux
impl !Send for Linux
impl !Sync for Linux
impl Unpin for Linux
impl UnwindSafe for Linux
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,