rust-lang / libc

Raw bindings to platform APIs for Rust
https://docs.rs/libc
Apache License 2.0
2.02k stars 1.01k forks source link

sa_sigaction does not have type sighandler_t #3731

Open lolbinarycat opened 1 month ago

lolbinarycat commented 1 month ago

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.