diff options
Diffstat (limited to 'cpukit/posix/include/rtems/posix/posixapi.h')
-rw-r--r-- | cpukit/posix/include/rtems/posix/posixapi.h | 23 |
1 files changed, 23 insertions, 0 deletions
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 */ |