Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/common rename sysctl_linux() to linux_sysct...



details:   https://anonhg.NetBSD.org/src/rev/549f67c3b6f4
branches:  trunk
changeset: 524946:549f67c3b6f4
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Apr 02 20:23:43 2002 +0000

description:
rename sysctl_linux() to linux_sysctl() and hook it into emul_linux

diffstat:

 sys/compat/linux/common/linux_exec.c   |  5 +++--
 sys/compat/linux/common/linux_exec.h   |  4 ++--
 sys/compat/linux/common/linux_sysctl.c |  6 +++---
 3 files changed, 8 insertions(+), 7 deletions(-)

diffs (71 lines):

diff -r 15c47894accf -r 549f67c3b6f4 sys/compat/linux/common/linux_exec.c
--- a/sys/compat/linux/common/linux_exec.c      Tue Apr 02 20:21:59 2002 +0000
+++ b/sys/compat/linux/common/linux_exec.c      Tue Apr 02 20:23:43 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_exec.c,v 1.57 2002/03/16 20:43:53 christos Exp $ */
+/*     $NetBSD: linux_exec.c,v 1.58 2002/04/02 20:23:43 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 1994, 1995, 1998, 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.57 2002/03/16 20:43:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.58 2002/04/02 20:23:43 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -136,6 +136,7 @@
 #else
        LINUX_SYSCALL_FUNCTION,
 #endif
+       linux_sysctl,
 };
 
 static void
diff -r 15c47894accf -r 549f67c3b6f4 sys/compat/linux/common/linux_exec.h
--- a/sys/compat/linux/common/linux_exec.h      Tue Apr 02 20:21:59 2002 +0000
+++ b/sys/compat/linux/common/linux_exec.h      Tue Apr 02 20:23:43 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_exec.h,v 1.20 2002/03/21 13:23:48 christos Exp $ */
+/*     $NetBSD: linux_exec.h,v 1.21 2002/04/02 20:23:44 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -116,7 +116,7 @@
 __BEGIN_DECLS
 extern const struct emul emul_linux;
 
-int sysctl_linux __P((int *, u_int, void *, size_t *, void *, size_t,
+int linux_sysctl __P((int *, u_int, void *, size_t *, void *, size_t,
     struct proc *));
 void linux_setregs __P((struct proc *, struct exec_package *, u_long));
 int exec_linux_aout_makecmds __P((struct proc *, struct exec_package *));
diff -r 15c47894accf -r 549f67c3b6f4 sys/compat/linux/common/linux_sysctl.c
--- a/sys/compat/linux/common/linux_sysctl.c    Tue Apr 02 20:21:59 2002 +0000
+++ b/sys/compat/linux/common/linux_sysctl.c    Tue Apr 02 20:23:43 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_sysctl.c,v 1.3 2002/03/20 00:27:58 christos Exp $        */
+/*     $NetBSD: linux_sysctl.c,v 1.4 2002/04/02 20:23:44 jdolecek Exp $        */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.3 2002/03/20 00:27:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.4 2002/04/02 20:23:44 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -211,7 +211,7 @@
  * kernel related system variables.
  */
 int
-sysctl_linux(int *name, u_int nlen, void *oldp, size_t *oldlenp,
+linux_sysctl(int *name, u_int nlen, void *oldp, size_t *oldlenp,
     void *newp, size_t newlen, struct proc *p)
 {
        if (nlen != 2 || name[0] != EMUL_LINUX_KERN)



Home | Main Index | Thread Index | Old Index