PKUOS - Pintos
Pintos source browser for PKU Operating System course
main.c
Go to the documentation of this file.
1#include <random.h>
2#include "tests/lib.h"
3#include "tests/main.h"
4
5int
6main (int argc UNUSED, char *argv[])
7{
8 test_name = argv[0];
9
10 msg ("begin");
11 random_init (0);
12 test_main ();
13 msg ("end");
14 return 0;
15}
const char * test_name
Child process for syn-read test.
#define UNUSED
GCC lets us add "attributes" to functions, function parameters, etc.
Definition: debug.h:7
void msg(const char *format,...)
Definition: lib.c:28
int main(int argc UNUSED, char *argv[])
Definition: main.c:6
void random_init(unsigned seed)
Initializes or reinitializes the PRNG with the given SEED.
Definition: random.c:34
void test_main(void)
tests/main.h
Definition: syn-read.c:17