1*498ef96fSrmind /* $NetBSD: linux_trap.c,v 1.8 2009/11/21 05:35:40 rmind Exp $ */
259abdecfSchristos
359abdecfSchristos /*-
459abdecfSchristos * Copyright (c) 2001 The NetBSD Foundation, Inc.
559abdecfSchristos * All rights reserved.
659abdecfSchristos *
759abdecfSchristos * This code is derived from software contributed to The NetBSD Foundation
859abdecfSchristos * by Christos Zoulas.
959abdecfSchristos *
1059abdecfSchristos * Redistribution and use in source and binary forms, with or without
1159abdecfSchristos * modification, are permitted provided that the following conditions
1259abdecfSchristos * are met:
1359abdecfSchristos * 1. Redistributions of source code must retain the above copyright
1459abdecfSchristos * notice, this list of conditions and the following disclaimer.
1559abdecfSchristos * 2. Redistributions in binary form must reproduce the above copyright
1659abdecfSchristos * notice, this list of conditions and the following disclaimer in the
1759abdecfSchristos * documentation and/or other materials provided with the distribution.
1859abdecfSchristos *
1959abdecfSchristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2059abdecfSchristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2159abdecfSchristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2259abdecfSchristos * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2359abdecfSchristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2459abdecfSchristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2559abdecfSchristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2659abdecfSchristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2759abdecfSchristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2859abdecfSchristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2959abdecfSchristos * POSSIBILITY OF SUCH DAMAGE.
3059abdecfSchristos */
3159abdecfSchristos
3210926a71Slukem #include <sys/cdefs.h>
33*498ef96fSrmind __KERNEL_RCSID(0, "$NetBSD: linux_trap.c,v 1.8 2009/11/21 05:35:40 rmind Exp $");
3410926a71Slukem
3559abdecfSchristos #include <sys/param.h>
3659abdecfSchristos #include <sys/systm.h>
3759abdecfSchristos #include <sys/proc.h>
3859abdecfSchristos #include <sys/acct.h>
3959abdecfSchristos #include <sys/kernel.h>
4059abdecfSchristos #include <sys/signal.h>
4159abdecfSchristos #include <sys/syscall.h>
4259abdecfSchristos
4359abdecfSchristos #include <compat/linux/common/linux_exec.h>
4459abdecfSchristos
4559abdecfSchristos void
linux_trapsignal(struct lwp * l,ksiginfo_t * ksi)46b07ec3fcSad linux_trapsignal(struct lwp *l, ksiginfo_t *ksi) {
478d474d5aSskd trapsignal(l, ksi);
4859abdecfSchristos }
49