PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
#include <string.h>
#include <syscall.h>
#include "tests/vm/sample.inc"
#include "tests/lib.h"
#include "tests/main.h"
Go to the source code of this file.
Functions | |
void | test_main (void) |
Verifies that mmap'd regions are only written back on munmap if the data was actually modified in memory. More... | |
void test_main | ( | void | ) |
Verifies that mmap'd regions are only written back on munmap if the data was actually modified in memory.
Definition at line 11 of file mmap-clean.c.
References buffer, CHECK, fail(), MAP_FAILED, memcmp(), mmap(), msg(), munmap(), open(), read(), seek(), strlen(), and write().