projects
/
fio.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge branch 'master' of ssh://router/data/git/fio
[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
}