diff options
Diffstat (limited to 'cpukit/posix/src/mlockall.c')
-rw-r--r-- | cpukit/posix/src/mlockall.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cpukit/posix/src/mlockall.c b/cpukit/posix/src/mlockall.c new file mode 100644 index 0000000000..1fd4ed5fa2 --- /dev/null +++ b/cpukit/posix/src/mlockall.c @@ -0,0 +1,26 @@ +/** + * @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 mlockall( int flags ) +{ + (void) flags; + + rtems_set_errno_and_return_minus_one( EINVAL ); +} |