summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/rwlockattrinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/rwlockattrinit.c')
-rw-r--r--cpukit/posix/src/rwlockattrinit.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/cpukit/posix/src/rwlockattrinit.c b/cpukit/posix/src/rwlockattrinit.c
new file mode 100644
index 0000000000..77f5992038
--- /dev/null
+++ b/cpukit/posix/src/rwlockattrinit.c
@@ -0,0 +1,36 @@
+/*
+ * COPYRIGHT (c) 1989-2007.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <pthread.h>
+#include <errno.h>
+
+#include <rtems/system.h>
+
+/*PAGE
+ *
+ * RWLock Attributes Initialization
+ */
+
+int pthread_rwlockattr_init(
+ pthread_rwlockattr_t *attr
+)
+{
+ if ( !attr )
+ return EINVAL;
+
+ attr->is_initialized = true;
+ attr->process_shared = PTHREAD_PROCESS_PRIVATE;
+ return 0;
+}