Rename es_check in struct execsw to es_makecmds.

This commit is contained in:
junyoung 2004-02-06 08:02:58 +00:00
parent 4b0e960702
commit 9a410f9ed0
4 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: arm_machdep.c,v 1.7 2003/10/25 19:44:42 scw Exp $ */
/* $NetBSD: arm_machdep.c,v 1.8 2004/02/06 08:02:58 junyoung Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@ -76,7 +76,7 @@
#include <sys/param.h>
__KERNEL_RCSID(0, "$NetBSD: arm_machdep.c,v 1.7 2003/10/25 19:44:42 scw Exp $");
__KERNEL_RCSID(0, "$NetBSD: arm_machdep.c,v 1.8 2004/02/06 08:02:58 junyoung Exp $");
#include <sys/exec.h>
#include <sys/proc.h>
@ -135,7 +135,7 @@ setregs(struct lwp *l, struct exec_package *pack, u_long stack)
#endif
#if defined(COMPAT_15) && defined(EXEC_AOUT)
if (pack->ep_es->es_check == exec_aout_makecmds)
if (pack->ep_es->es_makecmds == exec_aout_makecmds)
l->l_addr->u_pcb.pcb_flags = PCB_NOALIGNFLT;
else
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: ibcs2_exec.c,v 1.58 2003/12/20 19:01:30 fvdl Exp $ */
/* $NetBSD: ibcs2_exec.c,v 1.59 2004/02/06 08:02:58 junyoung Exp $ */
/*
* Copyright (c) 1994, 1995, 1998 Scott Bartram
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec.c,v 1.58 2003/12/20 19:01:30 fvdl Exp $");
__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec.c,v 1.59 2004/02/06 08:02:58 junyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -112,7 +112,7 @@ ibcs2_e_proc_exec(p, epp)
struct proc *p;
struct exec_package *epp;
{
if (epp->ep_es->es_check == exec_ibcs2_xout_makecmds)
if (epp->ep_es->es_makecmds == exec_ibcs2_xout_makecmds)
p->p_emuldata = IBCS2_EXEC_XENIX;
else
p->p_emuldata = IBCS2_EXEC_OTHER;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_exec.c,v 1.181 2004/02/05 22:26:52 christos Exp $ */
/* $NetBSD: kern_exec.c,v 1.182 2004/02/06 08:02:59 junyoung Exp $ */
/*-
* Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.181 2004/02/05 22:26:52 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.182 2004/02/06 08:02:59 junyoung Exp $");
#include "opt_ktrace.h"
#include "opt_syscall_debug.h"
@ -294,12 +294,12 @@ check_exec(struct proc *p, struct exec_package *epp)
int newerror;
epp->ep_esch = execsw[i];
newerror = (*execsw[i]->es_check)(p, epp);
newerror = (*execsw[i]->es_makecmds)(p, epp);
/* make sure the first "interesting" error code is saved. */
if (!newerror || error == ENOEXEC)
error = newerror;
/* if es_check call was successful, update epp->ep_es */
/* if es_makecmds call was successful, update epp->ep_es */
if (!newerror && (epp->ep_flags & EXEC_HASES) == 0)
epp->ep_es = execsw[i];
@ -1062,7 +1062,7 @@ exec_add(struct execsw *esp, const char *e_name)
LIST_FOREACH(it, &ex_head, ex_list) {
/* assume tuple (makecmds, probe_func, emulation) is unique */
if (it->es->es_check == esp->es_check
if (it->es->es_makecmds == esp->es_makecmds
&& it->es->u.elf_probe_func == esp->u.elf_probe_func
&& it->es->es_emul == esp->es_emul) {
error = EEXIST;
@ -1098,7 +1098,7 @@ exec_remove(const struct execsw *esp)
LIST_FOREACH(it, &ex_head, ex_list) {
/* assume tuple (makecmds, probe_func, emulation) is unique */
if (it->es->es_check == esp->es_check
if (it->es->es_makecmds == esp->es_makecmds
&& it->es->u.elf_probe_func == esp->u.elf_probe_func
&& it->es->es_emul == esp->es_emul)
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec.h,v 1.102 2003/12/10 12:06:25 agc Exp $ */
/* $NetBSD: exec.h,v 1.103 2004/02/06 08:02:59 junyoung Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -141,7 +141,7 @@ typedef int (*exec_makecmds_fcn) __P((struct proc *, struct exec_package *));
struct execsw {
u_int es_hdrsz; /* size of header for this format */
exec_makecmds_fcn es_check; /* function to check exec format */
exec_makecmds_fcn es_makecmds; /* function to setup vmcmds */
union { /* probe function */
int (*elf_probe_func) __P((struct proc *,
struct exec_package *, void *, char *, vaddr_t *));