From c5c8bd5c9b265df2c7feb386b5c1fba0a5a34eec Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 24 Nov 2009 13:01:41 +0100 Subject: [PATCH] Add helpers include file Signed-off-by: Jens Axboe --- fio.h | 1 + helpers.c | 7 +++++++ helpers.h | 10 ++++++++++ 3 files changed, 18 insertions(+) create mode 100644 helpers.h diff --git a/fio.h b/fio.h index 1723067e..214fbd26 100644 --- a/fio.h +++ b/fio.h @@ -29,6 +29,7 @@ #include "ioengine.h" #include "iolog.h" #include "profiles.h" +#include "helpers.h" #ifdef FIO_HAVE_GUASI #include diff --git a/helpers.c b/helpers.c index 21b99136..f314ebb9 100644 --- a/helpers.c +++ b/helpers.c @@ -1,6 +1,8 @@ #include #include #include +#include +#include #include "compiler/compiler.h" @@ -17,3 +19,8 @@ int __weak posix_fallocate(int fd, off_t offset, off_t len) { return 0; } + +int __weak inet_aton(const char *cp, struct in_addr *inp) +{ + return 0; +} diff --git a/helpers.h b/helpers.h new file mode 100644 index 00000000..a3a773bc --- /dev/null +++ b/helpers.h @@ -0,0 +1,10 @@ +#ifndef FIO_HELPERS_H +#define FIO_HELPERS_H + +struct in_addr; + +extern int __weak posix_memalign(void **ptr, size_t align, size_t size); +extern int __weak posix_fallocate(int fd, off_t offset, off_t len); +extern int __weak inet_aton(const char *cp, struct in_addr *inp); + +#endif -- 2.25.1