Signal handler arguments
Ulrich Drepper
drepper@redhat.com
Tue Sep 17 21:06:00 GMT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ralf Baechle wrote:
> handler(signr, 0, struct sigcontext *)
>
> The rt-signal handlers (setup with SA_SIGINFO) get invoked as:
>
> handler(signr, struct siginfo *, struct ucontext *)
>
> What do applicable standards say about the arguments passed to signal
> handlers?
void (*sa_handler)(int) What to do on receipt of signal.
sigset_t sa_mask Set of signals to be blocked during execution
of the signal handling function.
int sa_flags Special flags.
void (*)(int, siginfo_t *, void *) sa_sigaction
Pointer to signal handler function or one
of the macros SIG_IGN or SIG_DFL.
- --
- ---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE9h/uq2ijCOnn/RHQRAn6SAKCzssVnfBUo6fgiyjWJYOUTb9xSDACgnRhO
uQzkoOoA81hLw6LVvYM5vn4=
=S1W3
-----END PGP SIGNATURE-----
More information about the Libc-hacker
mailing list