projects
/
libc-test
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
2b8f9991aa243772fa82aa0a1fc9a2691a5b29c4
[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
}