Skip to content

Commit

Permalink
Merge pull request #3820 from tgross35/backport-carrots
Browse files Browse the repository at this point in the history
[0.2] Backport of five PRs
  • Loading branch information
tgross35 authored Aug 13, 2024
2 parents 0bded09 + a9cc872 commit 88c4644
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::env;
use std::process::Command;
use std::str;
use std::string::String;

// List of cfgs this build script is allowed to set. The list is needed to support check-cfg, as we
// need to know all the possible cfgs that this script will set. If you need to set another cfg
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2033,6 +2033,7 @@ RTLD_LAZY
RTLD_LOCAL
RTLD_NOLOAD
RTLD_NOW
RTLD_NODELETE
TCA_UNSPEC
TCA_KIND
TCA_OPTIONS
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/solarish.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PIPE_BUF
1 change: 1 addition & 0 deletions src/unix/haiku/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1791,6 +1791,7 @@ extern "C" {
lock: *mut pthread_mutex_t,
abstime: *const ::timespec,
) -> ::c_int;
pub fn pthread_sigqueue(thread: ::pthread_t, sig: ::c_int, value: ::sigval) -> ::c_int;
pub fn pthread_spin_init(lock: *mut ::pthread_spinlock_t, pshared: ::c_int) -> ::c_int;
pub fn pthread_spin_destroy(lock: *mut ::pthread_spinlock_t) -> ::c_int;
pub fn pthread_spin_lock(lock: *mut ::pthread_spinlock_t) -> ::c_int;
Expand Down
1 change: 1 addition & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1761,6 +1761,7 @@ pub const ST_NODIRATIME: ::c_ulong = 2048;
pub const ST_RELATIME: ::c_ulong = 4096;

pub const RTLD_NOLOAD: ::c_int = 0x4;
pub const RTLD_NODELETE: ::c_int = 0x1000;

pub const SEM_FAILED: *mut sem_t = 0 as *mut sem_t;

Expand Down
2 changes: 1 addition & 1 deletion src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ cfg_if! {
#[cfg_attr(feature = "rustc-dep-of-std",
link(name = "c", cfg(not(target_feature = "crt-static"))))]
extern {}
} else if #[cfg(target_env = "aix")] {
} else if #[cfg(target_os = "aix")] {
#[link(name = "c")]
#[link(name = "m")]
#[link(name = "bsd")]
Expand Down
1 change: 1 addition & 0 deletions src/unix/solarish/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,7 @@ pub const FOPEN_MAX: ::c_uint = 20;
pub const FILENAME_MAX: ::c_uint = 1024;
pub const L_tmpnam: ::c_uint = 25;
pub const TMP_MAX: ::c_uint = 17576;
pub const PIPE_BUF: ::c_int = 5120;

pub const GRND_NONBLOCK: ::c_uint = 0x0001;
pub const GRND_RANDOM: ::c_uint = 0x0002;
Expand Down

0 comments on commit 88c4644

Please sign in to comment.