Sun Jul 30 05:10:48 2023 UTC ()
netbsd32_netbsd: Sort headers. No binary changes.


(rin)
diff -r1.233 -r1.234 src/sys/compat/netbsd32/netbsd32_netbsd.c

cvs diff -r1.233 -r1.234 src/sys/compat/netbsd32/netbsd32_netbsd.c (expand / switch to unified diff)

--- src/sys/compat/netbsd32/netbsd32_netbsd.c 2021/09/20 01:07:45 1.233
+++ src/sys/compat/netbsd32/netbsd32_netbsd.c 2023/07/30 05:10:47 1.234
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: netbsd32_netbsd.c,v 1.233 2021/09/20 01:07:45 thorpej Exp $ */ 1/* $NetBSD: netbsd32_netbsd.c,v 1.234 2023/07/30 05:10:47 rin Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1998, 2001, 2008, 2018 Matthew R. Green 4 * Copyright (c) 1998, 2001, 2008, 2018 Matthew R. Green
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -17,27 +17,27 @@ @@ -17,27 +17,27 @@
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE. 26 * SUCH DAMAGE.
27 */ 27 */
28 28
29#include <sys/cdefs.h> 29#include <sys/cdefs.h>
30__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.233 2021/09/20 01:07:45 thorpej Exp $"); 30__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.234 2023/07/30 05:10:47 rin Exp $");
31 31
32/* 32/*
33 * below are all the standard NetBSD system calls, in the 32bit 33 * below are all the standard NetBSD system calls, in the 32bit
34 * environment, with the necessary conversions to 64bit before calling 34 * environment, with the necessary conversions to 64bit before calling
35 * the real syscall. anything that needs special attention is handled 35 * the real syscall. anything that needs special attention is handled
36 * elsewhere - this file should only contain structure assignment and 36 * elsewhere - this file should only contain structure assignment and
37 * calls to the original function. 37 * calls to the original function.
38 */ 38 */
39 39
40/* 40/*
41 * below are all the standard NetBSD system calls, in the 32bit 41 * below are all the standard NetBSD system calls, in the 32bit
42 * environment, with the necessary conversions to 64bit before calling 42 * environment, with the necessary conversions to 64bit before calling
43 * the real syscall. anything that needs special attention is handled 43 * the real syscall. anything that needs special attention is handled
@@ -47,65 +47,64 @@ __KERNEL_RCSID(0, "$NetBSD: netbsd32_net @@ -47,65 +47,64 @@ __KERNEL_RCSID(0, "$NetBSD: netbsd32_net
47 47
48#if defined(_KERNEL_OPT) 48#if defined(_KERNEL_OPT)
49#include "opt_compat_43.h" 49#include "opt_compat_43.h"
50#include "opt_compat_netbsd.h" 50#include "opt_compat_netbsd.h"
51#include "opt_ddb.h" 51#include "opt_ddb.h"
52#include "opt_ktrace.h" 52#include "opt_ktrace.h"
53#include "opt_ntp.h" 53#include "opt_ntp.h"
54#include "opt_quota.h" 54#include "opt_quota.h"
55#include "opt_syscall_debug.h" 55#include "opt_syscall_debug.h"
56#include "opt_sysv.h" 56#include "opt_sysv.h"
57#endif 57#endif
58 58
59#include <sys/param.h> 59#include <sys/param.h>
60#include <sys/systm.h> 60#include <sys/acct.h>
 61#include <sys/dirent.h>
 62#include <sys/exec.h>
 63#include <sys/file.h>
 64#include <sys/filedesc.h>
61#include <sys/kernel.h> 65#include <sys/kernel.h>
 66#include <sys/ktrace.h>
 67#include <sys/mbuf.h>
 68#include <sys/mman.h>
62#include <sys/mount.h> 69#include <sys/mount.h>
 70#include <sys/namei.h>
 71#include <sys/pool.h>
 72#include <sys/proc.h>
 73#include <sys/ptrace.h>
 74#include <sys/quotactl.h>
 75#include <sys/resourcevar.h>
 76#include <sys/signalvar.h>
63#include <sys/socket.h> 77#include <sys/socket.h>
64#include <sys/sockio.h> 
65#include <sys/socketvar.h> 78#include <sys/socketvar.h>
66#include <sys/mbuf.h> 79#include <sys/sockio.h>
67#include <sys/mman.h> 
68#include <sys/stat.h> 80#include <sys/stat.h>
69#include <sys/swap.h> 81#include <sys/swap.h>
 82#include <sys/syscallargs.h>
 83#include <sys/systm.h>
70#include <sys/time.h> 84#include <sys/time.h>
71#include <sys/signalvar.h> 
72#include <sys/ptrace.h> 
73#include <sys/ktrace.h> 
74#include <sys/trace.h> 85#include <sys/trace.h>
75#include <sys/resourcevar.h> 
76#include <sys/pool.h> 
77#include <sys/file.h> 
78#include <sys/filedesc.h> 
79#include <sys/namei.h> 
80#include <sys/dirent.h> 
81#include <sys/quotactl.h> 
82#include <sys/vfs_syscalls.h> 86#include <sys/vfs_syscalls.h>
83 87
84#include <uvm/uvm_extern.h> 88#include <uvm/uvm_extern.h>
85#include <uvm/uvm_swap.h> 89#include <uvm/uvm_swap.h>
86 90
87#include <sys/syscallargs.h> 
88#include <sys/proc.h> 
89#include <sys/acct.h> 
90#include <sys/exec.h> 
91 
92#include <net/if.h> 91#include <net/if.h>
93 92
94#include <compat/netbsd32/netbsd32.h> 93#include <compat/netbsd32/netbsd32.h>
 94#include <compat/netbsd32/netbsd32_conv.h>
95#include <compat/netbsd32/netbsd32_exec.h> 95#include <compat/netbsd32/netbsd32_exec.h>
96#include <compat/netbsd32/netbsd32_syscall.h> 96#include <compat/netbsd32/netbsd32_syscall.h>
97#include <compat/netbsd32/netbsd32_syscallargs.h> 97#include <compat/netbsd32/netbsd32_syscallargs.h>
98#include <compat/netbsd32/netbsd32_conv.h> 
99 98
100#include <compat/sys/mman.h> 99#include <compat/sys/mman.h>
101 100
102#if defined(DDB) 101#if defined(DDB)
103#include <ddb/ddbvar.h> 102#include <ddb/ddbvar.h>
104#endif 103#endif
105 104
106#ifdef __HAVE_SYSCALL_INTERN 105#ifdef __HAVE_SYSCALL_INTERN
107void netbsd32_syscall_intern(struct proc *); 106void netbsd32_syscall_intern(struct proc *);
108#else 107#else
109void syscall(void); 108void syscall(void);
110#endif 109#endif
111 110