mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 13:17:45 +08:00
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:
committed by
Gedare Bloom
parent
bfe6391c0d
commit
d88b0b78d7
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user