Give FileDescription::{read, write}
access to the InterpCx
#3572
Labels
A-files
Area: related to files, paths, sockets, file descriptors, or handles
A-shims
Area: This affects the external function shims
C-enhancement
Category: a PR with an enhancement or an issue tracking an accepted enhancement
E-good-first-issue
A good way to start contributing, mentoring is available
The
read
andwrite
methods ofFileDescriptor
should have access toecx: &mut InterpCx<'mir, 'tcx, MiriMachine<'mir, 'tcx>>
. This will be needed in the future to support blocking on these operations.This is a prerequisite for
To make that work out in terms of borrowing, I think what we will have to do is clone the
Rc
in theread
/write
functions inunix/fd.rs
, so that we have a fully ownedFileDescriptor
next to a uniquely borrowedInterpCx
.Cc @tiif @Luv-Ray
(AFAIK @tiif is still in the design stage so this is not a blocker yet)
The text was updated successfully, but these errors were encountered: