15 CHECK ((handle =
open (
"sample.txt")) > 1,
"open \"sample.txt\"");
17 "try to mmap over stack 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)
Verifies that mapping over the stack segment is disallowed.
#define ROUND_DOWN(X, STEP)
Yields X rounded down to the nearest multiple of STEP.