Add void for ANSI C

This commit is contained in:
rsc 2006-07-15 17:17:00 +00:00
parent 7f419a0d29
commit 67a9314ad1

View file

@ -19,8 +19,6 @@
* Return value? Error indication? Errno?
*/
extern struct spinlock proc_table_lock;
/*
* fetch 32 bits from a user-supplied pointer.
* returns 0 if addr was OK, -1 if illegal.
@ -55,7 +53,7 @@ putint(struct proc *p, unsigned addr, int ip)
}
int
sys_pipe()
sys_pipe(void)
{
struct fd *rfd = 0, *wfd = 0;
int f1 = -1, f2 = -1;
@ -92,7 +90,7 @@ sys_pipe()
}
int
sys_write()
sys_write(void)
{
int fd, n, ret;
unsigned addr;
@ -111,7 +109,7 @@ sys_write()
}
int
sys_read()
sys_read(void)
{
int fd, n, ret;
unsigned addr;
@ -130,7 +128,7 @@ sys_read()
}
int
sys_close()
sys_close(void)
{
int fd;
struct proc *p = curproc[cpu()];
@ -147,7 +145,7 @@ sys_close()
}
int
sys_fork()
sys_fork(void)
{
struct proc *np;
@ -161,14 +159,14 @@ sys_fork()
}
int
sys_exit()
sys_exit(void)
{
proc_exit();
return 0;
}
int
sys_wait()
sys_wait(void)
{
struct proc *p;
struct proc *cp = curproc[cpu()];
@ -199,7 +197,7 @@ sys_wait()
}
int
sys_cons_putc()
sys_cons_putc(void)
{
int c;
@ -234,7 +232,7 @@ sys_block(void)
}
int
sys_kill()
sys_kill(void)
{
int pid;
struct proc *p;
@ -255,7 +253,7 @@ sys_kill()
}
int
sys_panic()
sys_panic(void)
{
struct proc *p = curproc[cpu()];
unsigned int addr;
@ -266,7 +264,7 @@ sys_panic()
}
void
syscall()
syscall(void)
{
struct proc *cp = curproc[cpu()];
int num = cp->tf->tf_regs.reg_eax;