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
2014-03-03 20:47:03 +01:00
committed by sambuc
parent b0cab62bd2
commit dda632a24f
34 changed files with 197 additions and 180 deletions
+1 -5
View File
@@ -96,11 +96,7 @@ msg_file(const char *file)
int fd;
if (msgmap != MAP_FAILED)
#ifdef __minix
minix_munmap(msgmap, msgmapsz);
#else /* ! __minix */
munmap(msgmap, msgmapsz);
#endif /* ! __minix */
msgmap = MAP_FAILED;
if (!file)
return 0;
@@ -109,7 +105,7 @@ msg_file(const char *file)
return -1;
msgmapsz = lseek(fd, 0, SEEK_END);
#ifdef __minix
msgmap = minix_mmap(0, msgmapsz, PROT_READ, MAP_PRIVATE, fd, 0);
msgmap = mmap(0, msgmapsz, PROT_READ, MAP_PRIVATE, fd, 0);
#else /* ! __minix */
msgmap = mmap(0, msgmapsz, PROT_READ, MAP_SHARED, fd, 0);
#endif /* ! __minix */