4.115
Last change
on this file since 92119ed was
55568af,
checked in by Joel Sherrill <joel.sherrill@…>, on 03/26/07 at 22:31:31
|
2007-03-26 Joel Sherrill <joel@…>
- libcsupport/src/assoc.c, libcsupport/src/libio.c,
libcsupport/src/write.c: Split files to shrink minimum.exe. Hopefully
this will not be deemed necessary to commit to the 4.7 branch.
- libcsupport/src/assoclocalbyname.c,
libcsupport/src/assoclocalbyremote.c,
libcsupport/src/assoclocalbyremotebitfield.c,
libcsupport/src/assocnamebylocal.c,
libcsupport/src/assocnamebylocalbitfield.c,
libcsupport/src/assocnamebyremote.c,
libcsupport/src/assocnamebyremotebitfield.c,
libcsupport/src/assocptrbylocal.c, libcsupport/src/assocptrbyname.c,
libcsupport/src/assocptrbyremote.c,
libcsupport/src/assocremotebylocal.c,
libcsupport/src/assocremotebylocalbitfield.c,
libcsupport/src/assocremotebyname.c, libcsupport/src/libio_init.c,
libcsupport/src/write_r.c: New files.
|
-
Property mode set to
100644
|
File size:
499 bytes
|
Line | |
---|
1 | /* |
---|
2 | * assoc.c |
---|
3 | * rtems assoc routines |
---|
4 | * |
---|
5 | * $Id$ |
---|
6 | */ |
---|
7 | |
---|
8 | #if HAVE_CONFIG_H |
---|
9 | #include "config.h" |
---|
10 | #endif |
---|
11 | |
---|
12 | #define INSIDE_ASSOC |
---|
13 | |
---|
14 | #include <rtems.h> |
---|
15 | #include <rtems/assoc.h> |
---|
16 | |
---|
17 | #include <string.h> /* strcat, strcmp */ |
---|
18 | |
---|
19 | |
---|
20 | const char *rtems_assoc_name_by_remote( |
---|
21 | const rtems_assoc_t *ap, |
---|
22 | uint32_t remote_value |
---|
23 | ) |
---|
24 | { |
---|
25 | const rtems_assoc_t *nap; |
---|
26 | nap = rtems_assoc_ptr_by_remote(ap, remote_value); |
---|
27 | |
---|
28 | if (nap) |
---|
29 | return nap->name; |
---|
30 | |
---|
31 | return rtems_assoc_name_bad(remote_value); |
---|
32 | } |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.