1*4b169a6bSchristos /* Check that mmapping a page-aligned size, larger than the file, 2*4b169a6bSchristos works. 3*4b169a6bSchristos 4*4b169a6bSchristos #progos: linux 5*4b169a6bSchristos */ 6*4b169a6bSchristos 7*4b169a6bSchristos /* Make sure we get an address where the size fits. */ 8*4b169a6bSchristos #define MMAP_SIZE1 ((sb.st_size + 8192) & ~8191) 9*4b169a6bSchristos 10*4b169a6bSchristos /* If this ever fails because the file is a page-multiple, we'll deal 11*4b169a6bSchristos with that then. We want it larger than the file-size anyway. */ 12*4b169a6bSchristos #define MMAP_SIZE2 ((size + 8192) & ~8191) 13*4b169a6bSchristos #define MMAP_FLAGS2 MAP_DENYWRITE | MAP_PRIVATE | MAP_FIXED 14*4b169a6bSchristos #include "mmap5.c" 15