[][src]Struct finch::platform::linux::Linux

pub struct Linux { /* fields omitted */ }

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]

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]

pub fn mprotect(
    &mut self,
    memory: &mut Memory,
    address: u64,
    length: u64,
    prot: u64
) -> Result<u64>
[src]

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.