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

Go to the source code of this file.

Functions

void test_main (void)
 Verifies that misaligned memory mappings are disallowed. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Verifies that misaligned memory mappings are disallowed.

tests/main.h

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

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

Here is the call graph for this function: