diff options
Diffstat (limited to 'cpukit/posix/include/rtems')
-rw-r--r-- | cpukit/posix/include/rtems/posix/config.h | 26 | ||||
-rw-r--r-- | cpukit/posix/include/rtems/posix/mqueue.h | 18 | ||||
-rw-r--r-- | cpukit/posix/include/rtems/posix/posixapi.h | 23 | ||||
-rw-r--r-- | cpukit/posix/include/rtems/posix/semaphore.h | 15 |
4 files changed, 41 insertions, 41 deletions
diff --git a/cpukit/posix/include/rtems/posix/config.h b/cpukit/posix/include/rtems/posix/config.h index 053fa0290e..1af8639460 100644 --- a/cpukit/posix/include/rtems/posix/config.h +++ b/cpukit/posix/include/rtems/posix/config.h @@ -45,19 +45,19 @@ typedef struct { } posix_initialization_threads_table; typedef struct { - int maximum_threads; - int maximum_mutexes; - int maximum_condition_variables; - int maximum_keys; - int maximum_timers; - int maximum_queued_signals; - int maximum_message_queues; - int maximum_message_queue_descriptors; - int maximum_semaphores; - int maximum_barriers; - int maximum_rwlocks; - int maximum_spinlocks; - int number_of_initialization_threads; + uint32_t maximum_threads; + uint32_t maximum_mutexes; + uint32_t maximum_condition_variables; + uint32_t maximum_keys; + uint32_t maximum_timers; + uint32_t maximum_queued_signals; + uint32_t maximum_message_queues; + uint32_t maximum_message_queue_descriptors; + uint32_t maximum_semaphores; + uint32_t maximum_barriers; + uint32_t maximum_rwlocks; + uint32_t maximum_spinlocks; + uint32_t number_of_initialization_threads; posix_initialization_threads_table *User_initialization_threads_table; } posix_api_configuration_table; diff --git a/cpukit/posix/include/rtems/posix/mqueue.h b/cpukit/posix/include/rtems/posix/mqueue.h index 86a35cc77b..427564ba07 100644 --- a/cpukit/posix/include/rtems/posix/mqueue.h +++ b/cpukit/posix/include/rtems/posix/mqueue.h @@ -23,6 +23,7 @@ #include <mqueue.h> /* struct mq_attr */ #include <rtems/score/coremsg.h> #include <rtems/score/object.h> +#include <rtems/posix/posixapi.h> #ifdef __cplusplus extern "C" { @@ -79,6 +80,7 @@ void _POSIX_Message_queue_Manager_initialization(void); int _POSIX_Message_queue_Create_support( const char *name, + size_t name_len, int pshared, struct mq_attr *attr, POSIX_Message_queue_Control **message_queue @@ -126,7 +128,7 @@ int _POSIX_Message_queue_Send_support( mqd_t mqdes, const char *msg_ptr, size_t msg_len, - uint32_t msg_prio, + unsigned int msg_prio, bool wait, Watchdog_Interval timeout ); @@ -187,20 +189,6 @@ RTEMS_INLINE_ROUTINE bool _POSIX_Message_queue_Is_null ( ); /* - * _POSIX_Message_queue_Name_to_id - * - * DESCRIPTION: - * - * This routine looks up the specified name for a message queue and returns the - * id of the message queue associated with it. - */ - -int _POSIX_Message_queue_Name_to_id( - const char *name, - Objects_Id *id -); - -/* * _POSIX_Message_queue_Priority_to_core * * DESCRIPTION: diff --git a/cpukit/posix/include/rtems/posix/posixapi.h b/cpukit/posix/include/rtems/posix/posixapi.h index f90d4a76d2..b8de59b8fd 100644 --- a/cpukit/posix/include/rtems/posix/posixapi.h +++ b/cpukit/posix/include/rtems/posix/posixapi.h @@ -20,6 +20,7 @@ #define _RTEMS_POSIX_POSIXAPI_H #include <rtems/config.h> +#include <rtems/score/object.h> /** * @brief Initialize POSIX API @@ -29,5 +30,27 @@ */ void _POSIX_API_Initialize(void); +/** + * @brief Queries the object identifier @a id for a @a name. + * + * @param[in] information Object information. + * @param[in] name Zero terminated name string to look up. + * @param[out] id Pointer for identifier. The pointer must be valid. + * @param[out] len Pointer for string length. The pointer must be valid. + * + * @retval 0 Successful operation. + * @retval EINVAL The @a name pointer is @c NULL or the @a name string has + * zero length. + * @retval ENAMETOOLONG The @a name string length is greater than or equal to + * @c NAME_MAX. + * @retval ENOENT Found no corresponding identifier. + */ +int _POSIX_Name_to_id( + Objects_Information *information, + const char *name, + Objects_Id *id, + size_t *len +); + #endif /* end of include file */ diff --git a/cpukit/posix/include/rtems/posix/semaphore.h b/cpukit/posix/include/rtems/posix/semaphore.h index 3b96748aa7..89198ee1b4 100644 --- a/cpukit/posix/include/rtems/posix/semaphore.h +++ b/cpukit/posix/include/rtems/posix/semaphore.h @@ -25,6 +25,7 @@ extern "C" { #include <semaphore.h> #include <rtems/score/coresem.h> +#include <rtems/posix/posixapi.h> /* * Data Structure used to manage a POSIX semaphore @@ -129,6 +130,7 @@ RTEMS_INLINE_ROUTINE bool _POSIX_Semaphore_Is_null ( int _POSIX_Semaphore_Create_support( const char *name, + size_t name_len, int pshared, unsigned int value, POSIX_Semaphore_Control **the_sem @@ -162,19 +164,6 @@ int _POSIX_Semaphore_Wait_support( ); /* - * _POSIX_Semaphore_Name_to_id - * - * DESCRIPTION: - * - * This routine performs name to id translation. - */ - -int _POSIX_Semaphore_Name_to_id( - const char *name, - sem_t *id -); - -/* * _POSIX_Semaphore_Translate_core_semaphore_return_code * * DESCRIPTION: |