blob: f314ebb96ce7aa4c43302ad5f0e03dbd46ae83fb [file] [log] [blame]
Jens Axboeed80ddf2009-11-23 15:14:48 +01001#include <malloc.h>
2#include <stdlib.h>
Jens Axboef1662802009-11-24 08:48:21 +01003#include <errno.h>
Jens Axboec5c8bd52009-11-24 13:01:41 +01004#include <sys/socket.h>
5#include <netinet/in.h>
Jens Axboeed80ddf2009-11-23 15:14:48 +01006
7#include "compiler/compiler.h"
8
9int __weak posix_memalign(void **ptr, size_t align, size_t size)
10{
11 *ptr = memalign(align, size);
Jens Axboe7d289b22009-11-23 15:21:39 +010012 if (*ptr)
13 return 0;
14
15 return ENOMEM;
Jens Axboeed80ddf2009-11-23 15:14:48 +010016}
17
18int __weak posix_fallocate(int fd, off_t offset, off_t len)
19{
20 return 0;
21}
Jens Axboec5c8bd52009-11-24 13:01:41 +010022
23int __weak inet_aton(const char *cp, struct in_addr *inp)
24{
25 return 0;
26}