source: rtems/cpukit/posix/src/shm.c @ 1f22b26

5
Last change on this file since 1f22b26 was 1f22b26, checked in by Sebastian Huber <sebastian.huber@…>, on 08/25/17 at 08:59:52

Include missing <limits.h>

Update #2132.

  • Property mode set to 100644
File size: 1.3 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
27Objects_Information _POSIX_Shm_Information;
28
29static 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_API.maximum_shms,
36                                /* maximum objects of this class */
37    sizeof( POSIX_Shm_Control ),
38                                /* size of this object's control block */
39    true,                       /* true if names for this object are strings */
40    _POSIX_PATH_MAX,            /* maximum length of each object's name */
41    NULL                        /* Proxy extraction support callout */
42  );
43}
44
45RTEMS_SYSINIT_ITEM(
46  _POSIX_Shm_Manager_initialization,
47  RTEMS_SYSINIT_POSIX_SHM,
48  RTEMS_SYSINIT_ORDER_MIDDLE
49);
Note: See TracBrowser for help on using the repository browser.