source: rtems/cpukit/posix/src/shm.c @ 0f5b2c09

5
Last change on this file since 0f5b2c09 was 9c9c6a9, checked in by Sebastian Huber <sebastian.huber@…>, on 11/21/18 at 16:30:52

score: Remove Objects_Information::is_string

Use Objects_Information::name_length to store this information.

Update #3621.

  • 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
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_Maximum_shms,
36    sizeof( POSIX_Shm_Control ),
37                                /* size of this object's control block */
38    _POSIX_PATH_MAX,            /* maximum length of each object's name */
39    NULL                        /* Proxy extraction support callout */
40  );
41}
42
43RTEMS_SYSINIT_ITEM(
44  _POSIX_Shm_Manager_initialization,
45  RTEMS_SYSINIT_POSIX_SHM,
46  RTEMS_SYSINIT_ORDER_MIDDLE
47);
Note: See TracBrowser for help on using the repository browser.