Skip to content

Update Rust crate libc to v0.2.190 - #73

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/libc-0.x-lockfile
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/libc-0.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Aug 11, 2025 •

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Type Update Change
libc dependencies patch 0.2.174 → 0.2.190

Release Notes

rust-lang/libc (libc)

v0.2.190

Compare Source

There is now a single config for enabling 64-bit time_t: libc_unstable_time64. This can be set
unconditionally; it opts in to 64-bit time_t on the following platforms that use 32-bit by
default:

  • 32-bit Linux-GNU
  • 32-bit Linux-uClibc
  • 32-bit Linux-musl. Note that setting this flag also enables some other changes that happend in
    musl v1.2.
  • 32-bit Windows-GNU
  • ESP-IDF (all targets with this environment are 32-bit)

Most other 32-bit platforms are either already using 64-bit time_t, or are considered legacy
and will not be gaining support from their upstream maintainers.

You can enable this using RUSTFLAGS:

RUSTFLAGS='--cfg=libc_unstable_time64' cargo ...

Note that there may still be some changes to features gated by this config option, hence "unstable"
in its name. In the near future we will rename it to just libc_time64. Until then, please test it
out and report any bugs you find!

Support
  • Add initial support for HelenOS (#​4355)
Added

We are slowly filling out the Default implementations, to reduce the need for mem::zeroed() in user code:

  • Unix: Implement Default for a number of structs, especially on Apple platforms (#​5576)
  • Linux, NetBSD: Give statvfs a Default impl (#​5583)
  • Linux: Add Default to a linux/can.rs structs (#​5257)

Other additions:

  • Expose the libc_unstable_time64 cfg (#​5411)
  • Android, Glibc: Add pthread_gettid_np (#​5359)
  • Android: Add RTLD_NEXT (#​5323)
  • Android: Add reuseport BPF socket options (#​5366)
  • Apple: Add TCP header flags, options and SACK limits (#​5358)
  • Apple: Add NET_RT_DUMP2 (#​5442)
  • Apple: Add posix_spawn_file_actions_add(f)chdir(_np) (#​5558)
  • BSD: Add BPF_WORDALIGN (#​5320)
  • BSD: Add lchmod and lchflags where supported (#​5400)
  • BSD: Add minherit and related constants (#​4849)
  • Docs: Add more links to public headers and manual pages (#​5407), (#​5485)
  • Emscripten: Add epoll support (#​5427)
  • FreeBSD: Add AT_RENAME_* and RENAME_* constants (#​5560)
  • FreeBSD: Add renameat2 (#​5563)
  • FreeBSD: Add rt_msghdr and rt_metrics (#​5367)
  • Hurd: Add handling of LFS under libc_unstable_gnu_time_bits (#​5242)
  • Linux-GNU: Add environ (#​5339)
  • Linux-GNU: Add the new f_type field to statvfs and statvfs64 (#​5434)
  • Linux-like: Add additional STATX_* constants (#​5412)
  • Linux-musl, Emscripten: Add SIGEV_THREAD_ID (#​5375)
  • Linux-musl: Add *_SUPER_MAGIC constants (#​5453)
  • Linux-musl: Make statx always available (#​5448)
  • Linux-s390x: Add max_align_t (#​5389)
  • Linux: Add BCACHEFS_SUPER_MAGIC (#​5516)
  • Linux: Add ETH_P_LLDP (#​5438)
  • Linux: Add FUTEX_ROBUST_UNLOCK and FUTEX_ROBUST_LIST32 (#​5525)
  • Linux: Add NLMSG_* helpers (#​5321)
  • Linux: Update the definition of siginfo_t and add more getter functions (#​5345)
  • Musl riscv64: Add SYS_futex_waitv (#​5527)
  • Newlib: Add __errno (#​5346)
  • OpenBSD: Add RTLD_NODELETE and RTLD_NOLOAD (#​5377)
  • OpenBSD: Add getexecpath (#​5465)
  • OpenBSD: Add bindings from sensors.h (#​5510)
  • OpenBSD: Add missing HW_* sysctl constants (#​5371)
  • QNX: Add definitions for io-sock (#​5469)
  • Redox: Add FILENAME_MAX (#​5530)
  • Redox: Add clock_settime and pause (#​5363)
  • Redox: Add getrandom bindings (#​5333)
  • Unix: Add RFC 3678 multicast group_req/group_source_req and MCAST_* where supported (#​5236)
  • Unix: Add HOST_NAME_MAX (#​5531)
  • Unix: Add _PATH_BSHELL and _PATH_DEFPATH where available (#​5449)
  • WASI: Add SOCK_CLOEXEC (#​5336)
  • WASI: Add locale category constants (#​5378)
  • WASI: Add more pthread APIs (#​5310)
  • uClibc: Support 64-bit time_t on 32-bit platforms via cfg (#​5261)
Deprecated
  • AIX: deprecate _kernel_simple_lock (#​5380)
  • Deprecate integer *_MIN/*_MAX in favor of e.g. c_int::MAX (#​5404)
  • Fuchsia: Deprecate types that do not exist upstream (#​5127)
  • Hurd: Deprecate fallocate64, which does not exist on the platform (#​5242)
  • Hurd: Deprecate redundant glob64 types and routines (#​5242)
  • L4Re: deprecate LFS bindings (#​5173)
  • OpenBSD: Deprecate syscall, mincore, and KERN_NSELCOLL, all of which have been removed upstream (87992e9895c2)
  • Unix: Deprecate the POSIX-obsoleted tmpnam, tempnam (#​5478)
Fixed
  • breaking AIX: Change the type of BPF_ALIGNMENT to size_t to match upstream and harmonize with other platforms. (#​5373)
  • breaking Apple: change the type of BPF_ALIGNMENT to size_t to match upstream and harmonize with other platforms. (#​5348)
  • Exclude non-required repository files from the published crate (#​5312)
  • AIX: Correct the function signature in fileops_t.fo_select (#​5380)
  • AIX: Fix the alignment of file (#​5380)
  • Android: Add missing padding to ucontext_t (#​5189)
  • Android: Fix the value of RISC-V O_ flags (#​5554)
  • Fuchsia: Correct mcontext_t and ucontext_t and make them usable on more platforms (#​5127)
  • Fuchsia: Fix available fields in glob_t and statvfs (#​5127)
  • Fuchsia: Fix the definition of sigevent and correct the layout of other pthread.h types (#​5127)
  • Haiku: Correct the definition of sem_t (#​5351)
  • Linux-GNU: Fix the padding field in statvfs64 on 32-bit RISC-V (#​5518)
  • Linux: Correct PowerPC64 speed symbols with elfv2 (#​5342)
  • Linux: Fix syscall numbers on 32-bit RISC-V (#​5455)
  • Musl riscv64: Fix the definition of ipc_perm (#​5527)
  • Musl riscv64: Fix the name of the uc_flags field in ucontext_t (#​5527)
  • NetBSD: Fix WIFSTOPPED (#​5458)
  • Newlib: Update the time_t alias. This is a correction on Arm32 RTEMS (#​5132)
  • NuttX: Correct O_ open flags (#​5414)
  • RTEMS: Correct socket.h definitions (#​5313)
  • RTEMS: Correct the size of clock and storage type aliases (#​5450)
  • Redox: Correct signal.h types (#​5436)
Changed
  • The unstable cfg libc_unstable_musl_v1_2_3 has been renamed to a more accurate
    libc_unstable_musl_v1_2. The old version will continue to work for now, but will be removed in
    1-2 releases. (#​5376)
  • AIX: Make function pointers in signatures unsafe (#​5380)
  • Cygwin: Change POSIX_SPAWN_* flags to c_short (#​5572)
  • Hermit: Make iovec fields public (#​5460)
  • Improve the panic message for out-of-range fds in FD_* functions (#​5528)
  • Musl riscv64: Fix the name of __riscv_mc_q_ext_state.__reserved and make it private (#​5533)
  • Various: Make obsolete stat fields non-pub (#​5542)
  • uClibc: No longer link to libutil (#​5165)
Removed

libc exposed quite a bit of API on all Apple platforms that is not actually available anywhere other than MacOS. This release removes a number of these cases.

  • breaking Apple: Disable mach.h API on Apple mobile OSs (e6bfb187513c)
  • breaking Apple: Remove a large number of items from iOS, tvOS, watchOS, and visionOS that are only available on MacOS. (#​5158)
  • breaking Apple: Remove the unsupported exec* and fork calls from tvOS and watchOS (#​5158)

Additionally, this release cleans up a lot of API that has been deprecated since at least libc 0.2.100, released 2021-08-20.

  • breaking Android, Linux: remove unsound af_alg_iv trait implementations. The have been deprecated for a long time because they allowed out-of-bounds reads via safe functions. (444db4456f38)
  • breaking Remove most items that have been deprecated since before 0.2.100 (#​5401)

Other removed items:

  • Dragonfly: Remove INHERIT_ZERO that does not exist upstream (#​5587)
  • Musl riscv64: Remove GNU-gated REG_* definitions (#​5527)
  • Musl riscv64: Remove non-esxistant REG_NARGS (#​5527)

A huge thank you to our GSoC student Adam Martinez (@​dybucc) who did a
huge amount of the time64 work, as well as many of the platform fixes!

v0.2.189

Compare Source

Added
  • Emscripten: Add pthread_sigmask, sigwait, sigwaitinfo, sigtimedwait, faccessat, and pthread_kill (#​5270)
  • Linux SPARC: Enable the clone3 syscall (#​4980)
  • Solarish: Add CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID (#​5274)
Deprecated
  • Deprecate CLONE_INTO_CGROUP and CLONE_CLEAR_SIGHAND. These overflow their types and will be changed to a larger size in the future. (8c6e6710458d)
Fixed
  • Musl riscv32: Rename padding fields to avoid a conflict and fix the build (2499ff0ad993)
  • NuttX: Fix wchar_t definition under Arm (#​5245)
  • Windows: Add back link names for time-related symbols (#​5300)

v0.2.188

Compare Source

Changed

These were removed in 0.2.187 because libc does not actually make Send and Sync
guarantees about DIR (or other extern types), but this caused some crates to break.
The traits are added back for now to allow time to migrate, but will be removed again
in the future; please make sure your crates are not relying on libc::DIR: Send or
libc::DIR: Sync.

v0.2.187

Compare Source

This release contains a number of improvements related to 64-bit time_t configuration.
Of note the existing RUST_LIBC_UNSTABLE_* environment variables have been replaced
with configuration options. The new way to use these is:

RUSTFLAGS='--cfg=libc_unstable_musl_v1_2_3' cargo ...
RUSTFLAGS='--cfg=libc_unstable_gnu_time_bits="64"' cargo ...

Being able to set this via RUSTFLAGS makes it easier to only apply configuration to
specific targets (and notably, not the host if build scripts are used).

There are two other notable changes:

  • The 32-bit windows-gnu targets now respect libc_unstable_gnu_time_bits

  • uClibc now supports a similar configuration option:

    RUSTFLAGS='--cfg=libc_unstable_uclibc_time64'

As a reminder, these options are under active development and may change in the future
(hence the "unstable" in the name). It likely that we will harmonize everything under a
single configuration option before considering them stable.

Support
  • Add support for aarch64-unknown-linux-pauthtest (#​5065)
  • Add support for new QNX targets (#​5241)
  • Better document breaking change policy and recommended usage (#​5179)
Added
  • Android: Add POSIX_SPAWN_* constants (#​5104)
  • Android: Add getpwent, setpwent, and endpwent (#​5160)
  • Android: Add preadv2 and pwritev2 (#​5157)
  • Android: Add seccomp_notif* structures (#​5224)
  • Android: Add timer_[create, delete, getoverrun, gettime, settime] (#​5108)
  • Apple: Add PROC_PIDT_SHORTBSDINFO and proc_bsdshortinfo (#​5110)
  • Apple: Add SIOC* constants from sockio.h (#​5263)
  • Apple: Add _IOR, _IOW, _IOWR (#​5264)
  • Apple: Add bpf_program and bpf_insn (#​5235)
  • Apple: Add additional kqueue constants (#​5077)
  • Apple: Update vm_statistics64 with recently added fields (#​5253)
  • Apple: add IN6_IFF_* and SIOCGIFAFLAG_IN6 (#​5239)
  • Dragonfly: Add O_*, POSIX_FADV_*, NI*, and a few other missing constants (#​5116)
  • Dragonfly: add fdatasync, dlvsym, reallocarray, qsort_r, pthread_*affinity_np, ftok, extattr_*, and dup3 (#​5116)
  • Emscripten: Add in6_pktinfo (#​5256)
  • FreeBSD: Add SOL_LOCAL (#​5185)
  • FreeBSD: Add DLT_* constants (#​5235)
  • FreeBSD: Add PROC_LOGSIGEXIT_* and PPROT_* (#​4657)
  • FreeBSD: Add SO_RERROR (#​5260)
  • FreeBSD: add IN6_IFF_*, in6_ifreq, and SIOCGIFAFLAG_IN6 (#​5239)
  • FreeBSD: add _IO* helpers from sys/ioccom.h (#​5239)
  • Glibc: Add PTHREAD_*_MUTEX_INITIALIZER_NP for riscv64 (#​5094)
  • Glibc: Add new fields to struct tcp_info (#​5215)
  • Linux: Add OPEN_TREE_NAMESPACE (#​5145)
  • Linux: Add SECCOMP_IOCTL_* constants (#​5224)
  • Linux: Add SO_DETACH_REUSEPORT_BPF (#​5081)
  • Linux: Add futex_waitv (#​5125)
  • Linux: Add constants for fsopen, fsconfig, fsmount, and fspick (#​5145)
  • Linux: Add fields to statx present since 6.16 (#​4621)
  • Linux: Add network entry API (#​5049)
  • Linux: add ifaddrmsg and rtattr (#​5234)
  • Linux: add sockaddr_iucv (#​5041)
  • MacOS: Add ENOTCAPABLE (#​4925)
  • Musl: Add renameat2 (#​5113)
  • NuttX: Add F_SETFD (#​5258)
  • NuttX: Add POLLRD* and POLLWR* constants (#​5258)
  • NuttX: Add SO_KEEPALIVE and TCP keepalive constants (#​5111)
  • NuttX: Add TCP_MAXSEG (#​5258)
  • NuttX: Add eventfd and EFD_* constants (#​5258)
  • NuttX: Add pipe2 (#​5258)
  • NuttX: Add strerror_r (#​5258)
  • NuttX: Add netinet structs and constants (#​5258)
  • NuttX: Add socket structs, functions and constants (#​5258)
  • QuRT: Add POSIX timer functions (#​5091)
  • QuRT: Add missing pthread functions from QuRT SDK headers (#​5091)
  • QuRT: Add missing unistd process and file functions (#​5091)
  • QuRT: Add mqueue subsystem (message queues, select/pselect) (#​5091)
  • Redox: Add *at and dirent functions (#​5117)
  • Solarish: Add IP TTL and IPv6 Hop Limit consts (#​5089)
  • Solarish: Add port_alert and PORT_ALERT* constants (#​5203)
  • Solarish: add AI_CANONNAME (#​5085)
  • aarch64: Add SYS_sendfile and SYS_fadvise64 constants (#​5133)
Deprecated
  • Dragonfly: Deprecate compatibility aliases CPUCTL_RSMSR and UTX_DB_LASTLOG (#​5116)
Fixed
  • breaking NetBSD: Correct ts from *const timespec to *mut timespec in _lwp_park` (#​5169)
  • breaking Linux GNU: Change overflowing PTRACE_*ET_SYSCALL_USER_DISPATCH_CONFIG constants from u8 to c_uint (#​4936)
  • Fix the soundness bug in the representation of extern types (#​5021)
  • Cygwin: fix cpuset_t typo in CPU_ZERO (#​5098)
  • Dragonfly: ABI fixes including regex offsets, ifaddrs, pthread barriers, process sizing fields, and mcontext alignment (#​5116)
  • Dragonfly: Correct values of CPUCTL_CPUID*, EV_HUP, and EV_SYSFLAGS (#​5116)
  • Emscripten: fix pthread type sizes for wasm64 (MEMORY64) (#​5156)
  • Horizon: Fix the value of POLLOUT (#​5090)
  • Linux: Correct the value of EPIOC[GS]PARAMS with nonstandard _IOC (#​5188)
  • Make VxWorks shims unsafe (#​3727)
  • NetBSD: Correct getmntinfo to link __getmntinfo13 (#​5251)
  • QNX: Fix the value of PTHREAD_MUTEX_INITIALIZER (#​5241)
  • QuRT: fix type and definition inaccuracies against SDK headers (#​5091)
  • Windows: Correctly link to 32-bit time routines on 32-bit platforms (#​5059)
  • uClibc: Fix constants accidentally removed (#​5141)
  • uclibc: Fix build issues (#​5046)
  • uclibc: Fix type of PRIO_PROCESS and friends (#​5046)
Changed
  • AIX, TeeOS: Drop unneeded -> c_void (#​5240)
  • Apple: Change AIO_LISTIO_MAX to account for changes in macOS 27 (#​5253)
  • Glibc: Update the value of MS_NOUSER (#​5215)
  • L4Re: Update definitions and test infra (#​5275)
  • Linux: Update the value of SW_MAX and SW_CNT (#​5215)
  • MacOS: Add swapped_count to vm_statistics64 (#​4926)
  • Windows: Windows-GNU now respects libc_unstable_gnu_time_bits for 64-bit time_t config (#​5062)
Removed
  • Dragonfly: Remove FreeBSD-only Elf32_Lword, ip_mreq_source, and IP_ constants (#​5116)
  • Dragonfly: Remove private VM type bindings (#​5116)
  • Linux: Remove KERN_REALROOTDEV and VM_LAPTOP_MODE (#​5177)
  • VxWorks: Remove non-user-facing (kernel) API (#​5129)
Other
  • Print config information if LIBC_BUILD_VERBOSE is set (#​5272)
  • Annotate *LAST constants as potentially changing (#​5120)
  • Annotate *MAX constants as potentially changing (#​5122)
  • BSD: Annotate ELAST constants as potentially changing (#​5118)
  • FreeBSD: Annotate RAND_MAX as potentially changing (#​5119)
  • Linux, L4re: Annotate *NUM constants as potentially changing (#​5123)
  • QNX: Restructure to support new platforms (#​4984)
  • Unix: Annotate *COUNT constants as potentially changing (#​5121)
  • uClibc: Add unstable support of 64-bit time_t (#​5046)
  • (internal) FreeBSD: Replace unstable env to set version with an unstable cfg (#​5201)
  • (internal) Glibc: Remove public configuration for file offset bits (#​5268)
  • (internal) Linux: Delete config via RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64 (#​5197)
  • (internal) Replace RUST_LIBC_UNSTABLE env with libc_unstable* cfg (#​4977)

v0.2.186

Compare Source

Added
  • Apple: Add KEVENT_FLAG_* constants (#​5070)
  • Linux: Add PR_SET_MEMORY_MERGE and PR_GET_MEMORY_MERGE (#​5060)
Changed
  • CI: Migrate FreeBSD CI from Cirrus CI to GitHub Actions (#​5058)

v0.2.185

Compare Source

Added
  • EspIDF: Add espidf_picolibc cfg for picolibc O_* flag values (#​5035)
  • Hexagon: add missing constants and fix types for linux-musl (#​5042)
  • Redox: Add semaphore functions (#​5051)
  • Windows: Add sprintf, snprintf, and the scanf family (#​5024)
Fixed
  • Hexagon: Decouple time64 types from musl symbol redirects (#​5040)
  • Horizon: Change POLL constants from c_short to c_int (#​5045)

v0.2.184

Compare Source

MSRV

This release increases the MSRV of libc to 1.65. With this update, you can now always use the
core::ffi::c_* types with libc definitions, since libc has been changed to reexport from
core rather than redefining them. (This usually worked before but had edge cases.)
(#​4972)

Added
  • BSD: Add IP_MINTTL to bsd (#​5026)
  • Cygwin: Add TIOCM_DSR (#​5031)
  • FreeBSD: Added xfile structe and file descriptor types (#​5002)
  • Linux: Add CAN netlink bindings (#​5011)
  • Linux: Add struct ethhdr (#​4239)
  • Linux: Add struct ifinfomsg (#​5012)
  • Linux: Define max_align_t for riscv64 (#​5029)
  • NetBSD: Add missing CLOCK_ constants (#​5020)
  • NuttX: Add _SC_HOST_NAME_MAX (#​5004)
  • VxWorks: Add flock and F_*LCK constants (#​4043)
  • WASI: Add all _SC_* sysconf constants (#​5023)
Deprecated

The remaining fixed-width integer aliases, __uint128_t, __uint128, __int128_t, and __int128,
have been deprecated. Use i128 and u128 instead. (#​4343)

Fixed
  • breaking Redox: Fix signal action constant types (#​5009)
  • EspIDF: Correct the value of DT_* constants (#​5034)
  • Redox: Fix locale values and add RTLD_NOLOAD, some TCP constants (#​5025)
  • Various: Use Padding::new(<zeroed>) rather than Padding::uninit() (#​5036)
Changed
  • potentially breaking Linux: Add new fields to struct ptrace_syscall_info (#​4966)
  • Re-export core::ffi integer types rather than redefining (#​5015)
  • Redox: Update F_DUPFD, IP, and TCP constants to match relibc (#​4990)

v0.2.183

Compare Source

Added
  • ESP-IDF: Add SOMAXCONN (#​4993)
  • Linux: Add name_to_handle_at and open_by_handle_at (#​4988)
  • NetBSD: Add kinfo_file, kinfo_pcb, and related constants (#​4985)
  • OpenBSD: Add kinfo_file and related constants (#​4991)
  • VxWorks: Add additional structs and defines (#​5003)
  • Various: Implement Default for timeval and timespec (#​4976)
Fixed
  • Hexagon musl: Enable unstable 64-bit time_t support and musl_v1_2_3 (#​4992)
  • Nintendo Switch: Fix target support (#​4982)
  • OpenBSD: Wrap an unused field in Padding (#​4997)
  • Redox: Change sigaction.sa_flags to c_int (#​4986)
  • Redox: Fix blkcnt_t type (#​4994)

v0.2.182

Compare Source

Added

v0.2.181

Compare Source

Added
  • Apple: Add MADV_ZERO (#​4924)
  • Redox: Add makedev, major, and minor (#​4928)
  • GLibc: Add PTRACE_SET_SYSCALL_INFO (#​4933)
  • OpenBSD: Add more kqueue related constants for (#​4945)
  • Linux: add CAN error types (#​4944)
  • OpenBSD: Add siginfo_t::si_status (#​4946)
  • QNX NTO: Add max_align_t (#​4927)
  • Illumos: Add _CS_PATH (#​4956)
  • OpenBSD: add ppoll (#​4957)
Fixed
  • Breaking: Redox: Fix the type of dev_t (#​4928)
  • AIX: Change 'tv_nsec' of 'struct timespec' to type 'c_long' (#​4931)
  • AIX: Use 'struct st_timespec' in 'struct stat{,64}' (#​4931)
  • Glibc: Link old version of tc{g,s}etattr (#​4938)
  • Glibc: Link the correct version of cf{g,s}et{i,o}speed on mips{32,64}r6 (#​4938)
  • OpenBSD: Fix constness of tm.tm_zone (#​4948)
  • OpenBSD: Fix the definition of ptrace_thread_state (#​4947)
  • QuRT: Fix type visibility and defs (#​4932)
  • Redox: Fix values for PTHREAD_MUTEX_{NORMAL, RECURSIVE} (#​4943)
  • Various: Mark additional fields as private padding (#​4922)
Changed
  • Fuchsia: Update SO_* constants (#​4937)
  • Revert "musl: convert inline timespecs to timespec" (resolves build issues on targets only supported by Musl 1.2.3+ ) (#​4958)

v0.2.180

Compare Source

Added
  • QNX: Add missing BPF and ifreq structures (#​4769)
Fixed
  • Linux, L4Re: address soundness issues of CMSG_NXTHDR (#​4903)
  • Linux-like: Handle zero-sized payload differences in CMSG_NXTHDR (#​4903)
  • Musl: Fix incorrect definitions of struct stat on some 32-bit architectures (#​4914)
  • NetBSD: RISC-V 64: Correct mcontext type definitions (#​4886)
  • uClibc: Re-enable __SIZEOF_PTHREAD_COND_T on non-L4Re uclibc (#​4915)
  • uClibc: Restructure Linux netlink module to resolve build errors (#​4915)

v0.2.179

Compare Source

With this release, we now have unstable support for 64-bit time_t on 32-bit
platforms with both Musl and Glibc. Testing is appreciated!

For now, these can be enabled by setting environment variables during build:

RUST_LIBC_UNSTABLE_MUSL_V1_2_3=1
RUST_LIBC_UNSTABLE_GNU_TIME_BITS=64

Note that the exact configuration will change in the future. Setting the
MUSL_V1_2_3 variable also enables some newer API unrelated to time_t.

Added
  • L4Re: Add uclibc aarch64 support (#​4479)
  • Linux, Android: Add a generic definition for XCASE (#​4847)
  • Linux-like: Add NAME_MAX (#​4888)
  • Linux: Add AT_EXECVE_CHECK (#​4422)
  • Linux: Add the SUN_LEN macro (#​4269)
  • Linux: add getitimer and setitimer (#​4890)
  • Linux: add pthread_tryjoin_n and pthread_timedjoin_np (#​4887)
  • Musl: Add unstable support for 64-bit time_t on 32-bit platforms (#​4463)
  • NetBSD, OpenBSD: Add interface LINK_STATE_* definitions from sys/net/if.h (#​4751)
  • QuRT: Add support for Qualcomm QuRT (#​4845)
  • Types: Add Padding::uninit() (#​4862)
Fixed
  • Glibc: Link old version of cf{g,s}et{i,o}speed (#​4882)
  • L4Re: Fixes for pthread (#​4479)
  • L4re: Fix a wide variety of incorrect definitions (#​4479)
  • Musl: Fix the value of CPU_SETSIZE on musl 1.2+ (#​4865)
  • Musl: RISC-V: fix public padding fields in stat/stat64 (#​4463)
  • Musl: s390x: Fix definition of SIGSTKSZ/MINSIGSTKSZ (#​4884)
  • NetBSD: Arm: Fix PT_{GET,SET}FPREGS, _REG_TIPDR, and _REG_{LR,SP} (#​4899)
  • NetBSD: Fix if_msghdr alignment (#​4902)
  • NetBSD: Fix siginfo_t layout on 32-bit platforms (#​4904)
  • NetBSD: change definition of pthread_spin_t to allow arch redefinition. (#​4899)
  • Newlib: Fix ambiguous glob exports and other warnings for Vita and 3DS (#​4875)
  • QNX: Fix build error (#​4879)
Changed
  • CI: Update CI images to FreeBSD 15.0-release (#​4857)
  • L4Re: Make pthread struct fields private (#​4876)
  • Linux, Fuchsia: Mark mq_attr padding area as such (#​4858)
  • Types: Wrap a number of private fields in the Padding type (#​4862)
Removed
  • Build: Remove RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64 (#​4865)
  • WASI: Remove nonexistent clocks (#​4880)

v0.2.178

Compare Source

Added
  • BSD: Add issetugid (#​4744)
  • Cygwin: Add missing utmp/x.h, grp.h, and stdio.h interfaces (#​4827)
  • Linux s390x musl: Add __psw_t/fprefset_t/*context_t (#​4726)
  • Linux, Android: Add definition for IUCLC (#​4846)
  • Linux, FreeBSD: Add AT_HWCAP{3,4} (#​4734)
  • Linux: Add definitions from linux/can/bcm.h (#​4683)
  • Linux: Add syscalls 451-469 for m68k (#​4850)
  • Linux: PowerPC: Add 'ucontext.h' definitions (#​4696)
  • NetBSD: Define eventfd (#​4830)
  • Newlib: Add missing constants from unistd.h (#​4811)
  • QNX NTO: Add cfmakeraw (#​4704)
  • QNX NTO: Add cfsetspeed (#​4704)
  • Redox: Add getresgid and getresuid (#​4752)
  • Redox: Add setresgid and setresuid (#​4752)
  • VxWorks: Add definitions from select.h, stat.h, poll.h, ttycom.h, utsname.h, resource.h, mman.h, udp.h, in.h, in6.h, if.h, fnmatch.h, and sioLibCommon.h (#​4781)
  • VxWorks: Add missing defines/functions needed by rust stdlib (#​4779)
  • WASI: Add more definitions for libstd (#​4747)
Deprecated:
  • Apple: Deprecate TIOCREMOTE (#​4764)
Fixed:

Note that there were a large number of fixes on NetBSD for this libc release, some of which include minor breakage.

  • AIX: Change errno EWOULDBLOCK to make it an alias of EAGAIN (#​4790)
  • AIX: Resolve function comparison and unnecessary_transmutes warnings (#​4780)
  • Apple: Correct the value of SF_SETTABLE (#​4764)
  • DragonflyBSD: Fix the type of mcontext_t.mc_fpregs (#)
  • EspIDF: Fix the duplicate definition of gethostname (#​4773)
  • L4Re: Update available pthread API (#​4836)
  • Linux: Correct the value of NFT_MSG_MAX (#​4761)
  • Linux: Remove incorrect repr(align(8)) for canxl_frame (#​4760)
  • Make eventfd argument names match OS docs/headers (#​4830)
  • NetBSD: Account for upstream changes to ptrace with LWP (#​4782)
  • NetBSD: Correct ipc_perm, split from OpenBSD as ipc.rs (#​4782)
  • NetBSD: Correct a number of symbol link names (#​4782)
  • NetBSD: Correct the type of kinfo_vmentry.kve_path (#)
  • NetBSD: Fix uucred.cr_ngroups from int to short (#​4782)
  • NetBSD: Fix the type of kevent.udata (#​4782)
  • NetBSD: Fix the type of mcontext_t.__fpregs (#​4782)
  • NetBSD: Fix the value of PT_SUSPEND (#​4782)
  • NetBSD: Fix the values of FNM_* constants (#​4782)
  • NetBSD: Increase the size of sockaddr_dl.sdl_data from 12 to 24 (#​4782)
  • NetBSD: Introduce if_.rs, fix the definition of ifreq (#​4782)
  • NetBSD: Introduce time.rs, fix the values of CLOCK_*_CPUTIME_ID (#​4782)
  • NetBSD: Introduce timex.rs (#​4782)
  • NetBSD: Introduce types.rs, correct the definition of lwpid_t (#​4782)
  • NetBSD: Introduce utmp_.rs, correct the definition of lastlog (#​4782)
  • NetBSD: Introduce utmpx_.rs, correct utmpx definitions (#​4782)
  • NetBSD: Make _cpuset an extern type (#​4782)
  • NetBSD: RISC-V 64: Fix the mcontext types (#​4782)
  • Nuttx: Resolve warnings (#​4773)
  • OHOS: Don't emit duplicate lfs64 definitions (#​4804)
  • Redox: Fix the type of pid_t (#​4825)
  • WASI: Gate __wasilibc_register_preopened_fd (#​4837)
  • Wali: Fix unknown config (#​4773)
Changed
  • AIX: Declare field 'tv_nsec' of structure 'timespec' as 'i32' in both 32-bit and 64-bit modes (#​4750)
  • DragonFly: Avoid usage of thread_local (#​3653)
  • Linux: Update the definition for ucontext_t and unskip its tests (#​4760)
  • MinGW: Set L_tmpnam and TMP_MAX to the UCRT value (#​4566)
  • WASI: More closely align pthread type reprs (#​4747)
  • Simplify rustc-check-cfg emission in build.rs (#​4724)
  • Transition a number of definitions to the new source structure (internal change)
Removed
  • MIPS Musl: Remove rogue definition of SIGSTKFLT (#​4749)
  • NetBSD: Make statvfs.f_spare non-public (#​4782)
  • NetBSD: Remove BPF constants (#​4782)
  • NetBSD: Remove *_MAXID constants and AT_SUN_LDPGSIZE (#​4782)
  • NetBSD: Remove IFF_NOTRAILERS (#​4782)
  • NetBSD: Remove vm_size_t (#​4782)
  • NetBSD: Replace REG_ENOSYS with REG_ILLSEQ (#​4782)

v0.2.177

Compare Source

Added
  • Apple: Add TIOCGETA, TIOCSETA, TIOCSETAW, TIOCSETAF constants (#​4736)
  • Apple: Add pthread_cond_timedwait_relative_np (#​4719)
  • BSDs: Add _CS_PATH constant (#​4738)
  • Linux-like: Add SIGEMT for mips* and sparc* architectures (#​4730)
  • OpenBSD: Add elf_aux_info (#​4729)
  • Redox: Add more sysconf constants (#​4728)
  • Windows: Add wcsnlen (#​4721)
Changed
  • WASIP2: Invert conditional to include p2 APIs (#​4733)

v0.2.176

Compare Source

Support
  • The default FreeBSD version has been raised from 11 to 12. This matches rustc since 1.78. (#​2406)
  • Debug is now always implemented, rather than being gated behind the extra_traits feature. (#​4624)
Added
  • AIX: Restore some non-POSIX functions guarded by the _KERNEL macro. (#​4607)
  • FreeBSD 14: Add st_fileref to struct stat (#​4642)
  • Haiku: Add the accept4 POSIX call (#​4586)
  • Introduce a wrapper for representing padding (#​4632)
  • Linux: Add EM_RISCV (#​4659)
  • Linux: Add MS_NOSYMFOLLOW (#​4389)
  • Linux: Add backtrace_symbols(_fd) (#​4668)
  • Linux: Add missing SOL_PACKET optnames (#​4669)
  • Musl s390x: Add SYS_mseal (#​4549)
  • NuttX: Add __errno (#​4687)
  • Redox: Add dirfd, VDISABLE, and resource consts (#​4660)
  • Redox: Add more resource.h, fcntl.h constants (#​4666)
  • Redox: Enable strftime and mkostemp[s] (#​4629)
  • Unix, Windows: Add qsort_r (Unix), and qsort(_s) (Windows) (#​4677)
  • Unix: Add dlvsym for Linux-gnu, FreeBSD, and NetBSD (#​4671)
  • Unix: Add sigqueue (#​4620)
Changed
  • FreeBSD 15: Mark kinfo_proc as non-exhaustive (#​4553)
  • FreeBSD: Set the ELF symbol version for readdir_r (#​4694)
  • Linux: Correct the config for whether or not epoll_event is packed (#​4639)
  • Tests: Replace the old ctest with the much more reliable new implementation (#​4655 and many related PRs)
Fixed
  • AIX: Fix the type of the 4th arguement of getgrnam_r ([#​4656](#​4656
  • FreeBSD: Limit P_IDLEPROC to FreeBSD 15 (#​4640)
  • FreeBSD: Limit mcontext_t::mc_tlsbase to FreeBSD 15 (#​4640)
  • FreeBSD: Update gating of mcontext_t.mc_tlsbase (#​4703)
  • Musl s390x: Correct the definition of statfs[64] (#​4549)
  • Musl s390x: Make fpreg_t a union (#​4549)
  • Redox: Fix the types of gid_t and uid_t (#​4689)
  • Redo

❗ Important

✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from 8e3c676 to 9727552 Compare September 23, 2025 13:43
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.175 Update Rust crate libc to v0.2.176 Sep 23, 2025
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.176 Update Rust crate libc to v0.2.177 Oct 9, 2025
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from 9727552 to 4c0a662 Compare October 9, 2025 15:37
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from 4c0a662 to 1f66d7b Compare December 2, 2025 16:50
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.177 Update Rust crate libc to v0.2.178 Dec 2, 2025
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.178 Update Rust crate libc to v0.2.179 Jan 3, 2026
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch 2 times, most recently from 31e1ccf to 47fa624 Compare January 8, 2026 14:37
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.179 Update Rust crate libc to v0.2.180 Jan 8, 2026
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from 47fa624 to 8813e17 Compare February 10, 2026 00:53
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.180 Update Rust crate libc to v0.2.181 Feb 10, 2026
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from 8813e17 to ed0dcf9 Compare February 13, 2026 09:15
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.181 Update Rust crate libc to v0.2.182 Feb 13, 2026
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from ed0dcf9 to a8f3f0b Compare March 8, 2026 13:20
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.182 Update Rust crate libc to v0.2.183 Mar 8, 2026
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.183 Update Rust crate libc to v0.2.184 Apr 1, 2026
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from a8f3f0b to b06def8 Compare April 1, 2026 13:20
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.184 Update Rust crate libc to v0.2.185 Apr 13, 2026
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from b06def8 to e573302 Compare April 13, 2026 14:47
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from e573302 to f4d30d9 Compare April 23, 2026 22:44
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.185 Update Rust crate libc to v0.2.186 Apr 23, 2026
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from f4d30d9 to 5757fde Compare July 21, 2026 01:17
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.186 Update Rust crate libc to v0.2.187 Jul 21, 2026
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from 5757fde to 052455d Compare July 21, 2026 10:33
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.187 Update Rust crate libc to v0.2.188 Jul 21, 2026
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from 052455d to 80b1e81 Compare July 22, 2026 00:00
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.188 Update Rust crate libc to v0.2.189 Jul 22, 2026
@renovate
renovate Bot force-pushed the renovate/libc-0.x-lockfile branch from 80b1e81 to 3192bf8 Compare October 2, 2026 20:54
@renovate renovate Bot changed the title Update Rust crate libc to v0.2.189 Update Rust crate libc to v0.2.190 Oct 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants