mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
+ Filled in routine.
This commit is contained in:
@@ -40,5 +40,19 @@ int _POSIX_Message_queue_Name_to_id(
|
|||||||
Objects_Id *id
|
Objects_Id *id
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0; /* XXX fill me in */
|
Objects_Name_to_id_errors status;
|
||||||
|
|
||||||
|
if ( !name )
|
||||||
|
return EINVAL;
|
||||||
|
|
||||||
|
if ( !name[0] )
|
||||||
|
return EINVAL;
|
||||||
|
|
||||||
|
status = _Objects_Name_to_id(
|
||||||
|
&_POSIX_Message_queue_Information, (char *)name, 0, id );
|
||||||
|
|
||||||
|
if ( status == OBJECTS_SUCCESSFUL )
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return ENOENT;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,5 +40,19 @@ int _POSIX_Message_queue_Name_to_id(
|
|||||||
Objects_Id *id
|
Objects_Id *id
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return 0; /* XXX fill me in */
|
Objects_Name_to_id_errors status;
|
||||||
|
|
||||||
|
if ( !name )
|
||||||
|
return EINVAL;
|
||||||
|
|
||||||
|
if ( !name[0] )
|
||||||
|
return EINVAL;
|
||||||
|
|
||||||
|
status = _Objects_Name_to_id(
|
||||||
|
&_POSIX_Message_queue_Information, (char *)name, 0, id );
|
||||||
|
|
||||||
|
if ( status == OBJECTS_SUCCESSFUL )
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return ENOENT;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user