summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/shmopen.c
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2016-08-12 11:17:40 -0400
committerGedare Bloom <gedare@rtems.org>2017-01-13 11:05:56 -0500
commit1ca8ee137e9e7dc815e55cc06ebd2c2c4e2191be (patch)
treea1556767a5daaacb0f88616e5c5344f49745acab /cpukit/posix/src/shmopen.c
parentposix: move sys/mman.h to newlib and test it in psxhdrs (diff)
downloadrtems-1ca8ee137e9e7dc815e55cc06ebd2c2c4e2191be.tar.bz2
posix: add stub implementations for mman functions
Diffstat (limited to 'cpukit/posix/src/shmopen.c')
-rw-r--r--cpukit/posix/src/shmopen.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/cpukit/posix/src/shmopen.c b/cpukit/posix/src/shmopen.c
new file mode 100644
index 0000000000..abac3f4057
--- /dev/null
+++ b/cpukit/posix/src/shmopen.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 shm_open( const char *name, int oflag, mode_t mode )
+{
+ (void) name;
+ (void) oflag;
+ (void) mode;
+
+ rtems_set_errno_and_return_minus_one( EINVAL );
+}