CS318 - Pintos
Pintos source browser for JHU CS318 course
|
Go to the documentation of this file.
12 #define SIZE (128 * 1024)
14 static char *
buf = (
char *) 0x10000000;
24 CHECK ((handle =
open (
"buffer")) > 1,
"open \"buffer\"");
33 for (
i = 0;
i < 10;
i++)
void test_main(void)
tests/main.h
#define CHECK(SUCCESS,...)
Takes an expression to test for SUCCESS and a message, which may include printf-style arguments.
#define SIZE
Creates a 128 kB file and repeatedly shuffles data in it through a memory mapping.
static void shuffle(struct value[], size_t)
int open(const char *file)
unsigned long cksum(const void *b_, size_t n)
This is the algorithm used by the Posix ‘cksum’ utility.
void msg(const char *format,...)
mapid_t mmap(int fd, void *addr)
Project 3 and optionally project 4.
bool create(const char *file, unsigned initial_size)