5
Last change
on this file since 9318cfb0 was
e97806a,
checked in by Sebastian Huber <sebastian.huber@…>, on 10/14/18 at 17:20:05
|
posix: Split posix_api_configuration_table
Use separate configuration variables to avoid false dependencies.
Update #2514.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2016 Gedare Bloom. |
---|
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.org/license/LICENSE. |
---|
11 | */ |
---|
12 | |
---|
13 | #if HAVE_CONFIG_H |
---|
14 | #include "config.h" |
---|
15 | #endif |
---|
16 | |
---|
17 | #include <sys/stat.h> |
---|
18 | #include <fcntl.h> |
---|
19 | #include <limits.h> |
---|
20 | |
---|
21 | #include <rtems/system.h> |
---|
22 | #include <rtems/config.h> |
---|
23 | #include <rtems/libio.h> |
---|
24 | #include <rtems/sysinit.h> |
---|
25 | #include <rtems/posix/shmimpl.h> |
---|
26 | |
---|
27 | Objects_Information _POSIX_Shm_Information; |
---|
28 | |
---|
29 | static void _POSIX_Shm_Manager_initialization( void ) |
---|
30 | { |
---|
31 | _Objects_Initialize_information( |
---|
32 | &_POSIX_Shm_Information, /* object information table */ |
---|
33 | OBJECTS_POSIX_API, /* object API */ |
---|
34 | OBJECTS_POSIX_SHMS, /* object class */ |
---|
35 | _Configuration_POSIX_Maximum_shms, |
---|
36 | sizeof( POSIX_Shm_Control ), |
---|
37 | /* size of this object's control block */ |
---|
38 | true, /* true if names for this object are strings */ |
---|
39 | _POSIX_PATH_MAX, /* maximum length of each object's name */ |
---|
40 | NULL /* Proxy extraction support callout */ |
---|
41 | ); |
---|
42 | } |
---|
43 | |
---|
44 | RTEMS_SYSINIT_ITEM( |
---|
45 | _POSIX_Shm_Manager_initialization, |
---|
46 | RTEMS_SYSINIT_POSIX_SHM, |
---|
47 | RTEMS_SYSINIT_ORDER_MIDDLE |
---|
48 | ); |
---|
Note: See
TracBrowser
for help on using the repository browser.