Lines Matching defs:buffer
81 // Allocate a buffer aligned on a page boundary; initial protection is PROT_WRITE.
82 void *buffer = memalign(pagesize, 4 * pagesize);
83 EXPECT_NE(buffer, nullptr);
85 ret = mprotect(buffer, pagesize, PROT_WRITE);
110 // Allocate a buffer aligned on a page boundary; initial protection is PROT_EXEC.
167 // Allocate a buffer aligned on a page boundary; initial protection is invalid value of 0xFF.
199 // Allocate a buffer aligned on a page boundary; initial protection are PROT_GROWSUP and PROT_GROWSDOWN.
231 void *buffer = memalign(pagesize, 4 * pagesize);
232 EXPECT_NE(buffer, nullptr);
234 ret = mprotect(buffer, pagesize, PROT_NONE);