Date: Mon, 11 Oct 2004 22:04:16 +0000 (UTC) From: Peter Wemm <peter@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/freebsd32 freebsd32_misc.c src/sys/kern kern_exec.c kern_sysctl.c kern_tc.c kern_xxx.c src/sys/sys sysctl.h src/sys/vm vm_meter.c Message-ID: <200410112204.i9BM4GgA031224@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
peter 2004-10-11 22:04:16 UTC FreeBSD src repository Modified files: sys/compat/freebsd32 freebsd32_misc.c sys/kern kern_exec.c kern_sysctl.c kern_tc.c kern_xxx.c sys/sys sysctl.h sys/vm vm_meter.c Log: Put on my peril sensitive sunglasses and add a flags field to the internal sysctl routines and state. Add some code to use it for signalling the need to downconvert a data structure to 32 bits on a 64 bit OS when requested by a 32 bit app. I tried to do this in a generic abi wrapper that intercepted the sysctl oid's, or looked up the format string etc, but it was a real can of worms that turned into a fragile mess before I even got it partially working. With this, we can now run 'sysctl -a' on a 32 bit sysctl binary and have it not abort. Things like netstat, ps, etc have a long way to go. This also fixes a bug in the kern.ps_strings and kern.usrstack hacks. These do matter very much because they are used by libc_r and other things. Revision Changes Path 1.25 +3 -7 src/sys/compat/freebsd32/freebsd32_misc.c 1.256 +4 -4 src/sys/kern/kern_exec.c 1.160 +28 -10 src/sys/kern/kern_sysctl.c 1.163 +17 -2 src/sys/kern/kern_tc.c 1.43 +5 -5 src/sys/kern/kern_xxx.c 1.133 +9 -3 src/sys/sys/sysctl.h 1.78 +18 -2 src/sys/vm/vm_meter.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410112204.i9BM4GgA031224>