summaryrefslogblamecommitdiffstats
path: root/test-mmap.c
blob: 3a6232d9ce91fd883cbd5f98e659922ea6a394a1 (plain) (tree)
1
2
3
4
5
6
7
8
9
                      
                     
                   

   
          
 
                                                                         
 
#include <sys/types.h>
#include <sys/mman.h>
#include <stddef.h>

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