Skip to content

Commit 3ae217e

Browse files
authored
Merge pull request #14 from rust-lang/master
Sync to rust-lang/libc master
2 parents 5dd6292 + 74c4b15 commit 3ae217e

File tree

56 files changed

+392
-63
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+392
-63
lines changed

.cirrus.yml

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
task:
2+
name: nightly x86_64-unknown-freebsd-10
3+
freebsd_instance:
4+
image: freebsd-10-4-release-amd64
5+
setup_script:
6+
- pkg install -y curl
7+
- curl https://sh.rustup.rs -sSf --output rustup.sh
8+
- sh rustup.sh --default-toolchain nightly -y
9+
- . $HOME/.cargo/env
10+
- rustup default nightly
11+
test_script:
12+
- . $HOME/.cargo/env
13+
- LIBC_CI=1 sh ci/run.sh x86_64-unknown-freebsd
14+
115
task:
216
name: stable x86_64-unknown-freebsd-11
317
freebsd_instance:

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Consequently, this indicates where an API should be added! Adding an API at a
2121
particular level in the hierarchy means that it is supported on all the child
2222
platforms of that level. For example, when adding a Unix API it should be added
2323
to `src/unix/mod.rs`, but when adding a Linux-only API it should be added to
24-
`src/unix/notbsd/linux/mod.rs`.
24+
`src/unix/linux_like/linux/mod.rs`.
2525

2626
If you're not 100% sure at what level of the hierarchy an API should be added
2727
at, fear not! This crate has CI support which tests any binding against all

build.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ fn main() {
1616
);
1717
}
1818

19-
// The ABI of libc is backward compatible with FreeBSD 11.
19+
// The ABI of libc used by libstd is backward compatible with FreeBSD 10.
20+
// The ABI of libc from crates.io is backward compatible with FreeBSD 11.
2021
//
2122
// On CI, we detect the actual FreeBSD version and match its ABI exactly,
2223
// running tests to ensure that the ABI is correct.
2324
match which_freebsd() {
25+
Some(10) if libc_ci || rustc_dep_of_std => {
26+
println!("cargo:rustc-cfg=freebsd10")
27+
}
2428
Some(11) if libc_ci => println!("cargo:rustc-cfg=freebsd11"),
2529
Some(12) if libc_ci => println!("cargo:rustc-cfg=freebsd12"),
2630
Some(13) if libc_ci => println!("cargo:rustc-cfg=freebsd13"),
@@ -109,6 +113,7 @@ fn which_freebsd() -> Option<i32> {
109113
let stdout = stdout.unwrap();
110114

111115
match &stdout {
116+
s if s.starts_with("10") => Some(10),
112117
s if s.starts_with("11") => Some(11),
113118
s if s.starts_with("12") => Some(12),
114119
s if s.starts_with("13") => Some(13),

ci/azure.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
TARGET: x86_64-unknown-linux-gnu
2626

2727
- job: DockerLinuxTier2
28-
dependsOn: DockerLinuxTier1
28+
#dependsOn: DockerLinuxTier1
2929
pool:
3030
vmImage: ubuntu-16.04
3131
steps:

0 commit comments

Comments
 (0)