Lines Matching refs:PAGESIZE
15 PAGESIZE = mmap.PAGESIZE variable
37 f.write(b'\0'* PAGESIZE)
39 f.write(b'\0'* (PAGESIZE-3) )
41 m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
48 self.assertEqual(m.find(b'foo'), PAGESIZE)
50 self.assertEqual(len(m), 2*PAGESIZE)
61 m[PAGESIZE +3: PAGESIZE +3+3] = b'bar'
66 self.assertEqual(m[PAGESIZE-1 : PAGESIZE + 7], b'\0foobar\0')
78 self.assertEqual(start, PAGESIZE)
79 self.assertEqual(end, PAGESIZE + 6)
399 m = mmap.mmap(-1, PAGESIZE)
400 for x in range(PAGESIZE):
404 for x in range(PAGESIZE):
550 anon_mmap(PAGESIZE)
782 size = 2 * PAGESIZE
792 m.madvise(mmap.MADV_NORMAL, PAGESIZE, sys.maxsize)
794 self.assertEqual(m.madvise(mmap.MADV_NORMAL, PAGESIZE), None)
795 self.assertEqual(m.madvise(mmap.MADV_NORMAL, PAGESIZE, size), None)