rust-lang / rust-lang/libc

Please add support for posix_spawn_file_actions_chdir and posix_spawn_file_actions_fchdir

Open
#3,958 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

  • POSIX.1-2024 includes these

  • linux gnu, musl, bionic have implementations, using the _np suffix

  • freebsd uses _np suffix, netbsd implements with no suffix AFAICT

  • seems like macos implements with the _np suffix (but not necessarily iOS?)

  • haiku does implement with _np suffix

  • Not sure about other implementations that might exist. seems like openbsd does not implement it.

  • posix docs

  • gnu docs

  • freebsd docs

  • netbsd docs

  • MacOS XNU spawn.h

  • Haiku gnu-compat spawn.h

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

Start with the POSIX.1-2024 documentation and the linked GNU, FreeBSD, NetBSD, macOS, and Haiku spawn headers. Inspect existing bindings for posix_spawn_file_actions and compare platform-specific names, including the _np variants. Done means the supported chdir and fchdir actions are represented accurately for each implementation, with unsupported platforms handled correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, rust
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.