source: rtems/cpukit/rtems/src/rtemsidtoname.c @ a29d2e7

4.104.114.84.95
Last change on this file since a29d2e7 was 1095ec1, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/18/05 at 09:03:45

Include config.h.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*
2 *  RTEMS ID To Name Lookup
3 *
4 *
5 *  COPYRIGHT (c) 1989-2003.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#if HAVE_CONFIG_H
16#include "config.h"
17#endif
18
19#include <rtems/system.h>
20#include <rtems/score/object.h>
21#include <rtems/rtems/status.h>
22#include <rtems/rtems/types.h>
23
24/*PAGE
25 *
26 *  rtems_object_id_to_name
27 *
28 *  This directive returns the name associated with the specified
29 *  object ID.
30 *
31 *  Input parameters:
32 *    id   - message queue id
33 *
34 *  Output parameters:
35 *    *name            - user defined object name
36 *    RTEMS_SUCCESSFUL - if successful
37 *    error code       - if unsuccessful
38 */
39
40rtems_status_code rtems_object_id_to_name(
41  rtems_id      id,
42  rtems_name   *name
43)
44{
45  Objects_Name_or_id_lookup_errors  status;
46
47  status = _Objects_Id_to_name( id, (Objects_Name *) name );
48
49  return _Status_Object_name_errors_to_status[ status ];
50}
Note: See TracBrowser for help on using the repository browser.