blob: ba5c654e3b33bf0289422d3561fc5302f36ccce3 [file] [log] [blame]
Jens Axboeed80ddf2009-11-23 15:14:48 +01001#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);
Jens Axboe7d289b22009-11-23 15:21:39 +01009 if (*ptr)
10 return 0;
11
12 return ENOMEM;
Jens Axboeed80ddf2009-11-23 15:14:48 +010013}
14
15int __weak posix_fallocate(int fd, off_t offset, off_t len)
16{
17 return 0;
18}