PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions
mmap-clean.c File Reference
#include <string.h>
#include <syscall.h>
#include "tests/vm/sample.inc"
#include "tests/lib.h"
#include "tests/main.h"
Include dependency graph for mmap-clean.c:

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...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Verifies that mmap'd regions are only written back on munmap if the data was actually modified in memory.

tests/main.h

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().

Here is the call graph for this function: