This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Signal handler arguments


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]