1# Changelog 2 3## [Unreleased] 4 5## [0.2.161](https://github.com/rust-lang/libc/compare/0.2.160...0.2.161) - 2024-10-17 6 7### Fixed 8 9- OpenBSD: fix `FNM_PATHNAME` and `FNM_NOESCAPE` values <https://github.com/rust-lang/libc/pull/3983> 10 11## [0.2.160](https://github.com/rust-lang/libc/compare/0.2.159...0.2.160) - 2024-10-17 12 13### Added 14 15- Android: add `PR_GET_NAME` and `PR_SET_NAME` <https://github.com/rust-lang/libc/pull/3941> 16- Apple: add `F_TRANSFEREXTENTS` <https://github.com/rust-lang/libc/pull/3925> 17- Apple: add `mach_error_string` <https://github.com/rust-lang/libc/pull/3913> 18- Apple: add additional `pthread` APIs <https://github.com/rust-lang/libc/pull/3846> 19- Apple: add the `LOCAL_PEERTOKEN` socket option <https://github.com/rust-lang/libc/pull/3929> 20- BSD: add `RTF_*`, `RTA_*`, `RTAX_*`, and `RTM_*` definitions <https://github.com/rust-lang/libc/pull/3714> 21- Emscripten: add `AT_EACCESS` <https://github.com/rust-lang/libc/pull/3911> 22- Emscripten: add `getgrgid`, `getgrnam`, `getgrnam_r` and `getgrgid_r` <https://github.com/rust-lang/libc/pull/3912> 23- Emscripten: add `getpwnam_r` and `getpwuid_r` <https://github.com/rust-lang/libc/pull/3906> 24- FreeBSD: add `POLLRDHUP` <https://github.com/rust-lang/libc/pull/3936> 25- Haiku: add `arc4random` <https://github.com/rust-lang/libc/pull/3945> 26- Illumos: add `ptsname_r` <https://github.com/rust-lang/libc/pull/3867> 27- Linux: add `fanotify` interfaces <https://github.com/rust-lang/libc/pull/3695> 28- Linux: add `tcp_info` <https://github.com/rust-lang/libc/pull/3480> 29- Linux: add additional AF_PACKET options <https://github.com/rust-lang/libc/pull/3540> 30- Linux: make Elf constants always available <https://github.com/rust-lang/libc/pull/3938> 31- Musl x86: add `iopl` and `ioperm` <https://github.com/rust-lang/libc/pull/3720> 32- Musl: add `posix_spawn` chdir functions <https://github.com/rust-lang/libc/pull/3949> 33- Musl: add `utmpx.h` constants <https://github.com/rust-lang/libc/pull/3908> 34- NetBSD: add `sysctlnametomib`, `CLOCK_THREAD_CPUTIME_ID` and `CLOCK_PROCESS_CPUTIME_ID` <https://github.com/rust-lang/libc/pull/3927> 35- Nuttx: initial support <https://github.com/rust-lang/libc/pull/3909> 36- RTEMS: add `getentropy` <https://github.com/rust-lang/libc/pull/3973> 37- RTEMS: initial support <https://github.com/rust-lang/libc/pull/3866> 38- Solarish: add `POLLRDHUP`, `POSIX_FADV_*`, `O_RSYNC`, and `posix_fallocate` <https://github.com/rust-lang/libc/pull/3936> 39- Unix: add `fnmatch.h` <https://github.com/rust-lang/libc/pull/3937> 40- VxWorks: add riscv64 support <https://github.com/rust-lang/libc/pull/3935> 41- VxWorks: update constants related to the scheduler <https://github.com/rust-lang/libc/pull/3963> 42 43### Changed 44 45- Redox: change `ino_t` to be `c_ulonglong` <https://github.com/rust-lang/libc/pull/3919> 46 47### Fixed 48 49- ESP-IDF: fix mismatched constants and structs <https://github.com/rust-lang/libc/pull/3920> 50- FreeBSD: fix `struct stat` on FreeBSD 12+ <https://github.com/rust-lang/libc/pull/3946> 51 52### Other 53 54- CI: Fix CI for FreeBSD 15 <https://github.com/rust-lang/libc/pull/3950> 55- Docs: link to `windows-sys` <https://github.com/rust-lang/libc/pull/3915> 56 57## [0.2.159](https://github.com/rust-lang/libc/compare/0.2.158...0.2.159) - 2024-09-24 58 59### Added 60 61- Android: add more `AT_*` constants in <https://github.com/rust-lang/libc/pull/3779> 62- Apple: add missing `NOTE_*` constants in <https://github.com/rust-lang/libc/pull/3883> 63- Hermit: add missing error numbers in <https://github.com/rust-lang/libc/pull/3858> 64- Hurd: add `__timeval` for 64-bit support in <https://github.com/rust-lang/libc/pull/3786> 65- Linux: add `epoll_pwait2` in <https://github.com/rust-lang/libc/pull/3868> 66- Linux: add `mq_notify` in <https://github.com/rust-lang/libc/pull/3849> 67- Linux: add missing `NFT_CT_*` constants in <https://github.com/rust-lang/libc/pull/3844> 68- Linux: add the `fchmodat2` syscall in <https://github.com/rust-lang/libc/pull/3588> 69- Linux: add the `mseal` syscall in <https://github.com/rust-lang/libc/pull/3798> 70- OpenBSD: add `sendmmsg` and `recvmmsg` in <https://github.com/rust-lang/libc/pull/3831> 71- Unix: add `IN6ADDR_ANY_INIT` and `IN6ADDR_LOOPBACK_INIT` in <https://github.com/rust-lang/libc/pull/3693> 72- VxWorks: add `S_ISVTX` in <https://github.com/rust-lang/libc/pull/3768> 73- VxWorks: add `vxCpuLib` and `taskLib` functions <https://github.com/rust-lang/libc/pull/3861> 74- WASIp2: add definitions for `std::net` support in <https://github.com/rust-lang/libc/pull/3892> 75 76### Fixed 77 78- Correctly handle version checks when `clippy-driver` is used <https://github.com/rust-lang/libc/pull/3893> 79 80### Changed 81 82- EspIdf: change signal constants to c_int in <https://github.com/rust-lang/libc/pull/3895> 83- HorizonOS: update network definitions in <https://github.com/rust-lang/libc/pull/3863> 84- Linux: combine `ioctl` APIs in <https://github.com/rust-lang/libc/pull/3722> 85- WASI: enable CI testing in <https://github.com/rust-lang/libc/pull/3869> 86- WASIp2: enable CI testing in <https://github.com/rust-lang/libc/pull/3870> 87 88## [0.2.158](https://github.com/rust-lang/libc/compare/0.2.157...0.2.158) - 2024-08-19 89 90### Other 91- WASI: fix missing `Iterator` with `rustc-dep-of-std` in <https://github.com/rust-lang/libc/pull/3856#event-13924913068> 92 93## [0.2.157](https://github.com/rust-lang/libc/compare/0.2.156...0.2.157) - 2024-08-17 94 95### Added 96 97- Apple: add `_NSGetArgv`, `_NSGetArgc` and `_NSGetProgname` in <https://github.com/rust-lang/libc/pull/3702> 98- Build: add `RUSTC_WRAPPER` support in <https://github.com/rust-lang/libc/pull/3845> 99- FreeBSD: add `execvpe` support from 14.1 release in <https://github.com/rust-lang/libc/pull/3745> 100- Fuchsia: add `SO_BINDTOIFINDEX` 101- Linux: add `klogctl` in <https://github.com/rust-lang/libc/pull/3777> 102- MacOS: add `fcntl` OFD commands in <https://github.com/rust-lang/libc/pull/3563> 103- NetBSD: add `_lwp_park` in <https://github.com/rust-lang/libc/pull/3721> 104- Solaris: add missing networking support in <https://github.com/rust-lang/libc/pull/3717> 105- Unix: add `pthread_equal` in <https://github.com/rust-lang/libc/pull/3773> 106- WASI: add `select`, `FD_SET`, `FD_ZERO`, `FD_ISSET ` in <https://github.com/rust-lang/libc/pull/3681> 107 108### Fixed 109- TEEOS: fix octal notation for `O_*` constants in <https://github.com/rust-lang/libc/pull/3841> 110 111### Changed 112- FreeBSD: always use freebsd12 when `rustc_dep_of_std` is set in <https://github.com/rust-lang/libc/pull/3723> 113 114## [0.2.156](https://github.com/rust-lang/libc/compare/v0.2.155...v0.2.156) - 2024-08-15 115 116### Added 117- Apple: add `F_ALLOCATEPERSIST` in <https://github.com/rust-lang/libc/pull/3712> 118- Apple: add `os_sync_wait_on_address` and related definitions in <https://github.com/rust-lang/libc/pull/3769> 119- BSD: generalise `IPV6_DONTFRAG` to all BSD targets in <https://github.com/rust-lang/libc/pull/3716> 120- FreeBSD/DragonFly: add `IP_RECVTTL`/`IPV6_RECVHOPLIMIT` in <https://github.com/rust-lang/libc/pull/3751> 121- Hurd: add `XATTR_CREATE`, `XATTR_REPLACE` in <https://github.com/rust-lang/libc/pull/3739> 122- Linux GNU: `confstr` API and `_CS_*` in <https://github.com/rust-lang/libc/pull/3771> 123- Linux musl: add `preadv2` and `pwritev2` (1.2.5 min.) in <https://github.com/rust-lang/libc/pull/3762> 124- VxWorks: add the constant `SOMAXCONN` in <https://github.com/rust-lang/libc/pull/3761> 125- VxWorks: add a few errnoLib related constants in <https://github.com/rust-lang/libc/pull/3780> 126 127### Fixed 128- Solaris/illumos: Change `ifa_flags` type to u64 in <https://github.com/rust-lang/libc/pull/3729> 129- QNX 7.0: Disable `libregex` in <https://github.com/rust-lang/libc/pull/3775> 130 131### Changed 132- QNX NTO: update platform support in <https://github.com/rust-lang/libc/pull/3815> 133- `addr_of!(EXTERN_STATIC)` is now considered safe in <https://github.com/rust-lang/libc/pull/3776> 134 135### Removed 136- Apple: remove `rmx_state` in <https://github.com/rust-lang/libc/pull/3776> 137 138### Other 139- Update or remove CI tests that have been failing 140