Skip to content

Commit 812095c

Browse files
authored
Merge pull request #3872 from tgross35/main-bamboo
[main] Apply three pull requests to main
2 parents cce4997 + bf864e3 commit 812095c

File tree

8 files changed

+16
-5
lines changed

8 files changed

+16
-5
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const ALLOWED_CFGS: &'static [&'static str] = &[
2222

2323
// Extra values to allow for check-cfg.
2424
const CHECK_CFG_EXTRA: &'static [(&'static str, &'static [&'static str])] = &[
25-
("target_os", &["switch", "aix", "ohos", "hurd"]),
25+
("target_os", &["switch", "aix", "ohos", "hurd", "visionos"]),
2626
("target_env", &["illumos", "wasi", "aix", "ohos"]),
2727
(
2828
"target_arch",

libc-test/semver/android-aarch64.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ HWCAP2_SVESM4
1212
PROT_BTI
1313
PROT_MTE
1414
SYS_arch_specific_syscall
15+
SYS_lseek
1516
SYS_memfd_secret
17+
SYS_mmap
1618
SYS_syscalls
1719
SYS_fcntl
1820
__system_property_wait

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ FUTEX_CMP_REQUEUE
653653
FUTEX_CMP_REQUEUE_PI
654654
FUTEX_FD
655655
FUTEX_LOCK_PI
656+
FUTEX_LOCK_PI2
656657
FUTEX_PRIVATE_FLAG
657658
FUTEX_REQUEUE
658659
FUTEX_TRYLOCK_PI

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6427,7 +6427,7 @@ cfg_if! {
64276427
}
64286428
}
64296429
cfg_if! {
6430-
if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos"))] {
6430+
if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "visionos"))] {
64316431
extern "C" {
64326432
pub fn memmem(
64336433
haystack: *const ::c_void,

src/unix/bsd/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ s! {
3939
target_os = "ios",
4040
target_os = "tvos",
4141
target_os = "watchos",
42+
target_os = "visionos",
4243
target_os = "netbsd",
4344
target_os = "openbsd")))]
4445
pub pw_fields: ::c_int,
@@ -924,7 +925,7 @@ cfg_if! {
924925
}
925926

926927
cfg_if! {
927-
if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos"))] {
928+
if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "watchos", target_os = "visionos"))] {
928929
mod apple;
929930
pub use self::apple::*;
930931
} else if #[cfg(any(target_os = "openbsd", target_os = "netbsd"))] {

src/unix/linux_like/android/b64/aarch64/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ pub const SYS_vhangup: ::c_long = 58;
192192
pub const SYS_pipe2: ::c_long = 59;
193193
pub const SYS_quotactl: ::c_long = 60;
194194
pub const SYS_getdents64: ::c_long = 61;
195+
pub const SYS_lseek: ::c_long = 62;
195196
pub const SYS_read: ::c_long = 63;
196197
pub const SYS_write: ::c_long = 64;
197198
pub const SYS_readv: ::c_long = 65;
@@ -348,6 +349,7 @@ pub const SYS_request_key: ::c_long = 218;
348349
pub const SYS_keyctl: ::c_long = 219;
349350
pub const SYS_clone: ::c_long = 220;
350351
pub const SYS_execve: ::c_long = 221;
352+
pub const SYS_mmap: ::c_long = 222;
351353
pub const SYS_swapon: ::c_long = 224;
352354
pub const SYS_swapoff: ::c_long = 225;
353355
pub const SYS_mprotect: ::c_long = 226;

src/unix/linux_like/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3017,6 +3017,7 @@ pub const FUTEX_WAIT_BITSET: ::c_int = 9;
30173017
pub const FUTEX_WAKE_BITSET: ::c_int = 10;
30183018
pub const FUTEX_WAIT_REQUEUE_PI: ::c_int = 11;
30193019
pub const FUTEX_CMP_REQUEUE_PI: ::c_int = 12;
3020+
pub const FUTEX_LOCK_PI2: ::c_int = 13;
30203021

30213022
pub const FUTEX_PRIVATE_FLAG: ::c_int = 128;
30223023
pub const FUTEX_CLOCK_REALTIME: ::c_int = 256;

src/unix/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ cfg_if! {
381381
target_os = "ios",
382382
target_os = "tvos",
383383
target_os = "watchos",
384+
target_os = "visionos",
384385
target_os = "android",
385386
target_os = "openbsd",
386387
target_os = "nto",
@@ -1043,7 +1044,8 @@ extern "C" {
10431044
target_os = "macos",
10441045
target_os = "ios",
10451046
target_os = "tvos",
1046-
target_os = "watchos"
1047+
target_os = "watchos",
1048+
target_os = "visionos"
10471049
),
10481050
link_name = "realpath$DARWIN_EXTSN"
10491051
)]
@@ -1218,7 +1220,8 @@ extern "C" {
12181220
target_os = "macos",
12191221
target_os = "ios",
12201222
target_os = "tvos",
1221-
target_os = "watchos"
1223+
target_os = "watchos",
1224+
target_os = "visionos"
12221225
),
12231226
link_name = "res_9_init"
12241227
)]
@@ -1581,6 +1584,7 @@ cfg_if! {
15811584
target_os = "ios",
15821585
target_os = "tvos",
15831586
target_os = "watchos",
1587+
target_os = "visionos",
15841588
target_os = "freebsd",
15851589
target_os = "dragonfly",
15861590
target_os = "openbsd",

0 commit comments

Comments
 (0)