[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.6, Tue Oct 6 18:32:20 2015 UTC (8 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_4, VERSION_1_13
Changes since 1.5: +1 -1 lines

modernize style: "return" is not a function

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