Remove `posix_spawn*` on tvOS and watchOS?

Open
#5,410 6 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@madsmtm is already working on this.

Since Oct 6, 2026.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust

Research direction

Review the context in PR #5158 and Apple's spawn.h annotations for the posix_spawn* symbols on tvOS and watchOS. Check the standard library's current use of these symbols and the required coordination before adding cfg-gating; the work is done when the bindings and standard library agree with the platform availability.

Written by the indexing model from the issue text.

Description

C-bug O-macos

Apple's spawn.h header marks the posix_spawn* symbols as __API_UNAVAILABLE(watchos, tvos), so we probably shouldn't expose them on those platforms.

Currently though, the standard library uses these symbols, so it seems that this is not enforced very strictly? We should ask Apple (I'll file a FB when I get the time), but in any case, the standard library will have to be updated before we can cfg-gate these away.

Split out from https://github.com/rust-lang/libc/pull/5158.

Dominant language
Rust
Stars
2.6k
Forks
1.3k
Avg merge
2d 13h
Merged PRs (30d)
27

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-lang/libc

All issues in rust-lang/libc

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.