rust-lang / rust-lang/libc

POSIX_SPAWN_SETPGROUP et al should be of type `c_short`

Open
#2,268 1 comment 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.