rust-lang / rust-lang/libc

Remove `posix_spawn*` on tvOS and watchOS?

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

Nobody has claimed this yet.

C-bug O-macos
Dominant language
Rust
Stars
2.6k
Forks
1.3k
Avg merge
1d 22h
Merged PRs (30d)
69

Description

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.

Contributor guide

Open the contributing guide

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.