PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions
mmap-over-code.c File Reference
#include <stdint.h>
#include <round.h>
#include <syscall.h>
#include "tests/lib.h"
#include "tests/main.h"
Include dependency graph for mmap-over-code.c:

Go to the source code of this file.

Functions

void test_main (void)
 Verifies that mapping over the code segment is disallowed. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Verifies that mapping over the code segment is disallowed.

tests/main.h

Definition at line 10 of file mmap-over-code.c.

References CHECK, MAP_FAILED, mmap(), open(), ROUND_DOWN, and test_main().

Referenced by test_main().

Here is the call graph for this function:
Here is the caller graph for this function: