rust-lang / rust-lang/libc

sa_sigaction does not have type sighandler_t

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

Nobody has claimed this yet.

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

Description

sighandler_t is the type of the callback passed to signal()

it is a function with one argument.

sa_sigaction is a struct field containing a function pointer that takes three arguments.

these are not the same type.

at minimum, this should be noted in the documentation.

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 by locating the Rust libc definitions and documentation for sighandler_t and sa_sigaction. Confirm how each callback type is described, then document that sighandler_t takes one argument while sa_sigaction points to a three-argument function.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.