[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.2, Thu May 26 21:02:05 2011 UTC (10 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_1, VERSION_1_12_0, VERSION_1_11_7, VERSION_1_11_6, VERSION_1_11_5, VERSION_1_11_4, VERSION_1_11_3
Changes since 1.1: +1 -0 lines

OpenBSD needs sys/types for mmap... oops...

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

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

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