rust-lang / libc

Raw bindings to platform APIs for Rust
https://docs.rs/libc
Apache License 2.0
2.08k stars 1.04k forks source link

wchar_t is i32 for all bsd targets #1282

Open gnzlbg opened 5 years ago

gnzlbg commented 5 years ago

AFAICT wchar_t is i32 for all BSD targets, but for example for FreeBSD aarch64 targets it should be u32. I'm not sure about ios aarch64 targets, but i think there it is also u32.

gnzlbg commented 5 years ago

cc @asomers - we are not testing aarch64-freebsd on CI, so this might be worth fixing.

asomers commented 5 years ago

Testing aarch64-freebsd in CI would require usermode qemu emulation. It's possible, but it would take some effort to setup.

asomers commented 2 years ago

Oh, there's a new option now. Cirrus CI can do CI testing on arm64. Currently they only do it for Linux, but it would be easy to add FreeBSD, if there's enough interest. https://github.com/cirruslabs/cirrus-ci-docs/issues/906