Return to test-mmap.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
File: [cvsweb.bsd.lv] / mandoc / Attic / test-mmap.c (download)
Revision 1.4, Sat Jan 4 01:11:00 2014 UTC (10 years, 3 months ago) by schwarze
Clean up feature tests: * Split the configure steering script out of the Makefile. * Let the configure step depend on the test sources. * Clean up the test programs such that they can be run. |
#include <sys/types.h> #include <sys/mman.h> int main(void) { return(MAP_FAILED != mmap(NULL, 1, PROT_READ, MAP_SHARED, -1, 0)); }