| 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 ...
|
| 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 ...
|
| 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 ...
|
| 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 ...
|
| 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 ...
|
| 8f3da768 | 21-Nov-2024 |
Ola x Nilsson <[email protected]> |
gnu: Use _TIME_BITS=64 versions of glibc symbols
Set the link names of relevant symbols to use be the same as when a C program is built against GNU libc with -D_TIME_BITS=64 -- which also requires -
gnu: Use _TIME_BITS=64 versions of glibc symbols
Set the link names of relevant symbols to use be the same as when a C program is built against GNU libc with -D_TIME_BITS=64 -- which also requires -D_FILE_OFFSET_BITS=64.
References:
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/io/fcntl.h fcntl on line 190
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/io/sys/poll.h ppoll on line 71
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/io/sys/stat.h difftime on line 86 fstat on line 218 fstat64 on line 249 fstatat on line 270 fstatat64 on line 296 futimens on line 456 gmtime on line 140 gmtime_r on line 163 localtime on line 141 localtime_r on line 167 lstat on line 318 lstat64 on line 318 mktime on line 88 stat on line 214 stat64 on line 214 time on line 85 timegm on line 249 utimensat on line 439
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/io/utime.h utime on line 56
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/misc/sys/ioctl.h ioctl on line 45
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/misc/sys/select.h pselect on line 134 select on line 108
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/posix/glob.h glob on line 154 glob64 on line 174 globfree on line 160 globfree64 on line 180
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/posix/sched.h sched_rr_get_interval on line 81
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/posix/sys/wait.h wait4 on line 163
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/resource/sys/resource.h getrusage on line 93
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/rt/aio.h aio_suspend on line 197
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/rt/mqueue.h mq_timedreceive on line 91 mq_timedsend on line 99
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/signal/signal.h sigtimedwait on line 279
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/socket/sys/socket.h getsockopt on line 260 recvmmsg on line 219 recvmsg on line 219 sendmmsg on line 199 sendmsg on line 178 setsockopt on line 281
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/nptl/pthread.h pthread_cond_timedwait on line 1151 pthread_mutex_timedlock on line 805
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/pthread/semaphore.h sem_timedwait on line 68
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/bits/time.h clock_adjtime on line 82
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/sys/epoll.h epoll_pwait2 on line 146
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/sys/prctl.h prctl on line 45
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/sys/timerfd.h timerfd_gettime on line 67 timerfd_settime on line 52
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysdeps/unix/sysv/linux/sys/timex.h adjtimex on line 70 ntp_adjtime on line 76 ntp_gettime on line 72
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysvipc/sys/msg.h msgctl on line 65
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysvipc/sys/sem.h semctl on line 55
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/sysvipc/sys/shm.h shmctl on line 53
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/time/sys/time.h adjtime on line 102 futimes on line 200 gettimeofday on line 71 lutimes on line 196 settimeofday on line 98 utimes on line 176
https://github.com/bminor/glibc/blob/e78caeb4ff812ae19d24d65f4d4d48508154277b/time/time.h clock_getres on line 299 clock_gettime on line 302 clock_nanosleep on line 328 clock_settime on line 305 ctime_r on line 206 nanosleep on line 328 timer_gettime on line 366 timer_settime on line 361
(backport <https://github.com/rust-lang/libc/pull/4433>) (cherry picked from commit 4c58e4b560b29408f8f3aba012add7756ea70d0d)
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 ...
|
| 00c19993 | 30-Apr-2025 |
Bben01 <[email protected]> |
Add constants from linux/cn_proc.h and linux/connector.h
(backport <https://github.com/rust-lang/libc/pull/4434>) (cherry picked from commit abd00f80b61fa48e394fb600f95fee63c78c6537) |
| a64612fc | 28-May-2025 |
Huang Qi <[email protected]> |
Add arc4random and arc4random_buf to NuttX
* Declare `arc4random` and `arc4random_buf` as extern "C" functions in the NuttX module * Enable access to system-provided random number generation for Nut
Add arc4random and arc4random_buf to NuttX
* Declare `arc4random` and `arc4random_buf` as extern "C" functions in the NuttX module * Enable access to system-provided random number generation for NuttX targets * Aligns NuttX FFI with other Unix platforms that expose these functions
This change allows Rust code targeting NuttX to use `arc4random` and `arc4random_buf` for secure random number generation, improving compatibility and feature parity with other targets.
(backport <https://github.com/rust-lang/libc/pull/4464>) (cherry picked from commit f8e47462b503fa432ac2b248a53d830b471b5ec1)
show more ...
|
| b6971335 | 15-Apr-2025 |
Jakub Janowski <[email protected]> |
Cleanup IOCTL definitions in linux_like tree
(backport <https://github.com/rust-lang/libc/pull/4418>) (cherry picked from commit 49a6e233a085866dff1a4c410dc21d1cd96e861e) |