Commit Graph

4479 Commits

Author SHA1 Message Date
bors 50af40e277 Auto merge of #2149 - lucab:ups/release-0.2.94, r=JohnTitor
Bump to 0.2.94

Changes:
 * Add kqueue1 to NetBSD
 * Add Android items from "sys/system_properties.h"
 * Add new header to the android header files list
 * Add dl_iterate_phdr to Android
 * Update dl_phdr_info definition to more closely match header files
 * linux: add syncfs(2)
 * Add macos clonefile functions
 * Add RLIM_NLIMITS constant as alias of RLIMIT_NLIMITS on linux_like
 * Add RLIM_NLIMITS on android
 * Unified Linux TCP socket options
2021-04-26 13:10:10 +00:00
Luca BRUNO b24265e1ab
Bump to 0.2.94
Changes:
 * Add kqueue1 to NetBSD
 * Add Android items from "sys/system_properties.h"
 * Add new header to the android header files list
 * Add dl_iterate_phdr to Android
 * Update dl_phdr_info definition to more closely match header files
 * linux: add syncfs(2)
 * Add macos clonefile functions
 * Add RLIM_NLIMITS constant as alias of RLIMIT_NLIMITS on linux_like
 * Add RLIM_NLIMITS on android
 * Unified Linux TCP socket options
2021-04-26 12:57:01 +00:00
bors c894124686 Auto merge of #2148 - lucab:ups/linux-syncfs, r=JohnTitor
linux: add syncfs(2)

This adds binding for `syncfs` on Linux, which is implemented by
all supported libraries.

Ref: https://man7.org/linux/man-pages/man2/syncfs.2.html
2021-04-23 13:26:43 +00:00
Luca BRUNO 20543f3f24
linux: add syncfs(2)
This adds binding for `syncfs` on Linux, which is implemented by
all supported libraries.

Ref: https://man7.org/linux/man-pages/man2/syncfs.2.html
2021-04-23 09:40:14 +00:00
bors 6570c66a41 Auto merge of #2147 - nthery:clonefile, r=JohnTitor
Add macos clonefile functions
2021-04-17 23:34:35 +00:00
Nicolas Thery c8539f5bc6 Add macos clonefile functions 2021-04-17 12:58:32 +02:00
bors dafd08dada Auto merge of #2146 - coolreader18:android-nlimits, r=JohnTitor
Add RLIM_NLIMITS on android
2021-04-17 04:29:26 +00:00
Noah b6313ff6e3
Add RLIM_NLIMITS on android 2021-04-16 16:28:02 -05:00
bors 2c40088cce Auto merge of #2145 - a1phyr:kqueue1, r=Amanieu
Add kqueue1 to NetBSD

