POSIX_SPAWN_SETPGROUP et al should be of type `c_short`
Open
Nobody has claimed this yet.
breakage-candidate
C-bug
E-easy
E-medium
- Dominant language
- Rust
- Stars
- 2.6k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 69
Description
The constants POSIX_SPAWN_* are for the __flags field in posix_spawnattr_t and are set via posix_spawnattr_setflags, both of which use c_short.
Should they be of type c_short as well?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in libc/unix/linux_like/linux/mod.rs at the POSIX_SPAWN_* constants and compare their declared type with posix_spawnattr_t.__flags and posix_spawnattr_setflags. Confirm the relevant platform bindings and checks, then consider the issue done when the constants use the type expected by those APIs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100