Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sa_sigaction does not have type sighandler_t #3731

Open
lolbinarycat opened this issue Jun 2, 2024 · 0 comments
Open

sa_sigaction does not have type sighandler_t #3731

lolbinarycat opened this issue Jun 2, 2024 · 0 comments
Labels
C-bug Category: bug

Comments

@lolbinarycat
Copy link

lolbinarycat commented Jun 2, 2024

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.

@lolbinarycat lolbinarycat added the C-bug Category: bug label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

1 participant