Add `kqueue1` to NetBSD as described [in the `man`](https://www.freebsd.org/cgi/man.cgi?query=kqueue1&manpath=NetBSD+9.1).
2021-04-12 16:42:48 +00:00
Benoît du Garreau 17464bee7c Add kqueue1 to NetBSD 2021-04-12 18:36:29 +02:00
bors 895bf0dec3 Auto merge of #2141 - zonyitoo:master, r=JohnTitor
Unified Linux TCP socket options

https://github.com/torvalds/linux/blob/master/include/uapi/linux/tcp.h
2021-04-12 08:37:02 +00:00
bors d3ca6a751e Auto merge of #2144 - kjvalencik:master, r=JohnTitor
Add dl_iterate_phdr to Android

Adds the `dl_iterate_phdr` function for Android targets. This is required for Android support in `gimli` and by proxy, `backtrace`.

I tested this in [`backtrace`](https://github.com/rust-lang/backtrace-rs/pull/415) both in an i686 emulator and a physical arm64 device.

This API is only available on Version 21+. I'm not sure how that's typically handled in `libc`, so I added a doc comment.

Let me know what else is needed!
2021-04-12 07:33:36 +00:00
K.J. Valencik ab1472eb08
Update dl_phdr_info definition to more closely match header files
Also, update tests to skip conflicts
2021-04-09 12:22:53 -04:00
zonyitoo 0ff814a461 Unified Linux TCP socket options 2021-04-09 17:10:32 +08:00
K.J. Valencik 970fec9245
Add dl_iterate_phdr to Android 2021-04-08 17:41:36 -04:00
bors 4d0cd9ae10 Auto merge of #2143 - coolreader18:rlim-nlimits-linux, r=JohnTitor
Add RLIM_NLIMITS constant as alias of RLIMIT_NLIMITS on linux_like

At least on my machine (amd64 Arch) both `RLIMIT_NLIMITS` and `RLIM_NLIMITS` are defined as the same.
2021-04-08 19:47:35 +00:00
bors b80b32b5df Auto merge of #2142 - GuillaumeGomez:add-android-items, r=JohnTitor
Add Android items from "sys/system_properties.h"

It adds the following items:
 * __system_property_set
 * __system_property_get
 * PROP_VALUE_MAX
2021-04-08 18:32:19 +00:00
Guillaume Gomez 73200ceebd Add new header to the android header files list 2021-04-08 19:52:14 +02:00
Noah 4b60b769e4
Add RLIM_NLIMITS constant as alias of RLIMIT_NLIMITS on linux_like 2021-04-08 11:51:15 -05:00
Guillaume Gomez bea9e0575d Add Android items from "sys/system_properties.h":
* __system_property_set
 * __system_property_get
 * PROP_VALUE_MAX
2021-04-08 17:13:27 +02:00
bors 3b185efb5a Auto merge of #2140 - WiSaGaN:master, r=JohnTitor
Bump to 0.2.93
2021-04-06 15:06:45 +00:00
Lu, Wangshan 4b9e959f96
Bump to 0.2.93 2021-04-06 17:53:34 +08:00
bors 02fac7f2a6 Auto merge of #2139 - JohnTitor:style-rework, r=Amanieu
Clean-up the style check

- Only run the cfg check for single lines
  - This is a temporary workaround for the multiline `cfg`s.
- Allow long comments containing a link
  - I don't think it makes much sense to break comments containing the reference links.
- Relax the line length limit to 100
  - Given the `cfg` condition often becomes complex, the 80 characters limit is too strict for me.
2021-04-06 06:13:31 +00:00
Yuki Okushi 3fae7e9ce7 Fix style 2021-04-06 10:10:29 +09:00
Yuki Okushi 3a8521a7a1 Relax the line length limit to 100 2021-04-06 09:55:52 +09:00
Yuki Okushi 714f302b92 Allow long comments containing a link 2021-04-06 09:52:02 +09:00
Yuki Okushi 703924fad8 Only run the cfg check for single lines 2021-04-06 09:49:48 +09:00
bors ac494b16a5 Auto merge of #2135 - zonyitoo:master, r=JohnTitor
Unified all Linux sockopts definitions by arch

- ref rust-lang/socket2#213

Fixes #2133
2021-04-05 23:56:37 +00:00
zonyitoo 682eba6116 Unified all Linux sockopts definitions by arch
- fixed other missing SO_INCOMING_CPU definition in rust-lang/socket2#213
2021-04-05 22:45:59 +08:00
bors 3a31a5f42c Auto merge of #2138 - JohnTitor:rerun-if-changed, r=Amanieu
Specify `cargo:rerun-if-changed=build.rs` to avoid re-building

Fixes #1978
r? `@Amanieu`
2021-04-05 07:38:33 +00:00
Yuki Okushi 45e1681d90 Specify `cargo:rerun-if-changed=build.rs` to avoid re-building 2021-04-05 03:23:02 +09:00
bors 5114daa8ff Auto merge of #2137 - asomers:netbsd-unpacked, r=Amanieu
Removed repr(packed) from some NetBSD structures

The structures in question have always been properly aligned, so the
packed attribute only serves to generate annoying compiler warnings.  It
will be removed in the next release of NetBSD.

415c686e20
2021-04-04 16:14:03 +00:00
Alan Somers ec13c82bc9 Removed repr(packed) from some NetBSD structures
The structures in question have always been properly aligned, so the
packed attribute only serves to generate annoying compiler warnings.  It
will be removed in the next release of NetBSD.

415c686e20
2021-04-04 10:05:10 -06:00
bors 95e259f8e8 Auto merge of #2136 - semarie:openbsd-semver, r=JohnTitor
unbreak openbsd after #2109

several symbols added to semver regression tests in "unix" aren't defined on OpenBSD.
move these symbols in OS specific files.
2021-04-04 13:57:24 +00:00
Sébastien Marie 08ec0d68e2 unbreak openbsd after #2109
several symbols added to semver regression tests in "unix" aren't defined on OpenBSD.
move these symbols in OS specific files.
2021-04-04 13:19:28 +00:00
bors 0a93b70496 Auto merge of #2109 - Thomasdezeeuw:issue_2104-regression_tests, r=JohnTitor
Add regression test infrastructure

Please the commit messages for details.

I still need to add lists for the following targets, but I got the major ones I think.

TODO:
* aarch64-unknown-hermit
* x86_64-unknown-hermit
* x86_64-pc-solaris
* x86_64-sun-solaris
* sparcv9-sun-solaris
* x86_64-fortanix-unknown-sgx
* x86_64-unknown-illumos
* asmjs-unknown-emscripten
* wasm32-unknown-emscripten
* wasm32-unknown-unknown
* wasm32-wasi
* Check symbols added after commit ed45c2649b.

TODO: add a bit to the contributing guide about adding to these lists.

Closes #2104.
2021-04-02 12:53:21 +00:00
Thomas de Zeeuw 418c48139b Output PASSED 1 tests in semver test
Testing on Android (in ci/runtest-android.rs) seems to depend on the
test outputting it was successful.
2021-04-02 13:24:28 +02:00
Thomas de Zeeuw ed1399a346 Fix semver test for x86_64-unknown-linux-gnux32 target 2021-04-02 12:33:28 +02:00
Thomas de Zeeuw 00f4b0fc37 Fix semver test for Linux mips musl targets
* mips-unknown-linux-musl
 * mipsel-unknown-linux-musl
2021-04-02 12:28:56 +02:00
Thomas de Zeeuw 321ac9d529 Fix semver test for Linux ARM targets
Fixes it for at least the following targets:
 * aarch64-unknown-linux-gnu
 * arm-linux-androideabi
 * arm-unknown-linux-gnueabihf
 * arm-unknown-linux-gnueabihf
 * arm-unknown-linux-musleabihf
2021-04-02 12:21:15 +02:00
Thomas de Zeeuw 9361be07d0 Fix semver test for asmjs-unknown-emscripten target 2021-04-02 12:20:50 +02:00
bors 10d99b96e0 Auto merge of #2134 - vilgotf:patch-1, r=JohnTitor
Fix typo in swapoff

Seems no one's noticed this in 4 years... First commit for me it is :D
2021-03-30 20:40:02 +00:00
Vilgot Fredenberg cbee28b025
Fix typo in swapoff 2021-03-30 22:29:43 +02:00
bors 77056408a1 Auto merge of #2128 - GuillaumeGomez:bump-version, r=JohnTitor
Bump crate version to 0.2.92

Could it be possible to have a new release in the coming days please? Thanks in advance!
2021-03-30 10:15:36 +00:00
Guillaume Gomez 172771e8c6 Bump crate version to 0.2.92 2021-03-30 12:04:45 +02:00
bors f2e7721d31 Auto merge of #2132 - JohnTitor:cmsg-space, r=Amanieu
Constify `CMSG_SPACE` for all the targets

`CMSG_SPACE` is a const fn for Linux but it isn't for other targets. This constifies it on all the targets for consistency.

Fixes #2087
2021-03-30 08:43:35 +00:00
JohnTitor e187543fdd Constify `CMSG_SPACE` for all the targets 2021-03-30 17:37:13 +09:00
bors 8df930f012 Auto merge of #2131 - JohnTitor:pwrite64-uclibc, r=Amanieu
Make `pwrite64` available on uclibc

Fixes #2130
2021-03-30 06:21:32 +00:00
JohnTitor 7a3e51a770 Make `pwrite64` available on uclibc 2021-03-30 15:19:36 +09:00
bors f913fc53a6 Auto merge of #2129 - GuillaumeGomez:more-missing-types, r=JohnTitor
Add more apple types

Forgot a few.

If it could be merged before https://github.com/rust-lang/libc/pull/2128, it'd be awesome! Thanks in advance. :)
2021-03-29 20:19:44 +00:00