1 error: Undefined Behavior: incorrect number of arguments for `open`: got 4, expected 2 or 3
2 --> $DIR/unix_open_too_many_args.rs:15:24
4 LL | let _fd = unsafe { libc::open(name_ptr, libc::O_RDONLY, 0, 0) }; //~ ERROR Undefined Behavior: incorrect number of arguments for `ope...
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ incorrect number of arguments for `open`: got 4, expected 2 or 3
7 = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8 = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
10 = note: inside `test_open_too_many_args` at $DIR/unix_open_too_many_args.rs:15:24
11 note: inside `main` at $DIR/unix_open_too_many_args.rs:9:5
12 --> $DIR/unix_open_too_many_args.rs:9:5
14 LL | test_open_too_many_args();
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^
17 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
19 error: aborting due to previous error