-
Notifications
You must be signed in to change notification settings - Fork 356
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
Allow varargs for libc::open when it is allowed by the second argument #1970
Conversation
One concern I have is with the tests, is |
Thanks a lot for the PR! Just as a heads-up, I am busy with job interviews for probably at least another month, so it will be a while until I will be able to review this PR. |
4ab1dad
to
f549035
Compare
f549035
to
ac9071e
Compare
ac9071e
to
cf6d32e
Compare
cf6d32e
to
8e97599
Compare
Thanks. :) |
📌 Commit 8e97599 has been approved by |
☀️ Test successful - checks-actions |
This PR allows
libc::open
to be called using two or three arguments as defined in https://man7.org/linux/man-pages/man2/open.2.htmlThe presence of the third argument depends on the value of the second argument. If the second argument dictates that the third argument is required miri will emit an error if the argument is missing. If the second argument does not require a third argument, then the argument is ignored and passed as 0 internally (it would be ignored by libc anyway)