posix: Move function to file with matching name

mmap was previously in munmap.c and munmap was in mmap.c.
This commit is contained in:
Daniel Cederman
2015-03-12 10:02:33 -04:00
committed by Gedare Bloom
parent bfe6391c0d
commit d88b0b78d7
2 changed files with 10 additions and 10 deletions
+7 -3
View File
@@ -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;
}
+3 -7
View File
@@ -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;
}