Home
last modified time | relevance | path

Searched refs:sMappedSize (Results 1 – 1 of 1) sorted by relevance

/haiku/src/tests/system/libroot/posix/
H A Dmprotect_test.cpp28 static size_t sMappedSize; variable
40 if (mprotect(sMappedBase + sMappedSize - PAGE_SIZE, PAGE_SIZE, in signal_handler()
47 void* mappedAddress = mmap(sMappedBase + sMappedSize, kMapChunkSize, in signal_handler()
56 sMappedSize += kMapChunkSize; in signal_handler()
59 if (mprotect(sMappedBase + sMappedSize - PAGE_SIZE, PAGE_SIZE, PROT_READ) in signal_handler()
88 sMappedSize = kMapChunkSize; in main()
90 printf("mapped %d bytes at %p\n", (int)sMappedSize, sMappedBase); in main()
92 if (mprotect(sMappedBase + sMappedSize - PAGE_SIZE, PAGE_SIZE, PROT_READ) in main()