mirror of /home/gitosis/repositories/libowfat.git
Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat
https://www.fefe.de/libowfat/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
334 B
18 lines
334 B
#include <sys/types.h> |
|
#include <unistd.h> |
|
#ifdef __MINGW32__ |
|
#include <windows.h> |
|
#else |
|
#include <sys/mman.h> |
|
#endif |
|
#include "open.h" |
|
#include "mmap.h" |
|
|
|
int mmap_unmap(const char* mapped,size_t maplen) { |
|
#ifdef __MINGW32__ |
|
(void)maplen; |
|
return UnmapViewOfFile(mapped)?0:-1; |
|
#else |
|
return munmap((char*)mapped,maplen); |
|
#endif |
|
}
|
|
|