summaryrefslogtreecommitdiff
path: root/nuttx/include/sys/mman.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-05-08 14:42:42 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-05-08 14:42:42 +0000
commita261e0bd080530c6a9f4c766c6650729bb75d0d1 (patch)
tree1607a8e3544808fc3a506a2b946916d91b08f796 /nuttx/include/sys/mman.h
parent0a30a23cf0bb5a2abf1f02c5f120641e75067fae (diff)
downloadpx4-nuttx-a261e0bd080530c6a9f4c766c6650729bb75d0d1.tar.gz
px4-nuttx-a261e0bd080530c6a9f4c766c6650729bb75d0d1.tar.bz2
px4-nuttx-a261e0bd080530c6a9f4c766c6650729bb75d0d1.zip
Complets ram mapping logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3578 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/sys/mman.h')
-rw-r--r--nuttx/include/sys/mman.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/nuttx/include/sys/mman.h b/nuttx/include/sys/mman.h
index 81bed9ca2..6d220bef1 100644
--- a/nuttx/include/sys/mman.h
+++ b/nuttx/include/sys/mman.h
@@ -1,7 +1,7 @@
/****************************************************************************
* include/sys/mman.h
*
- * Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008, 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -98,7 +98,12 @@ extern "C" {
EXTERN FAR void *mmap(FAR void *start, size_t length, int prot, int flags,
int fd, off_t offset);
-#define munmap(start, length)
+
+#ifdef CONFIG_FS_RAMMAP
+EXTERN int munmap(FAR void *start, size_t length);
+#else
+# define munmap(start, length)
+#endif
#undef EXTERN
#if defined(__cplusplus)