static uint shift;
void
-kbd_intr()
+kbd_intr(void)
{
uint st, data, c;
}
void
-console_init()
+console_init(void)
{
initlock(&console_lock, "console");
initlock(&kbd_lock, "kbd");
// proc[0] starts here, called by scheduler() in the ordinary way.
void
-process0()
+process0(void)
{
struct proc *p0 = &proc[0];
struct proc *p1;
// two processes write to the same file descriptor
// is the offset shared? does inode locking work?
void
-sharedfd()
+sharedfd(void)
{
int fd, pid, i, n, nc, np;
char buf[10];
// two processes write two different files at the same
// time, to test block allocation.
void
-twofiles()
+twofiles(void)
{
int fd, pid, i, j, n, total;
char *fname;
// two processes create and delete files in same directory
void
-createdelete()
+createdelete(void)
{
int pid, i, fd;
int n = 20;
// can I unlink a file and still read it?
void
-unlinkread()
+unlinkread(void)
{
int fd, fd1;
}
void
-linktest()
+linktest(void)
{
int fd;
// test concurrent create of the same file
void
-concreate()
+concreate(void)
{
char file[3];
int i, pid, n, fd;
// directory that uses indirect blocks
void
-bigdir()
+bigdir(void)
{
int i, fd;
char name[10];
}
void
-subdir()
+subdir(void)
{
int fd, cc;
}
void
-bigfile()
+bigfile(void)
{
int fd, i, total, cc;
}
void
-fourteen()
+fourteen(void)
{
int fd;