[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.3, Sun Jun 2 03:52:21 2013 UTC (10 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_3, VERSION_1_12_2
Changes since 1.2: +1 -1 lines

Sync to OpenBSD, no functional change:
* Add the missing mparse_parse_buffer prototype.
* Drop the useless MAP_FILE constant: It's not specified in POSIX,
  so it's not required, it's the default anyway, and it's 0 anyway.

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

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

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