We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ce2fef commit 05452faCopy full SHA for 05452fa
src/shims/unix/linux/eventfd.rs
@@ -176,9 +176,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
176
is_nonblock = true;
177
}
178
if flags != 0 {
179
- let einval = this.eval_libc("EINVAL");
180
- this.set_last_error(einval)?;
181
- return Ok(Scalar::from_i32(-1));
+ throw_unsup_format!("eventfd: Flags other than EFD_CLOEXEC, EFD_NONBLOCK \
+ and EFD_SEMAPHORE is not supported.");
182
183
184
let fd = this.machine.fds.insert_fd(FileDescriptor::new(Event {
0 commit comments