5
Last change
on this file since 0ec9bbc was
c6bb1c33,
checked in by Kevin Kirspel <kevin-kirspel@…>, on 06/29/17 at 14:36:43
|
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
|
-
Property mode set to
100644
|
File size:
785 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Default MMAP Handler |
---|
5 | * |
---|
6 | * @ingroup LibIOFSHandler |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2017 Kevin Kirspel (kirspkt@gmail.com) |
---|
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.org/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <rtems/libio_.h> |
---|
22 | |
---|
23 | int rtems_filesystem_default_mmap( |
---|
24 | rtems_libio_t *iop, |
---|
25 | void **addr, |
---|
26 | size_t len, |
---|
27 | int prot, |
---|
28 | off_t off |
---|
29 | ) |
---|
30 | { |
---|
31 | rtems_set_errno_and_return_minus_one( ENOTSUP ); |
---|
32 | } |
---|
33 | |
---|
34 | int rtems_termios_mmap( |
---|
35 | rtems_libio_t *iop, |
---|
36 | void **addr, |
---|
37 | size_t len, |
---|
38 | int prot, |
---|
39 | off_t off |
---|
40 | ) RTEMS_WEAK_ALIAS( rtems_filesystem_default_mmap ); |
---|
Note: See
TracBrowser
for help on using the repository browser.