bool create(const char *file, unsigned initial_size)
int open(const char *file)
int read(int fd, void *buffer, unsigned size)
int pid_t
Process identifier.
void compare_bytes(const void *read_data_, const void *expected_data_, size_t size, size_t ofs, const char *file_name)
test/lib.h
void wait_children(pid_t pids[], size_t child_cnt)
void exec_children(const char *child_name, pid_t pids[], size_t child_cnt)
#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.
static const char file_name[]
tests/filesys/base/syn-read.h
void test_main(void)
tests/main.h
char buf1[BUF_SIZE]
Spawns several child processes to write out different parts of the contents of a file and waits for t...