4.104.115
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2007. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <pthread.h> |
---|
17 | #include <errno.h> |
---|
18 | |
---|
19 | #include <rtems/system.h> |
---|
20 | |
---|
21 | /*PAGE |
---|
22 | * |
---|
23 | * RWLock Attributes Initialization |
---|
24 | */ |
---|
25 | |
---|
26 | int pthread_rwlockattr_init( |
---|
27 | pthread_rwlockattr_t *attr |
---|
28 | ) |
---|
29 | { |
---|
30 | if ( !attr ) |
---|
31 | return EINVAL; |
---|
32 | |
---|
33 | attr->is_initialized = true; |
---|
34 | attr->process_shared = PTHREAD_PROCESS_PRIVATE; |
---|
35 | return 0; |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.