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

Go to the source code of this file.

Functions

void test_main (void)
 Uses a memory mapping to read a file. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Uses a memory mapping to read a file.

tests/main.h

Definition at line 10 of file mmap-read.c.

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

Here is the call graph for this function: