sa_sigaction does not have type sighandler_t
Open
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
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 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