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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user