CS318 - Pintos
Pintos source browser for JHU CS318 course
|
char buf1[BUF_SIZE]
Spawns several child processes to write out different parts of the contents of a file and waits for t...
#define CHECK(SUCCESS,...)
Takes an expression to test for SUCCESS and a message, which may include printf-style arguments.
void random_bytes(void *buf_, size_t size)
Writes SIZE random bytes into BUF.
void compare_bytes(const void *read_data_, const void *expected_data_, size_t size, size_t ofs, const char *file_name)
test/lib.h
int open(const char *file)
void wait_children(pid_t pids[], size_t child_cnt)
static const char file_name[]
tests/filesys/base/syn-read.h
int pid_t
Process identifier.
void exec_children(const char *child_name, pid_t pids[], size_t child_cnt)
int read(int fd, void *buffer, unsigned size)
bool create(const char *file, unsigned initial_size)
void test_main(void)
tests/main.h