| 1 |
/* COVERAGE: mincore */ |
| 2 |
|
| 3 |
#include <unistd.h> |
| 4 |
#include <sys/mman.h> |
| 5 |
|
| 6 |
static unsigned char *vec; |
| 7 |
|
| 8 |
int main() |
| 9 |
{ |
| 10 |
mincore((void *)0, 0, vec); |
| 11 |
//staptest// mincore (0x0, 0, 0x0) = 0 |
| 12 |
|
| 13 |
mincore((void *)-1, 0, vec); |
| 14 |
#if __s390__ |
| 15 |
//staptest// mincore (0x[7]?[f]+, 0, 0x0) |
| 16 |
#else |
| 17 |
//staptest// mincore (0x[f]+, 0, 0x0) |
| 18 |
#endif |
| 19 |
|
| 20 |
mincore(0, -1, vec); |
| 21 |
#if __WORDSIZE==64 |
| 22 |
//staptest// mincore (0x0, 18446744073709551615, 0x0) |
| 23 |
#else |
| 24 |
//staptest// mincore (0x0, 4294967295, 0x0) |
| 25 |
#endif |
| 26 |
|
| 27 |
mincore(0, 0, (unsigned char *)-1); |
| 28 |
#ifdef __s390__ |
| 29 |
//staptest// mincore (0x0, 0, 0x[7]?[f]+) |
| 30 |
#else |
| 31 |
//staptest// mincore (0x0, 0, 0x[f]+) |
| 32 |
#endif |
| 33 |
|
| 34 |
return 0; |
| 35 |
} |