[BACK]Return to test-mmap.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

File: [cvsweb.bsd.lv] / mandoc / Attic / test-mmap.c (download)

Revision 1.1, Thu May 26 20:36:21 2011 UTC (12 years, 11 months ago) by kristaps
Branch: MAIN

At least in theory, this patch lets us compile on Windows (which does
not have mmap(), from what I can tell).

#include <sys/mman.h>

int
main(int argc, char **argv)
{

	mmap(0, 0, PROT_READ, MAP_FILE|MAP_SHARED, -1, 0);
	return 0;
}