summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/rtems/posix/rwlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/include/rtems/posix/rwlock.h')
-rw-r--r--cpukit/posix/include/rtems/posix/rwlock.h48
1 files changed, 3 insertions, 45 deletions
diff --git a/cpukit/posix/include/rtems/posix/rwlock.h b/cpukit/posix/include/rtems/posix/rwlock.h
index 0cfd20dad8..31f75c2d58 100644
--- a/cpukit/posix/include/rtems/posix/rwlock.h
+++ b/cpukit/posix/include/rtems/posix/rwlock.h
@@ -25,6 +25,9 @@
#ifndef _RTEMS_POSIX_RWLOCK_H
#define _RTEMS_POSIX_RWLOCK_H
+#include <rtems/score/object.h>
+#include <rtems/score/corerwlock.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -39,9 +42,6 @@ extern "C" {
*/
/**@{**/
-#include <rtems/score/object.h>
-#include <rtems/score/corerwlock.h>
-
/**
* This type defines the control block used to manage each RWLock.
*/
@@ -53,48 +53,6 @@ typedef struct {
CORE_RWLock_Control RWLock;
} POSIX_RWLock_Control;
-/**
- * The following defines the information control block used to manage
- * this class of objects.
- */
-
-POSIX_EXTERN Objects_Information _POSIX_RWLock_Information;
-
-/**
- * @brief POSIX RWLock manager initialization.
- *
- * This routine performs the initialization necessary for this manager.
- */
-
-void _POSIX_RWLock_Manager_initialization(void);
-
-/**
- * @brief POSIX translate core RWLock return code.
- *
- * This routine translates SuperCore RWLock status codes into the
- * corresponding POSIX ones.
- *
- *
- * @param[in] the_RWLock_status is the SuperCore status.
- *
- * @return the corresponding POSIX status
- * @retval 0 The status indicates that the operation completed successfully.
- * @retval EINVAL The status indicates that the thread was blocked waiting for
- * an operation to complete and the RWLock was deleted.
- * @retval EBUSY This status indicates that the RWLock was not
- * immediately available.
- * @retval ETIMEDOUT This status indicates that the calling task was
- * willing to block but the operation was unable to complete within
- * the time allotted because the resource never became available.
- */
-int _POSIX_RWLock_Translate_core_RWLock_return_code(
- CORE_RWLock_Status the_RWLock_status
-);
-
-#ifndef __RTEMS_APPLICATION__
-#include <rtems/posix/rwlock.inl>
-#endif
-
/** @} */
#ifdef __cplusplus