Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tiif committed Jan 14, 2025
1 parent 317d68d commit b95b2c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/shims/unix/foreign_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
"fcntl" => {
// `fcntl` is variadic. The argument count is checked based on the first argument
// in `this.fcntl()`, so we do not use `check_shim` here.
let (fixed, var) = this.check_shim_variadic::<2>(abi, Conv::C, link_name, "fcntl", args)?;
let (fixed, var) =
this.check_shim_variadic::<2>(abi, Conv::C, link_name, "fcntl", args)?;
let result = this.fcntl(args, fixed, var)?;
this.write_scalar(result, dest)?;
}
Expand Down Expand Up @@ -236,7 +237,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
"open" | "open64" => {
// `open` is variadic, the third argument is only present when the second argument
// has O_CREAT (or on linux O_TMPFILE, but miri doesn't support that) set
let (fixed, var) = this.check_shim_variadic::<2>(abi, Conv::C, link_name, "open/open64", args)?;
let (fixed, var) =
this.check_shim_variadic::<2>(abi, Conv::C, link_name, "open/open64", args)?;
let result = this.open(args, fixed, var)?;
this.write_scalar(result, dest)?;
}
Expand Down

0 comments on commit b95b2c6

Please sign in to comment.