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
@ -125,8 +125,13 @@ struct execsw {
/* 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 */