File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -641,8 +641,11 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
641
641
Ok ( ( ) )
642
642
}
643
643
644
- /// This function either writes to the user supplied buffer and to dest place, or sets the
645
- /// last libc error and writes -1 to dest.
644
+ /// Helper to implement `FileDescription::read`:
645
+ /// `result` should be the return value of some underlying `read` call that used `bytes` as its output buffer.
646
+ /// The length of `bytes` must not exceed either the host's or the target's `isize`.
647
+ /// If `Result` indicates success, `bytes` is written to `buf` and the size is written to `dest`.
648
+ /// Otherwise, `-1` is written to `dest` and the last libc error is set appropriately.
646
649
fn return_read_bytes_and_count (
647
650
& mut self ,
648
651
buf : Pointer ,
You can’t perform that action at this time.
0 commit comments