missing void
This commit is contained in:
parent
61dff66b35
commit
c664dd5d23
3 changed files with 13 additions and 13 deletions
|
@ -323,7 +323,7 @@ struct spinlock kbd_lock;
|
||||||
static uint shift;
|
static uint shift;
|
||||||
|
|
||||||
void
|
void
|
||||||
kbd_intr()
|
kbd_intr(void)
|
||||||
{
|
{
|
||||||
uint st, data, c;
|
uint st, data, c;
|
||||||
|
|
||||||
|
@ -418,7 +418,7 @@ console_read(int minor, char *dst, int n)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
console_init()
|
console_init(void)
|
||||||
{
|
{
|
||||||
initlock(&console_lock, "console");
|
initlock(&console_lock, "console");
|
||||||
initlock(&kbd_lock, "kbd");
|
initlock(&kbd_lock, "kbd");
|
||||||
|
|
2
main.c
2
main.c
|
@ -116,7 +116,7 @@ mpmain(void)
|
||||||
|
|
||||||
// proc[0] starts here, called by scheduler() in the ordinary way.
|
// proc[0] starts here, called by scheduler() in the ordinary way.
|
||||||
void
|
void
|
||||||
process0()
|
process0(void)
|
||||||
{
|
{
|
||||||
struct proc *p0 = &proc[0];
|
struct proc *p0 = &proc[0];
|
||||||
struct proc *p1;
|
struct proc *p1;
|
||||||
|
|
20
usertests.c
20
usertests.c
|
@ -350,7 +350,7 @@ mem(void)
|
||||||
// two processes write to the same file descriptor
|
// two processes write to the same file descriptor
|
||||||
// is the offset shared? does inode locking work?
|
// is the offset shared? does inode locking work?
|
||||||
void
|
void
|
||||||
sharedfd()
|
sharedfd(void)
|
||||||
{
|
{
|
||||||
int fd, pid, i, n, nc, np;
|
int fd, pid, i, n, nc, np;
|
||||||
char buf[10];
|
char buf[10];
|
||||||
|
@ -399,7 +399,7 @@ sharedfd()
|
||||||
// two processes write two different files at the same
|
// two processes write two different files at the same
|
||||||
// time, to test block allocation.
|
// time, to test block allocation.
|
||||||
void
|
void
|
||||||
twofiles()
|
twofiles(void)
|
||||||
{
|
{
|
||||||
int fd, pid, i, j, n, total;
|
int fd, pid, i, j, n, total;
|
||||||
char *fname;
|
char *fname;
|
||||||
|
@ -462,7 +462,7 @@ twofiles()
|
||||||
|
|
||||||
// two processes create and delete files in same directory
|
// two processes create and delete files in same directory
|
||||||
void
|
void
|
||||||
createdelete()
|
createdelete(void)
|
||||||
{
|
{
|
||||||
int pid, i, fd;
|
int pid, i, fd;
|
||||||
int n = 20;
|
int n = 20;
|
||||||
|
@ -540,7 +540,7 @@ createdelete()
|
||||||
|
|
||||||
// can I unlink a file and still read it?
|
// can I unlink a file and still read it?
|
||||||
void
|
void
|
||||||
unlinkread()
|
unlinkread(void)
|
||||||
{
|
{
|
||||||
int fd, fd1;
|
int fd, fd1;
|
||||||
|
|
||||||
|
@ -585,7 +585,7 @@ unlinkread()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
linktest()
|
linktest(void)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
|
@ -648,7 +648,7 @@ linktest()
|
||||||
|
|
||||||
// test concurrent create of the same file
|
// test concurrent create of the same file
|
||||||
void
|
void
|
||||||
concreate()
|
concreate(void)
|
||||||
{
|
{
|
||||||
char file[3];
|
char file[3];
|
||||||
int i, pid, n, fd;
|
int i, pid, n, fd;
|
||||||
|
@ -720,7 +720,7 @@ concreate()
|
||||||
|
|
||||||
// directory that uses indirect blocks
|
// directory that uses indirect blocks
|
||||||
void
|
void
|
||||||
bigdir()
|
bigdir(void)
|
||||||
{
|
{
|
||||||
int i, fd;
|
int i, fd;
|
||||||
char name[10];
|
char name[10];
|
||||||
|
@ -762,7 +762,7 @@ bigdir()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
subdir()
|
subdir(void)
|
||||||
{
|
{
|
||||||
int fd, cc;
|
int fd, cc;
|
||||||
|
|
||||||
|
@ -923,7 +923,7 @@ subdir()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
bigfile()
|
bigfile(void)
|
||||||
{
|
{
|
||||||
int fd, i, total, cc;
|
int fd, i, total, cc;
|
||||||
|
|
||||||
|
@ -979,7 +979,7 @@ bigfile()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
fourteen()
|
fourteen(void)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue