Skip to content

Commit 7d8f8c4

Browse files
committed
macos: support aarch64 link names
1 parent 848be1b commit 7d8f8c4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/shims/posix/macos/foreign_items.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,32 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
2525
}
2626

2727
// File related shims
28-
"close$NOCANCEL" => {
28+
"close" | "close$NOCANCEL" => {
2929
let &[result] = check_arg_count(args)?;
3030
let result = this.close(result)?;
3131
this.write_scalar(Scalar::from_i32(result), dest)?;
3232
}
33-
"stat$INODE64" => {
33+
"stat" | "stat$INODE64" => {
3434
let &[path, buf] = check_arg_count(args)?;
3535
let result = this.macos_stat(path, buf)?;
3636
this.write_scalar(Scalar::from_i32(result), dest)?;
3737
}
38-
"lstat$INODE64" => {
38+
"lstat" | "lstat$INODE64" => {
3939
let &[path, buf] = check_arg_count(args)?;
4040
let result = this.macos_lstat(path, buf)?;
4141
this.write_scalar(Scalar::from_i32(result), dest)?;
4242
}
43-
"fstat$INODE64" => {
43+
"fstat" | "fstat$INODE64" => {
4444
let &[fd, buf] = check_arg_count(args)?;
4545
let result = this.macos_fstat(fd, buf)?;
4646
this.write_scalar(Scalar::from_i32(result), dest)?;
4747
}
48-
"opendir$INODE64" => {
48+
"opendir" | "opendir$INODE64" => {
4949
let &[name] = check_arg_count(args)?;
5050
let result = this.opendir(name)?;
5151
this.write_scalar(result, dest)?;
5252
}
53-
"readdir_r$INODE64" => {
53+
"readdir_r" | "readdir_r$INODE64" => {
5454
let &[dirp, entry, result] = check_arg_count(args)?;
5555
let result = this.macos_readdir_r(dirp, entry, result)?;
5656
this.write_scalar(Scalar::from_i32(result), dest)?;

0 commit comments

Comments
 (0)