source: rtems/cpukit/posix/src/key.c @ 74d0cb44

4.104.114.95
Last change on this file since 74d0cb44 was 74d0cb44, checked in by Joel Sherrill <joel.sherrill@…>, on 01/31/08 at 16:15:34

2008-01-31 Joel Sherrill <joel.sherrill@…>

  • posix/src/cond.c, posix/src/key.c, posix/src/mqueuenametoid.c, posix/src/mutex.c, posix/src/pbarrier.c, posix/src/prwlock.c, posix/src/pspin.c, posix/src/pthread.c, posix/src/ptimer.c, posix/src/semaphorenametoid.c: Add option for all POSIX objects whether named or unnamed to have a string name. If the API does not directly support having a name, then the user must explicitly assign it using rtems_object_set_name().
  • rtems/src/rtemsobjectgetapiclassname.c: Improved testability.
  • score/include/rtems/score/object.h, score/src/objectgetnameasstring.c, score/src/objectnametoidstring.c, score/src/objectsetname.c: Modifications required to pass testing of recently modified object name operations. Also eliminated multiprocessing related code that was not reachable.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2007.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#if HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <errno.h>
17#include <limits.h>
18#include <pthread.h>
19#include <string.h>
20
21#include <rtems/system.h>
22#include <rtems/score/thread.h>
23#include <rtems/score/wkspace.h>
24#include <rtems/posix/key.h>
25
26/*
27 *  _POSIX_Key_Manager_initialization
28 *
29 *  DESCRIPTION:
30 *
31 *  This routine performs the initialization necessary for this manager.
32 */
33
34void _POSIX_Key_Manager_initialization(
35  uint32_t   maximum_keys
36)
37{
38  _Objects_Initialize_information(
39    &_POSIX_Keys_Information,   /* object information table */
40    OBJECTS_POSIX_API,          /* object API */
41    OBJECTS_POSIX_KEYS,         /* object class */
42    maximum_keys,               /* maximum objects of this class */
43    sizeof( POSIX_Keys_Control ),
44                                /* size of this object's control block */
45    TRUE,                       /* TRUE if names for this object are strings */
46    _POSIX_PATH_MAX             /* maximum length of each object's name */
47#if defined(RTEMS_MULTIPROCESSING)
48    ,
49    FALSE,                      /* TRUE if this is a global object class */
50    NULL                        /* Proxy extraction support callout */
51#endif
52  );
53}
Note: See TracBrowser for help on using the repository browser.