drop the minix_ prefixes for mmap and munmap

also cleanup of various minix-specific changes, cleanup of
mmap-related testing.

Change-Id: I289a4fc50cf8a13df4a6082038d860853a4bd024
This commit is contained in:
Ben Gras
2013-11-22 16:38:29 +01:00
committed by Lionel Sambuc
parent b0cab62bd2
commit dda632a24f
34 changed files with 197 additions and 180 deletions

View File

@@ -6,19 +6,19 @@
#include "inc.h"
#define minix_munmap _minix_munmap
#define munmap _munmap
#include <sys/mman.h>
#undef minix_munmap
#undef munmap
int unmap_ok = 0;
/*===========================================================================*
* minix_munmap *
* munmap *
*===========================================================================*/
int minix_munmap(void *addrstart, vir_bytes len)
int munmap(void *addrstart, vir_bytes len)
{
if(!unmap_ok)
return ENOSYS;
return _minix_munmap(addrstart, len);
return _munmap(addrstart, len);
}