Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pgoyette-compat]: src/sys/compat/netbsd32 Move some extern definitions i...



details:   https://anonhg.NetBSD.org/src/rev/1e7fd3523908
branches:  pgoyette-compat
changeset: 830704:1e7fd3523908
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Sep 14 08:53:22 2018 +0000

description:
Move some extern definitions into netbsd32_netbsd.h rather than having
them in the .c files.

diffstat:

 sys/compat/netbsd32/netbsd32.h        |  13 ++++++++++++-
 sys/compat/netbsd32/netbsd32_module.c |   7 ++-----
 sys/compat/netbsd32/netbsd32_netbsd.c |  11 ++---------
 3 files changed, 16 insertions(+), 15 deletions(-)

diffs (94 lines):

diff -r 09c9dd073e16 -r 1e7fd3523908 sys/compat/netbsd32/netbsd32.h
--- a/sys/compat/netbsd32/netbsd32.h    Fri Sep 14 08:38:37 2018 +0000
+++ b/sys/compat/netbsd32/netbsd32.h    Fri Sep 14 08:53:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32.h,v 1.116.2.5 2018/09/14 08:38:37 pgoyette Exp $      */
+/*     $NetBSD: netbsd32.h,v 1.116.2.6 2018/09/14 08:53:22 pgoyette Exp $      */
 
 /*
  * Copyright (c) 1998, 2001, 2008, 2015 Matthew R. Green
@@ -1167,6 +1167,17 @@
 
 extern void (*vec_netbsd32_sendsig)(const ksiginfo_t *, const sigset_t *);
 
+extern struct sysent netbsd32_sysent[];
+extern const uint32_t netbsd32_sysent_nomodbits[]; 
+#ifdef SYSCALL_DEBUG 
+extern const char * const netbsd32_syscallnames[];
+#endif
+
+extern struct sysctlnode netbsd32_sysctl_root;
+
+extern int (*vec_compat32_80_modctl)(struct lwp *,
+    const struct netbsd32_modctl_args *, register_t *);
+
 /*
  * Finally, declare emul_netbsd32 as this is needed in lots of
  * places when calling syscall_{,dis}establish()
diff -r 09c9dd073e16 -r 1e7fd3523908 sys/compat/netbsd32/netbsd32_module.c
--- a/sys/compat/netbsd32/netbsd32_module.c     Fri Sep 14 08:38:37 2018 +0000
+++ b/sys/compat/netbsd32/netbsd32_module.c     Fri Sep 14 08:53:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_module.c,v 1.6.2.5 2018/09/11 04:53:42 pgoyette Exp $ */
+/*     $NetBSD: netbsd32_module.c,v 1.6.2.6 2018/09/14 08:53:22 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_module.c,v 1.6.2.5 2018/09/11 04:53:42 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_module.c,v 1.6.2.6 2018/09/14 08:53:22 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/dirent.h>
@@ -42,9 +42,6 @@
 #include <compat/netbsd32/netbsd32_syscallargs.h>
 #include <compat/netbsd32/netbsd32_conv.h>
 
-extern int (*vec_compat32_80_modctl)(struct lwp *, 
-    const struct netbsd32_modctl_args *, register_t *);
-
 static int
 modctl32_handle_stat(struct netbsd32_iovec *iov, void *arg)
 {
diff -r 09c9dd073e16 -r 1e7fd3523908 sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c     Fri Sep 14 08:38:37 2018 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c     Fri Sep 14 08:53:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_netbsd.c,v 1.214.2.5 2018/09/12 01:26:40 pgoyette Exp $       */
+/*     $NetBSD: netbsd32_netbsd.c,v 1.214.2.6 2018/09/14 08:53:22 pgoyette Exp $       */
 
 /*
  * Copyright (c) 1998, 2001, 2008 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.214.2.5 2018/09/12 01:26:40 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_netbsd.c,v 1.214.2.6 2018/09/14 08:53:22 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ddb.h"
@@ -89,11 +89,6 @@
 #include <ddb/ddbvar.h>
 #endif
 
-extern struct sysent netbsd32_sysent[];
-extern const uint32_t netbsd32_sysent_nomodbits[];
-#ifdef SYSCALL_DEBUG
-extern const char * const netbsd32_syscallnames[];
-#endif
 #ifdef __HAVE_SYSCALL_INTERN
 void netbsd32_syscall_intern(struct proc *);
 #else
@@ -102,8 +97,6 @@
 
 #define LIMITCHECK(a, b) ((a) != RLIM_INFINITY && (a) > (b))
 
-extern struct sysctlnode netbsd32_sysctl_root;
-
 #ifdef MODULAR
 #include <compat/netbsd32/netbsd32_syscalls_autoload.c>
 #endif



Home | Main Index | Thread Index | Old Index