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

Go to the source code of this file.

Functions

void test_main (void)
 Tries to mmap an invalid fd, which must either fail silently or terminate the process with exit code -1. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Tries to mmap an invalid fd, which must either fail silently or terminate the process with exit code -1.

tests/main.h

Definition at line 10 of file mmap-bad-fd.c.

References CHECK, MAP_FAILED, and mmap().

Here is the call graph for this function: