Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/mmap/
Dmmap12.c34 #define MMAPSIZE (1UL<<20) macro
54 num_pages = MMAPSIZE / page_sz; in page_check()
97 addr = mmap(NULL, MMAPSIZE, PROT_READ | PROT_WRITE, in verify_mmap()
107 for (i = 0; i < MMAPSIZE; i++) { in verify_mmap()
117 SAFE_MUNMAP(addr, MMAPSIZE); in verify_mmap()
124 SAFE_FTRUNCATE(fildes, MMAPSIZE); in setup()
Dmmap14.c34 #define MMAPSIZE (1UL<<20) macro
63 addr = mmap(NULL, MMAPSIZE, PROT_READ | PROT_WRITE, in main()
75 if (sz_ch == MMAPSIZE / 1024) { in main()
81 MMAPSIZE / 1024, sz_ch); in main()
84 if (munmap(addr, MMAPSIZE) != 0) in main()
/third_party/ltp/testcases/kernel/security/integrity/ima/src/
Dima_mmap.c13 #define MMAPSIZE 1024 macro
22 SAFE_MUNMAP(file, MMAPSIZE); in cleanup()
35 file = SAFE_MMAP(NULL, MMAPSIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in run()