1b2b3ffcdSSimon Schubert /*- 2b2b3ffcdSSimon Schubert * Copyright (c) 1999 Marcel Moolenaar 3b2b3ffcdSSimon Schubert * All rights reserved. 4b2b3ffcdSSimon Schubert * 5b2b3ffcdSSimon Schubert * Redistribution and use in source and binary forms, with or without 6b2b3ffcdSSimon Schubert * modification, are permitted provided that the following conditions 7b2b3ffcdSSimon Schubert * are met: 8b2b3ffcdSSimon Schubert * 1. Redistributions of source code must retain the above copyright 9b2b3ffcdSSimon Schubert * notice, this list of conditions and the following disclaimer 10b2b3ffcdSSimon Schubert * in this position and unchanged. 11b2b3ffcdSSimon Schubert * 2. Redistributions in binary form must reproduce the above copyright 12b2b3ffcdSSimon Schubert * notice, this list of conditions and the following disclaimer in the 13b2b3ffcdSSimon Schubert * documentation and/or other materials provided with the distribution. 14b2b3ffcdSSimon Schubert * 3. The name of the author may not be used to endorse or promote products 15b2b3ffcdSSimon Schubert * derived from this software without specific prior written permission. 16b2b3ffcdSSimon Schubert * 17b2b3ffcdSSimon Schubert * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18b2b3ffcdSSimon Schubert * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19b2b3ffcdSSimon Schubert * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20b2b3ffcdSSimon Schubert * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21b2b3ffcdSSimon Schubert * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22b2b3ffcdSSimon Schubert * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23b2b3ffcdSSimon Schubert * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24b2b3ffcdSSimon Schubert * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25b2b3ffcdSSimon Schubert * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26b2b3ffcdSSimon Schubert * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27b2b3ffcdSSimon Schubert * 28b2b3ffcdSSimon Schubert * $FreeBSD: src/sys/i386/include/sigframe.h,v 1.5 1999/12/04 10:40:24 marcel Exp $ 29b2b3ffcdSSimon Schubert */ 30b2b3ffcdSSimon Schubert 31b2b3ffcdSSimon Schubert #ifndef _CPU_SIGFRAME_H_ 32b2b3ffcdSSimon Schubert #define _CPU_SIGFRAME_H_ 33b2b3ffcdSSimon Schubert 34c0b79d00SSascha Wildner #include <sys/_siginfo.h> 35c0b79d00SSascha Wildner #include <sys/signal.h> 36*38c3a22eSSascha Wildner #include <sys/_ucontext.h> 37c0b79d00SSascha Wildner 38b2b3ffcdSSimon Schubert /* 39b2b3ffcdSSimon Schubert * Signal frames, arguments passed to application signal handlers. 40b2b3ffcdSSimon Schubert * 41b2b3ffcdSSimon Schubert * Arguments are in registers, so we do not have to make room in the 42b2b3ffcdSSimon Schubert * sigframe for them. 43b2b3ffcdSSimon Schubert */ 44b2b3ffcdSSimon Schubert struct sigframe { 45b2b3ffcdSSimon Schubert union { 46b2b3ffcdSSimon Schubert __siginfohandler_t *sf_action; 47b2b3ffcdSSimon Schubert __sighandler_t *sf_handler; 48b2b3ffcdSSimon Schubert } sf_ahu; 49b2b3ffcdSSimon Schubert ucontext_t sf_uc; /* = *sf_ucontext */ 50b2b3ffcdSSimon Schubert siginfo_t sf_si; /* = *sf_siginfo (SA_SIGINFO case) */ 51b2b3ffcdSSimon Schubert }; 52b2b3ffcdSSimon Schubert 53b2b3ffcdSSimon Schubert #endif /* !_CPU_SIGFRAME_H_ */ 54