|
PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
#include <random.h>#include <stdio.h>#include <syscall.h>#include "tests/lib.h"#include "tests/main.h"#include "tests/filesys/base/syn-read.h"
Go to the source code of this file.
Macros | |
| #define | CHILD_CNT 10 |
Functions | |
| void | test_main (void) |
| tests/main.h More... | |
Variables | |
| static char | buf [BUF_SIZE] |
| Spawns 10 child processes, all of which read from the same file and make sure that the contents are what they should be. More... | |
| #define CHILD_CNT 10 |
Definition at line 14 of file syn-read.c.
| void test_main | ( | void | ) |
Definition at line 17 of file syn-read.c.
References buf, CHECK, CHILD_CNT, close(), create(), exec_children(), file_name, msg(), open(), random_bytes(), wait_children(), and write().
Referenced by main().


|
static |
Spawns 10 child processes, all of which read from the same file and make sure that the contents are what they should be.
Definition at line 12 of file syn-read.c.
Referenced by test_main().