1*b85955d8Schristos /* $NetBSD: compat_16_machdep.c,v 1.5 2014/12/14 21:27:49 christos Exp $ */
2*b85955d8Schristos
3*b85955d8Schristos /*-
4*b85955d8Schristos * Copyright (c) 2014 The NetBSD Foundation, Inc.
5*b85955d8Schristos * All rights reserved.
6*b85955d8Schristos *
7*b85955d8Schristos * This code is derived from software contributed to The NetBSD Foundation
8*b85955d8Schristos * by Christos Zoulas.
9*b85955d8Schristos *
10*b85955d8Schristos * Redistribution and use in source and binary forms, with or without
11*b85955d8Schristos * modification, are permitted provided that the following conditions
12*b85955d8Schristos * are met:
13*b85955d8Schristos * 1. Redistributions of source code must retain the above copyright
14*b85955d8Schristos * notice, this list of conditions and the following disclaimer.
15*b85955d8Schristos * 2. Redistributions in binary form must reproduce the above copyright
16*b85955d8Schristos * notice, this list of conditions and the following disclaimer in the
17*b85955d8Schristos * documentation and/or other materials provided with the distribution.
18*b85955d8Schristos *
19*b85955d8Schristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20*b85955d8Schristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21*b85955d8Schristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22*b85955d8Schristos * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23*b85955d8Schristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24*b85955d8Schristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25*b85955d8Schristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26*b85955d8Schristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27*b85955d8Schristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28*b85955d8Schristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29*b85955d8Schristos * POSSIBILITY OF SUCH DAMAGE.
30*b85955d8Schristos */
31*b85955d8Schristos #include <sys/cdefs.h>
32*b85955d8Schristos __KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.5 2014/12/14 21:27:49 christos Exp $");
33*b85955d8Schristos
34*b85955d8Schristos #ifdef _KERNEL_OPT
35*b85955d8Schristos #include "opt_compat_netbsd.h"
36*b85955d8Schristos #endif
37*b85955d8Schristos
38*b85955d8Schristos #include <sys/param.h>
39*b85955d8Schristos #include <sys/systm.h>
40*b85955d8Schristos #include <sys/signalvar.h>
41*b85955d8Schristos #include <sys/kernel.h>
42*b85955d8Schristos #include <sys/proc.h>
43*b85955d8Schristos #include <sys/mount.h>
44*b85955d8Schristos #include <sys/syscallargs.h>
45*b85955d8Schristos
46*b85955d8Schristos #include <compat/sys/signal.h>
47*b85955d8Schristos #include <compat/sys/signalvar.h>
48*b85955d8Schristos
49*b85955d8Schristos #ifdef COMPAT_16
50*b85955d8Schristos
51*b85955d8Schristos int compat_16_sys___sigreturn14(struct lwp *, const struct compat_16_sys___sigreturn14_args *, register_t *);
52*b85955d8Schristos
53*b85955d8Schristos /*
54*b85955d8Schristos * There is no NetBSD-1.6 compatibility for native code.
55*b85955d8Schristos * COMPAT_16 is useful for i386 emulation (COMPAT_NETBSD32) only.
56*b85955d8Schristos */
57*b85955d8Schristos int
compat_16_sys___sigreturn14(struct lwp * l,const struct compat_16_sys___sigreturn14_args * uap,register_t * retval)58*b85955d8Schristos compat_16_sys___sigreturn14(struct lwp *l, const struct compat_16_sys___sigreturn14_args *uap, register_t *retval)
59*b85955d8Schristos {
60*b85955d8Schristos
61*b85955d8Schristos return ENOSYS;
62*b85955d8Schristos }
63*b85955d8Schristos #endif
64