summaryrefslogtreecommitdiffstats
path: root/test-mmap.c
blob: c322a34d1fad72d883d17af8e04264d0f9acfa7e (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <sys/types.h>
#include <sys/mman.h>
#include <stddef.h>

int
main(void)
{
	return(MAP_FAILED != mmap(NULL, 1, PROT_READ, MAP_SHARED, -1, 0));
}