Skip to content

Commit a0aa71e

Browse files
committed
2 parents 5a96762 + 3d0b15b commit a0aa71e

File tree

9 files changed

+37
-4
lines changed

9 files changed

+37
-4
lines changed

.github/workflows/full_ci.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ jobs:
6262
ARCH_BITS: 64
6363
ARCH: x86_64
6464
- target: x86_64-pc-windows-msvc
65-
- target: i686-pc-windows-gnu
66-
env:
67-
ARCH_BITS: 32
68-
ARCH: i686
65+
# FIXME: It currently causes segfaults.
66+
#- target: i686-pc-windows-gnu
67+
# env:
68+
# ARCH_BITS: 32
69+
# ARCH: i686
6970
- target: i686-pc-windows-msvc
7071
steps:
7172
- uses: actions/checkout@v4

libc-test/build.rs

+8
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ fn test_apple(target: &str) {
296296
// it is a moving target, changing through versions
297297
// also contains bitfields members
298298
"tcp_connection_info" => true,
299+
// FIXME: The size is changed in recent macOSes.
300+
"malloc_introspection_t" => true,
299301

300302
_ => false,
301303
}
@@ -2427,6 +2429,9 @@ fn test_freebsd(target: &str) {
24272429
true
24282430
}
24292431

2432+
// FIXME: Removed in FreeBSD 15:
2433+
"LOCAL_CONNWAIT" => true,
2434+
24302435
_ => false,
24312436
}
24322437
});
@@ -4111,6 +4116,9 @@ fn test_linux(target: &str) {
41114116
true
41124117
}
41134118

4119+
// FIXME: Requires >= 6.6 kernel headers.
4120+
"SYS_fchmodat2" => true,
4121+
41144122
// FIXME: seems to not be available all the time (from <include/linux/sched.h>:
41154123
"PF_VCPU"
41164124
| "PF_IDLE"

libc-test/semver/redox.txt

+12
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,17 @@ EUSERS
9696
EXFULL
9797
FIONREAD
9898
IMAXBEL
99+
IP_RECVTOS
100+
IP_TOS
101+
IPPROTO_ICMP
102+
IPPROTO_IDP
103+
IPPROTO_IGMP
104+
IPPROTO_IP
105+
IPPROTO_IPV6
106+
IPPROTO_MAX
107+
IPPROTO_PUP
108+
IPPROTO_TCP
109+
IPPROTO_UDP
99110
IPV6_ADD_MEMBERSHIP
100111
IPV6_DROP_MEMBERSHIP
101112
IUCLC
@@ -129,6 +140,7 @@ SIGPWR
129140
SIGSTKFLT
130141
SOCK_CLOEXEC
131142
SOCK_NONBLOCK
143+
SOCK_RAW
132144
SO_BSDCOMPAT
133145
SO_DOMAIN
134146
SO_NO_CHECK

src/unix/linux_like/linux/gnu/b32/x86/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
10441044
pub const SYS_process_mrelease: ::c_long = 448;
10451045
pub const SYS_futex_waitv: ::c_long = 449;
10461046
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
1047+
pub const SYS_fchmodat2: ::c_long = 452;
10471048

10481049
// offsets in user_regs_structs, from sys/reg.h
10491050
pub const EBX: ::c_int = 0;

src/unix/linux_like/linux/gnu/b64/x86_64/not_x32.rs

+1
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
430430
pub const SYS_process_mrelease: ::c_long = 448;
431431
pub const SYS_futex_waitv: ::c_long = 449;
432432
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
433+
pub const SYS_fchmodat2: ::c_long = 452;
433434

434435
extern "C" {
435436
pub fn sysctl(

src/unix/linux_like/linux/gnu/b64/x86_64/x32.rs

+1
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ pub const SYS_memfd_secret: ::c_long = __X32_SYSCALL_BIT + 447;
361361
pub const SYS_process_mrelease: ::c_long = __X32_SYSCALL_BIT + 448;
362362
pub const SYS_futex_waitv: ::c_long = __X32_SYSCALL_BIT + 449;
363363
pub const SYS_set_mempolicy_home_node: ::c_long = __X32_SYSCALL_BIT + 450;
364+
pub const SYS_fchmodat2: ::c_long = __X32_SYSCALL_BIT + 452;
364365
pub const SYS_rt_sigaction: ::c_long = __X32_SYSCALL_BIT + 512;
365366
pub const SYS_rt_sigreturn: ::c_long = __X32_SYSCALL_BIT + 513;
366367
pub const SYS_ioctl: ::c_long = __X32_SYSCALL_BIT + 514;

src/unix/linux_like/linux/musl/b32/x86/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
936936
pub const SYS_process_mrelease: ::c_long = 448;
937937
pub const SYS_futex_waitv: ::c_long = 449;
938938
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
939+
pub const SYS_fchmodat2: ::c_long = 452;
939940

940941
// offsets in user_regs_structs, from sys/reg.h
941942
pub const EBX: ::c_int = 0;

src/unix/linux_like/linux/musl/b64/x86_64/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
608608
pub const SYS_process_mrelease: ::c_long = 448;
609609
pub const SYS_futex_waitv: ::c_long = 449;
610610
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
611+
pub const SYS_fchmodat2: ::c_long = 452;
611612

612613
// offsets in user_regs_structs, from sys/reg.h
613614
pub const R15: ::c_int = 0;

src/unix/redox/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,13 @@ pub const IP_MULTICAST_TTL: ::c_int = 33;
585585
pub const IP_MULTICAST_LOOP: ::c_int = 34;
586586
pub const IP_ADD_MEMBERSHIP: ::c_int = 35;
587587
pub const IP_DROP_MEMBERSHIP: ::c_int = 36;
588+
pub const IP_TOS: ::c_int = 1;
589+
pub const IP_RECVTOS: ::c_int = 2;
590+
pub const IPPROTO_IGMP: ::c_int = 2;
591+
pub const IPPROTO_PUP: ::c_int = 12;
592+
pub const IPPROTO_IDP: ::c_int = 22;
588593
pub const IPPROTO_RAW: ::c_int = 255;
594+
pub const IPPROTO_MAX: ::c_int = 255;
589595
// }
590596

591597
// netinet/tcp.h
@@ -810,6 +816,7 @@ pub const SO_PROTOCOL: ::c_int = 38;
810816
pub const SO_DOMAIN: ::c_int = 39;
811817
pub const SOCK_STREAM: ::c_int = 1;
812818
pub const SOCK_DGRAM: ::c_int = 2;
819+
pub const SOCK_RAW: ::c_int = 3;
813820
pub const SOCK_NONBLOCK: ::c_int = 0o4_000;
814821
pub const SOCK_CLOEXEC: ::c_int = 0o2_000_000;
815822
pub const SOCK_SEQPACKET: ::c_int = 5;

0 commit comments

Comments
 (0)