[a0e6c73] | 1 | /** |
---|
| 2 | * @file |
---|
| 3 | * |
---|
| 4 | * @brief POSIX Keys Manager Initialization |
---|
| 5 | * @ingroup POSIX_KEY Key |
---|
| 6 | */ |
---|
| 7 | |
---|
[7f72217e] | 8 | /* |
---|
[309e2f6] | 9 | * COPYRIGHT (c) 1989-2008. |
---|
[feaa007] | 10 | * On-Line Applications Research Corporation (OAR). |
---|
| 11 | * |
---|
| 12 | * The license and distribution terms for this file may be |
---|
| 13 | * found in the file LICENSE in this distribution or at |
---|
| 14 | * http://www.rtems.com/license/LICENSE. |
---|
[5e9b32b] | 15 | */ |
---|
| 16 | |
---|
[f42b726] | 17 | #if HAVE_CONFIG_H |
---|
| 18 | #include "config.h" |
---|
| 19 | #endif |
---|
| 20 | |
---|
[5e9b32b] | 21 | #include <errno.h> |
---|
| 22 | #include <limits.h> |
---|
| 23 | #include <pthread.h> |
---|
| 24 | #include <string.h> |
---|
[6be8a83] | 25 | #include <limits.h> |
---|
[5e9b32b] | 26 | |
---|
[f4719d5a] | 27 | #include <rtems/system.h> |
---|
[309e2f6] | 28 | #include <rtems/config.h> |
---|
[5e9b32b] | 29 | #include <rtems/score/thread.h> |
---|
| 30 | #include <rtems/score/wkspace.h> |
---|
| 31 | #include <rtems/posix/key.h> |
---|
| 32 | |
---|
| 33 | /* |
---|
| 34 | * _POSIX_Key_Manager_initialization |
---|
| 35 | * |
---|
| 36 | * DESCRIPTION: |
---|
| 37 | * |
---|
| 38 | * This routine performs the initialization necessary for this manager. |
---|
[309e2f6] | 39 | * |
---|
| 40 | * Input parameters: NONE |
---|
| 41 | * |
---|
| 42 | * Output parameters: NONE |
---|
[5e9b32b] | 43 | */ |
---|
[874297f3] | 44 | |
---|
[309e2f6] | 45 | void _POSIX_Key_Manager_initialization(void) |
---|
[5e9b32b] | 46 | { |
---|
| 47 | _Objects_Initialize_information( |
---|
[3c465878] | 48 | &_POSIX_Keys_Information, /* object information table */ |
---|
| 49 | OBJECTS_POSIX_API, /* object API */ |
---|
| 50 | OBJECTS_POSIX_KEYS, /* object class */ |
---|
[309e2f6] | 51 | Configuration_POSIX_API.maximum_keys, |
---|
| 52 | /* maximum objects of this class */ |
---|
[5e9b32b] | 53 | sizeof( POSIX_Keys_Control ), |
---|
[3c465878] | 54 | /* size of this object's control block */ |
---|
[b1dbfd7] | 55 | true, /* true if names for this object are strings */ |
---|
[74d0cb44] | 56 | _POSIX_PATH_MAX /* maximum length of each object's name */ |
---|
[3c465878] | 57 | #if defined(RTEMS_MULTIPROCESSING) |
---|
| 58 | , |
---|
[b1dbfd7] | 59 | false, /* true if this is a global object class */ |
---|
[3c465878] | 60 | NULL /* Proxy extraction support callout */ |
---|
| 61 | #endif |
---|
[5e9b32b] | 62 | ); |
---|
| 63 | } |
---|