when I run cargo test it hangs forever on Running unittests src/lib.rs. It doesn't if I name the function anything other than open or if I remove the #[no_mangle] attribute.
I cannot reproduce the issue on my system with open, but with open64 it does hang for me. Similarly, using a name like memcpy easily results in a crash.