summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #1430 - gnzlbg:bump_v, r=gnzlbg0.2.59bors2019-07-081-1/+1
|\ | | | | | | Bump patch version
| * Bump patch versiongnzlbg2019-07-081-1/+1
|/
* Auto merge of #1423 - Susurrus:issue_665, r=gnzlbgbors2019-07-0621-334/+1
|\ | | | | | | | | | | | | | | | | Remove AF_MAX, PF_MAX, NET_MAXID constants These constants have already been deprecated for a few releases with a deprecation notice, so they can finally be removed. Closes rust-lang/libc#665
| * Remove AF_MAX, PF_MAX, NET_MAXID constantsBryant Mairs2019-07-0521-334/+1
| | | | | | | | | | | | | | These constants have already been deprecated for a few releases with a deprecation notice, so they can finally be removed. Closes rust-lang/libc#665
* | Auto merge of #1429 - gnzlbg:appveyor_reduce, r=gnzlbgbors2019-07-061-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce appveyor churn This should reduce the Appveyorn churn for other projects a bit more. Please let me know if there is anything else that can be done. Maybe the infra team could discuss whether to document some general guidelines for rust-lang and rust-lang-nursery projects, and write them down somewhere. I would be willing to help. cc @RalfJung @Mark-Simulacrum
| * | Reduce appveyor churngnzlbg2019-07-061-0/+1
|/ /
* | Auto merge of #1419 - gnzlbg:ctest_fix, r=gnzlbgbors2019-07-053-14/+91
|\ \ | |/ |/| | | | | | | | | | | | | | | Update ctest version The latest ctest version enabled the ABI roundtrip test by default, in which we initialize all types in Rust by default to some random bit-pattern, pass them to C, verify, modify, pass back to Rust, and verify. This catches issues in the call ABI / calling convention. This PR will silence those here for now.
| * Fix appveyor try 3gnzlbg2019-07-051-13/+9
| |
| * Fix appveyor try 2gnzlbg2019-07-051-1/+1
| |
| * Fix x86_64 muslgnzlbg2019-07-051-0/+1
| |
| * Allow s390x to fail - segfaultgnzlbg2019-07-051-0/+1
| |
| * Allow PPC to fail - segfaultgnzlbg2019-07-051-1/+1
| |
| * Fix FreeBSD and Appveyorgnzlbg2019-07-052-0/+11
| |
| * Allow wasi to failgnzlbg2019-07-051-0/+1
| |
| * Silence roundtrip errorsgnzlbg2019-07-051-1/+49
| |
| * Silence roundtrip in linuxgnzlbg2019-07-051-1/+14
| |
| * Update ctest versiongnzlbg2019-07-031-0/+6
|/
* Auto merge of #1418 - fintelia:patch-2, r=gnzlbgbors2019-06-281-1/+1
|\ | | | | | | | | | | Fix link in README.md Same as #1417, but actually against the right branch this time.
| * Fix link in README.mdJonathan Behrens2019-06-281-1/+1
|/
* Auto merge of #1407 - tmfink:wasi-schar, r=gnzlbgbors2019-06-281-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wasi: add c_schar definition This fixes an issue when building https://github.com/capstone-rust/capstone-rs/ for WASI. Otherwise, I get: ~~~ error[E0412]: cannot find type `c_schar` in module `libc` --> /home/user/capstone-rs/target/wasm32-wasi/debug/build/capstone-sys-1019f1f8759b0d05/out/capstone.rs:4:27 | 4 | pub type __int8_t = libc::c_schar; | ^^^^^^^ help: a type alias with a similar name exists: `c_char` error: aborting due to previous error For more information about this error, try `rustc --explain E0412`. error: Could not compile `capstone-sys`. ~~~ The file with the error is generated with bindgen: https://github.com/capstone-rust/capstone-rs/blob/a74126cd88d683c0c16029be361ee85c12934878/capstone-sys/pre_generated/capstone.rs#L3-L5
| * wasi: add c_schar definitionTravis Finkenauer2019-06-251-0/+1
| |
* | Auto merge of #1411 - acfoltzer:ucontext-compat, r=gnzlbgbors2019-06-273-3/+13
|\ \ | | | | | | | | | | | | | | | Remove new field from ucontext_t for compatibility with earlier glibc versions Per discussion in #1410 with @gnzlbg, this is necessary to avoid struct size mismatches between Rust and C on systems with glibc < 2.28.
| * | fix line lengthAdam C. Foltzer2019-06-271-1/+3
| | |
| * | replace deprecated string functions in style scriptAdam C. Foltzer2019-06-271-2/+2
| | |
| * | add fixmes for the ucontext_t shadow stack fieldAdam C. Foltzer2019-06-272-0/+4
| | |
| * | filter out the struct test rather than removing the headerAdam C. Foltzer2019-06-261-4/+6
| | |
| * | remove newer `__ssp` field from `ucontext_t` for earlier glib compatAdam C. Foltzer2019-06-262-2/+4
| |/ | | | | | | | | Per discussion in #1410, this is necessary to avoid struct size mismatches between Rust and C on systems with glibc < 2.28.
* | Auto merge of #1409 - jbaublitz:nl-const-rtm-pr, r=gnzlbgbors2019-06-272-0/+54
|\ \ | |/ |/| | | | | | | Add RTM_* constants to linux/mod.rs for rtnetlink There is one last set of constants I'm looking to get added to libc for rtnetlink support in my netlink library. I'm going to follow this up with a release PR once this PR is merged.
| * Move constants to gnu/mod.rs that are not musl-compatibleJohn Baublitz2019-06-262-4/+5
| |
| * Add RTM_* constants to linux/mod.rs for rtnetlinkJohn Baublitz2019-06-261-0/+53
|/
* Auto merge of #1404 - robertdfrench:solarish-doors, r=gnzlbgbors2019-06-251-0/+40
|\ | | | | | | | | | | | | | | | | | | | | | | Support calls to the SunOS Doors API Doors are a lightweight IPC mechanism available in libc on Solaris & illumos. They are like unix domain sockets, but faster and more pleasant to work with. * Brief introduction: ["Doors" in SolarisTM: Lightweight RPC using File Descriptors](http://www.kohala.com/start/papers.others/doors.html) * Relevant manual pages: [DOOR_CALL(3C)](https://illumos.org/man/3C/door_call), [DOOR_CREATE(3C)](https://illumos.org/man/3C/door_create) * Tutorial I wrote: ["Revolving Doors": A tutorial on the Illumos Doors API](https://github.com/robertdfrench/revolving-door) Marking this as a draft until I have included the full api.
| * Obey 80 char line widthRobert D. French2019-06-231-10/+11
| |
| * Support calls to the SunOS Doors APIRobert D. French2019-06-221-0/+39
| |
* | Auto merge of #1350 - dbrgn:ttyname_r, r=gnzlbgbors2019-06-241-0/+4
|\ \ | |/ |/| | | | | | | | | | | | | | | Add ttyname_r I hope this is correct. Parameter types taken from `man ttyname`. ```c int ttyname_r(int fd, char *buf, size_t buflen); ```
| * fixup! Add ttyname_rDanilo Bargen2019-06-231-0/+2
| | | | | | | | Add cfg_attr
| * Add ttyname_rDanilo Bargen2019-05-191-0/+2
| |
* | Auto merge of #1402 - sikmir:haiku-add-ioctls, r=gnzlbgbors2019-06-201-0/+25
|\ \ | | | | | | | | | | | | | | | haiku: add missing ioctl identifiers to control the TTY Ref. [termios.h](https://github.com/haiku/haiku/blob/37761761a0c93a96c47d7cfb72f80ab56a8c1722/headers/posix/termios.h#L165-L189)
| * | haiku: add missing ioctl identifiers to control the TTYNikolay Korotkiy2019-06-201-0/+25
|/ /
* | Auto merge of #1399 - josephlr:getrandom, r=gnzlbgbors2019-06-175-0/+37
|\ \ | | | | | | | | | | | | | | | Add getrandom() bindings on Linux Closes #659
| * | Fix style lintsJoe Richey2019-06-144-32/+32
| | |
| * | Add getrandom() on non-mips muslJoe Richey2019-06-144-0/+32
| | |
| * | Older musl doesn't have getrandom()Joe Richey2019-06-132-5/+5
| | |
| * | Android doesn't have getrandom()Joe Richey2019-06-131-5/+0
| | |
| * | Use *mut c_void for buffer pointer.Joe Richey2019-06-132-2/+2
| | |
| * | Add getrandom() bindings on linux and androidJoe Richey2019-06-132-0/+10
| | | | | | | | | | | | Closes #659
* | | Auto merge of #1398 - josephlr:fuchsia, r=gnzlbgbors2019-06-143-602/+0
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Remove Linux constants from Fushia PR #849 just moved all of the Linux structures into `src/fuchsia`. While this is good for the most part, we really don't want the `SYS_*` constants exported on Fushia, as these are not Fuchsia's syscalls. This also removes Linux-specific `GRND_*` constants.
| * | Remove Linux constants from FushiaJoe Richey2019-06-133-602/+0
|/ / | | | | | | | | | | | | | | PR #849 just moved all of the Linux structures into `src/fuchsia`. While this is good for the most part, we really don't want the `SYS_*` constants exported on Fushia, as these are not Fuchsia's syscalls. This also removes Linux-specific `GRND_*` constants.
* | Auto merge of #1387 - tormol:fionclex, r=gnzlbgbors2019-06-1126-18/+30
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Add FIONCLEX and other FIO* constants for Linux, DragonFly and OpenBSD [OpenBSD header](https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/sys/filio.h?annotate=1.5) | [DragonFly header](http://gitweb.dragonflybsd.org/dragonfly.git/blame/refs/heads/master:/sys/sys/filio.h) | [Linux search](https://github.com/torvalds/linux/search?q=FIONCLEX+FIOQSIZE&unscoped_q=FIONCLEX+FIOQSIZE&type=Code) For Linux I've used [godbolt compiler explorer](https://godbolt.org/z/h-C7qM) to get final values where possible. Wile this crate has FIOCLEX for Fuchsia, Emscripten and Redox, I've not added FIONCLEX for them because those targets appear to support neither. I started adding FIOASYNC, FIOSETOWN and FIOGETOWN for all the Linux architectures, but gave up when I realized FIOASYNC is kind of deprecated and the other two useless without more symbols. If anybody is interested I have a [branch with how far I got](https://github.com/tormol/rust-libc/tree/sigio).
| * | Add FIONCLEX for LinuxTorbjørn Birch Moltu2019-06-0721-0/+21
| | |
| * | Add FIODTYPE, FIGETLBA and FIODGNAME for DragonFlyTorbjørn Birch Moltu2019-06-072-3/+4
| | |