17 CHECK ((handle =
open (
"sample.txt")) > 1,
"open \"sample.txt\"");
19 "try to mmap over data segment");
mapid_t mmap(int fd, void *addr)
Project 3 and optionally project 4.
int open(const char *file)
#define CHECK(SUCCESS,...)
Takes an expression to test for SUCCESS and a message, which may include printf-style arguments.
void test_main(void)
tests/main.h
static char x
Verifies that mapping over the data segment is disallowed.
#define ROUND_DOWN(X, STEP)
Yields X rounded down to the nearest multiple of STEP.