4#include "tests/vm/sample.inc"
11 char *
start = (
char *) 0x10000000;
14 CHECK ((fd[0] =
open (
"zeros")) > 1,
"open \"zeros\" once");
16 CHECK ((fd[1] =
open (
"zeros")) > 1 && fd[0] != fd[1],
17 "open \"zeros\" again");
19 "try to mmap \"zeros\" again");
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 overlapping memory mappings are disallowed.