interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / libc / CHANGELOG.md

1212 lines · 81394 bytes Raw Blame History Rendered
1# Changelog
2
3## [0.2.189](https://github.com/rust-lang/libc/compare/0.2.188...0.2.189) - 2026-07-21
4
5### Added
6
7- Emscripten: Add `pthread_sigmask`, `sigwait`, `sigwaitinfo`, `sigtimedwait`, `faccessat`, and `pthread_kill` ([#5270](https://github.com/rust-lang/libc/pull/5270))
8- Linux SPARC: Enable the `clone3` syscall ([#4980](https://github.com/rust-lang/libc/pull/4980))
9- Solarish: Add `CLOCK_PROCESS_CPUTIME_ID` and `CLOCK_THREAD_CPUTIME_ID` ([#5274](https://github.com/rust-lang/libc/pull/5274))
10
11### Deprecated
12
13- Deprecate `CLONE_INTO_CGROUP` and `CLONE_CLEAR_SIGHAND`. These overflow their types and will be changed to a larger size in the future. ([8c6e6710458d](https://github.com/rust-lang/libc/commit/8c6e6710458db4d6aa0766f6f84bbf13f640237e))
14
15### Fixed
16
17- Musl riscv32: Rename padding fields to avoid a conflict and fix the build ([2499ff0ad993](https://github.com/rust-lang/libc/commit/2499ff0ad9936a036e78a4e0991445efee383564))
18- NuttX: Fix `wchar_t` definition under Arm ([#5245](https://github.com/rust-lang/libc/pull/5245))
19- Windows: Add back link names for `time`-related symbols ([#5300](https://github.com/rust-lang/libc/pull/5300))
20
21
22## [0.2.188](https://github.com/rust-lang/libc/compare/0.2.187...0.2.188) - 2026-07-21
23
24### Changed
25
26- Restore `Send` and `Sync` for `DIR` ([35b062263401](https://github.com/rust-lang/libc/commit/35b062263401733cd89065c6a553640f2ba51ff1))
27
28These were removed in 0.2.187 because `libc` does not actually make `Send` and `Sync`
29guarantees about `DIR` (or other extern types), but this caused some crates to break.
30The traits are added back for now to allow time to migrate, but will be removed again
31in the future; please make sure your crates are not relying on `libc::DIR: Send` or
32`libc::DIR: Sync`.
33
34
35## [0.2.187](https://github.com/rust-lang/libc/compare/0.2.186...0.2.187) - 2026-07-20
36
37This release contains a number of improvements related to 64-bit `time_t` configuration.
38Of note the existing `RUST_LIBC_UNSTABLE_*` environment variables have been replaced
39with configuration options. The new way to use these is:
40
41```sh
42RUSTFLAGS='--cfg=libc_unstable_musl_v1_2_3' cargo ...
43RUSTFLAGS='--cfg=libc_unstable_gnu_time_bits="64"' cargo ...
44```
45
46Being able to set this via `RUSTFLAGS` makes it easier to only apply configuration to
47specific targets (and notably, not the host if build scripts are used).
48
49There are two other notable changes:
50
51* The 32-bit `windows-gnu` targets now respect `libc_unstable_gnu_time_bits`
52* uClibc now supports a similar configuration option:
53
54 ```sh
55 RUSTFLAGS='--cfg=libc_unstable_uclibc_time64'
56 ```
57
58As a reminder, these options are under active development and may change in the future
59(hence the "unstable" in the name). It likely that we will harmonize everything under a
60single configuration option before considering them stable.
61
62### Support
63
64- Add support for `aarch64-unknown-linux-pauthtest` ([#5065](https://github.com/rust-lang/libc/pull/5065))
65- Add support for new QNX targets ([#5241](https://github.com/rust-lang/libc/pull/5241))
66- Better document breaking change policy and recommended usage ([#5179](https://github.com/rust-lang/libc/pull/5179))
67
68### Added
69
70- Android: Add `POSIX_SPAWN_*` constants ([#5104](https://github.com/rust-lang/libc/pull/5104))
71- Android: Add `getpwent`, `setpwent`, and `endpwent` ([#5160](https://github.com/rust-lang/libc/pull/5160))
72- Android: Add `preadv2` and `pwritev2` ([#5157](https://github.com/rust-lang/libc/pull/5157))
73- Android: Add `seccomp_notif*` structures ([#5224](https://github.com/rust-lang/libc/pull/5224))
74- Android: Add `timer_[create, delete, getoverrun, gettime, settime]` ([#5108](https://github.com/rust-lang/libc/pull/5108))
75- Apple: Add `PROC_PIDT_SHORTBSDINFO` and `proc_bsdshortinfo` ([#5110](https://github.com/rust-lang/libc/pull/5110))
76- Apple: Add `SIOC*` constants from `sockio.h` ([#5263](https://github.com/rust-lang/libc/pull/5263))
77- Apple: Add `_IOR`, `_IOW`, `_IOWR` ([#5264](https://github.com/rust-lang/libc/pull/5264))
78- Apple: Add `bpf_program` and `bpf_insn` ([#5235](https://github.com/rust-lang/libc/pull/5235))
79- Apple: Add additional `kqueue` constants ([#5077](https://github.com/rust-lang/libc/pull/5077))
80- Apple: Update `vm_statistics64` with recently added fields ([#5253](https://github.com/rust-lang/libc/pull/5253))
81- Apple: add `IN6_IFF_*` and `SIOCGIFAFLAG_IN6` ([#5239](https://github.com/rust-lang/libc/pull/5239))
82- Dragonfly: Add `O_*`, `POSIX_FADV_*`, `NI*`, and a few other missing constants ([#5116](https://github.com/rust-lang/libc/pull/5116))
83- Dragonfly: add `fdatasync`, `dlvsym`, `reallocarray`, `qsort_r`, `pthread_*affinity_np`, `ftok`, `extattr_*`, and `dup3` ([#5116](https://github.com/rust-lang/libc/pull/5116))
84- Emscripten: Add `in6_pktinfo` ([#5256](https://github.com/rust-lang/libc/pull/5256))
85- FreeBSD: Add SOL_LOCAL ([#5185](https://github.com/rust-lang/libc/pull/5185))
86- FreeBSD: Add `DLT_*` constants ([#5235](https://github.com/rust-lang/libc/pull/5235))
87- FreeBSD: Add `PROC_LOGSIGEXIT_*` and `PPROT_*` ([#4657](https://github.com/rust-lang/libc/pull/4657))
88- FreeBSD: Add `SO_RERROR` ([#5260](https://github.com/rust-lang/libc/pull/5260))
89- FreeBSD: add `IN6_IFF_*`, `in6_ifreq`, and `SIOCGIFAFLAG_IN6` ([#5239](https://github.com/rust-lang/libc/pull/5239))
90- FreeBSD: add `_IO*` helpers from `sys/ioccom.h` ([#5239](https://github.com/rust-lang/libc/pull/5239))
91- Glibc: Add `PTHREAD_*_MUTEX_INITIALIZER_NP` for riscv64 ([#5094](https://github.com/rust-lang/libc/pull/5094))
92- Glibc: Add new fields to `struct tcp_info` ([#5215](https://github.com/rust-lang/libc/pull/5215))
93- Linux: Add `OPEN_TREE_NAMESPACE` ([#5145](https://github.com/rust-lang/libc/pull/5145))
94- Linux: Add `SECCOMP_IOCTL_*` constants ([#5224](https://github.com/rust-lang/libc/pull/5224))
95- Linux: Add `SO_DETACH_REUSEPORT_BPF` ([#5081](https://github.com/rust-lang/libc/pull/5081))
96- Linux: Add `futex_waitv` ([#5125](https://github.com/rust-lang/libc/pull/5125))
97- Linux: Add constants for `fsopen`, `fsconfig`, `fsmount`, and `fspick` ([#5145](https://github.com/rust-lang/libc/pull/5145))
98- Linux: Add fields to `statx` present since 6.16 ([#4621](https://github.com/rust-lang/libc/pull/4621))
99- Linux: Add network entry API ([#5049](https://github.com/rust-lang/libc/pull/5049))
100- Linux: add `ifaddrmsg` and `rtattr` ([#5234](https://github.com/rust-lang/libc/pull/5234))
101- Linux: add `sockaddr_iucv` ([#5041](https://github.com/rust-lang/libc/pull/5041))
102- MacOS: Add `ENOTCAPABLE` ([#4925](https://github.com/rust-lang/libc/pull/4925))
103- Musl: Add `renameat2` ([#5113](https://github.com/rust-lang/libc/pull/5113))
104- NuttX: Add `F_SETFD` ([#5258](https://github.com/rust-lang/libc/pull/5258))
105- NuttX: Add `POLLRD*` and `POLLWR*` constants ([#5258](https://github.com/rust-lang/libc/pull/5258))
106- NuttX: Add `SO_KEEPALIVE` and TCP keepalive constants ([#5111](https://github.com/rust-lang/libc/pull/5111))
107- NuttX: Add `TCP_MAXSEG` ([#5258](https://github.com/rust-lang/libc/pull/5258))
108- NuttX: Add `eventfd` and `EFD_*` constants ([#5258](https://github.com/rust-lang/libc/pull/5258))
109- NuttX: Add `pipe2` ([#5258](https://github.com/rust-lang/libc/pull/5258))
110- NuttX: Add `strerror_r` ([#5258](https://github.com/rust-lang/libc/pull/5258))
111- NuttX: Add `netinet` structs and constants ([#5258](https://github.com/rust-lang/libc/pull/5258))
112- NuttX: Add socket structs, functions and constants ([#5258](https://github.com/rust-lang/libc/pull/5258))
113- QuRT: Add POSIX timer functions ([#5091](https://github.com/rust-lang/libc/pull/5091))
114- QuRT: Add missing pthread functions from QuRT SDK headers ([#5091](https://github.com/rust-lang/libc/pull/5091))
115- QuRT: Add missing unistd process and file functions ([#5091](https://github.com/rust-lang/libc/pull/5091))
116- QuRT: Add mqueue subsystem (message queues, select/pselect) ([#5091](https://github.com/rust-lang/libc/pull/5091))
117- Redox: Add `*at` and `dirent` functions ([#5117](https://github.com/rust-lang/libc/pull/5117))
118- Solarish: Add IP TTL and IPv6 Hop Limit consts ([#5089](https://github.com/rust-lang/libc/pull/5089))
119- Solarish: Add `port_alert` and `PORT_ALERT*` constants ([#5203](https://github.com/rust-lang/libc/pull/5203))
120- Solarish: add AI_CANONNAME ([#5085](https://github.com/rust-lang/libc/pull/5085))
121- aarch64: Add SYS_sendfile and SYS_fadvise64 constants ([#5133](https://github.com/rust-lang/libc/pull/5133))
122
123### Deprecated
124
125- Dragonfly: Deprecate compatibility aliases `CPUCTL_RSMSR` and `UTX_DB_LASTLOG` ([#5116](https://github.com/rust-lang/libc/pull/5116))
126
127### Fixed
128
129- **breaking** NetBSD: Correct `ts` from `*const timespec` to `*mut timespec` in _lwp_park` ([#5169](https://github.com/rust-lang/libc/pull/5169))
130- **breaking** Linux GNU: Change overflowing `PTRACE_*ET_SYSCALL_USER_DISPATCH_CONFIG` constants from `u8` to `c_uint` ([#4936](https://github.com/rust-lang/libc/pull/4936))
131- Fix the soundness bug in the representation of extern types ([#5021](https://github.com/rust-lang/libc/pull/5021))
132- Cygwin: fix `cpuset_t` typo in `CPU_ZERO` ([#5098](https://github.com/rust-lang/libc/pull/5098))
133- Dragonfly: ABI fixes including regex offsets, `ifaddrs`, pthread barriers, process sizing fields, and `mcontext` alignment ([#5116](https://github.com/rust-lang/libc/pull/5116))
134- Dragonfly: Correct values of `CPUCTL_CPUID*`, `EV_HUP`, and `EV_SYSFLAGS` ([#5116](https://github.com/rust-lang/libc/pull/5116))
135- Emscripten: fix pthread type sizes for wasm64 (MEMORY64) ([#5156](https://github.com/rust-lang/libc/pull/5156))
136- Horizon: Fix the value of `POLLOUT` ([#5090](https://github.com/rust-lang/libc/pull/5090))
137- Linux: Correct the value of `EPIOC[GS]PARAMS` with nonstandard _IOC ([#5188](https://github.com/rust-lang/libc/pull/5188))
138- Make VxWorks shims `unsafe` ([#3727](https://github.com/rust-lang/libc/pull/3727))
139- NetBSD: Correct getmntinfo to link `__getmntinfo13` ([#5251](https://github.com/rust-lang/libc/pull/5251))
140- QNX: Fix the value of `PTHREAD_MUTEX_INITIALIZER` ([#5241](https://github.com/rust-lang/libc/pull/5241))
141- QuRT: fix type and definition inaccuracies against SDK headers ([#5091](https://github.com/rust-lang/libc/pull/5091))
142- Windows: Correctly link to 32-bit time routines on 32-bit platforms ([#5059](https://github.com/rust-lang/libc/pull/5059))
143- uClibc: Fix constants accidentally removed ([#5141](https://github.com/rust-lang/libc/pull/5141))
144- uclibc: Fix build issues ([#5046](https://github.com/rust-lang/libc/pull/5046))
145- uclibc: Fix type of PRIO_PROCESS and friends ([#5046](https://github.com/rust-lang/libc/pull/5046))
146
147### Changed
148
149- AIX, TeeOS: Drop unneeded `-> c_void` ([#5240](https://github.com/rust-lang/libc/pull/5240))
150- Apple: Change `AIO_LISTIO_MAX` to account for changes in macOS 27 ([#5253](https://github.com/rust-lang/libc/pull/5253))
151- Glibc: Update the value of `MS_NOUSER` ([#5215](https://github.com/rust-lang/libc/pull/5215))
152- L4Re: Update definitions and test infra ([#5275](https://github.com/rust-lang/libc/pull/5275))
153- Linux: Update the value of `SW_MAX` and `SW_CNT` ([#5215](https://github.com/rust-lang/libc/pull/5215))
154- MacOS: Add `swapped_count` to `vm_statistics64` ([#4926](https://github.com/rust-lang/libc/pull/4926))
155- Windows: Windows-GNU now respects `libc_unstable_gnu_time_bits` for 64-bit `time_t` config ([#5062](https://github.com/rust-lang/libc/pull/5062))
156
157### Removed
158
159- Dragonfly: Remove FreeBSD-only `Elf32_Lword`, `ip_mreq_source`, and `IP_` constants ([#5116](https://github.com/rust-lang/libc/pull/5116))
160- Dragonfly: Remove private VM type bindings ([#5116](https://github.com/rust-lang/libc/pull/5116))
161- Linux: Remove `KERN_REALROOTDEV` and `VM_LAPTOP_MODE` ([#5177](https://github.com/rust-lang/libc/pull/5177))
162- VxWorks: Remove non-user-facing (kernel) API ([#5129](https://github.com/rust-lang/libc/pull/5129))
163
164### Other
165
166- Print config information if `LIBC_BUILD_VERBOSE` is set ([#5272](https://github.com/rust-lang/libc/pull/5272))
167- Annotate `*LAST` constants as potentially changing ([#5120](https://github.com/rust-lang/libc/pull/5120))
168- Annotate `*MAX` constants as potentially changing ([#5122](https://github.com/rust-lang/libc/pull/5122))
169- BSD: Annotate `ELAST` constants as potentially changing ([#5118](https://github.com/rust-lang/libc/pull/5118))
170- FreeBSD: Annotate `RAND_MAX` as potentially changing ([#5119](https://github.com/rust-lang/libc/pull/5119))
171- Linux, L4re: Annotate `*NUM` constants as potentially changing ([#5123](https://github.com/rust-lang/libc/pull/5123))
172- QNX: Restructure to support new platforms ([#4984](https://github.com/rust-lang/libc/pull/4984))
173- Unix: Annotate `*COUNT` constants as potentially changing ([#5121](https://github.com/rust-lang/libc/pull/5121))
174- uClibc: Add unstable support of 64-bit `time_t` ([#5046](https://github.com/rust-lang/libc/pull/5046))
175- (internal) FreeBSD: Replace unstable env to set version with an unstable cfg ([#5201](https://github.com/rust-lang/libc/pull/5201))
176- (internal) Glibc: Remove public configuration for file offset bits ([#5268](https://github.com/rust-lang/libc/pull/5268))
177- (internal) Linux: Delete config via `RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64` ([#5197](https://github.com/rust-lang/libc/pull/5197))
178- (internal) Replace `RUST_LIBC_UNSTABLE` env with `libc_unstable*` cfg ([#4977](https://github.com/rust-lang/libc/pull/4977))
179
180
181## [0.2.186](https://github.com/rust-lang/libc/compare/0.2.185...0.2.186) - 2026-04-24
182
183### Added
184
185- Apple: Add `KEVENT_FLAG_*` constants ([#5070](https://github.com/rust-lang/libc/pull/5070))
186- Linux: Add `PR_SET_MEMORY_MERGE` and `PR_GET_MEMORY_MERGE` ([#5060](https://github.com/rust-lang/libc/pull/5060))
187
188### Changed
189
190- CI: Migrate FreeBSD CI from Cirrus CI to GitHub Actions ([#5058](https://github.com/rust-lang/libc/pull/5058))
191
192## [0.2.185](https://github.com/rust-lang/libc/compare/0.2.184...0.2.185) - 2026-04-13
193
194### Added
195
196- EspIDF: Add `espidf_picolibc` cfg for picolibc `O_*` flag values ([#5035](https://github.com/rust-lang/libc/pull/5035))
197- Hexagon: add missing constants and fix types for linux-musl ([#5042](https://github.com/rust-lang/libc/pull/5042))
198- Redox: Add semaphore functions ([#5051](https://github.com/rust-lang/libc/pull/5051))
199- Windows: Add `sprintf`, `snprintf`, and the `scanf` family ([#5024](https://github.com/rust-lang/libc/pull/5024))
200
201### Fixed
202
203- Hexagon: Decouple `time64` types from musl symbol redirects ([#5040](https://github.com/rust-lang/libc/pull/5040))
204- Horizon: Change `POLL` constants from `c_short` to `c_int` ([#5045](https://github.com/rust-lang/libc/pull/5045))
205
206
207## [0.2.184](https://github.com/rust-lang/libc/compare/0.2.183...0.2.184) - 2026-04-01
208
209### MSRV
210
211This release increases the MSRV of `libc` to 1.65. With this update, you can now always use the
212`core::ffi::c_*` types with `libc` definitions, since `libc` has been changed to reexport from
213`core` rather than redefining them. (This _usually_ worked before but had edge cases.)
214([#4972](https://github.com/rust-lang/libc/pull/4972))
215
216### Added
217
218- BSD: Add `IP_MINTTL` to bsd ([#5026](https://github.com/rust-lang/libc/pull/5026))
219- Cygwin: Add `TIOCM_DSR` ([#5031](https://github.com/rust-lang/libc/pull/5031))
220- FreeBSD: Added `xfile` structe and file descriptor types ([#5002](https://github.com/rust-lang/libc/pull/5002))
221- Linux: Add CAN netlink bindings ([#5011](https://github.com/rust-lang/libc/pull/5011))
222- Linux: Add `struct ethhdr` ([#4239](https://github.com/rust-lang/libc/pull/4239))
223- Linux: Add `struct ifinfomsg` ([#5012](https://github.com/rust-lang/libc/pull/5012))
224- Linux: Define `max_align_t` for riscv64 ([#5029](https://github.com/rust-lang/libc/pull/5029))
225- NetBSD: Add missing `CLOCK_` constants ([#5020](https://github.com/rust-lang/libc/pull/5020))
226- NuttX: Add `_SC_HOST_NAME_MAX` ([#5004](https://github.com/rust-lang/libc/pull/5004))
227- VxWorks: Add `flock` and `F_*LCK` constants ([#4043](https://github.com/rust-lang/libc/pull/4043))
228- WASI: Add all `_SC_*` sysconf constants ([#5023](https://github.com/rust-lang/libc/pull/5023))
229
230### Deprecated
231
232The remaining fixed-width integer aliases, `__uint128_t`, `__uint128`, `__int128_t`, and `__int128`,
233have been deprecated. Use `i128` and `u128` instead. ([#4343](https://github.com/rust-lang/libc/pull/4343))
234
235### Fixed
236
237- **breaking** Redox: Fix signal action constant types ([#5009](https://github.com/rust-lang/libc/pull/5009))
238- EspIDF: Correct the value of `DT_*` constants ([#5034](https://github.com/rust-lang/libc/pull/5034))
239- Redox: Fix locale values and add `RTLD_NOLOAD`, some TCP constants ([#5025](https://github.com/rust-lang/libc/pull/5025))
240- Various: Use `Padding::new(<zeroed>)` rather than `Padding::uninit()` ([#5036](https://github.com/rust-lang/libc/pull/5036))
241
242### Changed
243
244- **potentially breaking** Linux: Add new fields to `struct ptrace_syscall_info` ([#4966](https://github.com/rust-lang/libc/pull/4966))
245- Re-export `core::ffi` integer types rather than redefining ([#5015](https://github.com/rust-lang/libc/pull/5015))
246- Redox: Update `F_DUPFD`, `IP`, and `TCP` constants to match relibc ([#4990](https://github.com/rust-lang/libc/pull/4990))
247
248
249
250## [0.2.183](https://github.com/rust-lang/libc/compare/0.2.182...0.2.183) - 2026-03-08
251
252### Added
253
254- ESP-IDF: Add `SOMAXCONN` ([#4993](https://github.com/rust-lang/libc/pull/4993))
255- Linux: Add `name_to_handle_at` and `open_by_handle_at` ([#4988](https://github.com/rust-lang/libc/pull/4988))
256- NetBSD: Add `kinfo_file`, `kinfo_pcb`, and related constants ([#4985](https://github.com/rust-lang/libc/pull/4985))
257- OpenBSD: Add `kinfo_file` and related constants ([#4991](https://github.com/rust-lang/libc/pull/4991))
258- VxWorks: Add additional structs and defines ([#5003](https://github.com/rust-lang/libc/pull/5003))
259- Various: Implement `Default` for `timeval` and `timespec` ([#4976](https://github.com/rust-lang/libc/pull/4976))
260
261### Fixed
262
263- Hexagon musl: Enable unstable 64-bit `time_t` support and `musl_v1_2_3` ([#4992](https://github.com/rust-lang/libc/pull/4992))
264- Nintendo Switch: Fix target support ([#4982](https://github.com/rust-lang/libc/pull/4982))
265- OpenBSD: Wrap an unused field in `Padding` ([#4997](https://github.com/rust-lang/libc/pull/4997))
266- Redox: Change `sigaction.sa_flags` to `c_int` ([#4986](https://github.com/rust-lang/libc/pull/4986))
267- Redox: Fix `blkcnt_t` type ([#4994](https://github.com/rust-lang/libc/pull/4994))
268
269## [0.2.182](https://github.com/rust-lang/libc/compare/0.2.181...0.2.182) - 2026-02-13
270
271### Added
272
273- Android, Linux: Add `tgkill` ([#4970](https://github.com/rust-lang/libc/pull/4970))
274- Redox: Add `RENAME_NOREPLACE` ([#4968](https://github.com/rust-lang/libc/pull/4968))
275- Redox: Add `renameat2` ([#4968](https://github.com/rust-lang/libc/pull/4968))
276
277
278## [0.2.181](https://github.com/rust-lang/libc/compare/0.2.180...0.2.181) - 2026-02-09
279
280### Added
281
282- Apple: Add `MADV_ZERO` ([#4924](https://github.com/rust-lang/libc/pull/4924))
283- Redox: Add `makedev`, `major`, and `minor` ([#4928](https://github.com/rust-lang/libc/pull/4928))
284- GLibc: Add `PTRACE_SET_SYSCALL_INFO` ([#4933](https://github.com/rust-lang/libc/pull/4933))
285- OpenBSD: Add more kqueue related constants for ([#4945](https://github.com/rust-lang/libc/pull/4945))
286- Linux: add CAN error types ([#4944](https://github.com/rust-lang/libc/pull/4944))
287- OpenBSD: Add siginfo_t::si_status ([#4946](https://github.com/rust-lang/libc/pull/4946))
288- QNX NTO: Add `max_align_t` ([#4927](https://github.com/rust-lang/libc/pull/4927))
289- Illumos: Add `_CS_PATH` ([#4956](https://github.com/rust-lang/libc/pull/4956))
290- OpenBSD: add `ppoll` ([#4957](https://github.com/rust-lang/libc/pull/4957))
291
292### Fixed
293
294- **breaking**: Redox: Fix the type of dev_t ([#4928](https://github.com/rust-lang/libc/pull/4928))
295- AIX: Change 'tv_nsec' of 'struct timespec' to type 'c_long' ([#4931](https://github.com/rust-lang/libc/pull/4931))
296- AIX: Use 'struct st_timespec' in 'struct stat{,64}' ([#4931](https://github.com/rust-lang/libc/pull/4931))
297- Glibc: Link old version of `tc{g,s}etattr` ([#4938](https://github.com/rust-lang/libc/pull/4938))
298- Glibc: Link the correct version of `cf{g,s}et{i,o}speed` on mips{32,64}r6 ([#4938](https://github.com/rust-lang/libc/pull/4938))
299- OpenBSD: Fix constness of tm.tm_zone ([#4948](https://github.com/rust-lang/libc/pull/4948))
300- OpenBSD: Fix the definition of `ptrace_thread_state` ([#4947](https://github.com/rust-lang/libc/pull/4947))
301- QuRT: Fix type visibility and defs ([#4932](https://github.com/rust-lang/libc/pull/4932))
302- Redox: Fix values for `PTHREAD_MUTEX_{NORMAL, RECURSIVE}` ([#4943](https://github.com/rust-lang/libc/pull/4943))
303- Various: Mark additional fields as private padding ([#4922](https://github.com/rust-lang/libc/pull/4922))
304
305### Changed
306
307- Fuchsia: Update `SO_*` constants ([#4937](https://github.com/rust-lang/libc/pull/4937))
308- Revert "musl: convert inline timespecs to timespec" (resolves build issues on targets only supported by Musl 1.2.3+ ) ([#4958](https://github.com/rust-lang/libc/pull/4958))
309
310
311## [0.2.180](https://github.com/rust-lang/libc/compare/0.2.179...0.2.180) - 2026-01-08
312
313### Added
314
315- QNX: Add missing BPF and ifreq structures ([#4769](https://github.com/rust-lang/libc/pull/4769))
316
317### Fixed
318
319- Linux, L4Re: address soundness issues of `CMSG_NXTHDR` ([#4903](https://github.com/rust-lang/libc/pull/4903))
320- Linux-like: Handle zero-sized payload differences in `CMSG_NXTHDR` ([#4903](https://github.com/rust-lang/libc/pull/4903))
321- Musl: Fix incorrect definitions of struct stat on some 32-bit architectures ([#4914](https://github.com/rust-lang/libc/pull/4914))
322- NetBSD: RISC-V 64: Correct `mcontext` type definitions ([#4886](https://github.com/rust-lang/libc/pull/4886))
323- uClibc: Re-enable `__SIZEOF_PTHREAD_COND_T` on non-L4Re uclibc ([#4915](https://github.com/rust-lang/libc/pull/4915))
324- uClibc: Restructure Linux `netlink` module to resolve build errors ([#4915](https://github.com/rust-lang/libc/pull/4915))
325
326
327## [0.2.179](https://github.com/rust-lang/libc/compare/0.2.178...0.2.179) - 2025-01-03
328
329With this release, we now have _unstable_ support for 64-bit `time_t` on 32-bit
330platforms with both Musl and Glibc. Testing is appreciated!
331
332For now, these can be enabled by setting environment variables during build:
333
334```text
335RUST_LIBC_UNSTABLE_MUSL_V1_2_3=1
336RUST_LIBC_UNSTABLE_GNU_TIME_BITS=64
337```
338
339Note that the exact configuration will change in the future. Setting the
340`MUSL_V1_2_3` variable also enables some newer API unrelated to `time_t`.
341
342### Added
343
344- L4Re: Add uclibc aarch64 support ([#4479](https://github.com/rust-lang/libc/pull/4479))
345- Linux, Android: Add a generic definition for `XCASE` ([#4847](https://github.com/rust-lang/libc/pull/4847))
346- Linux-like: Add `NAME_MAX` ([#4888](https://github.com/rust-lang/libc/pull/4888))
347- Linux: Add `AT_EXECVE_CHECK` ([#4422](https://github.com/rust-lang/libc/pull/4422))
348- Linux: Add the `SUN_LEN` macro ([#4269](https://github.com/rust-lang/libc/pull/4269))
349- Linux: add `getitimer` and `setitimer` ([#4890](https://github.com/rust-lang/libc/pull/4890))
350- Linux: add `pthread_tryjoin_n` and `pthread_timedjoin_np` ([#4887](https://github.com/rust-lang/libc/pull/4887))
351- Musl: Add unstable support for 64-bit `time_t` on 32-bit platforms ([#4463](https://github.com/rust-lang/libc/pull/4463))
352- NetBSD, OpenBSD: Add interface `LINK_STATE_*` definitions from `sys/net/if.h` ([#4751](https://github.com/rust-lang/libc/pull/4751))
353- QuRT: Add support for Qualcomm QuRT ([#4845](https://github.com/rust-lang/libc/pull/4845))
354- Types: Add Padding<T>::uninit() ([#4862](https://github.com/rust-lang/libc/pull/4862))
355
356### Fixed
357
358- Glibc: Link old version of `cf{g,s}et{i,o}speed` ([#4882](https://github.com/rust-lang/libc/pull/4882))
359- L4Re: Fixes for `pthread` ([#4479](https://github.com/rust-lang/libc/pull/4479))
360- L4re: Fix a wide variety of incorrect definitions ([#4479](https://github.com/rust-lang/libc/pull/4479))
361- Musl: Fix the value of `CPU_SETSIZE` on musl 1.2+ ([#4865](https://github.com/rust-lang/libc/pull/4865))
362- Musl: RISC-V: fix public padding fields in `stat/stat64` ([#4463](https://github.com/rust-lang/libc/pull/4463))
363- Musl: s390x: Fix definition of `SIGSTKSZ`/`MINSIGSTKSZ` ([#4884](https://github.com/rust-lang/libc/pull/4884))
364- NetBSD: Arm: Fix `PT_{GET,SET}FPREGS`, `_REG_TIPDR`, and `_REG_{LR,SP}` ([#4899](https://github.com/rust-lang/libc/pull/4899))
365- NetBSD: Fix `if_msghdr` alignment ([#4902](https://github.com/rust-lang/libc/pull/4902))
366- NetBSD: Fix `siginfo_t` layout on 32-bit platforms ([#4904](https://github.com/rust-lang/libc/pull/4904))
367- NetBSD: change definition of `pthread_spin_t` to allow arch redefinition. ([#4899](https://github.com/rust-lang/libc/pull/4899))
368- Newlib: Fix ambiguous glob exports and other warnings for Vita and 3DS ([#4875](https://github.com/rust-lang/libc/pull/4875))
369- QNX: Fix build error ([#4879](https://github.com/rust-lang/libc/pull/4879))
370
371### Changed
372
373- CI: Update CI images to FreeBSD 15.0-release ([#4857](https://github.com/rust-lang/libc/pull/4857))
374- L4Re: Make `pthread` struct fields private ([#4876](https://github.com/rust-lang/libc/pull/4876))
375- Linux, Fuchsia: Mark mq_attr padding area as such ([#4858](https://github.com/rust-lang/libc/pull/4858))
376- Types: Wrap a number of private fields in the `Padding` type ([#4862](https://github.com/rust-lang/libc/pull/4862))
377
378### Removed
379
380- Build: Remove `RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64` ([#4865](https://github.com/rust-lang/libc/pull/4865))
381- WASI: Remove nonexistent clocks ([#4880](https://github.com/rust-lang/libc/pull/4880))
382
383
384## [0.2.178](https://github.com/rust-lang/libc/compare/0.2.177...0.2.178) - 2025-12-01
385
386### Added
387
388- BSD: Add `issetugid` ([#4744](https://github.com/rust-lang/libc/pull/4744))
389- Cygwin: Add missing utmp/x.h, grp.h, and stdio.h interfaces ([#4827](https://github.com/rust-lang/libc/pull/4827))
390- Linux s390x musl: Add `__psw_t`/`fprefset_t`/`*context_t` ([#4726](https://github.com/rust-lang/libc/pull/4726))
391- Linux, Android: Add definition for IUCLC ([#4846](https://github.com/rust-lang/libc/pull/4846))
392- Linux, FreeBSD: Add `AT_HWCAP{3,4}` ([#4734](https://github.com/rust-lang/libc/pull/4734))
393- Linux: Add definitions from linux/can/bcm.h ([#4683](https://github.com/rust-lang/libc/pull/4683))
394- Linux: Add syscalls 451-469 for m68k ([#4850](https://github.com/rust-lang/libc/pull/4850))
395- Linux: PowerPC: Add 'ucontext.h' definitions ([#4696](https://github.com/rust-lang/libc/pull/4696))
396- NetBSD: Define `eventfd` ([#4830](https://github.com/rust-lang/libc/pull/4830))
397- Newlib: Add missing constants from `unistd.h` ([#4811](https://github.com/rust-lang/libc/pull/4811))
398- QNX NTO: Add `cfmakeraw` ([#4704](https://github.com/rust-lang/libc/pull/4704))
399- QNX NTO: Add `cfsetspeed` ([#4704](https://github.com/rust-lang/libc/pull/4704))
400- Redox: Add `getresgid` and `getresuid` ([#4752](https://github.com/rust-lang/libc/pull/4752))
401- Redox: Add `setresgid` and `setresuid` ([#4752](https://github.com/rust-lang/libc/pull/4752))
402- 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](https://github.com/rust-lang/libc/pull/4781))
403- VxWorks: Add missing defines/functions needed by rust stdlib ([#4779](https://github.com/rust-lang/libc/pull/4779))
404- WASI: Add more definitions for libstd ([#4747](https://github.com/rust-lang/libc/pull/4747))
405
406### Deprecated
407
408- Apple: Deprecate `TIOCREMOTE` ([#4764](https://github.com/rust-lang/libc/pull/4764))
409
410### Fixed
411
412Note that there were a large number of fixes on NetBSD for this `libc` release, some of which include minor breakage.
413
414- AIX: Change errno `EWOULDBLOCK` to make it an alias of `EAGAIN` ([#4790](https://github.com/rust-lang/libc/pull/4790))
415- AIX: Resolve function comparison and `unnecessary_transmutes` warnings ([#4780](https://github.com/rust-lang/libc/pull/4780))
416- Apple: Correct the value of `SF_SETTABLE` ([#4764](https://github.com/rust-lang/libc/pull/4764))
417- DragonflyBSD: Fix the type of `mcontext_t.mc_fpregs` ([#]())
418- EspIDF: Fix the duplicate definition of `gethostname` ([#4773](https://github.com/rust-lang/libc/pull/4773))
419- L4Re: Update available pthread API ([#4836](https://github.com/rust-lang/libc/pull/4836))
420- Linux: Correct the value of `NFT_MSG_MAX` ([#4761](https://github.com/rust-lang/libc/pull/4761))
421- Linux: Remove incorrect `repr(align(8))` for `canxl_frame` ([#4760](https://github.com/rust-lang/libc/pull/4760))
422- Make `eventfd` argument names match OS docs/headers ([#4830](https://github.com/rust-lang/libc/pull/4830))
423- NetBSD: Account for upstream changes to ptrace with LWP ([#4782](https://github.com/rust-lang/libc/pull/4782))
424- NetBSD: Correct `ipc_perm`, split from OpenBSD as `ipc.rs` ([#4782](https://github.com/rust-lang/libc/pull/4782))
425- NetBSD: Correct a number of symbol link names ([#4782](https://github.com/rust-lang/libc/pull/4782))
426- NetBSD: Correct the type of `kinfo_vmentry.kve_path` ([#]())
427- NetBSD: Fix `uucred.cr_ngroups` from `int` to `short` ([#4782](https://github.com/rust-lang/libc/pull/4782))
428- NetBSD: Fix the type of `kevent.udata` ([#4782](https://github.com/rust-lang/libc/pull/4782))
429- NetBSD: Fix the type of `mcontext_t.__fpregs` ([#4782](https://github.com/rust-lang/libc/pull/4782))
430- NetBSD: Fix the value of `PT_SUSPEND` ([#4782](https://github.com/rust-lang/libc/pull/4782))
431- NetBSD: Fix the values of FNM_* constants ([#4782](https://github.com/rust-lang/libc/pull/4782))
432- NetBSD: Increase the size of `sockaddr_dl.sdl_data` from 12 to 24 ([#4782](https://github.com/rust-lang/libc/pull/4782))
433- NetBSD: Introduce `if_.rs`, fix the definition of `ifreq` ([#4782](https://github.com/rust-lang/libc/pull/4782))
434- NetBSD: Introduce `time.rs`, fix the values of `CLOCK_*_CPUTIME_ID` ([#4782](https://github.com/rust-lang/libc/pull/4782))
435- NetBSD: Introduce `timex.rs` ([#4782](https://github.com/rust-lang/libc/pull/4782))
436- NetBSD: Introduce `types.rs`, correct the definition of `lwpid_t` ([#4782](https://github.com/rust-lang/libc/pull/4782))
437- NetBSD: Introduce `utmp_.rs`, correct the definition of `lastlog` ([#4782](https://github.com/rust-lang/libc/pull/4782))
438- NetBSD: Introduce `utmpx_.rs`, correct utmpx definitions ([#4782](https://github.com/rust-lang/libc/pull/4782))
439- NetBSD: Make `_cpuset` an extern type ([#4782](https://github.com/rust-lang/libc/pull/4782))
440- NetBSD: RISC-V 64: Fix the `mcontext` types ([#4782](https://github.com/rust-lang/libc/pull/4782))
441- Nuttx: Resolve warnings ([#4773](https://github.com/rust-lang/libc/pull/4773))
442- OHOS: Don't emit duplicate lfs64 definitions ([#4804](https://github.com/rust-lang/libc/pull/4804))
443- Redox: Fix the type of `pid_t` ([#4825](https://github.com/rust-lang/libc/pull/4825))
444- WASI: Gate `__wasilibc_register_preopened_fd` ([#4837](https://github.com/rust-lang/libc/pull/4837))
445- Wali: Fix unknown config ([#4773](https://github.com/rust-lang/libc/pull/4773))
446
447### Changed
448
449- AIX: Declare field 'tv_nsec' of structure 'timespec' as 'i32' in both 32-bit and 64-bit modes ([#4750](https://github.com/rust-lang/libc/pull/4750))
450- DragonFly: Avoid usage of `thread_local` ([#3653](https://github.com/rust-lang/libc/pull/3653))
451- Linux: Update the definition for `ucontext_t` and unskip its tests ([#4760](https://github.com/rust-lang/libc/pull/4760))
452- MinGW: Set `L_tmpnam` and `TMP_MAX` to the UCRT value ([#4566](https://github.com/rust-lang/libc/pull/4566))
453- WASI: More closely align pthread type reprs ([#4747](https://github.com/rust-lang/libc/pull/4747))
454- Simplify rustc-check-cfg emission in build.rs ([#4724](https://github.com/rust-lang/libc/pull/4724))
455- Transition a number of definitions to the new source structure (internal change)
456
457### Removed
458
459- MIPS Musl: Remove rogue definition of `SIGSTKFLT` ([#4749](https://github.com/rust-lang/libc/pull/4749))
460- NetBSD: Make `statvfs.f_spare` non-public ([#4782](https://github.com/rust-lang/libc/pull/4782))
461- NetBSD: Remove BPF constants ([#4782](https://github.com/rust-lang/libc/pull/4782))
462- NetBSD: Remove `*_MAXID` constants and `AT_SUN_LDPGSIZE` ([#4782](https://github.com/rust-lang/libc/pull/4782))
463- NetBSD: Remove `IFF_NOTRAILERS` ([#4782](https://github.com/rust-lang/libc/pull/4782))
464- NetBSD: Remove `vm_size_t` ([#4782](https://github.com/rust-lang/libc/pull/4782))
465- NetBSD: Replace REG_ENOSYS with REG_ILLSEQ ([#4782](https://github.com/rust-lang/libc/pull/4782))
466
467
468## [0.2.177](https://github.com/rust-lang/libc/compare/0.2.176...0.2.177) - 2025-10-09
469
470### Added
471
472- Apple: Add `TIOCGETA`, `TIOCSETA`, `TIOCSETAW`, `TIOCSETAF` constants ([#4736](https://github.com/rust-lang/libc/pull/4736))
473- Apple: Add `pthread_cond_timedwait_relative_np` ([#4719](https://github.com/rust-lang/libc/pull/4719))
474- BSDs: Add `_CS_PATH` constant ([#4738](https://github.com/rust-lang/libc/pull/4738))
475- Linux-like: Add `SIGEMT` for mips* and sparc* architectures ([#4730](https://github.com/rust-lang/libc/pull/4730))
476- OpenBSD: Add `elf_aux_info` ([#4729](https://github.com/rust-lang/libc/pull/4729))
477- Redox: Add more sysconf constants ([#4728](https://github.com/rust-lang/libc/pull/4728))
478- Windows: Add `wcsnlen` ([#4721](https://github.com/rust-lang/libc/pull/4721))
479
480### Changed
481
482- WASIP2: Invert conditional to include p2 APIs ([#4733](https://github.com/rust-lang/libc/pull/4733))
483
484## [0.2.176](https://github.com/rust-lang/libc/compare/0.2.175...0.2.176) - 2025-09-23
485
486### Support
487
488- The default FreeBSD version has been raised from 11 to 12. This matches `rustc` since 1.78. ([#2406](https://github.com/rust-lang/libc/pull/2406))
489- `Debug` is now always implemented, rather than being gated behind the `extra_traits` feature. ([#4624](https://github.com/rust-lang/libc/pull/4624))
490
491### Added
492
493- AIX: Restore some non-POSIX functions guarded by the `_KERNEL` macro. ([#4607](https://github.com/rust-lang/libc/pull/4607))
494- FreeBSD 14: Add `st_fileref` to `struct stat` ([#4642](https://github.com/rust-lang/libc/pull/4642))
495- Haiku: Add the `accept4` POSIX call ([#4586](https://github.com/rust-lang/libc/pull/4586))
496- Introduce a wrapper for representing padding ([#4632](https://github.com/rust-lang/libc/pull/4632))
497- Linux: Add `EM_RISCV` ([#4659](https://github.com/rust-lang/libc/pull/4659))
498- Linux: Add `MS_NOSYMFOLLOW` ([#4389](https://github.com/rust-lang/libc/pull/4389))
499- Linux: Add `backtrace_symbols(_fd)` ([#4668](https://github.com/rust-lang/libc/pull/4668))
500- Linux: Add missing `SOL_PACKET` optnames ([#4669](https://github.com/rust-lang/libc/pull/4669))
501- Musl s390x: Add `SYS_mseal` ([#4549](https://github.com/rust-lang/libc/pull/4549))
502- NuttX: Add `__errno` ([#4687](https://github.com/rust-lang/libc/pull/4687))
503- Redox: Add `dirfd`, `VDISABLE`, and resource consts ([#4660](https://github.com/rust-lang/libc/pull/4660))
504- Redox: Add more `resource.h`, `fcntl.h` constants ([#4666](https://github.com/rust-lang/libc/pull/4666))
505- Redox: Enable `strftime` and `mkostemp[s]` ([#4629](https://github.com/rust-lang/libc/pull/4629))
506- Unix, Windows: Add `qsort_r` (Unix), and `qsort(_s)` (Windows) ([#4677](https://github.com/rust-lang/libc/pull/4677))
507- Unix: Add `dlvsym` for Linux-gnu, FreeBSD, and NetBSD ([#4671](https://github.com/rust-lang/libc/pull/4671))
508- Unix: Add `sigqueue` ([#4620](https://github.com/rust-lang/libc/pull/4620))
509
510### Changed
511
512- FreeBSD 15: Mark `kinfo_proc` as non-exhaustive ([#4553](https://github.com/rust-lang/libc/pull/4553))
513- FreeBSD: Set the ELF symbol version for `readdir_r` ([#4694](https://github.com/rust-lang/libc/pull/4694))
514- Linux: Correct the config for whether or not `epoll_event` is packed ([#4639](https://github.com/rust-lang/libc/pull/4639))
515- Tests: Replace the old `ctest` with the much more reliable new implementation ([#4655](https://github.com/rust-lang/libc/pull/4655) and many related PRs)
516
517### Fixed
518
519- AIX: Fix the type of the 4th arguement of `getgrnam_r` ([#4656](https://github.com/rust-lang/libc/pull/4656
520- FreeBSD: Limit `P_IDLEPROC` to FreeBSD 15 ([#4640](https://github.com/rust-lang/libc/pull/4640))
521- FreeBSD: Limit `mcontext_t::mc_tlsbase` to FreeBSD 15 ([#4640](https://github.com/rust-lang/libc/pull/464))
522- FreeBSD: Update gating of `mcontext_t.mc_tlsbase` ([#4703](https://github.com/rust-lang/libc/pull/4703))
523- Musl s390x: Correct the definition of `statfs[64]` ([#4549](https://github.com/rust-lang/libc/pull/4549))
524- Musl s390x: Make `fpreg_t` a union ([#4549](https://github.com/rust-lang/libc/pull/4549))
525- Redox: Fix the types of `gid_t` and `uid_t` ([#4689](https://github.com/rust-lang/libc/pull/4689))
526- Redox: Fix the value of `MAP_FIXED` ([#4684](https://github.com/rust-lang/libc/pull/4684))
527
528### Deprecated
529
530- Apple: Correct the `deprecated` attribute for `iconv` ([`a97a0b53`](https://github.com/rust-lang/libc/commit/a97a0b53fb7faf5f99cd720ab12b1b8a5bf9f950))
531- FreeBSD: Deprecate `TIOCMGDTRWAIT` and `TIOCMSDTRWAIT` ([#4685](https://github.com/rust-lang/libc/pull/4685))
532
533### Removed
534
535- FreeBSD: Remove `JAIL_{GET,SET}_MASK`, `_MC_FLAG_MASK` ([#4691](https://github.com/rust-lang/libc/pull/4691))
536
537## [0.2.175](https://github.com/rust-lang/libc/compare/0.2.174...0.2.175) - 2025-08-10
538
539### Added
540
541- AIX: Add `getpeereid` ([#4524](https://github.com/rust-lang/libc/pull/4524))
542- AIX: Add `struct ld_info` and friends ([#4578](https://github.com/rust-lang/libc/pull/4578))
543- AIX: Retore `struct winsize` ([#4577](https://github.com/rust-lang/libc/pull/4577))
544- Android: Add UDP socket option constants ([#4619](https://github.com/rust-lang/libc/pull/4619))
545- Android: Add `CLONE_CLEAR_SIGHAND` and `CLONE_INTO_CGROUP` ([#4502](https://github.com/rust-lang/libc/pull/4502))
546- Android: Add more `prctl` constants ([#4531](https://github.com/rust-lang/libc/pull/4531))
547- FreeBSD Add further TCP stack-related constants ([#4196](https://github.com/rust-lang/libc/pull/4196))
548- FreeBSD x86-64: Add `mcontext_t.mc_tlsbase ` ([#4503](https://github.com/rust-lang/libc/pull/4503))
549- FreeBSD15: Add `kinfo_proc.ki_uerrmsg` ([#4552](https://github.com/rust-lang/libc/pull/4552))
550- FreeBSD: Add `in_conninfo` ([#4482](https://github.com/rust-lang/libc/pull/4482))
551- FreeBSD: Add `xinpgen` and related types ([#4482](https://github.com/rust-lang/libc/pull/4482))
552- FreeBSD: Add `xktls_session` ([#4482](https://github.com/rust-lang/libc/pull/4482))
553- Haiku: Add functionality from `libbsd` ([#4221](https://github.com/rust-lang/libc/pull/4221))
554- Linux: Add `SECBIT_*` ([#4480](https://github.com/rust-lang/libc/pull/4480))
555- NetBSD, OpenBSD: Export `ioctl` request generator macros ([#4460](https://github.com/rust-lang/libc/pull/4460))
556- NetBSD: Add `ptsname_r` ([#4608](https://github.com/rust-lang/libc/pull/4608))
557- RISCV32: Add time-related syscalls ([#4612](https://github.com/rust-lang/libc/pull/4612))
558- Solarish: Add `strftime*` ([#4453](https://github.com/rust-lang/libc/pull/4453))
559- linux: Add `EXEC_RESTRICT_*` and `EXEC_DENY_*` ([#4545](https://github.com/rust-lang/libc/pull/4545))
560
561### Changed
562
563- AIX: Add `const` to signatures to be consistent with other platforms ([#4563](https://github.com/rust-lang/libc/pull/4563))
564
565### Fixed
566
567- AIX: Fix the type of `struct statvfs.f_fsid` ([#4576](https://github.com/rust-lang/libc/pull/4576))
568- AIX: Fix the type of constants for the `ioctl` `request` argument ([#4582](https://github.com/rust-lang/libc/pull/4582))
569- AIX: Fix the types of `stat{,64}.st_*tim` ([#4597](https://github.com/rust-lang/libc/pull/4597))
570- AIX: Use unique `errno` values ([#4507](https://github.com/rust-lang/libc/pull/4507))
571- Build: Fix an incorrect `target_os` -> `target_arch` check ([#4550](https://github.com/rust-lang/libc/pull/4550))
572- FreeBSD: Fix the type of `xktls_session_onedir.ifnet` ([#4552](https://github.com/rust-lang/libc/pull/4552))
573- Mips64 musl: Fix the type of `nlink_t` ([#4509](https://github.com/rust-lang/libc/pull/4509))
574- Mips64 musl: Use a special MIPS definition of `stack_t` ([#4528](https://github.com/rust-lang/libc/pull/4528))
575- Mips64: Fix `SI_TIMER`, `SI_MESGQ` and `SI_ASYNCIO` definitions ([#4529](https://github.com/rust-lang/libc/pull/4529))
576- Musl Mips64: Swap the order of `si_errno` and `si_code` in `siginfo_t` ([#4530](https://github.com/rust-lang/libc/pull/4530))
577- Musl Mips64: Use a special MIPS definition of `statfs` ([#4527](https://github.com/rust-lang/libc/pull/4527))
578- Musl: Fix the definition of `fanotify_event_metadata` ([#4510](https://github.com/rust-lang/libc/pull/4510))
579- NetBSD: Correct `enum fae_action` to be `#[repr(C)]` ([#60a8cfd5](https://github.com/rust-lang/libc/commit/60a8cfd564f83164d45b9533ff7a0d7371878f2a))
580- PSP: Correct `char` -> `c_char` ([eaab4fc3](https://github.com/rust-lang/libc/commit/eaab4fc3f05dc646a953d4fd5ba46dfa1f8bd6f6))
581- PowerPC musl: Fix `termios` definitions ([#4518](https://github.com/rust-lang/libc/pull/4518))
582- PowerPC musl: Fix the definition of `EDEADLK` ([#4517](https://github.com/rust-lang/libc/pull/4517))
583- PowerPC musl: Fix the definition of `NCCS` ([#4513](https://github.com/rust-lang/libc/pull/4513))
584- PowerPC musl: Fix the definitions of `MAP_LOCKED` and `MAP_NORESERVE` ([#4516](https://github.com/rust-lang/libc/pull/4516))
585- PowerPC64 musl: Fix the definition of `shmid_ds` ([#4519](https://github.com/rust-lang/libc/pull/4519))
586
587### Deprecated
588
589- Linux: `MAP_32BIT` is only defined on x86 on non-x86 architectures ([#4511](https://github.com/rust-lang/libc/pull/4511))
590
591### Removed
592
593- AIX: Remove duplicate constant definitions `FIND` and `ENTER` ([#4588](https://github.com/rust-lang/libc/pull/4588))
594- s390x musl: Remove `O_FSYNC` ([#4515](https://github.com/rust-lang/libc/pull/4515))
595- s390x musl: Remove `RTLD_DEEPBIND` ([#4515](https://github.com/rust-lang/libc/pull/4515))
596
597
598## [0.2.174](https://github.com/rust-lang/libc/compare/0.2.173...0.2.174) - 2025-06-17
599
600### Added
601
602- Linux: Make `pidfd_info` fields pub ([#4487](https://github.com/rust-lang/libc/pull/4487))
603
604### Fixed
605
606- Gnu x32: Add missing `timespec.tv_nsec` ([#4497](https://github.com/rust-lang/libc/pull/4497))
607- NuttX: Use `nlink_t` type for `st_nlink` in `struct stat` definition ([#4483](https://github.com/rust-lang/libc/pull/4483))
608
609### Other
610
611- Allow new `unpredictable_function_pointer_comparisons` lints ([#4489](https://github.com/rust-lang/libc/pull/4489))
612- OpenBSD: Fix some clippy warnings to use `pointer::cast`. ([#4490](https://github.com/rust-lang/libc/pull/4490))
613- Remove unessecary semicolons from definitions of `CMSG_NXTHDR`. ([#4492](https://github.com/rust-lang/libc/pull/4492))
614
615
616## [0.2.173](https://github.com/rust-lang/libc/compare/0.2.172...0.2.173) - 2025-06-09
617
618### Added
619
620- AIX: Add an AIX triple to Cargo.toml for doc ([#4475](https://github.com/rust-lang/libc/pull/4475))
621- FreeBSD: Add the `SO_SPLICE` socket option support for FreeBSD >= 14.2 ([#4451](https://github.com/rust-lang/libc/pull/4451))
622- Linux GNU: Prepare for supporting `_TIME_BITS=64` ([#4433](https://github.com/rust-lang/libc/pull/4433))
623- Linux: Add constant PACKET_IGNORE_OUTGOING ([#4319](https://github.com/rust-lang/libc/pull/4319))
624- Linux: Add constants and types for `nsfs` ioctls ([#4436](https://github.com/rust-lang/libc/pull/4436))
625- Linux: Add constants for Memory-Deny-Write-Execute `prctls` ([#4400](https://github.com/rust-lang/libc/pull/4400))
626- Linux: Add constants from `linux/cn_proc.h` and `linux/connector.h` ([#4434](https://github.com/rust-lang/libc/pull/4434))
627- Linux: Add new flags for `pwritev2` and `preadv2` ([#4452](https://github.com/rust-lang/libc/pull/4452))
628- Linux: Add pid_type enum values ([#4403](https://github.com/rust-lang/libc/pull/4403))
629- Linux: Update pidfd constants and types (Linux 6.9-6.15) ([#4402](https://github.com/rust-lang/libc/pull/4402))
630- Loongarch64 musl: Define the `MADV_SOFT_OFFLINE` constant ([#4448](https://github.com/rust-lang/libc/pull/4448))
631- Musl: Add new fields since 1.2.0/1.2.2 to `struct tcp_info` ([#4443](https://github.com/rust-lang/libc/pull/4443))
632- Musl: Prepare for supporting v1.2.3 ([#4443](https://github.com/rust-lang/libc/pull/4443))
633- NuttX: Add `arc4random` and `arc4random_buf` ([#4464](https://github.com/rust-lang/libc/pull/4464))
634- RISC-V Musl: Add `MADV_SOFT_OFFLINE` definition ([#4447](https://github.com/rust-lang/libc/pull/4447))
635- Redox: Define SCM_RIGHTS ([#4440](https://github.com/rust-lang/libc/pull/4440))
636- VxWorks: Add missing UTIME defines and TASK_RENAME_LENGTH ([#4407](https://github.com/rust-lang/libc/pull/4407))
637- Windows: Add more `time.h` functions ([#4427](https://github.com/rust-lang/libc/pull/4427))
638
639### Changed
640
641- Redox: Update `SA_` constants. ([#4426](https://github.com/rust-lang/libc/pull/4426))
642- Redox: make `CMSG_ALIGN`, `CMSG_LEN`, and `CMSG_SPACE` const functions ([#4441](https://github.com/rust-lang/libc/pull/4441))
643
644### Fixed
645
646- AIX: Enable libc-test and fix definitions/declarations. ([#4450](https://github.com/rust-lang/libc/pull/4450))
647- Emscripten: Fix querying emcc on windows (use emcc.bat) ([#4248](https://github.com/rust-lang/libc/pull/4248))
648- Hurd: Fix build from missing `fpos_t` ([#4472](https://github.com/rust-lang/libc/pull/4472))
649- Loongarch64 Musl: Fix the `struct ipc_perm` bindings ([#4384](https://github.com/rust-lang/libc/pull/4384))
650- Musl: Fix the `O_LARGEFILE` constant value. ([#4443](https://github.com/rust-lang/libc/pull/4443))
651
652## [0.2.172](https://github.com/rust-lang/libc/compare/0.2.171...0.2.172) - 2025-04-14
653
654### Added
655
656- Android: Add `getauxval` for 32-bit targets ([#4338](https://github.com/rust-lang/libc/pull/4338))
657- Android: Add `if_tun.h` ioctls ([#4379](https://github.com/rust-lang/libc/pull/4379))
658- Android: Define `SO_BINDTOIFINDEX` ([#4391](https://github.com/rust-lang/libc/pull/4391))
659- Cygwin: Add `posix_spawn_file_actions_add[f]chdir[_np]` ([#4387](https://github.com/rust-lang/libc/pull/4387))
660- Cygwin: Add new socket options ([#4350](https://github.com/rust-lang/libc/pull/4350))
661- Cygwin: Add statfs & fcntl ([#4321](https://github.com/rust-lang/libc/pull/4321))
662- FreeBSD: Add `filedesc` and `fdescenttbl` ([#4327](https://github.com/rust-lang/libc/pull/4327))
663- Glibc: Add unstable support for _FILE_OFFSET_BITS=64 ([#4345](https://github.com/rust-lang/libc/pull/4345))
664- Hermit: Add `AF_UNSPEC` ([#4344](https://github.com/rust-lang/libc/pull/4344))
665- Hermit: Add `AF_VSOCK` ([#4344](https://github.com/rust-lang/libc/pull/4344))
666- Illumos, NetBSD: Add `timerfd` APIs ([#4333](https://github.com/rust-lang/libc/pull/4333))
667- Linux: Add `_IO`, `_IOW`, `_IOR`, `_IOWR` to the exported API ([#4325](https://github.com/rust-lang/libc/pull/4325))
668- Linux: Add `tcp_info` to uClibc bindings ([#4347](https://github.com/rust-lang/libc/pull/4347))
669- Linux: Add further BPF program flags ([#4356](https://github.com/rust-lang/libc/pull/4356))
670- Linux: Add missing INPUT_PROP_XXX flags from `input-event-codes.h` ([#4326](https://github.com/rust-lang/libc/pull/4326))
671- Linux: Add missing TLS bindings ([#4296](https://github.com/rust-lang/libc/pull/4296))
672- Linux: Add more constants from `seccomp.h` ([#4330](https://github.com/rust-lang/libc/pull/4330))
673- Linux: Add more glibc `ptrace_sud_config` and related `PTRACE_*ET_SYSCALL_USER_DISPATCH_CONFIG`. ([#4386](https://github.com/rust-lang/libc/pull/4386))
674- Linux: Add new netlink flags ([#4288](https://github.com/rust-lang/libc/pull/4288))
675- Linux: Define ioctl codes on more architectures ([#4382](https://github.com/rust-lang/libc/pull/4382))
676- Linux: Add missing `pthread_attr_setstack` ([#4349](https://github.com/rust-lang/libc/pull/4349))
677- Musl: Add missing `utmpx` API ([#4332](https://github.com/rust-lang/libc/pull/4332))
678- Musl: Enable `getrandom` on all platforms ([#4346](https://github.com/rust-lang/libc/pull/4346))
679- NuttX: Add more signal constants ([#4353](https://github.com/rust-lang/libc/pull/4353))
680- QNX: Add QNX 7.1-iosock and 8.0 to list of additional cfgs ([#4169](https://github.com/rust-lang/libc/pull/4169))
681- QNX: Add support for alternative Neutrino network stack `io-sock` ([#4169](https://github.com/rust-lang/libc/pull/4169))
682- Redox: Add more `sys/socket.h` and `sys/uio.h` definitions ([#4388](https://github.com/rust-lang/libc/pull/4388))
683- Solaris: Temporarily define `O_DIRECT` and `SIGINFO` ([#4348](https://github.com/rust-lang/libc/pull/4348))
684- Solarish: Add `secure_getenv` ([#4342](https://github.com/rust-lang/libc/pull/4342))
685- VxWorks: Add missing `d_type` member to `dirent` ([#4352](https://github.com/rust-lang/libc/pull/4352))
686- VxWorks: Add missing signal-related constsants ([#4352](https://github.com/rust-lang/libc/pull/4352))
687- VxWorks: Add more error codes ([#4337](https://github.com/rust-lang/libc/pull/4337))
688
689### Deprecated
690
691- FreeBSD: Deprecate `TCP_PCAP_OUT` and `TCP_PCAP_IN` ([#4381](https://github.com/rust-lang/libc/pull/4381))
692
693### Fixed
694
695- Cygwin: Fix member types of `statfs` ([#4324](https://github.com/rust-lang/libc/pull/4324))
696- Cygwin: Fix tests ([#4357](https://github.com/rust-lang/libc/pull/4357))
697- Hermit: Make `AF_INET = 3` ([#4344](https://github.com/rust-lang/libc/pull/4344))
698- Musl: Fix the syscall table on RISC-V-32 ([#4335](https://github.com/rust-lang/libc/pull/4335))
699- Musl: Fix the value of `SA_ONSTACK` on RISC-V-32 ([#4335](https://github.com/rust-lang/libc/pull/4335))
700- VxWorks: Fix a typo in the `waitpid` parameter name ([#4334](https://github.com/rust-lang/libc/pull/4334))
701
702### Removed
703
704- Musl: Remove `O_FSYNC` on RISC-V-32 (use `O_SYNC` instead) ([#4335](https://github.com/rust-lang/libc/pull/4335))
705- Musl: Remove `RTLD_DEEPBIND` on RISC-V-32 ([#4335](https://github.com/rust-lang/libc/pull/4335))
706
707### Other
708
709- CI: Add matrix env variables to the environment ([#4345](https://github.com/rust-lang/libc/pull/4345))
710- CI: Always deny warnings ([#4363](https://github.com/rust-lang/libc/pull/4363))
711- CI: Always upload successfully created artifacts ([#4345](https://github.com/rust-lang/libc/pull/4345))
712- CI: Install musl from source for loongarch64 ([#4320](https://github.com/rust-lang/libc/pull/4320))
713- CI: Revert "Also skip `MFD_EXEC` and `MFD_NOEXEC_SEAL` on sparc64" ([#]())
714- CI: Use `$PWD` instead of `$(pwd)` in run-docker ([#4345](https://github.com/rust-lang/libc/pull/4345))
715- Solarish: Restrict `openpty` and `forkpty` polyfills to Illumos, replace Solaris implementation with bindings ([#4329](https://github.com/rust-lang/libc/pull/4329))
716- Testing: Ensure the makedev test does not emit unused errors ([#4363](https://github.com/rust-lang/libc/pull/4363))
717
718## [0.2.171](https://github.com/rust-lang/libc/compare/0.2.170...0.2.171) - 2025-03-11
719
720### Added
721
722- Android: Add `if_nameindex`/`if_freenameindex` support ([#4247](https://github.com/rust-lang/libc/pull/4247))
723- Apple: Add missing proc types and constants ([#4310](https://github.com/rust-lang/libc/pull/4310))
724- BSD: Add `devname` ([#4285](https://github.com/rust-lang/libc/pull/4285))
725- Cygwin: Add PTY and group API ([#4309](https://github.com/rust-lang/libc/pull/4309))
726- Cygwin: Add support ([#4279](https://github.com/rust-lang/libc/pull/4279))
727- FreeBSD: Make `spawn.h` interfaces available on all FreeBSD-like systems ([#4294](https://github.com/rust-lang/libc/pull/4294))
728- Linux: Add `AF_XDP` structs for all Linux environments ([#4163](https://github.com/rust-lang/libc/pull/4163))
729- Linux: Add SysV semaphore constants ([#4286](https://github.com/rust-lang/libc/pull/4286))
730- Linux: Add `F_SEAL_EXEC` ([#4316](https://github.com/rust-lang/libc/pull/4316))
731- Linux: Add `SO_PREFER_BUSY_POLL` and `SO_BUSY_POLL_BUDGET` ([#3917](https://github.com/rust-lang/libc/pull/3917))
732- Linux: Add `devmem` structs ([#4299](https://github.com/rust-lang/libc/pull/4299))
733- Linux: Add socket constants up to `SO_DEVMEM_DONTNEED` ([#4299](https://github.com/rust-lang/libc/pull/4299))
734- NetBSD, OpenBSD, DragonflyBSD: Add `closefrom` ([#4290](https://github.com/rust-lang/libc/pull/4290))
735- NuttX: Add `pw_passwd` field to `passwd` ([#4222](https://github.com/rust-lang/libc/pull/4222))
736- Solarish: define `IP_BOUND_IF` and `IPV6_BOUND_IF` ([#4287](https://github.com/rust-lang/libc/pull/4287))
737- Wali: Add bindings for `wasm32-wali-linux-musl` target ([#4244](https://github.com/rust-lang/libc/pull/4244))
738
739### Changed
740
741- AIX: Use `sa_sigaction` instead of a union ([#4250](https://github.com/rust-lang/libc/pull/4250))
742- Make `msqid_ds.__msg_cbytes` public ([#4301](https://github.com/rust-lang/libc/pull/4301))
743- Unix: Make all `major`, `minor`, `makedev` into `const fn` ([#4208](https://github.com/rust-lang/libc/pull/4208))
744
745### Deprecated
746
747- Linux: Deprecate obsolete packet filter interfaces ([#4267](https://github.com/rust-lang/libc/pull/4267))
748
749### Fixed
750
751- Cygwin: Fix strerror_r ([#4308](https://github.com/rust-lang/libc/pull/4308))
752- Cygwin: Fix usage of f! ([#4308](https://github.com/rust-lang/libc/pull/4308))
753- Hermit: Make `stat::st_size` signed ([#4298](https://github.com/rust-lang/libc/pull/4298))
754- Linux: Correct values for `SI_TIMER`, `SI_MESGQ`, `SI_ASYNCIO` ([#4292](https://github.com/rust-lang/libc/pull/4292))
755- NuttX: Update `tm_zone` and `d_name` fields to use `c_char` type ([#4222](https://github.com/rust-lang/libc/pull/4222))
756- Xous: Include the prelude to define `c_int` ([#4304](https://github.com/rust-lang/libc/pull/4304))
757
758### Other
759
760- Add labels to FIXMEs ([#4231](https://github.com/rust-lang/libc/pull/4231), [#4232](https://github.com/rust-lang/libc/pull/4232), [#4234](https://github.com/rust-lang/libc/pull/4234), [#4235](https://github.com/rust-lang/libc/pull/4235), [#4236](https://github.com/rust-lang/libc/pull/4236))
761- CI: Fix "cannot find libc" error on Sparc64 ([#4317](https://github.com/rust-lang/libc/pull/4317))
762- CI: Fix "cannot find libc" error on s390x ([#4317](https://github.com/rust-lang/libc/pull/4317))
763- CI: Pass `--no-self-update` to `rustup update` ([#4306](https://github.com/rust-lang/libc/pull/4306))
764- CI: Remove tests for the `i586-pc-windows-msvc` target ([#4311](https://github.com/rust-lang/libc/pull/4311))
765- CI: Remove the `check_cfg` job ([#4322](https://github.com/rust-lang/libc/pull/4312))
766- Change the range syntax that is giving `ctest` problems ([#4311](https://github.com/rust-lang/libc/pull/4311))
767- Linux: Split out the stat struct for gnu/b32/mips ([#4276](https://github.com/rust-lang/libc/pull/4276))
768
769### Removed
770
771- NuttX: Remove `pthread_set_name_np` ([#4251](https://github.com/rust-lang/libc/pull/4251))
772
773## [0.2.170](https://github.com/rust-lang/libc/compare/0.2.169...0.2.170) - 2025-02-23
774
775### Added
776
777- Android: Declare `setdomainname` and `getdomainname` <https://github.com/rust-lang/libc/pull/4212>
778- FreeBSD: Add `evdev` structures <https://github.com/rust-lang/libc/pull/3756>
779- FreeBSD: Add the new `st_filerev` field to `stat32` ([#4254](https://github.com/rust-lang/libc/pull/4254))
780- Linux: Add `SI_*`` and `TRAP_*`` signal codes <https://github.com/rust-lang/libc/pull/4225>
781- Linux: Add experimental configuration to enable 64-bit time in kernel APIs, set by `RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64`. <https://github.com/rust-lang/libc/pull/4148>
782- Linux: Add recent socket timestamping flags <https://github.com/rust-lang/libc/pull/4273>
783- Linux: Added new CANFD_FDF flag for the flags field of canfd_frame <https://github.com/rust-lang/libc/pull/4223>
784- Musl: add CLONE_NEWTIME <https://github.com/rust-lang/libc/pull/4226>
785- Solarish: add the posix_spawn family of functions <https://github.com/rust-lang/libc/pull/4259>
786
787### Deprecated
788
789- Linux: deprecate kernel modules syscalls <https://github.com/rust-lang/libc/pull/4228>
790
791### Changed
792
793- Emscripten: Assume version is at least 3.1.42 <https://github.com/rust-lang/libc/pull/4243>
794
795### Fixed
796
797- BSD: Correct the definition of `WEXITSTATUS` <https://github.com/rust-lang/libc/pull/4213>
798- Hurd: Fix CMSG_DATA on 64bit systems ([#4240](https://github.com/rust-lang/libc/pull/424))
799- NetBSD: fix `getmntinfo` ([#4265](https://github.com/rust-lang/libc/pull/4265)
800- VxWorks: Fix the size of `time_t` <https://github.com/rust-lang/libc/pull/426>
801
802### Other
803
804- Add labels to FIXMEs <https://github.com/rust-lang/libc/pull/4230>, <https://github.com/rust-lang/libc/pull/4229>, <https://github.com/rust-lang/libc/pull/4237>
805- CI: Bump FreeBSD CI to 13.4 and 14.2 <https://github.com/rust-lang/libc/pull/4260>
806- Copy definitions from core::ffi and centralize them <https://github.com/rust-lang/libc/pull/4256>
807- Define c_char at top-level and remove per-target c_char definitions <https://github.com/rust-lang/libc/pull/4202>
808- Port style.rs to syn and add tests for the style checker <https://github.com/rust-lang/libc/pull/4220>
809
810## [0.2.169](https://github.com/rust-lang/libc/compare/0.2.168...0.2.169) - 2024-12-18
811
812### Added
813
814- FreeBSD: add more socket TCP stack constants <https://github.com/rust-lang/libc/pull/4193>
815- Fuchsia: add a `sockaddr_vm` definition <https://github.com/rust-lang/libc/pull/4194>
816
817### Fixed
818
819**Breaking**: [rust-lang/rust#132975](https://github.com/rust-lang/rust/pull/132975) corrected the signedness of `core::ffi::c_char` on various Tier 2 and Tier 3 platforms (mostly Arm and RISC-V) to match Clang. This release contains the corresponding changes to `libc`, including the following specific pull requests:
820
821- ESP-IDF: Replace arch-conditional `c_char` with a reexport <https://github.com/rust-lang/libc/pull/4195>
822- Fix `c_char` on various targets <https://github.com/rust-lang/libc/pull/4199>
823- Mirror `c_char` configuration from `rust-lang/rust` <https://github.com/rust-lang/libc/pull/4198>
824
825### Cleanup
826
827- Do not re-export `c_void` in target-specific code <https://github.com/rust-lang/libc/pull/4200>
828
829## [0.2.168](https://github.com/rust-lang/libc/compare/0.2.167...0.2.168) - 2024-12-09
830
831### Added
832
833- Linux: Add new process flags ([#4174](https://github.com/rust-lang/libc/pull/4174))
834- Linux: Make `IFA_*` constants available on all Linux targets <https://github.com/rust-lang/libc/pull/4185>
835- Linux: add `MAP_DROPPABLE` <https://github.com/rust-lang/libc/pull/4173>
836- Solaris, Illumos: add `SIGRTMIN` and `SIGRTMAX` <https://github.com/rust-lang/libc/pull/4171>
837- Unix, Linux: adding POSIX `memccpy` and `mempcpy` GNU extension <https://github.com/rust-lang/libc/pull/4186.
838
839### Deprecated
840
841- FreeBSD: Deprecate the CAP_UNUSED* and CAP_ALL* constants ([#4183](https://github.com/rust-lang/libc/pull/4183))
842
843### Fixed
844
845- Make the `Debug` implementation for unions opaque ([#4176](https://github.com/rust-lang/libc/pull/4176))
846
847### Other
848
849- Allow the `unpredictable_function_pointer_comparisons` lint where needed <https://github.com/rust-lang/libc/pull/4177>
850- CI: Upload artifacts created by libc-test <https://github.com/rust-lang/libc/pull/4180>
851- CI: Use workflow commands to group output by target <https://github.com/rust-lang/libc/pull/4179>
852- CI: add caching <https://github.com/rust-lang/libc/pull/4183>
853
854## [0.2.167](https://github.com/rust-lang/libc/compare/0.2.166...0.2.167) - 2024-11-28
855
856### Added
857
858- Solarish: add `st_fstype` to `stat` <https://github.com/rust-lang/libc/pull/4145>
859- Trusty: Add `intptr_t` and `uintptr_t` ([#4161](https://github.com/rust-lang/libc/pull/4161))
860
861### Fixed
862
863- Fix the build with `rustc-dep-of-std` <https://github.com/rust-lang/libc/pull/4158>
864- Wasi: Add back unsafe block for `clockid_t` static variables ([#4157](https://github.com/rust-lang/libc/pull/4157))
865
866### Cleanup
867
868- Create an internal prelude <https://github.com/rust-lang/libc/pull/4161>
869- Fix `unused_qualifications`<https://github.com/rust-lang/libc/pull/4132>
870
871### Other
872
873- CI: Check various FreeBSD versions ([#4159](https://github.com/rust-lang/libc/pull/4159))
874- CI: add a timeout for all jobs <https://github.com/rust-lang/libc/pull/4164>
875- CI: verify MSRV for `wasm32-wasi` <https://github.com/rust-lang/libc/pull/4157>
876- Migrate to the 2021 edition <https://github.com/rust-lang/libc/pull/4132>
877
878### Removed
879
880- Remove one unused import after the edition 2021 bump
881
882## [0.2.166](https://github.com/rust-lang/libc/compare/0.2.165...0.2.166) - 2024-11-26
883
884### Fixed
885
886This release resolves two cases of unintentional breakage from the previous release:
887
888- Revert removal of array size hacks [#4150](https://github.com/rust-lang/libc/pull/4150)
889- Ensure `const extern` functions are always enabled [#4151](https://github.com/rust-lang/libc/pull/4151)
890
891## [0.2.165](https://github.com/rust-lang/libc/compare/0.2.164...0.2.165) - 2024-11-25
892
893### Added
894
895- Android: add `mkostemp`, `mkostemps` <https://github.com/rust-lang/libc/pull/3601>
896- Android: add a few API 30 calls <https://github.com/rust-lang/libc/pull/3604>
897- Android: add missing syscall constants <https://github.com/rust-lang/libc/pull/3558>
898- Apple: add `in6_ifreq` <https://github.com/rust-lang/libc/pull/3617>
899- Apple: add missing `sysctl` net types <https://github.com/rust-lang/libc/pull/4022> (before release: remove `if_family_id` ([#4137](https://github.com/rust-lang/libc/pulls/4137)))
900- Freebsd: add `kcmp` call support <https://github.com/rust-lang/libc/pull/3746>
901- Hurd: add `MAP_32BIT` and `MAP_EXCL` <https://github.com/rust-lang/libc/pull/4127>
902- Hurd: add `domainname` field to `utsname` ([#4089](https://github.com/rust-lang/libc/pulls/4089))
903- Linux GNU: add `f_flags` to struct `statfs` for arm, mips, powerpc and x86 <https://github.com/rust-lang/libc/pull/3663>
904- Linux GNU: add `malloc_stats` <https://github.com/rust-lang/libc/pull/3596>
905- Linux: add ELF relocation-related structs <https://github.com/rust-lang/libc/pull/3583>
906- Linux: add `ptp_*` structs <https://github.com/rust-lang/libc/pull/4113>
907- Linux: add `ptp_clock_caps` <https://github.com/rust-lang/libc/pull/4128>
908- Linux: add `ptp_pin_function` and most `PTP_` constants <https://github.com/rust-lang/libc/pull/4114>
909- Linux: add missing AF_XDP structs & constants <https://github.com/rust-lang/libc/pull/3956>
910- Linux: add missing netfilter consts ([#3734](https://github.com/rust-lang/libc/pulls/3734))
911- Linux: add struct and constants for the `mount_setattr` syscall <https://github.com/rust-lang/libc/pull/4046>
912- Linux: add wireless API <https://github.com/rust-lang/libc/pull/3441>
913- Linux: expose the `len8_dlc` field of `can_frame` <https://github.com/rust-lang/libc/pull/3357>
914- Musl: add `utmpx` API <https://github.com/rust-lang/libc/pull/3213>
915- Musl: add missing syscall constants <https://github.com/rust-lang/libc/pull/4028>
916- NetBSD: add `mcontext`-related data for RISCV64 <https://github.com/rust-lang/libc/pull/3468>
917- Redox: add new `netinet` constants <https://github.com/rust-lang/libc/pull/3586>)
918- Solarish: add `_POSIX_VDISABLE` ([#4103](https://github.com/rust-lang/libc/pulls/4103))
919- Tests: Add a test that the `const extern fn` macro works <https://github.com/rust-lang/libc/pull/4134>
920- Tests: Add test of primitive types against `std` <https://github.com/rust-lang/libc/pull/3616>
921- Unix: Add `htonl`, `htons`, `ntohl`, `ntohs` <https://github.com/rust-lang/libc/pull/3669>
922- Unix: add `aligned_alloc` <https://github.com/rust-lang/libc/pull/3843>
923- Windows: add `aligned_realloc` <https://github.com/rust-lang/libc/pull/3592>
924
925### Fixed
926
927- **breaking** Hurd: fix `MAP_HASSEMAPHORE` name ([#4127](https://github.com/rust-lang/libc/pulls/4127))
928- **breaking** ulibc Mips: fix `SA_*` mismatched types ([#3211](https://github.com/rust-lang/libc/pulls/3211))
929- Aix: fix an enum FFI safety warning <https://github.com/rust-lang/libc/pull/3644>
930- Haiku: fix some typos ([#3664](https://github.com/rust-lang/libc/pulls/3664))
931- Tests: fix `Elf{32,64}_Relr`-related tests <https://github.com/rust-lang/libc/pull/3647>
932- Tests: fix libc-tests for `loongarch64-linux-musl`
933- Tests: fix some clippy warnings <https://github.com/rust-lang/libc/pull/3855>
934- Tests: fix tests on `riscv64gc-unknown-freebsd` <https://github.com/rust-lang/libc/pull/4129>
935
936### Deprecated
937
938- Apple: deprecate `iconv_open` <https://github.com/rust-lang/libc/commit/25e022a22eca3634166ef472b748c297e60fcf7f>
939- Apple: deprecate `mach_task_self` <https://github.com/rust-lang/libc/pull/4095>
940- Apple: update `mach` deprecation notices for things that were removed in `main` <https://github.com/rust-lang/libc/pull/4097>
941
942### Cleanup
943
944- Adjust the `f!` macro to be more flexible <https://github.com/rust-lang/libc/pull/4107>
945- Aix: remove duplicate constants <https://github.com/rust-lang/libc/pull/3643>
946- CI: make scripts more uniform <https://github.com/rust-lang/libc/pull/4042>
947- Drop the `libc_align` conditional <https://github.com/rust-lang/libc/commit/b5b553d0ee7de0d4781432a9a9a0a6445dd7f34f>
948- Drop the `libc_cfg_target_vendor` conditional <https://github.com/rust-lang/libc/pull/4060>
949- Drop the `libc_const_size_of` conditional <https://github.com/rust-lang/libc/commit/5a43dd2754366f99b3a83881b30246ce0e51833c>
950- Drop the `libc_core_cvoid` conditional <https://github.com/rust-lang/libc/pull/4060>
951- Drop the `libc_int128` conditional <https://github.com/rust-lang/libc/pull/4060>
952- Drop the `libc_non_exhaustive` conditional <https://github.com/rust-lang/libc/pull/4060>
953- Drop the `libc_packedN` conditional <https://github.com/rust-lang/libc/pull/4060>
954- Drop the `libc_priv_mod_use` conditional <https://github.com/rust-lang/libc/commit/19c59376d11b015009fb9b04f233a30a1bf50a91>
955- Drop the `libc_union` conditional <https://github.com/rust-lang/libc/commit/b9e4d8012f612dfe24147da3e69522763f92b6e3>
956- Drop the `long_array` conditional <https://github.com/rust-lang/libc/pull/4096>
957- Drop the `ptr_addr_of` conditional <https://github.com/rust-lang/libc/pull/4065>
958- Drop warnings about deprecated cargo features <https://github.com/rust-lang/libc/pull/4060>
959- Eliminate uses of `struct_formatter` <https://github.com/rust-lang/libc/pull/4074>
960- Fix a few other array size hacks <https://github.com/rust-lang/libc/commit/d63be8b69b0736753213f5d933767866a5801ee7>
961- Glibc: remove redundant definitions ([#3261](https://github.com/rust-lang/libc/pulls/3261))
962- Musl: remove redundant definitions ([#3261](https://github.com/rust-lang/libc/pulls/3261))
963- Musl: unify definitions of `siginfo_t` ([#3261](https://github.com/rust-lang/libc/pulls/3261))
964- Musl: unify definitions of statfs and statfs64 ([#3261](https://github.com/rust-lang/libc/pulls/3261))
965- Musl: unify definitions of statvfs and statvfs64 ([#3261](https://github.com/rust-lang/libc/pulls/3261))
966- Musl: unify statx definitions ([#3978](https://github.com/rust-lang/libc/pulls/3978))
967- Remove array size hacks for Rust < 1.47 <https://github.com/rust-lang/libc/commit/27ee6fe02ca0848b2af3cd747536264e4c7b697d>
968- Remove repetitive words <https://github.com/rust-lang/libc/commit/77de375891285e18a81616f7dceda6d52732eed6>
969- Use #[derive] for Copy/Clone in s! and friends <https://github.com/rust-lang/libc/pull/4038>
970- Use some tricks to format macro bodies <https://github.com/rust-lang/libc/pull/4107>
971
972### Other
973
974- Apply formatting to macro bodies <https://github.com/rust-lang/libc/pull/4107>
975- Bump libc-test to Rust 2021 Edition <https://github.com/rust-lang/libc/pull/3905>
976- CI: Add a check that semver files don't contain duplicate entries <https://github.com/rust-lang/libc/pull/4087>
977- CI: Add `fanotify_event_info_fid` to FAM-exempt types <https://github.com/rust-lang/libc/pull/4038>
978- CI: Allow rustfmt to organize imports ([#4136](https://github.com/rust-lang/libc/pulls/4136))
979- CI: Always run rustfmt <https://github.com/rust-lang/libc/pull/4120>
980- CI: Change 32-bit Docker images to use EOL repos <https://github.com/rust-lang/libc/pull/4120>
981- CI: Change 64-bit Docker images to ubuntu:24.10 <https://github.com/rust-lang/libc/pull/4120>
982- CI: Disable the check for >1 s! invocation <https://github.com/rust-lang/libc/pull/4107>
983- CI: Ensure build channels get run even if FILTER is unset <https://github.com/rust-lang/libc/pull/4125>
984- CI: Ensure there is a fallback for no_std <https://github.com/rust-lang/libc/pull/4125>
985- CI: Fix cases where unset variables cause errors <https://github.com/rust-lang/libc/pull/4108>
986- CI: Naming adjustments and cleanup <https://github.com/rust-lang/libc/pull/4124>
987- CI: Only invoke rustup if running in CI <https://github.com/rust-lang/libc/pull/4107>
988- CI: Remove the logic to handle old rust versions <https://github.com/rust-lang/libc/pull/4068>
989- CI: Set -u (error on unset) in all script files <https://github.com/rust-lang/libc/pull/4108>
990- CI: add support for `loongarch64-unknown-linux-musl` <https://github.com/rust-lang/libc/pull/4092>
991- CI: make `aarch64-apple-darwin` not a nightly-only target <https://github.com/rust-lang/libc/pull/4068>
992- CI: run shellcheck on all scripts <https://github.com/rust-lang/libc/pull/4042>
993- CI: update musl headers to Linux 6.6 <https://github.com/rust-lang/libc/pull/3921>
994- CI: use qemu-sparc64 to run sparc64 tests <https://github.com/rust-lang/libc/pull/4133>
995- Drop the `libc_const_extern_fn` conditional <https://github.com/rust-lang/libc/commit/674cc1f47f605038ef1aa2cce8e8bc9dac128276>
996- Drop the `libc_underscore_const_names` conditional <https://github.com/rust-lang/libc/commit/f0febd5e2e50b38e05259d3afad3c9783711bcf0>
997- Explicitly set the edition to 2015 <https://github.com/rust-lang/libc/pull/4058>
998- Introduce a `git-blame-ignore-revs` file <https://github.com/rust-lang/libc/pull/4107>
999- Tests: Ignore fields as required on Ubuntu 24.10 <https://github.com/rust-lang/libc/pull/4120>
1000- Tests: skip `ATF_*` constants for OpenBSD <https://github.com/rust-lang/libc/pull/4088>
1001- Triagebot: Add an autolabel for CI <https://github.com/rust-lang/libc/pull/4052>
1002
1003## [0.2.164](https://github.com/rust-lang/libc/compare/0.2.163...0.2.164) - 2024-11-16
1004
1005### MSRV
1006
1007This release increases the MSRV of `libc` to 1.63.
1008
1009### Other
1010
1011- CI: remove tests with rust < 1.63 <https://github.com/rust-lang/libc/pull/4051>
1012- MSRV: document the MSRV of the stable channel to be 1.63 <https://github.com/rust-lang/libc/pull/4040>
1013- MacOS: move ifconf to s_no_extra_traits <https://github.com/rust-lang/libc/pull/4051>
1014
1015## [0.2.163](https://github.com/rust-lang/libc/compare/0.2.162...0.2.163) - 2024-11-16
1016
1017### Added
1018
1019- Aix: add more `dlopen` flags <https://github.com/rust-lang/libc/pull/4044>
1020- Android: add group calls <https://github.com/rust-lang/libc/pull/3499>
1021- FreeBSD: add `TCP_FUNCTION_BLK` and `TCP_FUNCTION_ALIAS` <https://github.com/rust-lang/libc/pull/4047>
1022- Linux: add `confstr` <https://github.com/rust-lang/libc/pull/3612>
1023- Solarish: add `aio` <https://github.com/rust-lang/libc/pull/4033>
1024- Solarish: add `arc4random*` <https://github.com/rust-lang/libc/pull/3944>
1025
1026### Changed
1027
1028- Emscripten: upgrade emsdk to 3.1.68 <https://github.com/rust-lang/libc/pull/3962>
1029- Hurd: use more standard types <https://github.com/rust-lang/libc/pull/3733>
1030- Hurd: use the standard `ssize_t = isize` <https://github.com/rust-lang/libc/pull/4029>
1031- Solaris: fix `confstr` and `ucontext_t` <https://github.com/rust-lang/libc/pull/4035>
1032
1033### Other
1034
1035- CI: add Solaris <https://github.com/rust-lang/libc/pull/4035>
1036- CI: add `i686-unknown-freebsd` <https://github.com/rust-lang/libc/pull/3997>
1037- CI: ensure that calls to `sort` do not depend on locale <https://github.com/rust-lang/libc/pull/4026>
1038- Specify `rust-version` in `Cargo.toml` <https://github.com/rust-lang/libc/pull/4041>
1039
1040## [0.2.162](https://github.com/rust-lang/libc/compare/0.2.161...0.2.162) - 2024-11-07
1041
1042### Added
1043
1044- Android: fix the alignment of `uc_mcontext` on arm64 <https://github.com/rust-lang/libc/pull/3894>
1045- Apple: add `host_cpu_load_info` <https://github.com/rust-lang/libc/pull/3916>
1046- ESP-IDF: add a time flag <https://github.com/rust-lang/libc/pull/3993>
1047- FreeBSD: add the `CLOSE_RANGE_CLOEXEC` flag<https://github.com/rust-lang/libc/pull/3996>
1048- FreeBSD: fix test errors regarding `__gregset_t` <https://github.com/rust-lang/libc/pull/3995>
1049- FreeBSD: fix tests on x86 FreeBSD 15 <https://github.com/rust-lang/libc/pull/3948>
1050- FreeBSD: make `ucontext_t` and `mcontext_t` available on all architectures <https://github.com/rust-lang/libc/pull/3848>
1051- Haiku: add `getentropy` <https://github.com/rust-lang/libc/pull/3991>
1052- Illumos: add `syncfs` <https://github.com/rust-lang/libc/pull/3990>
1053- Illumos: add some recently-added constants <https://github.com/rust-lang/libc/pull/3999>
1054- Linux: add `ioctl` flags <https://github.com/rust-lang/libc/pull/3960>
1055- Linux: add epoll busy polling parameters <https://github.com/rust-lang/libc/pull/3922>
1056- NuttX: add `pthread_[get/set]name_np` <https://github.com/rust-lang/libc/pull/4003>
1057- RTEMS: add `arc4random_buf` <https://github.com/rust-lang/libc/pull/3989>
1058- Trusty OS: add initial support <https://github.com/rust-lang/libc/pull/3942>
1059- WASIp2: expand socket support <https://github.com/rust-lang/libc/pull/3981>
1060
1061### Fixed
1062
1063- Emscripten: don't pass `-lc` <https://github.com/rust-lang/libc/pull/4002>
1064- Hurd: change `st_fsid` field to `st_dev` <https://github.com/rust-lang/libc/pull/3785>
1065- Hurd: fix the definition of `utsname` <https://github.com/rust-lang/libc/pull/3992>
1066- Illumos/Solaris: fix `FNM_CASEFOLD` definition <https://github.com/rust-lang/libc/pull/4004>
1067- Solaris: fix all tests <https://github.com/rust-lang/libc/pull/3864>
1068
1069### Other
1070
1071- CI: Add loongarch64 <https://github.com/rust-lang/libc/pull/4000>
1072- CI: Check that semver files are sorted <https://github.com/rust-lang/libc/pull/4018>
1073- CI: Re-enable the FreeBSD 15 job <https://github.com/rust-lang/libc/pull/3988>
1074- Clean up imports and `extern crate` usage <https://github.com/rust-lang/libc/pull/3897>
1075- Convert `mode_t` constants to octal <https://github.com/rust-lang/libc/pull/3634>
1076- Remove the `wasm32-wasi` target that has been deleted upstream <https://github.com/rust-lang/libc/pull/4013>
1077
1078## [0.2.161](https://github.com/rust-lang/libc/compare/0.2.160...0.2.161) - 2024-10-17
1079
1080### Fixed
1081
1082- OpenBSD: fix `FNM_PATHNAME` and `FNM_NOESCAPE` values <https://github.com/rust-lang/libc/pull/3983>
1083
1084## [0.2.160](https://github.com/rust-lang/libc/compare/0.2.159...0.2.160) - 2024-10-17
1085
1086### Added
1087
1088- Android: add `PR_GET_NAME` and `PR_SET_NAME` <https://github.com/rust-lang/libc/pull/3941>
1089- Apple: add `F_TRANSFEREXTENTS` <https://github.com/rust-lang/libc/pull/3925>
1090- Apple: add `mach_error_string` <https://github.com/rust-lang/libc/pull/3913>
1091- Apple: add additional `pthread` APIs <https://github.com/rust-lang/libc/pull/3846>
1092- Apple: add the `LOCAL_PEERTOKEN` socket option <https://github.com/rust-lang/libc/pull/3929>
1093- BSD: add `RTF_*`, `RTA_*`, `RTAX_*`, and `RTM_*` definitions <https://github.com/rust-lang/libc/pull/3714>
1094- Emscripten: add `AT_EACCESS` <https://github.com/rust-lang/libc/pull/3911>
1095- Emscripten: add `getgrgid`, `getgrnam`, `getgrnam_r` and `getgrgid_r` <https://github.com/rust-lang/libc/pull/3912>
1096- Emscripten: add `getpwnam_r` and `getpwuid_r` <https://github.com/rust-lang/libc/pull/3906>
1097- FreeBSD: add `POLLRDHUP` <https://github.com/rust-lang/libc/pull/3936>
1098- Haiku: add `arc4random` <https://github.com/rust-lang/libc/pull/3945>
1099- Illumos: add `ptsname_r` <https://github.com/rust-lang/libc/pull/3867>
1100- Linux: add `fanotify` interfaces <https://github.com/rust-lang/libc/pull/3695>
1101- Linux: add `tcp_info` <https://github.com/rust-lang/libc/pull/3480>
1102- Linux: add additional AF_PACKET options <https://github.com/rust-lang/libc/pull/3540>
1103- Linux: make Elf constants always available <https://github.com/rust-lang/libc/pull/3938>
1104- Musl x86: add `iopl` and `ioperm` <https://github.com/rust-lang/libc/pull/3720>
1105- Musl: add `posix_spawn` chdir functions <https://github.com/rust-lang/libc/pull/3949>
1106- Musl: add `utmpx.h` constants <https://github.com/rust-lang/libc/pull/3908>
1107- NetBSD: add `sysctlnametomib`, `CLOCK_THREAD_CPUTIME_ID` and `CLOCK_PROCESS_CPUTIME_ID` <https://github.com/rust-lang/libc/pull/3927>
1108- Nuttx: initial support <https://github.com/rust-lang/libc/pull/3909>
1109- RTEMS: add `getentropy` <https://github.com/rust-lang/libc/pull/3973>
1110- RTEMS: initial support <https://github.com/rust-lang/libc/pull/3866>
1111- Solarish: add `POLLRDHUP`, `POSIX_FADV_*`, `O_RSYNC`, and `posix_fallocate` <https://github.com/rust-lang/libc/pull/3936>
1112- Unix: add `fnmatch.h` <https://github.com/rust-lang/libc/pull/3937>
1113- VxWorks: add riscv64 support <https://github.com/rust-lang/libc/pull/3935>
1114- VxWorks: update constants related to the scheduler <https://github.com/rust-lang/libc/pull/3963>
1115
1116### Changed
1117
1118- Redox: change `ino_t` to be `c_ulonglong` <https://github.com/rust-lang/libc/pull/3919>
1119
1120### Fixed
1121
1122- ESP-IDF: fix mismatched constants and structs <https://github.com/rust-lang/libc/pull/3920>
1123- FreeBSD: fix `struct stat` on FreeBSD 12+ <https://github.com/rust-lang/libc/pull/3946>
1124
1125### Other
1126
1127- CI: Fix CI for FreeBSD 15 <https://github.com/rust-lang/libc/pull/3950>
1128- Docs: link to `windows-sys` <https://github.com/rust-lang/libc/pull/3915>
1129
1130## [0.2.159](https://github.com/rust-lang/libc/compare/0.2.158...0.2.159) - 2024-09-24
1131
1132### Added
1133
1134- Android: add more `AT_*` constants in <https://github.com/rust-lang/libc/pull/3779>
1135- Apple: add missing `NOTE_*` constants in <https://github.com/rust-lang/libc/pull/3883>
1136- Hermit: add missing error numbers in <https://github.com/rust-lang/libc/pull/3858>
1137- Hurd: add `__timeval` for 64-bit support in <https://github.com/rust-lang/libc/pull/3786>
1138- Linux: add `epoll_pwait2` in <https://github.com/rust-lang/libc/pull/3868>
1139- Linux: add `mq_notify` in <https://github.com/rust-lang/libc/pull/3849>
1140- Linux: add missing `NFT_CT_*` constants in <https://github.com/rust-lang/libc/pull/3844>
1141- Linux: add the `fchmodat2` syscall in <https://github.com/rust-lang/libc/pull/3588>
1142- Linux: add the `mseal` syscall in <https://github.com/rust-lang/libc/pull/3798>
1143- OpenBSD: add `sendmmsg` and `recvmmsg` in <https://github.com/rust-lang/libc/pull/3831>
1144- Unix: add `IN6ADDR_ANY_INIT` and `IN6ADDR_LOOPBACK_INIT` in <https://github.com/rust-lang/libc/pull/3693>
1145- VxWorks: add `S_ISVTX` in <https://github.com/rust-lang/libc/pull/3768>
1146- VxWorks: add `vxCpuLib` and `taskLib` functions <https://github.com/rust-lang/libc/pull/3861>
1147- WASIp2: add definitions for `std::net` support in <https://github.com/rust-lang/libc/pull/3892>
1148
1149### Fixed
1150
1151- Correctly handle version checks when `clippy-driver` is used <https://github.com/rust-lang/libc/pull/3893>
1152
1153### Changed
1154
1155- EspIdf: change signal constants to c_int in <https://github.com/rust-lang/libc/pull/3895>
1156- HorizonOS: update network definitions in <https://github.com/rust-lang/libc/pull/3863>
1157- Linux: combine `ioctl` APIs in <https://github.com/rust-lang/libc/pull/3722>
1158- WASI: enable CI testing in <https://github.com/rust-lang/libc/pull/3869>
1159- WASIp2: enable CI testing in <https://github.com/rust-lang/libc/pull/3870>
1160
1161## [0.2.158](https://github.com/rust-lang/libc/compare/0.2.157...0.2.158) - 2024-08-19
1162
1163### Other
1164- WASI: fix missing `Iterator` with `rustc-dep-of-std` in <https://github.com/rust-lang/libc/pull/3856#event-13924913068>
1165
1166## [0.2.157](https://github.com/rust-lang/libc/compare/0.2.156...0.2.157) - 2024-08-17
1167
1168### Added
1169
1170- Apple: add `_NSGetArgv`, `_NSGetArgc` and `_NSGetProgname` in <https://github.com/rust-lang/libc/pull/3702>
1171- Build: add `RUSTC_WRAPPER` support in <https://github.com/rust-lang/libc/pull/3845>
1172- FreeBSD: add `execvpe` support from 14.1 release in <https://github.com/rust-lang/libc/pull/3745>
1173- Fuchsia: add `SO_BINDTOIFINDEX`
1174- Linux: add `klogctl` in <https://github.com/rust-lang/libc/pull/3777>
1175- MacOS: add `fcntl` OFD commands in <https://github.com/rust-lang/libc/pull/3563>
1176- NetBSD: add `_lwp_park` in <https://github.com/rust-lang/libc/pull/3721>
1177- Solaris: add missing networking support in <https://github.com/rust-lang/libc/pull/3717>
1178- Unix: add `pthread_equal` in <https://github.com/rust-lang/libc/pull/3773>
1179- WASI: add `select`, `FD_SET`, `FD_ZERO`, `FD_ISSET ` in <https://github.com/rust-lang/libc/pull/3681>
1180
1181### Fixed
1182- TEEOS: fix octal notation for `O_*` constants in <https://github.com/rust-lang/libc/pull/3841>
1183
1184### Changed
1185- FreeBSD: always use freebsd12 when `rustc_dep_of_std` is set in <https://github.com/rust-lang/libc/pull/3723>
1186
1187## [0.2.156](https://github.com/rust-lang/libc/compare/v0.2.155...v0.2.156) - 2024-08-15
1188
1189### Added
1190- Apple: add `F_ALLOCATEPERSIST` in <https://github.com/rust-lang/libc/pull/3712>
1191- Apple: add `os_sync_wait_on_address` and related definitions in <https://github.com/rust-lang/libc/pull/3769>
1192- BSD: generalise `IPV6_DONTFRAG` to all BSD targets in <https://github.com/rust-lang/libc/pull/3716>
1193- FreeBSD/DragonFly: add `IP_RECVTTL`/`IPV6_RECVHOPLIMIT` in <https://github.com/rust-lang/libc/pull/3751>
1194- Hurd: add `XATTR_CREATE`, `XATTR_REPLACE` in <https://github.com/rust-lang/libc/pull/3739>
1195- Linux GNU: `confstr` API and `_CS_*` in <https://github.com/rust-lang/libc/pull/3771>
1196- Linux musl: add `preadv2` and `pwritev2` (1.2.5 min.) in <https://github.com/rust-lang/libc/pull/3762>
1197- VxWorks: add the constant `SOMAXCONN` in <https://github.com/rust-lang/libc/pull/3761>
1198- VxWorks: add a few errnoLib related constants in <https://github.com/rust-lang/libc/pull/3780>
1199
1200### Fixed
1201- Solaris/illumos: Change `ifa_flags` type to u64 in <https://github.com/rust-lang/libc/pull/3729>
1202- QNX 7.0: Disable `libregex` in <https://github.com/rust-lang/libc/pull/3775>
1203
1204### Changed
1205- QNX NTO: update platform support in <https://github.com/rust-lang/libc/pull/3815>
1206- `addr_of!(EXTERN_STATIC)` is now considered safe in <https://github.com/rust-lang/libc/pull/3776>
1207
1208### Removed
1209- Apple: remove `rmx_state` in <https://github.com/rust-lang/libc/pull/3776>
1210
1211### Other
1212- Update or remove CI tests that have been failing