Trait miri::shims::unix::env::EvalContextExt

source ·
pub trait EvalContextExt<'tcx>: MiriInterpCxExt<'tcx> {
    // Provided methods
    fn getenv(&mut self, name_op: &OpTy<'tcx>) -> InterpResult<'tcx, Pointer> { ... }
    fn setenv(
        &mut self,
        name_op: &OpTy<'tcx>,
        value_op: &OpTy<'tcx>,
    ) -> InterpResult<'tcx, i32> { ... }
    fn unsetenv(&mut self, name_op: &OpTy<'tcx>) -> InterpResult<'tcx, i32> { ... }
    fn getcwd(
        &mut self,
        buf_op: &OpTy<'tcx>,
        size_op: &OpTy<'tcx>,
    ) -> InterpResult<'tcx, Pointer> { ... }
    fn chdir(&mut self, path_op: &OpTy<'tcx>) -> InterpResult<'tcx, i32> { ... }
    fn update_environ(&mut self) -> InterpResult<'tcx> { ... }
    fn getpid(&mut self) -> InterpResult<'tcx, i32> { ... }
}

Provided Methods§

source

fn getenv(&mut self, name_op: &OpTy<'tcx>) -> InterpResult<'tcx, Pointer>

source

fn setenv( &mut self, name_op: &OpTy<'tcx>, value_op: &OpTy<'tcx>, ) -> InterpResult<'tcx, i32>

source

fn unsetenv(&mut self, name_op: &OpTy<'tcx>) -> InterpResult<'tcx, i32>

source

fn getcwd( &mut self, buf_op: &OpTy<'tcx>, size_op: &OpTy<'tcx>, ) -> InterpResult<'tcx, Pointer>

source

fn chdir(&mut self, path_op: &OpTy<'tcx>) -> InterpResult<'tcx, i32>

source

fn update_environ(&mut self) -> InterpResult<'tcx>

Updates the environ static.

source

fn getpid(&mut self) -> InterpResult<'tcx, i32>

Implementors§

source§

impl<'tcx> EvalContextExt<'tcx> for MiriInterpCx<'tcx>