projects
/
libc-test
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix malloc-brk-fail and memmem-oob tests
[libc-test]
/
src
/
common
/
memfill.c
1
#include <string.h>
2
#include <errno.h>
3
#include <sys/resource.h>
4
#include "test.h"
5
6
int t_memfill()
7
{
8
int r = 0;
9
if (t_vmfill(0,0,0) < 0) {
10
t_error("vmfill failed: %s\n", strerror(errno));
11
r = -1;
12
}
13
if (t_setrlim(RLIMIT_DATA, 0) < 0)
14
r = -1;
15
return r;
16
}