From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3391 invoked by alias); 18 Sep 2002 04:06:20 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 3375 invoked from network); 18 Sep 2002 04:06:18 -0000 Received: from unknown (HELO myware.akkadia.org) (24.221.190.179) by sources.redhat.com with SMTP; 18 Sep 2002 04:06:18 -0000 Received: from redhat.com (myware.akkadia.org [192.168.7.70]) (authenticated bits=0) by myware.akkadia.org (8.12.5/8.12.5) with ESMTP id g8I462Cn025544; Tue, 17 Sep 2002 21:06:03 -0700 Message-ID: <3D87FBA7.4010907@redhat.com> Date: Tue, 17 Sep 2002 21:06:00 -0000 From: Ulrich Drepper User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020812 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ralf Baechle CC: libc-hacker@sources.redhat.com Subject: Re: Signal handler arguments References: <20020918052025.A23294@linux-mips.org> X-Enigmail-Version: 0.65.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00047.txt.bz2 -----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-----