3854a76ace
Allow varargs for libc::open when it is allowed by the second argument 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.html The 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) |
||
---|---|---|
.. | ||
compile-fail | ||
run-pass | ||
compiletest.rs |