PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
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... | |
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.
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().