source: rtems/cpukit/posix/src/rwlockattrinit.c @ 8f6b7b51

4.104.115
Last change on this file since 8f6b7b51 was b1dbfd7, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/03/09 at 10:10:57

Eliminate TRUE/FALSE.

  • Property mode set to 100644
File size: 622 bytes
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
26int 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.