summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsc <rsc>2006-07-15 17:17:00 +0000
committerrsc <rsc>2006-07-15 17:17:00 +0000
commit67a9314ad1318886ee8b9921ab453f08749cf73e (patch)
tree6854563a0e95abb83c66f19958f6c8325d7e28e9
parent7f419a0d29e0f785dce21b784c4849ae66c790ca (diff)
downloadxv6-labs-67a9314ad1318886ee8b9921ab453f08749cf73e.tar.gz
xv6-labs-67a9314ad1318886ee8b9921ab453f08749cf73e.tar.bz2
xv6-labs-67a9314ad1318886ee8b9921ab453f08749cf73e.zip
Add void for ANSI C
-rw-r--r--syscall.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/syscall.c b/syscall.c
index f5d1c30..0b49ff9 100644
--- a/syscall.c
+++ b/syscall.c
@@ -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;