| 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 ...
|
| 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 ...
|
| 70dcf6da | 20-Mar-2023 |
Ola x Nilsson <[email protected]> |
gnu: Update struct semid_ds for 64-bit time
References:
Common definition for _TIME_BITS=64 https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/bit
gnu: Update struct semid_ds for 64-bit time
References:
Common definition for _TIME_BITS=64 https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/bits/types/struct_semid64_ds_helper.h
Generic implementation used by arm: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/bits/types/struct_semid_ds.h
x86: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/x86/bits/types/struct_semid_ds.h
PowerPC: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/powerpc/bits/types/struct_semid_ds.h
MIPS: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/mips/bits/types/struct_semid_ds.h
SPARC: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/sparc/bits/types/struct_semid_ds.h
(backport <https://github.com/rust-lang/libc/pull/4433>) (cherry picked from commit a05a91cf87519c196ec4705481aec378e8f909d2)
show more ...
|
| 85f205b5 | 27-Mar-2023 |
Ola x Nilsson <[email protected]> |
gnu: Update struct msqid_ds for 64-bit time
References:
Common definition for _TIME_BITS=64 https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/bit
gnu: Update struct msqid_ds for 64-bit time
References:
Common definition for _TIME_BITS=64 https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/bits/types/struct_msqid64_ds_helper.h
Generic implementation used by x86 and arm: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/bits/types/struct_msqid_ds.h
PowerPC: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/powerpc/bits/types/struct_msqid_ds.h
MIPS: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/mips/bits/types/struct_msqid_ds.h
SPARC: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/sparc/bits/types/struct_msqid_ds.h
(backport <https://github.com/rust-lang/libc/pull/4433>) (cherry picked from commit bb5a84a4dabe325c5a24fd0cfa04f63e91cdb0fe)
show more ...
|
| e2f0562e | 20-Mar-2023 |
Ola x Nilsson <[email protected]> |
gnu: Update struct shmid_ds for 64-bit time
References:
Common definition for _TIME_BITS=64 https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/bit
gnu: Update struct shmid_ds for 64-bit time
References:
Common definition for _TIME_BITS=64 https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/bits/types/struct_shmid64_ds_helper.h
Generic implementation used by x86 and arm: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/bits/types/struct_shmid_ds.h
PowerPC: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/powerpc/bits/types/struct_shmid_ds.h
MIPS: (no changes required) https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/mips/bits/types/struct_shmid_ds.h
SPARC: https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/sparc/bits/types/struct_shmid_ds.h
(backport <https://github.com/rust-lang/libc/pull/4433>) (cherry picked from commit 831b6269787ed0f226859352fdde1befaa249d03)
show more ...
|
| e9f0ad2d | 25-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu: Handle basic time types for 32bit with _TIME_BITS=64
Set the basic types correctly for gnu_time_bits64 (_TIME_BITS=64 and _FILE_OFFSET_BITS=64).
(backport <https://github.com/rust-lang/libc/pu
gnu: Handle basic time types for 32bit with _TIME_BITS=64
Set the basic types correctly for gnu_time_bits64 (_TIME_BITS=64 and _FILE_OFFSET_BITS=64).
(backport <https://github.com/rust-lang/libc/pull/4433>) (cherry picked from commit 739873b59ceb1ae63229d71823c0b64bdb880482)
show more ...
|
| dca8f090 | 11-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu: Adapt struct flock on mips for gnu_file_offset_bits64
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit 4a7c9a98756914a515b7d9874ab620e2c3b97414) |
| f5dc0701 | 18-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu: Add missing f_flags field to struct statfs for sparc
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit c1e48123b2ea5f5cc7dd3b56a56604702c3df19d) |
| 8da41612 | 17-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu: Add the __f_unused field to struct statvfs for sparc
The __f_unused field should be the same in statvfs and statvfs64 (where it was already included) as can be seen in https://sourceware.org/gi
gnu: Add the __f_unused field to struct statvfs for sparc
The __f_unused field should be the same in statvfs and statvfs64 (where it was already included) as can be seen in https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/bits/statvfs.h;h=1aed2f54aa86e43ac1c1d3a33197b3232be76580;hb=HEAD
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit 131efe92084f65f8170f84016f5622a4eb4e12c4)
show more ...
|
| b6ad1355 | 20-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu: Correct struct stat64 for sparc
Struct stat and stat64 needs to match when gnu_file_offset_bits64 is set.
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit 22
gnu: Correct struct stat64 for sparc
Struct stat and stat64 needs to match when gnu_file_offset_bits64 is set.
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit 22ac02cc253d23e55451dafdcba60158e8be5023)
show more ...
|
| 4c67438a | 20-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu: Correct the struct stat64 padding for 32bit mips
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit 169d50bd2b1818292d2e329cb7f67373edc72517) |
| 0789132d | 18-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu: Adapt stat64 for gnu_file_offset_bits64
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit 96e81e718d4ca91f29353b362d9b5e93c176663f) |
| a8df7588 | 19-Dec-2024 |
Ola x Nilsson <[email protected]> |
gnu: Adapt struct stat for gnu_file_offset_bits64
Change the __padX members in b32/mod.rs from short to uint even though they are actually unsigned short in C. Using unsigned int will give the same
gnu: Adapt struct stat for gnu_file_offset_bits64
Change the __padX members in b32/mod.rs from short to uint even though they are actually unsigned short in C. Using unsigned int will give the same alignment, and make the struct equivalent to stat64 when gnu_file_offset_bits64 is set.
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit 5a5abc2b284829dd4dc8c901bcb702c7adcc241f)
show more ...
|
| e6202841 | 20-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu sparc: Use a separate stat struct for 32bit powerpc
Like mips and powerpc, the stat struct will become different once support for gnu_file_offset_bits64 is added.
(backport <https://github.com/
gnu sparc: Use a separate stat struct for 32bit powerpc
Like mips and powerpc, the stat struct will become different once support for gnu_file_offset_bits64 is added.
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit e1349594daebb742b2ef3af63255eaba9699d203)
show more ...
|
| 25d4c0aa | 18-Mar-2025 |
Ola x Nilsson <[email protected]> |
gnu powerpc: Use a separate stat struct for powerpc
Like mips, the stat struct will become different once support for gnu_file_offset_bits64 is added.
(backport <https://github.com/rust-lang/libc/p
gnu powerpc: Use a separate stat struct for powerpc
Like mips, the stat struct will become different once support for gnu_file_offset_bits64 is added.
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit 0c6d56cfe115847344d62756e5d7334740011572)
show more ...
|
| d788f3a3 | 20-Mar-2023 |
Ola x Nilsson <[email protected]> |
gnu: Update F_SETLK and F_SETLKW for gnu_file_offset_bits64
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit 6ed2bc820c2b55ca4711672fa199c9c4f3d4400a) |
| c2501a64 | 20-Mar-2023 |
Ola x Nilsson <[email protected]> |
gnu: Update F_GETLK for gnu_file_offset_bits64
gnu_file_offset_bits64 means _FILE_OFFSET_BITS=64.
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit 862ba8aa2f22099
gnu: Update F_GETLK for gnu_file_offset_bits64
gnu_file_offset_bits64 means _FILE_OFFSET_BITS=64.
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit 862ba8aa2f22099b4411547ec1884232c5b02ae2)
show more ...
|
| 399f9836 | 16-Dec-2024 |
Ola x Nilsson <[email protected]> |
gnu: Handle basic file types for 32bit with _FILE_OFFSET_BITS=64
Set the basic types correctly for gnu_file_offset_bits64 (_FILE_OFFSET_BITS=64).
(backport <https://github.com/rust-lang/libc/pull/4
gnu: Handle basic file types for 32bit with _FILE_OFFSET_BITS=64
Set the basic types correctly for gnu_file_offset_bits64 (_FILE_OFFSET_BITS=64).
(backport <https://github.com/rust-lang/libc/pull/4345>) (cherry picked from commit f44fdc17f287e9a3560586dcaf2a120e8b76d32e)
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) |
| d67c9945 | 17-Feb-2025 |
Ola x Nilsson <[email protected]> |
gnu b32: Remove mips cfg conditionals in struct stat
Now that mips has its own copy of struct stat, remove all the cfg conditionals used to handle the difference between mips and everything else.
F
gnu b32: Remove mips cfg conditionals in struct stat
Now that mips has its own copy of struct stat, remove all the cfg conditionals used to handle the difference between mips and everything else.
Future support for _FILE_OFFSET_BITS=64 and _TIME_BITS=64 will be much easier when the mips differences does not have to be handled in the same conditionals.
(backport <https://github.com/rust-lang/libc/pull/4276>) (cherry picked from commit a092eed1ade740da43817037ff5675b237a8606b)
show more ...
|