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

Go to the source code of this file.

Functions

void test_main (void)
 Tries to map a zero-length file, which may or may not work but should not terminate the process or crash. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Tries to map a zero-length file, which may or may not work but should not terminate the process or crash.

tests/main.h

Then dereferences the address that we tried to map, and the process must be terminated with -1 exit code.

Definition at line 11 of file mmap-zero.c.

References CHECK, create(), fail(), mmap(), msg(), and open().

Here is the call graph for this function: