source: rtems/c/src/lib/libc/assoc.h @ 487a7ca

4.104.114.84.95
Last change on this file since 487a7ca was c64e4ed4, checked in by Joel Sherrill <joel.sherrill@…>, on 01/15/96 at 21:50:28

updates from Tony Bennett for PA and UNIX ports

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *      @(#)assoc.h     1.4 - 95/10/25
3 *     
4 *
5 *  Rtems associativity routines.  Mainly used to convert a value from
6 *  one space to another (eg: our errno's to host errno's and v.v)
7 *
8 *
9 *  $Id$
10 */
11
12#ifndef _INCLUDE_ASSOC_H
13#define _INCLUDE_ASSOC_H
14
15typedef struct {
16    const char   *name;
17    unsigned32   local_value;
18    unsigned32   remote_value;
19} rtems_assoc_t;
20
21/*
22 * Flag/marker for optional default value in each table
23 */
24
25#define RTEMS_ASSOC_DEFAULT_NAME "(default)"
26
27const rtems_assoc_t *rtems_assoc_ptr_by_name(const rtems_assoc_t *, const char *);
28const rtems_assoc_t *rtems_assoc_ptr_by_value(const rtems_assoc_t *, unsigned32);
29const rtems_assoc_t *rtems_assoc_ptr_by_remote(const rtems_assoc_t *, unsigned32);
30
31unsigned32   rtems_assoc_remote_by_local(const rtems_assoc_t *, unsigned32);
32unsigned32   rtems_assoc_local_by_remote(const rtems_assoc_t *, unsigned32);
33unsigned32   rtems_assoc_remote_by_name(const rtems_assoc_t *, const char *);
34unsigned32   rtems_assoc_local_by_name(const rtems_assoc_t *, const char *);
35const char  *rtems_assoc_name_by_local(const rtems_assoc_t *, unsigned32);
36const char  *rtems_assoc_name_by_remote(const rtems_assoc_t *, unsigned32);
37
38unsigned32   rtems_assoc_remote_by_local_bitfield(const rtems_assoc_t *, unsigned32);
39char  *rtems_assoc_name_by_local_bitfield(const rtems_assoc_t *, unsigned32, char *);
40char  *rtems_assoc_name_by_remote_bitfield(const rtems_assoc_t *, unsigned32, char *);
41unsigned32   rtems_assoc_local_by_remote_bitfield(const rtems_assoc_t *, unsigned32);
42
43
44#endif /* ! _INCLUDE_ASSOC_H */
Note: See TracBrowser for help on using the repository browser.