diff options
Diffstat (limited to 'cpukit/posix/src/posix_madvise.c')
-rw-r--r-- | cpukit/posix/src/posix_madvise.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cpukit/posix/src/posix_madvise.c b/cpukit/posix/src/posix_madvise.c new file mode 100644 index 0000000000..b909a1c84b --- /dev/null +++ b/cpukit/posix/src/posix_madvise.c @@ -0,0 +1,28 @@ +/** + * @file + */ + +/* + * Copyright (c) 2016 Gedare Bloom. + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#if HAVE_CONFIG_H +#include "config.h" +#endif + +#include <sys/mman.h> +#include <errno.h> +#include <rtems/seterr.h> + +int posix_madvise( void *addr, size_t len, int advice ) +{ + (void) addr; + (void) len; + (void) advice; + + return EINVAL; +} |