blob: d5fef5c4753b2254584f41d181f865711df9d4bd [file] [log] [blame]
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "tests/sys_mman.h"
static void *f(void)
{
return mmap(NULL, 80 * 1000 * 1024,
PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0);
}
int main()
{
void *m = f();
munmap(m, 80 * 1000 * 1024);
return 0;
}