bool create(const char *file, unsigned initial_size)
int open(const char *file)
bool remove(const char *file)
int write(int fd, const void *buffer, unsigned size)
void seek(int fd, unsigned position)
int read(int fd, void *buffer, unsigned size)
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 msg(const char *format,...)
#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[1234]
Verifies that a deleted file may still be written to and read from.