Changeset 287843f in rtems


Ignore:
Timestamp:
11/06/14 22:16:56 (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
a5201ea
Parents:
c8784667
git-author:
Joel Sherrill <joel.sherrill@…> (11/06/14 22:16:56)
git-committer:
Joel Sherrill <joel.sherrill@…> (11/20/14 18:57:33)
Message:

sys/mman.h: New file. Clean up and add supporting stubs

  • Makefile.am updated and preinstall.am regenerated.
  • mprotect.c had a prototype removed now that we have mman.h
  • mmap.c, munmap.c: New stub files.
Location:
cpukit
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/Makefile.am

    rc8784667 r287843f  
    5151include_HEADERS += include/memory.h
    5252
     53include_sys_HEADERS += posix/include/sys/mman.h
    5354include_sys_HEADERS += libcsupport/include/sys/ioccom.h
    5455include_sys_HEADERS += libcsupport/include/sys/event.h
  • cpukit/posix/Makefile.am

    rc8784667 r287843f  
    9292
    9393## MEMORY_C_FILES
     94libposix_a_SOURCES += src/mmap.c
    9495libposix_a_SOURCES += src/mprotect.c
     96libposix_a_SOURCES += src/munmap.c
    9597
    9698## MESSAGE_QUEUE_C_FILES
  • cpukit/posix/src/mprotect.c

    rc8784667 r287843f  
    2929
    3030#include <unistd.h>
    31 
    32 /*
    33  * RTEMS does not have <sys/mman.h> so we need a prototype here to
    34  * avoid warnings.
    35  */
    36 
    37 int mprotect( const void *, size_t, int );
     31#include <sys/mman.h>
    3832
    3933int mprotect(
    40   const void *addr __attribute__((unused)),
     34  void *addr __attribute__((unused)),
    4135  size_t len __attribute__((unused)),
    4236  int prot __attribute__((unused)) )
  • cpukit/preinstall.am

    rc8784667 r287843f  
    5959        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/memory.h
    6060PREINSTALL_FILES += $(PROJECT_INCLUDE)/memory.h
     61
     62$(PROJECT_INCLUDE)/sys/mman.h: posix/include/sys/mman.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
     63        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/mman.h
     64PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/mman.h
    6165
    6266$(PROJECT_INCLUDE)/sys/ioccom.h: libcsupport/include/sys/ioccom.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
Note: See TracChangeset for help on using the changeset viewer.