14 int main (int argc
, char *argv
[])
16 volatile unsigned char *a
;
18 /* Check that we can map a non-multiple of a page and still get a full page. */
19 a
= mmap (NULL
, 0x4c, PROT_READ
| PROT_WRITE
| PROT_EXEC
,
20 MAP_PRIVATE
| MAP_ANONYMOUS
, -1, 0);
21 if (a
== NULL
|| a
== (unsigned char *) -1)
26 memset ((char *) a
+ 1, 0, 8190);
28 if (a
[0] != 0xbe || a
[8191] != 0xef)