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

Go to the source code of this file.

Functions

void test_main (void)
 Verifies that memory mappings at address 0 are disallowed. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Verifies that memory mappings at address 0 are disallowed.

tests/main.h

Definition at line 8 of file mmap-null.c.

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

Here is the call graph for this function: