move emulation-specific sysctl hook from struct execsw to struct emul,

where it belongs
This commit is contained in:
jdolecek 2002-04-02 20:19:59 +00:00
parent 2e327b16be
commit ebd670f0bc
3 changed files with 9 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec_conf.c,v 1.70 2002/03/23 09:50:54 jdolecek Exp $ */
/* $NetBSD: exec_conf.c,v 1.71 2002/04/02 20:19:59 jdolecek Exp $ */
/*
* Copyright (c) 1993, 1994 Christopher G. Demetriou
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: exec_conf.c,v 1.70 2002/03/23 09:50:54 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: exec_conf.c,v 1.71 2002/04/02 20:19:59 jdolecek Exp $");
#include "opt_execfmt.h"
#include "opt_compat_freebsd.h"
@ -325,8 +325,7 @@ const struct execsw execsw_builtin[] = {
LINUX_ELF_AUX_ARGSIZ,
LINUX_COPYARGS_FUNCTION,
NULL,
coredump_elf32,
sysctl_linux },
coredump_elf32 },
#endif
#ifdef COMPAT_IRIX
@ -429,8 +428,7 @@ const struct execsw execsw_builtin[] = {
LINUX_ELF_AUX_ARGSIZ,
linux_elf64_copyargs,
NULL,
coredump_elf64,
sysctl_linux },
coredump_elf64 },
#endif
#ifdef COMPAT_SVR4

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec.h,v 1.85 2002/04/02 20:18:06 jdolecek Exp $ */
/* $NetBSD: exec.h,v 1.86 2002/04/02 20:20:00 jdolecek Exp $ */
/*-
* Copyright (c) 1994 Christopher G. Demetriou
@ -108,10 +108,6 @@ struct execsw {
/* Dump core */
int (*es_coredump) __P((struct proc *, struct vnode *,
struct ucred *));
/* Emulation specific sysctl */
int (*es_sysctl) __P((int *, u_int , void *, size_t *, void *,
size_t, struct proc *p));
};
#define EXECSW_PRIO_ANY 0x000 /* default, no preference */

View File

@ -1,4 +1,4 @@
/* $NetBSD: proc.h,v 1.136 2002/01/11 21:16:27 christos Exp $ */
/* $NetBSD: proc.h,v 1.137 2002/04/02 20:20:00 jdolecek Exp $ */
/*-
* Copyright (c) 1986, 1989, 1991, 1993
@ -121,6 +121,9 @@ struct emul {
#else
void (*e_syscall) __P((void));
#endif
/* Emulation specific sysctl */
int (*e_sysctl) __P((int *, u_int , void *, size_t *,
void *, size_t, struct proc *p));
};
/*