summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_sysctl.c
diff options
context:
space:
mode:
authorchs <chs@NetBSD.org>2010-07-07 01:30:32 +0000
committerchs <chs@NetBSD.org>2010-07-07 01:30:32 +0000
commit33fa5ccbbf17bc2390e2d136c34926c6f93ac5d1 (patch)
treec52fdcf81396fba59fce0a9c410d0dcc8c104091 /sys/compat/linux/common/linux_sysctl.c
parent56acc98394a822ba38a843f6385171e0b1aa5e9a (diff)
many changes for COMPAT_LINUX:
- update the linux syscall table for each platform. - support new-style (NPTL) linux pthreads on all platforms. clone() with CLONE_THREAD uses 1 process with many LWPs instead of separate processes. - move the contents of sys__lwp_setprivate() into a new lwp_setprivate() and use that everywhere. - update linux_release[] and linux32_release[] to "2.6.18". - adjust placement of emul fork/exec/exit hooks as needed and adjust other emul code to match. - convert all struct emul definitions to use named initializers. - change the pid allocator to allow multiple pids to refer to the same proc. - remove a few fields from struct proc that are no longer needed. - disable the non-functional "vdso" code in linux32/amd64, glibc works fine without it. - fix a race in the futex code where we could miss a wakeup after a requeue operation. - redo futex locking to be a little more efficient.
Diffstat (limited to 'sys/compat/linux/common/linux_sysctl.c')
-rw-r--r--sys/compat/linux/common/linux_sysctl.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/sys/compat/linux/common/linux_sysctl.c b/sys/compat/linux/common/linux_sysctl.c
index e7b1a448956..3c9ff0dcda9 100644
--- a/sys/compat/linux/common/linux_sysctl.c
+++ b/sys/compat/linux/common/linux_sysctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sysctl.c,v 1.39 2009/01/05 09:33:19 njoly Exp $ */
+/* $NetBSD: linux_sysctl.c,v 1.40 2010/07/07 01:30:35 chs Exp $ */
/*-
* Copyright (c) 2003, 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.39 2009/01/05 09:33:19 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.40 2010/07/07 01:30:35 chs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -57,13 +57,8 @@ __KERNEL_RCSID(0, "$NetBSD: linux_sysctl.c,v 1.39 2009/01/05 09:33:19 njoly Exp
#include <compat/linux/common/linux_machdep.h>
char linux_sysname[128] = "Linux";
-#if defined(__amd64__) || defined(__i386__) || defined(__powerpc__)
-char linux_release[128] = "2.4.18";
-char linux_version[128] = "#0 Wed Feb 20 20:00:02 CET 2002";
-#else
-char linux_release[128] = "2.0.38";
-char linux_version[128] = "#0 Sun Nov 11 11:11:11 MET 2000";
-#endif
+char linux_release[128] = "2.6.18";
+char linux_version[128] = "#0 Wed Mar 3 03:03:03 PST 2010";
struct sysctlnode linux_sysctl_root = {
.sysctl_flags = SYSCTL_VERSION|