summaryrefslogblamecommitdiffstats
path: root/cpukit/posix/src/condattrgetpshared.c
blob: d5ec0dfe897e003dec2669f3b3dcf97eeb7a0a84 (plain) (tree)
1
2
3
4
5
6
7
8
9
   
        
  
                    

                                                              

   
  




                                                           
                                         

   
                    


                   


                    
 










                                   
/**
 * @file
 *
 * @ingroup POSIXAPI
 *
 * @brief Get the Process-Shared Condition Variable Attributes
 */

/*
 *  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.org/license/LICENSE.
 */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <pthread.h>
#include <errno.h>


int pthread_condattr_getpshared(
  const pthread_condattr_t *attr,
  int                      *pshared
)
{
  if ( !attr )
    return EINVAL;

  *pshared = attr->process_shared;
  return 0;
}