Add posix_* weak helpers
[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         return *ptr == NULL;
10 }
11
12 int __weak posix_fallocate(int fd, off_t offset, off_t len)
13 {
14         return 0;
15 }