Merge branch 'master' of ssh://router/data/git/fio
[fio.git] / helpers.c
... / ...
CommitLineData
1#include <malloc.h>
2#include <stdlib.h>
3
4#include "compiler/compiler.h"
5
6int __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
15int __weak posix_fallocate(int fd, off_t offset, off_t len)
16{
17 return 0;
18}