| 790180ba | 16-Jun-2025 |
Collin Funk <[email protected]> |
Remove unessecary semicolons from definitions of `CMSG_NXTHDR`.
(backport <https://github.com/rust-lang/libc/pull/4492>) (cherry picked from commit a2cf7c82ed85530e6262b0bc4d6f14bcda91777f) |
| c08c5073 | 15-Jun-2025 |
Collin Funk <[email protected]> |
openbsd: Fix some clippy warnings to use `pointer::cast`.
(backport <https://github.com/rust-lang/libc/pull/4490>) (cherry picked from commit 10b7252259cc6d23aba3c381f79a74e7ae86e702) |
| 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 ...
|
| 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 ...
|
| 40c1f316 | 10-May-2025 |
David Carlier <[email protected]> |
adding SO_SPLICE socket option support for freebsd >= 14.2
[ref](https://github.com/freebsd/freebsd-src/blob/d3f15bc2a51d1822795135d9ad4627dc1c7f2b18/sys/sys/socket.h#L175) and [ref](https://github.
adding SO_SPLICE socket option support for freebsd >= 14.2
[ref](https://github.com/freebsd/freebsd-src/blob/d3f15bc2a51d1822795135d9ad4627dc1c7f2b18/sys/sys/socket.h#L175) and [ref](https://github.com/freebsd/freebsd-src/blob/d3f15bc2a51d1822795135d9ad4627dc1c7f2b18/sys/sys/socketvar.h#L76)
(backport <https://github.com/rust-lang/libc/pull/4451>) (cherry picked from commit 47ac2e75f172de447f3c1205c63ac6afaacd61de)
show more ...
|
| a598506f | 15-Apr-2025 |
Yuri Astrakhan <[email protected]> |
chore: apply some clippy lints
(backport <https://github.com/rust-lang/libc/pull/4415>) [ drop changes around the FreeBSD version in build.rs since the logic isn't the same - Trevor ] (cherry pick
chore: apply some clippy lints
(backport <https://github.com/rust-lang/libc/pull/4415>) [ drop changes around the FreeBSD version in build.rs since the logic isn't the same - Trevor ] (cherry picked from commit a283b9e66d4a8e9371b0aa69d8534010a1c7d9e7)
show more ...
|
| 66b58759 | 14-Apr-2025 |
Yuri Astrakhan <[email protected]> |
chore: minor cleanup `mode_t` usage
`crate::mode_t` is almost never needed because it is part of prelude. Moreover, in many cases `mode_t` was already used without the prefix - thus confusing if th
chore: minor cleanup `mode_t` usage
`crate::mode_t` is almost never needed because it is part of prelude. Moreover, in many cases `mode_t` was already used without the prefix - thus confusing if they are different or not. Keeping it the same helps readability.
(backport <https://github.com/rust-lang/libc/pull/4405>) [ Resolve conflict around vxworks S_* constants - Trevor ] (cherry picked from commit 1984cc22406f45cae7d6c6e2a1d1bc3faa6dc3e8)
show more ...
|
| 651bdf22 | 12-Mar-2025 |
Guillaume Gomez <[email protected]> |
Add missing `filedesc` and `fdescenttbl` in FreeBSD
[ edited the message to be more specific - Trevor ] (backport <https://github.com/rust-lang/libc/pull/4327>) (cherry picked from commit a23e0e0bc9
Add missing `filedesc` and `fdescenttbl` in FreeBSD
[ edited the message to be more specific - Trevor ] (backport <https://github.com/rust-lang/libc/pull/4327>) (cherry picked from commit a23e0e0bc99dae996491249c36b163dea13427eb)
show more ...
|
| f7f3c7c9 | 04-Apr-2025 |
Trevor Gross <[email protected]> |
FreeBSD: Deprecate TCP_PCAP_OUT and TCP_PCAP_IN
FreeBSD removed these upstream in [1], so deprecate them here. This resolves a recent CI failure.
These constants were originally added in [2].
[1]:
FreeBSD: Deprecate TCP_PCAP_OUT and TCP_PCAP_IN
FreeBSD removed these upstream in [1], so deprecate them here. This resolves a recent CI failure.
These constants were originally added in [2].
[1]: https://github.com/freebsd/freebsd-src/commit/6e76489098c6dc415ac3f2ae084154c3c22558ec [2]: https://github.com/rust-lang/libc/pull/1151
(backport <https://github.com/rust-lang/libc/pull/4381>) (cherry picked from commit c8f09101420163c946cc3ecbb27de54263a3effb)
show more ...
|
| cb50c4a7 | 16-Mar-2025 |
Dan Gohman <[email protected]> |
Add timerfd APIs for illumos and NetBSD.
illumos and NetBSD >= 10 support Linux-compatble timerfd APIs.
This is based on the headers for [illumos] and [NetBSD].
[illumos]: https://code.illumos.org
Add timerfd APIs for illumos and NetBSD.
illumos and NetBSD >= 10 support Linux-compatble timerfd APIs.
This is based on the headers for [illumos] and [NetBSD].
[illumos]: https://code.illumos.org/plugins/gitiles/illumos-gate/+/refs/heads/master/usr/src/uts/common/sys/timerfd.h#34 [NetBSD]: https://nxr.netbsd.org/xref/src/sys/sys/timerfd.h#44
(backport <https://github.com/rust-lang/libc/pull/4333>) (cherry picked from commit b2b17022cbd4190cbf342961f1162daee4bb037f)
show more ...
|
| 5746f8e4 | 09-Mar-2025 |
Guillaume Gomez <[email protected]> |
Add missing macos proc types and constants
(backport <https://github.com/rust-lang/libc/pull/4310>) (cherry picked from commit f3c54e8754d901ec5f59bd18ae794302ee68f581) |
| 83f6dcfb | 03-Mar-2025 |
John Marino <[email protected]> |
Relocate <spawn.h> functions to define them to dragonfly.
While here: - Relocate mkostemp and mkostemps functions for same reason - Update semver tests for DF spawn and mkostemp(s)
(backport <h
Relocate <spawn.h> functions to define them to dragonfly.
While here: - Relocate mkostemp and mkostemps functions for same reason - Update semver tests for DF spawn and mkostemp(s)
(backport <https://github.com/rust-lang/libc/pull/4294>) [ update constants to c_int to match libc-0.2 - Trevor ] (cherry picked from commit a294be6fcad4d1297e303de42f459aafe5f5a8f0)
show more ...
|
| 2aabbf03 | 02-Mar-2025 |
Tobias Heider <[email protected]> |
closefrom: add NetBSD, OpenBSD, DragonflyBSD
NetBSD, OpenBSD and DragonFly return c_int, FreeBSD returns void, so we can't just add it in freebsdlike. Apple doesn't seem to support closefrom at all
closefrom: add NetBSD, OpenBSD, DragonflyBSD
NetBSD, OpenBSD and DragonFly return c_int, FreeBSD returns void, so we can't just add it in freebsdlike. Apple doesn't seem to support closefrom at all at this point.
(backport <https://github.com/rust-lang/libc/pull/4290>) (cherry picked from commit 8512ab4fed718fae6555838389d95d666d0536ed)
show more ...
|
| 1d231c33 | 25-Feb-2025 |
Tobias Heider <[email protected]> |
bsd: add devname(3)
(backport <https://github.com/rust-lang/libc/pull/4285>) (cherry picked from commit d27a2840b26ebd591858653bff3b684d40256721) |
| 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) |
| 24430c76 | 18-Dec-2024 |
Ivan Gankevich <[email protected]> |
Make all `major`, `minor`, `makedev` into `const fn`.
(backport <https://github.com/rust-lang/libc/pull/4208>) (cherry picked from commit 37c3333c07105cf29245941ecbbd5733ad0ddd22) |
| 25245d29 | 08-Jan-2025 |
lvllvl <[email protected]> |
chore: add labels to FIXMEs
(backport <https://github.com/rust-lang/libc/pull/4232>) (cherry picked from commit ccf7b41dd47aa6ab07bf14561b1e9f37e2e900ea) |
| 7a7fe468 | 19-Dec-2024 |
Johannes Altmanninger <[email protected]> |
Apply modulo 256 to BSD WEXITSTATUS
wait(2p)[^1] says
> WEXITSTATUS(status) > If WIFEXITED(status) is true, evaluates to the low-order 8 bits > of the argument passed to _exit(2) or
Apply modulo 256 to BSD WEXITSTATUS
wait(2p)[^1] says
> WEXITSTATUS(status) > If WIFEXITED(status) is true, evaluates to the low-order 8 bits > of the argument passed to _exit(2) or exit(3) by the child.
meaning WEXITSTATUS(status) is an 8-bit value. We accidentally return too many bits. For example WEXITSTATUS(-1) returns -1 instead of 255.
Fix it, matching the C library and our other WEXITSTATUS implementations.
[^1] https://manpage.me/index.cgi?apropos=0&q=wait&sektion=2&manpath=FreeBSD+12-CURRENT+and+Ports&arch=default&format=html
Originally reported at https://github.com/fish-shell/fish-shell/issues/10919
(backport <https://github.com/rust-lang/libc/pull/4213>) (cherry picked from commit f9cde2f7241fca7fe5c5d9564c8d361847f42f9e)
show more ...
|
| b6682523 | 21-Jun-2024 |
Жунёва Мария Михайловна <[email protected]> |
Add structures for freebsd
(backport <https://github.com/rust-lang/libc/pull/3756>) (cherry picked from commit 187468d37a3e9d785d915bfe7b82f81c3c6dc3f1) |
| e2f92909 | 04-Feb-2025 |
Aphek <[email protected]> |
Copy definitions from core::ffi and centralize them
(backport <https://github.com/rust-lang/libc/pull/4256>) (cherry picked from commit 95446f458e472511d65e560224c1b85570e50944)
[ include the neces
Copy definitions from core::ffi and centralize them
(backport <https://github.com/rust-lang/libc/pull/4256>) (cherry picked from commit 95446f458e472511d65e560224c1b85570e50944)
[ include the necessary changes for psp, which isn't part of the original commit since the target is not present on main - Trevor ]
show more ...
|
| 5553e180 | 14-Feb-2025 |
Thomas Klausner <[email protected]> |
NetBSD: fix getmntinfo for NetBSD
(backport <https://github.com/rust-lang/libc/pull/4265>) (cherry picked from commit e1e9d97c1340e037469fb2dc3ae1d3a309b1c9c7) |
| e04c86e3 | 05-Feb-2025 |
Trevor Gross <[email protected]> |
FreeBSD: Add the new `st_filerev` field to `stat32` for FreeBSD 15
This field appears to have been added recently [1].
[1]: https://github.com/freebsd/freebsd-src/commit/b4663a8d111767206bb3ebcfec5
FreeBSD: Add the new `st_filerev` field to `stat32` for FreeBSD 15
This field appears to have been added recently [1].
[1]: https://github.com/freebsd/freebsd-src/commit/b4663a8d111767206bb3ebcfec5b95a6b88bc720
(backport <https://github.com/rust-lang/libc/pull/4254>) (cherry picked from commit f691a1a52fd6df5c6a58b526ff568d4a17049212)
show more ...
|
| 8448147a | 18-Dec-2024 |
Taiki Endo <[email protected]> |
Define c_char at top-level and remove per-target c_char definitions
(backport <https://github.com/rust-lang/libc/pull/4202>) (cherry picked from commit 0a02b941cf105dc4d4c5b5bd1ddc7bb546ad89c9) |
| a72002ac | 23-Dec-2024 |
Trevor Gross <[email protected]> |
Allow `unpredictable_function_pointer_comparisons` in another place
Nightly must have just recently updated how this gets checked, we are getting new errors in CI. Allow the lint in another place.
Allow `unpredictable_function_pointer_comparisons` in another place
Nightly must have just recently updated how this gets checked, we are getting new errors in CI. Allow the lint in another place.
(backport <https://github.com/rust-lang/libc/pull/4217>) (cherry picked from commit 1de1c0afc15d033923fbd8e0037cf2dfc2b6baf7)
show more ...
|
| 7fc5940d | 10-Dec-2024 |
David Carlier <[email protected]> |
freebsd add more socket TCP stack constants.
[ref](https://man.freebsd.org/cgi/man.cgi?query=tcp)
(backport <https://github.com/rust-lang/libc/pull/4193>) (cherry picked from commit abf49f6700de09c
freebsd add more socket TCP stack constants.
[ref](https://man.freebsd.org/cgi/man.cgi?query=tcp)
(backport <https://github.com/rust-lang/libc/pull/4193>) (cherry picked from commit abf49f6700de09c1a1801226f8e973a455e6eb43)
show more ...
|