source: rtems/c/src/exec/posix/src/mutexattrgetprotocol.c @ cec0371

4.104.114.84.95
Last change on this file since cec0371 was cec0371, checked in by Joel Sherrill <joel.sherrill@…>, on 11/02/99 at 18:39:52

Wrong routine was initially cut into this file.

  • Property mode set to 100644
File size: 671 bytes
Line 
1/*
2 *  $Id$
3 */
4
5#include <assert.h>
6#include <errno.h>
7#include <pthread.h>
8
9#include <rtems/system.h>
10#include <rtems/score/coremutex.h>
11#include <rtems/score/watchdog.h>
12#if defined(RTEMS_MULTIPROCESSING)
13#include <rtems/score/mpci.h>
14#endif
15#include <rtems/posix/mutex.h>
16#include <rtems/posix/priority.h>
17#include <rtems/posix/time.h>
18
19/*PAGE
20 *
21 *  13.6.1 Mutex Initialization Scheduling Attributes, P1003.1c/Draft 10, p. 128
22 */
23 
24int pthread_mutexattr_getprotocol(
25  const pthread_mutexattr_t   *attr,
26  int                         *protocol
27)
28{
29  if ( !attr || !attr->is_initialized || !protocol )
30    return EINVAL;
31
32  *protocol = attr->protocol;
33  return 0;
34}
Note: See TracBrowser for help on using the repository browser.