move sysarch() to sys_machdep.c

This commit is contained in:
deraadt 1993-10-13 09:01:07 +00:00
parent 5387d8cb1b
commit d03d6e0acd
2 changed files with 23 additions and 23 deletions

View File

@ -42,7 +42,7 @@
* @(#)machdep.c 8.1 (Berkeley) 6/11/93
*
* from: Header: machdep.c,v 1.41 93/05/27 04:39:05 torek Exp
* $Id: machdep.c,v 1.4 1993/10/11 10:53:26 deraadt Exp $
* $Id: machdep.c,v 1.5 1993/10/13 09:01:07 deraadt Exp $
*/
#include <sys/param.h>
@ -921,26 +921,6 @@ struct sunos_aout_magic {
return (ENOEXEC);
}
struct sysarch_args {
int op;
char *parms;
};
sysarch(p, uap, retval)
struct proc *p;
register struct sysarch_args *uap;
int *retval;
{
int error = 0;
switch(uap->op) {
default:
error = EINVAL;
break;
}
return(error);
}
int
ptrace_set_pc(p, addr)
struct proc *p;

View File

@ -42,10 +42,9 @@
* @(#)sys_machdep.c 8.1 (Berkeley) 6/11/93
*
* from: Header: sys_machdep.c,v 1.6 92/11/26 03:05:08 torek Exp (LBL)
* $Id: sys_machdep.c,v 1.1 1993/10/02 10:24:28 deraadt Exp $
* $Id: sys_machdep.c,v 1.2 1993/10/13 09:01:12 deraadt Exp $
*/
#ifdef TRACE
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/ioctl.h>
@ -58,6 +57,7 @@
#include <sys/buf.h>
#include <sys/trace.h>
#ifdef TRACE
int nvualarm;
struct vtrace_args {
@ -111,3 +111,23 @@ vdoualarm(arg)
nvualarm--;
}
#endif
struct sysarch_args {
int op;
char *parms;
};
sysarch(p, uap, retval)
struct proc *p;
register struct sysarch_args *uap;
int *retval;
{
int error = 0;
switch(uap->op) {
default:
error = EINVAL;
break;
}
return(error);
}