PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
#include <random.h>
#include <stdio.h>
#include <stdlib.h>
#include <syscall.h>
#include "tests/lib.h"
#include "tests/filesys/base/syn-read.h"
Go to the source code of this file.
Functions | |
int | main (int argc, const char *argv[]) |
Variables | |
const char * | test_name = "child-syn-read" |
Child process for syn-read test. More... | |
static char | buf [BUF_SIZE] |
int main | ( | int argc | , |
const char * | argv[] | ||
) |
Definition at line 19 of file child-syn-read.c.
References atoi(), buf, CHECK, close(), compare_bytes(), file_name, open(), quiet, random_bytes(), random_init(), and read().
|
static |
Definition at line 16 of file child-syn-read.c.
Referenced by arc4_crypt(), archive_ordinary_file(), check_file(), check_file_handle(), format_integer(), hash_bytes(), hex_dump(), is_sorted(), main(), pick_pivot(), qsort_bytes(), random_bytes(), relay(), seq_test(), shuffle(), test_main(), vmsg(), and write_some_bytes().
const char* test_name = "child-syn-read" |
Child process for syn-read test.
Reads the contents of a test file a byte at a time, in the hope that this will take long enough that we can get a significant amount of contention in the kernel file system code.
Definition at line 14 of file child-syn-read.c.
Referenced by main().