add es_sysctl for emulation specific sysctls.

This commit is contained in:
christos 2002-03-20 00:26:33 +00:00
parent c5f93c4fac
commit 2aae331e69
1 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec.h,v 1.82 2001/12/08 00:35:32 thorpej Exp $ */ /* $NetBSD: exec.h,v 1.83 2002/03/20 00:26:33 christos Exp $ */
/*- /*-
* Copyright (c) 1994 Christopher G. Demetriou * Copyright (c) 1994 Christopher G. Demetriou
@ -121,12 +121,17 @@ struct execsw {
int es_arglen; /* Extra argument size in words */ int es_arglen; /* Extra argument size in words */
/* Copy arguments on the new stack */ /* Copy arguments on the new stack */
int (*es_copyargs) __P((struct exec_package *, struct ps_strings *, int (*es_copyargs) __P((struct exec_package *, struct ps_strings *,
char **, void *)); char **, void *));
/* Set registers before execution */ /* Set registers before execution */
void (*es_setregs) __P((struct proc *, struct exec_package *, void (*es_setregs) __P((struct proc *, struct exec_package *,
u_long)); u_long));
/* Dump core */
int (*es_coredump) __P((struct proc *, struct vnode *, int (*es_coredump) __P((struct proc *, struct vnode *,
struct ucred *)); 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 */ #define EXECSW_PRIO_ANY 0x000 /* default, no preference */