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

Go to the source code of this file.

Functions

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

Function Documentation

◆ test_main()

void test_main ( void  )

Verifies that mapping over the stack segment is disallowed.

tests/main.h

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

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

Here is the call graph for this function: