Changeset 8f12d069 in rtems


Ignore:
Timestamp:
Dec 23, 1999, 10:08:43 PM (21 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
7fbef786
Parents:
96d4aea
Message:

+ Filled in routine.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/mqueuenametoid.c

    r96d4aea r8f12d069  
    4141)
    4242{
    43   return 0; /* XXX fill me in */
     43  Objects_Name_to_id_errors  status;
     44
     45   if ( !name )
     46     return EINVAL;
     47
     48  if ( !name[0] )
     49    return EINVAL;
     50
     51  status = _Objects_Name_to_id(
     52    &_POSIX_Message_queue_Information, (char *)name, 0, id );
     53
     54  if ( status == OBJECTS_SUCCESSFUL )
     55    return 0;
     56
     57  return ENOENT;
    4458}
  • cpukit/posix/src/mqueuenametoid.c

    r96d4aea r8f12d069  
    4141)
    4242{
    43   return 0; /* XXX fill me in */
     43  Objects_Name_to_id_errors  status;
     44
     45   if ( !name )
     46     return EINVAL;
     47
     48  if ( !name[0] )
     49    return EINVAL;
     50
     51  status = _Objects_Name_to_id(
     52    &_POSIX_Message_queue_Information, (char *)name, 0, id );
     53
     54  if ( status == OBJECTS_SUCCESSFUL )
     55    return 0;
     56
     57  return ENOENT;
    4458}
Note: See TracChangeset for help on using the changeset viewer.