rename sysctl_linux() to linux_sysctl() and hook it into emul_linux
This commit is contained in:
parent
ba1c5e4c6b
commit
ee37f0c738
@ -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 @@ const struct emul emul_linux = {
|
||||
#else
|
||||
LINUX_SYSCALL_FUNCTION,
|
||||
#endif
|
||||
linux_sysctl,
|
||||
};
|
||||
|
||||
static void
|
||||
|
@ -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 *));
|
||||
|
@ -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 @@ linux_kern_sysctl(int *name, u_int nlen, void *oldp, size_t *oldlenp,
|
||||
* 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)
|
||||
|
Loading…
Reference in New Issue
Block a user