PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions
mmap-twice.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-twice.c:

Go to the source code of this file.

Functions

void test_main (void)
 Maps the same file into memory twice and verifies that the same data is readable in both. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Maps the same file into memory twice and verifies that the same data is readable in both.

tests/main.h

Definition at line 11 of file mmap-twice.c.

References CHECK, MAP_FAILED, memcmp(), mmap(), open(), and strlen().

Here is the call graph for this function: