Return to test-mmap.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.3, 2013/06/02 03:52:21 | version 1.6, 2015/10/06 18:32:20 | ||
---|---|---|---|
|
|
||
#include <sys/types.h> | #include <sys/types.h> | ||
#include <sys/mman.h> | #include <sys/mman.h> | ||
#include <stddef.h> | |||
int | int | ||
main(int argc, char **argv) | main(void) | ||
{ | { | ||
return mmap(NULL, 1, PROT_READ, MAP_SHARED, -1, 0) != MAP_FAILED; | |||
mmap(0, 0, PROT_READ, MAP_SHARED, -1, 0); | |||
return 0; | |||
} | } |