summaryrefslogtreecommitdiff
path: root/src/unix/solaris/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-03-02 01:19:11 +0000
committerbors <bors@rust-lang.org>2018-03-02 01:19:11 +0000
commit68d4848fe6ecce158f0a4fb821efdc68219ef88c (patch)
tree01117824b2cd999609a3d6ce3e26af99b97bb5ba /src/unix/solaris/mod.rs
parentf0938610e56c27403e8bc63e131269a06c0a95f7 (diff)
parent78f93220d70e796ba4a3ab8482d0f57be763e8c2 (diff)
downloadrust-libc-68d4848fe6ecce158f0a4fb821efdc68219ef88c.tar.gz
Auto merge of #937 - bdrewery:freebsd-ino64-compat, r=alexcrichton
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
Diffstat (limited to 'src/unix/solaris/mod.rs')
0 files changed, 0 insertions, 0 deletions