[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.5, Tue Aug 5 16:00:37 2014 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3, VERSION_1_13_2, VERSION_1_13_1, VERSION_1_12_4, VERSION_1_12
Changes since 1.4: +1 -0 lines

NULL is in <stddef.h>; found on Linux

#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));
}