repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
memcheck/tests/sh-mem-random.c: Set huge_addr to 240GB
[valgrind.git]
/
memcheck
/
tests
/
bug472219.c
blob
cb9fefe4cb79623926733a3420d26b026319dcde
1
#define _GNU_SOURCE
/* for ppoll */
2
#include <poll.h>
3
#include <stdlib.h>
4
#include
"../../config.h"
5
6
int
main
()
7
{
8
int
uninit
;
9
struct
pollfd fds
[] = {{-
1
,
uninit
,
0
}, {
2
,
POLLIN
,
0
}};
10
11
poll
(
fds
,
2
,
100
);
12
13
#if defined(HAVE_PPOLL)
14
struct
timespec timeout
= {
0
,
1
e8
};
15
ppoll
(
fds
,
2
, &
timeout
,
NULL
);
16
#endif
17
}