summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_oldmmap.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2002-02-15 16:47:58 +0000
committerchristos <christos@NetBSD.org>2002-02-15 16:47:58 +0000
commit28debea38ad85de58db5aff6837a054954abe8a0 (patch)
tree58830ddc6d8ecd935c162d3d839f239cde09fb6d /sys/compat/linux/common/linux_oldmmap.c
parentd3d59b3e4f0917a72ee3b53e6e20305caa430c6d (diff)
- add a real linux_sys___sysctl because the mib numbers are different.
implement only the kernel version getting entries. - make the signal conversion functions consistent; dest is arg 1. - make linux_fakedev deal with block and char devices differently. - add linux_sys_ugetrlimit, and flesh out the regular get/setrlimit so that they work properly. - add linux_mmap2 [untested]. - bump kernel to 2.4.18, and make the date be valentine's day :-) - linux_sys_*stat64 family was totally busted. Fix it. tested only on i386. Status: gdb, telnet, work jdk-1.4.0 extractor works, jdk still coredumps. christos
Diffstat (limited to 'sys/compat/linux/common/linux_oldmmap.c')
-rw-r--r--sys/compat/linux/common/linux_oldmmap.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/compat/linux/common/linux_oldmmap.c b/sys/compat/linux/common/linux_oldmmap.c
index 98d620ee1c2..d5fb2a6bf53 100644
--- a/sys/compat/linux/common/linux_oldmmap.c
+++ b/sys/compat/linux/common/linux_oldmmap.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_oldmmap.c,v 1.54 2001/11/13 02:08:55 lukem Exp $ */
+/* $NetBSD: linux_oldmmap.c,v 1.55 2002/02/15 16:48:03 christos Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_oldmmap.c,v 1.54 2001/11/13 02:08:55 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_oldmmap.c,v 1.55 2002/02/15 16:48:03 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -82,7 +82,9 @@ linux_sys_old_mmap(p, v, retval)
SCARG(&nlmap,flags) = lmap.lm_flags;
SCARG(&nlmap,fd) = lmap.lm_fd;
SCARG(&nlmap,offset) = (unsigned)lmap.lm_pos;
-
+ uprintf("old_mmap(%p, %d, %d, %d, %d, %d)\n",
+ lmap.lm_addr, lmap.lm_len, lmap.lm_prot, lmap.lm_flags,
+ lmap.lm_fd, lmap.lm_pos);
return linux_sys_mmap(p, &nlmap, retval);
}