Updated kernel files to move occurances of "struct args" syscall
argument definitions outside of the function parameter list. This is to reduce the copious warning messages that (non-Jolitz) gcc produces. Also fixed some bogus variable declarations and casts to make the compiler happy.
This commit is contained in:
parent
2fb012f552
commit
01ae5b20df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132
@ -49,7 +49,7 @@
|
|||||||
* 20 Apr 93 Bruce Evans New npx-0.5 code
|
* 20 Apr 93 Bruce Evans New npx-0.5 code
|
||||||
* 25 Apr 93 Bruce Evans New intr-0.1 code
|
* 25 Apr 93 Bruce Evans New intr-0.1 code
|
||||||
*/
|
*/
|
||||||
static char rcsid[] = "$Header: /home/cvs/386BSD/src/sys.386bsd/i386/i386/machdep.c,v 1.1.1.1 93/06/12 14:58:06 rgrimes Exp $";
|
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys.386bsd/i386/i386/machdep.c,v 1.2 1993/06/18 02:47:10 paul Exp $";
|
||||||
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
@ -412,11 +412,14 @@ sendsig(catcher, sig, mask, code)
|
|||||||
* psl to gain improper priviledges or to cause
|
* psl to gain improper priviledges or to cause
|
||||||
* a machine fault.
|
* a machine fault.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
struct sigreturn_args {
|
||||||
|
struct sigcontext *sigcntxp;
|
||||||
|
};
|
||||||
|
|
||||||
sigreturn(p, uap, retval)
|
sigreturn(p, uap, retval)
|
||||||
struct proc *p;
|
struct proc *p;
|
||||||
struct args {
|
struct sigreturn_args *uap;
|
||||||
struct sigcontext *sigcntxp;
|
|
||||||
} *uap;
|
|
||||||
int *retval;
|
int *retval;
|
||||||
{
|
{
|
||||||
register struct sigcontext *scp;
|
register struct sigcontext *scp;
|
||||||
@ -531,7 +534,7 @@ boot(arghowto)
|
|||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
}
|
}
|
||||||
|
|
||||||
int dumpmag = 0x8fca0101; /* magic number for savecore */
|
u_int dumpmag = 0x8fca0101; /* magic number for savecore */
|
||||||
int dumpsize = 0; /* also for savecore */
|
int dumpsize = 0; /* also for savecore */
|
||||||
/*
|
/*
|
||||||
* Doadump comes here after turning off memory management and
|
* Doadump comes here after turning off memory management and
|
||||||
|
@ -52,12 +52,14 @@
|
|||||||
#ifdef TRACE
|
#ifdef TRACE
|
||||||
int nvualarm;
|
int nvualarm;
|
||||||
|
|
||||||
|
struct vtrace_args {
|
||||||
|
int request;
|
||||||
|
int value;
|
||||||
|
};
|
||||||
|
|
||||||
vtrace(p, uap, retval)
|
vtrace(p, uap, retval)
|
||||||
struct proc *p;
|
struct proc *p;
|
||||||
register struct args {
|
register struct vtrace_args *uap;
|
||||||
int request;
|
|
||||||
int value;
|
|
||||||
} *uap;
|
|
||||||
int *retval;
|
int *retval;
|
||||||
{
|
{
|
||||||
int vdoualarm();
|
int vdoualarm();
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
* 20 Apr 93 Bruce Evans New npx-0.5 code
|
* 20 Apr 93 Bruce Evans New npx-0.5 code
|
||||||
* 25 Apr 93 Bruce Evans New intr-0.1 code
|
* 25 Apr 93 Bruce Evans New intr-0.1 code
|
||||||
*/
|
*/
|
||||||
static char rcsid[] = "$Header: /home/cvs/386BSD/src/sys.386bsd/i386/i386/machdep.c,v 1.1.1.1 93/06/12 14:58:06 rgrimes Exp $";
|
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys.386bsd/i386/i386/machdep.c,v 1.2 1993/06/18 02:47:10 paul Exp $";
|
||||||
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
@ -412,11 +412,14 @@ sendsig(catcher, sig, mask, code)
|
|||||||
* psl to gain improper priviledges or to cause
|
* psl to gain improper priviledges or to cause
|
||||||
* a machine fault.
|
* a machine fault.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
struct sigreturn_args {
|
||||||
|
struct sigcontext *sigcntxp;
|
||||||
|
};
|
||||||
|
|
||||||
sigreturn(p, uap, retval)
|
sigreturn(p, uap, retval)
|
||||||
struct proc *p;
|
struct proc *p;
|
||||||
struct args {
|
struct sigreturn_args *uap;
|
||||||
struct sigcontext *sigcntxp;
|
|
||||||
} *uap;
|
|
||||||
int *retval;
|
int *retval;
|
||||||
{
|
{
|
||||||
register struct sigcontext *scp;
|
register struct sigcontext *scp;
|
||||||
@ -531,7 +534,7 @@ boot(arghowto)
|
|||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
}
|
}
|
||||||
|
|
||||||
int dumpmag = 0x8fca0101; /* magic number for savecore */
|
u_int dumpmag = 0x8fca0101; /* magic number for savecore */
|
||||||
int dumpsize = 0; /* also for savecore */
|
int dumpsize = 0; /* also for savecore */
|
||||||
/*
|
/*
|
||||||
* Doadump comes here after turning off memory management and
|
* Doadump comes here after turning off memory management and
|
||||||
|
@ -52,12 +52,14 @@
|
|||||||
#ifdef TRACE
|
#ifdef TRACE
|
||||||
int nvualarm;
|
int nvualarm;
|
||||||
|
|
||||||
|
struct vtrace_args {
|
||||||
|
int request;
|
||||||
|
int value;
|
||||||
|
};
|
||||||
|
|
||||||
vtrace(p, uap, retval)
|
vtrace(p, uap, retval)
|
||||||
struct proc *p;
|
struct proc *p;
|
||||||
register struct args {
|
register struct vtrace_args *uap;
|
||||||
int request;
|
|
||||||
int value;
|
|
||||||
} *uap;
|
|
||||||
int *retval;
|
int *retval;
|
||||||
{
|
{
|
||||||
int vdoualarm();
|
int vdoualarm();
|
||||||
|
Loading…
Reference in New Issue
Block a user