summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_misc.h
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_misc.h
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_misc.h')
-rw-r--r--sys/compat/linux/common/linux_misc.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/compat/linux/common/linux_misc.h b/sys/compat/linux/common/linux_misc.h
index fd36d8e173e..2e51feb0f6b 100644
--- a/sys/compat/linux/common/linux_misc.h
+++ b/sys/compat/linux/common/linux_misc.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.h,v 1.5 2001/07/18 19:11:14 thorpej Exp $ */
+/* $NetBSD: linux_misc.h,v 1.6 2002/02/15 16:48:03 christos Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -65,6 +65,19 @@ struct linux_sysinfo {
char _f[20-2*sizeof(long)-sizeof(int)];
};
+#define LINUX_RLIMIT_CPU 0
+#define LINUX_RLIMIT_FSIZE 1
+#define LINUX_RLIMIT_DATA 2
+#define LINUX_RLIMIT_STACK 3
+#define LINUX_RLIMIT_CORE 4
+#define LINUX_RLIMIT_RSS 5
+#define LINUX_RLIMIT_NPROC 6
+#define LINUX_RLIMIT_NOFILE 7
+#define LINUX_RLIMIT_MEMLOCK 8
+#define LINUX_RLIMIT_AS 9
+#define LINUX_RLIMIT_LOCKS 10
+#define LINUX_RLIM_INFINITY ~0ul
+
#ifdef _KERNEL
__BEGIN_DECLS
void bsd_to_linux_wstat __P((int *));