blob: 6a484a1df01ea50ea2724da17b01405b1295e4c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* $OpenBSD: mmap-fail.c,v 1.1 2005/07/11 12:50:46 art Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org> 2005 Public Domain.
*/
#include <sys/types.h>
#include <sys/mman.h>
int
main()
{
void *foo;
foo = mmap(0, (size_t)-1, 0, 0, 0, 0);
if (foo == MAP_FAILED)
return (0);
return (1);
}
|