Skip to content

Commit 00284e3

Browse files
committed
Fix some more rebase error
1 parent 3500c16 commit 00284e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tools/miri/src/shims/unix/foreign_items.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
144144
let result = this.getpid()?;
145145
this.write_scalar(result, dest)?;
146146
}
147+
"sysconf" => {
148+
let [val] =
149+
this.check_shim(abi, Conv::C, link_name, args)?;
150+
let result = this.sysconf(val)?;
151+
this.write_scalar(result, dest)?;
152+
}
147153
// File descriptors
148154
"read" => {
149155
let [fd, buf, count] = this.check_shim(abi, Conv::C , link_name, args)?;

0 commit comments

Comments
 (0)