@@ -92,7 +92,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
92
92
let this = self . eval_context_mut ( ) ;
93
93
94
94
if !this. machine . communicate {
95
- throw_unsup_format ! ( "`open ` not available when isolation is enabled" )
95
+ throw_unsup_format ! ( "`fcntl ` not available when isolation is enabled" )
96
96
}
97
97
98
98
let fd = this. read_scalar ( fd_op) ?. to_i32 ( ) ?;
@@ -125,7 +125,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
125
125
let this = self . eval_context_mut ( ) ;
126
126
127
127
if !this. machine . communicate {
128
- throw_unsup_format ! ( "`open ` not available when isolation is enabled" )
128
+ throw_unsup_format ! ( "`close ` not available when isolation is enabled" )
129
129
}
130
130
131
131
let fd = this. read_scalar ( fd_op) ?. to_i32 ( ) ?;
@@ -145,7 +145,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
145
145
let this = self . eval_context_mut ( ) ;
146
146
147
147
if !this. machine . communicate {
148
- throw_unsup_format ! ( "`open ` not available when isolation is enabled" )
148
+ throw_unsup_format ! ( "`read ` not available when isolation is enabled" )
149
149
}
150
150
151
151
let tcx = & { this. tcx . tcx } ;
@@ -204,7 +204,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
204
204
/// Helper function that gets a `FileHandle` immutable reference and allows to manipulate it
205
205
/// using the `f` closure.
206
206
///
207
- /// If the `fd` file descriptor does not corresponds to a file, this functions returns `Ok(-1)`
207
+ /// If the `fd` file descriptor does not correspond to a file, this functions returns `Ok(-1)`
208
208
/// and sets `Evaluator::last_error` to `libc::EBADF` (invalid file descriptor).
209
209
///
210
210
/// This function uses `T: From<i32>` instead of `i32` directly because some IO related
@@ -227,7 +227,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
227
227
/// to modify `MiriEvalContext` at the same time, so you can modify the handle and reinsert it
228
228
/// using `f`.
229
229
///
230
- /// If the `fd` file descriptor does not corresponds to a file, this functions returns `Ok(-1)`
230
+ /// If the `fd` file descriptor does not correspond to a file, this functions returns `Ok(-1)`
231
231
/// and sets `Evaluator::last_error` to `libc::EBADF` (invalid file descriptor).
232
232
///
233
233
/// This function uses `T: From<i32>` instead of `i32` directly because some IO related
0 commit comments