From owner-p4-projects@FreeBSD.ORG Sun May 16 14:41:01 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 746E716A4D0; Sun, 16 May 2004 14:41:01 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B3B916A4CE for ; Sun, 16 May 2004 14:41:01 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E307D43D45 for ; Sun, 16 May 2004 14:41:00 -0700 (PDT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i4GLf0Ge021235 for ; Sun, 16 May 2004 14:41:00 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i4GLf0fh021224 for perforce@freebsd.org; Sun, 16 May 2004 14:41:00 -0700 (PDT) (envelope-from peter@freebsd.org) Date: Sun, 16 May 2004 14:41:00 -0700 (PDT) Message-Id: <200405162141.i4GLf0fh021224@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Subject: PERFORCE change 52884 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 May 2004 21:41:02 -0000 http://perforce.freebsd.org/chv.cgi?CH=52884 Change 52884 by peter@peter_overcee on 2004/05/16 14:40:41 add item for fixing 32/64 bit confustion in sysctl(2) for 32 bit binaries. Affected files ... .. //depot/projects/hammer/TODO.txt#15 edit Differences ... ==== //depot/projects/hammer/TODO.txt#15 (text+ko) ==== @@ -1,4 +1,4 @@ -$P4: //depot/projects/hammer/TODO.txt#14 $ +$P4: //depot/projects/hammer/TODO.txt#15 $ reread the logs etc and check out the "XXX worry about this later" stuff @@ -36,6 +36,12 @@ (XXX: kern.ps_strings and kern.usrstack are prime examples of the 4/8 byte long problem). +Fix sysctl(2) int/long mess, especially for kern.ps_strings and +kern.usrstack. The current hack is Just Wrong. What is needed is a +syscall wrapper for it that downconverts the "long" values from 64 bit to +32 bit for the 32 bit binaries. This is going to need a table of important +"long" sysctls to translate. + ======= DONE ======= ppp(8) (compiler bug, hack in http://people.freebsd.org/~peter/hammer.diff, but gcc-3.3 would be much better)