- May 22, 2019
-
-
gnzlbg authored
-
gnzlbg authored
The second argument of `gettimeofday` was a `*mut c_void` on all targets, but that type is incorrect in the following targets, where it should be a `*mut timezone` instead: On these other targets it appears that the signature of gettimeofday was incorrect (it takes a time-zone pointer instead of a void pointer): linux+gnu: http://man7.org/linux/man-pages/man2/gettimeofday.2.html freebsd: https://www.freebsd.org/cgi/man.cgi?query=gettimeofday&apropos=0&sektion=2&manpath=FreeBSD+11.2-stable&arch=default&format=html openbsd: https://man.openbsd.org/gettimeofday.2 android: https://github.com/ricardoquesada/android-ndk/blob/master/usr/include/sys/time.h dragonfly: https://www.dragonflybsd.org/cgi/web-man?command=gettimeofday§ion=2 This commit corrects the type on these targets, which is a breaking change. Due to how this API is commonly used (e.g. passing `ptr::null_mut` to the second argument), breakage should be minimal. Users wanting to support both versions can just write `ptr as *mut _` instead. Closes #1338.
-
- May 21, 2019
-
-
John Baublitz authored
-
John Baublitz authored
-
- May 16, 2019
-
-
Linus Färnstrand authored
-
Dan Gohman authored
- Rename `wasm32-unknown-wasi` to `wasm32-wasi`. - `__wasilibc_rmfileat` was renamed to `__wasilibc_unlinkat` - Add bindings for a few more functions and typedefs.
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
These types have a p_types field, but the resolv.h header defines p_types __p_types macro that breaks them.
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-
- May 14, 2019
- Apr 23, 2019
-
-
Dan Gohman authored
dirent contains a flexible array member, so don't test its sizeof, don't allow it to be copied, and don't represent it with an artificial size.
-
Dan Gohman authored
-
Dan Gohman authored
-
- Apr 08, 2019
-
-
Alex Crichton authored
Added recently and will be used in libstd!
-
- Apr 05, 2019
-
-
Kevin Kuehler authored
-
- Mar 27, 2019
-
-
Alex Crichton authored
-
Alex Crichton authored
This target is [being proposed][LINK] int he rust-lang/rust repository and this is intended to get coupled with that proposal. The definitions here all match the upstream reference-sysroot definitions and the functions all match the reference sysroot as well. The linkage here is described more in detail on the Rust PR itself, but in general it's similar to musl. Automatic verification has been implemented in the same manner as other targets, and it's been used locally to develop this PR and catch errors in the bindings already written (also to help match the evolving sysroot of wasi). The verification isn't hooked up to CI yet though because there is no wasi target distributed via rustup just yet, but once that's done I'll file a follow-up PR to execute verification on CI. [LINK]:
-
- Mar 25, 2019
-
-
gnzlbg authored
-
- Mar 02, 2019
-
-
Sébastien Marie authored
while here, generate the right file in test_openbsd()
-
- Feb 24, 2019
-
-
Sébastien Marie authored
-
gnzlbg authored
-
gnzlbg authored
-
gnzlbg authored
-