* 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.
}
int
-sys_pipe()
+sys_pipe(void)
{
struct fd *rfd = 0, *wfd = 0;
int f1 = -1, f2 = -1;
}
int
-sys_write()
+sys_write(void)
{
int fd, n, ret;
unsigned addr;
}
int
-sys_read()
+sys_read(void)
{
int fd, n, ret;
unsigned addr;
}
int
-sys_close()
+sys_close(void)
{
int fd;
struct proc *p = curproc[cpu()];
}
int
-sys_fork()
+sys_fork(void)
{
struct proc *np;
}
int
-sys_exit()
+sys_exit(void)
{
proc_exit();
return 0;
}
int
-sys_wait()
+sys_wait(void)
{
struct proc *p;
struct proc *cp = curproc[cpu()];
}
int
-sys_cons_putc()
+sys_cons_putc(void)
{
int c;
}
int
-sys_kill()
+sys_kill(void)
{
int pid;
struct proc *p;
}
int
-sys_panic()
+sys_panic(void)
{
struct proc *p = curproc[cpu()];
unsigned int addr;
}
void
-syscall()
+syscall(void)
{
struct proc *cp = curproc[cpu()];
int num = cp->tf->tf_regs.reg_eax;