68 lines
1.1 KiB
C
68 lines
1.1 KiB
C
/*
|
|
* All the contents of this file are overwritten during automated
|
|
* testing. Please consider this before changing anything in this file.
|
|
*/
|
|
|
|
#include <types.h>
|
|
#include <lib.h>
|
|
#include <clock.h>
|
|
#include <thread.h>
|
|
#include <synch.h>
|
|
#include <test.h>
|
|
#include <kern/secret.h>
|
|
#include <spinlock.h>
|
|
|
|
/*
|
|
* Use these stubs to test your reader-writer locks.
|
|
*/
|
|
|
|
int rwtest(int nargs, char **args) {
|
|
(void)nargs;
|
|
(void)args;
|
|
|
|
kprintf_n("rwt1 unimplemented\n");
|
|
success(FAIL, SECRET, "rwt1");
|
|
|
|
return 0;
|
|
}
|
|
|
|
int rwtest2(int nargs, char **args) {
|
|
(void)nargs;
|
|
(void)args;
|
|
|
|
kprintf_n("rwt2 unimplemented\n");
|
|
success(FAIL, SECRET, "rwt2");
|
|
|
|
return 0;
|
|
}
|
|
|
|
int rwtest3(int nargs, char **args) {
|
|
(void)nargs;
|
|
(void)args;
|
|
|
|
kprintf_n("rwt3 unimplemented\n");
|
|
success(FAIL, SECRET, "rwt3");
|
|
|
|
return 0;
|
|
}
|
|
|
|
int rwtest4(int nargs, char **args) {
|
|
(void)nargs;
|
|
(void)args;
|
|
|
|
kprintf_n("rwt4 unimplemented\n");
|
|
success(FAIL, SECRET, "rwt4");
|
|
|
|
return 0;
|
|
}
|
|
|
|
int rwtest5(int nargs, char **args) {
|
|
(void)nargs;
|
|
(void)args;
|
|
|
|
kprintf_n("rwt5 unimplemented\n");
|
|
success(FAIL, SECRET, "rwt5");
|
|
|
|
return 0;
|
|
}
|