Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sysconf interception fix for solarish systems. #4052

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

devnexen
Copy link
Contributor

also adding the _SC_PAGESIZE alias _SC_PAGE_SIZE supported by Linux, macOS and FreeBSD.

close #4050

also adding the `_SC_PAGESIZE` alias `_SC_PAGE_SIZE` supported by
Linux, macOS and FreeBSD.

close rust-lang#4050
@@ -394,13 +394,14 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
}

// Querying system information
"sysconf" => {
"sysconf" | "__sysconf_xpg7" => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__sysconf_xpg7 is not a standard name, is it? We should only support that on targets where it makes sense, i.e., Solaris.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but neither is __xpg_strerror_r no ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not, no -- we should do a similar check there. Just because we were sloppy in the past doesn't mean we should add more such things.

@devnexen devnexen marked this pull request as draft November 22, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Miri broken on Solaris
2 participants