# What changed in libc

> 20 changes in libc 0.2 from its official release notes, upgrade guides and advisories: 1 deprecations, 13 new APIs and options. Each one cited. Sources checked 2026-11-12. HTML: https://unstale.sh/cargo/libc/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## libc 0.2

### Deprecations

- Restores NOTE_PCTRLMASK on FreeBSD with a deprecation warning. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)

### New APIs and options

- Adds Haiku AI_* constants from netdb.h. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Adds AT_SYMLINK_NOFOLLOW on NuttX. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Adds the Apple constant F_GETNOSIGPIPE. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Adds the Apple constant F_SETNOSIGPIPE. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Adds the Apple ifaliasreq type. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Adds the Apple in6_aliasreq type. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Adds isatty on QuRT. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Adds Haiku NI_* constants from netdb.h. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Adds Hurd POSIX_SPAWN_* flags. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Adds FreeBSD PT_* constants. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Adds pthread_condattr_getclock on WASI. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Adds pthread_condattr_setclock on WASI. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Adds sensordev on OpenBSD. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)

### Tooling

- Support Emscripten v4.0.12 to v6.0.11. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)

### Fixes and other changes

- Fixes fpregs on FreeBSD-aarch64. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Fixes gpregs on FreeBSD-aarch64. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Mach API is available on non-MacOS Apple targets again, resolving some issues building ecosystem crates. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Makes prop_info an extern type on Android. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
- Restores c_ulong as the type of statvfs.f_fsid on AIX. (0.2.191) — [release notes](https://github.com/rust-lang/libc/releases/tag/0.2.191)
