| 1 |
# Changelog |
| 2 |
|
| 3 |
## [Unreleased] |
| 4 |
|
| 5 |
## [0.2.171](https://github.com/rust-lang/libc/compare/0.2.170...0.2.171) - 2025-03-11 |
| 6 |
|
| 7 |
### Added |
| 8 |
|
| 9 |
- Android: Add `if_nameindex`/`if_freenameindex` support ([#4247](https://github.com/rust-lang/libc/pull/4247)) |
| 10 |
- Apple: Add missing proc types and constants ([#4310](https://github.com/rust-lang/libc/pull/4310)) |
| 11 |
- BSD: Add `devname` ([#4285](https://github.com/rust-lang/libc/pull/4285)) |
| 12 |
- Cygwin: Add PTY and group API ([#4309](https://github.com/rust-lang/libc/pull/4309)) |
| 13 |
- Cygwin: Add support ([#4279](https://github.com/rust-lang/libc/pull/4279)) |
| 14 |
- FreeBSD: Make `spawn.h` interfaces available on all FreeBSD-like systems ([#4294](https://github.com/rust-lang/libc/pull/4294)) |
| 15 |
- Linux: Add `AF_XDP` structs for all Linux environments ([#4163](https://github.com/rust-lang/libc/pull/4163)) |
| 16 |
- Linux: Add SysV semaphore constants ([#4286](https://github.com/rust-lang/libc/pull/4286)) |
| 17 |
- Linux: Add `F_SEAL_EXEC` ([#4316](https://github.com/rust-lang/libc/pull/4316)) |
| 18 |
- Linux: Add `SO_PREFER_BUSY_POLL` and `SO_BUSY_POLL_BUDGET` ([#3917](https://github.com/rust-lang/libc/pull/3917)) |
| 19 |
- Linux: Add `devmem` structs ([#4299](https://github.com/rust-lang/libc/pull/4299)) |
| 20 |
- Linux: Add socket constants up to `SO_DEVMEM_DONTNEED` ([#4299](https://github.com/rust-lang/libc/pull/4299)) |
| 21 |
- NetBSD, OpenBSD, DragonflyBSD: Add `closefrom` ([#4290](https://github.com/rust-lang/libc/pull/4290)) |
| 22 |
- NuttX: Add `pw_passwd` field to `passwd` ([#4222](https://github.com/rust-lang/libc/pull/4222)) |
| 23 |
- Solarish: define `IP_BOUND_IF` and `IPV6_BOUND_IF` ([#4287](https://github.com/rust-lang/libc/pull/4287)) |
| 24 |
- Wali: Add bindings for `wasm32-wali-linux-musl` target ([#4244](https://github.com/rust-lang/libc/pull/4244)) |
| 25 |
|
| 26 |
### Changed |
| 27 |
|
| 28 |
- AIX: Use `sa_sigaction` instead of a union ([#4250](https://github.com/rust-lang/libc/pull/4250)) |
| 29 |
- Make `msqid_ds.__msg_cbytes` public ([#4301](https://github.com/rust-lang/libc/pull/4301)) |
| 30 |
- Unix: Make all `major`, `minor`, `makedev` into `const fn` ([#4208](https://github.com/rust-lang/libc/pull/4208)) |
| 31 |
|
| 32 |
### Deprecated |
| 33 |
|
| 34 |
- Linux: Deprecate obsolete packet filter interfaces ([#4267](https://github.com/rust-lang/libc/pull/4267)) |
| 35 |
|
| 36 |
### Fixed |
| 37 |
|
| 38 |
- Cygwin: Fix strerror_r ([#4308](https://github.com/rust-lang/libc/pull/4308)) |
| 39 |
- Cygwin: Fix usage of f! ([#4308](https://github.com/rust-lang/libc/pull/4308)) |
| 40 |
- Hermit: Make `stat::st_size` signed ([#4298](https://github.com/rust-lang/libc/pull/4298)) |
| 41 |
- Linux: Correct values for `SI_TIMER`, `SI_MESGQ`, `SI_ASYNCIO` ([#4292](https://github.com/rust-lang/libc/pull/4292)) |
| 42 |
- NuttX: Update `tm_zone` and `d_name` fields to use `c_char` type ([#4222](https://github.com/rust-lang/libc/pull/4222)) |
| 43 |
- Xous: Include the prelude to define `c_int` ([#4304](https://github.com/rust-lang/libc/pull/4304)) |
| 44 |
|
| 45 |
### Other |
| 46 |
|
| 47 |
- 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)) |
| 48 |
- CI: Fix "cannot find libc" error on Sparc64 ([#4317](https://github.com/rust-lang/libc/pull/4317)) |
| 49 |
- CI: Fix "cannot find libc" error on s390x ([#4317](https://github.com/rust-lang/libc/pull/4317)) |
| 50 |
- CI: Pass `--no-self-update` to `rustup update` ([#4306](https://github.com/rust-lang/libc/pull/4306)) |
| 51 |
- CI: Remove tests for the `i586-pc-windows-msvc` target ([#4311](https://github.com/rust-lang/libc/pull/4311)) |
| 52 |
- CI: Remove the `check_cfg` job ([#4322](https://github.com/rust-lang/libc/pull/4312)) |
| 53 |
- Change the range syntax that is giving `ctest` problems ([#4311](https://github.com/rust-lang/libc/pull/4311)) |
| 54 |
- Linux: Split out the stat struct for gnu/b32/mips ([#4276](https://github.com/rust-lang/libc/pull/4276)) |
| 55 |
|
| 56 |
### Removed |
| 57 |
|
| 58 |
- NuttX: Remove `pthread_set_name_np` ([#4251](https://github.com/rust-lang/libc/pull/4251)) |
| 59 |
|
| 60 |
## [0.2.170](https://github.com/rust-lang/libc/compare/0.2.169...0.2.170) - 2025-02-23 |
| 61 |
|
| 62 |
### Added |
| 63 |
|
| 64 |
- Android: Declare `setdomainname` and `getdomainname` <https://github.com/rust-lang/libc/pull/4212> |
| 65 |
- FreeBSD: Add `evdev` structures <https://github.com/rust-lang/libc/pull/3756> |
| 66 |
- FreeBSD: Add the new `st_filerev` field to `stat32` ([#4254](https://github.com/rust-lang/libc/pull/4254)) |
| 67 |
- Linux: Add `SI_*`` and `TRAP_*`` signal codes <https://github.com/rust-lang/libc/pull/4225> |
| 68 |
- 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> |
| 69 |
- Linux: Add recent socket timestamping flags <https://github.com/rust-lang/libc/pull/4273> |
| 70 |
- Linux: Added new CANFD_FDF flag for the flags field of canfd_frame <https://github.com/rust-lang/libc/pull/4223> |
| 71 |
- Musl: add CLONE_NEWTIME <https://github.com/rust-lang/libc/pull/4226> |
| 72 |
- Solarish: add the posix_spawn family of functions <https://github.com/rust-lang/libc/pull/4259> |
| 73 |
|
| 74 |
### Deprecated |
| 75 |
|
| 76 |
- Linux: deprecate kernel modules syscalls <https://github.com/rust-lang/libc/pull/4228> |
| 77 |
|
| 78 |
### Changed |
| 79 |
|
| 80 |
- Emscripten: Assume version is at least 3.1.42 <https://github.com/rust-lang/libc/pull/4243> |
| 81 |
|
| 82 |
### Fixed |
| 83 |
|
| 84 |
- BSD: Correct the definition of `WEXITSTATUS` <https://github.com/rust-lang/libc/pull/4213> |
| 85 |
- Hurd: Fix CMSG_DATA on 64bit systems ([#4240](https://github.com/rust-lang/libc/pull/424)) |
| 86 |
- NetBSD: fix `getmntinfo` ([#4265](https://github.com/rust-lang/libc/pull/4265) |
| 87 |
- VxWorks: Fix the size of `time_t` <https://github.com/rust-lang/libc/pull/426> |
| 88 |
|
| 89 |
### Other |
| 90 |
|
| 91 |
- 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> |
| 92 |
- CI: Bump FreeBSD CI to 13.4 and 14.2 <https://github.com/rust-lang/libc/pull/4260> |
| 93 |
- Copy definitions from core::ffi and centralize them <https://github.com/rust-lang/libc/pull/4256> |
| 94 |
- Define c_char at top-level and remove per-target c_char definitions <https://github.com/rust-lang/libc/pull/4202> |
| 95 |
- Port style.rs to syn and add tests for the style checker <https://github.com/rust-lang/libc/pull/4220> |
| 96 |
|
| 97 |
## [0.2.169](https://github.com/rust-lang/libc/compare/0.2.168...0.2.169) - 2024-12-18 |
| 98 |
|
| 99 |
### Added |
| 100 |
|
| 101 |
- FreeBSD: add more socket TCP stack constants <https://github.com/rust-lang/libc/pull/4193> |
| 102 |
- Fuchsia: add a `sockaddr_vm` definition <https://github.com/rust-lang/libc/pull/4194> |
| 103 |
|
| 104 |
### Fixed |
| 105 |
|
| 106 |
**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: |
| 107 |
|
| 108 |
- ESP-IDF: Replace arch-conditional `c_char` with a reexport <https://github.com/rust-lang/libc/pull/4195> |
| 109 |
- Fix `c_char` on various targets <https://github.com/rust-lang/libc/pull/4199> |
| 110 |
- Mirror `c_char` configuration from `rust-lang/rust` <https://github.com/rust-lang/libc/pull/4198> |
| 111 |
|
| 112 |
### Cleanup |
| 113 |
|
| 114 |
- Do not re-export `c_void` in target-specific code <https://github.com/rust-lang/libc/pull/4200> |
| 115 |
|
| 116 |
## [0.2.168](https://github.com/rust-lang/libc/compare/0.2.167...0.2.168) - 2024-12-09 |
| 117 |
|
| 118 |
### Added |
| 119 |
|
| 120 |
- Linux: Add new process flags ([#4174](https://github.com/rust-lang/libc/pull/4174)) |
| 121 |
- Linux: Make `IFA_*` constants available on all Linux targets <https://github.com/rust-lang/libc/pull/4185> |
| 122 |
- Linux: add `MAP_DROPPABLE` <https://github.com/rust-lang/libc/pull/4173> |
| 123 |
- Solaris, Illumos: add `SIGRTMIN` and `SIGRTMAX` <https://github.com/rust-lang/libc/pull/4171> |
| 124 |
- Unix, Linux: adding POSIX `memccpy` and `mempcpy` GNU extension <https://github.com/rust-lang/libc/pull/4186. |
| 125 |
|
| 126 |
### Deprecated |
| 127 |
|
| 128 |
- FreeBSD: Deprecate the CAP_UNUSED* and CAP_ALL* constants ([#4183](https://github.com/rust-lang/libc/pull/4183)) |
| 129 |
|
| 130 |
### Fixed |
| 131 |
|
| 132 |
- Make the `Debug` implementation for unions opaque ([#4176](https://github.com/rust-lang/libc/pull/4176)) |
| 133 |
|
| 134 |
### Other |
| 135 |
|
| 136 |
- Allow the `unpredictable_function_pointer_comparisons` lint where needed <https://github.com/rust-lang/libc/pull/4177> |
| 137 |
- CI: Upload artifacts created by libc-test <https://github.com/rust-lang/libc/pull/4180> |
| 138 |
- CI: Use workflow commands to group output by target <https://github.com/rust-lang/libc/pull/4179> |
| 139 |
- CI: add caching <https://github.com/rust-lang/libc/pull/4183> |
| 140 |
|
| 141 |
## [0.2.167](https://github.com/rust-lang/libc/compare/0.2.166...0.2.167) - 2024-11-28 |
| 142 |
|
| 143 |
### Added |
| 144 |
|
| 145 |
- Solarish: add `st_fstype` to `stat` <https://github.com/rust-lang/libc/pull/4145> |
| 146 |
- Trusty: Add `intptr_t` and `uintptr_t` ([#4161](https://github.com/rust-lang/libc/pull/4161)) |
| 147 |
|
| 148 |
### Fixed |
| 149 |
|
| 150 |
- Fix the build with `rustc-dep-of-std` <https://github.com/rust-lang/libc/pull/4158> |
| 151 |
- Wasi: Add back unsafe block for `clockid_t` static variables ([#4157](https://github.com/rust-lang/libc/pull/4157)) |
| 152 |
|
| 153 |
### Cleanup |
| 154 |
|
| 155 |
- Create an internal prelude <https://github.com/rust-lang/libc/pull/4161> |
| 156 |
- Fix `unused_qualifications`<https://github.com/rust-lang/libc/pull/4132> |
| 157 |
|
| 158 |
### Other |
| 159 |
|
| 160 |
- CI: Check various FreeBSD versions ([#4159](https://github.com/rust-lang/libc/pull/4159)) |
| 161 |
- CI: add a timeout for all jobs <https://github.com/rust-lang/libc/pull/4164> |
| 162 |
- CI: verify MSRV for `wasm32-wasi` <https://github.com/rust-lang/libc/pull/4157> |
| 163 |
- Migrate to the 2021 edition <https://github.com/rust-lang/libc/pull/4132> |
| 164 |
|
| 165 |
### Removed |
| 166 |
|
| 167 |
- Remove one unused import after the edition 2021 bump |
| 168 |
|
| 169 |
## [0.2.166](https://github.com/rust-lang/libc/compare/0.2.165...0.2.166) - 2024-11-26 |
| 170 |
|
| 171 |
### Fixed |
| 172 |
|
| 173 |
This release resolves two cases of unintentional breakage from the previous release: |
| 174 |
|
| 175 |
- Revert removal of array size hacks [#4150](https://github.com/rust-lang/libc/pull/4150) |
| 176 |
- Ensure `const extern` functions are always enabled [#4151](https://github.com/rust-lang/libc/pull/4151) |
| 177 |
|
| 178 |
## [0.2.165](https://github.com/rust-lang/libc/compare/0.2.164...0.2.165) - 2024-11-25 |
| 179 |
|
| 180 |
### Added |
| 181 |
|
| 182 |
- Android: add `mkostemp`, `mkostemps` <https://github.com/rust-lang/libc/pull/3601> |
| 183 |
- Android: add a few API 30 calls <https://github.com/rust-lang/libc/pull/3604> |
| 184 |
- Android: add missing syscall constants <https://github.com/rust-lang/libc/pull/3558> |
| 185 |
- Apple: add `in6_ifreq` <https://github.com/rust-lang/libc/pull/3617> |
| 186 |
- 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))) |
| 187 |
- Freebsd: add `kcmp` call support <https://github.com/rust-lang/libc/pull/3746> |
| 188 |
- Hurd: add `MAP_32BIT` and `MAP_EXCL` <https://github.com/rust-lang/libc/pull/4127> |
| 189 |
- Hurd: add `domainname` field to `utsname` ([#4089](https://github.com/rust-lang/libc/pulls/4089)) |
| 190 |
- Linux GNU: add `f_flags` to struct `statfs` for arm, mips, powerpc and x86 <https://github.com/rust-lang/libc/pull/3663> |
| 191 |
- Linux GNU: add `malloc_stats` <https://github.com/rust-lang/libc/pull/3596> |
| 192 |
- Linux: add ELF relocation-related structs <https://github.com/rust-lang/libc/pull/3583> |
| 193 |
- Linux: add `ptp_*` structs <https://github.com/rust-lang/libc/pull/4113> |
| 194 |
- Linux: add `ptp_clock_caps` <https://github.com/rust-lang/libc/pull/4128> |
| 195 |
- Linux: add `ptp_pin_function` and most `PTP_` constants <https://github.com/rust-lang/libc/pull/4114> |
| 196 |
- Linux: add missing AF_XDP structs & constants <https://github.com/rust-lang/libc/pull/3956> |
| 197 |
- Linux: add missing netfilter consts ([#3734](https://github.com/rust-lang/libc/pulls/3734)) |
| 198 |
- Linux: add struct and constants for the `mount_setattr` syscall <https://github.com/rust-lang/libc/pull/4046> |
| 199 |
- Linux: add wireless API <https://github.com/rust-lang/libc/pull/3441> |
| 200 |
- Linux: expose the `len8_dlc` field of `can_frame` <https://github.com/rust-lang/libc/pull/3357> |
| 201 |
- Musl: add `utmpx` API <https://github.com/rust-lang/libc/pull/3213> |
| 202 |
- Musl: add missing syscall constants <https://github.com/rust-lang/libc/pull/4028> |
| 203 |
- NetBSD: add `mcontext`-related data for RISCV64 <https://github.com/rust-lang/libc/pull/3468> |
| 204 |
- Redox: add new `netinet` constants <https://github.com/rust-lang/libc/pull/3586>) |
| 205 |
- Solarish: add `_POSIX_VDISABLE` ([#4103](https://github.com/rust-lang/libc/pulls/4103)) |
| 206 |
- Tests: Add a test that the `const extern fn` macro works <https://github.com/rust-lang/libc/pull/4134> |
| 207 |
- Tests: Add test of primitive types against `std` <https://github.com/rust-lang/libc/pull/3616> |
| 208 |
- Unix: Add `htonl`, `htons`, `ntohl`, `ntohs` <https://github.com/rust-lang/libc/pull/3669> |
| 209 |
- Unix: add `aligned_alloc` <https://github.com/rust-lang/libc/pull/3843> |
| 210 |
- Windows: add `aligned_realloc` <https://github.com/rust-lang/libc/pull/3592> |
| 211 |
|
| 212 |
### Fixed |
| 213 |
|
| 214 |
- **breaking** Hurd: fix `MAP_HASSEMAPHORE` name ([#4127](https://github.com/rust-lang/libc/pulls/4127)) |
| 215 |
- **breaking** ulibc Mips: fix `SA_*` mismatched types ([#3211](https://github.com/rust-lang/libc/pulls/3211)) |
| 216 |
- Aix: fix an enum FFI safety warning <https://github.com/rust-lang/libc/pull/3644> |
| 217 |
- Haiku: fix some typos ([#3664](https://github.com/rust-lang/libc/pulls/3664)) |
| 218 |
- Tests: fix `Elf{32,64}_Relr`-related tests <https://github.com/rust-lang/libc/pull/3647> |
| 219 |
- Tests: fix libc-tests for `loongarch64-linux-musl` |
| 220 |
- Tests: fix some clippy warnings <https://github.com/rust-lang/libc/pull/3855> |
| 221 |
- Tests: fix tests on `riscv64gc-unknown-freebsd` <https://github.com/rust-lang/libc/pull/4129> |
| 222 |
|
| 223 |
### Deprecated |
| 224 |
|
| 225 |
- Apple: deprecate `iconv_open` <https://github.com/rust-lang/libc/commit/25e022a22eca3634166ef472b748c297e60fcf7f> |
| 226 |
- Apple: deprecate `mach_task_self` <https://github.com/rust-lang/libc/pull/4095> |
| 227 |
- Apple: update `mach` deprecation notices for things that were removed in `main` <https://github.com/rust-lang/libc/pull/4097> |
| 228 |
|
| 229 |
### Cleanup |
| 230 |
|
| 231 |
- Adjust the `f!` macro to be more flexible <https://github.com/rust-lang/libc/pull/4107> |
| 232 |
- Aix: remove duplicate constants <https://github.com/rust-lang/libc/pull/3643> |
| 233 |
- CI: make scripts more uniform <https://github.com/rust-lang/libc/pull/4042> |
| 234 |
- Drop the `libc_align` conditional <https://github.com/rust-lang/libc/commit/b5b553d0ee7de0d4781432a9a9a0a6445dd7f34f> |
| 235 |
- Drop the `libc_cfg_target_vendor` conditional <https://github.com/rust-lang/libc/pull/4060> |
| 236 |
- Drop the `libc_const_size_of` conditional <https://github.com/rust-lang/libc/commit/5a43dd2754366f99b3a83881b30246ce0e51833c> |
| 237 |
- Drop the `libc_core_cvoid` conditional <https://github.com/rust-lang/libc/pull/4060> |
| 238 |
- Drop the `libc_int128` conditional <https://github.com/rust-lang/libc/pull/4060> |
| 239 |
- Drop the `libc_non_exhaustive` conditional <https://github.com/rust-lang/libc/pull/4060> |
| 240 |
- Drop the `libc_packedN` conditional <https://github.com/rust-lang/libc/pull/4060> |
| 241 |
- Drop the `libc_priv_mod_use` conditional <https://github.com/rust-lang/libc/commit/19c59376d11b015009fb9b04f233a30a1bf50a91> |
| 242 |
- Drop the `libc_union` conditional <https://github.com/rust-lang/libc/commit/b9e4d8012f612dfe24147da3e69522763f92b6e3> |
| 243 |
- Drop the `long_array` conditional <https://github.com/rust-lang/libc/pull/4096> |
| 244 |
- Drop the `ptr_addr_of` conditional <https://github.com/rust-lang/libc/pull/4065> |
| 245 |
- Drop warnings about deprecated cargo features <https://github.com/rust-lang/libc/pull/4060> |
| 246 |
- Eliminate uses of `struct_formatter` <https://github.com/rust-lang/libc/pull/4074> |
| 247 |
- Fix a few other array size hacks <https://github.com/rust-lang/libc/commit/d63be8b69b0736753213f5d933767866a5801ee7> |
| 248 |
- Glibc: remove redundant definitions ([#3261](https://github.com/rust-lang/libc/pulls/3261)) |
| 249 |
- Musl: remove redundant definitions ([#3261](https://github.com/rust-lang/libc/pulls/3261)) |
| 250 |
- Musl: unify definitions of `siginfo_t` ([#3261](https://github.com/rust-lang/libc/pulls/3261)) |
| 251 |
- Musl: unify definitions of statfs and statfs64 ([#3261](https://github.com/rust-lang/libc/pulls/3261)) |
| 252 |
- Musl: unify definitions of statvfs and statvfs64 ([#3261](https://github.com/rust-lang/libc/pulls/3261)) |
| 253 |
- Musl: unify statx definitions ([#3978](https://github.com/rust-lang/libc/pulls/3978)) |
| 254 |
- Remove array size hacks for Rust < 1.47 <https://github.com/rust-lang/libc/commit/27ee6fe02ca0848b2af3cd747536264e4c7b697d> |
| 255 |
- Remove repetitive words <https://github.com/rust-lang/libc/commit/77de375891285e18a81616f7dceda6d52732eed6> |
| 256 |
- Use #[derive] for Copy/Clone in s! and friends <https://github.com/rust-lang/libc/pull/4038> |
| 257 |
- Use some tricks to format macro bodies <https://github.com/rust-lang/libc/pull/4107> |
| 258 |
|
| 259 |
### Other |
| 260 |
|
| 261 |
- Apply formatting to macro bodies <https://github.com/rust-lang/libc/pull/4107> |
| 262 |
- Bump libc-test to Rust 2021 Edition <https://github.com/rust-lang/libc/pull/3905> |
| 263 |
- CI: Add a check that semver files don't contain duplicate entries <https://github.com/rust-lang/libc/pull/4087> |
| 264 |
- CI: Add `fanotify_event_info_fid` to FAM-exempt types <https://github.com/rust-lang/libc/pull/4038> |
| 265 |
- CI: Allow rustfmt to organize imports ([#4136](https://github.com/rust-lang/libc/pulls/4136)) |
| 266 |
- CI: Always run rustfmt <https://github.com/rust-lang/libc/pull/4120> |
| 267 |
- CI: Change 32-bit Docker images to use EOL repos <https://github.com/rust-lang/libc/pull/4120> |
| 268 |
- CI: Change 64-bit Docker images to ubuntu:24.10 <https://github.com/rust-lang/libc/pull/4120> |
| 269 |
- CI: Disable the check for >1 s! invocation <https://github.com/rust-lang/libc/pull/4107> |
| 270 |
- CI: Ensure build channels get run even if FILTER is unset <https://github.com/rust-lang/libc/pull/4125> |
| 271 |
- CI: Ensure there is a fallback for no_std <https://github.com/rust-lang/libc/pull/4125> |
| 272 |
- CI: Fix cases where unset variables cause errors <https://github.com/rust-lang/libc/pull/4108> |
| 273 |
- CI: Naming adjustments and cleanup <https://github.com/rust-lang/libc/pull/4124> |
| 274 |
- CI: Only invoke rustup if running in CI <https://github.com/rust-lang/libc/pull/4107> |
| 275 |
- CI: Remove the logic to handle old rust versions <https://github.com/rust-lang/libc/pull/4068> |
| 276 |
- CI: Set -u (error on unset) in all script files <https://github.com/rust-lang/libc/pull/4108> |
| 277 |
- CI: add support for `loongarch64-unknown-linux-musl` <https://github.com/rust-lang/libc/pull/4092> |
| 278 |
- CI: make `aarch64-apple-darwin` not a nightly-only target <https://github.com/rust-lang/libc/pull/4068> |
| 279 |
- CI: run shellcheck on all scripts <https://github.com/rust-lang/libc/pull/4042> |
| 280 |
- CI: update musl headers to Linux 6.6 <https://github.com/rust-lang/libc/pull/3921> |
| 281 |
- CI: use qemu-sparc64 to run sparc64 tests <https://github.com/rust-lang/libc/pull/4133> |
| 282 |
- Drop the `libc_const_extern_fn` conditional <https://github.com/rust-lang/libc/commit/674cc1f47f605038ef1aa2cce8e8bc9dac128276> |
| 283 |
- Drop the `libc_underscore_const_names` conditional <https://github.com/rust-lang/libc/commit/f0febd5e2e50b38e05259d3afad3c9783711bcf0> |
| 284 |
- Explicitly set the edition to 2015 <https://github.com/rust-lang/libc/pull/4058> |
| 285 |
- Introduce a `git-blame-ignore-revs` file <https://github.com/rust-lang/libc/pull/4107> |
| 286 |
- Tests: Ignore fields as required on Ubuntu 24.10 <https://github.com/rust-lang/libc/pull/4120> |
| 287 |
- Tests: skip `ATF_*` constants for OpenBSD <https://github.com/rust-lang/libc/pull/4088> |
| 288 |
- Triagebot: Add an autolabel for CI <https://github.com/rust-lang/libc/pull/4052> |
| 289 |
|
| 290 |
## [0.2.164](https://github.com/rust-lang/libc/compare/0.2.163...0.2.164) - 2024-11-16 |
| 291 |
|
| 292 |
### MSRV |
| 293 |
|
| 294 |
This release increases the MSRV of `libc` to 1.63. |
| 295 |
|
| 296 |
### Other |
| 297 |
|
| 298 |
- CI: remove tests with rust < 1.63 <https://github.com/rust-lang/libc/pull/4051> |
| 299 |
- MSRV: document the MSRV of the stable channel to be 1.63 <https://github.com/rust-lang/libc/pull/4040> |
| 300 |
- MacOS: move ifconf to s_no_extra_traits <https://github.com/rust-lang/libc/pull/4051> |
| 301 |
|
| 302 |
## [0.2.163](https://github.com/rust-lang/libc/compare/0.2.162...0.2.163) - 2024-11-16 |
| 303 |
|
| 304 |
### Added |
| 305 |
|
| 306 |
- Aix: add more `dlopen` flags <https://github.com/rust-lang/libc/pull/4044> |
| 307 |
- Android: add group calls <https://github.com/rust-lang/libc/pull/3499> |
| 308 |
- FreeBSD: add `TCP_FUNCTION_BLK` and `TCP_FUNCTION_ALIAS` <https://github.com/rust-lang/libc/pull/4047> |
| 309 |
- Linux: add `confstr` <https://github.com/rust-lang/libc/pull/3612> |
| 310 |
- Solarish: add `aio` <https://github.com/rust-lang/libc/pull/4033> |
| 311 |
- Solarish: add `arc4random*` <https://github.com/rust-lang/libc/pull/3944> |
| 312 |
|
| 313 |
### Changed |
| 314 |
|
| 315 |
- Emscripten: upgrade emsdk to 3.1.68 <https://github.com/rust-lang/libc/pull/3962> |
| 316 |
- Hurd: use more standard types <https://github.com/rust-lang/libc/pull/3733> |
| 317 |
- Hurd: use the standard `ssize_t = isize` <https://github.com/rust-lang/libc/pull/4029> |
| 318 |
- Solaris: fix `confstr` and `ucontext_t` <https://github.com/rust-lang/libc/pull/4035> |
| 319 |
|
| 320 |
### Other |
| 321 |
|
| 322 |
- CI: add Solaris <https://github.com/rust-lang/libc/pull/4035> |
| 323 |
- CI: add `i686-unknown-freebsd` <https://github.com/rust-lang/libc/pull/3997> |
| 324 |
- CI: ensure that calls to `sort` do not depend on locale <https://github.com/rust-lang/libc/pull/4026> |
| 325 |
- Specify `rust-version` in `Cargo.toml` <https://github.com/rust-lang/libc/pull/4041> |
| 326 |
|
| 327 |
## [0.2.162](https://github.com/rust-lang/libc/compare/0.2.161...0.2.162) - 2024-11-07 |
| 328 |
|
| 329 |
### Added |
| 330 |
|
| 331 |
- Android: fix the alignment of `uc_mcontext` on arm64 <https://github.com/rust-lang/libc/pull/3894> |
| 332 |
- Apple: add `host_cpu_load_info` <https://github.com/rust-lang/libc/pull/3916> |
| 333 |
- ESP-IDF: add a time flag <https://github.com/rust-lang/libc/pull/3993> |
| 334 |
- FreeBSD: add the `CLOSE_RANGE_CLOEXEC` flag<https://github.com/rust-lang/libc/pull/3996> |
| 335 |
- FreeBSD: fix test errors regarding `__gregset_t` <https://github.com/rust-lang/libc/pull/3995> |
| 336 |
- FreeBSD: fix tests on x86 FreeBSD 15 <https://github.com/rust-lang/libc/pull/3948> |
| 337 |
- FreeBSD: make `ucontext_t` and `mcontext_t` available on all architectures <https://github.com/rust-lang/libc/pull/3848> |
| 338 |
- Haiku: add `getentropy` <https://github.com/rust-lang/libc/pull/3991> |
| 339 |
- Illumos: add `syncfs` <https://github.com/rust-lang/libc/pull/3990> |
| 340 |
- Illumos: add some recently-added constants <https://github.com/rust-lang/libc/pull/3999> |
| 341 |
- Linux: add `ioctl` flags <https://github.com/rust-lang/libc/pull/3960> |
| 342 |
- Linux: add epoll busy polling parameters <https://github.com/rust-lang/libc/pull/3922> |
| 343 |
- NuttX: add `pthread_[get/set]name_np` <https://github.com/rust-lang/libc/pull/4003> |
| 344 |
- RTEMS: add `arc4random_buf` <https://github.com/rust-lang/libc/pull/3989> |
| 345 |
- Trusty OS: add initial support <https://github.com/rust-lang/libc/pull/3942> |
| 346 |
- WASIp2: expand socket support <https://github.com/rust-lang/libc/pull/3981> |
| 347 |
|
| 348 |
### Fixed |
| 349 |
|
| 350 |
- Emscripten: don't pass `-lc` <https://github.com/rust-lang/libc/pull/4002> |
| 351 |
- Hurd: change `st_fsid` field to `st_dev` <https://github.com/rust-lang/libc/pull/3785> |
| 352 |
- Hurd: fix the definition of `utsname` <https://github.com/rust-lang/libc/pull/3992> |
| 353 |
- Illumos/Solaris: fix `FNM_CASEFOLD` definition <https://github.com/rust-lang/libc/pull/4004> |
| 354 |
- Solaris: fix all tests <https://github.com/rust-lang/libc/pull/3864> |
| 355 |
|
| 356 |
### Other |
| 357 |
|
| 358 |
- CI: Add loongarch64 <https://github.com/rust-lang/libc/pull/4000> |
| 359 |
- CI: Check that semver files are sorted <https://github.com/rust-lang/libc/pull/4018> |
| 360 |
- CI: Re-enable the FreeBSD 15 job <https://github.com/rust-lang/libc/pull/3988> |
| 361 |
- Clean up imports and `extern crate` usage <https://github.com/rust-lang/libc/pull/3897> |
| 362 |
- Convert `mode_t` constants to octal <https://github.com/rust-lang/libc/pull/3634> |
| 363 |
- Remove the `wasm32-wasi` target that has been deleted upstream <https://github.com/rust-lang/libc/pull/4013> |
| 364 |
|
| 365 |
## [0.2.161](https://github.com/rust-lang/libc/compare/0.2.160...0.2.161) - 2024-10-17 |
| 366 |
|
| 367 |
### Fixed |
| 368 |
|
| 369 |
- OpenBSD: fix `FNM_PATHNAME` and `FNM_NOESCAPE` values <https://github.com/rust-lang/libc/pull/3983> |
| 370 |
|
| 371 |
## [0.2.160](https://github.com/rust-lang/libc/compare/0.2.159...0.2.160) - 2024-10-17 |
| 372 |
|
| 373 |
### Added |
| 374 |
|
| 375 |
- Android: add `PR_GET_NAME` and `PR_SET_NAME` <https://github.com/rust-lang/libc/pull/3941> |
| 376 |
- Apple: add `F_TRANSFEREXTENTS` <https://github.com/rust-lang/libc/pull/3925> |
| 377 |
- Apple: add `mach_error_string` <https://github.com/rust-lang/libc/pull/3913> |
| 378 |
- Apple: add additional `pthread` APIs <https://github.com/rust-lang/libc/pull/3846> |
| 379 |
- Apple: add the `LOCAL_PEERTOKEN` socket option <https://github.com/rust-lang/libc/pull/3929> |
| 380 |
- BSD: add `RTF_*`, `RTA_*`, `RTAX_*`, and `RTM_*` definitions <https://github.com/rust-lang/libc/pull/3714> |
| 381 |
- Emscripten: add `AT_EACCESS` <https://github.com/rust-lang/libc/pull/3911> |
| 382 |
- Emscripten: add `getgrgid`, `getgrnam`, `getgrnam_r` and `getgrgid_r` <https://github.com/rust-lang/libc/pull/3912> |
| 383 |
- Emscripten: add `getpwnam_r` and `getpwuid_r` <https://github.com/rust-lang/libc/pull/3906> |
| 384 |
- FreeBSD: add `POLLRDHUP` <https://github.com/rust-lang/libc/pull/3936> |
| 385 |
- Haiku: add `arc4random` <https://github.com/rust-lang/libc/pull/3945> |
| 386 |
- Illumos: add `ptsname_r` <https://github.com/rust-lang/libc/pull/3867> |
| 387 |
- Linux: add `fanotify` interfaces <https://github.com/rust-lang/libc/pull/3695> |
| 388 |
- Linux: add `tcp_info` <https://github.com/rust-lang/libc/pull/3480> |
| 389 |
- Linux: add additional AF_PACKET options <https://github.com/rust-lang/libc/pull/3540> |
| 390 |
- Linux: make Elf constants always available <https://github.com/rust-lang/libc/pull/3938> |
| 391 |
- Musl x86: add `iopl` and `ioperm` <https://github.com/rust-lang/libc/pull/3720> |
| 392 |
- Musl: add `posix_spawn` chdir functions <https://github.com/rust-lang/libc/pull/3949> |
| 393 |
- Musl: add `utmpx.h` constants <https://github.com/rust-lang/libc/pull/3908> |
| 394 |
- NetBSD: add `sysctlnametomib`, `CLOCK_THREAD_CPUTIME_ID` and `CLOCK_PROCESS_CPUTIME_ID` <https://github.com/rust-lang/libc/pull/3927> |
| 395 |
- Nuttx: initial support <https://github.com/rust-lang/libc/pull/3909> |
| 396 |
- RTEMS: add `getentropy` <https://github.com/rust-lang/libc/pull/3973> |
| 397 |
- RTEMS: initial support <https://github.com/rust-lang/libc/pull/3866> |
| 398 |
- Solarish: add `POLLRDHUP`, `POSIX_FADV_*`, `O_RSYNC`, and `posix_fallocate` <https://github.com/rust-lang/libc/pull/3936> |
| 399 |
- Unix: add `fnmatch.h` <https://github.com/rust-lang/libc/pull/3937> |
| 400 |
- VxWorks: add riscv64 support <https://github.com/rust-lang/libc/pull/3935> |
| 401 |
- VxWorks: update constants related to the scheduler <https://github.com/rust-lang/libc/pull/3963> |
| 402 |
|
| 403 |
### Changed |
| 404 |
|
| 405 |
- Redox: change `ino_t` to be `c_ulonglong` <https://github.com/rust-lang/libc/pull/3919> |
| 406 |
|
| 407 |
### Fixed |
| 408 |
|
| 409 |
- ESP-IDF: fix mismatched constants and structs <https://github.com/rust-lang/libc/pull/3920> |
| 410 |
- FreeBSD: fix `struct stat` on FreeBSD 12+ <https://github.com/rust-lang/libc/pull/3946> |
| 411 |
|
| 412 |
### Other |
| 413 |
|
| 414 |
- CI: Fix CI for FreeBSD 15 <https://github.com/rust-lang/libc/pull/3950> |
| 415 |
- Docs: link to `windows-sys` <https://github.com/rust-lang/libc/pull/3915> |
| 416 |
|
| 417 |
## [0.2.159](https://github.com/rust-lang/libc/compare/0.2.158...0.2.159) - 2024-09-24 |
| 418 |
|
| 419 |
### Added |
| 420 |
|
| 421 |
- Android: add more `AT_*` constants in <https://github.com/rust-lang/libc/pull/3779> |
| 422 |
- Apple: add missing `NOTE_*` constants in <https://github.com/rust-lang/libc/pull/3883> |
| 423 |
- Hermit: add missing error numbers in <https://github.com/rust-lang/libc/pull/3858> |
| 424 |
- Hurd: add `__timeval` for 64-bit support in <https://github.com/rust-lang/libc/pull/3786> |
| 425 |
- Linux: add `epoll_pwait2` in <https://github.com/rust-lang/libc/pull/3868> |
| 426 |
- Linux: add `mq_notify` in <https://github.com/rust-lang/libc/pull/3849> |
| 427 |
- Linux: add missing `NFT_CT_*` constants in <https://github.com/rust-lang/libc/pull/3844> |
| 428 |
- Linux: add the `fchmodat2` syscall in <https://github.com/rust-lang/libc/pull/3588> |
| 429 |
- Linux: add the `mseal` syscall in <https://github.com/rust-lang/libc/pull/3798> |
| 430 |
- OpenBSD: add `sendmmsg` and `recvmmsg` in <https://github.com/rust-lang/libc/pull/3831> |
| 431 |
- Unix: add `IN6ADDR_ANY_INIT` and `IN6ADDR_LOOPBACK_INIT` in <https://github.com/rust-lang/libc/pull/3693> |
| 432 |
- VxWorks: add `S_ISVTX` in <https://github.com/rust-lang/libc/pull/3768> |
| 433 |
- VxWorks: add `vxCpuLib` and `taskLib` functions <https://github.com/rust-lang/libc/pull/3861> |
| 434 |
- WASIp2: add definitions for `std::net` support in <https://github.com/rust-lang/libc/pull/3892> |
| 435 |
|
| 436 |
### Fixed |
| 437 |
|
| 438 |
- Correctly handle version checks when `clippy-driver` is used <https://github.com/rust-lang/libc/pull/3893> |
| 439 |
|
| 440 |
### Changed |
| 441 |
|
| 442 |
- EspIdf: change signal constants to c_int in <https://github.com/rust-lang/libc/pull/3895> |
| 443 |
- HorizonOS: update network definitions in <https://github.com/rust-lang/libc/pull/3863> |
| 444 |
- Linux: combine `ioctl` APIs in <https://github.com/rust-lang/libc/pull/3722> |
| 445 |
- WASI: enable CI testing in <https://github.com/rust-lang/libc/pull/3869> |
| 446 |
- WASIp2: enable CI testing in <https://github.com/rust-lang/libc/pull/3870> |
| 447 |
|
| 448 |
## [0.2.158](https://github.com/rust-lang/libc/compare/0.2.157...0.2.158) - 2024-08-19 |
| 449 |
|
| 450 |
### Other |
| 451 |
- WASI: fix missing `Iterator` with `rustc-dep-of-std` in <https://github.com/rust-lang/libc/pull/3856#event-13924913068> |
| 452 |
|
| 453 |
## [0.2.157](https://github.com/rust-lang/libc/compare/0.2.156...0.2.157) - 2024-08-17 |
| 454 |
|
| 455 |
### Added |
| 456 |
|
| 457 |
- Apple: add `_NSGetArgv`, `_NSGetArgc` and `_NSGetProgname` in <https://github.com/rust-lang/libc/pull/3702> |
| 458 |
- Build: add `RUSTC_WRAPPER` support in <https://github.com/rust-lang/libc/pull/3845> |
| 459 |
- FreeBSD: add `execvpe` support from 14.1 release in <https://github.com/rust-lang/libc/pull/3745> |
| 460 |
- Fuchsia: add `SO_BINDTOIFINDEX` |
| 461 |
- Linux: add `klogctl` in <https://github.com/rust-lang/libc/pull/3777> |
| 462 |
- MacOS: add `fcntl` OFD commands in <https://github.com/rust-lang/libc/pull/3563> |
| 463 |
- NetBSD: add `_lwp_park` in <https://github.com/rust-lang/libc/pull/3721> |
| 464 |
- Solaris: add missing networking support in <https://github.com/rust-lang/libc/pull/3717> |
| 465 |
- Unix: add `pthread_equal` in <https://github.com/rust-lang/libc/pull/3773> |
| 466 |
- WASI: add `select`, `FD_SET`, `FD_ZERO`, `FD_ISSET ` in <https://github.com/rust-lang/libc/pull/3681> |
| 467 |
|
| 468 |
### Fixed |
| 469 |
- TEEOS: fix octal notation for `O_*` constants in <https://github.com/rust-lang/libc/pull/3841> |
| 470 |
|
| 471 |
### Changed |
| 472 |
- FreeBSD: always use freebsd12 when `rustc_dep_of_std` is set in <https://github.com/rust-lang/libc/pull/3723> |
| 473 |
|
| 474 |
## [0.2.156](https://github.com/rust-lang/libc/compare/v0.2.155...v0.2.156) - 2024-08-15 |
| 475 |
|
| 476 |
### Added |
| 477 |
- Apple: add `F_ALLOCATEPERSIST` in <https://github.com/rust-lang/libc/pull/3712> |
| 478 |
- Apple: add `os_sync_wait_on_address` and related definitions in <https://github.com/rust-lang/libc/pull/3769> |
| 479 |
- BSD: generalise `IPV6_DONTFRAG` to all BSD targets in <https://github.com/rust-lang/libc/pull/3716> |
| 480 |
- FreeBSD/DragonFly: add `IP_RECVTTL`/`IPV6_RECVHOPLIMIT` in <https://github.com/rust-lang/libc/pull/3751> |
| 481 |
- Hurd: add `XATTR_CREATE`, `XATTR_REPLACE` in <https://github.com/rust-lang/libc/pull/3739> |
| 482 |
- Linux GNU: `confstr` API and `_CS_*` in <https://github.com/rust-lang/libc/pull/3771> |
| 483 |
- Linux musl: add `preadv2` and `pwritev2` (1.2.5 min.) in <https://github.com/rust-lang/libc/pull/3762> |
| 484 |
- VxWorks: add the constant `SOMAXCONN` in <https://github.com/rust-lang/libc/pull/3761> |
| 485 |
- VxWorks: add a few errnoLib related constants in <https://github.com/rust-lang/libc/pull/3780> |
| 486 |
|
| 487 |
### Fixed |
| 488 |
- Solaris/illumos: Change `ifa_flags` type to u64 in <https://github.com/rust-lang/libc/pull/3729> |
| 489 |
- QNX 7.0: Disable `libregex` in <https://github.com/rust-lang/libc/pull/3775> |
| 490 |
|
| 491 |
### Changed |
| 492 |
- QNX NTO: update platform support in <https://github.com/rust-lang/libc/pull/3815> |
| 493 |
- `addr_of!(EXTERN_STATIC)` is now considered safe in <https://github.com/rust-lang/libc/pull/3776> |
| 494 |
|
| 495 |
### Removed |
| 496 |
- Apple: remove `rmx_state` in <https://github.com/rust-lang/libc/pull/3776> |
| 497 |
|
| 498 |
### Other |
| 499 |
- Update or remove CI tests that have been failing |