From c6bb1c33bcf70d1398073c96a4fac4f9b031b9ab Mon Sep 17 00:00:00 2001 From: Kevin Kirspel Date: Thu, 29 Jun 2017 10:36:43 -0400 Subject: posix/mmap: Add support for file handler and MAP_ANON Added a mmap file handler to struct _rtems_filesystem_file_handlers_r. Updated each file handler object to support the default mmap handler. Updated mmap() to call the mmap handler for MAP_SHARED. Added a mmap file handler for shm Added support for MAP_ANON in mmap(). Updates #2859 --- cpukit/dev/i2c/i2c-bus.c | 1 + cpukit/dev/i2c/i2c-dev.c | 1 + 2 files changed, 2 insertions(+) (limited to 'cpukit/dev/i2c') diff --git a/cpukit/dev/i2c/i2c-bus.c b/cpukit/dev/i2c/i2c-bus.c index 0f27d06873..1297b1ef4c 100644 --- a/cpukit/dev/i2c/i2c-bus.c +++ b/cpukit/dev/i2c/i2c-bus.c @@ -218,6 +218,7 @@ static const rtems_filesystem_file_handlers_r i2c_bus_handler = { .fdatasync_h = rtems_filesystem_default_fsync_or_fdatasync, .fcntl_h = rtems_filesystem_default_fcntl, .kqfilter_h = rtems_filesystem_default_kqfilter, + .mmap_h = rtems_filesystem_default_mmap, .poll_h = rtems_filesystem_default_poll, .readv_h = rtems_filesystem_default_readv, .writev_h = rtems_filesystem_default_writev diff --git a/cpukit/dev/i2c/i2c-dev.c b/cpukit/dev/i2c/i2c-dev.c index b00a9bdf21..680732fa46 100644 --- a/cpukit/dev/i2c/i2c-dev.c +++ b/cpukit/dev/i2c/i2c-dev.c @@ -115,6 +115,7 @@ static const rtems_filesystem_file_handlers_r i2c_dev_handler = { .fdatasync_h = rtems_filesystem_default_fsync_or_fdatasync, .fcntl_h = rtems_filesystem_default_fcntl, .kqfilter_h = rtems_filesystem_default_kqfilter, + .mmap_h = rtems_filesystem_default_mmap, .poll_h = rtems_filesystem_default_poll, .readv_h = rtems_filesystem_default_readv, .writev_h = rtems_filesystem_default_writev -- cgit v1.2.3