CS318 - Pintos
Pintos source browser for JHU CS318 course
Functions
mmap-inherit.c File Reference
#include <string.h>
#include <syscall.h>
#include "tests/vm/sample.inc"
#include "tests/lib.h"
#include "tests/main.h"
Include dependency graph for mmap-inherit.c:

Go to the source code of this file.

Functions

void test_main (void)
 Maps a file into memory and runs child-inherit to verify that mappings are not inherited. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Maps a file into memory and runs child-inherit to verify that mappings are not inherited.

tests/main.h

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

References CHECK, exec(), fail(), MAP_FAILED, memcmp(), mmap(), open(), quiet, strlen(), and wait().

Here is the call graph for this function: