Commit Graph

3029 Commits

Author SHA1 Message Date
Torbjørn Birch Moltu
bbcfd3cce2 Add posix message queue types and functions for solarish 2019-06-04 19:26:46 +02:00
Torbjørn Birch Moltu
25846bccc1 Add mq_timedsend() and mq_timedreceive() for Linux 2019-06-04 19:26:45 +02:00
bors
ce7e3a7e86 Auto merge of #1389 - gnzlbg:ref_linux2, r=gnzlbg
Rename the notbsd module to linux_like
2019-06-04 11:36:18 +00:00
gnzlbg
8f098a3e3a Rename the notbsd module to linux_like 2019-06-03 21:46:43 +02:00
bors
0e25493877 Auto merge of #1384 - gnzlbg:upgrade_rlimit_consts, r=gnzlbg
Upgrade rlimit consts

cc @aidanhs - this should fix the error you are seeing.
2019-06-02 09:14:49 +00:00
gnzlbg
5f7600c137 Bump patch version to 0.2.58 2019-06-02 10:32:35 +02:00
gnzlbg
d4cdc7c776 Upgrade target-dependent RLIMIT_ consts 2019-06-02 10:32:35 +02:00
gnzlbg
cdc48ea36d
Merge pull request #1382 from gnzlbg/rlimit_consts
Fix type of RLIMIT consts on linux gnu
2019-05-31 16:43:54 +02:00
gnzlbg
e07cd949b0 Bump patch version to 0.2.57 2019-05-31 15:22:58 +02:00
gnzlbg
f75483adf8 Fix type of RLIMIT constants or gnu linux targets 2019-05-31 14:35:46 +02:00
bors
0e39a5432f Auto merge of #1380 - gnzlbg:missing_tiors485, r=gnzlbg
Add missing TIOCGRS485, TIOCSRS485 constants to Linux

Closes #1094 .
2019-05-29 19:52:27 +00:00
bors
0e702c1b4e Auto merge of #1379 - gnzlbg:deprecate_fixed_width_ints, r=gnzlbg
Deprecate fixed width integer type aliases

cc @emilio - I think it makes sense to ensure that the latest released version of bindgen works properly with this change. That is, that even when asked to use C types from, e.g., `libc::`, it does not use aliases for the fixed-width integer C types (e.g. `libc::int64_t`) but uses Rust primitive types instead (e.g. `u64`).

Closes #1304 .
2019-05-29 18:13:57 +00:00
bors
e66b2a8758 Auto merge of #1378 - gnzlbg:statx, r=gnzlbg
Add statx on Linux

Closes #1178.
2019-05-29 15:56:14 +00:00
gnzlbg
bf1ab2b6a1 CI sparc64 glibc version does not have statx 2019-05-29 14:57:56 +02:00
gnzlbg
3c903c8d3c
Merge pull request #1375 from gnzlbg/deprecate_af_max
Deprecate AF_MAX and PF_MAX
2019-05-29 13:43:44 +02:00
gnzlbg
706b101cf8 Add missing TIOCGRS485, TIOCSRS485 constants to Linux
Closes #1094 .
2019-05-29 13:41:14 +02:00
gnzlbg
c5b72e3747 Use Rust types instead of fixed-width integer type aliases 2019-05-29 13:32:22 +02:00
gnzlbg
afa3edf86c Deprecates fixed-width integer type aliases
Closes #1304 .
2019-05-29 13:20:16 +02:00
gnzlbg
a0865265d4 Replace uses of fixed-width integer aliases with Rust types 2019-05-29 13:17:17 +02:00
gnzlbg
08a4519714 Refactor fixed-width integer types into its own module 2019-05-29 13:05:49 +02:00
gnzlbg
ed8b4cbbf6 Add statx on Linux
Closes #1178.
2019-05-29 12:55:37 +02:00
gnzlbg
a74b588ad2 Deprecate AF_MAX and PF_MAX 2019-05-29 12:24:47 +02:00
bors
b6ab2f056c Auto merge of #1374 - gnzlbg:cleanup_asmjs, r=gnzlbg
Cleanup asmjs
2019-05-28 23:07:30 +00:00
bors
08d448869e Auto merge of #629 - Susurrus:tcflag_t, r=gnzlbg
Correct datatype for various termios constants

This was a part of #625, but I moved it to a separate PR as it's a breaking change and those are currently blocked for Tier 1 platforms.
2019-05-28 20:28:33 +00:00
bors
c9fbd00633 Auto merge of #1372 - tklauser:f-seal-future-write, r=gnzlbg
Add F_SEAL_FUTURE_WRITE on Linux/Android

This was added in Linux 5.1 and will only show up in the next glibc
release, thus skip in tests.
2019-05-28 17:18:53 +00:00
gnzlbg
558d892c43 Bump libc version to 0.2.56 2019-05-28 18:19:35 +02:00
gnzlbg
504e10ec45 Re-enable asmjs on CI 2019-05-28 18:19:35 +02:00
Tobias Klauser
73643694b3 Add F_SEAL_FUTURE_WRITE on Linux/Android
This was added in Linux 5.1 and will only show up in the next glibc
release, thus skip in tests.
2019-05-28 16:33:01 +02:00
bors
927ccfd4b0 Auto merge of #1373 - gnzlbg:cleanup_emscripten, r=gnzlbg
Re-enable emscripten on CI and cleanup its libc-test
2019-05-28 14:22:06 +00:00
gnzlbg
0af34e1276 Re-enable wasm32-unknown-emscripten on CI 2019-05-28 16:21:18 +02:00
gnzlbg
484f39e1ba Document SIGUNUSED deprecation on Android 2019-05-28 16:21:18 +02:00
gnzlbg
8e26ab4964 Minor nitpicks 2019-05-28 16:21:18 +02:00
gnzlbg
cf0bd36e78 Update values of some emscripten constants 2019-05-28 16:21:18 +02:00
gnzlbg
fdd66318ff [breaking change] remove constants that are unavailable in emscripten 2019-05-28 16:21:18 +02:00
gnzlbg
0bc18a5dc9 [breaking change] sendmmsg/recvmmsg have incorrect signature c_int vs c_uint on emscripten 2019-05-28 16:01:26 +02:00
gnzlbg
05caeabe91 [breaking change] sockaddr_nl is not available on emscripten 2019-05-28 16:01:26 +02:00
gnzlbg
5ede8aab94 Enable disabled tests 2019-05-28 16:01:26 +02:00
gnzlbg
516f3efcc9 update emscripten 2019-05-28 16:01:26 +02:00
bors
48193e89b6 Auto merge of #1365 - gnzlbg:cleanup_linux, r=gnzlbg
[breaking change] Cleanup linux and update MUSL

* Update MUSL kernel headers to 4.4.2 (non-breaking)
* [breaking] `MADV_SOFT_OFFLINE` is not defined on MIPS
* [breaking] `sendmmsg`/`recvmmsg` take an `unsigned int` flag on MUSL
* [breaking] `pthread_t` is a pointer on MUSL
* `rlimit` resources should use a type alias on GNU (non-breaking)
* Deprecate `SIGNUNUSED` (should use SIGSYS instead)
2019-05-28 12:45:23 +00:00
gnzlbg
1a3d1525da [breaking change] sendmmsg/recvmmsg flag argument is an unsigned integer on MUSL 2019-05-28 10:09:43 +02:00
bors
8e2e498a45 Auto merge of #1371 - Susurrus:mq_attr, r=gnzlbg
Manually implement extra traits for `mq_attr` and `sockaddr_nl`

Avoid including padding fields in extra trait implementations as these fields aren't guaranteed to be 0 or some other sensible value.

Closes #1302
2019-05-27 20:35:06 +00:00
gnzlbg
2543b7c8ed bump kernel headers to 4.4.2-2 2019-05-27 22:23:02 +02:00
gnzlbg
1cbc523e50 [breaking change] MADV_SOFT_OFFLINE is undefined on MIPS 2019-05-27 22:23:02 +02:00
gnzlbg
8f403e5ac2 Update MUSL Linux kernel headers and re-enable Linux tests 2019-05-27 22:23:02 +02:00
bors
4e9c49e4d6 Auto merge of #1370 - alesharik:master, r=gnzlbg
Fix SA_* constants for `sigaction` in Android
2019-05-27 19:14:42 +00:00
Bryant Mairs
0b34501879 Ignore padding for sockaddr_nl struct
`nl_pad` field does not contain any actual data, so using it for
comparison or hashing doesn't make sense. Instead manually implement
extra traits ignoring this field.
2019-05-27 08:45:28 -07:00
Bryant Mairs
7d235af8c5 Ignore padding for mq_attr
The `pad` or `__reserved`  fields are not always 0 on some platforms,
so when used in the `PartialEq` implementation being used, fails some
comparisons. This commit manually implements the extra traits to
correct this behavior.
2019-05-27 08:37:48 -07:00
alesharikReserv@yandex.ru
45c84a07ab Fix SA_* constants for sigaction in Android 2019-05-27 11:12:36 +03:00
gnzlbg
1059e0bd85
Merge pull request #1346 from gnzlbg/simplify_freebsd
Clean up libc-test/build.rs for FreeBSD and enable testing FreeBSD12 on CI
2019-05-26 18:56:03 +02:00
bors
15855d6f10 Auto merge of #1364 - gnzlbg:deprecate_mach, r=gnzlbg
Deprecate mach APIs: users should use the `mach` crate instead.

See #981, the mach APIs have breaking changes from MacOSX SDK release to release, and that's pretty much what the users are seeing here. We are currently not exposing that many `mach` APIs in `libc`, so this PR deprecates them, forwarding users to use the `mach` crate instead, which provides the mach user-space APIs, is tested against multiple SDK versions, handles removed/deprecated/breaking API changes/etc. Doing all of that in `libc` feels overkill.

Closes #981 .
2019-05-25 20:44:31 +00:00