summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #939 - ctrlcctrlv:master, r=alexcrichton0.2.39bors2018-03-053-10/+19
|\ | | | | | | | | | | Add FreeBSD `get[pw|gr]ent_r`, forgotten in #934 Sorry, accidentally forgot this when submitting #934..
| * Add FreeBSD `get[pw|gr]ent_r`, forgotten in #934Fredrick Brennan2018-03-053-10/+19
|/ | | | Sorry, accidentally forgot this when submitting #934..
* Auto merge of #934 - ctrlcctrlv:master, r=alexcrichton0.2.38bors2018-03-038-14/+57
|\ | | | | | | | | | | | | | | Add passwd/group APIs needed for nix-rust/nix#864 Hope I did this right. I only added platforms I could personally test. . . cc: @gnzlbg
| * Refresh Cargo.lockFredrick Brennan2018-03-051-4/+4
| |
| * Fix BSD errors (hopefully)Fredrick Brennan2018-03-042-1/+3
| |
| * Fix failure to document for Open/NetBSDFredrick Brennan2018-03-041-2/+2
| |
| * Fix long lineFredrick Brennan2018-03-041-1/+2
| |
| * Fix issues raised by @gnzlbgFredrick Brennan2018-03-045-28/+34
| |
| * Remove "double blank line"Fredrick Brennan2018-03-031-1/+0
| |
| * Fix build error on stable RustFredrick Brennan2018-03-032-14/+2
| |
| * Add passwd/group APIs needed for nix-rust/nix#864Fredrick Brennan2018-03-034-11/+58
| |
* | Auto merge of #937 - bdrewery:freebsd-ino64-compat, r=alexcrichtonbors2018-03-023-0/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use pre-ino64 FreeBSD symbols to resolve binary compatibility. This follows the same method as other platforms like OSX and NetBSD. This will fix rustup and building from git (once libc is updated for bootstrap) on FreeBSD12 post-ino64 in https://github.com/freebsd/freebsd/commit/f713b08c027de35b0b8ed9990eabc32e100bee7a. It also avoids having to hotpatch the stage0 compiler, and HOME/.cargo libc files on FreeBSD12 to build rust. The only real pitfall is that this will prevent interaction with inodes that have an ino_t above the 32-bit limit due to truncation. On the other hand Rust won't work at all on 12 without doing this currently. In general it should not be a problem for users and if they need 64-bit ino_t they can use a patched libc, rather than the current state of affairs in requiring a patched libc to use Rust on 12. A better, or complementary, approach would be something like proposed in https://github.com/rust-lang/rfcs/pull/2048 to allow targetting a specific version of FreeBSD. This would allow Rust to default to this compatibility mode by targetting FreeBSD10 and still allow targetting FreeBSD12 for 64-bit ino_t. The symbol versions used were taken from the old version in https://github.com/freebsd/freebsd/commit/f713b08c027de35b0b8ed9990eabc32e100bee7a#diff-61a32fcfb7ecd4517665fed591813c57 and https://github.com/freebsd/freebsd/commit/f713b08c027de35b0b8ed9990eabc32e100bee7a#diff-7f67ccf8b5f44ff2f54eaab0207abb8d. The scope of functions versioned here differs from other platforms as not all structs were modified that were on others, such as DIR for `opendir`, `telldir`, etc. Only functions using dirent, stat, glob_t, and dev_t need the changes. Fixes https://github.com/rust-lang/rust/issues/42681
| * | Use pre-ino64 FreeBSD symbols to resolve binary compatibility.Bryan Drewery2018-03-013-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This follows the same method as other platforms like OSX and NetBSD. This will fix rustup and building from git (once libc is updated for bootstrap) on FreeBSD12 post-ino64 in https://github.com/freebsd/freebsd/commit/f713b08c027de35b0b8ed9990eabc32e100bee7a. It also avoids having to hotpatch the stage0 compiler, and HOME/.cargo libc files on FreeBSD12 to build rust. The only real pitfall is that this will prevent interaction with inodes that have an ino_t above the 32-bit limit due to truncation. On the other hand Rust won't work at all on 12 without doing this currently. In general it should not be a problem for users and if they need 64-bit ino_t they can use a patched libc, rather than the current state of affairs in requiring a patched libc to use Rust on 12. A better, or complementary, approach would be something like proposed in https://github.com/rust-lang/rfcs/pull/2048 to allow targetting a specific version of FreeBSD. This would allow Rust to default to this compatibility mode by targetting FreeBSD10 and still allow targetting FreeBSD12 for 64-bit ino_t. The symbol versions used were taken from the old version in https://github.com/freebsd/freebsd/commit/f713b08c027de35b0b8ed9990eabc32e100bee7a#diff-61a32fcfb7ecd4517665fed591813c57 and https://github.com/freebsd/freebsd/commit/f713b08c027de35b0b8ed9990eabc32e100bee7a#diff-7f67ccf8b5f44ff2f54eaab0207abb8d. The scope of functions versioned here differs from other platforms as not all structs were modified that were on others, such as DIR for `opendir`, `telldir`, etc. Only functions using dirent, stat, glob_t, and dev_t need the changes. Fixes https://github.com/rust-lang/rust/issues/42681
* | | Auto merge of #936 - bdrewery:freebsd-kevent-compat, r=alexcrichtonbors2018-03-011-0/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | Link against kevent@FBSD_1.0 to fix ABI compat with FreeBSD12. struct kevent was modified in FreeBSD12. The @FBSD_1.0 symbol supports the old structure ABI still. This allows the `mio` crate tests to now pass on FreeBSD12.
| * | Link against kevent@FBSD_1.0 to fix ABI compat with FreeBSD12.Bryan Drewery2018-03-011-0/+1
| | | | | | | | | | | | | | | | | | | | | struct kevent was modified in FreeBSD12. The @FBSD_1.0 symbol supports the old structure ABI still. This allows the `mio` crate tests to now pass on FreeBSD12.
* | | Auto merge of #935 - bgermann:master, r=alexcrichtonbors2018-03-011-0/+4
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Add Solaris constants needed by net2 The added constants are IPV6_UNICAST_HOPS, IPV6_MULTICAST_IF, IPV6_MULTICAST_HOPS, IP_MULTICAST_IF.
| * | Add Solaris constants needed by net2bgermann2018-03-011-0/+4
|/ / | | | | | | | | | | | | | | The added constants are IPV6_UNICAST_HOPS, IPV6_MULTICAST_IF, IPV6_MULTICAST_HOPS, IP_MULTICAST_IF.
* | Auto merge of #933 - raphlinus:ipv6_fuchsia, r=alexcrichtonbors2018-02-281-0/+1
|\ \ | |/ |/| | | | | | | | | | | Add IPV6_UNICAST_HOPS to fuchsia module Recent change #925 added constants for IPV6 multicast, but seems to have inadvertently left off IPV6_UNICAST_HOPS from the fuchsia module. Fixes #932
| * Add IPV6_UNICAST_HOPS to fuchsia moduleRaph Levien2018-02-281-0/+1
|/ | | | | | | Recent change #925 added constants for IPV6 multicast, but seems to have inadvertently left off IPV6_UNICAST_HOPS from fuchsia. Fixes #932
* Auto merge of #931 - bdrewery:posix_spawn_freebsd, r=alexcrichtonbors2018-02-282-0/+77
|\ | | | | | | Add posix_spawn bindings for FreeBSD
| * Add posix_spawn bindings for FreeBSDBryan Drewery2018-02-262-0/+77
| |
* | Auto merge of #930 - gnzlbg:fix_musl, r=alexcrichtonbors2018-02-284-5/+17
|\ \ | | | | | | | | | | | | | | | Fix --no-default-features builds Closes #928 #929 #684
| * | retrygnzlbg2018-02-281-3/+2
| | |
| * | fix stylegnzlbg2018-02-281-1/+3
| | |
| * | wrap target_vendor with stdbuildgnzlbg2018-02-281-1/+1
| | |
| * | perform ctest with and without stdgnzlbg2018-02-272-3/+9
| | |
| * | fix ci scriptgnzlbg2018-02-271-1/+1
| | |
| * | fix stylegnzlbg2018-02-271-2/+5
| | |
| * | test --no-default-features and fix musl buildsgnzlbg2018-02-273-2/+4
|/ /
* | Auto merge of #927 - bluejekyll:master, r=alexcrichton0.2.37bors2018-02-272-36/+68
|\ \ | | | | | | | | | | | | | | | | | | | | | Bump to 0.2.37 This includes: - more multicast fields - netfilter/nftables fields
| * | 0.2.37 for releaseBenjamin Fry2018-02-262-36/+68
|/ /
* | Auto merge of #926 - faern:add-netfilter-fields, r=alexcrichtonbors2018-02-266-30/+592
|\ \ | | | | | | | | | | | | | | | Add netfilter/nftables fields Adding a few missing `NF_` constants to more complete the story around that header. Then most importantly add a lot of `NFT_` constants needed in my nftables library. Some were added back in #911, but as the library grew I realized I needed more constants.
| * | Add missing NFT_ constants from nf_tables.hLinus Färnstrand2018-02-253-0/+456
| | |
| * | Add missing netfilter constantsLinus Färnstrand2018-02-255-30/+133
| | | | | | | | | | | | | | | Was able to move some of them up one level so they are valid on more platforms with less duplication
| * | Add INT_MIN and INT_MAXLinus Färnstrand2018-02-251-0/+3
| | |
* | | Auto merge of #925 - bluejekyll:master, r=alexcrichtonbors2018-02-263-6/+12
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | add IPV6_MULTICAST_IF and IPV6_MULTICAST_HOPS These were missing from the net2 crate. Adding them here so that the higher functions can be added to net2 later. They are necessary for declaring the interface for ipv6 multicast packets (route), and limits on the number of hops an ipv6 packet can travel Linux reference: https://github.com/torvalds/linux/blob/master/include/uapi/linux/in6.h#L168-L170 macOS reference: https://github.com/apple/darwin-xnu/blob/master/bsd/netinet6/in6.h#L538-L540
| * | add IPV6_UNICAST_HOPSBenjamin Fry2018-02-252-0/+2
| | |
| * | add IPV6_MULTICAST_IF and IPV6_MULTICAST_HOPSBenjamin Fry2018-02-253-6/+10
| |/
* | Auto merge of #924 - kristate:android_eth_p_fix, r=alexcrichtonbors2018-02-251-0/+102
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ETH_* constants on Android Adding ETH_* constants that were found here on Linux but not on Android. Source Reference is [linux/if_ether.h](https://android.googlesource.com/platform/bionic/+/master/libc/kernel/uapi/linux/if_ether.h) on Google OpenSource. Thank-you. /cc nix-rust/nix#865
| * | android: removing some newer constants included since kernel v4.12.3;kristopher tate2018-02-251-5/+5
| | |
| * | android: fixes style errors;kristopher tate2018-02-251-1/+2
| | |
| * | android: ETH_* constants from linux/if_ether.h ; ref nix-rust/nix#865kristopher tate2018-02-251-0/+101
|/ /
* | Auto merge of #922 - faern:add-netlink-structs, r=alexcrichtonbors2018-02-255-12/+263
|\ \ | |/ |/| | | | | | | Add netlink structs to all notbsd platforms Adding the remaining structs from `<linux/netlink.h>`. Sadly very duplicated, but that's how it ended up when added to all "notbsd" platforms except musl. If there is a better way to structure it to reduce duplication I'm all ears!
| * Bump NFT_*_MAXNAMELEN to 256Linus Färnstrand2018-02-251-5/+14
| |
| * Move non-musl GENL_ constants to correct submodulesLinus Färnstrand2018-02-253-13/+10
| |
| * Add genetlink.h constantsLinus Färnstrand2018-02-224-7/+104
| |
| * Add NLA_ALIGN(TO) constant/functionLinus Färnstrand2018-02-223-0/+22
| |
| * Add netlink/genetlink structs to notbsdLinus Färnstrand2018-02-224-0/+126
|/
* Auto merge of #920 - glaubitz:sparc64, r=alexcrichtonbors2018-02-171-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | Prefer hexadecimal representation of O_TMPFILE on linux-sparc64 While working on the libc bindings for sparc-linux, I stumbled across this typo in the O_TMPFILE definition on linux-sparc64. Compare with: > https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/sparc/bits/fcntl.h;hb=16efad5171ac1ac2c8728405f2703045f08c494b#l42 > https://sources.debian.org/src/glibc/2.26-6/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h/#L42 CC @jrtc27
| * Prefer hexadecimal representation of O_TMPFILE on linux-sparc64John Paul Adrian Glaubitz2018-02-171-1/+1
|/