posix: Add missing header.

This commit is contained in:
Chris Johns
2013-08-08 10:21:54 +10:00
parent 2f9cef8819
commit f65e8e66d0

View File

@@ -1,9 +1,9 @@
/** /**
* @file * @file
* *
* @brief Private Inlined Routines for POSIX Key's * @brief Private Inlined Routines for POSIX Key's
* *
* This include file contains the static inline implementation of the private * This include file contains the static inline implementation of the private
* inlined routines for POSIX key's. * inlined routines for POSIX key's.
*/ */
@@ -15,10 +15,11 @@
* found in the file LICENSE in this distribution or at * found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE. * http://www.rtems.com/license/LICENSE.
*/ */
#include <rtems/posix/key.h> #include <rtems/posix/key.h>
#include <rtems/score/freechain.h> #include <rtems/score/freechain.h>
#include <rtems/score/objectimpl.h> #include <rtems/score/objectimpl.h>
#include <rtems/score/percpu.h>
#ifndef _RTEMS_POSIX_KEYIMPL_H #ifndef _RTEMS_POSIX_KEYIMPL_H
#define _RTEMS_POSIX_KEYIMPL_H #define _RTEMS_POSIX_KEYIMPL_H
@@ -120,19 +121,19 @@ void _POSIX_Keys_Free_memory(
RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free ( RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free (
POSIX_Keys_Control *the_key POSIX_Keys_Control *the_key
); );
/** /**
* @brief Allocate a keys control block. * @brief Allocate a keys control block.
* *
* This function allocates a keys control block from * This function allocates a keys control block from
* the inactive chain of free keys control blocks. * the inactive chain of free keys control blocks.
*/ */
RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Allocate( void ) RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Allocate( void )
{ {
return (POSIX_Keys_Control *) _Objects_Allocate( &_POSIX_Keys_Information ); return (POSIX_Keys_Control *) _Objects_Allocate( &_POSIX_Keys_Information );
} }
/** /**
* @brief Free a keys control block. * @brief Free a keys control block.
* *
@@ -145,7 +146,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free (
{ {
_Objects_Free( &_POSIX_Keys_Information, &the_key->Object ); _Objects_Free( &_POSIX_Keys_Information, &the_key->Object );
} }
/** /**
* @brief Get a keys control block. * @brief Get a keys control block.
* *
@@ -157,7 +158,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free (
* and the_key is undefined. Otherwise, location is set * and the_key is undefined. Otherwise, location is set
* to OBJECTS_ERROR and the_key is undefined. * to OBJECTS_ERROR and the_key is undefined.
*/ */
RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Get ( RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Get (
pthread_key_t id, pthread_key_t id,
Objects_Locations *location Objects_Locations *location