projects
/
fio.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ba5c654e3b33bf0289422d3561fc5302f36ccce3
[fio.git]
/
helpers.c
1
#include <malloc.h>
2
#include <stdlib.h>
3
4
#include "compiler/compiler.h"
5
6
int __weak posix_memalign(void **ptr, size_t align, size_t size)
7
{
8
*ptr = memalign(align, size);
9
if (*ptr)
10
return 0;
11
12
return ENOMEM;
13
}
14
15
int __weak posix_fallocate(int fd, off_t offset, off_t len)
16
{
17
return 0;
18
}