| ce31fdaf | 17-Jun-2025 |
Trevor Gross <[email protected]> |
chore: release libc 0.2.174 |
| 264a5399 | 16-Jun-2025 |
Ola x Nilsson <[email protected]> |
Add missing timespec.tv_nsec for gnux32
The tv_nsec field was removed by mistake for gnux32 in bbaa0173daa4 ("gnu: Update struct timespec for GNU _TIME_BITS=64").
Fixes #4495
Link: https://github.
Add missing timespec.tv_nsec for gnux32
The tv_nsec field was removed by mistake for gnux32 in bbaa0173daa4 ("gnu: Update struct timespec for GNU _TIME_BITS=64").
Fixes #4495
Link: https://github.com/bminor/glibc/blob/d1b27eeda3d92f33314e93537437cab11ddf4777/time/bits/types/struct_timespec.h#L11-L31
[ add referenced commit summary and link to the message - Trevor ]
(backport <https://github.com/rust-lang/libc/pull/4497>) (cherry picked from commit e9bd0b43e0b6830072e5af3e7c6618ec62732363)
show more ...
|
| 7d92568e | 10-Jun-2025 |
Huang Qi <[email protected]> |
fix: use nlink_t type for st_nlink in struct stat definition for NuttX
(backport <https://github.com/rust-lang/libc/pull/4483>) (cherry picked from commit 8620c2c249b6f1b99f026c0382c80ef03f497efc) |
| 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) |
| 1e99d50b | 14-Jun-2025 |
The 8472 <[email protected]> |
make pidfd_info fields pub
the struct appers to be extensible, so also mark it as non_exhaustive
(backport <https://github.com/rust-lang/libc/pull/4487>) (cherry picked from commit 4dc50ebfd4750a5b
make pidfd_info fields pub
the struct appers to be extensible, so also mark it as non_exhaustive
(backport <https://github.com/rust-lang/libc/pull/4487>) (cherry picked from commit 4dc50ebfd4750a5b7459482aa2618387a0bdbb7f)
show more ...
|
| 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 ...
|
| 6787debb | 13-Jun-2025 |
Trevor Gross <[email protected]> |
Fix publishing on the `libc-0.2` branch
In the cherry pick for d8e39a2823 ("chore: cleanup Cargo.toml and rm perl"), I accidentally picked up the `publish = false` line which isn't intended for this
Fix publishing on the `libc-0.2` branch
In the cherry pick for d8e39a2823 ("chore: cleanup Cargo.toml and rm perl"), I accidentally picked up the `publish = false` line which isn't intended for this branch. Remove it so we get releases again.
show more ...
|
| 2d0dfd33 | 09-Jun-2025 |
Trevor Gross <[email protected]> |
chore: release libc 0.2.173 |
| 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 ...
|
| 7be1a7a7 | 02-Jun-2025 |
Trevor Gross <[email protected]> |
lints: Remove `allow(redundant_semicolons)`
(backport <https://github.com/rust-lang/libc/pull/4473>) (cherry picked from commit 0b6aa1b296ad12ea2062ae90a0cfe8688cdbef02) |
| 53301c20 | 02-Jun-2025 |
Trevor Gross <[email protected]> |
lints: Warn rather than deny by default
We check with `-Dwarnings` in CI, so these still get checked. This change serves to prevent failures to compile downstream if the lint expectations are not me
lints: Warn rather than deny by default
We check with `-Dwarnings` in CI, so these still get checked. This change serves to prevent failures to compile downstream if the lint expectations are not met on untested targets.
(backport <https://github.com/rust-lang/libc/pull/4473>) (cherry picked from commit 260e35720ae963cedec40941775200ec3fee16cf)
show more ...
|
| 6595c614 | 03-Jun-2025 |
Xing Xue <[email protected]> |
Add AIX triple to Cargo.toml for doc.
(backport <https://github.com/rust-lang/libc/pull/4475>) (cherry picked from commit 187707b89aaf7470dc858a4b21f29ec121ad68f7) |
| 600d8adc | 01-Jun-2025 |
mbyx <[email protected]> |
Add ctest-next stub and expected dependencies
(backport <https://github.com/rust-lang/libc/pull/4467>) [ remove dependencies so this can remain a stub - Trevor ] (cherry picked from commit 0763c6553
Add ctest-next stub and expected dependencies
(backport <https://github.com/rust-lang/libc/pull/4467>) [ remove dependencies so this can remain a stub - Trevor ] (cherry picked from commit 0763c6553ad3e012509936c8b3a3ff54930e2bbe)
show more ...
|
| a8e40d74 | 02-Jun-2025 |
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
build(deps): bump vmactions/solaris-vm from 1.1.3 to 1.1.4
Bumps [vmactions/solaris-vm](https://github.com/vmactions/solaris-vm) from 1.1.3 to 1.1.4. - [Release notes](https://github.com/vmactions/s
build(deps): bump vmactions/solaris-vm from 1.1.3 to 1.1.4
Bumps [vmactions/solaris-vm](https://github.com/vmactions/solaris-vm) from 1.1.3 to 1.1.4. - [Release notes](https://github.com/vmactions/solaris-vm/releases) - [Commits](https://github.com/vmactions/solaris-vm/compare/v1.1.3...v1.1.4)
--- updated-dependencies: - dependency-name: vmactions/solaris-vm dependency-version: 1.1.4 dependency-type: direct:production update-type: version-update:semver-patch ...
Signed-off-by: dependabot[bot] <[email protected]>
(backport <https://github.com/rust-lang/libc/pull/4474>) (cherry picked from commit c3cf1dec4c8553fe049536c050527e3f0343bae9)
show more ...
|
| 2a04153c | 02-Jun-2025 |
Trevor Gross <[email protected]> |
ci: Disable the i686 Android job
This job has been failing a lot due to failures installing packages:
> [ 5/13] RUN apt-get install -y --no-install-recommends file wget ca-certificates
ci: Disable the i686 Android job
This job has been failing a lot due to failures installing packages:
> [ 5/13] RUN apt-get install -y --no-install-recommends file wget ca-certificates python3 unzip expect openjdk-8-jre libstdc++6:i386 libpulse0: 8.400 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxcb/libxcb-randr0_1.17.0-2_amd64.deb 403 Forbidden [IP: 185.125.190.82 80] 8.400 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxcb/libxcb-shm0_1.17.0-2_amd64.deb 403 Forbidden [IP: 185.125.190.82 80] 8.400 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxcb/libxcb-sync1_1.17.0-2_amd64.deb 403 Forbidden [IP: 185.125.190.82 80] 8.400 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxcb/libxcb-xfixes0_1.17.0-2_amd64.deb 403 Forbidden [IP: 185.125.190.82 80] 8.400 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxfixes/libxfixes3_6.0.0-2build1_amd64.deb 403 Forbidden [IP: 185.125.190.82 80] 8.400 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxshmfence/libxshmfence1_1.3-1build5_amd64.deb 403 Forbidden [IP: 185.125.190.82 80] 8.400 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxxf86vm/libxxf86vm1_1.1.4-1build4_amd64.deb 403 Forbidden [IP: 185.125.190.82 80] 8.400 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libd/libdrm/libdrm-amdgpu1_2.4.122-1_amd64.deb 403 Forbidden [IP: 185.125.190.82 80] 8.400 E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libp/libpciaccess/libpciaccess0_0.17-3build1_amd64.deb 403 Forbidden [IP: 185.125.190.82 80] 8.400 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Assume that this is a temporary problem on the repository side and disable the job for now.
Issue regarding Android CI: https://github.com/rust-lang/libc/issues/4297
(backport <https://github.com/rust-lang/libc/pull/4470>) (cherry picked from commit eba1e9da88fd5a9aa5462c541f8486b3d5fddd75)
show more ...
|
| 9810e4b6 | 02-Jun-2025 |
Trevor Gross <[email protected]> |
hurd: Fix build from missing `fpos_t`
In 872642ad ("gnu: Add proper structs for fpos_t and fpos64_t"), `fpos_t` was changed from an opaque struct to one with a definition on Linux GNU, with the Unix
hurd: Fix build from missing `fpos_t`
In 872642ad ("gnu: Add proper structs for fpos_t and fpos64_t"), `fpos_t` was changed from an opaque struct to one with a definition on Linux GNU, with the Unix fallback configured as for targets without a GNU `target_env`. However, GNU hurd matches `target_env = "gnu"`, but doesn't have a `fpos` implementation.
Fix the build by adjusting the fallback `cfg` to be more specific. Eventually we probably want the same definition on Hurd as on Linux.
(backport <https://github.com/rust-lang/libc/pull/4472>) (cherry picked from commit 72f49c99656e70eb70e20b444f3be85f3302f306)
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 ...
|
| 44b29ed5 | 25-May-2025 |
Sebastien Marie <[email protected]> |
openbsd: ignore some constants in CI (removed in upcoming OpenBSD 7.8)
(backport <https://github.com/rust-lang/libc/pull/4461>) (cherry picked from commit f5220c14ac26b67bcfc05567f562c8d497a9ce4a) |
| f4619be1 | 25-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu: Adapt struct stat64 for gnu_time_bits64
References:
ARM: https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/arm/bits/struct_stat.h
MIPS: htt
gnu: Adapt struct stat64 for gnu_time_bits64
References:
ARM: https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/arm/bits/struct_stat.h
MIPS: https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/mips/bits/struct_stat.h
POWERPC: https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/powerpc/bits/struct_stat.h
SPARC: https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/sparc/bits/struct_stat.h
x86: https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/x86/bits/struct_stat.h
Common definition for _TIME_BITS=64 https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/bits/struct_stat_time64_helper.h
(backport <https://github.com/rust-lang/libc/pull/4433>) (cherry picked from commit 402a8513eb44dc5cd413cf105d59be0d0bd50b55)
show more ...
|
| 36b2e484 | 25-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu: Adapt struct stat for gnu_time_bits64
References:
ARM: https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/arm/bits/struct_stat.h
MIPS: https
gnu: Adapt struct stat for gnu_time_bits64
References:
ARM: https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/arm/bits/struct_stat.h
MIPS: https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/mips/bits/struct_stat.h
POWERPC: https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/powerpc/bits/struct_stat.h
SPARC: https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/sparc/bits/struct_stat.h
x86: https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/x86/bits/struct_stat.h
Common definition for _TIME_BITS=64 https://github.com/bminor/glibc/blob/77930e0447e0b37a129db0e13c6c6f5e60a3019e/sysdeps/unix/sysv/linux/bits/struct_stat_time64_helper.h
(backport <https://github.com/rust-lang/libc/pull/4433>) (cherry picked from commit 8995e0be55ac62886d6e1568ca4f0ae785986091)
show more ...
|
| 21e5e3d7 | 17-Mar-2023 |
Ola x Nilsson <[email protected]> |
gnu: Handle timeval.tv_usec for glibc 64-bit time_t
For 64 bit time on 32 bit linux glibc timeval.tv_usec is actually __suseconds64_t (64 bits) while suseconds_t is still 32 bits.
References: https
gnu: Handle timeval.tv_usec for glibc 64-bit time_t
For 64 bit time on 32 bit linux glibc timeval.tv_usec is actually __suseconds64_t (64 bits) while suseconds_t is still 32 bits.
References: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/time/bits/types/struct_timeval.h
(backport <https://github.com/rust-lang/libc/pull/4433>) (cherry picked from commit b63a6521b6edad304761a1f1e73f24aaf1e23c8f)
show more ...
|
| 37f00731 | 25-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu: Adapt struct timex for gnu_time_bits64
Refrences: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/bits/timex.h
(backport <https://github.c
gnu: Adapt struct timex for gnu_time_bits64
Refrences: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/bits/timex.h
(backport <https://github.com/rust-lang/libc/pull/4433>) (cherry picked from commit 8d0f97b3818851bfb7a98f6deaf6e67424585611)
show more ...
|
| 516e529e | 25-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu: Move struct timex from gnu to gnu/b32 and gnu/b64
Will make it easier to adapt for _TIME_BITS=64
(backport <https://github.com/rust-lang/libc/pull/4433>) (cherry picked from commit 87d9e201c3f
gnu: Move struct timex from gnu to gnu/b32 and gnu/b64
Will make it easier to adapt for _TIME_BITS=64
(backport <https://github.com/rust-lang/libc/pull/4433>) (cherry picked from commit 87d9e201c3feb62e58f6ede10637ecc45db2f7b4)
show more ...
|
| dfcfcf84 | 27-Mar-2023 |
Ola x Nilsson <[email protected]> |
gnu: Update struct timespec for GNU _TIME_BITS=64
Use a GNU libc specific version of struct timespec in unix/linux_like/linux/gnu and keep the version in unix for all other unix libc's.
Big-endian
gnu: Update struct timespec for GNU _TIME_BITS=64
Use a GNU libc specific version of struct timespec in unix/linux_like/linux/gnu and keep the version in unix for all other unix libc's.
Big-endian platforms wants 32 bits of padding before tv_nsec, little-endian after.
GNU libc always uses long for tv_nsec.
References:
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/time/bits/types/struct_timespec.h
(backport <https://github.com/rust-lang/libc/pull/4433>) (cherry picked from commit bbaa0173daa439f55e6fabfd71982fc579bb3e8c)
show more ...
|