[rtems commit] posix: Move function to file with matching name
Gedare Bloom
gedare at rtems.org
Thu Mar 12 14:02:41 UTC 2015
Module: rtems
Branch: master
Commit: d88b0b78d779a5fbbb6db25e90095e50c5861f54
Changeset: http://git.rtems.org/rtems/commit/?id=d88b0b78d779a5fbbb6db25e90095e50c5861f54
Author: Daniel Cederman <cederman at gaisler.com>
Date: Thu Mar 12 09:04:20 2015 +0100
posix: Move function to file with matching name
mmap was previously in munmap.c and munmap was in mmap.c.
---
cpukit/posix/src/mmap.c | 10 +++++++---
cpukit/posix/src/munmap.c | 10 +++-------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/cpukit/posix/src/mmap.c b/cpukit/posix/src/mmap.c
index 2798326..3ebb2f4 100644
--- a/cpukit/posix/src/mmap.c
+++ b/cpukit/posix/src/mmap.c
@@ -17,10 +17,14 @@
#include <sys/mman.h>
-int munmap(
+void *mmap(
void *addr __attribute__((unused)),
- size_t length __attribute__((unused))
+ size_t lenhth __attribute__((unused)),
+ int prot __attribute__((unused)),
+ int flags __attribute__((unused)),
+ int fildes __attribute__((unused)),
+ off_t off
)
{
- return -1;
+ return NULL;
}
diff --git a/cpukit/posix/src/munmap.c b/cpukit/posix/src/munmap.c
index 3ebb2f4..2798326 100644
--- a/cpukit/posix/src/munmap.c
+++ b/cpukit/posix/src/munmap.c
@@ -17,14 +17,10 @@
#include <sys/mman.h>
-void *mmap(
+int munmap(
void *addr __attribute__((unused)),
- size_t lenhth __attribute__((unused)),
- int prot __attribute__((unused)),
- int flags __attribute__((unused)),
- int fildes __attribute__((unused)),
- off_t off
+ size_t length __attribute__((unused))
)
{
- return NULL;
+ return -1;
}
More information about the vc
mailing list