diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-27 07:59:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-27 07:59:10 +0000 |
commit | c1d430696800997b89a1f9cd60d0e7895879dcbc (patch) | |
tree | 1dbc10ef3933fb1205aa5abbd8355bfee8618632 /sys | |
parent | f70b9c62db0027472ef8cd9d124975f88b3aef20 (diff) |
native emul is now called "native"
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/alpha/alpha/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/alpha/include/ecoff.h | 4 | ||||
-rw-r--r-- | sys/arch/hp300/dev/hil.c | 4 | ||||
-rw-r--r-- | sys/kern/init_main.c | 8 | ||||
-rw-r--r-- | sys/kern/kern_exec.c | 6 |
5 files changed, 14 insertions, 14 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index c15255c21a0..a5bcdea8398 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1471,7 +1471,7 @@ cpu_exec_ecoff_hook(p, epp, eap) struct ecoff_aouthdr *eap; { struct ecoff_filehdr *efp = epp->ep_hdr; - extern struct emul emul_netbsd; + extern struct emul emul_native; #ifdef COMPAT_OSF1 extern struct emul emul_osf1; #endif @@ -1483,8 +1483,8 @@ cpu_exec_ecoff_hook(p, epp, eap) break; #endif - case ECOFF_MAGIC_NETBSD_ALPHA: - epp->ep_emul = &emul_netbsd; + case ECOFF_MAGIC_NATIVE_ALPHA: + epp->ep_emul = &emul_native; break; default: diff --git a/sys/arch/alpha/include/ecoff.h b/sys/arch/alpha/include/ecoff.h index b8fff03678f..08427556592 100644 --- a/sys/arch/alpha/include/ecoff.h +++ b/sys/arch/alpha/include/ecoff.h @@ -42,10 +42,10 @@ u_long ea_gp_value #define ECOFF_MAGIC_ALPHA 0603 -#define ECOFF_MAGIC_NETBSD_ALPHA 0605 +#define ECOFF_MAGIC_NATIVE_ALPHA 0605 #define ECOFF_BADMAG(ex) \ (ex->ef_magic != ECOFF_MAGIC_ALPHA && \ - ex->ef_magic != ECOFF_MAGIC_NETBSD_ALPHA) + ex->ef_magic != ECOFF_MAGIC_NATIVE_ALPHA) #define ECOFF_SEGMENT_ALIGNMENT(eap) (eap->ea_vstamp < 23 ? 8 : 16) diff --git a/sys/arch/hp300/dev/hil.c b/sys/arch/hp300/dev/hil.c index 3b41473254b..bf93d1eec0a 100644 --- a/sys/arch/hp300/dev/hil.c +++ b/sys/arch/hp300/dev/hil.c @@ -246,7 +246,7 @@ hilclose(dev, flags, mode, p) u_char device = HILUNIT(dev); char mask, lpctrl; int s; - extern struct emul emul_netbsd; + extern struct emul emul_native; #ifdef DEBUG if (hildebug & HDB_FOLLOW) @@ -257,7 +257,7 @@ hilclose(dev, flags, mode, p) if (device && (dptr->hd_flags & HIL_PSEUDO)) return (0); - if (p && p->p_emul == &emul_netbsd) { + if (p && p->p_emul == &emul_native) { /* * If this is the loop device, * free up all queues belonging to this process. diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index a76698e3ffb..797422e29da 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.8 1996/05/07 15:23:35 niklas Exp $ */ +/* $OpenBSD: init_main.c,v 1.9 1996/05/27 07:59:02 deraadt Exp $ */ /* $NetBSD: init_main.c,v 1.84 1996/04/22 01:38:12 christos Exp $ */ /* @@ -124,8 +124,8 @@ extern char sigcode[], esigcode[]; extern char *syscallnames[]; #endif -struct emul emul_netbsd = { - "netbsd", +struct emul emul_native = { + "native", NULL, sendsig, SYS_syscall, @@ -206,7 +206,7 @@ main(framep) p->p_flag = P_INMEM | P_SYSTEM; p->p_stat = SRUN; p->p_nice = NZERO; - p->p_emul = &emul_netbsd; + p->p_emul = &emul_native; bcopy("swapper", p->p_comm, sizeof ("swapper")); /* Create credentials. */ diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 26db4b37d20..ad2541c0ae6 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.3 1996/03/03 17:19:43 niklas Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.4 1996/05/27 07:59:03 deraadt Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -229,7 +229,7 @@ sys_execve(p, v, retval) struct vmspace *vm = p->p_vmspace; char **tmpfap; int szsigcode; - extern struct emul emul_netbsd; + extern struct emul emul_native; /* * figure out the maximum size of an exec header, if necessary. @@ -258,7 +258,7 @@ sys_execve(p, v, retval) pack.ep_vmcmds.evs_cnt = 0; pack.ep_vmcmds.evs_used = 0; pack.ep_vap = &attr; - pack.ep_emul = &emul_netbsd; + pack.ep_emul = &emul_native; pack.ep_flags = 0; /* see if we can run it. */ |