| 51340584 | 15-Jun-2025 |
Trevor Gross <[email protected]> |
Allow new `unpredictable_function_pointer_comparisons` lints
These appeared in a recent nightly from our `PartialEq` derives. Add `allow`s where needed to suppress them, since removing the derive wo
Allow new `unpredictable_function_pointer_comparisons` lints
These appeared in a recent nightly from our `PartialEq` derives. Add `allow`s where needed to suppress them, since removing the derive would be breaking.
(backport <https://github.com/rust-lang/libc/pull/4489>) [ applied to PSP as well - Trevor ] (cherry picked from commit e6378105c41a6bf525bd6a746db11e0c52ce172e)
show more ...
|
| 1a418edf | 02-Jun-2025 |
Trevor Gross <[email protected]> |
lints: Remove `allow(dead_code)`
As discussed in [1], some changes to dead code warnings caused a lot of code to be inaccurately reported as dead in `libc`. The change was reverted and improved sinc
lints: Remove `allow(dead_code)`
As discussed in [1], some changes to dead code warnings caused a lot of code to be inaccurately reported as dead in `libc`. The change was reverted and improved since then, so we no longer need to skip this check.
Includes some changes to make things pass with the lint.
[1]: https://github.com/rust-lang/libc/issues/3740
(backport <https://github.com/rust-lang/libc/pull/4473>) (cherry picked from commit 77a21a816490ce7766dd653725c7e99743e4e315)
show more ...
|
| c04c92ed | 02-Jun-2025 |
Trevor Gross <[email protected]> |
Replace handwritten `Debug` impls with derives
`s_no_extra_traits!` doesn't derive `Debug` so there are a lot of handwritten implementations. However, since we have a derive-like solution for unions
Replace handwritten `Debug` impls with derives
`s_no_extra_traits!` doesn't derive `Debug` so there are a lot of handwritten implementations. However, since we have a derive-like solution for unions now (printing them like an opaque struct), there really isn't any reason these can't all be derived.
Add `derive(Debug)` to `s_no_extra_traits`, still gated behind `feature = "extra_traits"`, which allows getting rid of manual implementations.
(backport <https://github.com/rust-lang/libc/pull/4471>) (cherry picked from commit 65c39bf1b0c7b904cf512280860120307d17703b)
show more ...
|
| 3db74e3c | 11-May-2025 |
The 8472 <[email protected]> |
linux: add new flags for pwritev2/preadv2
(backport <https://github.com/rust-lang/libc/pull/4452>) (cherry picked from commit 6e7549d34f839aa3b76476df0408a155fec81186) |
| a066096e | 03-May-2025 |
Reagan Bohan <[email protected]> |
musl: aarch64: update type of ipc_perm->__seq to match upstream
The architecture-specific definitions was removed in upstream commit 319b2d0, changing the type to the generic definition of int.
(ba
musl: aarch64: update type of ipc_perm->__seq to match upstream
The architecture-specific definitions was removed in upstream commit 319b2d0, changing the type to the generic definition of int.
(backport <https://github.com/rust-lang/libc/pull/4443>) (cherry picked from commit 3f911737768f78469952fe2604b38f4bc52374e1)
show more ...
|
| 53a99ed9 | 03-May-2025 |
Reagan Bohan <[email protected]> |
musl: struct ipc_perm: rename `__ipc_perm_key` to `__key`
This isn't strictly related to musl 1.2.3, however now presents a good time to change it, before the 1.0 release.
(backport <https://github
musl: struct ipc_perm: rename `__ipc_perm_key` to `__key`
This isn't strictly related to musl 1.2.3, however now presents a good time to change it, before the 1.0 release.
(backport <https://github.com/rust-lang/libc/pull/4443>) (cherry picked from commit 3f81aadb0f1d1381c78f9b49da5267b3c466b138)
show more ...
|
| 37cde5af | 03-May-2025 |
Reagan Bohan <[email protected]> |
musl: struct tcp_info: add new fields since 1.2.0/1.2.2
This reflects the upstream commits, 5e0c9f2 and d4f2981, which reflect changes in linux 5.4 and 5.5 respectively
As mentioned in the comments
musl: struct tcp_info: add new fields since 1.2.0/1.2.2
This reflects the upstream commits, 5e0c9f2 and d4f2981, which reflect changes in linux 5.4 and 5.5 respectively
As mentioned in the comments, this is possible now as the CI musl version has updated and the headers are newer.
(backport <https://github.com/rust-lang/libc/pull/4443>) (cherry picked from commit fb4212a6bd14f0378a3c6fcdd6f8bd64cc79a8fb)
show more ...
|
| d63132d4 | 03-May-2025 |
Reagan Bohan <[email protected]> |
musl: fix utmpx struct layout
This ut_session has changed from long to int + padding in newer versions. This was already reflected on loongarch64 and ohos - this commit adds this change, and re-enab
musl: fix utmpx struct layout
This ut_session has changed from long to int + padding in newer versions. This was already reflected on loongarch64 and ohos - this commit adds this change, and re-enables the test when musl_v1_2_3 is set.
Co-authored-by: Ariadne Conill <[email protected]>
(backport <https://github.com/rust-lang/libc/pull/4443>) (cherry picked from commit 1038c7f1f4dbd6a39b867263dc5478806744f5a0)
show more ...
|
| b553d1f7 | 03-May-2025 |
Reagan Bohan <[email protected]> |
musl: Fix O_LARGEFILE constant value.
This was accidentally set to 0 in upstream, but fixed in commit b8b729b. If running with prior versions without that commit, this commit effectively backports i
musl: Fix O_LARGEFILE constant value.
This was accidentally set to 0 in upstream, but fixed in commit b8b729b. If running with prior versions without that commit, this commit effectively backports it.
(backport <https://github.com/rust-lang/libc/pull/4443>) (cherry picked from commit 686aa7a3a2ead357a732d018e4295c9a92312132)
show more ...
|
| f1e459f1 | 06-May-2025 |
Mattias Nissler <[email protected]> |
Add MADV_SOFT_OFFLINE definition for RISC-V musl targets
(backport <https://github.com/rust-lang/libc/pull/4447>) (cherry picked from commit 118a904c4e690327d2ca3a633822ac1171cae5fa) |
| e9fc5808 | 07-May-2025 |
WANG Rui <[email protected]> |
musl: loongarch64: Define MADV_SOFT_OFFLINE constant
(backport <https://github.com/rust-lang/libc/pull/4448>) (cherry picked from commit 054c95888c2b20b341166ff49a1252c180041005) |
| 2f3e8685 | 12-Apr-2025 |
rusty-snake <[email protected]> |
Update pidfd constants and types (Linux 6.9-6.15)
(backport <https://github.com/rust-lang/libc/pull/4402>) (cherry picked from commit 126f2c66d23a00f8dfd1d99459fb6a1f9011dfbb) |
| 5f922548 | 25-Apr-2025 |
Trevor Gross <[email protected]> |
Fix an `unnecessary_transmutes` from a recent nightly
(backport <https://github.com/rust-lang/libc/pull/4429>) (cherry picked from commit 673af93ebd3f3b830f2d1a76eb10d622b7731d83) |
| 54e402ff | 08-Apr-2025 |
WANG Rui <[email protected]> |
musl: loongarch64: Fix the struct ipc_perm bindings
Refer: https://git.musl-libc.org/cgit/musl/tree/arch/generic/bits/ipc.h?h=v1.2.5
(backport <https://github.com/rust-lang/libc/pull/4384>) (cherry
musl: loongarch64: Fix the struct ipc_perm bindings
Refer: https://git.musl-libc.org/cgit/musl/tree/arch/generic/bits/ipc.h?h=v1.2.5
(backport <https://github.com/rust-lang/libc/pull/4384>) (cherry picked from commit 65a7737ef234a7deb5e367571fa2de6106141e33)
show more ...
|
| a358dae4 | 15-Mar-2025 |
Etienne Cordonnier <[email protected]> |
Add missing utmpx apis for linux musl
Close https://github.com/rust-lang/libc/issues/4322
Also add a deprecation warning, because those functions are only implemented as stubs inside musl.
Signed-
Add missing utmpx apis for linux musl
Close https://github.com/rust-lang/libc/issues/4322
Also add a deprecation warning, because those functions are only implemented as stubs inside musl.
Signed-off-by: Etienne Cordonnier <[email protected]>
(backport <https://github.com/rust-lang/libc/pull/4332>) (cherry picked from commit 42ead6d709c373ad96ad88245d4345510bc0a32b)
show more ...
|
| de071942 | 16-Mar-2025 |
12101111 <[email protected]> |
Remove O_FSYNC, musl don't define it. Use O_SYNC instead.
(backport <https://github.com/rust-lang/libc/pull/4335>) (cherry picked from commit 60a445c1ff647ae0ae4373d20a75d1132c874509) |
| 2d5b81ad | 16-Mar-2025 |
12101111 <[email protected]> |
Fix syscall table
(backport <https://github.com/rust-lang/libc/pull/4335>) (cherry picked from commit 5c778ef9e422f165fd250a7ebe97439a984927be) |
| 0637411a | 16-Mar-2025 |
12101111 <[email protected]> |
Fix the value of SA_ONSTACK
(backport <https://github.com/rust-lang/libc/pull/4335>) (cherry picked from commit 9f7b63fa8722c35375cffe1337cf3972a4f797fe) |
| b56ee816 | 16-Mar-2025 |
12101111 <[email protected]> |
Remove RTLD_DEEPBIND. It's a glibc extension and not supported by musl.
(backport <https://github.com/rust-lang/libc/pull/4335>) (cherry picked from commit 60b8b39390cc2b149d05147a12834aba35d41b6f) |
| c271bffe | 20-Mar-2025 |
Tamir Duberstein <[email protected]> |
musl: enable `getrandom` on all musl platforms
The existing bindings were added in #1399 and limited to targets where rustc used musl version >= 1.1.20 which was not all musl targets at that time. S
musl: enable `getrandom` on all musl platforms
The existing bindings were added in #1399 and limited to targets where rustc used musl version >= 1.1.20 which was not all musl targets at that time. Since https://github.com/rust-lang/rust/pull/107129 all musl targets use musl 1.2.3. Hence, move the binding to the module root so it is available for all musl targets.
(backport <https://github.com/rust-lang/libc/pull/4346>) (cherry picked from commit 77d301184110ec08defe78b4ba08450072eb5fb5)
show more ...
|
| fa16c8e3 | 06-Mar-2025 |
Koutheir Attouchi <[email protected]> |
Make msqid_ds.__msg_cbytes public.
(backport <https://github.com/rust-lang/libc/pull/4301>) (cherry picked from commit a4fd45edc8e9807fc0e7f5e5ac737e1cf3f2b7a6) |
| 9f7928d7 | 10-Jul-2024 |
Arjun Ramesh <[email protected]> |
Added bindings for `wasm32-wali-linux-musl` target
Base libc crate symbols without named syscall stubbing in this crate. Basic `libc-test` support is included, but the target is currently untested
Added bindings for `wasm32-wali-linux-musl` target
Base libc crate symbols without named syscall stubbing in this crate. Basic `libc-test` support is included, but the target is currently untested
(backport <https://github.com/rust-lang/libc/pull/4244>) (cherry picked from commit 1b8acf5cbe21f84059a973a85a6ef9b79598495a)
show more ...
|
| 903dc232 | 24-Feb-2025 |
lvllvl <[email protected]> |
chore: add labels to each FIXME
(backport <https://github.com/rust-lang/libc/pull/4231>) (cherry picked from commit 861246a7e1ae9d9ad6b8d356ebb47ab5ad1b43df) |
| 01499643 | 14-Feb-2025 |
David Carlier <[email protected]> |
linux: deprecate obsolete packet filter interfaces.
sockaddr_ll/AF_PACKET are in place since Linux 2.2
(backport <https://github.com/rust-lang/libc/pull/4267>) (cherry picked from commit eb78ad0090
linux: deprecate obsolete packet filter interfaces.
sockaddr_ll/AF_PACKET are in place since Linux 2.2
(backport <https://github.com/rust-lang/libc/pull/4267>) (cherry picked from commit eb78ad0090fb2d2195bd4564368468334d399dea)
show more ...
|
| 0987973a | 27-Nov-2024 |
arctic-alpaca <[email protected]> |
move AF_XDP structs and constants to linux/mod.rs
(backport <https://github.com/rust-lang/libc/pull/4163>) (cherry picked from commit 7eaea55a4571530a4ca1cc5431c95cdc9b05d38a) |