Debian Codegraph @

debian/missing-sources/libc/CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3 ## [0.2.180](https://github.com/rust-lang/libc/compare/0.2.179...0.2.180) - 2026-01-08
4
5 ### Added
6
7 - QNX: Add missing BPF and ifreq structures ([#4769](https://github.com/rust-lang/libc/pull/4769))
8
9 ### Fixed
10
11 - Linux, L4Re: address soundness issues of `CMSG_NXTHDR` ([#4903](https://github.com/rust-lang/libc/pull/4903))
12 - Linux-like: Handle zero-sized payload differences in `CMSG_NXTHDR` ([#4903](https://github.com/rust-lang/libc/pull/4903))
13 - Musl: Fix incorrect definitions of struct stat on some 32-bit architectures ([#4914](https://github.com/rust-lang/libc/pull/4914))
14 - NetBSD: RISC-V 64: Correct `mcontext` type definitions ([#4886](https://github.com/rust-lang/libc/pull/4886))
15 - uClibc: Re-enable `__SIZEOF_PTHREAD_COND_T` on non-L4Re uclibc ([#4915](https://github.com/rust-lang/libc/pull/4915))
16 - uClibc: Restructure Linux `netlink` module to resolve build errors ([#4915](https://github.com/rust-lang/libc/pull/4915))
17
18
19 ## [0.2.179](https://github.com/rust-lang/libc/compare/0.2.178...0.2.179) - 2025-01-03
20
21 With this release, we now have _unstable_ support for 64-bit `time_t` on 32-bit
22 platforms with both Musl and Glibc. Testing is appreciated!
23
24 For now, these can be enabled by setting environment variables during build:
25
26 ```text
27 RUST_LIBC_UNSTABLE_MUSL_V1_2_3=1
28 RUST_LIBC_UNSTABLE_GNU_TIME_BITS=64
29 ```
30
31 Note that the exact configuration will change in the future. Setting the
32 `MUSL_V1_2_3` variable also enables some newer API unrelated to `time_t`.
33
34 ### Added
35
36 - L4Re: Add uclibc aarch64 support ([#4479](https://github.com/rust-lang/libc/pull/4479))
37 - Linux, Android: Add a generic definition for `XCASE` ([#4847](https://github.com/rust-lang/libc/pull/4847))
38 - Linux-like: Add `NAME_MAX` ([#4888](https://github.com/rust-lang/libc/pull/4888))
39 - Linux: Add `AT_EXECVE_CHECK` ([#4422](https://github.com/rust-lang/libc/pull/4422))
40 - Linux: Add the `SUN_LEN` macro ([#4269](https://github.com/rust-lang/libc/pull/4269))
41 - Linux: add `getitimer` and `setitimer` ([#4890](https://github.com/rust-lang/libc/pull/4890))
42 - Linux: add `pthread_tryjoin_n` and `pthread_timedjoin_np` ([#4887](https://github.com/rust-lang/libc/pull/4887))
43 - Musl: Add unstable support for 64-bit `time_t` on 32-bit platforms ([#4463](https://github.com/rust-lang/libc/pull/4463))
44 - NetBSD, OpenBSD: Add interface `LINK_STATE_*` definitions from `sys/net/if.h` ([#4751](https://github.com/rust-lang/libc/pull/4751))
45 - QuRT: Add support for Qualcomm QuRT ([#4845](https://github.com/rust-lang/libc/pull/4845))
46 - Types: Add Padding<T>::uninit() ([#4862](https://github.com/rust-lang/libc/pull/4862))
47
48 ### Fixed
49
50 - Glibc: Link old version of `cf{g,s}et{i,o}speed` ([#4882](https://github.com/rust-lang/libc/pull/4882))
51 - L4Re: Fixes for `pthread` ([#4479](https://github.com/rust-lang/libc/pull/4479))
52 - L4re: Fix a wide variety of incorrect definitions ([#4479](https://github.com/rust-lang/libc/pull/4479))
53 - Musl: Fix the value of `CPU_SETSIZE` on musl 1.2+ ([#4865](https://github.com/rust-lang/libc/pull/4865))
54 - Musl: RISC-V: fix public padding fields in `stat/stat64` ([#4463](https://github.com/rust-lang/libc/pull/4463))
55 - Musl: s390x: Fix definition of `SIGSTKSZ`/`MINSIGSTKSZ` ([#4884](https://github.com/rust-lang/libc/pull/4884))
56 - NetBSD: Arm: Fix `PT_{GET,SET}FPREGS`, `_REG_TIPDR`, and `_REG_{LR,SP}` ([#4899](https://github.com/rust-lang/libc/pull/4899))
57 - NetBSD: Fix `if_msghdr` alignment ([#4902](https://github.com/rust-lang/libc/pull/4902))
58 - NetBSD: Fix `siginfo_t` layout on 32-bit platforms ([#4904](https://github.com/rust-lang/libc/pull/4904))
59 - NetBSD: change definition of `pthread_spin_t` to allow arch redefinition. ([#4899](https://github.com/rust-lang/libc/pull/4899))
60 - Newlib: Fix ambiguous glob exports and other warnings for Vita and 3DS ([#4875](https://github.com/rust-lang/libc/pull/4875))
61 - QNX: Fix build error ([#4879](https://github.com/rust-lang/libc/pull/4879))
62
63 ### Changed
64
65 - CI: Update CI images to FreeBSD 15.0-release ([#4857](https://github.com/rust-lang/libc/pull/4857))
66 - L4Re: Make `pthread` struct fields private ([#4876](https://github.com/rust-lang/libc/pull/4876))
67 - Linux, Fuchsia: Mark mq_attr padding area as such ([#4858](https://github.com/rust-lang/libc/pull/4858))
68 - Types: Wrap a number of private fields in the `Padding` type ([#4862](https://github.com/rust-lang/libc/pull/4862))
69
70 ### Removed
71
72 - Build: Remove `RUST_LIBC_UNSTABLE_LINUX_TIME_BITS64` ([#4865](https://github.com/rust-lang/libc/pull/4865))
73 - WASI: Remove nonexistent clocks ([#4880](https://github.com/rust-lang/libc/pull/4880))
74
75
76 ## [0.2.178](https://github.com/rust-lang/libc/compare/0.2.177...0.2.178) - 2025-12-01
77
78 ### Added
79
80 - BSD: Add `issetugid` ([#4744](https://github.com/rust-lang/libc/pull/4744))
81 - Cygwin: Add missing utmp/x.h, grp.h, and stdio.h interfaces ([#4827](https://github.com/rust-lang/libc/pull/4827))
82 - Linux s390x musl: Add `__psw_t`/`fprefset_t`/`*context_t` ([#4726](https://github.com/rust-lang/libc/pull/4726))
83 - Linux, Android: Add definition for IUCLC ([#4846](https://github.com/rust-lang/libc/pull/4846))
84 - Linux, FreeBSD: Add `AT_HWCAP{3,4}` ([#4734](https://github.com/rust-lang/libc/pull/4734))
85 - Linux: Add definitions from linux/can/bcm.h ([#4683](https://github.com/rust-lang/libc/pull/4683))
86 - Linux: Add syscalls 451-469 for m68k ([#4850](https://github.com/rust-lang/libc/pull/4850))
87 - Linux: PowerPC: Add 'ucontext.h' definitions ([#4696](https://github.com/rust-lang/libc/pull/4696))
88 - NetBSD: Define `eventfd` ([#4830](https://github.com/rust-lang/libc/pull/4830))
89 - Newlib: Add missing constants from `unistd.h` ([#4811](https://github.com/rust-lang/libc/pull/4811))
90 - QNX NTO: Add `cfmakeraw` ([#4704](https://github.com/rust-lang/libc/pull/4704))
91 - QNX NTO: Add `cfsetspeed` ([#4704](https://github.com/rust-lang/libc/pull/4704))
92 - Redox: Add `getresgid` and `getresuid` ([#4752](https://github.com/rust-lang/libc/pull/4752))
93 - Redox: Add `setresgid` and `setresuid` ([#4752](https://github.com/rust-lang/libc/pull/4752))
94 - 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))
95 - VxWorks: Add missing defines/functions needed by rust stdlib ([#4779](https://github.com/rust-lang/libc/pull/4779))
96 - WASI: Add more definitions for libstd ([#4747](https://github.com/rust-lang/libc/pull/4747))
97
98 ### Deprecated
99
100 - Apple: Deprecate `TIOCREMOTE` ([#4764](https://github.com/rust-lang/libc/pull/4764))
101
102 ### Fixed
103
104 Note that there were a large number of fixes on NetBSD for this `libc` release, some of which include minor breakage.
105
106 - AIX: Change errno `EWOULDBLOCK` to make it an alias of `EAGAIN` ([#4790](https://github.com/rust-lang/libc/pull/4790))
107 - AIX: Resolve function comparison and `unnecessary_transmutes` warnings ([#4780](https://github.com/rust-lang/libc/pull/4780))
108 - Apple: Correct the value of `SF_SETTABLE` ([#4764](https://github.com/rust-lang/libc/pull/4764))
109 - DragonflyBSD: Fix the type of `mcontext_t.mc_fpregs` ([#]())
110 - EspIDF: Fix the duplicate definition of `gethostname` ([#4773](https://github.com/rust-lang/libc/pull/4773))
111 - L4Re: Update available pthread API ([#4836](https://github.com/rust-lang/libc/pull/4836))
112 - Linux: Correct the value of `NFT_MSG_MAX` ([#4761](https://github.com/rust-lang/libc/pull/4761))
113 - Linux: Remove incorrect `repr(align(8))` for `canxl_frame` ([#4760](https://github.com/rust-lang/libc/pull/4760))
114 - Make `eventfd` argument names match OS docs/headers ([#4830](https://github.com/rust-lang/libc/pull/4830))
115 - NetBSD: Account for upstream changes to ptrace with LWP ([#4782](https://github.com/rust-lang/libc/pull/4782))
116 - NetBSD: Correct `ipc_perm`, split from OpenBSD as `ipc.rs` ([#4782](https://github.com/rust-lang/libc/pull/4782))
117 - NetBSD: Correct a number of symbol link names ([#4782](https://github.com/rust-lang/libc/pull/4782))
118 - NetBSD: Correct the type of `kinfo_vmentry.kve_path` ([#]())
119 - NetBSD: Fix `uucred.cr_ngroups` from `int` to `short` ([#4782](https://github.com/rust-lang/libc/pull/4782))
120 - NetBSD: Fix the type of `kevent.udata` ([#4782](https://github.com/rust-lang/libc/pull/4782))
121 - NetBSD: Fix the type of `mcontext_t.__fpregs` ([#4782](https://github.com/rust-lang/libc/pull/4782))
122 - NetBSD: Fix the value of `PT_SUSPEND` ([#4782](https://github.com/rust-lang/libc/pull/4782))
123 - NetBSD: Fix the values of FNM_* constants ([#4782](https://github.com/rust-lang/libc/pull/4782))
124 - NetBSD: Increase the size of `sockaddr_dl.sdl_data` from 12 to 24 ([#4782](https://github.com/rust-lang/libc/pull/4782))
125 - NetBSD: Introduce `if_.rs`, fix the definition of `ifreq` ([#4782](https://github.com/rust-lang/libc/pull/4782))
126 - NetBSD: Introduce `time.rs`, fix the values of `CLOCK_*_CPUTIME_ID` ([#4782](https://github.com/rust-lang/libc/pull/4782))
127 - NetBSD: Introduce `timex.rs` ([#4782](https://github.com/rust-lang/libc/pull/4782))
128 - NetBSD: Introduce `types.rs`, correct the definition of `lwpid_t` ([#4782](https://github.com/rust-lang/libc/pull/4782))
129 - NetBSD: Introduce `utmp_.rs`, correct the definition of `lastlog` ([#4782](https://github.com/rust-lang/libc/pull/4782))
130 - NetBSD: Introduce `utmpx_.rs`, correct utmpx definitions ([#4782](https://github.com/rust-lang/libc/pull/4782))
131 - NetBSD: Make `_cpuset` an extern type ([#4782](https://github.com/rust-lang/libc/pull/4782))
132 - NetBSD: RISC-V 64: Fix the `mcontext` types ([#4782](https://github.com/rust-lang/libc/pull/4782))
133 - Nuttx: Resolve warnings ([#4773](https://github.com/rust-lang/libc/pull/4773))
134 - OHOS: Don't emit duplicate lfs64 definitions ([#4804](https://github.com/rust-lang/libc/pull/4804))
135 - Redox: Fix the type of `pid_t` ([#4825](https://github.com/rust-lang/libc/pull/4825))
136 - WASI: Gate `__wasilibc_register_preopened_fd` ([#4837](https://github.com/rust-lang/libc/pull/4837))
137 - Wali: Fix unknown config ([#4773](https://github.com/rust-lang/libc/pull/4773))
138
139 ### Changed
140
141 - 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))
142 - DragonFly: Avoid usage of `thread_local` ([#3653](https://github.com/rust-lang/libc/pull/3653))
143 - Linux: Update the definition for `ucontext_t` and unskip its tests ([#4760](https://github.com/rust-lang/libc/pull/4760))
144 - MinGW: Set `L_tmpnam` and `TMP_MAX` to the UCRT value ([#4566](https://github.com/rust-lang/libc/pull/4566))
145 - WASI: More closely align pthread type reprs ([#4747](https://github.com/rust-lang/libc/pull/4747))
146 - Simplify rustc-check-cfg emission in build.rs ([#4724](https://github.com/rust-lang/libc/pull/4724))
147 - Transition a number of definitions to the new source structure (internal change)
148
149 ### Removed
150
151 - MIPS Musl: Remove rogue definition of `SIGSTKFLT` ([#4749](https://github.com/rust-lang/libc/pull/4749))
152 - NetBSD: Make `statvfs.f_spare` non-public ([#4782](https://github.com/rust-lang/libc/pull/4782))
153 - NetBSD: Remove BPF constants ([#4782](https://github.com/rust-lang/libc/pull/4782))
154 - NetBSD: Remove `*_MAXID` constants and `AT_SUN_LDPGSIZE` ([#4782](https://github.com/rust-lang/libc/pull/4782))
155 - NetBSD: Remove `IFF_NOTRAILERS` ([#4782](https://github.com/rust-lang/libc/pull/4782))
156 - NetBSD: Remove `vm_size_t` ([#4782](https://github.com/rust-lang/libc/pull/4782))
157 - NetBSD: Replace REG_ENOSYS with REG_ILLSEQ ([#4782](https://github.com/rust-lang/libc/pull/4782))
158
159
160 ## [0.2.177](https://github.com/rust-lang/libc/compare/0.2.176...0.2.177) - 2025-10-09
161
162 ### Added
163
164 - Apple: Add `TIOCGETA`, `TIOCSETA`, `TIOCSETAW`, `TIOCSETAF` constants ([#4736](https://github.com/rust-lang/libc/pull/4736))
165 - Apple: Add `pthread_cond_timedwait_relative_np` ([#4719](https://github.com/rust-lang/libc/pull/4719))
166 - BSDs: Add `_CS_PATH` constant ([#4738](https://github.com/rust-lang/libc/pull/4738))
167 - Linux-like: Add `SIGEMT` for mips* and sparc* architectures ([#4730](https://github.com/rust-lang/libc/pull/4730))
168 - OpenBSD: Add `elf_aux_info` ([#4729](https://github.com/rust-lang/libc/pull/4729))
169 - Redox: Add more sysconf constants ([#4728](https://github.com/rust-lang/libc/pull/4728))
170 - Windows: Add `wcsnlen` ([#4721](https://github.com/rust-lang/libc/pull/4721))
171
172 ### Changed
173
174 - WASIP2: Invert conditional to include p2 APIs ([#4733](https://github.com/rust-lang/libc/pull/4733))
175
176 ## [0.2.176](https://github.com/rust-lang/libc/compare/0.2.175...0.2.176) - 2025-09-23
177
178 ### Support
179
180 - 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))
181 - `Debug` is now always implemented, rather than being gated behind the `extra_traits` feature. ([#4624](https://github.com/rust-lang/libc/pull/4624))
182
183 ### Added
184
185 - AIX: Restore some non-POSIX functions guarded by the `_KERNEL` macro. ([#4607](https://github.com/rust-lang/libc/pull/4607))
186 - FreeBSD 14: Add `st_fileref` to `struct stat` ([#4642](https://github.com/rust-lang/libc/pull/4642))
187 - Haiku: Add the `accept4` POSIX call ([#4586](https://github.com/rust-lang/libc/pull/4586))
188 - Introduce a wrapper for representing padding ([#4632](https://github.com/rust-lang/libc/pull/4632))
189 - Linux: Add `EM_RISCV` ([#4659](https://github.com/rust-lang/libc/pull/4659))
190 - Linux: Add `MS_NOSYMFOLLOW` ([#4389](https://github.com/rust-lang/libc/pull/4389))
191 - Linux: Add `backtrace_symbols(_fd)` ([#4668](https://github.com/rust-lang/libc/pull/4668))
192 - Linux: Add missing `SOL_PACKET` optnames ([#4669](https://github.com/rust-lang/libc/pull/4669))
193 - Musl s390x: Add `SYS_mseal` ([#4549](https://github.com/rust-lang/libc/pull/4549))
194 - NuttX: Add `__errno` ([#4687](https://github.com/rust-lang/libc/pull/4687))
195 - Redox: Add `dirfd`, `VDISABLE`, and resource consts ([#4660](https://github.com/rust-lang/libc/pull/4660))
196 - Redox: Add more `resource.h`, `fcntl.h` constants ([#4666](https://github.com/rust-lang/libc/pull/4666))
197 - Redox: Enable `strftime` and `mkostemp[s]` ([#4629](https://github.com/rust-lang/libc/pull/4629))
198 - Unix, Windows: Add `qsort_r` (Unix), and `qsort(_s)` (Windows) ([#4677](https://github.com/rust-lang/libc/pull/4677))
199 - Unix: Add `dlvsym` for Linux-gnu, FreeBSD, and NetBSD ([#4671](https://github.com/rust-lang/libc/pull/4671))
200 - Unix: Add `sigqueue` ([#4620](https://github.com/rust-lang/libc/pull/4620))
201
202 ### Changed
203
204 - FreeBSD 15: Mark `kinfo_proc` as non-exhaustive ([#4553](https://github.com/rust-lang/libc/pull/4553))
205 - FreeBSD: Set the ELF symbol version for `readdir_r` ([#4694](https://github.com/rust-lang/libc/pull/4694))
206 - Linux: Correct the config for whether or not `epoll_event` is packed ([#4639](https://github.com/rust-lang/libc/pull/4639))
207 - 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)
208
209 ### Fixed
210
211 - AIX: Fix the type of the 4th arguement of `getgrnam_r` ([#4656](https://github.com/rust-lang/libc/pull/4656
212 - FreeBSD: Limit `P_IDLEPROC` to FreeBSD 15 ([#4640](https://github.com/rust-lang/libc/pull/4640))
213 - FreeBSD: Limit `mcontext_t::mc_tlsbase` to FreeBSD 15 ([#4640](https://github.com/rust-lang/libc/pull/464))
214 - FreeBSD: Update gating of `mcontext_t.mc_tlsbase` ([#4703](https://github.com/rust-lang/libc/pull/4703))
215 - Musl s390x: Correct the definition of `statfs[64]` ([#4549](https://github.com/rust-lang/libc/pull/4549))
216 - Musl s390x: Make `fpreg_t` a union ([#4549](https://github.com/rust-lang/libc/pull/4549))
217 - Redox: Fix the types of `gid_t` and `uid_t` ([#4689](https://github.com/rust-lang/libc/pull/4689))
218 - Redox: Fix the value of `MAP_FIXED` ([#4684](https://github.com/rust-lang/libc/pull/4684))
219
220 ### Deprecated
221
222 - Apple: Correct the `deprecated` attribute for `iconv` ([`a97a0b53`](https://github.com/rust-lang/libc/commit/a97a0b53fb7faf5f99cd720ab12b1b8a5bf9f950))
223 - FreeBSD: Deprecate `TIOCMGDTRWAIT` and `TIOCMSDTRWAIT` ([#4685](https://github.com/rust-lang/libc/pull/4685))
224
225 ### Removed
226
227 - FreeBSD: Remove `JAIL_{GET,SET}_MASK`, `_MC_FLAG_MASK` ([#4691](https://github.com/rust-lang/libc/pull/4691))
228
229 ## [0.2.175](https://github.com/rust-lang/libc/compare/0.2.174...0.2.175) - 2025-08-10
230
231 ### Added
232
233 - AIX: Add `getpeereid` ([#4524](https://github.com/rust-lang/libc/pull/4524))
234 - AIX: Add `struct ld_info` and friends ([#4578](https://github.com/rust-lang/libc/pull/4578))
235 - AIX: Retore `struct winsize` ([#4577](https://github.com/rust-lang/libc/pull/4577))
236 - Android: Add UDP socket option constants ([#4619](https://github.com/rust-lang/libc/pull/4619))
237 - Android: Add `CLONE_CLEAR_SIGHAND` and `CLONE_INTO_CGROUP` ([#4502](https://github.com/rust-lang/libc/pull/4502))
238 - Android: Add more `prctl` constants ([#4531](https://github.com/rust-lang/libc/pull/4531))
239 - FreeBSD Add further TCP stack-related constants ([#4196](https://github.com/rust-lang/libc/pull/4196))
240 - FreeBSD x86-64: Add `mcontext_t.mc_tlsbase ` ([#4503](https://github.com/rust-lang/libc/pull/4503))
241 - FreeBSD15: Add `kinfo_proc.ki_uerrmsg` ([#4552](https://github.com/rust-lang/libc/pull/4552))
242 - FreeBSD: Add `in_conninfo` ([#4482](https://github.com/rust-lang/libc/pull/4482))
243 - FreeBSD: Add `xinpgen` and related types ([#4482](https://github.com/rust-lang/libc/pull/4482))
244 - FreeBSD: Add `xktls_session` ([#4482](https://github.com/rust-lang/libc/pull/4482))
245 - Haiku: Add functionality from `libbsd` ([#4221](https://github.com/rust-lang/libc/pull/4221))
246 - Linux: Add `SECBIT_*` ([#4480](https://github.com/rust-lang/libc/pull/4480))
247 - NetBSD, OpenBSD: Export `ioctl` request generator macros ([#4460](https://github.com/rust-lang/libc/pull/4460))
248 - NetBSD: Add `ptsname_r` ([#4608](https://github.com/rust-lang/libc/pull/4608))
249 - RISCV32: Add time-related syscalls ([#4612](https://github.com/rust-lang/libc/pull/4612))
250 - Solarish: Add `strftime*` ([#4453](https://github.com/rust-lang/libc/pull/4453))
251 - linux: Add `EXEC_RESTRICT_*` and `EXEC_DENY_*` ([#4545](https://github.com/rust-lang/libc/pull/4545))
252
253 ### Changed
254
255 - AIX: Add `const` to signatures to be consistent with other platforms ([#4563](https://github.com/rust-lang/libc/pull/4563))
256
257 ### Fixed
258
259 - AIX: Fix the type of `struct statvfs.f_fsid` ([#4576](https://github.com/rust-lang/libc/pull/4576))
260 - AIX: Fix the type of constants for the `ioctl` `request` argument ([#4582](https://github.com/rust-lang/libc/pull/4582))
261 - AIX: Fix the types of `stat{,64}.st_*tim` ([#4597](https://github.com/rust-lang/libc/pull/4597))
262 - AIX: Use unique `errno` values ([#4507](https://github.com/rust-lang/libc/pull/4507))
263 - Build: Fix an incorrect `target_os` -> `target_arch` check ([#4550](https://github.com/rust-lang/libc/pull/4550))
264 - FreeBSD: Fix the type of `xktls_session_onedir.ifnet` ([#4552](https://github.com/rust-lang/libc/pull/4552))
265 - Mips64 musl: Fix the type of `nlink_t` ([#4509](https://github.com/rust-lang/libc/pull/4509))
266 - Mips64 musl: Use a special MIPS definition of `stack_t` ([#4528](https://github.com/rust-lang/libc/pull/4528))
267 - Mips64: Fix `SI_TIMER`, `SI_MESGQ` and `SI_ASYNCIO` definitions ([#4529](https://github.com/rust-lang/libc/pull/4529))
268 - Musl Mips64: Swap the order of `si_errno` and `si_code` in `siginfo_t` ([#4530](https://github.com/rust-lang/libc/pull/4530))
269 - Musl Mips64: Use a special MIPS definition of `statfs` ([#4527](https://github.com/rust-lang/libc/pull/4527))
270 - Musl: Fix the definition of `fanotify_event_metadata` ([#4510](https://github.com/rust-lang/libc/pull/4510))
271 - NetBSD: Correct `enum fae_action` to be `#[repr(C)]` ([#60a8cfd5](https://github.com/rust-lang/libc/commit/60a8cfd564f83164d45b9533ff7a0d7371878f2a))
272 - PSP: Correct `char` -> `c_char` ([eaab4fc3](https://github.com/rust-lang/libc/commit/eaab4fc3f05dc646a953d4fd5ba46dfa1f8bd6f6))
273 - PowerPC musl: Fix `termios` definitions ([#4518](https://github.com/rust-lang/libc/pull/4518))
274 - PowerPC musl: Fix the definition of `EDEADLK` ([#4517](https://github.com/rust-lang/libc/pull/4517))
275 - PowerPC musl: Fix the definition of `NCCS` ([#4513](https://github.com/rust-lang/libc/pull/4513))
276 - PowerPC musl: Fix the definitions of `MAP_LOCKED` and `MAP_NORESERVE` ([#4516](https://github.com/rust-lang/libc/pull/4516))
277 - PowerPC64 musl: Fix the definition of `shmid_ds` ([#4519](https://github.com/rust-lang/libc/pull/4519))
278
279 ### Deprecated
280
281 - Linux: `MAP_32BIT` is only defined on x86 on non-x86 architectures ([#4511](https://github.com/rust-lang/libc/pull/4511))
282
283 ### Removed
284
285 - AIX: Remove duplicate constant definitions `FIND` and `ENTER` ([#4588](https://github.com/rust-lang/libc/pull/4588))
286 - s390x musl: Remove `O_FSYNC` ([#4515](https://github.com/rust-lang/libc/pull/4515))
287 - s390x musl: Remove `RTLD_DEEPBIND` ([#4515](https://github.com/rust-lang/libc/pull/4515))
288
289
290 ## [0.2.174](https://github.com/rust-lang/libc/compare/0.2.173...0.2.174) - 2025-06-17
291
292 ### Added
293
294 - Linux: Make `pidfd_info` fields pub ([#4487](https://github.com/rust-lang/libc/pull/4487))
295
296 ### Fixed
297
298 - Gnu x32: Add missing `timespec.tv_nsec` ([#4497](https://github.com/rust-lang/libc/pull/4497))
299 - NuttX: Use `nlink_t` type for `st_nlink` in `struct stat` definition ([#4483](https://github.com/rust-lang/libc/pull/4483))
300
301 ### Other
302
303 - Allow new `unpredictable_function_pointer_comparisons` lints ([#4489](https://github.com/rust-lang/libc/pull/4489))
304 - OpenBSD: Fix some clippy warnings to use `pointer::cast`. ([#4490](https://github.com/rust-lang/libc/pull/4490))
305 - Remove unessecary semicolons from definitions of `CMSG_NXTHDR`. ([#4492](https://github.com/rust-lang/libc/pull/4492))
306
307
308 ## [0.2.173](https://github.com/rust-lang/libc/compare/0.2.172...0.2.173) - 2025-06-09
309
310 ### Added
311
312 - AIX: Add an AIX triple to Cargo.toml for doc ([#4475](https://github.com/rust-lang/libc/pull/4475))
313 - FreeBSD: Add the `SO_SPLICE` socket option support for FreeBSD >= 14.2 ([#4451](https://github.com/rust-lang/libc/pull/4451))
314 - Linux GNU: Prepare for supporting `_TIME_BITS=64` ([#4433](https://github.com/rust-lang/libc/pull/4433))
315 - Linux: Add constant PACKET_IGNORE_OUTGOING ([#4319](https://github.com/rust-lang/libc/pull/4319))
316 - Linux: Add constants and types for `nsfs` ioctls ([#4436](https://github.com/rust-lang/libc/pull/4436))
317 - Linux: Add constants for Memory-Deny-Write-Execute `prctls` ([#4400](https://github.com/rust-lang/libc/pull/4400))
318 - Linux: Add constants from `linux/cn_proc.h` and `linux/connector.h` ([#4434](https://github.com/rust-lang/libc/pull/4434))
319 - Linux: Add new flags for `pwritev2` and `preadv2` ([#4452](https://github.com/rust-lang/libc/pull/4452))
320 - Linux: Add pid_type enum values ([#4403](https://github.com/rust-lang/libc/pull/4403))
321 - Linux: Update pidfd constants and types (Linux 6.9-6.15) ([#4402](https://github.com/rust-lang/libc/pull/4402))
322 - Loongarch64 musl: Define the `MADV_SOFT_OFFLINE` constant ([#4448](https://github.com/rust-lang/libc/pull/4448))
323 - Musl: Add new fields since 1.2.0/1.2.2 to `struct tcp_info` ([#4443](https://github.com/rust-lang/libc/pull/4443))
324 - Musl: Prepare for supporting v1.2.3 ([#4443](https://github.com/rust-lang/libc/pull/4443))
325 - NuttX: Add `arc4random` and `arc4random_buf` ([#4464](https://github.com/rust-lang/libc/pull/4464))
326 - RISC-V Musl: Add `MADV_SOFT_OFFLINE` definition ([#4447](https://github.com/rust-lang/libc/pull/4447))
327 - Redox: Define SCM_RIGHTS ([#4440](https://github.com/rust-lang/libc/pull/4440))
328 - VxWorks: Add missing UTIME defines and TASK_RENAME_LENGTH ([#4407](https://github.com/rust-lang/libc/pull/4407))
329 - Windows: Add more `time.h` functions ([#4427](https://github.com/rust-lang/libc/pull/4427))
330
331 ### Changed
332
333 - Redox: Update `SA_` constants. ([#4426](https://github.com/rust-lang/libc/pull/4426))
334 - Redox: make `CMSG_ALIGN`, `CMSG_LEN`, and `CMSG_SPACE` const functions ([#4441](https://github.com/rust-lang/libc/pull/4441))
335
336 ### Fixed
337
338 - AIX: Enable libc-test and fix definitions/declarations. ([#4450](https://github.com/rust-lang/libc/pull/4450))
339 - Emscripten: Fix querying emcc on windows (use emcc.bat) ([#4248](https://github.com/rust-lang/libc/pull/4248))
340 - Hurd: Fix build from missing `fpos_t` ([#4472](https://github.com/rust-lang/libc/pull/4472))
341 - Loongarch64 Musl: Fix the `struct ipc_perm` bindings ([#4384](https://github.com/rust-lang/libc/pull/4384))
342 - Musl: Fix the `O_LARGEFILE` constant value. ([#4443](https://github.com/rust-lang/libc/pull/4443))
343
344 ## [0.2.172](https://github.com/rust-lang/libc/compare/0.2.171...0.2.172) - 2025-04-14
345
346 ### Added
347
348 - Android: Add `getauxval` for 32-bit targets ([#4338](https://github.com/rust-lang/libc/pull/4338))
349 - Android: Add `if_tun.h` ioctls ([#4379](https://github.com/rust-lang/libc/pull/4379))
350 - Android: Define `SO_BINDTOIFINDEX` ([#4391](https://github.com/rust-lang/libc/pull/4391))
351 - Cygwin: Add `posix_spawn_file_actions_add[f]chdir[_np]` ([#4387](https://github.com/rust-lang/libc/pull/4387))
352 - Cygwin: Add new socket options ([#4350](https://github.com/rust-lang/libc/pull/4350))
353 - Cygwin: Add statfs & fcntl ([#4321](https://github.com/rust-lang/libc/pull/4321))
354 - FreeBSD: Add `filedesc` and `fdescenttbl` ([#4327](https://github.com/rust-lang/libc/pull/4327))
355 - Glibc: Add unstable support for _FILE_OFFSET_BITS=64 ([#4345](https://github.com/rust-lang/libc/pull/4345))
356 - Hermit: Add `AF_UNSPEC` ([#4344](https://github.com/rust-lang/libc/pull/4344))
357 - Hermit: Add `AF_VSOCK` ([#4344](https://github.com/rust-lang/libc/pull/4344))
358 - Illumos, NetBSD: Add `timerfd` APIs ([#4333](https://github.com/rust-lang/libc/pull/4333))
359 - Linux: Add `_IO`, `_IOW`, `_IOR`, `_IOWR` to the exported API ([#4325](https://github.com/rust-lang/libc/pull/4325))
360 - Linux: Add `tcp_info` to uClibc bindings ([#4347](https://github.com/rust-lang/libc/pull/4347))
361 - Linux: Add further BPF program flags ([#4356](https://github.com/rust-lang/libc/pull/4356))
362 - Linux: Add missing INPUT_PROP_XXX flags from `input-event-codes.h` ([#4326](https://github.com/rust-lang/libc/pull/4326))
363 - Linux: Add missing TLS bindings ([#4296](https://github.com/rust-lang/libc/pull/4296))
364 - Linux: Add more constants from `seccomp.h` ([#4330](https://github.com/rust-lang/libc/pull/4330))
365 - Linux: Add more glibc `ptrace_sud_config` and related `PTRACE_*ET_SYSCALL_USER_DISPATCH_CONFIG`. ([#4386](https://github.com/rust-lang/libc/pull/4386))
366 - Linux: Add new netlink flags ([#4288](https://github.com/rust-lang/libc/pull/4288))
367 - Linux: Define ioctl codes on more architectures ([#4382](https://github.com/rust-lang/libc/pull/4382))
368 - Linux: Add missing `pthread_attr_setstack` ([#4349](https://github.com/rust-lang/libc/pull/4349))
369 - Musl: Add missing `utmpx` API ([#4332](https://github.com/rust-lang/libc/pull/4332))
370 - Musl: Enable `getrandom` on all platforms ([#4346](https://github.com/rust-lang/libc/pull/4346))
371 - NuttX: Add more signal constants ([#4353](https://github.com/rust-lang/libc/pull/4353))
372 - QNX: Add QNX 7.1-iosock and 8.0 to list of additional cfgs ([#4169](https://github.com/rust-lang/libc/pull/4169))
373 - QNX: Add support for alternative Neutrino network stack `io-sock` ([#4169](https://github.com/rust-lang/libc/pull/4169))
374 - Redox: Add more `sys/socket.h` and `sys/uio.h` definitions ([#4388](https://github.com/rust-lang/libc/pull/4388))
375 - Solaris: Temporarily define `O_DIRECT` and `SIGINFO` ([#4348](https://github.com/rust-lang/libc/pull/4348))
376 - Solarish: Add `secure_getenv` ([#4342](https://github.com/rust-lang/libc/pull/4342))
377 - VxWorks: Add missing `d_type` member to `dirent` ([#4352](https://github.com/rust-lang/libc/pull/4352))
378 - VxWorks: Add missing signal-related constsants ([#4352](https://github.com/rust-lang/libc/pull/4352))
379 - VxWorks: Add more error codes ([#4337](https://github.com/rust-lang/libc/pull/4337))
380
381 ### Deprecated
382
383 - FreeBSD: Deprecate `TCP_PCAP_OUT` and `TCP_PCAP_IN` ([#4381](https://github.com/rust-lang/libc/pull/4381))
384
385 ### Fixed
386
387 - Cygwin: Fix member types of `statfs` ([#4324](https://github.com/rust-lang/libc/pull/4324))
388 - Cygwin: Fix tests ([#4357](https://github.com/rust-lang/libc/pull/4357))
389 - Hermit: Make `AF_INET = 3` ([#4344](https://github.com/rust-lang/libc/pull/4344))
390 - Musl: Fix the syscall table on RISC-V-32 ([#4335](https://github.com/rust-lang/libc/pull/4335))
391 - Musl: Fix the value of `SA_ONSTACK` on RISC-V-32 ([#4335](https://github.com/rust-lang/libc/pull/4335))
392 - VxWorks: Fix a typo in the `waitpid` parameter name ([#4334](https://github.com/rust-lang/libc/pull/4334))
393
394 ### Removed
395
396 - Musl: Remove `O_FSYNC` on RISC-V-32 (use `O_SYNC` instead) ([#4335](https://github.com/rust-lang/libc/pull/4335))
397 - Musl: Remove `RTLD_DEEPBIND` on RISC-V-32 ([#4335](https://github.com/rust-lang/libc/pull/4335))
398
399 ### Other
400
401 - CI: Add matrix env variables to the environment ([#4345](https://github.com/rust-lang/libc/pull/4345))
402 - CI: Always deny warnings ([#4363](https://github.com/rust-lang/libc/pull/4363))
403 - CI: Always upload successfully created artifacts ([#4345](https://github.com/rust-lang/libc/pull/4345))
404 - CI: Install musl from source for loongarch64 ([#4320](https://github.com/rust-lang/libc/pull/4320))
405 - CI: Revert "Also skip `MFD_EXEC` and `MFD_NOEXEC_SEAL` on sparc64" ([#]())
406 - CI: Use `$PWD` instead of `$(pwd)` in run-docker ([#4345](https://github.com/rust-lang/libc/pull/4345))
407 - Solarish: Restrict `openpty` and `forkpty` polyfills to Illumos, replace Solaris implementation with bindings ([#4329](https://github.com/rust-lang/libc/pull/4329))
408 - Testing: Ensure the makedev test does not emit unused errors ([#4363](https://github.com/rust-lang/libc/pull/4363))
409
410 ## [0.2.171](https://github.com/rust-lang/libc/compare/0.2.170...0.2.171) - 2025-03-11
411
412 ### Added
413
414 - Android: Add `if_nameindex`/`if_freenameindex` support ([#4247](https://github.com/rust-lang/libc/pull/4247))
415 - Apple: Add missing proc types and constants ([#4310](https://github.com/rust-lang/libc/pull/4310))
416 - BSD: Add `devname` ([#4285](https://github.com/rust-lang/libc/pull/4285))
417 - Cygwin: Add PTY and group API ([#4309](https://github.com/rust-lang/libc/pull/4309))
418 - Cygwin: Add support ([#4279](https://github.com/rust-lang/libc/pull/4279))
419 - FreeBSD: Make `spawn.h` interfaces available on all FreeBSD-like systems ([#4294](https://github.com/rust-lang/libc/pull/4294))
420 - Linux: Add `AF_XDP` structs for all Linux environments ([#4163](https://github.com/rust-lang/libc/pull/4163))
421 - Linux: Add SysV semaphore constants ([#4286](https://github.com/rust-lang/libc/pull/4286))
422 - Linux: Add `F_SEAL_EXEC` ([#4316](https://github.com/rust-lang/libc/pull/4316))
423 - Linux: Add `SO_PREFER_BUSY_POLL` and `SO_BUSY_POLL_BUDGET` ([#3917](https://github.com/rust-lang/libc/pull/3917))
424 - Linux: Add `devmem` structs ([#4299](https://github.com/rust-lang/libc/pull/4299))
425 - Linux: Add socket constants up to `SO_DEVMEM_DONTNEED` ([#4299](https://github.com/rust-lang/libc/pull/4299))
426 - NetBSD, OpenBSD, DragonflyBSD: Add `closefrom` ([#4290](https://github.com/rust-lang/libc/pull/4290))
427 - NuttX: Add `pw_passwd` field to `passwd` ([#4222](https://github.com/rust-lang/libc/pull/4222))
428 - Solarish: define `IP_BOUND_IF` and `IPV6_BOUND_IF` ([#4287](https://github.com/rust-lang/libc/pull/4287))
429 - Wali: Add bindings for `wasm32-wali-linux-musl` target ([#4244](https://github.com/rust-lang/libc/pull/4244))
430
431 ### Changed
432
433 - AIX: Use `sa_sigaction` instead of a union ([#4250](https://github.com/rust-lang/libc/pull/4250))
434 - Make `msqid_ds.__msg_cbytes` public ([#4301](https://github.com/rust-lang/libc/pull/4301))
435 - Unix: Make all `major`, `minor`, `makedev` into `const fn` ([#4208](https://github.com/rust-lang/libc/pull/4208))
436
437 ### Deprecated
438
439 - Linux: Deprecate obsolete packet filter interfaces ([#4267](https://github.com/rust-lang/libc/pull/4267))
440
441 ### Fixed
442
443 - Cygwin: Fix strerror_r ([#4308](https://github.com/rust-lang/libc/pull/4308))
444 - Cygwin: Fix usage of f! ([#4308](https://github.com/rust-lang/libc/pull/4308))
445 - Hermit: Make `stat::st_size` signed ([#4298](https://github.com/rust-lang/libc/pull/4298))
446 - Linux: Correct values for `SI_TIMER`, `SI_MESGQ`, `SI_ASYNCIO` ([#4292](https://github.com/rust-lang/libc/pull/4292))
447 - NuttX: Update `tm_zone` and `d_name` fields to use `c_char` type ([#4222](https://github.com/rust-lang/libc/pull/4222))
448 - Xous: Include the prelude to define `c_int` ([#4304](https://github.com/rust-lang/libc/pull/4304))
449
450 ### Other
451
452 - 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))
453 - CI: Fix "cannot find libc" error on Sparc64 ([#4317](https://github.com/rust-lang/libc/pull/4317))
454 - CI: Fix "cannot find libc" error on s390x ([#4317](https://github.com/rust-lang/libc/pull/4317))
455 - CI: Pass `--no-self-update` to `rustup update` ([#4306](https://github.com/rust-lang/libc/pull/4306))
456 - CI: Remove tests for the `i586-pc-windows-msvc` target ([#4311](https://github.com/rust-lang/libc/pull/4311))
457 - CI: Remove the `check_cfg` job ([#4322](https://github.com/rust-lang/libc/pull/4312))
458 - Change the range syntax that is giving `ctest` problems ([#4311](https://github.com/rust-lang/libc/pull/4311))
459 - Linux: Split out the stat struct for gnu/b32/mips ([#4276](https://github.com/rust-lang/libc/pull/4276))
460
461 ### Removed
462
463 - NuttX: Remove `pthread_set_name_np` ([#4251](https://github.com/rust-lang/libc/pull/4251))
464
465 ## [0.2.170](https://github.com/rust-lang/libc/compare/0.2.169...0.2.170) - 2025-02-23
466
467 ### Added
468
469 - Android: Declare `setdomainname` and `getdomainname` <https://github.com/rust-lang/libc/pull/4212>
470 - FreeBSD: Add `evdev` structures <https://github.com/rust-lang/libc/pull/3756>
471 - FreeBSD: Add the new `st_filerev` field to `stat32` ([#4254](https://github.com/rust-lang/libc/pull/4254))
472 - Linux: Add `SI_*`` and `TRAP_*`` signal codes <https://github.com/rust-lang/libc/pull/4225>
473 - 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>
474 - Linux: Add recent socket timestamping flags <https://github.com/rust-lang/libc/pull/4273>
475 - Linux: Added new CANFD_FDF flag for the flags field of canfd_frame <https://github.com/rust-lang/libc/pull/4223>
476 - Musl: add CLONE_NEWTIME <https://github.com/rust-lang/libc/pull/4226>
477 - Solarish: add the posix_spawn family of functions <https://github.com/rust-lang/libc/pull/4259>
478
479 ### Deprecated
480
481 - Linux: deprecate kernel modules syscalls <https://github.com/rust-lang/libc/pull/4228>
482
483 ### Changed
484
485 - Emscripten: Assume version is at least 3.1.42 <https://github.com/rust-lang/libc/pull/4243>
486
487 ### Fixed
488
489 - BSD: Correct the definition of `WEXITSTATUS` <https://github.com/rust-lang/libc/pull/4213>
490 - Hurd: Fix CMSG_DATA on 64bit systems ([#4240](https://github.com/rust-lang/libc/pull/424))
491 - NetBSD: fix `getmntinfo` ([#4265](https://github.com/rust-lang/libc/pull/4265)
492 - VxWorks: Fix the size of `time_t` <https://github.com/rust-lang/libc/pull/426>
493
494 ### Other
495
496 - 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>
497 - CI: Bump FreeBSD CI to 13.4 and 14.2 <https://github.com/rust-lang/libc/pull/4260>
498 - Copy definitions from core::ffi and centralize them <https://github.com/rust-lang/libc/pull/4256>
499 - Define c_char at top-level and remove per-target c_char definitions <https://github.com/rust-lang/libc/pull/4202>
500 - Port style.rs to syn and add tests for the style checker <https://github.com/rust-lang/libc/pull/4220>
501
502 ## [0.2.169](https://github.com/rust-lang/libc/compare/0.2.168...0.2.169) - 2024-12-18
503
504 ### Added
505
506 - FreeBSD: add more socket TCP stack constants <https://github.com/rust-lang/libc/pull/4193>
507 - Fuchsia: add a `sockaddr_vm` definition <https://github.com/rust-lang/libc/pull/4194>
508
509 ### Fixed
510
511 **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:
512
513 - ESP-IDF: Replace arch-conditional `c_char` with a reexport <https://github.com/rust-lang/libc/pull/4195>
514 - Fix `c_char` on various targets <https://github.com/rust-lang/libc/pull/4199>
515 - Mirror `c_char` configuration from `rust-lang/rust` <https://github.com/rust-lang/libc/pull/4198>
516
517 ### Cleanup
518
519 - Do not re-export `c_void` in target-specific code <https://github.com/rust-lang/libc/pull/4200>
520
521 ## [0.2.168](https://github.com/rust-lang/libc/compare/0.2.167...0.2.168) - 2024-12-09
522
523 ### Added
524
525 - Linux: Add new process flags ([#4174](https://github.com/rust-lang/libc/pull/4174))
526 - Linux: Make `IFA_*` constants available on all Linux targets <https://github.com/rust-lang/libc/pull/4185>
527 - Linux: add `MAP_DROPPABLE` <https://github.com/rust-lang/libc/pull/4173>
528 - Solaris, Illumos: add `SIGRTMIN` and `SIGRTMAX` <https://github.com/rust-lang/libc/pull/4171>
529 - Unix, Linux: adding POSIX `memccpy` and `mempcpy` GNU extension <https://github.com/rust-lang/libc/pull/4186.
530
531 ### Deprecated
532
533 - FreeBSD: Deprecate the CAP_UNUSED* and CAP_ALL* constants ([#4183](https://github.com/rust-lang/libc/pull/4183))
534
535 ### Fixed
536
537 - Make the `Debug` implementation for unions opaque ([#4176](https://github.com/rust-lang/libc/pull/4176))
538
539 ### Other
540
541 - Allow the `unpredictable_function_pointer_comparisons` lint where needed <https://github.com/rust-lang/libc/pull/4177>
542 - CI: Upload artifacts created by libc-test <https://github.com/rust-lang/libc/pull/4180>
543 - CI: Use workflow commands to group output by target <https://github.com/rust-lang/libc/pull/4179>
544 - CI: add caching <https://github.com/rust-lang/libc/pull/4183>
545
546 ## [0.2.167](https://github.com/rust-lang/libc/compare/0.2.166...0.2.167) - 2024-11-28
547
548 ### Added
549
550 - Solarish: add `st_fstype` to `stat` <https://github.com/rust-lang/libc/pull/4145>
551 - Trusty: Add `intptr_t` and `uintptr_t` ([#4161](https://github.com/rust-lang/libc/pull/4161))
552
553 ### Fixed
554
555 - Fix the build with `rustc-dep-of-std` <https://github.com/rust-lang/libc/pull/4158>
556 - Wasi: Add back unsafe block for `clockid_t` static variables ([#4157](https://github.com/rust-lang/libc/pull/4157))
557
558 ### Cleanup
559
560 - Create an internal prelude <https://github.com/rust-lang/libc/pull/4161>
561 - Fix `unused_qualifications`<https://github.com/rust-lang/libc/pull/4132>
562
563 ### Other
564
565 - CI: Check various FreeBSD versions ([#4159](https://github.com/rust-lang/libc/pull/4159))
566 - CI: add a timeout for all jobs <https://github.com/rust-lang/libc/pull/4164>
567 - CI: verify MSRV for `wasm32-wasi` <https://github.com/rust-lang/libc/pull/4157>
568 - Migrate to the 2021 edition <https://github.com/rust-lang/libc/pull/4132>
569
570 ### Removed
571
572 - Remove one unused import after the edition 2021 bump
573
574 ## [0.2.166](https://github.com/rust-lang/libc/compare/0.2.165...0.2.166) - 2024-11-26
575
576 ### Fixed
577
578 This release resolves two cases of unintentional breakage from the previous release:
579
580 - Revert removal of array size hacks [#4150](https://github.com/rust-lang/libc/pull/4150)
581 - Ensure `const extern` functions are always enabled [#4151](https://github.com/rust-lang/libc/pull/4151)
582
583 ## [0.2.165](https://github.com/rust-lang/libc/compare/0.2.164...0.2.165) - 2024-11-25
584
585 ### Added
586
587 - Android: add `mkostemp`, `mkostemps` <https://github.com/rust-lang/libc/pull/3601>
588 - Android: add a few API 30 calls <https://github.com/rust-lang/libc/pull/3604>
589 - Android: add missing syscall constants <https://github.com/rust-lang/libc/pull/3558>
590 - Apple: add `in6_ifreq` <https://github.com/rust-lang/libc/pull/3617>
591 - 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)))
592 - Freebsd: add `kcmp` call support <https://github.com/rust-lang/libc/pull/3746>
593 - Hurd: add `MAP_32BIT` and `MAP_EXCL` <https://github.com/rust-lang/libc/pull/4127>
594 - Hurd: add `domainname` field to `utsname` ([#4089](https://github.com/rust-lang/libc/pulls/4089))
595 - Linux GNU: add `f_flags` to struct `statfs` for arm, mips, powerpc and x86 <https://github.com/rust-lang/libc/pull/3663>
596 - Linux GNU: add `malloc_stats` <https://github.com/rust-lang/libc/pull/3596>
597 - Linux: add ELF relocation-related structs <https://github.com/rust-lang/libc/pull/3583>
598 - Linux: add `ptp_*` structs <https://github.com/rust-lang/libc/pull/4113>
599 - Linux: add `ptp_clock_caps` <https://github.com/rust-lang/libc/pull/4128>
600 - Linux: add `ptp_pin_function` and most `PTP_` constants <https://github.com/rust-lang/libc/pull/4114>
601 - Linux: add missing AF_XDP structs & constants <https://github.com/rust-lang/libc/pull/3956>
602 - Linux: add missing netfilter consts ([#3734](https://github.com/rust-lang/libc/pulls/3734))
603 - Linux: add struct and constants for the `mount_setattr` syscall <https://github.com/rust-lang/libc/pull/4046>
604 - Linux: add wireless API <https://github.com/rust-lang/libc/pull/3441>
605 - Linux: expose the `len8_dlc` field of `can_frame` <https://github.com/rust-lang/libc/pull/3357>
606 - Musl: add `utmpx` API <https://github.com/rust-lang/libc/pull/3213>
607 - Musl: add missing syscall constants <https://github.com/rust-lang/libc/pull/4028>
608 - NetBSD: add `mcontext`-related data for RISCV64 <https://github.com/rust-lang/libc/pull/3468>
609 - Redox: add new `netinet` constants <https://github.com/rust-lang/libc/pull/3586>)
610 - Solarish: add `_POSIX_VDISABLE` ([#4103](https://github.com/rust-lang/libc/pulls/4103))
611 - Tests: Add a test that the `const extern fn` macro works <https://github.com/rust-lang/libc/pull/4134>
612 - Tests: Add test of primitive types against `std` <https://github.com/rust-lang/libc/pull/3616>
613 - Unix: Add `htonl`, `htons`, `ntohl`, `ntohs` <https://github.com/rust-lang/libc/pull/3669>
614 - Unix: add `aligned_alloc` <https://github.com/rust-lang/libc/pull/3843>
615 - Windows: add `aligned_realloc` <https://github.com/rust-lang/libc/pull/3592>
616
617 ### Fixed
618
619 - **breaking** Hurd: fix `MAP_HASSEMAPHORE` name ([#4127](https://github.com/rust-lang/libc/pulls/4127))
620 - **breaking** ulibc Mips: fix `SA_*` mismatched types ([#3211](https://github.com/rust-lang/libc/pulls/3211))
621 - Aix: fix an enum FFI safety warning <https://github.com/rust-lang/libc/pull/3644>
622 - Haiku: fix some typos ([#3664](https://github.com/rust-lang/libc/pulls/3664))
623 - Tests: fix `Elf{32,64}_Relr`-related tests <https://github.com/rust-lang/libc/pull/3647>
624 - Tests: fix libc-tests for `loongarch64-linux-musl`
625 - Tests: fix some clippy warnings <https://github.com/rust-lang/libc/pull/3855>
626 - Tests: fix tests on `riscv64gc-unknown-freebsd` <https://github.com/rust-lang/libc/pull/4129>
627
628 ### Deprecated
629
630 - Apple: deprecate `iconv_open` <https://github.com/rust-lang/libc/commit/25e022a22eca3634166ef472b748c297e60fcf7f>
631 - Apple: deprecate `mach_task_self` <https://github.com/rust-lang/libc/pull/4095>
632 - Apple: update `mach` deprecation notices for things that were removed in `main` <https://github.com/rust-lang/libc/pull/4097>
633
634 ### Cleanup
635
636 - Adjust the `f!` macro to be more flexible <https://github.com/rust-lang/libc/pull/4107>
637 - Aix: remove duplicate constants <https://github.com/rust-lang/libc/pull/3643>
638 - CI: make scripts more uniform <https://github.com/rust-lang/libc/pull/4042>
639 - Drop the `libc_align` conditional <https://github.com/rust-lang/libc/commit/b5b553d0ee7de0d4781432a9a9a0a6445dd7f34f>
640 - Drop the `libc_cfg_target_vendor` conditional <https://github.com/rust-lang/libc/pull/4060>
641 - Drop the `libc_const_size_of` conditional <https://github.com/rust-lang/libc/commit/5a43dd2754366f99b3a83881b30246ce0e51833c>
642 - Drop the `libc_core_cvoid` conditional <https://github.com/rust-lang/libc/pull/4060>
643 - Drop the `libc_int128` conditional <https://github.com/rust-lang/libc/pull/4060>
644 - Drop the `libc_non_exhaustive` conditional <https://github.com/rust-lang/libc/pull/4060>
645 - Drop the `libc_packedN` conditional <https://github.com/rust-lang/libc/pull/4060>
646 - Drop the `libc_priv_mod_use` conditional <https://github.com/rust-lang/libc/commit/19c59376d11b015009fb9b04f233a30a1bf50a91>
647 - Drop the `libc_union` conditional <https://github.com/rust-lang/libc/commit/b9e4d8012f612dfe24147da3e69522763f92b6e3>
648 - Drop the `long_array` conditional <https://github.com/rust-lang/libc/pull/4096>
649 - Drop the `ptr_addr_of` conditional <https://github.com/rust-lang/libc/pull/4065>
650 - Drop warnings about deprecated cargo features <https://github.com/rust-lang/libc/pull/4060>
651 - Eliminate uses of `struct_formatter` <https://github.com/rust-lang/libc/pull/4074>
652 - Fix a few other array size hacks <https://github.com/rust-lang/libc/commit/d63be8b69b0736753213f5d933767866a5801ee7>
653 - Glibc: remove redundant definitions ([#3261](https://github.com/rust-lang/libc/pulls/3261))
654 - Musl: remove redundant definitions ([#3261](https://github.com/rust-lang/libc/pulls/3261))
655 - Musl: unify definitions of `siginfo_t` ([#3261](https://github.com/rust-lang/libc/pulls/3261))
656 - Musl: unify definitions of statfs and statfs64 ([#3261](https://github.com/rust-lang/libc/pulls/3261))
657 - Musl: unify definitions of statvfs and statvfs64 ([#3261](https://github.com/rust-lang/libc/pulls/3261))
658 - Musl: unify statx definitions ([#3978](https://github.com/rust-lang/libc/pulls/3978))
659 - Remove array size hacks for Rust < 1.47 <https://github.com/rust-lang/libc/commit/27ee6fe02ca0848b2af3cd747536264e4c7b697d>
660 - Remove repetitive words <https://github.com/rust-lang/libc/commit/77de375891285e18a81616f7dceda6d52732eed6>
661 - Use #[derive] for Copy/Clone in s! and friends <https://github.com/rust-lang/libc/pull/4038>
662 - Use some tricks to format macro bodies <https://github.com/rust-lang/libc/pull/4107>
663
664 ### Other
665
666 - Apply formatting to macro bodies <https://github.com/rust-lang/libc/pull/4107>
667 - Bump libc-test to Rust 2021 Edition <https://github.com/rust-lang/libc/pull/3905>
668 - CI: Add a check that semver files don't contain duplicate entries <https://github.com/rust-lang/libc/pull/4087>
669 - CI: Add `fanotify_event_info_fid` to FAM-exempt types <https://github.com/rust-lang/libc/pull/4038>
670 - CI: Allow rustfmt to organize imports ([#4136](https://github.com/rust-lang/libc/pulls/4136))
671 - CI: Always run rustfmt <https://github.com/rust-lang/libc/pull/4120>
672 - CI: Change 32-bit Docker images to use EOL repos <https://github.com/rust-lang/libc/pull/4120>
673 - CI: Change 64-bit Docker images to ubuntu:24.10 <https://github.com/rust-lang/libc/pull/4120>
674 - CI: Disable the check for >1 s! invocation <https://github.com/rust-lang/libc/pull/4107>
675 - CI: Ensure build channels get run even if FILTER is unset <https://github.com/rust-lang/libc/pull/4125>
676 - CI: Ensure there is a fallback for no_std <https://github.com/rust-lang/libc/pull/4125>
677 - CI: Fix cases where unset variables cause errors <https://github.com/rust-lang/libc/pull/4108>
678 - CI: Naming adjustments and cleanup <https://github.com/rust-lang/libc/pull/4124>
679 - CI: Only invoke rustup if running in CI <https://github.com/rust-lang/libc/pull/4107>
680 - CI: Remove the logic to handle old rust versions <https://github.com/rust-lang/libc/pull/4068>
681 - CI: Set -u (error on unset) in all script files <https://github.com/rust-lang/libc/pull/4108>
682 - CI: add support for `loongarch64-unknown-linux-musl` <https://github.com/rust-lang/libc/pull/4092>
683 - CI: make `aarch64-apple-darwin` not a nightly-only target <https://github.com/rust-lang/libc/pull/4068>
684 - CI: run shellcheck on all scripts <https://github.com/rust-lang/libc/pull/4042>
685 - CI: update musl headers to Linux 6.6 <https://github.com/rust-lang/libc/pull/3921>
686 - CI: use qemu-sparc64 to run sparc64 tests <https://github.com/rust-lang/libc/pull/4133>
687 - Drop the `libc_const_extern_fn` conditional <https://github.com/rust-lang/libc/commit/674cc1f47f605038ef1aa2cce8e8bc9dac128276>
688 - Drop the `libc_underscore_const_names` conditional <https://github.com/rust-lang/libc/commit/f0febd5e2e50b38e05259d3afad3c9783711bcf0>
689 - Explicitly set the edition to 2015 <https://github.com/rust-lang/libc/pull/4058>
690 - Introduce a `git-blame-ignore-revs` file <https://github.com/rust-lang/libc/pull/4107>
691 - Tests: Ignore fields as required on Ubuntu 24.10 <https://github.com/rust-lang/libc/pull/4120>
692 - Tests: skip `ATF_*` constants for OpenBSD <https://github.com/rust-lang/libc/pull/4088>
693 - Triagebot: Add an autolabel for CI <https://github.com/rust-lang/libc/pull/4052>
694
695 ## [0.2.164](https://github.com/rust-lang/libc/compare/0.2.163...0.2.164) - 2024-11-16
696
697 ### MSRV
698
699 This release increases the MSRV of `libc` to 1.63.
700
701 ### Other
702
703 - CI: remove tests with rust < 1.63 <https://github.com/rust-lang/libc/pull/4051>
704 - MSRV: document the MSRV of the stable channel to be 1.63 <https://github.com/rust-lang/libc/pull/4040>
705 - MacOS: move ifconf to s_no_extra_traits <https://github.com/rust-lang/libc/pull/4051>
706
707 ## [0.2.163](https://github.com/rust-lang/libc/compare/0.2.162...0.2.163) - 2024-11-16
708
709 ### Added
710
711 - Aix: add more `dlopen` flags <https://github.com/rust-lang/libc/pull/4044>
712 - Android: add group calls <https://github.com/rust-lang/libc/pull/3499>
713 - FreeBSD: add `TCP_FUNCTION_BLK` and `TCP_FUNCTION_ALIAS` <https://github.com/rust-lang/libc/pull/4047>
714 - Linux: add `confstr` <https://github.com/rust-lang/libc/pull/3612>
715 - Solarish: add `aio` <https://github.com/rust-lang/libc/pull/4033>
716 - Solarish: add `arc4random*` <https://github.com/rust-lang/libc/pull/3944>
717
718 ### Changed
719
720 - Emscripten: upgrade emsdk to 3.1.68 <https://github.com/rust-lang/libc/pull/3962>
721 - Hurd: use more standard types <https://github.com/rust-lang/libc/pull/3733>
722 - Hurd: use the standard `ssize_t = isize` <https://github.com/rust-lang/libc/pull/4029>
723 - Solaris: fix `confstr` and `ucontext_t` <https://github.com/rust-lang/libc/pull/4035>
724
725 ### Other
726
727 - CI: add Solaris <https://github.com/rust-lang/libc/pull/4035>
728 - CI: add `i686-unknown-freebsd` <https://github.com/rust-lang/libc/pull/3997>
729 - CI: ensure that calls to `sort` do not depend on locale <https://github.com/rust-lang/libc/pull/4026>
730 - Specify `rust-version` in `Cargo.toml` <https://github.com/rust-lang/libc/pull/4041>
731
732 ## [0.2.162](https://github.com/rust-lang/libc/compare/0.2.161...0.2.162) - 2024-11-07
733
734 ### Added
735
736 - Android: fix the alignment of `uc_mcontext` on arm64 <https://github.com/rust-lang/libc/pull/3894>
737 - Apple: add `host_cpu_load_info` <https://github.com/rust-lang/libc/pull/3916>
738 - ESP-IDF: add a time flag <https://github.com/rust-lang/libc/pull/3993>
739 - FreeBSD: add the `CLOSE_RANGE_CLOEXEC` flag<https://github.com/rust-lang/libc/pull/3996>
740 - FreeBSD: fix test errors regarding `__gregset_t` <https://github.com/rust-lang/libc/pull/3995>
741 - FreeBSD: fix tests on x86 FreeBSD 15 <https://github.com/rust-lang/libc/pull/3948>
742 - FreeBSD: make `ucontext_t` and `mcontext_t` available on all architectures <https://github.com/rust-lang/libc/pull/3848>
743 - Haiku: add `getentropy` <https://github.com/rust-lang/libc/pull/3991>
744 - Illumos: add `syncfs` <https://github.com/rust-lang/libc/pull/3990>
745 - Illumos: add some recently-added constants <https://github.com/rust-lang/libc/pull/3999>
746 - Linux: add `ioctl` flags <https://github.com/rust-lang/libc/pull/3960>
747 - Linux: add epoll busy polling parameters <https://github.com/rust-lang/libc/pull/3922>
748 - NuttX: add `pthread_[get/set]name_np` <https://github.com/rust-lang/libc/pull/4003>
749 - RTEMS: add `arc4random_buf` <https://github.com/rust-lang/libc/pull/3989>
750 - Trusty OS: add initial support <https://github.com/rust-lang/libc/pull/3942>
751 - WASIp2: expand socket support <https://github.com/rust-lang/libc/pull/3981>
752
753 ### Fixed
754
755 - Emscripten: don't pass `-lc` <https://github.com/rust-lang/libc/pull/4002>
756 - Hurd: change `st_fsid` field to `st_dev` <https://github.com/rust-lang/libc/pull/3785>
757 - Hurd: fix the definition of `utsname` <https://github.com/rust-lang/libc/pull/3992>
758 - Illumos/Solaris: fix `FNM_CASEFOLD` definition <https://github.com/rust-lang/libc/pull/4004>
759 - Solaris: fix all tests <https://github.com/rust-lang/libc/pull/3864>
760
761 ### Other
762
763 - CI: Add loongarch64 <https://github.com/rust-lang/libc/pull/4000>
764 - CI: Check that semver files are sorted <https://github.com/rust-lang/libc/pull/4018>
765 - CI: Re-enable the FreeBSD 15 job <https://github.com/rust-lang/libc/pull/3988>
766 - Clean up imports and `extern crate` usage <https://github.com/rust-lang/libc/pull/3897>
767 - Convert `mode_t` constants to octal <https://github.com/rust-lang/libc/pull/3634>
768 - Remove the `wasm32-wasi` target that has been deleted upstream <https://github.com/rust-lang/libc/pull/4013>
769
770 ## [0.2.161](https://github.com/rust-lang/libc/compare/0.2.160...0.2.161) - 2024-10-17
771
772 ### Fixed
773
774 - OpenBSD: fix `FNM_PATHNAME` and `FNM_NOESCAPE` values <https://github.com/rust-lang/libc/pull/3983>
775
776 ## [0.2.160](https://github.com/rust-lang/libc/compare/0.2.159...0.2.160) - 2024-10-17
777
778 ### Added
779
780 - Android: add `PR_GET_NAME` and `PR_SET_NAME` <https://github.com/rust-lang/libc/pull/3941>
781 - Apple: add `F_TRANSFEREXTENTS` <https://github.com/rust-lang/libc/pull/3925>
782 - Apple: add `mach_error_string` <https://github.com/rust-lang/libc/pull/3913>
783 - Apple: add additional `pthread` APIs <https://github.com/rust-lang/libc/pull/3846>
784 - Apple: add the `LOCAL_PEERTOKEN` socket option <https://github.com/rust-lang/libc/pull/3929>
785 - BSD: add `RTF_*`, `RTA_*`, `RTAX_*`, and `RTM_*` definitions <https://github.com/rust-lang/libc/pull/3714>
786 - Emscripten: add `AT_EACCESS` <https://github.com/rust-lang/libc/pull/3911>
787 - Emscripten: add `getgrgid`, `getgrnam`, `getgrnam_r` and `getgrgid_r` <https://github.com/rust-lang/libc/pull/3912>
788 - Emscripten: add `getpwnam_r` and `getpwuid_r` <https://github.com/rust-lang/libc/pull/3906>
789 - FreeBSD: add `POLLRDHUP` <https://github.com/rust-lang/libc/pull/3936>
790 - Haiku: add `arc4random` <https://github.com/rust-lang/libc/pull/3945>
791 - Illumos: add `ptsname_r` <https://github.com/rust-lang/libc/pull/3867>
792 - Linux: add `fanotify` interfaces <https://github.com/rust-lang/libc/pull/3695>
793 - Linux: add `tcp_info` <https://github.com/rust-lang/libc/pull/3480>
794 - Linux: add additional AF_PACKET options <https://github.com/rust-lang/libc/pull/3540>
795 - Linux: make Elf constants always available <https://github.com/rust-lang/libc/pull/3938>
796 - Musl x86: add `iopl` and `ioperm` <https://github.com/rust-lang/libc/pull/3720>
797 - Musl: add `posix_spawn` chdir functions <https://github.com/rust-lang/libc/pull/3949>
798 - Musl: add `utmpx.h` constants <https://github.com/rust-lang/libc/pull/3908>
799 - NetBSD: add `sysctlnametomib`, `CLOCK_THREAD_CPUTIME_ID` and `CLOCK_PROCESS_CPUTIME_ID` <https://github.com/rust-lang/libc/pull/3927>
800 - Nuttx: initial support <https://github.com/rust-lang/libc/pull/3909>
801 - RTEMS: add `getentropy` <https://github.com/rust-lang/libc/pull/3973>
802 - RTEMS: initial support <https://github.com/rust-lang/libc/pull/3866>
803 - Solarish: add `POLLRDHUP`, `POSIX_FADV_*`, `O_RSYNC`, and `posix_fallocate` <https://github.com/rust-lang/libc/pull/3936>
804 - Unix: add `fnmatch.h` <https://github.com/rust-lang/libc/pull/3937>
805 - VxWorks: add riscv64 support <https://github.com/rust-lang/libc/pull/3935>
806 - VxWorks: update constants related to the scheduler <https://github.com/rust-lang/libc/pull/3963>
807
808 ### Changed
809
810 - Redox: change `ino_t` to be `c_ulonglong` <https://github.com/rust-lang/libc/pull/3919>
811
812 ### Fixed
813
814 - ESP-IDF: fix mismatched constants and structs <https://github.com/rust-lang/libc/pull/3920>
815 - FreeBSD: fix `struct stat` on FreeBSD 12+ <https://github.com/rust-lang/libc/pull/3946>
816
817 ### Other
818
819 - CI: Fix CI for FreeBSD 15 <https://github.com/rust-lang/libc/pull/3950>
820 - Docs: link to `windows-sys` <https://github.com/rust-lang/libc/pull/3915>
821
822 ## [0.2.159](https://github.com/rust-lang/libc/compare/0.2.158...0.2.159) - 2024-09-24
823
824 ### Added
825
826 - Android: add more `AT_*` constants in <https://github.com/rust-lang/libc/pull/3779>
827 - Apple: add missing `NOTE_*` constants in <https://github.com/rust-lang/libc/pull/3883>
828 - Hermit: add missing error numbers in <https://github.com/rust-lang/libc/pull/3858>
829 - Hurd: add `__timeval` for 64-bit support in <https://github.com/rust-lang/libc/pull/3786>
830 - Linux: add `epoll_pwait2` in <https://github.com/rust-lang/libc/pull/3868>
831 - Linux: add `mq_notify` in <https://github.com/rust-lang/libc/pull/3849>
832 - Linux: add missing `NFT_CT_*` constants in <https://github.com/rust-lang/libc/pull/3844>
833 - Linux: add the `fchmodat2` syscall in <https://github.com/rust-lang/libc/pull/3588>
834 - Linux: add the `mseal` syscall in <https://github.com/rust-lang/libc/pull/3798>
835 - OpenBSD: add `sendmmsg` and `recvmmsg` in <https://github.com/rust-lang/libc/pull/3831>
836 - Unix: add `IN6ADDR_ANY_INIT` and `IN6ADDR_LOOPBACK_INIT` in <https://github.com/rust-lang/libc/pull/3693>
837 - VxWorks: add `S_ISVTX` in <https://github.com/rust-lang/libc/pull/3768>
838 - VxWorks: add `vxCpuLib` and `taskLib` functions <https://github.com/rust-lang/libc/pull/3861>
839 - WASIp2: add definitions for `std::net` support in <https://github.com/rust-lang/libc/pull/3892>
840
841 ### Fixed
842
843 - Correctly handle version checks when `clippy-driver` is used <https://github.com/rust-lang/libc/pull/3893>
844
845 ### Changed
846
847 - EspIdf: change signal constants to c_int in <https://github.com/rust-lang/libc/pull/3895>
848 - HorizonOS: update network definitions in <https://github.com/rust-lang/libc/pull/3863>
849 - Linux: combine `ioctl` APIs in <https://github.com/rust-lang/libc/pull/3722>
850 - WASI: enable CI testing in <https://github.com/rust-lang/libc/pull/3869>
851 - WASIp2: enable CI testing in <https://github.com/rust-lang/libc/pull/3870>
852
853 ## [0.2.158](https://github.com/rust-lang/libc/compare/0.2.157...0.2.158) - 2024-08-19
854
855 ### Other
856 - WASI: fix missing `Iterator` with `rustc-dep-of-std` in <https://github.com/rust-lang/libc/pull/3856#event-13924913068>
857
858 ## [0.2.157](https://github.com/rust-lang/libc/compare/0.2.156...0.2.157) - 2024-08-17
859
860 ### Added
861
862 - Apple: add `_NSGetArgv`, `_NSGetArgc` and `_NSGetProgname` in <https://github.com/rust-lang/libc/pull/3702>
863 - Build: add `RUSTC_WRAPPER` support in <https://github.com/rust-lang/libc/pull/3845>
864 - FreeBSD: add `execvpe` support from 14.1 release in <https://github.com/rust-lang/libc/pull/3745>
865 - Fuchsia: add `SO_BINDTOIFINDEX`
866 - Linux: add `klogctl` in <https://github.com/rust-lang/libc/pull/3777>
867 - MacOS: add `fcntl` OFD commands in <https://github.com/rust-lang/libc/pull/3563>
868 - NetBSD: add `_lwp_park` in <https://github.com/rust-lang/libc/pull/3721>
869 - Solaris: add missing networking support in <https://github.com/rust-lang/libc/pull/3717>
870 - Unix: add `pthread_equal` in <https://github.com/rust-lang/libc/pull/3773>
871 - WASI: add `select`, `FD_SET`, `FD_ZERO`, `FD_ISSET ` in <https://github.com/rust-lang/libc/pull/3681>
872
873 ### Fixed
874 - TEEOS: fix octal notation for `O_*` constants in <https://github.com/rust-lang/libc/pull/3841>
875
876 ### Changed
877 - FreeBSD: always use freebsd12 when `rustc_dep_of_std` is set in <https://github.com/rust-lang/libc/pull/3723>
878
879 ## [0.2.156](https://github.com/rust-lang/libc/compare/v0.2.155...v0.2.156) - 2024-08-15
880
881 ### Added
882 - Apple: add `F_ALLOCATEPERSIST` in <https://github.com/rust-lang/libc/pull/3712>
883 - Apple: add `os_sync_wait_on_address` and related definitions in <https://github.com/rust-lang/libc/pull/3769>
884 - BSD: generalise `IPV6_DONTFRAG` to all BSD targets in <https://github.com/rust-lang/libc/pull/3716>
885 - FreeBSD/DragonFly: add `IP_RECVTTL`/`IPV6_RECVHOPLIMIT` in <https://github.com/rust-lang/libc/pull/3751>
886 - Hurd: add `XATTR_CREATE`, `XATTR_REPLACE` in <https://github.com/rust-lang/libc/pull/3739>
887 - Linux GNU: `confstr` API and `_CS_*` in <https://github.com/rust-lang/libc/pull/3771>
888 - Linux musl: add `preadv2` and `pwritev2` (1.2.5 min.) in <https://github.com/rust-lang/libc/pull/3762>
889 - VxWorks: add the constant `SOMAXCONN` in <https://github.com/rust-lang/libc/pull/3761>
890 - VxWorks: add a few errnoLib related constants in <https://github.com/rust-lang/libc/pull/3780>
891
892 ### Fixed
893 - Solaris/illumos: Change `ifa_flags` type to u64 in <https://github.com/rust-lang/libc/pull/3729>
894 - QNX 7.0: Disable `libregex` in <https://github.com/rust-lang/libc/pull/3775>
895
896 ### Changed
897 - QNX NTO: update platform support in <https://github.com/rust-lang/libc/pull/3815>
898 - `addr_of!(EXTERN_STATIC)` is now considered safe in <https://github.com/rust-lang/libc/pull/3776>
899
900 ### Removed
901 - Apple: remove `rmx_state` in <https://github.com/rust-lang/libc/pull/3776>
902
903 ### Other
904 - Update or remove CI tests that have been failing