4.104.114.84.95
Last change
on this file since 17879f4 was
17879f4,
checked in by Jennifer Averett <Jennifer.Averett@…>, on 11/18/99 at 19:43:13
|
+ Debuged to the point that you could open, unlink and close a semaphore.
but all paths have not been checked, yet.
|
-
Property mode set to
100644
|
File size:
736 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 | * Look up the specified name and attempt to locate the id |
---|
24 | * for the associated semaphore. |
---|
25 | */ |
---|
26 | |
---|
27 | int _POSIX_Semaphore_Name_to_id( |
---|
28 | const char *name, |
---|
29 | Objects_Id *id |
---|
30 | ) |
---|
31 | { |
---|
32 | Objects_Name_to_id_errors status; |
---|
33 | |
---|
34 | status = _Objects_Name_to_id( |
---|
35 | &_POSIX_Semaphore_Information, (char *)name, 0, id ); |
---|
36 | |
---|
37 | if ( status == OBJECTS_SUCCESSFUL ) |
---|
38 | return 0; |
---|
39 | |
---|
40 | return EINVAL; |
---|
41 | } |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.