Source-Changes-HG archive

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

[src/pgoyette-compat]: src/sys/compat/common Put declaration of the 5.0 sysct...



details:   https://anonhg.NetBSD.org/src/rev/c777f513e141
branches:  pgoyette-compat
changeset: 360103:c777f513e141
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Mar 10 02:20:13 2018 +0000

description:
Put declaration of the 5.0 sysctl routine in a header file

diffstat:

 sys/compat/common/sysv_ipc_50.c |  8 ++------
 sys/compat/common/sysv_mod.c    |  8 ++------
 sys/compat/common/sysv_mod.h    |  4 +++-
 3 files changed, 7 insertions(+), 13 deletions(-)

diffs (85 lines):

diff -r 1a53dfe75503 -r c777f513e141 sys/compat/common/sysv_ipc_50.c
--- a/sys/compat/common/sysv_ipc_50.c   Sat Mar 10 02:18:56 2018 +0000
+++ b/sys/compat/common/sysv_ipc_50.c   Sat Mar 10 02:20:13 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysv_ipc_50.c,v 1.4 2015/12/03 00:28:55 pgoyette Exp $ */
+/*     $NetBSD: sysv_ipc_50.c,v 1.4.16.1 2018/03/10 02:20:13 pgoyette Exp $    */
 
 /*-
  * Copyright (c) 1998, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysv_ipc_50.c,v 1.4 2015/12/03 00:28:55 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysv_ipc_50.c,v 1.4.16.1 2018/03/10 02:20:13 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sysv.h"
@@ -58,7 +58,6 @@
 #include <sys/sysctl.h>
 #include <sys/kauth.h>
 
-#ifdef COMPAT_50
 #include <compat/sys/ipc.h>
 #ifdef SYSVMSG
 #include <compat/sys/msg.h>
@@ -74,8 +73,6 @@
  * Check for ipc permission
  */
 
-int sysctl_kern_sysvipc50(SYSCTLFN_PROTO);
-
 int
 sysctl_kern_sysvipc50(SYSCTLFN_ARGS)
 {
@@ -215,4 +212,3 @@
                free(bf, M_TEMP);
        return error;
 }
-#endif /* COMPAT_50 */
diff -r 1a53dfe75503 -r c777f513e141 sys/compat/common/sysv_mod.c
--- a/sys/compat/common/sysv_mod.c      Sat Mar 10 02:18:56 2018 +0000
+++ b/sys/compat/common/sysv_mod.c      Sat Mar 10 02:20:13 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysv_mod.c,v 1.1.2.6 2018/03/09 09:37:01 pgoyette Exp $        */
+/*     $NetBSD: sysv_mod.c,v 1.1.2.7 2018/03/10 02:20:13 pgoyette Exp $        */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysv_mod.c,v 1.1.2.6 2018/03/09 09:37:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysv_mod.c,v 1.1.2.7 2018/03/10 02:20:13 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -46,10 +46,6 @@
 
 #include <compat/common/sysv_mod.h>
 
-#ifdef COMPAT_50
-int sysctl_kern_sysvipc50(SYSCTLFN_PROTO);
-#endif
-
 MODULE(MODULE_CLASS_EXEC, compat_sysv, "sysv_ipc");
 
 /* Build the syscall package based on options specified */
diff -r 1a53dfe75503 -r c777f513e141 sys/compat/common/sysv_mod.h
--- a/sys/compat/common/sysv_mod.h      Sat Mar 10 02:18:56 2018 +0000
+++ b/sys/compat/common/sysv_mod.h      Sat Mar 10 02:20:13 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysv_mod.h,v 1.1.2.2 2018/03/09 10:41:05 pgoyette Exp $        */
+/*     $NetBSD: sysv_mod.h,v 1.1.2.3 2018/03/10 02:20:13 pgoyette Exp $        */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -36,4 +36,6 @@
 
 extern int (*vec_sysvipc50_sysctl)(SYSCTLFN_PROTO);
 
+int sysctl_kern_sysvipc50(SYSCTLFN_PROTO);
+
 #endif /* _COMPAT_COMMON_SYSV_IPC_MOD_H_ */



Home | Main Index | Thread Index | Old Index