Skip to content

Commit 9b870d4

Browse files
authored
Merge pull request #4082 from tgross35/backport-fennel
[0.2] Backports
2 parents 643aff5 + 7c7d9c4 commit 9b870d4

File tree

15 files changed

+98
-28
lines changed

15 files changed

+98
-28
lines changed

libc-test/semver/linux-gnu.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ lio_listio
652652
mallinfo
653653
mallinfo2
654654
malloc_info
655+
malloc_stats
655656
malloc_trim
656657
malloc_usable_size
657658
mallopt

libc-test/semver/redox.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,19 @@ EUSERS
9696
EXFULL
9797
FIONREAD
9898
IMAXBEL
99+
IPPROTO_ICMP
100+
IPPROTO_IDP
101+
IPPROTO_IGMP
102+
IPPROTO_IP
103+
IPPROTO_IPV6
104+
IPPROTO_MAX
105+
IPPROTO_PUP
106+
IPPROTO_TCP
107+
IPPROTO_UDP
99108
IPV6_ADD_MEMBERSHIP
100109
IPV6_DROP_MEMBERSHIP
110+
IP_RECVTOS
111+
IP_TOS
101112
IUCLC
102113
IUTF8
103114
MADV_DONTNEED
@@ -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

libc-test/semver/windows.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ accept
150150
access
151151
aligned_free
152152
aligned_malloc
153+
aligned_realloc
153154
atexit
154155
atof
155156
atoi

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ s! {
2222

2323
pub f_namelen: ::__fsword_t,
2424
pub f_frsize: ::__fsword_t,
25-
f_spare: [::__fsword_t; 5],
25+
pub f_flags: ::__fsword_t,
26+
f_spare: [::__fsword_t; 4],
2627
}
2728

2829
pub struct flock {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ s! {
3737
pub f_fsid: ::fsid_t,
3838

3939
pub f_namelen: ::c_long,
40-
f_spare: [::c_long; 6],
40+
pub f_flags: ::c_long,
41+
f_spare: [::c_long; 5],
4142
}
4243

4344
pub struct statfs64 {

src/unix/linux_like/linux/gnu/b32/powerpc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ s! {
2222

2323
pub f_namelen: ::__fsword_t,
2424
pub f_frsize: ::__fsword_t,
25-
f_spare: [::__fsword_t; 5],
25+
pub f_flags: ::__fsword_t,
26+
f_spare: [::__fsword_t; 4],
2627
}
2728

2829
pub struct flock {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ s! {
2323

2424
pub f_namelen: ::__fsword_t,
2525
pub f_frsize: ::__fsword_t,
26-
f_spare: [::__fsword_t; 5],
26+
pub f_flags: ::__fsword_t,
27+
f_spare: [::__fsword_t; 4],
2728
}
2829

2930
pub struct flock {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,7 @@ extern "C" {
14951495
pub fn pthread_sigqueue(thread: ::pthread_t, sig: ::c_int, value: ::sigval) -> ::c_int;
14961496
pub fn mallinfo() -> ::mallinfo;
14971497
pub fn mallinfo2() -> ::mallinfo2;
1498+
pub fn malloc_stats();
14981499
pub fn malloc_info(options: ::c_int, stream: *mut ::FILE) -> ::c_int;
14991500
pub fn malloc_usable_size(ptr: *mut ::c_void) -> ::size_t;
15001501
pub fn getpwent_r(

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,8 @@ pub const SYS_pkey_mprotect: ::c_long = 288;
581581
pub const SYS_pkey_alloc: ::c_long = 289;
582582
pub const SYS_pkey_free: ::c_long = 290;
583583
pub const SYS_statx: ::c_long = 291;
584+
pub const SYS_io_pgetevents: ::c_long = 292;
585+
pub const SYS_rseq: ::c_long = 293;
584586
pub const SYS_pidfd_send_signal: ::c_long = 424;
585587
pub const SYS_io_uring_setup: ::c_long = 425;
586588
pub const SYS_io_uring_enter: ::c_long = 426;

src/unix/linux_like/linux/musl/b64/powerpc64.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,22 @@ pub const SYS_preadv2: ::c_long = 380;
582582
pub const SYS_pwritev2: ::c_long = 381;
583583
pub const SYS_kexec_file_load: ::c_long = 382;
584584
pub const SYS_statx: ::c_long = 383;
585+
pub const SYS_pkey_alloc: ::c_long = 384;
586+
pub const SYS_pkey_free: ::c_long = 385;
587+
pub const SYS_pkey_mprotect: ::c_long = 386;
588+
pub const SYS_rseq: ::c_long = 387;
589+
pub const SYS_io_pgetevents: ::c_long = 388;
590+
pub const SYS_semtimedop: ::c_long = 392;
591+
pub const SYS_semget: ::c_long = 393;
592+
pub const SYS_semctl: ::c_long = 394;
593+
pub const SYS_shmget: ::c_long = 395;
594+
pub const SYS_shmctl: ::c_long = 396;
595+
pub const SYS_shmat: ::c_long = 397;
596+
pub const SYS_shmdt: ::c_long = 398;
597+
pub const SYS_msgget: ::c_long = 399;
598+
pub const SYS_msgsnd: ::c_long = 400;
599+
pub const SYS_msgrcv: ::c_long = 401;
600+
pub const SYS_msgctl: ::c_long = 402;
585601
pub const SYS_pidfd_send_signal: ::c_long = 424;
586602
pub const SYS_io_uring_setup: ::c_long = 425;
587603
pub const SYS_io_uring_enter: ::c_long = 426;

0 commit comments

Comments
 (0)