source: rtems/c/src/exec/posix/src/semaphorenametoid.c @ 799c767

4.104.114.84.95
Last change on this file since 799c767 was 799c767, checked in by Joel Sherrill <joel.sherrill@…>, on 11/02/99 at 18:00:15

Split the POSIX semaphore manager into multiple files.

  • Property mode set to 100644
File size: 661 bytes
Line 
1/*
2 *  $Id$
3 */
4
5#include <stdarg.h>
6
7#include <errno.h>
8#include <fcntl.h>
9#include <pthread.h>
10#include <semaphore.h>
11#include <limits.h>
12
13#include <rtems/system.h>
14#include <rtems/score/object.h>
15#include <rtems/posix/semaphore.h>
16#include <rtems/posix/time.h>
17#include <rtems/posix/seterr.h>
18
19/*PAGE
20 *
21 *  _POSIX_Semaphore_Name_to_id
22 *
23 *  XXX
24 */
25
26int _POSIX_Semaphore_Name_to_id(
27  const char          *name,
28  Objects_Id          *id
29)
30{
31  Objects_Name_to_id_errors  status;
32
33  status = _Objects_Name_to_id( &_POSIX_Semaphore_Information, (char *)name, 0, id );
34
35  if ( status == OBJECTS_SUCCESSFUL ) {
36          return 0;
37  } else {
38          return EINVAL;
39  }
40}
41
Note: See TracBrowser for help on using the repository browser.