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:
@@ -57,10 +57,6 @@ __RCSID("$NetBSD: load.c,v 1.42 2010/12/24 12:41:43 skrll Exp $");
|
||||
#include <sys/sysctl.h>
|
||||
#include <dirent.h>
|
||||
|
||||
#ifdef __minix
|
||||
#define munmap minix_munmap
|
||||
#endif
|
||||
|
||||
#include "debug.h"
|
||||
#include "rtld.h"
|
||||
|
||||
|
||||
@@ -50,8 +50,6 @@ __RCSID("$NetBSD: map_object.c,v 1.45 2012/10/13 21:13:07 dholland Exp $");
|
||||
#include "rtld.h"
|
||||
|
||||
#ifdef __minix
|
||||
#define munmap minix_munmap
|
||||
#define mmap minix_mmap
|
||||
#ifndef MAP_SHARED
|
||||
#define MAP_SHARED MAP_PRIVATE /* minix: MAP_SHARED should be MAP_PRIVATE */
|
||||
#endif
|
||||
|
||||
@@ -49,10 +49,6 @@ __RCSID("$NetBSD: map_object.c,v 1.45 2012/10/13 21:13:07 dholland Exp $");
|
||||
#include "debug.h"
|
||||
#include "rtld.h"
|
||||
|
||||
#ifdef __minix
|
||||
#define munmap minix_munmap
|
||||
#endif
|
||||
|
||||
#define MINIXVERBOSE 0
|
||||
|
||||
#if MINIXVERBOSE
|
||||
@@ -137,7 +133,7 @@ _rtld_map_object_fallback(const char *path, int fd, const struct stat *sb)
|
||||
}
|
||||
|
||||
#ifdef __minix
|
||||
ehdr = minix_mmap(NULL, _rtld_pagesz, PROT_READ|PROT_WRITE,
|
||||
ehdr = mmap(NULL, _rtld_pagesz, PROT_READ|PROT_WRITE,
|
||||
MAP_PREALLOC|MAP_ANON, -1, (off_t)0);
|
||||
Pread(ehdr, _rtld_pagesz, fd, 0);
|
||||
#if MINIXVERBOSE
|
||||
@@ -368,7 +364,7 @@ _rtld_map_object_fallback(const char *path, int fd, const struct stat *sb)
|
||||
mapbase = mmap(base_addr, mapsize, text_flags,
|
||||
mapflags | MAP_FILE | MAP_PRIVATE, fd, base_offset);
|
||||
#else
|
||||
mapbase = minix_mmap(base_addr, mapsize, PROT_READ|PROT_WRITE,
|
||||
mapbase = mmap(base_addr, mapsize, PROT_READ|PROT_WRITE,
|
||||
MAP_ANON | MAP_PREALLOC, -1, 0);
|
||||
#if MINIXVERBOSE
|
||||
fprintf(stderr, "minix mmap for whole block: 0x%lx-0x%lx\n", mapbase, mapbase+mapsize);
|
||||
|
||||
@@ -38,10 +38,6 @@
|
||||
* John Polstra <jdp@polstra.com>.
|
||||
*/
|
||||
|
||||
#ifdef __minix
|
||||
#define munmap minix_munmap
|
||||
#endif
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: rtld.c,v 1.159 2012/10/01 03:03:46 riastradh Exp $");
|
||||
|
||||
@@ -60,12 +60,6 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef __minix
|
||||
/* Minix mmap can do this. */
|
||||
#define mmap minix_mmap
|
||||
#define munmap minix_munmap
|
||||
#endif
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/*static char *sccsid = "from: @(#)malloc.c 5.11 (Berkeley) 2/23/91";*/
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
Reference in New Issue
Block a user